/* ==========================================================================
   VOYAGER 1 · 一光日 —— 交互式 3D 体验
   ========================================================================== */

:root {
  --bg: #04060a;
  --bg-soft: #080c12;
  --ink: #ece6d8;
  --ink-dim: rgba(236, 230, 216, 0.56);
  --ink-faint: rgba(236, 230, 216, 0.3);
  --gold: #d9b478;
  --gold-soft: rgba(217, 180, 120, 0.5);
  --gold-line: rgba(217, 180, 120, 0.26);
  --cyan: #8fd8e8;
  --line: rgba(236, 230, 216, 0.12);
  --panel: rgba(9, 13, 19, 0.74);
  --serif: "Songti SC", "Source Han Serif SC", "Noto Serif SC", "STSong", Georgia, serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", system-ui, sans-serif;
  --mono: "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body { overflow-x: hidden; cursor: default; }
body.is-locked { overflow: hidden; }

::selection { background: rgba(217, 180, 120, 0.28); color: #fff; }

button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* ---------- 通用微排版 ---------- */

.eyebrow {
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.eyebrow .cn {
  letter-spacing: 0.24em;
  color: var(--ink-dim);
  margin-left: 0.7em;
  text-transform: none;
}

.mono { font-family: var(--mono); }

/* ==========================================================================
   1. 载入层
   ========================================================================== */

#loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: radial-gradient(120% 90% at 50% 40%, #0a1018 0%, #04060a 62%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  transition: opacity 1s var(--ease), visibility 1s;
}

#loader.done { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-ring {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 1px solid rgba(217, 180, 120, 0.16);
  position: relative;
  display: grid;
  place-items: center;
}

.loader-ring::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: var(--gold);
  border-right-color: rgba(217, 180, 120, 0.35);
  animation: spin 1.6s linear infinite;
}

.loader-ring::after {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f4e2bb, #b98c46 62%, #4a3518);
  box-shadow: 0 0 26px rgba(217, 180, 120, 0.45);
  animation: breathe 3.2s ease-in-out infinite;
}

.loader-title {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.42em;
  color: var(--ink);
}

.loader-sub {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-top: -14px;
}

.loader-bar {
  width: 180px;
  height: 1px;
  background: rgba(236, 230, 216, 0.12);
  overflow: hidden;
}

.loader-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(217, 180, 120, 0.2), var(--gold));
  transition: width 0.4s linear;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.12); opacity: 1; }
}

/* ==========================================================================
   2. 舞台：视频底 + 3D 叠加
   ========================================================================== */

#stage {
  position: relative;
  height: 100svh;
  min-height: 560px;
  background: #000;
  overflow: hidden;
  isolation: isolate;
  /* 控制条需要的底部净空：视频内容（含片内双语字幕）整体上移，字幕不会被进度条压住 */
  --ctl-band: clamp(48px, 7.2vh, 96px);
}

#bgVideo {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  height: calc(100% - var(--ctl-band));
  object-fit: contain;
  object-position: center center;
  background: #000;
  z-index: 1;
}

#glLayer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: block;
  transition: opacity 0.6s var(--ease);
}

.stage-fx {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.stage-fx.vignette {
  background:
    radial-gradient(130% 100% at 50% 50%, transparent 42%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(to bottom, rgba(4, 6, 10, 0.55) 0%, transparent 18%, transparent 74%, rgba(4, 6, 10, 0.82) 100%);
}

.stage-fx.grain {
  opacity: 0.22;
  mix-blend-mode: overlay;
  will-change: transform;
  animation-play-state: running;
  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='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  animation: grainShift 6s steps(6) infinite;
}

@keyframes grainShift {
  0% { transform: translate(0, 0); }
  50% { transform: translate(-4px, 3px); }
  100% { transform: translate(3px, -2px); }
}

/* ---------- HUD ---------- */

.hud {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  transition: opacity 0.6s var(--ease);
}

.hud-top {
  /* 片子自带左上章节标签与右上「距地球 / 259 亿公里」数据块，HUD 收在最上沿一条里避让 */
  top: clamp(10px, 1.9vh, 20px);
  left: clamp(18px, 3.4vw, 52px);
  right: clamp(18px, 3.4vw, 52px);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; }

.brand-mark {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  animation: blink 3.4s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.brand-text {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.36em;
  line-height: 1.2;
  /* 单行：画面自带左上角章节标签在 6% 高处，两行品牌会被压到 */
  display: flex;
  align-items: baseline;
  gap: 12px;
  white-space: nowrap;
}

.brand-text small {
  font-family: var(--sans);
  font-size: 8.5px;
  letter-spacing: 0.24em;
  color: var(--ink-faint);
  padding-left: 12px;
  border-left: 1px solid rgba(236, 230, 216, 0.16);
}

.telemetry {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: clamp(14px, 1.8vw, 26px);
  min-width: 0;
}

.telemetry .row {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 7px;
}

.telemetry .row + .row {
  padding-left: clamp(14px, 1.8vw, 26px);
  border-left: 1px solid rgba(236, 230, 216, 0.1);
}

.telemetry .k {
  font-size: 8.5px;
  letter-spacing: 0.18em;
  white-space: nowrap;
  color: var(--ink-faint);
}

.telemetry .v {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.telemetry .v.hot { color: var(--gold); }

.telemetry .flag {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(236, 230, 216, 0.28);
  border-top: 1px solid var(--line);
  padding-top: 8px;
  margin-top: 1px;
}

/* 3D 图层取景框 */
.model-frame {
  position: absolute;
  z-index: 5;
  right: clamp(18px, 3.2vw, 46px);
  top: 20%;
  width: clamp(190px, 29vh, 268px);
  height: clamp(190px, 29vh, 268px);
  pointer-events: none;
  transition: opacity 0.55s var(--ease), transform 0.7s var(--ease);
}

.model-frame .corner {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 1px solid rgba(217, 180, 120, 0.42);
}

.model-frame .c-tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.model-frame .c-tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.model-frame .c-bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.model-frame .c-br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.model-frame .scanner {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  border: 1px dashed rgba(217, 180, 120, 0.13);
  animation: spin 72s linear infinite;
}

.model-frame .scanner::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px solid rgba(143, 216, 232, 0.08);
}

.model-frame .mf-label {
  position: absolute;
  right: 0;
  bottom: -24px;
  font-size: 8.5px;
  letter-spacing: 0.22em;
  color: rgba(236, 230, 216, 0.42);
  white-space: nowrap;
  text-align: right;
}

.model-frame .mf-label b { color: var(--gold); font-weight: 500; }

.model-frame .mf-hint {
  position: absolute;
  right: 0;
  bottom: -40px;
  font-size: 8px;
  letter-spacing: 0.18em;
  color: rgba(236, 230, 216, 0.24);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.5s;
}

.model-frame .mf-hint.show { opacity: 1; }

.model-frame.hide { opacity: 0; transform: scale(0.96); }

/* ==========================================================================
   3. 时间轴 & 播放控制
   ========================================================================== */

.controls {
  position: absolute;
  z-index: 6;
  left: clamp(14px, 3vw, 48px);
  right: clamp(14px, 3vw, 48px);
  bottom: 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
}

.play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(217, 180, 120, 0.34);
  display: grid;
  place-items: center;
  background: rgba(10, 14, 20, 0.5);
  backdrop-filter: blur(8px);
  transition: border-color 0.35s, background 0.35s, transform 0.35s var(--ease);
  flex: none;
}

.play-btn:hover {
  border-color: var(--gold);
  background: rgba(217, 180, 120, 0.1);
  transform: scale(1.05);
}

.play-btn svg { width: 13px; height: 13px; fill: var(--gold); }
.play-btn .icon-pause { display: none; }
.play-btn.playing .icon-play { display: none; }
.play-btn.playing .icon-pause { display: block; }

.timeline-wrap { position: relative; padding-top: 26px; }

.track {
  position: relative;
  height: 2px;
  background: rgba(236, 230, 216, 0.13);
  cursor: pointer;
  cursor: ew-resize;
  touch-action: none;
}

/* 加宽的隐形拖动热区：上下各 15px，避免"点不中" */
.track::before {
  content: "";
  position: absolute;
  left: -8px;
  right: -8px;
  top: -15px;
  bottom: -15px;
  cursor: ew-resize;
}

.track:focus-visible {
  outline: none;
}

.track:focus-visible::before {
  box-shadow: 0 0 0 1px rgba(217, 180, 120, 0.4);
  border-radius: 3px;
}

body.scrubbing, body.scrubbing * {
  cursor: ew-resize !important;
  user-select: none;
}

.track:hover,
body.scrubbing .track { height: 3px; }

.track:hover .progress,
body.scrubbing .progress { box-shadow: 0 0 16px rgba(217, 180, 120, 0.75); }

/* 拖动时的浮标 */
.track-bubble {
  position: absolute;
  bottom: 22px;
  transform: translateX(-50%);
  padding: 3px 8px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: #14100a;
  background: var(--gold);
  border-radius: 2px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 3;
}

.track-bubble.show { opacity: 1; }

.track .buffered {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: rgba(236, 230, 216, 0.1);
}

.track .progress {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, rgba(217, 180, 120, 0.55), var(--gold));
  box-shadow: 0 0 12px rgba(217, 180, 120, 0.5);
}

.track .head {
  position: absolute;
  top: 50%;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff5df;
  box-shadow: 0 0 12px rgba(255, 236, 200, 0.9);
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s;
  pointer-events: none;
}

.track:hover .head { width: 10px; height: 10px; }

.track .tick {
  position: absolute;
  top: 50%;
  width: 1px;
  height: 7px;
  background: rgba(236, 230, 216, 0.22);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.marker {
  position: absolute;
  top: 26px;
  width: 30px;
  height: 30px;
  transform: translate(-50%, -50%);
  background: none;
  padding: 0;
  pointer-events: none;   /* 只有年份文字可点，避免挡住时间轴拖动 */
  z-index: 2;
}

.marker .dot {
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: rgba(236, 230, 216, 0.34);
  border: 1px solid rgba(236, 230, 216, 0.42);
  transition: all 0.3s var(--ease);
}

.marker .yr {
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%);
  margin-bottom: -1px;
  padding: 7px 6px 5px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  transition: color 0.3s;
  white-space: nowrap;
  pointer-events: auto;
  cursor: pointer;
  border-radius: 2px;
}

.marker .nm {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  margin-top: 1px;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: transparent;
  transition: color 0.3s;
  white-space: nowrap;
}

.marker:hover .yr, .marker.active .yr { color: var(--gold); }
.marker:hover .dot, .marker.active .dot {
  background: var(--gold);
  box-shadow: 0 0 10px rgba(217, 180, 120, 0.8);
  border-color: var(--gold);
}
.marker:hover .nm { color: var(--ink-dim); }

.meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}

.timecode {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.timecode b { color: var(--ink); font-weight: 500; }

.chapter-chip {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--gold);
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  padding: 5px 11px;
  white-space: nowrap;
  background: rgba(217, 180, 120, 0.05);
}

.ctrl-actions { display: flex; gap: 8px; }

.pill-btn {
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--ink-dim);
  border: 1px solid rgba(236, 230, 216, 0.16);
  border-radius: 999px;
  padding: 7px 13px;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
  background: rgba(8, 12, 18, 0.4);
  backdrop-filter: blur(6px);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.pill-btn:hover { color: var(--ink); border-color: rgba(217, 180, 120, 0.55); }
.pill-btn.on { color: var(--gold); border-color: var(--gold-soft); background: rgba(217, 180, 120, 0.1); }

.pill-btn svg { width: 13px; height: 9px; display: block; }
.pill-btn .icon-vol .cross { display: none; }
.pill-btn.muted .icon-vol .wave { display: none; }
.pill-btn.muted .icon-vol .cross { display: block; }
.pill-btn.muted { color: rgba(236, 230, 216, 0.34); }

.pill-btn .beat {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}

/* ==========================================================================
   4. 起始卡 / 里程碑卡片
   ========================================================================== */

.card-layer {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  display: grid;
  place-items: center end;
  padding: 0 clamp(16px, 4vw, 74px) 108px 0;
}

.card-layer.open { pointer-events: auto; }

.card {
  width: min(430px, 100%);
  background: linear-gradient(160deg, rgba(14, 19, 27, 0.86), rgba(7, 10, 15, 0.92));
  border: 1px solid var(--gold-line);
  backdrop-filter: blur(22px) saturate(120%);
  border-radius: 3px;
  padding: 26px 28px 24px;
  position: relative;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity 0.55s var(--ease), transform 0.7s var(--ease);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.66);
  overflow: hidden;
}

.card.show { opacity: 1; transform: none; }

.card::before,
.card::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--gold);
  opacity: 0.55;
}

.card::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.card::after { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }

.card-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.card-year {
  font-family: var(--serif);
  font-size: 44px;
  line-height: 0.86;
  letter-spacing: 0.02em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 30px rgba(217, 180, 120, 0.25);
}

.card-year small {
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--ink-faint);
  display: block;
  font-family: var(--sans);
  margin-top: 8px;
}

.card-badge {
  font-size: 8.5px;
  letter-spacing: 0.24em;
  color: var(--cyan);
  border: 1px solid rgba(143, 216, 232, 0.28);
  border-radius: 999px;
  padding: 4px 9px;
  white-space: nowrap;
}

.card h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  color: #f4efe3;
}

.card p {
  font-size: 12.5px;
  line-height: 1.95;
  color: rgba(236, 230, 216, 0.72);
  margin: 0 0 18px;
  letter-spacing: 0.02em;
}

.card-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.card-facts div {
  background: rgba(6, 9, 13, 0.6);
  padding: 11px 8px 12px;
}

.card-facts .k {
  display: block;
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
  margin-bottom: 6px;
}

.card-facts .v {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.card-actions { display: flex; align-items: center; gap: 10px; }

.btn-primary {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: #14100a;
  background: linear-gradient(135deg, #f0d9ab, var(--gold));
  padding: 11px 20px;
  border-radius: 2px;
  transition: all 0.3s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 0 26px rgba(217, 180, 120, 0.35); }

.btn-ghost {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-dim);
  padding: 11px 4px;
  transition: color 0.3s;
}

.btn-ghost:hover { color: var(--gold); }

.card-actions .spacer { flex: 1; }

.card-hint {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: rgba(236, 230, 216, 0.28);
}

/* 开场卡 */
.card.intro { width: min(560px, 100%); padding: 40px 40px 32px; }
.card.intro h1 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.5;
  margin: 16px 0 14px;
}

.card.intro h1 em {
  font-style: normal;
  color: var(--gold);
  text-shadow: 0 0 34px rgba(217, 180, 120, 0.4);
}

.card.intro p { font-size: 13px; line-height: 2.05; }

.intro-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 20px 0 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.intro-note span {
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: rgba(236, 230, 216, 0.42);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.intro-note span::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0.7;
}


/* ==========================================================================
   4b. 成就系统
   ========================================================================== */

.ach-chip {
  position: absolute;
  left: clamp(18px, 3.4vw, 52px);
  bottom: 96px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 11px 6px 9px;
  border: 1px solid rgba(236, 230, 216, 0.12);
  border-radius: 999px;
  background: rgba(8, 12, 18, 0.42);
  backdrop-filter: blur(6px);
  transition: border-color 0.3s, background 0.3s;
  pointer-events: auto;   /* .hud 整体 pointer-events:none，这里必须单独打开 */
  cursor: pointer;
  z-index: 6;
}

.ach-chip:hover { border-color: var(--gold-soft); background: rgba(217, 180, 120, 0.08); }

.ach-dots { display: inline-flex; gap: 4px; }

.ach-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(236, 230, 216, 0.2);
  transition: background 0.4s, box-shadow 0.4s;
}

.ach-dots i.on {
  background: var(--gold);
  box-shadow: 0 0 7px rgba(217, 180, 120, 0.75);
}

.ach-count {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: rgba(236, 230, 216, 0.5);
}

.ach-count b { color: var(--gold); font-weight: 500; }

.ach-panel {
  position: absolute;
  z-index: 30;
  left: clamp(16px, 3.4vw, 52px);
  top: 92px;
  width: min(324px, calc(100vw - 32px));
  background: linear-gradient(165deg, rgba(16, 21, 29, 0.95), rgba(6, 9, 13, 0.97));
  border: 1px solid var(--gold-line);
  border-radius: 3px;
  padding: 18px 18px 12px;
  backdrop-filter: blur(22px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translateY(-8px) scale(0.985);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
}

.ach-panel.open { opacity: 1; transform: none; pointer-events: auto; }

.ach-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.ach-sub { font-size: 8.5px; letter-spacing: 0.12em; color: var(--ink-faint); margin-top: 6px; }

.ach-list { display: grid; gap: 1px; background: var(--line); border-top: 1px solid var(--line); }

.ach-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 11px 9px;
  background: rgba(7, 11, 16, 0.82);
  text-align: left;
  transition: background 0.28s, padding-left 0.28s;
}

.ach-item:hover { background: rgba(217, 180, 120, 0.09); padding-left: 13px; }

.ach-item .y {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.ach-item .t { font-size: 11.5px; letter-spacing: 0.04em; color: rgba(236, 230, 216, 0.86); }
.ach-item .t small { display: block; font-size: 8.5px; letter-spacing: 0.1em; color: rgba(236, 230, 216, 0.3); margin-top: 3px; }

.ach-item .s {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(236, 230, 216, 0.16);
  font-size: 8px;
  color: rgba(236, 230, 216, 0.3);
}

.ach-item.seen .s { border-color: var(--gold-soft); color: var(--gold); background: rgba(217, 180, 120, 0.12); }
.ach-item.locked .t { color: rgba(236, 230, 216, 0.4); }
.ach-item.locked .y { color: rgba(217, 180, 120, 0.42); }

.ach-foot {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid rgba(236, 230, 216, 0.06);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: rgba(236, 230, 216, 0.26);
}

.ach-foot b { color: rgba(217, 180, 120, 0.7); font-weight: 500; }

/* 片尾卡片里的成就回顾 */
.card-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 2px;
  padding: 10px 12px;
  border: 1px solid rgba(236, 230, 216, 0.08);
  background: rgba(217, 180, 120, 0.04);
}

.cp-dots { display: inline-flex; gap: 5px; }

.cp-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(236, 230, 216, 0.18);
}

.cp-dots i.on { background: var(--gold); box-shadow: 0 0 7px rgba(217, 180, 120, 0.8); }

.cp-txt { font-size: 8.5px; letter-spacing: 0.1em; color: rgba(236, 230, 216, 0.4); }
.cp-txt b { color: var(--gold); font-weight: 500; }

/* 卡片内的里程碑翻页 */
.card-nav {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
}

.card-nav .idx {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: rgba(236, 230, 216, 0.34);
}

.card-nav .idx b { color: var(--gold); font-weight: 500; }

.card-nav button {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(236, 230, 216, 0.14);
  border-radius: 50%;
  color: rgba(236, 230, 216, 0.55);
  font-size: 11px;
  line-height: 1;
  transition: all 0.25s;
}

.card-nav button:hover { color: var(--gold); border-color: var(--gold-soft); }
.card-nav button:disabled { opacity: 0.25; cursor: default; }

@media (max-width: 760px) {
  .ach-chip { bottom: 108px; left: 14px; top: auto; right: auto; }
  .ach-panel { top: 84px; left: 10px; right: 10px; width: auto; }
  .card-nav { display: none; }
}

/* ==========================================================================
   5. 金唱片
   ========================================================================== */

.record-fab {
  position: fixed;
  right: clamp(16px, 3vw, 40px);
  bottom: clamp(92px, 11vh, 112px);
  z-index: 60;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 32% 26%, #f6e3b9 0%, #d7ab63 34%, #9d7334 62%, #4a3417 100%);
  box-shadow: 0 0 0 1px rgba(217, 180, 120, 0.4), 0 12px 34px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(217, 180, 120, 0.18);
  transition: transform 0.45s var(--ease), box-shadow 0.45s, opacity 0.4s var(--ease);
}

/* 离屏 / 隐藏时停掉持续动画，省电省 GPU */
body.stage-off .stage-fx.grain,
body.page-hidden .stage-fx.grain,
body.stage-off .model-frame .scanner,
body.page-hidden .model-frame .scanner,
body.stage-off .record-fab::before,
body.stage-off .brand-mark { animation-play-state: paused; }
body.stage-off .record-fab::before { animation: none; }

body.card-open .record-fab,
body.record-open .record-fab { opacity: 0; pointer-events: none; transform: scale(0.9); }

.record-fab::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px);
  animation: spin 18s linear infinite;
}

.record-fab::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #14100a;
  box-shadow: inset 0 0 0 2px rgba(217, 180, 120, 0.55);
}

.record-fab:hover { transform: scale(1.07); box-shadow: 0 0 0 1px var(--gold), 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 60px rgba(217, 180, 120, 0.3); }

.record-fab .ring {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px solid rgba(217, 180, 120, 0.22);
}

.record-fab .tip {
  position: absolute;
  right: 76px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.35s;
}

.record-fab:hover .tip { opacity: 1; }

.record-panel {
  position: fixed;
  z-index: 70;
  right: clamp(12px, 3vw, 40px);
  bottom: clamp(12px, 3vw, 32px);
  width: min(430px, calc(100vw - 24px));
  background: linear-gradient(165deg, rgba(16, 21, 29, 0.94), rgba(6, 9, 13, 0.97));
  border: 1px solid var(--gold-line);
  border-radius: 3px;
  padding: 22px 24px 20px;
  backdrop-filter: blur(24px);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.75);
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.45s var(--ease), transform 0.55s var(--ease);
}

.record-panel.open { opacity: 1; transform: none; pointer-events: auto; }

.record-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.record-head h4 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin: 6px 0 4px;
}

.record-head .sub {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
}

.icon-btn {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-dim);
  font-size: 13px;
  line-height: 1;
  transition: all 0.3s;
  flex: none;
}

.icon-btn:hover { color: var(--gold); border-color: var(--gold-soft); }

.disc-stage {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 6px 0 16px;
}

.disc {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  flex: none;
  position: relative;
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0 1px, rgba(0, 0, 0, 0.25) 1px 2px),
    radial-gradient(circle at 32% 26%, #f7e6bf 0%, #d9ae69 38%, #8d6a31 70%, #3b2a10 100%);
  box-shadow: 0 0 0 1px rgba(217, 180, 120, 0.3), 0 12px 30px rgba(0, 0, 0, 0.55);
}

.disc::before {
  content: "";
  position: absolute;
  inset: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 34%, #2a2011, #0d0a06);
  box-shadow: inset 0 0 0 1px rgba(217, 180, 120, 0.35);
}

.disc::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255, 255, 255, 0.16), transparent 22%, rgba(255, 255, 255, 0.05) 46%, transparent 70%, rgba(255, 255, 255, 0.12));
  mix-blend-mode: screen;
}

.disc.spinning { animation: spin 9s linear infinite; }

.disc-legend { flex: 1; min-width: 0; }
.disc-legend .line {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink);
  min-height: 40px;
  line-height: 1.7;
}

.disc-legend .tr {
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  line-height: 1.7;
  min-height: 30px;
}

.lang-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 8.5px;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
}

.lang-meta #langCounter {
  font-family: var(--mono);
  color: var(--gold);
  letter-spacing: 0.06em;
  font-size: 9.5px;
}

.lang-hint { margin-left: auto; font-size: 8px; color: rgba(236, 230, 216, 0.22); letter-spacing: 0.1em; }

.lang-nav { display: flex; gap: 4px; }

.lang-nav button {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-dim);
  font-size: 13px;
  line-height: 1;
  transition: all 0.25s;
}

.lang-nav button:hover { color: var(--gold); border-color: var(--gold-soft); }

.lang-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-bottom: 12px;
}

.lang-grid.scroll {
  max-height: 135px;
  overflow-y: auto;
  padding-right: 4px;
  overscroll-behavior: contain;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 96%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0, #000 96%, transparent 100%);
  scroll-behavior: smooth;
}

.lang-grid.scroll::-webkit-scrollbar { width: 3px; }
.lang-grid.scroll::-webkit-scrollbar-track { background: rgba(236, 230, 216, 0.06); }
.lang-grid.scroll::-webkit-scrollbar-thumb { background: rgba(217, 180, 120, 0.35); border-radius: 2px; }

.voice-tag {
  font-size: 8px;
  letter-spacing: 0.08em;
  color: rgba(236, 230, 216, 0.28);
  margin-top: 10px;
  line-height: 1.7;
}

.voice-tag b { color: rgba(217, 180, 120, 0.78); font-weight: 500; }
.voice-tag.warn { color: rgba(232, 176, 120, 0.55); }
.voice-tag .vt-tip { display: block; margin-top: 4px; color: rgba(122, 167, 199, 0.6); }

.disc-legend .tr-zh { color: rgba(236, 230, 216, 0.52); font-size: 10px; min-height: 16px; margin-top: 2px; }

.lang-grid button {
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: rgba(236, 230, 216, 0.62);
  border: 1px solid var(--line);
  padding: 7px 2px;
  border-radius: 2px;
  transition: all 0.25s;
  white-space: nowrap;
}

.lang-grid button:hover { color: var(--gold); border-color: var(--gold-soft); background: rgba(217, 180, 120, 0.07); }
.lang-grid button.on { color: #14100a; background: var(--gold); border-color: var(--gold); }

/* 每种语言的音色状态点：金=原生 蓝=近似语种 灰=中文译文 空心=无 */
.lang-grid button[data-v] { position: relative; }

.lang-grid button[data-v]::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: transparent;
}

.lang-grid button[data-v="native"]::after { background: var(--gold); }
.lang-grid button[data-v="near"]::after { background: #7aa7c7; }
.lang-grid button[data-v="zh"]::after { background: rgba(236, 230, 216, 0.22); }
.lang-grid button[data-v="none"]::after { border: 1px solid rgba(236, 230, 216, 0.3); background: transparent; }
.lang-grid button.on::after { background: #14100a; border-color: #14100a; }

.record-actions { display: flex; align-items: center; gap: 10px; }

.record-note {
  font-size: 8.5px;
  line-height: 1.8;
  letter-spacing: 0.05em;
  color: rgba(236, 230, 216, 0.3);
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(236, 230, 216, 0.07);
}

/* ==========================================================================
   6. 序
   ========================================================================== */

#prologue {
  position: relative;
  padding: clamp(66px, 9vw, 130px) clamp(20px, 5vw, 80px) clamp(30px, 5vw, 56px);
  background:
    radial-gradient(60% 55% at 82% 8%, rgba(52, 62, 78, 0.4) 0%, transparent 62%),
    linear-gradient(to bottom, #04060a, #05080d 60%, #04060a);
  overflow: hidden;
}

#prologue::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(236, 230, 216, 0.12), transparent);
}

.pro-inner { max-width: 1180px; margin: 0 auto; position: relative; }

#prologue h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.08em;
  margin: 18px 0 clamp(32px, 4vw, 54px);
}

#prologue h2 em {
  font-style: normal;
  color: var(--gold);
  text-shadow: 0 0 40px rgba(217, 180, 120, 0.3);
}

.pro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(220px, 0.72fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.pro-copy p {
  font-size: 13.5px;
  line-height: 2.25;
  letter-spacing: 0.03em;
  color: rgba(236, 230, 216, 0.66);
  margin: 0 0 18px;
}

.pro-copy .pro-em {
  color: rgba(236, 230, 216, 0.88);
  border-left: 1px solid var(--gold-line);
  padding-left: 18px;
  margin-top: 26px;
}

.pro-stats {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 4px;
}

.pro-stats div {
  background: rgba(7, 11, 16, 0.72);
  padding: 13px 16px 14px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.pro-stats .k {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  white-space: nowrap;
}

.pro-stats .v {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink);
  white-space: nowrap;
}

.pro-stats .v.gold { color: var(--gold); }
.pro-stats .v small { font-size: 8.5px; color: var(--ink-dim); margin-left: 3px; letter-spacing: 0.06em; }

.pro-rule {
  max-width: 1180px;
  margin: clamp(34px, 5vw, 62px) auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 180, 120, 0.35), transparent);
}

/* ==========================================================================
   7. 对比视角
   ========================================================================== */

#compare {
  position: relative;
  background:
    radial-gradient(70% 60% at 18% 20%, rgba(28, 44, 62, 0.5) 0%, transparent 60%),
    radial-gradient(60% 60% at 90% 80%, rgba(60, 44, 22, 0.32) 0%, transparent 62%),
    var(--bg);
  padding: clamp(64px, 9vw, 132px) clamp(18px, 5vw, 80px);
  border-top: 1px solid rgba(236, 230, 216, 0.06);
  overflow: hidden;
}

#compare::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(236, 230, 216, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 230, 216, 0.028) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(110% 80% at 50% 30%, #000 20%, transparent 78%);
  pointer-events: none;
}

.compare-head {
  position: relative;
  max-width: 1180px;
  margin: 0 auto clamp(36px, 5vw, 62px);
}

.compare-head h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4.6vw, 52px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.06em;
  margin: 16px 0 16px;
}

.compare-head h2 em {
  font-style: normal;
  color: var(--gold);
}

.compare-head .lede {
  max-width: 660px;
  font-size: 13px;
  line-height: 2.1;
  color: var(--ink-dim);
  letter-spacing: 0.02em;
  margin: 0;
}

.compare-body {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 460px) 1fr;
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
}

.dial-wrap { position: relative; margin-top: 4px; }

#dial { width: 100%; height: auto; display: block; }

.dial-caption {
  text-align: center;
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--ink-faint);
  margin-top: 6px;
}

/* 滑杆 */
.slider-block {
  background: rgba(9, 13, 19, 0.6);
  border: 1px solid var(--line);
  padding: 20px 22px 18px;
  margin-bottom: 18px;
  backdrop-filter: blur(10px);
}

.slider-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 14px;
}

.slider-top .label {
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
}

.slider-top .val {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--gold);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold) var(--fill, 0%), rgba(236, 230, 216, 0.16) var(--fill, 0%));
  outline: none;
  cursor: pointer;
  margin: 10px 0 4px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff3da;
  box-shadow: 0 0 0 4px rgba(217, 180, 120, 0.18), 0 0 14px rgba(217, 180, 120, 0.8);
  cursor: grab;
}

input[type="range"]::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 0;
  border-radius: 50%;
  background: #fff3da;
  box-shadow: 0 0 0 4px rgba(217, 180, 120, 0.18);
}

.slider-scale {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 8.5px;
  color: rgba(236, 230, 216, 0.28);
  letter-spacing: 0.08em;
}


/* 频谱条 */
.wave-wrap {
  position: relative;
  height: 34px;
  margin: 0 0 12px;
  border-top: 1px solid rgba(236, 230, 216, 0.07);
  border-bottom: 1px solid rgba(236, 230, 216, 0.07);
  overflow: hidden;
}

#wave {
  display: block;
  width: 100%;
  height: 34px;
}

.wave-cap {
  position: absolute;
  right: 0;
  top: 3px;
  font-size: 7.5px;
  letter-spacing: 0.14em;
  color: rgba(236, 230, 216, 0.22);
  pointer-events: none;
}

/* 音色选择 */
.voice-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  min-height: 22px;
}

.vr-label {
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
  flex: none;
}

.voice-list {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.voice-list::-webkit-scrollbar { display: none; }

.voice-list button {
  flex: none;
  font-size: 8.5px;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: rgba(236, 230, 216, 0.55);
  white-space: nowrap;
  transition: all 0.25s;
  max-width: 132px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.voice-list button:hover { color: var(--gold); border-color: var(--gold-soft); }
.voice-list button.near { border-style: dashed; color: rgba(236, 230, 216, 0.42); }
.voice-list button.on { color: #14100a; background: var(--gold); border-color: var(--gold); }
.voice-list .vr-empty { font-size: 8px; color: rgba(236, 230, 216, 0.24); letter-spacing: 0.08em; }

/* 数据格 */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 18px;
}

.stat-grid div { background: rgba(7, 11, 16, 0.8); padding: 15px 14px 16px; }

.stat-grid .k {
  display: block;
  font-size: 8.5px;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  margin-bottom: 8px;
}

.stat-grid .v {
  font-family: var(--mono);
  font-size: 17px;
  color: var(--ink);
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.stat-grid .v small { font-size: 9px; color: var(--ink-dim); margin-left: 3px; letter-spacing: 0.1em; }
.stat-grid .v.gold { color: var(--gold); }


/* 实时对比 */
.live-strip {
  border: 1px solid var(--gold-line);
  background: linear-gradient(150deg, rgba(24, 32, 42, 0.6), rgba(8, 12, 17, 0.7));
  padding: 13px 16px 12px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}

.live-strip::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  opacity: 0.55;
}

.live-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 8.5px;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  margin-bottom: 10px;
}

.live-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  animation: blink 2.2s ease-in-out infinite;
}

.live-t {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.live-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: start;
}

.live-grid > div { display: grid; gap: 5px; }

.live-grid .lk { font-size: 8.5px; letter-spacing: 0.12em; color: rgba(236, 230, 216, 0.4); }

.live-grid .lv {
  font-family: var(--mono);
  font-size: 19px;
  color: var(--ink);
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.live-grid .lv.gold { color: var(--gold); text-align: right; }
.live-grid .lv small { font-size: 9px; color: var(--ink-dim); margin-left: 3px; letter-spacing: 0.08em; }

.live-foot {
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid rgba(236, 230, 216, 0.07);
  font-size: 8px;
  letter-spacing: 0.06em;
  color: rgba(236, 230, 216, 0.26);
  line-height: 1.7;
}

/* 赛跑对比 */
.race-head {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--ink-dim);
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.race-head span { font-size: 8px; letter-spacing: 0.2em; color: rgba(236, 230, 216, 0.22); }

.race-note {
  font-size: 8px;
  letter-spacing: 0.08em;
  color: rgba(236, 230, 216, 0.24);
  margin-top: 8px;
}

.race {
  border: 1px solid var(--line);
  background: rgba(7, 11, 16, 0.55);
  padding: 18px 20px 16px;
}

.race-row {
  display: grid;
  grid-template-columns: 74px 1fr 96px;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.race-row:last-child { margin-bottom: 0; }

.race-row .who { font-size: 10px; letter-spacing: 0.14em; color: var(--ink-dim); }
.race-row .who b { color: var(--ink); font-weight: 500; display: block; font-size: 11px; letter-spacing: 0.08em; }

.race-lane {
  position: relative;
  height: 2px;
  background: rgba(236, 230, 216, 0.1);
  overflow: visible;
}

.race-lane .fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, rgba(143, 216, 232, 0.15), var(--cyan));
  transition: width 0.4s linear;
}

.race-row.voyager .race-lane .fill {
  background: linear-gradient(90deg, rgba(217, 180, 120, 0.2), var(--gold));
}

.race-lane .runner {
  position: absolute;
  top: 50%;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #eafaff;
  box-shadow: 0 0 12px var(--cyan);
  transform: translate(-50%, -50%);
  transition: left 0.4s linear;
}

.race-row.voyager .race-lane .runner { background: #fff1d4; box-shadow: 0 0 12px var(--gold); }

.race-mini {
  position: absolute;
  left: 3.4%;
  top: -16px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  color: rgba(217, 180, 120, 0.55);
  white-space: nowrap;
}

.race-row .t {
  font-family: var(--mono);
  font-size: 11px;
  text-align: right;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.race-row.light .t { color: var(--cyan); }

.race-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 12px;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
}

.race-foot b { color: var(--gold); font-weight: 500; }

/* 尺度阶梯 */
.ladder { margin-top: 26px; }

.ladder-head {
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: var(--ink-faint);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ladder-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.ladder-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 8px 2px;
  width: 100%;
  text-align: left;
  border-bottom: 1px solid rgba(236, 230, 216, 0.055);
  transition: background 0.3s, padding-left 0.3s;
}

.ladder-row:hover { background: rgba(217, 180, 120, 0.05); padding-left: 8px; }

.ladder-row .nm { font-size: 11.5px; letter-spacing: 0.06em; color: rgba(236, 230, 216, 0.78); }
.ladder-row .nm small { font-size: 8.5px; letter-spacing: 0.14em; color: rgba(236, 230, 216, 0.28); margin-left: 8px; }
.ladder-row .dist { font-family: var(--mono); font-size: 10px; color: rgba(236, 230, 216, 0.4); }
.ladder-row .lt { font-family: var(--mono); font-size: 10.5px; color: var(--gold); white-space: nowrap; }

/* ==========================================================================
   7. 尾声
   ========================================================================== */

#outro {
  position: relative;
  min-height: 68svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(60px, 10vw, 140px) 22px;
  background:
    radial-gradient(60% 50% at 50% 52%, rgba(30, 48, 70, 0.45) 0%, transparent 70%),
    var(--bg);
  border-top: 1px solid rgba(236, 230, 216, 0.06);
}

.outro-inner { max-width: 720px; }

.outro-inner .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #cfe6f5;
  margin: 0 auto 34px;
  box-shadow: 0 0 22px 4px rgba(180, 220, 245, 0.55);
  animation: breathe 5s ease-in-out infinite;
}

.outro-quote {
  font-family: var(--serif);
  font-size: clamp(17px, 2.3vw, 24px);
  line-height: 2.15;
  letter-spacing: 0.1em;
  color: rgba(236, 230, 216, 0.9);
  margin: 0 0 20px;
}

.outro-quote em { font-style: normal; color: var(--gold); }

.outro-by {
  font-size: 9.5px;
  letter-spacing: 0.26em;
  color: var(--ink-faint);
  margin-bottom: 42px;
}

.outro-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.credits {
  margin-top: 64px;
  font-size: 8.5px;
  line-height: 2;
  letter-spacing: 0.14em;
  color: rgba(236, 230, 216, 0.22);
}

/* 滚动提示 */
.scroll-cue {
  position: absolute;
  z-index: 6;
  left: clamp(18px, 3.4vw, 52px);
  bottom: calc(var(--ctl-band) + 112px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-size: 8.5px;
  letter-spacing: 0.28em;
  color: rgba(236, 230, 216, 0.34);
  transition: opacity 0.6s;
  pointer-events: none;
}

.scroll-cue .line {
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, var(--gold-soft), transparent);
  animation: cueDrop 2.4s ease-in-out infinite;
}

@keyframes cueDrop {
  0%, 100% { transform: scaleY(0.4); opacity: 0.3; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
}

/* 顶部进度条（滚动） */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 1px;
  width: 0;
  background: linear-gradient(90deg, var(--gold), rgba(217, 180, 120, 0.2));
  z-index: 100;
  transition: width 0.1s linear;
}

/* ==========================================================================
   8. 响应式
   ========================================================================== */

@media (max-width: 1024px) {
  .compare-body { grid-template-columns: 1fr; }
  .dial-wrap { max-width: 420px; margin: 0 auto; }
  .model-frame { top: 18%; width: clamp(170px, 24vh, 230px); height: clamp(170px, 24vh, 230px); }
}

@media (max-width: 760px) {
  .card, .record-panel, .play-btn, .pill-btn { backdrop-filter: blur(10px); }
  .hud-top { top: 16px; gap: 12px; }
  .hud-top { flex-direction: column; align-items: flex-start; gap: 7px; }
  .telemetry { flex-wrap: wrap; justify-content: flex-start; gap: 4px 12px; }
  .telemetry .row + .row { padding-left: 12px; }
  .telemetry .row:nth-child(3) { display: none; }
  .telemetry .v { font-size: 10.5px; }
  .brand-text { font-size: 11px; letter-spacing: 0.24em; }
  .brand-text small { font-size: 7.5px; letter-spacing: 0.14em; white-space: nowrap; }
  .telemetry .flag { display: none; }
  #btnRecord { display: none; }

  #stage { --ctl-band: clamp(56px, 9vh, 104px); }
  .controls {
    grid-template-columns: auto 1fr;
    grid-template-areas: "play timeline" "meta meta";
    gap: 10px 12px;
    bottom: 14px;
  }
  .scroll-cue { bottom: calc(var(--ctl-band) + 96px); }
  .play-btn { grid-area: play; width: 38px; height: 38px; }
  .timeline-wrap { grid-area: timeline; }
  .meta { grid-area: meta; justify-content: space-between; gap: 8px; }
  .chapter-chip { display: none; }
  .pill-btn { padding: 6px 10px; font-size: 8.5px; letter-spacing: 0.1em; }
  .marker .nm { display: none; }
  .marker .yr { font-size: 8px; }
  .marker[data-id="saturn"] .yr { display: none; }
  .marker { width: 26px; }

  .card-layer { place-items: end center; padding: 0 10px 96px; }
  .card {
    padding: 22px 20px 20px;
    max-height: calc(100svh - 156px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .card.intro { padding: 28px 22px 24px; }
  .card-year { font-size: 36px; }
  .card h3 { font-size: 18px; }
  .card p { font-size: 12px; line-height: 1.85; }
  .card-facts { grid-template-columns: 1fr 1fr; }
  .card-facts div:last-child { display: none; }
  .card-actions { flex-wrap: wrap; }
  .card-hint { display: none; }

  .model-frame { display: none; }

  .record-fab { width: 48px; height: 48px; right: 14px; bottom: 104px; }
  .record-fab .tip { display: none; }
  .record-panel {
    right: 8px; left: 8px; width: auto; bottom: 150px; padding: 16px 16px 14px;
    max-height: calc(100svh - 236px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(217,180,120,0.35) transparent;
  }
  .record-panel::-webkit-scrollbar { width: 3px; }
  .record-panel::-webkit-scrollbar-thumb { background: rgba(217,180,120,0.35); border-radius: 2px; }
  .lang-grid { grid-template-columns: repeat(3, 1fr); }
  .lang-grid button { font-size: 8.5px; padding: 6px 1px; }
  .lang-grid.scroll { max-height: 88px; }
  .lang-hint { display: none; }
  .track-bubble { bottom: 24px; font-size: 9px; }
  .disc { width: 74px; height: 74px; }
  .disc::before { inset: 20px; }

  .stat-grid { grid-template-columns: 1fr; }
  .stat-grid div { padding: 12px 14px; }
  .race-row { grid-template-columns: 54px 1fr 66px; gap: 8px; }
  .ladder-row { grid-template-columns: 1fr auto; gap: 8px; }
  .ladder-row .dist { display: none; }
  .scroll-cue { display: none; }
  .compare-head h2 { font-size: 26px; }
  .pro-grid { grid-template-columns: 1fr; gap: 26px; }
  .pro-copy p { font-size: 12.5px; line-height: 2.1; }
  .pro-stats { grid-template-columns: 1fr 1fr; }
  .pro-stats div { flex-direction: column; align-items: flex-start; gap: 6px; }
  .outro-quote { font-size: 15px; line-height: 2.1; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .stage-fx.grain { display: none; }
}
