/* ─── Neta Arena · 世界观写作榜 ───
   视觉基调：Neta Studio 白皮亮色系统（home.module.css 提取）
   - 羊皮纸 desk #FFFAEC / 暖棕墨 ink #3B2A20 / 深松绿 sage #315948
   - 标题 Libre Baskerville + Noto Serif SC · 正文 Nunito Sans · 打字机 Special Elite/Courier Prime
   - 材质隐喻卡（card.css 提取）：明信片 / 剪报 / 便签 + 四层物理阴影
   - 动效基调 cubic-bezier(.16,1,.3,1)；金色辉光揭晓（canvas-new-item-pulse） */

:root {
  --desk: #fffaec;
  --desk-elevated: #fff6e0;
  --surface-1: #fbf4e4;
  --surface-2: #f4ead6;
  --surface-3: #ecdfc6;
  --ink: #3b2a20;
  --ink-2: #6e5c44;
  --ink-3: #9a8870;
  --ink-hint: #c2b6a2;
  --sage: #315948;
  --sage-hover: #26463a;
  --sage-pressed: #1c342b;
  --sage-soft: rgba(49, 89, 72, .12);
  --gold: #c9a961;
  --gold-hover: #d9bb74;
  --gold-deep: #8c7232;
  --cream: #f4ecd9;
  --paper: #ece1d2;
  --paper-aged: #d8c9b0;
  --hairline: rgba(59, 42, 32, .1);
  --hairline-strong: rgba(59, 42, 32, .16);
  --danger: #8b2e1f;
  --warm: #e8a33d;
  --warm-ink: #8a5a10;
  --serif: "Libre Baskerville", "Noto Serif SC", Georgia, serif;
  --cjk-serif: "Noto Serif SC", "Libre Baskerville", Georgia, serif;
  --body: "Nunito Sans", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  --type: "Special Elite", "Courier Prime", "Noto Serif SC", monospace;
  --ease-paper: cubic-bezier(.16, 1, .3, 1);
  --maxw: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--desk);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.12 0 0 0 0 0.09 0 0 0 0 0.06 0 0 0 0.45 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/></svg>");
  background-size: 360px 360px;
  opacity: 1;
}
/* 羊皮纸噪点层 */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.12 0 0 0 0 0.09 0 0 0 0 0.06 0 0 0 0.45 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/></svg>");
  background-size: 360px 360px;
  opacity: .05;
  mix-blend-mode: multiply;
}
button, select { font-family: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--sage-soft); }

/* ═══ 顶栏 ═══ */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 250, 236, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.topbar-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 9px; }
.brand-mark { width: 22px; height: 22px; color: var(--sage); }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.brand-sub { font-size: 9.5px; color: var(--ink-3); letter-spacing: .18em; font-weight: 700; margin-top: 3px; }
.topnav { display: flex; gap: 20px; margin-left: 8px; }
.topnav a { font-size: 14px; color: var(--ink-2); font-weight: 600; padding: 4px 2px; border-bottom: 2px solid transparent; }
.topnav a:hover { color: var(--ink); }
.topnav a.active { color: var(--ink); border-bottom-color: var(--sage); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang {
  background: none; border: 1px solid var(--hairline-strong); border-radius: 999px;
  padding: 5px 12px; font-size: 12.5px; color: var(--ink-2); cursor: pointer;
  transition: border-color .15s, color .15s;
}
.lang:hover { border-color: var(--ink-3); color: var(--ink); }
/* Studio CTA：金渐变按钮（DESIGN.md Plan CTA） */
.cta-start {
  background: linear-gradient(179deg, #f3e6c8 0%, #e9d9b4 100%);
  color: #1c140d; font-weight: 800; font-size: 13px;
  padding: 8px 18px; border-radius: 999px;
  border: 1px solid #c4a96f;
  box-shadow: inset 0 1px 0 rgba(255, 247, 224, .4), 0 2px 5px rgba(59, 42, 32, .12);
  transition: transform .18s var(--ease-paper), box-shadow .18s;
}
.cta-start:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,247,224,.5), 0 4px 10px rgba(59,42,32,.18); }

/* ═══ 赛道 Tab ═══ */
.tracks { border-bottom: 1px solid var(--hairline); background: var(--desk-elevated); position: relative; z-index: 1; }
.tracks-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 10px 24px 0;
  display: flex; gap: 6px; overflow-x: auto;
}
.track {
  background: none; border: none; border-bottom: 2px solid transparent;
  padding: 8px 14px 12px; font-size: 14px; font-weight: 700; color: var(--ink-2);
  cursor: pointer; white-space: nowrap; transition: color .15s;
}
.track:hover:not(:disabled) { color: var(--ink); }
.track.active { color: var(--ink); border-bottom-color: var(--sage); }
.track:disabled { color: var(--ink-hint); cursor: not-allowed; }
.soon {
  font-size: 9px; font-weight: 800; color: var(--warm-ink); background: #fdf1d8;
  border: 1px solid #f3dcab; border-radius: 999px; padding: 1px 6px; margin-left: 4px;
  letter-spacing: .04em;
}

/* ═══ 版面 ═══ */
.page { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* 页首：等高线 hero（home.module.css heroBg） */
.intro { position: relative; padding: 40px 0 26px; overflow: hidden; }
.intro::before {
  content: ""; position: absolute; inset: -60px 0 0 0; z-index: 0; pointer-events: none; opacity: .5;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(201, 169, 97, .12), transparent 55%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='600'><g fill='none' stroke='%23C9A961' stroke-width='1' opacity='0.12'><path d='M30 120 Q120 80 210 130 T390 120 T570 150'/><path d='M20 220 Q140 180 250 230 T470 210 T600 250'/><path d='M40 330 Q160 300 280 340 T520 320 T600 360'/><path d='M10 440 Q120 410 230 450 T450 430 T590 470'/><path d='M60 540 Q180 510 300 545 T540 525'/><circle cx='160' cy='250' r='46'/><circle cx='430' cy='360' r='64'/><circle cx='300' cy='160' r='30'/></g></svg>");
  background-size: cover, 720px 720px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
}
.intro-inner { position: relative; z-index: 1; }
.intro-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  line-height: 1.14;
  text-wrap: balance;
  color: var(--ink);
  text-shadow: 0 2px 0 rgba(255, 255, 255, .42);
}
.head-accent { color: var(--sage); font-weight: 700; }
/* PGC 标签 chips（twTag / twTagLead） */
.stat-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font-family: var(--body); font-size: 10.5px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 6px;
  color: #fff; background: rgba(16, 11, 7, .55);
  border: 1px solid rgba(255, 255, 255, .24);
  backdrop-filter: blur(6px);
}
.chip.small { font-size: 9.5px; padding: 3px 8px; }
.chip-gold { color: #fff; background: rgba(49, 89, 72, .92); border-color: transparent; }
.chip-warm { color: var(--warm-ink); background: #fdf1d8; border-color: #f3dcab; }
.intro-desc { margin: 14px 0 18px; max-width: 780px; color: var(--ink-2); font-size: 14.5px; }
.intro-desc strong { color: var(--ink); font-weight: 800; }

.sub-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--hairline); }
.sub {
  background: none; border: none; border-bottom: 2px solid transparent;
  padding: 8px 14px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); cursor: pointer;
  transition: color .15s;
}
.sub:hover:not(:disabled) { color: var(--ink); }
.sub.active { color: var(--ink); border-bottom-color: var(--sage); }
.sub:disabled { color: var(--ink-hint); cursor: not-allowed; }

/* ═══ 榜单区 ═══ */
.board { margin-top: 24px; }
.board-grid { display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 20px; align-items: start; }
.board-main, .board-side { min-width: 0; }
@media (max-width: 900px) { .board-grid { grid-template-columns: 1fr; } }

.chart-card {
  background: rgba(255, 255, 255, .62);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 8px 24px rgba(20, 16, 10, .07);
}
.chart-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.chart-title { font-family: var(--serif); font-weight: 700; font-size: 18px; }
.chart-sub { font-family: var(--body); font-size: 12px; font-weight: 700; color: var(--ink-3); margin-left: 6px; }
.toolbar-right { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ctl {
  background: var(--desk-elevated); border: 1px solid var(--hairline-strong); border-radius: 999px;
  padding: 6px 12px; font-size: 12.5px; color: var(--ink); font-weight: 600; cursor: pointer;
}
.ctl:hover { border-color: var(--ink-3); }
.seg { display: inline-flex; border: 1px solid var(--hairline-strong); border-radius: 999px; overflow: hidden; }
.seg-btn {
  background: transparent; border: none; padding: 6px 12px; font-size: 12px; font-weight: 700;
  color: var(--ink-2); cursor: pointer; transition: background .15s, color .15s;
}
.seg-btn.active { background: var(--sage); color: var(--cream); }
.ghost {
  background: none; border: 1px solid var(--hairline-strong); border-radius: 999px;
  padding: 6px 12px; font-size: 12px; font-weight: 700; color: var(--ink-2); cursor: pointer;
  transition: border-color .15s, color .15s, transform .18s var(--ease-paper);
}
.ghost:hover { border-color: var(--sage); color: var(--sage); }

.legend-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 12px; color: var(--ink-2); font-weight: 600; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sage); display: inline-block; box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.legend-note { margin-left: auto; color: var(--ink-3); font-size: 11px; font-weight: 600; }

/* 榜单：designarena 式横条（分数+条+名次） */
.rank-list { list-style: none; }
.rank-item {
  display: grid; grid-template-columns: 34px 118px 1fr 74px;
  align-items: center; gap: 12px;
  padding: 8px 10px; margin-bottom: 6px;
  border-radius: 10px;
  transition: background .15s;
}
.rank-item:hover { background: rgba(236, 225, 210, .5); }
.rank-item.faded { opacity: .38; }
.rank-num {
  font-size: 14px; font-weight: 800; text-align: center; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.rank-num.top1 { color: var(--gold-deep); }
.rank-num.top2 { color: #8f877a; }
.rank-num.top3 { color: #a06a3a; }
.rank-body { min-width: 0; }
.rank-name { font-weight: 800; font-size: 13.5px; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tier-chip {
  font-style: normal; font-size: 8.5px; font-weight: 800; letter-spacing: .08em;
  color: var(--sage); background: var(--sage-soft); border-radius: 4px; padding: 1.5px 5px;
  flex: 0 0 auto;
}
.rank-track { position: relative; height: 26px; border-radius: 7px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--hairline); }
.rank-fill {
  position: absolute; inset: 0 auto 0 0; border-radius: 6px;
  background: linear-gradient(180deg, #3c6550 0%, #315948 55%, #26463a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
  transition: width .6s var(--ease-paper);
  min-width: 8px;
}
.rank-fill.win { background: linear-gradient(180deg, #d9bb74 0%, #c9a961 55%, #a98838 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.rank-fill.top1 { background: linear-gradient(180deg, #d9bb74 0%, #c9a961 60%, #a98838 100%); }
.rank-fill.top2 { background: linear-gradient(180deg, #cfc9bc 0%, #b3ada0 60%, #948e82 100%); }
.rank-fill.top3 { background: linear-gradient(180deg, #c98f5a 0%, #b5793f 60%, #96622f 100%); }
.rank-score { text-align: right; font-variant-numeric: tabular-nums; }
.rank-val { font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.rank-ci { display: block; font-size: 10px; color: var(--ink-3); font-weight: 600; margin-top: 1px; }

/* 场景透视矩阵 */
.matrix-card { margin-top: 18px; border-top: 1px dashed var(--hairline-strong); padding-top: 16px; min-width: 0; max-width: 100%; }
.matrix-wrap { overflow-x: auto; }
.matrix { border-collapse: separate; border-spacing: 4px; width: 100%; min-width: 560px; }
.matrix th, .matrix td { padding: 0; }
.matrix thead th {
  font-size: 10.5px; font-weight: 800; color: var(--ink-2); letter-spacing: .02em;
  padding: 6px 4px; text-align: center; white-space: nowrap;
  border-bottom: 1px solid var(--hairline-strong);
}
.matrix thead th em { display: block; font-style: normal; font-size: 9px; color: var(--ink-3); font-weight: 700; }
.matrix tbody th {
  font-size: 12px; font-weight: 800; text-align: left; padding-right: 10px; white-space: nowrap;
}
.matrix tbody th .tier-chip { margin-left: 4px; }
.matrix td { text-align: center; }
.cell {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px; font-size: 12.5px; font-weight: 800;
  cursor: default; transition: transform .18s var(--ease-paper);
}
.cell.ok { background: var(--sage-soft); color: var(--sage); }
.cell.bad { background: rgba(139, 46, 31, .1); color: var(--danger); }
.cell.miss { color: var(--ink-hint); }
.cell:hover { transform: translateY(-2px); }
.matrix tbody tr:hover td { background: rgba(236, 225, 210, .4); border-radius: 8px; }
.matrix-note { margin-top: 10px; font-size: 11.5px; color: var(--ink-3); line-height: 1.6; }

/* ═══ 侧栏 ═══ */
.panel {
  background: rgba(255, 255, 255, .62);
  border: 1px solid var(--hairline); border-radius: 18px; padding: 18px;
  box-shadow: 0 8px 24px rgba(20, 16, 10, .07);
  margin-bottom: 16px;
}
.panel h3 { font-family: var(--serif); font-size: 15.5px; font-weight: 700; }
.panel-sub { font-size: 11.5px; color: var(--ink-3); margin: 5px 0 12px; font-weight: 600; }
.panel-tip { margin-top: 10px; font-size: 11px; color: var(--ink-3); line-height: 1.65; font-weight: 600; }

/* 偏好收集 */
.pref-status {
  display: inline-block; font-size: 11.5px; font-weight: 800;
  padding: 4px 12px; border-radius: 999px; margin-bottom: 10px;
}
.pref-status.collecting { color: var(--warm-ink); background: #fdf1d8; border: 1px solid #f3dcab; }
.pref-status.provisional { color: var(--sage); background: var(--sage-soft); border: 1px solid rgba(49,89,72,.3); }
.pref-count { font-size: 13px; color: var(--ink-2); font-weight: 700; }
.pref-count b { font-size: 22px; color: var(--ink); font-variant-numeric: tabular-nums; }
.pref-track { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin: 8px 0 12px; border: 1px solid var(--hairline); }
.pref-track > div { height: 100%; background: linear-gradient(180deg, #d9bb74, #c9a961); border-radius: 999px; transition: width .5s var(--ease-paper); }
.pref-table { border-top: 1px dashed var(--hairline-strong); padding-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.pref-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; font-size: 12.5px; align-items: baseline; }
.pref-row .pm { font-weight: 800; }
.pref-row .pe { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink-2); }
.pref-row .pw { font-size: 10.5px; color: var(--ink-3); font-weight: 700; }

/* 投票行为 */
.vote-bars { display: flex; flex-direction: column; gap: 7px; margin-bottom: 10px; }
.vb-row { display: grid; grid-template-columns: 52px 1fr 30px; gap: 8px; align-items: center; font-size: 11.5px; font-weight: 800; }
.vb-row .vb-name { color: var(--ink-2); }
.vb-track { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--hairline); }
.vb-fill { height: 100%; border-radius: 999px; background: var(--sage); transition: width .5s var(--ease-paper); }
.vb-fill.timeout { background: var(--warm); }
.vb-fill.skip { background: var(--ink-hint); }
.vb-num { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.vote-ms { font-family: var(--type); font-size: 11.5px; color: var(--ink-3); letter-spacing: .02em; }

/* 加入对战 */
.btn-primary {
  display: block; text-align: center;
  background: linear-gradient(179deg, #f3e6c8 0%, #e9d9b4 100%);
  color: #1c140d; font-weight: 800; font-size: 14px;
  border: 1px solid #c4a96f; border-radius: 999px; padding: 11px 14px;
  box-shadow: inset 0 1px 0 rgba(255, 247, 224, .4), 0 4px 6px rgba(0, 0, 0, .14);
  transition: transform .18s var(--ease-paper), box-shadow .18s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,247,224,.5), 0 8px 18px rgba(59,42,32,.18); }
.join-stats { display: flex; gap: 8px; margin-top: 14px; }
.join-stats > div {
  flex: 1; background: var(--surface-2); border: 1px solid var(--hairline); border-radius: 10px;
  padding: 10px 6px; text-align: center;
}
.join-stats b { display: block; font-size: 16px; font-variant-numeric: tabular-nums; }
.join-stats span { font-size: 9.5px; color: var(--ink-3); font-weight: 700; }

/* ═══ 对战区 ═══ */
.battle {
  margin-top: 48px;
  background: rgba(255, 255, 255, .62);
  border: 1px solid var(--hairline); border-radius: 22px; padding: 28px;
  box-shadow: 0 8px 24px rgba(20, 16, 10, .07);
  position: relative;
}
.battle-head h2 { font-family: var(--serif); font-size: 21px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.battle-prompt {
  margin-top: 12px; background: var(--surface-1); border: 1px dashed var(--hairline-strong);
  border-radius: 12px; padding: 12px 16px; font-size: 14px; color: var(--ink-2);
}
.battle-prompt::before { content: "命题"; font-weight: 800; color: var(--sage); margin-right: 8px; font-size: 11px; letter-spacing: .1em; }

.battle-stage { display: grid; grid-template-columns: 96px 1fr; gap: 20px; margin-top: 24px; align-items: start; position: relative; }
@media (max-width: 720px) { .battle-stage { grid-template-columns: 1fr; } }

.timer-box { text-align: center; position: sticky; top: 90px; }
.ring { width: 84px; height: 84px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--surface-3); stroke-width: 7; }
.ring-fg { fill: none; stroke: var(--sage); stroke-width: 7; stroke-linecap: round; transition: stroke-dashoffset 1s linear, stroke .3s; }
.ring-fg.low { stroke: var(--warm); }
.ring-fg.critical { stroke: var(--danger); }
.timer-num { font-size: 26px; font-weight: 800; margin-top: -60px; font-variant-numeric: tabular-nums; font-family: var(--serif); }
.timer-cap { font-size: 10.5px; color: var(--ink-3); margin-top: 2px; font-weight: 700; letter-spacing: .1em; }
.btn-start {
  margin-top: 14px;
  background: linear-gradient(179deg, #f3e6c8 0%, #e9d9b4 100%);
  color: #1c140d; border: 1px solid #c4a96f; border-radius: 999px;
  padding: 9px 12px; font-size: 12.5px; font-weight: 800; cursor: pointer; width: 100%;
  box-shadow: inset 0 1px 0 rgba(255, 247, 224, .4), 0 2px 5px rgba(59, 42, 32, .12);
  transition: transform .18s var(--ease-paper);
}
.btn-start:hover { transform: translateY(-1px); }

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 720px) { .cards { grid-template-columns: 1fr; } }

/* ⭐ 材质隐喻卡：明信片 PostCard（card.css） */
.world-card {
  position: relative;
  background: #eceee8;
  padding: 8px 8px 12px;
  border-radius: 4px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .12),
    inset 0 1px 0 rgba(255, 255, 255, .55),
    inset 0 -2px 0 rgba(0, 0, 0, .22),
    0 1px 2px rgba(20, 16, 10, .3),
    0 6px 14px rgba(20, 16, 10, .2),
    0 18px 32px rgba(20, 16, 10, .14);
  transform: rotate(var(--tilt, 0deg));
  transition: transform .3s var(--ease-paper), box-shadow .3s var(--ease-paper), filter .3s var(--ease-paper), z-index 0s .22s;
  cursor: pointer;
}
.world-card:hover {
  transform: rotate(0deg) translateY(-5px);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .14),
    inset 0 1px 0 rgba(255, 255, 255, .6),
    inset 0 -2px 0 rgba(0, 0, 0, .24),
    0 2px 4px rgba(20, 16, 10, .32),
    0 14px 28px rgba(20, 16, 10, .24),
    0 32px 56px rgba(20, 16, 10, .16);
  z-index: 3;
}
.world-card.voted {
  z-index: 4;
  box-shadow:
    0 0 0 2px rgba(201, 169, 97, .85), 0 0 0 1px rgba(0, 0, 0, .12),
    inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(0, 0, 0, .22),
    0 1px 2px rgba(20, 16, 10, .3), 0 6px 14px rgba(20, 16, 10, .2), 0 18px 32px rgba(20, 16, 10, .14);
}
/* 金色辉光揭晓（canvas-new-item-pulse） */
.world-card.glow-winner {
  animation: winner-pulse 1.6s ease-out both;
}
@keyframes winner-pulse {
  0% { filter: drop-shadow(0 0 0 transparent); }
  18% {
    filter: drop-shadow(0 0 14px color-mix(in srgb, #c9a961 75%, transparent))
            drop-shadow(0 0 30px color-mix(in srgb, #c9a961 35%, transparent));
  }
  55% { filter: drop-shadow(0 0 10px color-mix(in srgb, #c9a961 45%, transparent)); }
  100% { filter: drop-shadow(0 0 0 transparent); }
}

/* 黄铜图钉（polPin） */
.pin {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  z-index: 4; width: 17px; height: 17px; border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #ecd9a3 0%, #c9a961 40%, #8c7232 100%);
  box-shadow: 0 4px 7px rgba(0, 0, 0, .4), inset 0 -2px 3px rgba(0, 0, 0, .35), inset 0 2px 2px rgba(255, 255, 255, .4);
}
.pin::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 5px; height: 5px;
  border-radius: 50%; transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, .5);
}
.pin-b { background: radial-gradient(circle at 36% 30%, #e8d5a8 0%, #b89a55 40%, #7a6530 100%); }

/* 标签 chips（twTag 首标签金绿） */
.card-tag {
  position: absolute; top: 14px; left: 14px; z-index: 5;
  font-family: var(--body); font-size: 10px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: rgba(49, 89, 72, .92);
  padding: 4px 9px; border-radius: 6px; backdrop-filter: blur(6px);
}
.card-tag.tag-b { background: rgba(140, 114, 50, .92); }

.card-content { position: relative; min-height: 190px; }
.world-name {
  font-family: var(--cjk-serif);
  font-size: 19px; font-weight: 700; line-height: 1.25;
  padding: 34px 10px 0; text-align: center;
}
.world-tagline {
  font-family: var(--type); font-style: italic;
  font-size: 12.5px; color: #4a443c; padding: 6px 12px 10px; text-align: center; line-height: 1.5;
}
.world-facts { list-style: none; padding: 0 12px; }
.world-facts li {
  font-family: var(--cjk-serif); font-size: 12.8px; font-weight: 600; color: #3d382f;
  padding: 5px 0 5px 18px; position: relative; line-height: 1.55;
}
.world-facts li::before { content: "◈"; position: absolute; left: 0; color: #8a8478; font-size: 10px; top: 9px; }
.world-conflict {
  margin: 10px 12px 2px; font-size: 12.4px; color: #4a443c; font-family: var(--cjk-serif);
  background: #f7f4ec; border-left: 3px solid #b89a55; padding: 8px 10px; border-radius: 0 6px 6px 0;
}
.world-conflict b { color: var(--sage); font-weight: 800; }

/* ⭐ 卡背遮罩：剪报材质（newspaper-clip）+ 蜡封 */
.card-veil {
  position: absolute; inset: 0; z-index: 6;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background-color: #f4f1ea;
  background-image:
    radial-gradient(rgba(0, 0, 0, .08) .5px, transparent .5px),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='600'><g fill='none' stroke='%23B89A55' stroke-width='1' opacity='0.10'><path d='M30 120 Q120 80 210 130 T390 120 T570 150'/><path d='M20 220 Q140 180 250 230 T470 210 T600 250'/><path d='M40 330 Q160 300 280 340 T520 320 T600 360'/><circle cx='160' cy='250' r='46'/><circle cx='430' cy='360' r='64'/></g></svg>");
  background-size: 2px 2px, auto;
  background-blend-mode: normal, overlay;
  border-radius: 3px;
  border-top: 1px solid rgba(0, 0, 0, .1);
  border-bottom: 1px solid rgba(0, 0, 0, .1);
  overflow: hidden;
  transition: opacity .45s var(--ease-paper), transform .45s var(--ease-paper);
}
.card-veil.hidden-veil { opacity: 0; transform: translateY(-100%); pointer-events: none; }
.veil-seal {
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 26px; font-weight: 700; color: #f4ecd9;
  background: radial-gradient(circle at 36% 30%, #47705d 0%, #315948 45%, #1c342b 100%);
  box-shadow: 0 4px 10px rgba(20, 16, 10, .3), inset 0 2px 3px rgba(255,255,255,.25), inset 0 -3px 4px rgba(0,0,0,.3);
  border: 2px dashed rgba(244, 236, 217, .5);
  transform: rotate(-6deg);
}
.veil-text { font-size: 13px; color: #6e5c44; font-weight: 800; }
.veil-sub { font-family: var(--type); font-size: 10px; letter-spacing: .22em; color: #9a8870; }

/* 投票按钮 */
.vote-row { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; position: relative; z-index: 2; }
.vote-btn {
  flex: 1; min-width: 170px;
  background: linear-gradient(179deg, #f3e6c8 0%, #e9d9b4 100%);
  color: #1c140d; border: 1px solid #c4a96f; border-radius: 14px;
  padding: 14px 16px; font-size: 14.5px; font-weight: 800; cursor: pointer; text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 247, 224, .4), 0 4px 6px rgba(0, 0, 0, .14);
  transition: transform .2s var(--ease-paper), box-shadow .2s var(--ease-paper);
}
.vote-btn small { display: block; font-size: 11px; font-weight: 700; color: #6e5c44; margin-top: 2px; }
.vote-btn:hover { transform: translateY(-2px) rotate(-.4deg); box-shadow: inset 0 1px 0 rgba(255,247,224,.5), 0 10px 22px rgba(59,42,32,.22); }
.vote-btn:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.vote-btn.muted {
  background: rgba(255, 255, 255, .6); color: var(--ink-2);
  border: 1px solid var(--hairline-strong); font-weight: 700;
  box-shadow: none;
}
.vote-btn.muted small { color: var(--ink-3); }
.vote-btn.muted:hover { border-color: var(--ink-3); background: var(--desk-elevated); transform: translateY(-2px); }

/* 收集状态 */
.collector-line { margin-top: 16px; display: flex; align-items: center; gap: 10px; }
.collector-status { font-size: 12px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.collector-status::before { content: "●"; font-size: 9px; }
.collector-status.connecting::before { color: var(--warm); }
.collector-status.pending::before { color: var(--sage); animation: blink 1.2s ease-in-out infinite; }
.collector-status.ok::before { color: var(--sage); }
.collector-status.off::before { color: var(--ink-hint); }
@keyframes blink { 50% { opacity: .35; } }

.reveal { margin-top: 18px; border-top: 1px dashed var(--hairline-strong); padding-top: 16px; }
.reveal-line { font-size: 14px; color: var(--ink); margin-bottom: 12px; font-weight: 700; }
.reveal-models { display: flex; gap: 10px; flex-wrap: wrap; }
.reveal-chip {
  border: 1px solid var(--hairline-strong); border-radius: 12px; padding: 10px 14px; font-size: 12px;
  background: rgba(255, 255, 255, .7); box-shadow: 0 4px 12px rgba(20, 16, 10, .08);
  transition: transform .2s var(--ease-paper);
}
.reveal-chip:hover { transform: translateY(-2px); }
.reveal-chip b { display: block; font-size: 14px; font-family: var(--serif); }
.reveal-chip span { color: var(--ink-2); font-weight: 700; }
.reveal-chip.winner { border-color: var(--gold); background: #fdf6e3; box-shadow: 0 0 0 2px rgba(201, 169, 97, .35), 0 8px 20px rgba(20,16,10,.14); }
#replayBtn { margin-top: 14px; }

/* ═══ FAQ / Footer ═══ */
.faq { margin-top: 48px; }
.faq h2 { font-family: var(--serif); font-size: 20px; margin-bottom: 14px; font-weight: 700; }
.faq details {
  background: rgba(255, 255, 255, .62); border: 1px solid var(--hairline); border-radius: 14px;
  padding: 14px 18px; margin-bottom: 8px; box-shadow: 0 4px 12px rgba(20, 16, 10, .05);
}
.faq summary { font-weight: 800; font-size: 14px; cursor: pointer; }
.faq details p { margin-top: 8px; font-size: 13.5px; color: var(--ink-2); max-width: 760px; line-height: 1.7; }
.faq details strong { color: var(--ink); }

.footer {
  margin-top: 56px; border-top: 1px solid var(--hairline); padding: 22px 0 40px;
  display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--ink-3);
  font-weight: 600;
}
.footer-links { display: flex; gap: 16px; }
.footer-links a:hover { color: var(--sage); }

/* ═══ 角色配音赛道 ═══ */
:root {
  --voice-ink: #203b45;
  --voice-teal: #2e6670;
  --voice-teal-soft: rgba(46, 102, 112, .11);
  --voice-coral: #a84c3d;
  --voice-coral-soft: rgba(168, 76, 61, .1);
  --voice-blue-soft: #e7f0f0;
}
.voice-track { display: none; scroll-margin-top: 78px; }
body[data-track="voice"] .world-track { display: none; }
body[data-track="voice"] .voice-track { display: block; }
body[data-track="world"] .voice-track { display: none; }
.track-unlocked { color: var(--voice-ink); }
.track-unlocked:hover { color: var(--voice-teal); }
.track-new {
  display: inline-block; margin-left: 4px; padding: 2px 6px;
  border: 1px solid rgba(46, 102, 112, .28); border-radius: 5px;
  color: var(--voice-teal); background: var(--voice-teal-soft);
  font-size: 9px; font-weight: 800; letter-spacing: .04em;
}
.voice-accent { color: var(--voice-teal); }
.voice-intro {
  position: relative; padding: 40px 0 28px;
  border-bottom: 1px solid var(--hairline);
  background: linear-gradient(110deg, rgba(231, 240, 240, .58), rgba(255, 250, 236, .1) 64%);
}
.voice-intro-inner { position: relative; z-index: 1; }
.voice-kicker {
  color: var(--voice-teal); font-family: var(--type); font-size: 10px;
  font-weight: 700; letter-spacing: .18em; line-height: 1.4;
  text-transform: uppercase; margin-bottom: 9px;
}
.voice-intro .intro-desc { max-width: 820px; }
.voice-signal-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(46, 102, 112, .22);
  border-bottom: 1px solid rgba(46, 102, 112, .22);
  margin-top: 24px;
}
.voice-signal-strip > div {
  min-width: 0; padding: 13px 14px 12px;
  border-left: 1px solid rgba(46, 102, 112, .16);
}
.voice-signal-strip > div:first-child { border-left: 0; }
.voice-signal-strip b {
  display: block; color: var(--voice-ink); font-family: var(--serif);
  font-size: 23px; line-height: 1.1; font-variant-numeric: tabular-nums;
}
.voice-signal-strip span {
  display: block; margin-top: 4px; color: var(--ink-3);
  font-size: 10.5px; font-weight: 800;
}
.voice-board { margin-top: 24px; }
.voice-chart-card { border-top: 3px solid var(--voice-teal); min-width: 0; }
.voice-board .board-main, .voice-analysis, .analysis-table-wrap { min-width: 0; width: 100%; }
.voice-status {
  margin-left: auto; padding: 4px 8px; border: 1px solid rgba(168, 76, 61, .24);
  color: var(--voice-coral); background: var(--voice-coral-soft);
  border-radius: 5px; font-family: var(--type); font-size: 9px; font-weight: 700;
  letter-spacing: .08em; white-space: nowrap;
}
.voice-empty {
  margin: 16px 0 24px; padding: 32px 24px 28px; text-align: center;
  background: rgba(231, 240, 240, .42); border: 1px dashed rgba(46, 102, 112, .35);
}
.voice-empty-mark {
  color: var(--voice-teal); font-family: var(--serif); font-size: 34px;
  line-height: 1; margin-bottom: 10px;
}
.voice-empty h3 { color: var(--voice-ink); font-family: var(--serif); font-size: 19px; }
.voice-empty p {
  max-width: 600px; margin: 8px auto 0; color: var(--ink-2);
  font-size: 13px; line-height: 1.7;
}
.voice-gates {
  display: flex; justify-content: center; gap: 7px; flex-wrap: wrap; margin-top: 17px;
}
.voice-gates span {
  padding: 4px 8px; color: var(--voice-teal); background: #fff;
  border: 1px solid rgba(46, 102, 112, .25); border-radius: 5px;
  font-size: 10.5px; font-weight: 800;
}
.voice-analysis {
  margin: 18px 0 24px; padding: 16px 0 0;
  border-top: 1px solid var(--hairline-strong);
}
.voice-analysis .voice-section-head { border-bottom: 0; padding-bottom: 10px; }
.voice-analysis .voice-section-head h3 { font-size: 16px; }
.voice-analysis .voice-section-head span {
  color: var(--voice-coral); font-family: var(--type); font-size: 10px;
  font-weight: 700; letter-spacing: .04em;
}
.analysis-overview {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
}
.analysis-stat {
  min-width: 0; padding: 11px 12px 10px 0; margin-right: 12px;
  border-right: 1px solid var(--hairline);
}
.analysis-stat:last-child { border-right: 0; margin-right: 0; }
.analysis-stat > span, .analysis-stat > small { display: block; }
.analysis-stat > span { color: var(--ink-3); font-size: 10px; font-weight: 800; }
.analysis-stat > b {
  display: block; margin-top: 3px; color: var(--voice-ink); font-family: var(--serif);
  font-size: 20px; line-height: 1.2; font-variant-numeric: tabular-nums;
}
.analysis-stat > small { margin-top: 2px; color: var(--ink-3); font-size: 10px; line-height: 1.35; }
.analysis-stat > i {
  display: block; height: 4px; margin-top: 8px; overflow: hidden;
  background: var(--surface-2); border-radius: 2px;
}
.analysis-stat > i em {
  display: block; height: 100%; min-width: 0; background: var(--voice-teal);
  border-radius: 2px; transition: width .4s var(--ease-paper);
}
.analysis-stat.analysis-confidence > b { color: var(--ink-3); }
.analysis-stat > i.analysis-dash, .analysis-dash { background: repeating-linear-gradient(90deg, var(--surface-3) 0 5px, transparent 5px 9px); }
.analysis-table-wrap { overflow-x: auto; }
.analysis-table {
  width: 100%; min-width: 520px; margin-top: 12px; border-collapse: collapse;
  font-size: 11px;
}
.analysis-table th, .analysis-table td {
  padding: 9px 8px 9px 0; border-bottom: 1px solid var(--hairline);
  text-align: left; vertical-align: middle;
}
.analysis-table thead th {
  color: var(--ink-3); font-size: 9.5px; font-weight: 800; letter-spacing: .04em;
}
.analysis-table tbody th { color: var(--ink); font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.analysis-table tbody td { color: var(--ink-3); }
.analysis-table .analysis-value { width: 72px; color: var(--voice-coral); font-family: var(--serif); font-size: 14px; font-weight: 700; white-space: nowrap; }
.coverage { display: flex; align-items: center; gap: 8px; min-width: 116px; }
.coverage > i { display: block; width: 70px; height: 5px; overflow: hidden; background: var(--surface-2); border-radius: 2px; }
.coverage > i em { display: block; height: 100%; background: var(--voice-teal); border-radius: 2px; }
.coverage > span { color: var(--ink-3); font-size: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.analysis-note { margin-top: 9px; color: var(--ink-3); font-size: 10.5px; line-height: 1.6; }
.voice-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; border-bottom: 1px solid var(--hairline); padding-bottom: 9px;
}
.voice-section-head h3 { color: var(--voice-ink); font-family: var(--serif); font-size: 15px; }
.voice-section-head span { color: var(--ink-3); font-size: 11px; font-weight: 700; }
.voice-dimension-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 18px;
}
.voice-dimension {
  display: grid; grid-template-columns: 28px 1fr; gap: 10px; min-width: 0;
  padding: 14px 4px 13px 0; border-bottom: 1px solid var(--hairline);
}
.dimension-index {
  color: var(--voice-coral); font-family: var(--type); font-size: 10px;
  font-weight: 700; padding-top: 2px;
}
.voice-dimension b { color: var(--ink); font-size: 13px; }
.voice-dimension p { margin-top: 3px; color: var(--ink-3); font-size: 11.5px; line-height: 1.55; }
.voice-filter {
  display: flex; gap: 5px; flex-wrap: wrap; margin: 2px 0 12px;
}
.voice-filter-btn {
  background: transparent; border: 1px solid var(--hairline-strong); border-radius: 6px;
  padding: 5px 9px; color: var(--ink-2); cursor: pointer; font-size: 11px; font-weight: 800;
}
.voice-filter-btn:hover { border-color: var(--voice-teal); color: var(--voice-teal); }
.voice-filter-btn.active { border-color: var(--voice-teal); background: var(--voice-teal); color: #fff; }
.voice-model-pool { border-top: 1px dashed var(--hairline-strong); }
.voice-model-row { padding: 11px 0 10px; border-bottom: 1px solid var(--hairline); }
.voice-model-top { display: flex; align-items: center; gap: 7px; min-width: 0; }
.voice-model-top b { min-width: 0; overflow: hidden; color: var(--ink); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.voice-model-state {
  flex: 0 0 auto; margin-left: auto; padding: 2px 5px; border-radius: 4px;
  font-size: 9px; font-weight: 800; white-space: nowrap;
}
.voice-model-state.connected { color: var(--voice-teal); background: var(--voice-teal-soft); }
.voice-model-state.candidate { color: var(--ink-3); background: var(--surface-2); }
.voice-model-meta { margin-top: 4px; color: var(--ink-3); font-size: 10.5px; line-height: 1.4; }
.voice-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.voice-tags span {
  padding: 2px 5px; color: var(--voice-ink); background: var(--voice-blue-soft);
  border-radius: 3px; font-size: 9.5px; font-weight: 800;
}
.voice-checklist { list-style: none; margin-top: 4px; }
.voice-checklist li {
  display: flex; align-items: baseline; gap: 10px; padding: 9px 0;
  border-bottom: 1px solid var(--hairline);
}
.voice-checklist b { width: 40px; color: var(--voice-coral); font-family: var(--serif); font-size: 18px; }
.voice-checklist span { color: var(--ink-2); font-size: 11.5px; font-weight: 700; }
.analysis-warning > b, .analysis-warning > span { color: var(--voice-coral); }
.analysis-warning > i em { background: var(--voice-coral); }
.analysis-cost > b { color: #6b5310; }
.analysis-cost > i em { background: var(--gold); }

/* Golden Wind showcase */
.voice-showcase {
  margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--hairline-strong);
  scroll-margin-top: 78px;
}
.showcase-hero {
  min-height: 390px; position: relative; overflow: hidden; border-radius: 8px;
  color: #fff; background: #100b13;
}
.showcase-hero-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, rgba(8, 5, 11, .96) 0%, rgba(8, 5, 11, .78) 46%, rgba(8, 5, 11, .3) 78%, rgba(8, 5, 11, .52) 100%),
    linear-gradient(0deg, rgba(8, 5, 11, .92), transparent 58%),
    url("assets/jojo/naples-trial.webp");
  background-position: center; background-size: cover;
}
.showcase-hero-bg::after {
  content: ""; position: absolute; inset: 0; opacity: .15; pointer-events: none;
  background-image: radial-gradient(circle, #f7c647 0 1px, transparent 1.5px);
  background-size: 8px 8px;
}
.showcase-hero-content {
  position: relative; z-index: 1; width: min(620px, 100%); padding: 48px 42px 38px;
}
.showcase-hero .voice-kicker { color: #ffd65a; }
.showcase-hero h2 {
  max-width: 560px; margin: 0; font-family: var(--cjk-serif); font-size: 34px;
  line-height: 1.2; letter-spacing: 0;
}
.showcase-hero-content > p {
  max-width: 590px; margin-top: 13px; color: rgba(255,255,255,.82);
  font-size: 14px; line-height: 1.75;
}
.showcase-source-links { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 18px; }
.showcase-source-links a {
  padding: 6px 9px; border: 1px solid rgba(255,214,90,.48); border-radius: 5px;
  color: #ffe9a2; background: rgba(0,0,0,.32); font-size: 10px; font-weight: 800;
}
.showcase-source-links a:hover { background: rgba(255,214,90,.15); }
.showcase-run-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  margin-top: 24px; border-top: 1px solid rgba(255,255,255,.18);
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.showcase-run-stats > div { padding: 11px 8px; border-left: 1px solid rgba(255,255,255,.14); }
.showcase-run-stats > div:first-child { border-left: 0; padding-left: 0; }
.showcase-run-stats span, .showcase-run-stats b { display: block; }
.showcase-run-stats span { color: rgba(255,255,255,.58); font-size: 9px; font-weight: 800; }
.showcase-run-stats b { margin-top: 3px; color: #fff; font-family: var(--serif); font-size: 18px; }
.showcase-toolbar {
  display: flex; justify-content: space-between; align-items: end; gap: 22px;
  padding: 25px 0 16px;
}
.showcase-toolbar h2 { margin: 0; color: var(--voice-ink); font-family: var(--serif); font-size: 21px; }
.showcase-toolbar p { margin-top: 5px; color: var(--ink-3); font-size: 12px; }
.showcase-mode { flex: 0 0 auto; }
.showcase-mode .seg-btn.active { background: #17121b; color: #ffe593; }
.showcase-role-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px;
}
.showcase-role-card {
  min-width: 0; overflow: hidden; border: 1px solid rgba(29,21,32,.18);
  border-radius: 8px; background: rgba(255,255,255,.78);
  box-shadow: 0 9px 25px rgba(20,16,10,.09);
}
.showcase-role-visual {
  position: relative; height: 280px; overflow: hidden; background: #151018;
  border-bottom: 4px solid var(--role-accent);
}
.showcase-scene {
  position: absolute; inset: 0; opacity: .82;
  background-image:
    linear-gradient(90deg, rgba(9,6,11,.72), rgba(9,6,11,.08) 58%, rgba(9,6,11,.32)),
    linear-gradient(0deg, rgba(9,6,11,.88), transparent 62%),
    var(--scene-image);
  background-position: center; background-size: cover;
  filter: saturate(.92) contrast(1.04);
}
.showcase-role-visual::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 70px rgba(0,0,0,.35);
}
.showcase-role-portrait {
  position: absolute; z-index: 1; right: 5%; bottom: -6px; width: 48%; height: 96%;
  object-fit: contain; object-position: bottom center;
  filter: drop-shadow(0 11px 15px rgba(0,0,0,.5));
}
.showcase-role-card:nth-child(3) .showcase-role-portrait {
  right: -3%; width: 58%; height: 100%; object-fit: cover; object-position: 75% 50%;
  opacity: .94; mix-blend-mode: screen;
}
.showcase-role-monogram {
  position: absolute; z-index: 1; right: 8%; bottom: -24px;
  color: rgba(255,255,255,.14); font-family: var(--serif); font-size: 220px;
  line-height: 1; font-weight: 700;
}
.showcase-role-index {
  position: absolute; z-index: 2; top: 15px; left: 15px;
  color: #111; background: #ffd65a; border: 2px solid #111;
  padding: 4px 7px; font-family: var(--type); font-size: 10px; font-weight: 800;
}
.showcase-art-source {
  position: absolute; z-index: 2; left: 15px; right: 15px; bottom: 12px;
  color: rgba(255,255,255,.7); font-size: 9px; line-height: 1.4;
}
.showcase-role-content { padding: 17px 17px 15px; }
.showcase-role-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.showcase-role-heading span { display: block; color: var(--ink-3); font-family: var(--type); font-size: 9px; }
.showcase-role-heading h3 {
  margin: 3px 0 0; color: #17121b; font-family: var(--cjk-serif); font-size: 19px;
  line-height: 1.25;
}
.showcase-role-heading > i {
  flex: 0 0 auto; padding: 3px 6px; border: 1px solid color-mix(in srgb, var(--role-accent) 50%, transparent);
  border-radius: 4px; color: var(--role-accent); background: color-mix(in srgb, var(--role-accent) 8%, white);
  font-size: 9px; font-style: normal; font-weight: 800;
}
.showcase-scene-name { margin-top: 11px; color: var(--role-accent); font-size: 11px; font-weight: 800; }
.showcase-scene-note { margin-top: 3px; color: var(--ink-3); font-size: 10.5px; line-height: 1.55; }
.showcase-role-content blockquote {
  margin: 13px 0 0; padding: 10px 0 10px 12px; border-left: 3px solid var(--role-accent);
  color: #29222d; font-family: var(--cjk-serif); font-size: 13px; line-height: 1.65;
}
.showcase-direction { display: grid; grid-template-columns: 52px 1fr; gap: 8px; margin-top: 11px; }
.showcase-direction span { color: var(--ink-3); font-size: 9px; font-weight: 800; }
.showcase-direction p { color: var(--ink-2); font-size: 10.5px; line-height: 1.5; }
.showcase-samples { margin-top: 13px; border-top: 1px solid var(--hairline-strong); }
.showcase-sample { padding: 10px 0; border-bottom: 1px solid var(--hairline); }
.showcase-sample-head { display: grid; grid-template-columns: 20px minmax(0,1fr) auto; gap: 7px; align-items: center; }
.showcase-sample-head > span {
  display: grid; place-items: center; width: 19px; height: 19px;
  color: #fff; background: #17121b; border-radius: 50%; font-size: 9px; font-weight: 800;
}
.showcase-sample-head b { min-width: 0; color: #29222d; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.showcase-sample-head i { color: #2e6670; font-size: 9px; font-style: normal; font-weight: 800; }
.showcase-sample audio { display: block; width: 100%; height: 34px; margin-top: 7px; }
.showcase-sample > p { margin-top: 4px; color: var(--ink-3); font-size: 9px; line-height: 1.4; }
.showcase-role-grid.is-blind .showcase-sample > p { color: var(--voice-coral); }
.showcase-sample.is-warning { padding-left: 9px; border-left: 3px solid var(--voice-coral); background: rgba(168, 76, 61, .045); }
.showcase-sample.is-warning .showcase-sample-head > i { color: var(--voice-coral); }
.sample-warning-note { display: block; margin-top: 5px; color: var(--voice-coral); font-size: 9px; line-height: 1.5; font-weight: 700; }
.showcase-reference {
  margin-top: 13px; padding: 10px 0 11px; border-top: 1px dashed rgba(46, 102, 112, .35);
  border-bottom: 1px solid var(--hairline-strong);
}
.showcase-reference-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.showcase-reference-head b { color: var(--voice-teal); font-size: 10.5px; }
.showcase-reference-head span { color: var(--ink-3); font-size: 9px; }
.showcase-reference audio { display: block; width: 100%; height: 32px; margin-top: 6px; }
.showcase-reference p { margin-top: 4px; color: var(--ink-3); font-size: 9px; line-height: 1.45; }
.voice-warning {
  display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: baseline;
  max-width: 720px; margin: 17px auto 0; padding: 9px 10px; text-align: left;
  color: var(--voice-coral); background: rgba(168, 76, 61, .07); border-left: 3px solid var(--voice-coral);
  font-size: 10.5px; line-height: 1.5;
}
.voice-warning b { white-space: nowrap; font-size: 10px; }
.voice-warning span { color: var(--ink-2); }

.showcase-role-grid.is-expanded { grid-template-columns: 1fr; gap: 18px; }
.expanded-role-card {
  display: grid; grid-template-columns: minmax(260px, .62fr) minmax(0, 1.38fr);
  min-width: 0; overflow: hidden; border: 1px solid rgba(29,21,32,.18);
  border-radius: 8px; background: rgba(255,255,255,.82);
  box-shadow: 0 9px 25px rgba(20,16,10,.09);
}
.expanded-role-visual {
  height: auto; min-height: 420px; border-bottom: 0; border-right: 4px solid var(--role-accent);
}
.expanded-role-visual .showcase-role-portrait { width: 62%; height: 92%; }
.expanded-role-content { min-width: 0; padding: 19px 19px 17px; }
.expanded-role-summary { margin-top: 11px; color: var(--role-accent); font-size: 11px; font-weight: 800; }
.expanded-role-content .showcase-direction { display: flex; gap: 8px; margin-top: 8px; }
.expanded-role-content .showcase-direction > span:last-child { color: var(--ink-2); font-size: 10.5px; line-height: 1.5; }
.expanded-scene-list { margin-top: 16px; border-top: 1px solid var(--hairline-strong); }
.expanded-scene { min-width: 0; padding: 14px 0 13px; border-bottom: 1px solid var(--hairline); }
.expanded-scene-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.expanded-scene-head > div { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.expanded-scene-head > div > span { color: var(--voice-coral); font-family: var(--type); font-size: 10px; font-weight: 700; }
.expanded-scene-head b { color: var(--voice-ink); font-size: 13px; }
.expanded-scene-head small { flex: 0 0 auto; color: var(--ink-3); font-size: 9.5px; }
.expanded-scene blockquote { margin-top: 8px; padding-left: 10px; border-left: 2px solid var(--role-accent); color: var(--ink); font-family: var(--cjk-serif); font-size: 12px; line-height: 1.6; }
.expanded-stressors { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.expanded-stressors span { padding: 2px 5px; color: var(--ink-3); background: var(--surface-1); border: 1px solid var(--hairline); border-radius: 3px; font-size: 9px; }
.expanded-samples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.expanded-samples .showcase-sample { min-width: 0; padding: 8px 0 7px; }
.expanded-samples .showcase-sample audio { height: 32px; }
.sample-missing { display: grid; place-items: center; min-height: 32px; margin-top: 7px; color: var(--voice-coral); background: rgba(168,76,61,.07); border: 1px dashed rgba(168,76,61,.32); font-size: 10px; font-weight: 800; }

.showcase-disclosure {
  display: grid; grid-template-columns: 130px 1fr; gap: 18px;
  margin-top: 17px; padding: 14px 0; border-top: 1px dashed var(--hairline-strong);
  border-bottom: 1px dashed var(--hairline-strong);
}
.showcase-disclosure b { color: var(--voice-coral); font-size: 12px; }
.showcase-disclosure p { color: var(--ink-3); font-size: 11px; line-height: 1.6; }

.voice-role-section {
  margin-top: 48px; padding: 28px 0 0; border-top: 1px solid var(--hairline-strong);
}
.voice-role-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr);
  gap: 28px; align-items: end;
}
.voice-role-head h2, .voice-method h2 {
  color: var(--voice-ink); font-family: var(--serif); font-size: 21px; font-weight: 700;
}
.voice-role-head > div:first-child > p, .voice-method-grid > div:first-child > p {
  max-width: 620px; margin-top: 8px; color: var(--ink-2); font-size: 13px; line-height: 1.7;
}
.voice-role-detail {
  min-width: 0; padding: 10px 0 10px 18px; border-left: 3px solid var(--voice-coral);
}
.role-detail-label { display: block; color: var(--voice-coral); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.voice-role-detail strong { display: block; margin-top: 4px; color: var(--ink); font-size: 13px; }
.voice-role-detail p { margin-top: 6px; color: var(--ink-2); font-size: 12px; line-height: 1.55; }
.voice-role-detail small { display: block; margin-top: 5px; color: var(--ink-3); font-size: 10.5px; line-height: 1.55; }
.voice-role-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 22px;
}
.voice-role-card {
  min-width: 0; min-height: 160px; padding: 14px 13px 12px; text-align: left;
  background: rgba(255, 255, 255, .52); border: 1px solid var(--hairline-strong);
  border-radius: 8px; color: var(--ink); cursor: pointer;
  box-shadow: 0 4px 12px rgba(20, 16, 10, .045);
  transition: border-color .18s, background .18s, transform .18s var(--ease-paper), box-shadow .18s;
}
.voice-role-card:hover { transform: translateY(-3px); border-color: var(--voice-teal); box-shadow: 0 9px 18px rgba(20, 16, 10, .1); }
.voice-role-card.active { background: var(--voice-blue-soft); border-color: var(--voice-teal); box-shadow: 0 0 0 2px rgba(46, 102, 112, .12); }
.voice-role-card .role-number { display: block; color: var(--voice-coral); font-family: var(--type); font-size: 10px; }
.voice-role-card b { display: block; margin-top: 15px; font-family: var(--serif); font-size: 15px; }
.voice-role-card > span:not(.role-number) { display: block; margin-top: 7px; color: var(--ink-2); font-size: 11.5px; line-height: 1.55; }
.voice-role-card i { display: block; margin-top: 15px; color: var(--ink-3); font-size: 10px; font-style: normal; font-weight: 800; }
.voice-launch-strip {
  display: flex; align-items: center; gap: 12px; margin-top: 20px; padding: 14px 0;
  border-top: 1px dashed var(--hairline-strong); border-bottom: 1px dashed var(--hairline-strong);
}
.launch-icon { color: var(--voice-teal); font-size: 22px; line-height: 1; }
.voice-launch-strip b, .voice-launch-strip span { display: block; }
.voice-launch-strip b { color: var(--ink); font-size: 12.5px; }
.voice-launch-strip div span { margin-top: 2px; color: var(--ink-3); font-size: 11px; }
.voice-launch-status { margin-left: auto; color: var(--voice-coral); font-size: 10px; font-weight: 800; white-space: nowrap; }
.voice-method { margin-top: 48px; padding: 26px 0 0; border-top: 1px solid var(--hairline-strong); }
.voice-method-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr); gap: 34px; align-items: start;
}
.voice-method-list { border-top: 1px solid var(--hairline-strong); }
.voice-method-list > div {
  display: flex; justify-content: space-between; gap: 16px; padding: 12px 0;
  border-bottom: 1px solid var(--hairline); font-size: 12px;
}
.voice-method-list b { color: var(--voice-ink); }
.voice-method-list span { color: var(--ink-3); text-align: right; }

@media (max-width: 900px) {
  .showcase-role-grid { grid-template-columns: 1fr; }
  .showcase-role-visual { height: 320px; }
  .expanded-role-card { grid-template-columns: 1fr; }
  .expanded-role-visual { min-height: 320px; height: 320px; border-right: 0; border-bottom: 4px solid var(--role-accent); }
  .voice-role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .voice-role-head, .voice-method-grid { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 620px) {
  .topbar-inner { padding: 10px 16px; gap: 10px; min-width: 0; }
  .brand { gap: 6px; min-width: 0; }
  .brand-mark { width: 18px; height: 18px; flex: 0 0 auto; }
  .brand-name { font-size: 14px; white-space: nowrap; }
  .brand-sub { display: none; }
  .topnav { gap: 10px; margin-left: 0; min-width: 0; }
  .topnav a { font-size: 12px; padding: 3px 0; white-space: nowrap; }
  .topbar-right { gap: 5px; min-width: 0; }
  .lang { padding: 4px 7px; font-size: 11px; white-space: nowrap; }
  .cta-start { padding: 7px 9px; font-size: 11px; white-space: nowrap; }
  .voice-signal-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .voice-signal-strip > div:nth-child(3) { border-left: 0; border-top: 1px solid rgba(46, 102, 112, .16); }
  .voice-signal-strip > div:nth-child(4) { border-top: 1px solid rgba(46, 102, 112, .16); }
  .analysis-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analysis-stat { margin-right: 0; padding: 10px 9px; border-right: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
  .analysis-stat:nth-child(even) { border-right: 0; }
  .showcase-hero { min-height: 470px; }
  .showcase-hero-bg {
    background-image: linear-gradient(0deg, rgba(8,5,11,.96) 0%, rgba(8,5,11,.72) 64%, rgba(8,5,11,.42) 100%), url("assets/jojo/naples-trial.webp");
    background-position: 61% center;
  }
  .showcase-hero-content { width: 100%; padding: 28px 20px 22px; }
  .showcase-hero h2 { font-size: 27px; }
  .showcase-run-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .showcase-run-stats > div:nth-child(3) { border-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
  .showcase-run-stats > div:nth-child(4) { border-top: 1px solid rgba(255,255,255,.14); }
  .showcase-toolbar { display: block; }
  .showcase-mode { margin-top: 13px; }
  .showcase-role-visual { height: 245px; }
  .expanded-role-visual { min-height: 245px; height: 245px; }
  .expanded-role-content { padding: 15px 14px 13px; }
  .expanded-samples { grid-template-columns: 1fr; }
  .expanded-scene-head { align-items: flex-start; }
  .expanded-scene-head small { text-align: right; }
  .showcase-role-portrait { width: 53%; right: 2%; }
  .showcase-role-card:nth-child(3) .showcase-role-portrait { width: 62%; }
  .showcase-disclosure { grid-template-columns: 1fr; gap: 5px; }
  .voice-dimension-grid { grid-template-columns: 1fr; }
  .voice-role-grid { grid-template-columns: 1fr; }
  .voice-role-card { min-height: 132px; }
  .voice-chart-card { padding-left: 14px; padding-right: 14px; }
  .voice-empty { padding-left: 14px; padding-right: 14px; }
  .voice-method-list > div { display: block; }
  .voice-method-list span { display: block; margin-top: 3px; text-align: left; }
}


/* ── 路由健康标注（Model Pulse 证据；非质量结论）── */
.route-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.route-dot.in_spec { background: #3e8e5a; box-shadow: 0 0 0 2px rgba(62, 142, 90, .18); }
.route-dot.drift { background: #c9a961; box-shadow: 0 0 0 2px rgba(201, 169, 97, .25); }
.route-dot.warming { background: #6d9eb3; }
.route-dot.fail { background: #b04a3a; }
.route-dot.unknown { background: #999; }
.route-badge { display: inline-block; margin-top: 5px; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; border: 1px solid currentColor; width: fit-content; }
.route-badge.in_spec { color: #3e8e5a; }
.route-badge.drift { color: #b8860b; }
.route-badge.fail { color: #b04a3a; }
.route-badge.warming { color: #6d9eb3; }
.route-badge.pre-monitor { color: #8a8a8a; }
