/* ============================================================
   AURA STORE · v2 扩展样式（用户端详情/评论/分享 + 管理端看板）
   ============================================================ */
[hidden] { display: none !important; }

/* ------------------------------ 邀请码解锁层 ------------------------------ */
.lock-layer {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(900px 520px at 20% 0%, rgba(124, 92, 255, 0.28), transparent 60%),
    radial-gradient(760px 480px at 90% 10%, rgba(18, 216, 250, 0.16), transparent 62%),
    rgba(7, 7, 12, 0.94);
  backdrop-filter: blur(16px);
  animation: lockIn 0.42s var(--ease, ease) both;
}
@keyframes lockIn { from { opacity: 0; } to { opacity: 1; } }
.lock-card {
  width: 100%; max-width: 400px; text-align: center;
  background: var(--surface, rgba(255, 255, 255, 0.045));
  border: 1px solid var(--stroke, rgba(255, 255, 255, 0.09));
  border-radius: 28px; padding: 34px 28px;
  box-shadow: var(--shadow-l, 0 30px 80px -30px rgba(0, 0, 0, 0.9));
}
.lock-mark {
  width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 18px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--brand-1, #7c5cff), var(--brand-2, #12d8fa));
  box-shadow: 0 14px 30px -12px rgba(124, 92, 255, 0.8);
}
.lock-card h2 { margin: 0 0 8px; font-size: 21px; }
.lock-card p { margin: 0 0 20px; color: var(--text-dim, #a5a7b8); font-size: 13.5px; line-height: 1.7; }
.lock-card input {
  width: 100%; padding: 14px 16px; margin-bottom: 12px; font-size: 15px;
  border-radius: 14px; color: var(--text, #f2f3f7); outline: none;
  background: rgba(0, 0, 0, 0.32); border: 1px solid var(--stroke-strong, rgba(255, 255, 255, 0.16));
  text-align: center; letter-spacing: 2px; font-family: inherit;
}
.lock-card input:focus { border-color: var(--brand-1, #7c5cff); }
.lock-btn { width: 100%; justify-content: center; }
.lock-tip { min-height: 18px; margin-top: 12px; font-size: 13px; color: var(--danger, #ff5f6d); }

/* ------------------------------ 分享 / 海报弹层 ------------------------------ */
.sheet-mask {
  position: fixed; inset: 0; z-index: 180; display: grid; place-items: center; padding: 20px;
  background: rgba(4, 4, 8, 0.72); backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transition: 0.28s var(--ease, ease);
}
.sheet-mask.show { opacity: 1; visibility: visible; }
.sheet {
  position: relative; width: min(420px, 100%); max-height: 90vh; overflow: auto;
  background: linear-gradient(180deg, rgba(24, 24, 36, 0.98), rgba(12, 12, 20, 0.99));
  border: 1px solid var(--stroke, rgba(255, 255, 255, 0.09));
  border-radius: 26px; padding: 24px;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.95);
  transform: translateY(14px) scale(0.98); transition: 0.3s var(--ease, ease);
}
.sheet-mask.show .sheet { transform: none; }
.sheet-close { position: absolute; right: 14px; top: 14px; }
.sheet-title { margin: 0 0 6px; font-size: 18px; }
.sheet-sub { margin: 0 0 18px; font-size: 13px; color: var(--text-mute, #6f7183); }
.poster-box {
  border-radius: 18px; overflow: hidden; background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stroke, rgba(255, 255, 255, 0.09));
  aspect-ratio: 3 / 4; display: grid; place-items: center;
}
.poster-box img { width: 100%; height: 100%; object-fit: contain; display: block; }
.poster-loading { color: var(--text-mute, #6f7183); font-size: 13px; }
.link-row { display: flex; gap: 10px; margin-top: 16px; }
.link-row input {
  flex: 1; min-width: 0; padding: 12px 14px; border-radius: 13px; font-size: 13px;
  background: rgba(0, 0, 0, 0.34); border: 1px solid var(--stroke, rgba(255, 255, 255, 0.09));
  color: var(--text-dim, #a5a7b8); outline: none; font-family: ui-monospace, monospace;
}
.sheet-actions { display: flex; gap: 10px; margin-top: 12px; }
.sheet-actions .btn { flex: 1; justify-content: center; font-size: 13.5px; padding: 11px 14px; }

/* ------------------------------ 详情抽屉内容 ------------------------------ */
.dt-hero { display: flex; gap: 16px; align-items: center; }
.dt-icon {
  width: 76px; height: 76px; flex: none; border-radius: 20px; overflow: hidden;
  display: grid; place-items: center; font-size: 30px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.9), rgba(18, 216, 250, 0.82));
  box-shadow: 0 16px 34px -16px rgba(124, 92, 255, 0.9);
}
.dt-icon img { width: 100%; height: 100%; object-fit: cover; }
.dt-name { font-size: 21px; font-weight: 700; margin: 0 0 8px; line-height: 1.3; }
.dt-badges { display: flex; flex-wrap: wrap; gap: 7px; font-size: 12px; }
.badge {
  padding: 4px 10px; border-radius: 999px; color: var(--text-dim, #a5a7b8);
  background: rgba(255, 255, 255, 0.055); border: 1px solid var(--stroke, rgba(255, 255, 255, 0.09));
}
.badge.brand { color: #d8cfff; border-color: rgba(124, 92, 255, 0.5); background: rgba(124, 92, 255, 0.15); }
.badge.rate { color: #ffd479; border-color: rgba(255, 200, 87, 0.35); background: rgba(255, 200, 87, 0.1); }

.dt-actions { display: flex; gap: 10px; }
.dt-actions .btn { flex: 1; justify-content: center; }
.dt-actions .btn-icon { flex: none; width: 46px; padding: 0; }

.sec-h {
  display: flex; align-items: center; gap: 9px; margin: 4px 0 12px;
  font-size: 14.5px; font-weight: 700; letter-spacing: 0.2px;
}
.sec-h::before {
  content: ""; width: 4px; height: 15px; border-radius: 2px;
  background: linear-gradient(180deg, var(--brand-1, #7c5cff), var(--brand-2, #12d8fa));
}
.sec-h .count { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--text-mute, #6f7183); }
.dt-desc { font-size: 13.6px; line-height: 1.85; color: var(--text-dim, #a5a7b8); white-space: pre-wrap; word-break: break-word; margin: 0; }
.kv-list { display: grid; gap: 9px; }
.kv-row { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.kv-row span:first-child { color: var(--text-mute, #6f7183); min-width: 76px; }
.kv-row span:last-child { color: var(--text, #f2f3f7); font-weight: 600; word-break: break-all; }

/* 二维码 */
.qr-panel { display: flex; gap: 16px; align-items: center; padding: 14px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--stroke, rgba(255, 255, 255, 0.09)); }
.qr-panel img { width: 104px; height: 104px; flex: none; border-radius: 12px; background: #fff; padding: 6px; }
.qr-panel div { font-size: 12.6px; line-height: 1.75; color: var(--text-mute, #6f7183); }
.qr-panel b { display: block; font-size: 13.5px; color: var(--text, #f2f3f7); margin-bottom: 5px; }

/* 版本历史 */
.ver-list { display: flex; flex-direction: column; gap: 9px; }
.ver-item { padding: 12px 14px; border-radius: 15px; background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--stroke, rgba(255, 255, 255, 0.09)); }
.ver-top { display: flex; align-items: center; gap: 8px; font-size: 13.4px; font-weight: 650; }
.ver-top .tag { font-size: 10.5px; padding: 1px 7px; border-radius: 999px; font-weight: 600;
  color: #7ff0cd; background: rgba(53, 229, 161, 0.15); border: 1px solid rgba(53, 229, 161, 0.3); }
.ver-top .t { margin-left: auto; font-size: 11.5px; font-weight: 500; color: var(--text-mute, #6f7183); }
.ver-log { margin-top: 7px; font-size: 12.6px; line-height: 1.7; color: var(--text-dim, #a5a7b8); white-space: pre-wrap; }
.ver-links { margin-top: 8px; display: flex; gap: 14px; font-size: 12.2px; }
.ver-links a { color: var(--brand-2, #12d8fa); text-decoration: none; }
.ver-links span { color: var(--text-mute, #6f7183); }

/* 评分分布 */
.rate-panel { display: flex; gap: 18px; align-items: center; padding: 14px 16px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--stroke, rgba(255, 255, 255, 0.09)); }
.rate-score { text-align: center; flex: none; width: 88px; }
.rate-score b { display: block; font-size: 30px; line-height: 1; color: #ffd479; }
.rate-score .stars { font-size: 11px; letter-spacing: 1px; color: #ffd479; margin: 6px 0 4px; }
.rate-score span { font-size: 11.5px; color: var(--text-mute, #6f7183); }
.rate-bars { flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.rate-bar-row { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-mute, #6f7183); }
.rate-bar-row .bar { flex: 1; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.rate-bar-row .bar i { display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #ffc857, #ff9f45); transition: width 0.5s var(--ease, ease); }

/* 评论 */
.cmt-list { display: flex; flex-direction: column; gap: 12px; }
.cmt-item { padding: 13px 15px; border-radius: 16px; background: rgba(255, 255, 255, 0.032);
  border: 1px solid var(--stroke, rgba(255, 255, 255, 0.09)); }
.cmt-head { display: flex; align-items: center; gap: 9px; font-size: 12.8px; }
.cmt-avatar { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: #ddd8ff; background: rgba(124, 92, 255, 0.28); flex: none; }
.cmt-name { font-weight: 600; color: var(--text, #f2f3f7); }
.cmt-stars { color: #ffd479; font-size: 11.5px; letter-spacing: 0.6px; }
.cmt-time { margin-left: auto; font-size: 11.5px; color: var(--text-mute, #6f7183); }
.cmt-text { margin: 8px 0 0; font-size: 13.2px; line-height: 1.75; color: var(--text-dim, #a5a7b8); white-space: pre-wrap; word-break: break-word; }
.cmt-empty { padding: 18px; text-align: center; font-size: 13px; color: var(--text-mute, #6f7183);
  border: 1px dashed var(--stroke-strong, rgba(255, 255, 255, 0.16)); border-radius: 16px; }
.cmt-more { align-self: center; margin-top: 2px; }

.cmt-form { display: flex; flex-direction: column; gap: 10px; padding: 15px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.032); border: 1px solid var(--stroke, rgba(255, 255, 255, 0.09)); }
.cmt-form .row { display: flex; gap: 10px; }
.cmt-form input[type="text"], .cmt-form textarea {
  width: 100%; padding: 11px 13px; font-size: 13.2px; border-radius: 12px; color: var(--text, #f2f3f7);
  background: rgba(0, 0, 0, 0.3); border: 1px solid var(--stroke, rgba(255, 255, 255, 0.09));
  outline: none; font-family: inherit; resize: vertical;
}
.cmt-form textarea { min-height: 78px; line-height: 1.7; }
.cmt-form input:focus, .cmt-form textarea:focus { border-color: var(--brand-1, #7c5cff); }
.star-input { display: flex; align-items: center; gap: 5px; }
.star-input button { background: none; border: 0; padding: 0 2px; cursor: pointer; font-size: 20px;
  line-height: 1; color: rgba(255, 255, 255, 0.22); transition: 0.16s; }
.star-input button.on { color: #ffc857; transform: scale(1.04); }
.star-input .lbl { margin-left: 8px; font-size: 12.2px; color: var(--text-mute, #6f7183); }
.cmt-form .foot { display: flex; align-items: center; gap: 10px; }
.cmt-form .foot .tip { font-size: 11.8px; color: var(--text-mute, #6f7183); }
.cmt-form .foot .btn { margin-left: auto; }

/* ------------------------------ 管理端扩展 ------------------------------ */
.adm-tabs { display: flex; gap: 6px; padding: 5px; border-radius: 14px; background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--stroke, rgba(255, 255, 255, 0.09)); width: fit-content; max-width: 100%; overflow: auto; }
.adm-tab { padding: 9px 16px; border-radius: 10px; border: 0; background: none; cursor: pointer;
  font-size: 13.4px; font-weight: 600; color: var(--text-dim, #a5a7b8); white-space: nowrap; transition: 0.2s; font-family: inherit; }
.adm-tab:hover { color: #fff; }
.adm-tab.active { color: #fff; background: linear-gradient(135deg, rgba(124, 92, 255, 0.9), rgba(18, 216, 250, 0.75)); }
.adm-panel { display: none; }
.adm-panel.active { display: block; animation: fadeUp 0.32s var(--ease, ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.chart-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; }
.chart-card { padding: 18px; border-radius: 20px; background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--stroke, rgba(255, 255, 255, 0.09)); min-width: 0; }
.chart-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.chart-head h3 { margin: 0; font-size: 14.5px; }
.chart-head .sel { margin-left: auto; display: flex; gap: 4px; }
.chart-head .sel button { font-size: 12px; padding: 5px 10px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--stroke, rgba(255, 255, 255, 0.09)); background: none; color: var(--text-dim, #a5a7b8); font-family: inherit; }
.chart-head .sel button.active { color: #fff; border-color: rgba(124, 92, 255, 0.6); background: rgba(124, 92, 255, 0.18); }
.spark { width: 100%; height: 190px; display: block; overflow: visible; }
.spark-axis { font-size: 9.5px; fill: #6f7183; }
.spark-grid { stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; }
.spark-line { fill: none; stroke: url(#sparkGrad); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.spark-area { fill: url(#sparkArea); opacity: 0.85; }
.spark-dot { fill: #12d8fa; stroke: #0a0a12; stroke-width: 2; }

.donut-wrap { display: flex; align-items: center; gap: 18px; }
.donut { width: 132px; height: 132px; flex: none; border-radius: 50%; position: relative; }
.donut::after { content: ""; position: absolute; inset: 26px; border-radius: 50%; background: #0f0f18; }
.donut-center { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; text-align: center; }
.donut-center b { font-size: 20px; display: block; line-height: 1.1; }
.donut-center span { font-size: 10.5px; color: var(--text-mute, #6f7183); }
.legend { display: flex; flex-direction: column; gap: 9px; font-size: 12.8px; flex: 1; min-width: 0; }
.legend div { display: flex; align-items: center; gap: 8px; }
.legend i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.legend b { margin-left: auto; }

.bar-list { display: flex; flex-direction: column; gap: 11px; }
.bar-row { display: flex; align-items: center; gap: 10px; font-size: 12.8px; }
.bar-row .nm { width: 96px; flex: none; color: var(--text-dim, #a5a7b8); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row .track { flex: 1; height: 9px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.bar-row .track i { display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, rgba(124, 92, 255, 0.95), rgba(18, 216, 250, 0.9)); transition: width 0.6s var(--ease, ease); }
.bar-row .val { width: 46px; text-align: right; flex: none; font-weight: 600; }

.rank-list { display: flex; flex-direction: column; gap: 9px; }
.rank-item { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 13px;
  background: rgba(255, 255, 255, 0.03); font-size: 13px; }
.rank-item .no { width: 20px; flex: none; text-align: center; font-size: 12px; font-weight: 700; color: var(--text-mute, #6f7183); }
.rank-item .no.top { color: #ffc857; }
.rank-item .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-item .cnt { font-size: 12px; color: var(--text-dim, #a5a7b8); }

/* 设置表单 */
.set-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.set-card { padding: 20px; border-radius: 20px; background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--stroke, rgba(255, 255, 255, 0.09)); }
.set-card h3 { margin: 0 0 4px; font-size: 14.5px; }
.set-card .hint { margin: 0 0 16px; font-size: 12.4px; color: var(--text-mute, #6f7183); line-height: 1.7; }
.set-field { margin-bottom: 14px; }
.set-field label { display: block; font-size: 12.6px; color: var(--text-dim, #a5a7b8); margin-bottom: 7px; }
.set-field input[type="text"], .set-field input[type="password"], .set-field textarea {
  width: 100%; padding: 11px 13px; border-radius: 12px; font-size: 13.4px; color: var(--text, #f2f3f7);
  background: rgba(0, 0, 0, 0.3); border: 1px solid var(--stroke, rgba(255, 255, 255, 0.09)); outline: none; font-family: inherit; }
.set-field input:focus, .set-field textarea:focus { border-color: var(--brand-1, #7c5cff); }
.switch-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--stroke, rgba(255, 255, 255, 0.09)); margin-bottom: 12px; }
.switch-row .txt { flex: 1; font-size: 13px; }
.switch-row .txt small { display: block; font-size: 11.8px; color: var(--text-mute, #6f7183); margin-top: 3px; }
.sw-toggle { position: relative; width: 42px; height: 24px; flex: none; border-radius: 99px; cursor: pointer;
  background: rgba(255, 255, 255, 0.14); transition: 0.24s; border: 0; padding: 0; }
.sw-toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; transition: 0.24s var(--ease, ease); }
.sw-toggle.on { background: linear-gradient(135deg, #7c5cff, #12d8fa); }
.sw-toggle.on::after { transform: translateX(18px); }
.set-actions { display: flex; gap: 10px; margin-top: 6px; }

/* 评论审核 */
.cmt-row { display: flex; gap: 12px; padding: 13px 14px; border-radius: 15px;
  background: rgba(255, 255, 255, 0.032); border: 1px solid var(--stroke, rgba(255, 255, 255, 0.09)); }
.cmt-row .body { flex: 1; min-width: 0; }
.cmt-row .top { display: flex; align-items: center; gap: 8px; font-size: 12.8px; flex-wrap: wrap; }
.cmt-row .txt { margin: 7px 0 0; font-size: 13.2px; line-height: 1.7; color: var(--text-dim, #a5a7b8); white-space: pre-wrap; word-break: break-word; }
.cmt-row .acts { display: flex; flex-direction: column; gap: 6px; flex: none; }
.cmt-row .acts button { font-size: 12px; padding: 6px 12px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--stroke-strong, rgba(255, 255, 255, 0.16)); background: none; color: var(--text-dim, #a5a7b8); font-family: inherit; }
.cmt-row .acts button:hover { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.cmt-row .acts button.ok { color: #7ff0cd; border-color: rgba(53, 229, 161, 0.4); }
.cmt-row .acts button.danger { color: #ff9aa4; border-color: rgba(255, 95, 109, 0.4); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.status-dot.s1 { background: #35e5a1; }
.status-dot.s0 { background: #ffc857; }
.status-dot.sm1 { background: #6f7183; }

/* 编辑弹层里的版本管理 */
.ver-manage { display: flex; flex-direction: column; gap: 8px; max-height: 220px; overflow: auto; }
.ver-manage .vm { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--stroke, rgba(255, 255, 255, 0.09)); font-size: 12.6px; }
.ver-manage .vm b { font-size: 12.8px; }
.ver-manage .vm .t { color: var(--text-mute, #6f7183); }
.ver-manage .vm .sz { margin-left: auto; color: var(--text-mute, #6f7183); }
.ver-manage .vm .del { border: 0; background: none; color: #ff9aa4; cursor: pointer; font-size: 12px; padding: 2px 6px; font-family: inherit; }

/* 分片上传进度 */
.chunk-info { margin-top: 10px; font-size: 12.2px; color: var(--text-mute, #6f7183); }

@media (max-width: 980px) {
  .chart-grid { grid-template-columns: 1fr; }
  .set-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .donut-wrap { flex-direction: column; }
  .legend { width: 100%; }
  .bar-row .nm { width: 70px; }
  .sheet { border-radius: 22px; padding: 20px; }
  .qr-panel { flex-direction: column; text-align: center; }
  .dt-actions .btn { font-size: 13.5px; padding: 12px; }
  .rate-panel { gap: 12px; }
  .rate-score { width: 74px; }
  .rate-score b { font-size: 25px; }
  .cmt-row { flex-direction: column; }
  .cmt-row .acts { flex-direction: row; }
}

/* ---------- 看板图表补充 ---------- */
.chart-body { min-height: 190px; }
.chart-empty { display: grid; place-items: center; height: 190px; font-size: 12.6px; color: var(--text-mute, #6f7183); }
.sk { border-radius: 14px; background: linear-gradient(100deg, rgba(255,255,255,0.045) 30%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.045) 70%); background-size: 220% 100%; animation: skMove 1.3s linear infinite; }
@keyframes skMove { from { background-position: 120% 0; } to { background-position: -20% 0; } }
.trend-labels { display: flex; justify-content: space-between; margin-top: 8px; font-size: 10.5px; color: var(--text-mute, #6f7183); }
.trend-labels span { flex: none; transform: translateX(-50%); }
.trend-labels span:first-child { transform: none; }
.trend-labels span:last-child { transform: translateX(-100%); }
.ver-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.ver-links a { color: #b9b0ff; text-decoration: none; border-bottom: 1px dashed rgba(185,176,255,0.4); cursor: pointer; }
.ver-links a:hover { color: #fff; }
.cmt-app { font-size: 11.6px; color: var(--text-mute, #6f7183); }
.cmt-more { display: flex; justify-content: center; margin-top: 14px; }
