/* ============================================================
   声历 · 深色玻璃主题（原创实现）
   深墨蓝底 + 彩色光斑 + 半透明玻璃卡片
   仅服务于 pages/app.html，旧的 yb-light.css 保持不动
   ============================================================ */

:root {
  --bg: #080a12;
  --ink: #f5f7ff;
  --muted: rgba(226, 232, 255, 0.68);
  --faint: rgba(226, 232, 255, 0.44);
  --hair: rgba(255, 255, 255, 0.10);
  --hair2: rgba(255, 255, 255, 0.18);
  --glass-a: rgba(255, 255, 255, 0.085);
  --glass-b: rgba(255, 255, 255, 0.032);
  --brand: #ff5a3c;
  --brand2: #ffb84d;
  --brand3: #8b7cff;
  --ok: #5eead4;
  --warn: #ffd166;
  --bad: #ff8fa3;
  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;
  --shadow: 0 30px 80px -32px rgba(0, 0, 0, 0.9);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, monospace;

  /* 海报引擎读取的兼容变量（深色画布） */
  --yb-paper-100: #0b0e1a;
  --yb-ink-900: #f5f7ff;
  --yb-ink-500: rgba(226, 232, 255, 0.68);
  --yb-ink-400: rgba(226, 232, 255, 0.44);
  --yb-brand-500: #ff5a3c;
}

html[data-skin="ember"] {
  --brand: #ff5a3c;
  --brand2: #ffb84d;
  --brand3: #8b7cff;
  --yb-brand-500: #ff5a3c;
}
html[data-skin="aurora"] {
  --brand: #7dd3fc;
  --brand2: #a5b4fc;
  --brand3: #f0abfc;
  --yb-brand-500: #7dd3fc;
}
html[data-skin="mint"] {
  --brand: #5eead4;
  --brand2: #86efac;
  --brand3: #7dd3fc;
  --yb-brand-500: #5eead4;
}
html[data-skin="gold"] {
  --brand: #ffc24b;
  --brand2: #ff9f6b;
  --brand3: #ffe08a;
  --yb-brand-500: #ffc24b;
}
html[data-skin="violet"] {
  --brand: #b39bff;
  --brand2: #f0abfc;
  --brand3: #7dd3fc;
  --yb-brand-500: #b39bff;
}
html[data-skin="mono"] {
  --brand: #e6e8f2;
  --brand2: #b8bdd4;
  --brand3: #8e93ac;
  --yb-brand-500: #e6e8f2;
}

* { box-sizing: border-box; }

html {
  background: #05060b;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { -webkit-tap-highlight-color: transparent; }

::selection { background: color-mix(in srgb, var(--brand) 40%, transparent); color: #fff; }

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
.hidden { display: none !important; }

/* ---------- 背景：深墨蓝 + 漂移光斑 + 细颗粒 ---------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background:
    radial-gradient(120% 72% at 50% -12%, #131a2c 0%, #080a12 56%, #05060b 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.55;
  will-change: transform;
  animation: drift 24s ease-in-out infinite alternate;
}
.orb-a {
  width: 430px; height: 430px;
  top: -170px; left: -130px;
  background: radial-gradient(circle, var(--brand) 0%, transparent 66%);
}
.orb-b {
  width: 380px; height: 380px;
  top: 40px; right: -170px;
  background: radial-gradient(circle, var(--brand3) 0%, transparent 66%);
  animation-delay: -7s;
  opacity: 0.45;
}
.orb-c {
  width: 480px; height: 480px;
  bottom: -260px; left: 12%;
  background: radial-gradient(circle, var(--brand2) 0%, transparent 66%);
  animation-delay: -12s;
  opacity: 0.30;
}
.orb-d {
  width: 320px; height: 320px;
  bottom: 8%; right: -120px;
  background: radial-gradient(circle, #2dd4bf 0%, transparent 66%);
  animation-delay: -3s;
  opacity: 0.22;
}

@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(26px, 30px, 0) scale(1.08); }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--hair);
  background: linear-gradient(180deg, rgba(8, 10, 18, 0.88), rgba(8, 10, 18, 0.52));
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}
.topbar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand3));
  color: #0b0e1a;
  box-shadow: 0 8px 22px -10px color-mix(in srgb, var(--brand) 70%, transparent);
}
.brand small {
  display: block;
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: 0.24em;
  color: var(--faint);
  text-transform: uppercase;
  line-height: 1.2;
}
.top-actions { display: flex; align-items: center; gap: 8px; position: relative; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--hair);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.icon-btn:hover { color: var(--ink); border-color: var(--hair2); }
.icon-btn:active { transform: scale(0.94); }

/* 皮肤弹层 */
.skin-pop {
  position: absolute;
  top: 46px;
  right: 0;
  z-index: 60;
  display: none;
  width: 196px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(14, 18, 30, 0.94);
  border: 1px solid var(--hair2);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}
.skin-pop.open { display: block; animation: pop 0.22s ease both; }
.skin-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 9px;
  font-size: 11px;
  color: var(--muted);
}
.skin-head span { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.16em; color: var(--faint); }
.skin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; justify-items: center; }
.sw {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.2s ease;
}
.sw:active { transform: scale(0.9); }
.sw[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
}

@keyframes pop {
  from { opacity: 0; transform: scale(0.94) translateY(-4px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ---------- 外壳与视图 ---------- */
.shell {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 20px calc(100px + env(safe-area-inset-bottom));
}

.view { display: none; }
.view.active { display: block; animation: viewIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }

@keyframes viewIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 通用排版 ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand2);
}
.kicker.dim { color: var(--faint); }

.display {
  margin: 14px 0 0;
  font-size: clamp(40px, 11.5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.04;
  color: var(--ink);
}
.display.sm { font-size: clamp(30px, 8.4vw, 40px); }
.display .soft { color: rgba(226, 232, 255, 0.55); }

.grad {
  background: linear-gradient(100deg, var(--brand) 0%, var(--brand2) 46%, var(--brand3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: 18px 0 0;
  max-width: 34em;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}
.privacy {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 14px 0 0;
  font-size: 11px;
  color: var(--faint);
}
.privacy svg { flex: none; opacity: 0.8; }

/* ---------- 玻璃表面 ---------- */
.glass {
  background: linear-gradient(165deg, var(--glass-a) 0%, var(--glass-b) 100%);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}
.panel { padding: 16px; border-radius: 20px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid var(--hair2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:active { transform: scale(0.985); }
.btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #0b0e1a;
  font-weight: 700;
  box-shadow: 0 16px 34px -16px color-mix(in srgb, var(--brand) 75%, transparent);
}
.btn.primary:hover { filter: brightness(1.05); }
.btn.ghost { background: rgba(255, 255, 255, 0.035); }
.btn.small {
  width: auto;
  height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
}
.btn.link {
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
}
.btn.link:hover { color: var(--ink); }
.cta-row { display: grid; gap: 8px; margin-top: 24px; }

/* ---------- 上传 ---------- */
.drop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  padding: 17px 17px;
  border-radius: var(--r-lg);
  border: 1px dashed rgba(255, 255, 255, 0.24);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  cursor: pointer;
  transition: border-color 0.22s ease, background 0.22s ease;
}
.drop:hover {
  border-color: color-mix(in srgb, var(--brand) 70%, transparent);
  background: color-mix(in srgb, var(--brand) 9%, rgba(255, 255, 255, 0.02));
}
.drop:active { background: color-mix(in srgb, var(--brand) 14%, transparent); }
.drop-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  color: var(--brand2);
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 32%, transparent);
}
.drop-text { min-width: 0; flex: 1; }
.drop-title { display: block; font-size: 14.5px; font-weight: 600; }
.drop-sub { display: block; margin-top: 3px; font-size: 11px; color: var(--faint); }
.drop-sub b { color: var(--brand2); font-weight: 500; }
.drop-chev { flex: none; color: var(--faint); }

.alert {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 143, 163, 0.35);
  background: rgba(255, 143, 163, 0.08);
  color: #ffc6d1;
  font-size: 11.5px;
  line-height: 1.65;
}

.resume {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-top: 10px;
  padding: 15px 17px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--brand) 34%, transparent);
  background: linear-gradient(120deg,
    color-mix(in srgb, var(--brand) 14%, transparent),
    rgba(255, 255, 255, 0.02));
  text-align: left;
}
.resume b { font-weight: 700; }
.resume small { display: block; margin-top: 2px; font-size: 10.5px; color: var(--faint); }
.resume svg { flex: none; color: var(--brand2); }

/* ---------- 三步 / FAQ ---------- */
.steps { display: grid; gap: 8px; margin-top: 26px; }
.step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 16px;
  border: 1px solid var(--hair);
  background: rgba(255, 255, 255, 0.032);
}
.step .n {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--hair2);
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--brand2);
}
.step b { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.45; }
.step span { display: block; margin-top: 2px; font-size: 10.5px; color: var(--faint); line-height: 1.55; }

.faq { margin-top: 22px; }
.faq details {
  margin-top: 8px;
  padding: 0 15px;
  border-radius: 16px;
  border: 1px solid var(--hair);
  background: rgba(255, 255, 255, 0.028);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  list-style: none;
  font-size: 12px;
  font-weight: 500;
  color: rgba(245, 247, 255, 0.86);
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--mono);
  font-size: 15px;
  color: var(--brand2);
}
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0 0 14px; font-size: 11px; line-height: 1.7; color: var(--muted); }

.footnote {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--hair);
  font-size: 10px;
  line-height: 1.7;
  color: var(--faint);
}

/* ---------- 解析中 ---------- */
.scan-head { padding-top: 26px; }
.ring-wrap {
  position: relative;
  width: 196px;
  height: 196px;
  margin: 30px auto 0;
}
.ring-wrap::before {
  content: "";
  position: absolute;
  inset: -26px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 24%, transparent), transparent 68%);
  filter: blur(10px);
  pointer-events: none;
}
.ring-wrap svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 1.5; }
.ring-fg {
  fill: none;
  stroke: var(--brand);
  stroke-width: 2;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.25s linear;
}
.ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.ring-num { font-size: 48px; font-weight: 800; letter-spacing: -0.055em; line-height: 1; font-variant-numeric: tabular-nums; }
.ring-num small { font-size: 11px; font-weight: 500; color: var(--faint); letter-spacing: 0; }
.ring-stage { font-size: 11px; color: var(--muted); }

.stages { margin: 26px 0 0; padding: 0; list-style: none; }
.stage {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--hair);
  font-size: 11.5px;
  color: var(--muted);
}
.stage .dot {
  width: 7px; height: 7px;
  flex: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}
.stage .txt { flex: 1; min-width: 0; }
.stage .state {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--faint);
}
.stage[data-state="on"] { color: var(--ink); }
.stage[data-state="on"] .dot {
  background: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent);
}
.stage[data-state="on"] .state { color: var(--brand2); }
.stage[data-state="done"] .dot { background: var(--ok); }
.stage[data-state="done"] .state { color: var(--ok); }

.live { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 20px; }
.live div {
  padding: 12px 10px;
  border-radius: 14px;
  border: 1px solid var(--hair);
  background: rgba(255, 255, 255, 0.03);
}
.live span { display: block; font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.14em; color: var(--faint); text-transform: uppercase; }
.live b { display: block; margin-top: 5px; font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }

.scan-actions { margin-top: 26px; }

/* ---------- 报告 ---------- */
.report-head { padding-top: 24px; }
.report-hero {
  position: relative;
  margin-top: 16px;
  padding: 20px;
  border-radius: var(--r-xl);
  overflow: hidden;
}
.report-hero::before {
  content: "";
  position: absolute;
  top: -40%; left: -20%;
  width: 70%; height: 120%;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 30%, transparent), transparent 66%);
  filter: blur(30px);
  pointer-events: none;
}
.hero-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.big { display: flex; align-items: flex-end; gap: 10px; margin-top: 16px; }
.num {
  font-size: clamp(62px, 18.5vw, 88px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.85;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #ffffff 8%, #a9b4d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.num.sm { font-size: 54px; }
.unit {
  padding-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand2);
}
.fun {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 13px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--brand) 34%, transparent);
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  font-size: 10.5px;
  font-weight: 500;
  color: color-mix(in srgb, var(--brand2) 80%, #fff);
}
.meta { margin: 11px 0 0; font-size: 10.5px; color: var(--faint); }
.meta .mono { font-family: var(--mono); }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.tile {
  padding: 12px 10px;
  border-radius: 14px;
  border: 1px solid var(--hair);
  background: rgba(255, 255, 255, 0.04);
}
.tile .lab { display: block; font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.14em; color: var(--faint); text-transform: uppercase; }
.tile b { display: block; margin-top: 5px; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tile small { display: block; margin-top: 2px; font-size: 9.5px; color: var(--faint); }

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 30px 0 10px;
}
.h2 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -0.025em; }
.sec-note { font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; color: var(--faint); text-transform: uppercase; }

/* 设备 */
.dev-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.dev-row:last-child { border-bottom: 0; padding-bottom: 0; }
.dev-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 14px;
  border: 1px solid var(--hair);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  color: var(--brand2);
}
.dev-body { flex: 1; min-width: 0; }
.dev-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.dev-name { min-width: 0; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dev-hours { flex: none; font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.dev-sub { margin-top: 2px; font-size: 9.5px; color: var(--faint); }
.track { height: 4px; margin-top: 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.09); overflow: hidden; }
.track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand2)); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: rgba(255, 255, 255, 0.03);
  font-size: 9.5px;
  color: var(--muted);
}

/* 月度 */
.months { display: flex; align-items: flex-end; gap: 4px; height: 108px; margin-top: 6px; }
.mbar {
  flex: 1;
  min-height: 2px;
  border-radius: 4px 4px 2px 2px;
  background: rgba(255, 255, 255, 0.11);
  transition: height 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.mbar.peak {
  background: linear-gradient(180deg, var(--brand2), var(--brand));
  box-shadow: 0 0 20px color-mix(in srgb, var(--brand) 45%, transparent);
}
.mlabels { display: flex; gap: 4px; margin-top: 6px; }
.mlabels span { flex: 1; text-align: center; font-family: var(--mono); font-size: 8px; color: var(--faint); }

/* 24 小时 */
.chart { width: 100%; height: auto; margin-top: 4px; }
.axis { display: flex; justify-content: space-between; margin-top: 2px; font-family: var(--mono); font-size: 8.5px; color: var(--faint); }
.hour-line { stroke: var(--brand); }
#areaGrad .s1 { stop-color: var(--brand); stop-opacity: 0.38; }
#areaGrad .s2 { stop-color: var(--brand); stop-opacity: 0; }

.split { margin-top: 14px; }
.split-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3px 10px;
  padding: 9px 0;
  border-top: 1px solid var(--hair);
}
.split-row span { font-size: 11px; color: var(--muted); }
.split-row b { font-family: var(--mono); font-size: 11px; font-weight: 500; }
.split-row .bar2 {
  grid-column: 1 / -1;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.split-row .bar2 i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand3), var(--brand));
}

/* 音量 / 最长 */
.note { margin: 12px 0 0; font-size: 10.5px; line-height: 1.75; color: var(--faint); }
.note.strong { color: var(--muted); }

/* ---------- 人格 ---------- */
.persona-head { padding-top: 26px; }
.persona-name {
  margin: 12px 0 0;
  font-size: clamp(40px, 11vw, 54px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.08;
}
.latin {
  margin: 8px 0 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brand2);
}
.motto { margin: 14px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.radar-wrap { display: flex; justify-content: center; padding: 6px 0 0; }
#radar { width: 100%; max-width: 320px; height: auto; }

.block { margin-top: 20px; }
.block .k {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}
.block .k em {
  font-style: normal;
  color: var(--brand2);
}
.block p { margin: 7px 0 0; font-size: 13px; line-height: 1.85; color: rgba(226, 232, 255, 0.82); }

.roster-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hair);
}
.roster-row:last-child { border-bottom: 0; }
.roster-row .idx { font-family: var(--mono); font-size: 9px; color: var(--faint); }
.roster-row .nm { flex: 1; font-size: 12.5px; color: var(--muted); }
.roster-row.on .nm { color: var(--brand2); font-weight: 600; }
.roster-row .you { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.16em; color: var(--brand2); }

/* ---------- 海报 ---------- */
.seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 18px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: rgba(255, 255, 255, 0.04);
}
.seg button {
  height: 34px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--faint);
  transition: color 0.2s ease, background 0.2s ease;
}
.seg button[aria-pressed="true"] { background: var(--ink); color: #0b0e1a; font-weight: 600; }

.poster-frame {
  margin-top: 14px;
  padding: 8px;
  border-radius: 24px;
  border: 1px solid var(--hair2);
  background: linear-gradient(160deg, var(--glass-a), var(--glass-b));
}
#poster { display: block; width: 100%; height: auto; border-radius: 17px; }

.share-status {
  min-height: 15px;
  margin: 10px 0 0;
  text-align: center;
  font-size: 10.5px;
  color: var(--faint);
}
.caption-box { margin-top: 18px; }
.caption-box .lab { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.16em; color: var(--faint); text-transform: uppercase; }
.caption-box p { margin: 7px 0 0; font-size: 11.5px; line-height: 1.8; color: var(--muted); white-space: pre-wrap; }

.crumb {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 18px;
  font-size: 11px;
  color: var(--faint);
}

/* 浮动分享 */
.fab {
  position: fixed;
  right: max(18px, calc((100vw - 560px) / 2 + 18px));
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 35;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #0b0e1a;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 18px 40px -16px color-mix(in srgb, var(--brand) 80%, transparent);
}
.fab:active { transform: scale(0.96); }

/* ---------- 响应式 ---------- */
@media (min-width: 720px) {
  .shell { max-width: 620px; }
  .topbar-in { max-width: 620px; }
  .display { font-size: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  .orb, .view.active, .skin-pop.open { animation: none !important; }
  .btn, .drop, .mbar, .ring-fg { transition: none !important; }
}

/* ============================================================
   付费墙 / 支付面板 / 回执 / 法务
   ============================================================ */
.locked-preview { margin-top: 28px; }

.locked-card {
  border: 1px solid color-mix(in srgb, var(--brand) 38%, transparent);
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--brand) 14%, transparent), rgba(255, 255, 255, 0.02));
}
.locked-head { display: flex; align-items: center; gap: 12px; }
.lock-badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  color: var(--brand2);
  border: 1px solid color-mix(in srgb, var(--brand) 36%, transparent);
  background: color-mix(in srgb, var(--brand) 14%, transparent);
}
.locked-lead { margin: 12px 0 0; font-size: 12px; line-height: 1.7; color: var(--muted); }

.benefits { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.benefits li { display: flex; align-items: flex-start; gap: 8px; font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.benefits li svg { flex: none; margin-top: 1px; color: var(--ok); }

.pay-price { display: flex; align-items: baseline; gap: 10px; margin-top: 18px; }
.pay-price span { font-size: 38px; font-weight: 800; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.pay-price small { font-size: 10.5px; color: var(--faint); }

.locked-tease {
  margin-top: 10px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--hair);
  overflow: hidden;
  filter: blur(3.5px);
  opacity: 0.55;
  pointer-events: none;
}
.tease-bars { display: flex; align-items: flex-end; gap: 4px; height: 64px; }
.tease-bars i { flex: 1; border-radius: 3px; background: linear-gradient(180deg, var(--brand2), var(--brand)); opacity: 0.6; }
.tease-line { height: 30px; margin-top: 10px; border-radius: 8px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02)); }

.receipt {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--ok) 38%, transparent);
  background: color-mix(in srgb, var(--ok) 9%, transparent);
}
.receipt .tick {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ok) 20%, transparent);
  color: var(--ok);
}
.receipt b { display: block; font-size: 12px; font-weight: 600; }
.receipt small { display: block; margin-top: 2px; font-size: 9.5px; color: var(--faint); }

/* 支付抽屉 */
.pay-overlay { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; }
.pay-backdrop { position: absolute; inset: 0; background: rgba(4, 6, 12, 0.68); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pay-sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  padding: 10px 20px calc(22px + env(safe-area-inset-bottom));
  border-radius: 26px 26px 0 0;
  border: 1px solid var(--hair2);
  border-bottom: 0;
  background: linear-gradient(180deg, rgba(20, 26, 42, 0.985), rgba(10, 13, 22, 0.995));
  box-shadow: 0 -30px 80px -30px rgba(0, 0, 0, 0.9);
  animation: sheetUp 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes sheetUp {
  from { transform: translateY(28px); opacity: 0.5; }
  to { transform: translateY(0); opacity: 1; }
}
.pay-handle { width: 38px; height: 4px; margin: 0 auto 14px; border-radius: 999px; background: var(--hair2); }
.pay-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pay-head h2 { margin: 6px 0 0; font-size: 22px; letter-spacing: -0.025em; }
.pay-status { min-height: 16px; margin: 10px 0 0; font-size: 10.5px; line-height: 1.6; color: var(--faint); text-align: center; }
.pay-status.error { color: var(--bad); }
.pay-status.ok { color: var(--ok); }
.pay-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent);
  background: color-mix(in srgb, var(--warn) 12%, transparent);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--warn);
  vertical-align: middle;
}

/* 法务 */
.legal h2 { margin: 24px 0 6px; font-size: 15px; font-weight: 700; letter-spacing: -0.015em; }
.legal p, .legal li { font-size: 11.5px; line-height: 1.85; color: var(--muted); }
.legal p { margin: 0; }
.legal ul { margin: 6px 0 0; padding-left: 18px; }
.legal li { margin-top: 4px; }

/* 轻提示 */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 120;
  max-width: 80vw;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--hair2);
  background: rgba(20, 26, 42, 0.96);
  color: var(--ink);
  font-size: 11.5px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateX(-50%) translateY(4px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }
