:root {
  --bg: #08080b;
  --bg-2: #111116;
  --card: #16161d;
  --line: #24242d;
  --text: #ededf2;
  --muted: #9a9aa8;
  --dim: #66667a;
  --img: #ff8a3d;
  --vid: #3ec7ff;
  --rec: #ff3b3b;
  --ok: #4ade80;
  --err: #f87171;
  --radius: 14px;
  --nav-h: 56px;
  --ed-h: 92px;
  --font: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --mono: 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-padding-top: var(--nav-h); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.wrap { width: min(1180px, 100% - 32px); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 胶片颗粒：整页叠一层轻微的噪点 */
body.cinema::after { content: ''; position: fixed; inset: -50%; z-index: 400; pointer-events: none; opacity: .07; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); animation: grain .9s steps(5) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); } 60% { transform: translate(-6%, -2%); } 80% { transform: translate(5%, 4%); } }

/* ---------- 顶栏（剪辑软件风格） ---------- */
.nav { position: sticky; top: 0; z-index: 60; height: var(--nav-h); background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
body.cinema .nav { position: fixed; left: 0; right: 0; }
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 100%; width: min(1600px, 100% - 32px); }
.brand { font-weight: 800; text-decoration: none; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.rec { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; color: var(--rec); letter-spacing: .1em; }
.rec::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--rec); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .15; } }
.brand .file { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--muted); }
.nav-links { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; }
.nav-links a { text-decoration: none; color: var(--muted); padding: 6px 12px; border-radius: 8px; white-space: nowrap; font-size: 15px; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--card); }
.nav-tc { font-family: var(--mono); font-size: 13px; color: var(--muted); padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; white-space: nowrap; }
.nav-tc b { color: var(--text); font-weight: 600; }

/* ---------- 按钮 / 表单 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); cursor: pointer; text-decoration: none; font-weight: 600; transition: .15s; }
.btn:hover { border-color: #3a3a46; background: #1e1e27; }
.btn-primary { background: linear-gradient(135deg, var(--img), #ff5f6d); border: 0; color: #fff; }
.btn-primary:hover { filter: brightness(1.08); background: linear-gradient(135deg, var(--img), #ff5f6d); }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.btn-sm { padding: 5px 12px; font-size: 13px; border-radius: 8px; }
.input { width: 100%; padding: 12px 14px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; outline: none; transition: .15s; }
.input:focus { border-color: var(--img); }
textarea.input { resize: vertical; min-height: 120px; line-height: 1.6; }

.toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%) translateY(20px); background: #24242e; border: 1px solid var(--line); padding: 10px 18px; border-radius: 10px; opacity: 0; transition: .25s; z-index: 500; pointer-events: none; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%); }
.toast.err { border-color: var(--err); color: #fecaca; }

/* ---------- 灯箱 ---------- */
.lightbox { position: fixed; inset: 0; z-index: 450; background: #000e; display: none; align-items: center; justify-content: center; padding: 32px; flex-direction: column; gap: 14px; }
.lightbox.open { display: flex; animation: fade .2s; }
.lightbox img, .lightbox video { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; border-radius: 8px; }
.lightbox .cap { color: var(--muted); text-align: center; max-width: 900px; }
.lightbox .close { position: absolute; top: 16px; right: 20px; font-size: 28px; background: none; border: 0; cursor: pointer; color: #fff; }
@keyframes fade { from { opacity: 0; } }

/* =====================================================================
   发展史：整页是一个“剪辑工程”
   ===================================================================== */

/* ---------- 开场：去噪出片 ---------- */
.hero { position: relative; height: 100vh; min-height: 560px; overflow: hidden; background: #000; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-hud { position: absolute; top: calc(var(--nav-h) + 20px); left: 24px; right: 24px; display: flex; justify-content: space-between; gap: 16px; font-family: var(--mono); font-size: 13px; color: #fffc; text-shadow: 0 1px 4px #000; pointer-events: none; }
.hero-hud .prompt { max-width: 60%; }
.hero-hud .prompt b { color: #fff; }
.hero-hud .steps b { font-size: 22px; color: #fff; }
.hero-bar { position: absolute; left: 24px; right: 24px; top: calc(var(--nav-h) + 74px); height: 2px; background: #fff2; }
.hero-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--img), var(--vid)); }
.hero-foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 24px 40px; background: linear-gradient(transparent, #000c 60%); opacity: 0; transform: translateY(20px); transition: .9s cubic-bezier(.2, .8, .2, 1); }
.hero.done .hero-foot { opacity: 1; transform: none; }
.hero-foot .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; width: min(1600px, 100%); }
.hero-foot p { font-size: clamp(16px, 1.6vw, 20px); color: #ddd; max-width: 620px; margin: 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.scroll-cue { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); font-family: var(--mono); font-size: 12px; color: #fff9; opacity: 0; transition: .6s .6s; }
.hero.done .scroll-cue { opacity: 1; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translate(-50%, 6px); } }
.hero .letterbox { position: absolute; left: 0; right: 0; height: 9vh; background: #000; z-index: 2; transition: transform 1.2s cubic-bezier(.7, 0, .2, 1); }
.hero .letterbox.top { top: 0; }
.hero .letterbox.bottom { bottom: 0; }
.hero.done .letterbox.top { transform: translateY(-100%); }
.hero.done .letterbox.bottom { transform: translateY(100%); }

/* ---------- 每一个“镜头”的通用状态 ---------- */
.stop { position: relative; }

/* ---------- 轨道开场：第一条路 / 第二条路 ---------- */
.track-intro { min-height: 100vh; display: flex; align-items: center; overflow: hidden; padding: var(--nav-h) 0 var(--ed-h); }
.track-intro .wrap { position: relative; }
.ti-num { position: absolute; right: -2vw; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-weight: 800; font-size: clamp(200px, 34vw, 520px); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--line); pointer-events: none; }
.track-intro.image .ti-num { -webkit-text-stroke-color: color-mix(in srgb, var(--img) 30%, transparent); }
.track-intro.video .ti-num { -webkit-text-stroke-color: color-mix(in srgb, var(--vid) 30%, transparent); }
.ti-kicker { font-family: var(--mono); font-size: 14px; letter-spacing: .14em; }
.track-intro.image .ti-kicker { color: var(--img); }
.track-intro.video .ti-kicker { color: var(--vid); }
.track-intro h2 { text-wrap: balance; font-size: clamp(44px, 7.4vw, 116px); line-height: 1.05; margin: 18px 0; font-weight: 900; letter-spacing: -.02em; }
.track-intro p { font-size: clamp(18px, 2vw, 24px); color: var(--muted); margin: 0; }
.ti-body > * { opacity: 0; transform: translateY(40px); transition: 1s cubic-bezier(.2, .8, .2, 1); }
.track-intro.in .ti-body > * { opacity: 1; transform: none; }
.track-intro.in .ti-body > :nth-child(2) { transition-delay: .15s; }
.track-intro.in .ti-body > :nth-child(3) { transition-delay: .35s; }

/* 故障风标题 */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; opacity: 0; mix-blend-mode: screen; pointer-events: none; }
.glitch::before { color: var(--vid); }
.glitch::after { color: var(--rec); }
.in .glitch::before { animation: glitch-a 2.4s steps(1) .3s; }
.in .glitch::after { animation: glitch-b 2.4s steps(1) .3s; }
.glitch:hover::before { animation: glitch-a .8s steps(1) infinite; }
.glitch:hover::after { animation: glitch-b .8s steps(1) infinite; }
@keyframes glitch-a { 0% { opacity: .9; clip-path: inset(8% 0 70% 0); transform: translate(-8px, 0); } 10% { clip-path: inset(55% 0 20% 0); transform: translate(6px, 0); } 20% { clip-path: inset(30% 0 45% 0); transform: translate(-4px, 2px); } 30% { clip-path: inset(80% 0 4% 0); transform: translate(8px, 0); } 40% { opacity: 0; } 70% { opacity: .9; clip-path: inset(40% 0 40% 0); transform: translate(-6px, 0); } 75% { opacity: 0; } 100% { opacity: 0; } }
@keyframes glitch-b { 0% { opacity: .9; clip-path: inset(60% 0 12% 0); transform: translate(8px, 0); } 10% { clip-path: inset(10% 0 66% 0); transform: translate(-6px, 0); } 20% { clip-path: inset(44% 0 30% 0); transform: translate(4px, -2px); } 30% { clip-path: inset(2% 0 84% 0); transform: translate(-8px, 0); } 40% { opacity: 0; } 72% { opacity: .9; clip-path: inset(20% 0 60% 0); transform: translate(6px, 0); } 77% { opacity: 0; } 100% { opacity: 0; } }

/* ---------- 场记板：每一幕的开头 ---------- */
.slate { min-height: 90vh; display: flex; align-items: center; justify-content: center; padding: var(--nav-h) 16px var(--ed-h); perspective: 1000px; }
.clapper { width: min(640px, 100%); transform: translateY(60px) rotateX(20deg); opacity: 0; transition: 1s cubic-bezier(.2, .8, .2, 1); }
.slate.in .clapper { transform: none; opacity: 1; }
.clap-top { height: 54px; border-radius: 10px 10px 0 0; background: repeating-linear-gradient(-45deg, #f3f3f3 0 34px, #111 34px 68px); transform-origin: 2% 100%; transform: rotate(-24deg); box-shadow: 0 6px 20px #0008; }
.slate.in .clap-top { animation: clap .5s cubic-bezier(.6, 0, .9, .4) .7s forwards; }
@keyframes clap { to { transform: rotate(0); } }
.clap-hinge { height: 14px; background: repeating-linear-gradient(-45deg, #111 0 34px, #f3f3f3 34px 68px); }
.clap-body { background: #141418; border: 2px solid #2b2b33; border-top: 0; border-radius: 0 0 12px 12px; padding: 22px 26px; font-family: var(--mono); }
.clap-row { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 8px 16px; align-items: baseline; color: var(--dim); font-size: 13px; letter-spacing: .1em; }
.clap-row b { color: var(--text); font-size: 18px; letter-spacing: 0; font-weight: 600; }
.clap-title { font-family: var(--font); font-size: clamp(28px, 4.4vw, 46px); font-weight: 900; margin: 16px 0 18px; padding: 14px 0; border-top: 1px dashed #333; border-bottom: 1px dashed #333; line-height: 1.25; }
.slate.image .clap-row b.act { color: var(--img); }
.slate.video .clap-row b.act { color: var(--vid); }
.flash { position: fixed; inset: 0; background: #fff; pointer-events: none; z-index: 420; opacity: 0; }
.flash.go { animation: flash .45s ease-out; }
@keyframes flash { 0% { opacity: .5; } 100% { opacity: 0; } }

/* ---------- 镜头（每个历史节点） ---------- */
.scene { min-height: 100vh; display: flex; align-items: center; padding: calc(var(--nav-h) + 40px) 0 calc(var(--ed-h) + 70px); overflow: hidden; }
.scene .wrap { width: min(1440px, 100% - 48px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; position: relative; z-index: 1; }
.scene.flip .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.scene.flip .scene-text { order: 2; }
.scene-year { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--mono); font-weight: 800; font-size: clamp(160px, 26vw, 420px); line-height: 1; color: transparent; -webkit-text-stroke: 1px #1d1d25; white-space: nowrap; pointer-events: none; user-select: none; }
.scene-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-family: var(--mono); font-size: 14px; }
.scene-meta .tc { padding: 2px 10px; border-radius: 6px; font-weight: 700; color: #000; }
.scene.image .tc { background: var(--img); }
.scene.video .tc { background: var(--vid); }
.scene-meta .idx { color: var(--dim); }
.scene h3 { text-wrap: balance; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.2; margin: 0 0 6px; font-weight: 900; letter-spacing: -.01em; }
.scene .org { color: var(--dim); font-size: 15px; margin-bottom: 20px; }
.scene .summary { font-size: clamp(16px, 1.35vw, 19px); color: #d4d4dc; margin: 0 0 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 13px; padding: 3px 10px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); color: var(--muted); }

/* 逐字弹出的标题 */
.split .ch { display: inline-block; opacity: 0; transform: translateY(60%) rotate(6deg); filter: blur(6px); transition: .6s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i) * 28ms); }
.in .split .ch { opacity: 1; transform: none; filter: none; }
.reveal { opacity: 0; transform: translateY(24px); transition: .8s cubic-bezier(.2, .8, .2, 1); }
.in .reveal { opacity: 1; transform: none; }
.in .reveal.d1 { transition-delay: .35s; }
.in .reveal.d2 { transition-delay: .5s; }
.in .reveal.d3 { transition-delay: .65s; }

/* 画面：转场擦除 + 缓慢推镜 */
.scene-media { position: relative; }
.wipe { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s cubic-bezier(.7, 0, .2, 1) .15s; }
.scene.flip .wipe { clip-path: inset(0 0 0 100%); }
.in .wipe, .scene.flip.in .wipe { clip-path: inset(0 0 0 0); }
.media-grid { display: grid; gap: 14px; }
.media-grid.n2 { grid-template-columns: 1fr 1fr; }
.media-grid.n3 { grid-template-columns: 1fr 1fr 1fr; }
.media { margin: 0; }
.media-box { border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); cursor: zoom-in; position: relative; aspect-ratio: 16 / 10; }
.media-grid.n3 .media-box { aspect-ratio: 3 / 2; }
.media-box img, .media-box video { width: 100%; height: 100%; object-fit: contain; }
.in .media-box img { animation: kenburns 14s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.media figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.media figcaption .src { color: var(--dim); }
.placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; text-align: center; color: var(--dim); background: repeating-linear-gradient(45deg, var(--bg-2), var(--bg-2) 12px, #15151b 12px, #15151b 24px); cursor: default; }
.placeholder b { color: var(--muted); font-size: 15px; }
.placeholder code { font-family: var(--mono); font-size: 12px; background: #000a; padding: 2px 8px; border-radius: 4px; word-break: break-all; }

/* 录像带质感：早期视频 */
.vhs .media-box::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, #0005 0 1px, transparent 1px 3px); }
.vhs .media-box::before { content: '▶ PLAY   SP'; position: absolute; top: 10px; left: 14px; z-index: 2; font-family: var(--mono); font-size: 14px; color: #fff; text-shadow: 2px 0 #f00, -2px 0 #0ff; pointer-events: none; }
.vhs .media-box video { filter: saturate(1.4) contrast(1.15); }
.vhs .media-box.placeholder::before, .vhs .media-box.placeholder::after { display: none; }

/* 字幕条：每个镜头的“意义” */
.subtitle { position: absolute; left: 50%; bottom: calc(var(--ed-h) + 18px); transform: translateX(-50%); width: min(980px, calc(100% - 32px)); text-align: center; z-index: 3; font-size: clamp(16px, 1.5vw, 21px); pointer-events: none; }
.subtitle span { display: inline; background: #000c; padding: 4px 12px; line-height: 2; -webkit-box-decoration-break: clone; box-decoration-break: clone; border-radius: 4px; }
.subtitle b { font-weight: 700; margin-right: 6px; }
.subtitle i { font-style: normal; }
.subtitle .sub-rest { color: transparent; }
.subtitle { opacity: 0; transition: opacity .6s .6s; }
.in .subtitle { opacity: 1; }
.scene.image .subtitle b { color: var(--img); }
.scene.video .subtitle b { color: var(--vid); }
.subtitle .caret { display: inline-block; width: 2px; height: 1em; background: currentColor; vertical-align: -2px; margin-left: 2px; animation: blink .8s steps(2) infinite; }

/* 全屏镜头（Sora） */
.scene.fullbleed { padding: 0; align-items: flex-end; }
.scene.fullbleed .bg { position: absolute; inset: 0; z-index: 0; }
.scene.fullbleed .bg .media-box { position: absolute; inset: 0; border-radius: 0; border: 0; aspect-ratio: auto; height: 100%; }
.scene.fullbleed .bg .media-box video, .scene.fullbleed .bg .media-box img { object-fit: cover; }
.scene.fullbleed .bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #000d, #0006 50%, transparent), linear-gradient(transparent 50%, #000c); pointer-events: none; }
.scene.fullbleed .wrap { grid-template-columns: minmax(0, 560px) 1fr; padding-bottom: calc(var(--ed-h) + 110px); }
.scene.fullbleed .pip { align-self: end; justify-self: end; width: min(340px, 100%); }
.scene.fullbleed .pip .media-box { box-shadow: 0 20px 60px #000a; }

/* ---------- 特效 1：GAN 对抗 ---------- */
.fx-gan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 14px; }
.gan-flow { display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto; align-items: center; gap: 8px; }
.gan-node { text-align: center; padding: 10px 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); font-weight: 700; font-size: 15px; line-height: 1.3; white-space: nowrap; }
.gan-node small { display: block; font-weight: 400; color: var(--dim); font-size: 12px; }
.gan-node.g { border-color: var(--img); }
.gan-node.d { border-color: var(--vid); }
.gan-arrow { height: 2px; background: var(--line); position: relative; overflow: hidden; }
.gan-arrow::after { content: ''; position: absolute; top: -2px; left: -20%; width: 20%; height: 6px; border-radius: 3px; background: var(--img); animation: flow 1.6s linear infinite; }
@keyframes flow { to { left: 100%; } }
.gan-fake { width: 96px; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.gan-fake canvas { width: 100%; height: 100%; display: block; }
.gan-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font-family: var(--mono); font-size: 14px; color: var(--muted); }
.gan-verdict { font-family: var(--font); font-weight: 900; font-size: 22px; padding: 2px 14px; border-radius: 8px; transition: .3s; }
.gan-verdict.fake { color: var(--err); background: #f8717122; transform: rotate(-4deg); }
.gan-verdict.real { color: var(--ok); background: #4ade8022; }

/* ---------- 特效 2：拖动去噪 ---------- */
.fx-denoise .dn-stage { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); }
.fx-denoise canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.dn-hud { position: absolute; left: 14px; right: 14px; top: 12px; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 13px; color: #fff; text-shadow: 0 1px 3px #000; }
.dn-hud b { font-size: 20px; }
.dn-control { display: flex; align-items: center; gap: 14px; margin-top: 16px; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.dn-range { flex: 1; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--img) var(--p, 0%), var(--line) var(--p, 0%)); outline: none; cursor: pointer; }
.dn-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--img); box-shadow: 0 0 0 6px #ff8a3d33; }
.dn-range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--img); }
.dn-tip { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* ---------- 一碗面条：对比剪辑台 ---------- */
.noodles { min-height: 100vh; padding: calc(var(--nav-h) + 28px) 0 calc(var(--ed-h) + 28px); background: radial-gradient(60% 50% at 50% 0%, #3ec7ff14, transparent), var(--bg); }
.noodles .wrap { width: min(1280px, 100% - 32px); }
.nd-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.nd-head h2 { font-size: clamp(36px, 4.6vw, 68px); line-height: 1.05; margin: 10px 0 8px; font-weight: 900; }
.nd-head p { color: var(--muted); font-size: 18px; margin: 0; }
.kicker { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; color: var(--vid); }
.prompt-chip { font-family: var(--mono); background: var(--card); border: 1px solid var(--line); padding: 8px 14px; border-radius: 8px; font-size: 15px; }
.prompt-chip span { color: var(--dim); }
.cmp { position: relative; aspect-ratio: 16 / 9; width: min(100%, calc((100vh - var(--nav-h) - var(--ed-h) - 330px) * 16 / 9)); min-width: min(100%, 560px); margin: 0 auto; border-radius: 16px; overflow: hidden; background: #000; border: 1px solid var(--line); user-select: none; touch-action: none; cursor: ew-resize; --x: 50%; }
.cmp-side { position: absolute; inset: 0; }
.cmp-side video, .cmp-side img { width: 100%; height: 100%; object-fit: contain; background: #000; }
.cmp-side.b { clip-path: inset(0 0 0 var(--x)); }
.cmp-side .placeholder { position: absolute; inset: 0; }
.cmp-side.a .placeholder { padding-right: 50%; }
.cmp-side.b .placeholder { padding-left: 50%; }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--x); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 12px #000a; pointer-events: none; }
.cmp-handle::after { content: '⟷'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; border-radius: 50%; background: #fff; color: #000; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; }
.cmp-label { position: absolute; top: 16px; padding: 6px 14px; border-radius: 8px; background: #000b; font-family: var(--mono); font-size: 14px; pointer-events: none; }
.cmp-label.a { left: 16px; }
.cmp-label.b { right: 16px; color: var(--vid); }
.filmstrip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 18px; padding: 14px 10px; background: #050507; border-radius: 12px; position: relative; }
.filmstrip::before, .filmstrip::after { content: ''; position: absolute; left: 8px; right: 8px; height: 6px; background: repeating-linear-gradient(90deg, #26262e 0 10px, transparent 10px 20px); }
.filmstrip::before { top: 4px; }
.filmstrip::after { bottom: 4px; }
.take { cursor: pointer; border-radius: 8px; overflow: hidden; border: 2px solid transparent; background: var(--card); transition: .2s; text-align: left; padding: 0; }
.take:hover { transform: translateY(-3px); }
.take.active { border-color: var(--vid); }
.take.is-a { border-color: #fff4; }
.take .thumb { aspect-ratio: 16 / 9; background: #000; position: relative; }
.take .thumb video { width: 100%; height: 100%; object-fit: cover; }
.take .thumb .placeholder { position: absolute; inset: 0; padding: 6px; font-size: 11px; }
.take .thumb .placeholder span, .take .thumb .placeholder code { display: none; }
.take-info { padding: 8px 10px; font-size: 12px; color: var(--muted); }
.take-info b { display: block; color: var(--text); font-size: 14px; }
.take-info .d { font-family: var(--mono); color: var(--vid); }
.nd-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; align-items: center; }
.nd-actions .hint { color: var(--dim); font-size: 13px; margin-left: auto; }

/* ---------- 弹幕讨论 ---------- */
.danmaku { min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: var(--nav-h) 16px var(--ed-h); background: #050507; }
.dm-lanes { position: absolute; inset: var(--nav-h) 0 var(--ed-h); pointer-events: none; }
.dm { position: absolute; left: 0; white-space: nowrap; font-size: clamp(16px, 1.8vw, 24px); font-weight: 700; color: #fffd; text-shadow: 0 0 2px #000, 1px 1px 0 #000; will-change: transform; }
.dm.mine { color: #fff; padding: 0 10px; border: 2px solid var(--img); border-radius: 6px; }
.dm.live { color: #ffd54f; }
.dm-center { position: relative; z-index: 2; width: min(860px, 100%); text-align: center; background: #08080bdd; border: 1px solid var(--line); border-radius: 20px; padding: 36px 32px; backdrop-filter: blur(6px); }
.dm-kicker { font-family: var(--mono); font-size: 13px; color: var(--muted); letter-spacing: .12em; }
.dm-q { font-size: clamp(24px, 3.2vw, 40px); font-weight: 900; line-height: 1.35; margin: 18px 0 22px; min-height: 2.7em; display: flex; align-items: center; justify-content: center; }
.dm-q.swap { animation: qswap .5s; }
@keyframes qswap { from { opacity: 0; transform: translateY(16px); filter: blur(6px); } }
.dm-nav { display: flex; justify-content: center; align-items: center; gap: 14px; font-family: var(--mono); color: var(--muted); }
.dm-nav button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-size: 18px; }
.dm-join { display: inline-flex; margin-top: 22px; }
.dm-login { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* ---------- 结尾：胶片倒计时 ---------- */
.finale { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: var(--nav-h) 16px var(--ed-h); overflow: hidden; }
.leader { position: relative; width: min(380px, 70vw); aspect-ratio: 1; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.leader::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(#ffffff26 var(--sweep, 0deg), transparent 0); border: 3px solid #fff3; }
.leader::after { content: ''; position: absolute; inset: 12%; border-radius: 50%; border: 2px solid #fff2; }
.leader .cross-h, .leader .cross-v { position: absolute; background: #fff2; }
.leader .cross-h { left: -20%; right: -20%; height: 2px; }
.leader .cross-v { top: -20%; bottom: -20%; width: 2px; }
.leader-num { position: relative; font-family: var(--mono); font-size: clamp(120px, 20vw, 220px); font-weight: 800; line-height: 1; }
.finale-body { display: none; }
.finale.done .leader { display: none; }
.finale.done .finale-body { display: block; animation: qswap 1s; }
.finale-body h2 { font-size: clamp(44px, 8vw, 110px); line-height: 1.05; margin: 14px 0 18px; font-weight: 900; }
.finale-body h2 .grad { background: linear-gradient(90deg, var(--img), #ff5f6d 45%, var(--vid)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.finale-body p { color: var(--muted); font-size: 20px; margin: 0 0 32px; }
.finale-body .btn { padding: 15px 34px; font-size: 18px; }

/* ---------- 底部剪辑时间线 ---------- */
.editor { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; height: var(--ed-h); display: flex; background: #0c0c10f2; backdrop-filter: blur(12px); border-top: 1px solid var(--line); transform: translateY(100%); transition: transform .5s cubic-bezier(.2, .8, .2, 1); font-family: var(--mono); }
.editor.show { transform: none; }
.editor.collapsed { transform: translateY(calc(100% - 34px)); }
.ed-transport { width: 200px; flex: none; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 16px; border-right: 1px solid var(--line); }
.ed-buttons { display: flex; gap: 4px; }
.ed-buttons button { width: 34px; height: 30px; border-radius: 6px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.ed-buttons button:hover { border-color: #444; }
.ed-buttons #ed-play { width: 46px; background: var(--text); color: #000; border-color: var(--text); }
.ed-buttons #ed-play.playing { background: var(--rec); border-color: var(--rec); color: #fff; }
.ed-tc { font-size: 15px; font-weight: 700; letter-spacing: .04em; }
.ed-tc small { color: var(--dim); font-weight: 400; font-size: 11px; margin-left: 6px; }
.ed-tracks { flex: 1; position: relative; display: grid; grid-template-rows: 22px 1fr 1fr; padding: 4px 16px 6px 0; min-width: 0; }
.ed-row { display: flex; min-width: 0; }
.ed-name { width: 76px; flex: none; font-size: 11px; color: var(--dim); display: flex; align-items: center; padding-left: 12px; }
.ed-row.image .ed-name b { color: var(--img); }
.ed-row.video .ed-name b { color: var(--vid); }
.ed-lane { position: relative; flex: 1; }
.ed-ruler .ed-lane { border-bottom: 1px solid var(--line); }
.ed-year { position: absolute; top: 3px; font-size: 10px; color: var(--dim); transform: translateX(-50%); }
.ed-year::after { content: ''; position: absolute; left: 50%; top: 15px; height: 4px; width: 1px; background: var(--dim); }
.ed-clip { position: absolute; top: 3px; bottom: 3px; border-radius: 4px; cursor: pointer; overflow: hidden; font-size: 10px; line-height: 1; display: flex; align-items: center; padding: 0 5px; color: #000c; white-space: nowrap; border: 1px solid #0006; transition: filter .15s, transform .15s; min-width: 6px; }
.ed-row.image .ed-clip { background: linear-gradient(180deg, #ffa365, var(--img)); }
.ed-row.video .ed-clip { background: linear-gradient(180deg, #7ad8ff, var(--vid)); }
.ed-clip:hover { filter: brightness(1.2); z-index: 2; }
.ed-clip.current { outline: 2px solid #fff; z-index: 3; }
.ed-playhead { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--rec); pointer-events: none; transition: left .5s cubic-bezier(.2, .8, .2, 1); z-index: 5; }
.ed-playhead::before { content: ''; position: absolute; top: 0; left: -6px; border: 7px solid transparent; border-top: 9px solid var(--rec); }
.ed-tip { position: fixed; z-index: 80; bottom: calc(var(--ed-h) + 8px); padding: 8px 12px; background: #1d1d25; border: 1px solid var(--line); border-radius: 8px; font-family: var(--font); font-size: 13px; pointer-events: none; opacity: 0; transition: opacity .15s; transform: translateX(-50%); white-space: nowrap; }
.ed-tip.show { opacity: 1; }
.ed-tip b { color: var(--muted); font-family: var(--mono); margin-right: 6px; }
.ed-keys { font-size: 10px; color: var(--dim); white-space: nowrap; }
.ed-keys kbd { border: 1px solid var(--line); border-radius: 3px; padding: 0 4px; font-family: var(--mono); }
.progress-line { position: fixed; top: var(--nav-h); left: 0; height: 2px; z-index: 61; background: linear-gradient(90deg, var(--img), var(--vid)); width: 0; }

.footer { border-top: 1px solid var(--line); padding: 28px 0 calc(var(--ed-h) + 28px); color: var(--dim); font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  .split .ch, .reveal, .wipe, .clapper, .ti-body > * { transition: none !important; opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }
  body.cinema::after { animation: none; }
}

/* ---------- 体验区 ---------- */
.studio { padding: 40px 0 80px; }
.login-card { max-width: 440px; margin: 10vh auto 0; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 40px 32px; text-align: center; }
.login-card h1 { margin: 0 0 8px; font-size: 30px; }
.login-card p { color: var(--muted); margin: 0 0 28px; }
.login-card form { display: flex; flex-direction: column; gap: 12px; }
.login-card .input { text-align: center; font-size: 20px; font-family: var(--mono); letter-spacing: .08em; }

.userbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.userbar h1 { font-size: 26px; margin: 0; margin-right: auto; }
.quota { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.quota-dots { display: flex; gap: 5px; }
.quota-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--img); }
.quota-dots i.used { background: var(--line); }

.studio-grid { display: grid; grid-template-columns: 420px 1fr; gap: 28px; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.panel h2 { font-size: 15px; margin: 0 0 12px; color: var(--muted); font-weight: 600; }
.panel + .panel { margin-top: 16px; }
.models { display: flex; flex-direction: column; gap: 8px; }
.model { text-align: left; padding: 12px 14px; border-radius: 10px; background: var(--bg-2); border: 1.5px solid var(--line); cursor: pointer; transition: .15s; }
.model:hover { border-color: #3a3a46; }
.model.active { border-color: var(--img); background: color-mix(in srgb, var(--img) 8%, var(--bg-2)); }
.model b { display: block; }
.model .v { font-size: 12px; color: var(--dim); margin-left: 6px; font-weight: 400; }
.model span { font-size: 13px; color: var(--muted); }
.aspects { display: flex; gap: 6px; flex-wrap: wrap; }
.aspect { padding: 6px 12px; border-radius: 8px; background: var(--bg-2); border: 1.5px solid var(--line); cursor: pointer; font-family: var(--mono); font-size: 13px; }
.aspect.active { border-color: var(--img); }
.examples { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.example { font-size: 12px; padding: 4px 10px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); cursor: pointer; color: var(--muted); }
.example:hover { color: var(--text); border-color: #3a3a46; }
.formula { font-size: 13px; color: var(--muted); margin-top: 12px; line-height: 1.9; }
.formula em { font-style: normal; padding: 1px 6px; border-radius: 4px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text); }
.gen-btn { width: 100%; margin-top: 18px; padding: 14px; font-size: 17px; }
.tip { font-size: 13px; color: var(--dim); margin-top: 10px; text-align: center; }

.result { min-height: 420px; display: flex; align-items: center; justify-content: center; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; position: relative; }
.result img { max-height: 70vh; object-fit: contain; }
.result .empty { color: var(--dim); text-align: center; padding: 40px; }
.result .loading { text-align: center; color: var(--muted); padding: 40px; }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--img); animation: spin 1s linear infinite; margin: 0 auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
.result-meta { margin-top: 12px; font-size: 14px; color: var(--muted); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.works { margin-top: 36px; }
.works h2 { font-size: 18px; margin: 0 0 14px; }
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.work { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.work .thumb { aspect-ratio: 1; background: var(--bg-2); display: flex; align-items: center; justify-content: center; cursor: zoom-in; }
.work .thumb img { width: 100%; height: 100%; object-fit: cover; }
.work .thumb.fail { cursor: default; color: var(--err); font-size: 13px; padding: 12px; text-align: center; }
.work-info { padding: 10px; font-size: 12px; }
.work-info .p { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 4px 0 8px; }
.work-info label { display: flex; align-items: center; gap: 6px; color: var(--dim); cursor: pointer; }
.badge { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 4px; background: var(--bg-2); border: 1px solid var(--line); }

/* ---------- 作品墙 ---------- */
.wall-head { display: flex; align-items: baseline; gap: 16px; padding: 28px 0 20px; flex-wrap: wrap; }
.wall-head h1 { margin: 0; font-size: 36px; }
.wall-head .count { font-family: var(--mono); color: var(--muted); }
.wall-head .actions { margin-left: auto; display: flex; gap: 8px; }
.wall { columns: 5 260px; column-gap: 14px; padding-bottom: 60px; }
.tile { break-inside: avoid; margin-bottom: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; cursor: zoom-in; }
.tile.new { animation: pop .7s ease-out; }
@keyframes pop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
.tile img { width: 100%; }
.tile-info { padding: 10px 12px; font-size: 13px; }
.tile-info .p { color: var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tile-info .m { color: var(--dim); font-size: 12px; margin-top: 6px; display: flex; justify-content: space-between; }
body.fullscreen .nav { display: none; }

/* ---------- 后台 ---------- */
.admin { padding: 32px 0 80px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 20px 0 28px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.stat b { display: block; font-size: 28px; font-family: var(--mono); }
.stat span { color: var(--muted); font-size: 13px; }
.tabs { display: flex; gap: 6px; margin-bottom: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
td input { width: 64px; padding: 4px 8px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; }
.admin .work.hidden { opacity: .35; }
/* ---------- 体验区：去噪出图 ---------- */
.gen-stage { position: relative; max-width: 100%; overflow: hidden; }
.gen-stage img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; animation: none; }
.result canvas.dn { position: absolute; inset: 0; width: 100%; height: 100%; }
.result .gen-hud { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 18px; background: linear-gradient(transparent, #000c); font-family: var(--mono); font-size: 13px; color: #fff; display: flex; justify-content: space-between; z-index: 2; }
.result .gen-hud b { font-size: 18px; }
.tile .tile-media { position: relative; }
.tile canvas.dn { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .studio-grid { grid-template-columns: 1fr; }
  .scene .wrap, .scene.flip .wrap { grid-template-columns: 1fr; gap: 28px; }
  .scene.flip .scene-text { order: 0; }
  .scene.fullbleed .wrap { grid-template-columns: 1fr; }
  .scene.fullbleed .pip { display: none; }
  .filmstrip { grid-template-columns: repeat(5, minmax(120px, 1fr)); overflow-x: auto; }
  .ed-transport { width: 150px; }
  .ed-name { width: 56px; }
}
@media (max-width: 720px) {
  :root { --ed-h: 56px; }
  .nav .wrap { gap: 10px; }
  .nav-links a { padding: 6px 8px; font-size: 14px; }
  .brand .file, .nav-tc { display: none; }
  .scene { min-height: auto; padding: 72px 0 96px; flex-direction: column; }
  .scene .wrap { width: calc(100% - 32px); }
  .subtitle { position: relative; left: auto; bottom: auto; transform: none; margin: 20px auto 0; text-align: left; }
  .scene.fullbleed { min-height: 100vh; }
  .media-grid.n2, .media-grid.n3 { grid-template-columns: 1fr; }
  .gan-flow { grid-template-columns: auto 1fr auto 1fr auto; }
  .gan-flow .noise-node, .gan-flow .noise-arrow { display: none; }
  .ed-tracks, .ed-keys { display: none; }
  .ed-transport { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; }
  .hero-hud .prompt { display: none; }
  .clap-top { height: 40px; }
  .dm-center { padding: 28px 18px; }
  .cmp-label { font-size: 11px; top: 8px; padding: 3px 8px; }
  .cmp-label.a { left: 8px; }
  .cmp-label.b { right: 8px; }
  .cmp-side .placeholder span, .cmp-side .placeholder code { display: none; }
}
.dn-paper { margin-top: 12px; }
.dn-paper figcaption { margin-top: 4px; font-size: 12px; }
.dn-paper .media-box { aspect-ratio: 3751 / 547; background: #fff; }

/* =====================================================================
   互动 1：全班实时投票“真还是假”
   ===================================================================== */
.qr svg { width: 100%; height: 100%; display: block; background: #fff; border-radius: 8px; }
.quiz-live { min-height: 100vh; padding: calc(var(--nav-h) + 20px) 0 calc(var(--ed-h) + 20px); background: radial-gradient(50% 50% at 20% 30%, #ff3b3b12, transparent), var(--bg); }
.quiz-live .wrap { width: min(1440px, 100% - 48px); }
.ql-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 18px; flex-wrap: wrap; }
.ql-head h2 { font-size: clamp(40px, 4.6vw, 68px); line-height: 1.05; margin: 6px 0; font-weight: 900; }
.ql-head p { color: var(--muted); font-size: 18px; margin: 0; max-width: 640px; }
.quiz-live .kicker { color: var(--rec); }
.ql-join, .dm-join { display: flex; text-align: left; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 18px 12px 12px; }
.ql-join .qr, .dm-join .qr { width: 104px; height: 104px; flex: none; }
.ql-join b, .dm-join b { display: block; font-size: 17px; }
.ql-join span, .dm-join span { display: block; font-size: 14px; color: var(--vid); }
.ql-join small, .dm-join small { color: var(--dim); font-size: 12px; }
.ql-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: stretch; }
.ql-stage { position: relative; border-radius: 16px; overflow: hidden; background: #000; border: 1px solid var(--line); height: clamp(300px, calc(100vh - 430px), 620px); display: flex; align-items: center; justify-content: center; }
.ql-stage > img { width: 100%; height: 100%; object-fit: contain; animation: qswap .6s; }
.ql-stage .stamp { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(3) rotate(-12deg); opacity: 0; font-weight: 900; font-size: clamp(36px, 5vw, 72px); padding: 8px 28px; border: 7px solid; border-radius: 14px; background: #000a; letter-spacing: .06em; white-space: nowrap; pointer-events: none; transition: .4s cubic-bezier(.5, 1.8, .5, .8); }
.ql-stage .stamp.ai { color: var(--rec); border-color: var(--rec); }
.ql-stage .stamp.real { color: var(--ok); border-color: var(--ok); }
.ql-stage .stamp.on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-12deg); }
.ql-intro { text-align: center; color: var(--muted); }
.ql-big { font-size: clamp(120px, 16vw, 220px); font-weight: 900; line-height: 1; background: linear-gradient(135deg, var(--ok), var(--rec)); -webkit-background-clip: text; background-clip: text; color: transparent; animation: floaty 2s ease-in-out infinite; }
@keyframes floaty { 50% { translate: 0 8px; } }
.ql-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ql-round { color: var(--dim); font-size: 14px; letter-spacing: .1em; }
.ql-q { font-size: clamp(22px, 2.2vw, 32px); font-weight: 800; line-height: 1.35; }
.ql-q b { color: var(--img); }
.ql-avg { font-size: 1.6em; color: var(--img); }
.ql-count { display: flex; align-items: baseline; gap: 10px; }
.ql-count b { font-family: var(--mono); font-size: clamp(64px, 7vw, 108px); line-height: 1; animation: pulse 1s ease-in-out infinite; }
.ql-count span { color: var(--muted); font-size: 18px; }
@keyframes pulse { 50% { opacity: .65; } }
.ql-bar { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 12px; font-size: 15px; margin-bottom: 10px; }
.ql-bar > div { height: 30px; border-radius: 8px; background: var(--bg-2); overflow: hidden; }
.ql-bar i { display: block; height: 100%; width: var(--w); background: var(--line); border-radius: 8px; animation: grow 1.1s cubic-bezier(.2, .8, .2, 1); }
.ql-bar.right i { background: linear-gradient(90deg, var(--img), #ff5f6d); }
.ql-bar.right span { color: var(--img); font-weight: 700; }
.ql-bar b { font-family: var(--mono); font-size: 14px; color: var(--muted); white-space: nowrap; }
@keyframes grow { from { width: 0; } }
.ql-note { color: #ccc; font-size: 16px; line-height: 1.7; }
.ql-note small { display: block; color: var(--dim); font-size: 12px; margin-top: 6px; }
.ql-ctrl { margin-top: auto; min-height: 56px; }
.ql-btns { display: flex; gap: 10px; align-items: center; }
.ql-btns[hidden], .ql-pin[hidden] { display: none; }
.ql-ctrl .ql-main { padding: 14px 30px; font-size: 18px; }
.ql-ctrl .ql-reset { margin-left: auto; opacity: .6; transition: .2s; }
.ql-ctrl .ql-reset.armed { opacity: 1; color: #fff; background: var(--rec); border-color: var(--rec); animation: pulse .8s ease-in-out infinite; }
.ql-pin { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; animation: qswap .3s; }
.ql-pin label { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); }
.ql-pin input { width: 150px; padding: 12px 8px 12px calc(8px + .4em); font-size: 22px; letter-spacing: .4em; text-align: center; }
.ql-pin .btn { padding: 13px 20px; }
.ql-pin-msg { flex-basis: 100%; font-size: 13px; color: var(--dim); }
.ql-pin-msg.err { color: var(--rec); }
.ql-pin.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.ql-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 16px; width: 100%; align-self: stretch; align-content: center; }
.ql-sum-item { position: relative; font-size: 13px; color: var(--muted); }
.ql-sum-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.ql-sum-item .tag { position: absolute; top: 6px; left: 6px; font-weight: 800; font-size: 12px; padding: 1px 8px; border-radius: 6px; color: #000; }
.ql-sum-item .tag.ai { background: var(--rec); color: #fff; }
.ql-sum-item .tag.real { background: var(--ok); }
.ql-sum-bar { height: 6px; background: var(--bg-2); border-radius: 3px; margin: 8px 0 4px; overflow: hidden; }
.ql-sum-bar i { display: block; height: 100%; background: var(--img); animation: grow 1.2s; }

/* 手机投票页 */
body.vote-page { min-height: 100vh; }
.vote { width: min(520px, 100%); margin: 0 auto; padding: 16px 16px 120px; }
.vote-login { text-align: center; padding-top: 14vh; }
.vote-login h1 { font-size: 34px; margin: 14px 0 6px; }
.vote-login p { color: var(--muted); margin: 0 0 24px; }
.vote-login form { display: flex; flex-direction: column; gap: 12px; }
.vote-login .input { text-align: center; font-size: 22px; font-family: var(--mono); letter-spacing: .08em; padding: 14px; }
.vote-login .btn { padding: 14px; font-size: 17px; }
.vote-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 2px 14px; color: var(--muted); font-size: 14px; }
.vote-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; min-height: 300px; }
.vote-wait { text-align: center; color: var(--muted); padding: 60px 10px; line-height: 2; }
.vote-round { font-family: var(--mono); color: var(--dim); font-size: 13px; margin-bottom: 10px; }
.vote-img { border-radius: 12px; overflow: hidden; background: #000; }
.vote-img img { width: 100%; max-height: 46vh; object-fit: contain; }
.vote-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.vote-btn { padding: 18px 8px; border-radius: 14px; border: 2px solid var(--line); background: var(--bg-2); font-size: 18px; font-weight: 800; cursor: pointer; transition: .15s; }
.vote-btn:active { transform: scale(.97); }
.vote-btn.on { border-color: var(--img); background: color-mix(in srgb, var(--img) 18%, var(--bg-2)); }
.vote-tip { text-align: center; color: var(--muted); font-size: 14px; margin-top: 12px; }
.vote-reveal { margin-top: 14px; text-align: center; }
.vote-reveal .answer { font-size: 26px; font-weight: 900; }
.vote-reveal.ai .answer { color: var(--rec); }
.vote-reveal.real .answer { color: var(--ok); }
.vote-reveal .you { font-size: 18px; margin: 6px 0; }
.vote-reveal .pct { color: var(--muted); font-size: 14px; }
.vote-reveal p { color: #ccc; font-size: 14px; text-align: left; line-height: 1.7; }
.vote-done { text-align: center; padding: 40px 10px; }
.vote-done h2 { font-size: 28px; margin: 10px 0; }
.vote-done h2 b { color: var(--img); font-size: 1.5em; }
.vote-done p { color: var(--muted); }
.vote-dm { position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #0c0c10f2; border-top: 1px solid var(--line); backdrop-filter: blur(10px); }
.vote-dm .input { padding: 12px 14px; }
.vote-dm .btn { white-space: nowrap; flex: none; }

/* =====================================================================
   互动 2：视频 = 一叠图片 → 时空切块
   ===================================================================== */
.frames { min-height: 100vh; display: flex; align-items: center; padding: calc(var(--nav-h) + 24px) 0 calc(var(--ed-h) + 24px); overflow: hidden; background: radial-gradient(60% 60% at 70% 50%, #3ec7ff10, transparent), var(--bg); }
.frames .wrap { width: min(1440px, 100% - 48px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; }
.frames h2 { font-size: clamp(36px, 4.4vw, 64px); line-height: 1.12; margin: 10px 0; font-weight: 900; }
.frames .fr-text > p { color: var(--muted); font-size: 18px; margin: 0 0 20px; }
.fr-src { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.fr-src-btn { padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; font-family: var(--mono); font-size: 14px; }
.fr-src-btn.on { border-color: var(--vid); color: var(--vid); }
.fr-steps { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; counter-reset: s; }
.fr-steps li { counter-increment: s; padding: 12px 14px 12px 50px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); position: relative; cursor: pointer; opacity: .45; transition: .35s; }
.fr-steps li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 13px; background: var(--line); }
.fr-steps li.on { opacity: 1; border-color: var(--vid); background: color-mix(in srgb, var(--vid) 7%, var(--bg-2)); }
.fr-steps li.on::before { background: var(--vid); color: #000; }
.fr-steps b { display: block; font-size: 17px; }
.fr-steps span { font-size: 14px; color: var(--muted); line-height: 1.6; }
.fr-note { font-size: 15px; color: #ddd; padding-left: 12px; border-left: 3px solid var(--img); }
.fr-stage { position: relative; height: min(66vh, 640px); perspective: 1400px; perspective-origin: 50% 40%; }
.fr-stack { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .1s linear; }
.fr-frame { position: absolute; left: 50%; top: 50%; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: var(--gap, 0); transform-style: preserve-3d; box-shadow: 0 10px 40px #000a; }
.fr-patch { width: 100%; height: 100%; display: block; }
.patched .fr-patch { outline: 1px solid #3ec7ff55; }
.fr-patch.hot { outline: 2px solid rgba(255, 138, 61, var(--hot, 0)); outline-offset: -1px; filter: brightness(calc(1 + var(--hot, 0) * .25)); }
.fr-label { position: absolute; left: 4px; bottom: -20px; font-size: 11px; color: var(--dim); opacity: 0; transition: .3s; }
.fr-stage:not(.patched) .fr-frame:nth-child(odd) .fr-label { opacity: .8; }
.fr-axis { position: absolute; left: 10%; right: 10%; bottom: 4%; height: 2px; background: linear-gradient(90deg, transparent, var(--vid)); font-family: var(--mono); font-size: 12px; color: var(--vid); }
.fr-axis span { position: absolute; right: 0; top: 8px; }
.fr-axis::after { content: ''; position: absolute; right: -2px; top: -5px; border: 6px solid transparent; border-left: 10px solid var(--vid); }
.fr-loading { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: var(--muted); }

/* =====================================================================
   互动 3：提示词实验室
   ===================================================================== */
.lab { min-height: 100vh; display: flex; align-items: center; padding: calc(var(--nav-h) + 24px) 0 calc(var(--ed-h) + 24px); }
.lab .wrap { width: min(1440px, 100% - 48px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; }
.lab .kicker { color: var(--img); }
.lab h2 { font-size: clamp(36px, 4.4vw, 64px); line-height: 1.12; margin: 10px 0; font-weight: 900; }
.lab-text > p { color: var(--muted); font-size: 18px; margin: 0 0 22px; }
.lab-prompt { background: #050507; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; min-height: 120px; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.7; font-weight: 700; }
.lab-label { display: block; font-size: 12px; color: var(--dim); font-weight: 400; margin-bottom: 4px; letter-spacing: .1em; }
.lab-words { display: inline; }
.lab-prompt .caret { display: inline-block; width: 3px; height: 1.1em; background: var(--img); vertical-align: -3px; margin-left: 2px; animation: blink .8s steps(2) infinite; }
.lab-w { border-bottom: 3px solid; padding-bottom: 1px; animation: qswap .4s; }
.lab-w.t0, .lab-tag.t0.on { --c: #ff8a3d; }
.lab-w.t1, .lab-tag.t1.on { --c: #3ec7ff; }
.lab-w.t2, .lab-tag.t2.on { --c: #b388ff; }
.lab-w.t3, .lab-tag.t3.on { --c: #ffd54f; }
.lab-w.t4, .lab-tag.t4.on { --c: #4ade80; }
.lab-w { border-color: var(--c); }
.lab-formula { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 16px 0 20px; font-size: 15px; }
.lab-formula em { font-style: normal; color: var(--dim); }
.lab-tag { padding: 4px 12px; border-radius: 8px; border: 1.5px solid var(--line); color: var(--dim); transition: .3s; }
.lab-tag.on { border-color: var(--c); color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.lab-ctrl { display: flex; gap: 10px; align-items: center; }
.lab-ctrl .lab-next { padding: 13px 26px; font-size: 17px; }
.lab-step { margin-left: auto; color: var(--dim); }
.lab-stage { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.lab-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.lab-hud { position: absolute; left: 14px; right: 14px; top: 12px; display: flex; justify-content: space-between; font-size: 13px; color: #fff; text-shadow: 0 1px 3px #000; }
.lab-hud b { font-size: 18px; }

/* =====================================================================
   互动 4：Veo 3 默片 → 有声片
   ===================================================================== */
.scene-media { position: relative; }
.silent .scene-media video { filter: grayscale(1) sepia(.35) contrast(1.2) brightness(.92); }
.talkie .scene-media video { filter: none; transition: filter 1.6s ease; }
.silent .scene-media .media-box::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 55%, #000c 100%), repeating-linear-gradient(90deg, transparent 0 120px, #ffffff10 120px 121px); animation: flicker .18s steps(2) infinite; }
@keyframes flicker { 50% { opacity: .75; } }
.talkie-ui { position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 16 / 10; padding: 14px; display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; z-index: 3; }
.talkie-badge { background: #000b; padding: 4px 12px; border-radius: 6px; font-size: 13px; letter-spacing: .08em; }
.talkie .talkie-badge { color: var(--vid); }
.talkie-btn { pointer-events: auto; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 16px 30px; font-size: 19px; box-shadow: 0 10px 40px #000c; animation: floaty 1.6s ease-in-out infinite; }

@media (max-width: 1000px) {
  .ql-body, .frames .wrap, .lab .wrap { grid-template-columns: 1fr; }
  .ql-stage { height: 46vh; }
  .fr-stage { height: 52vh; }
}
@media (max-width: 720px) {
  .ql-join .qr { width: 76px; height: 76px; }
  .ql-summary { grid-template-columns: repeat(2, 1fr); }
  .frames, .lab { min-height: auto; padding: 72px 0 80px; }
  .ql-bar { grid-template-columns: 90px 1fr; }
  .ql-bar b { grid-column: 2; }
}

/* =====================================================================
   原理：为什么从噪声开始（7 步，粒子图是真实的二维扩散计算）
   ===================================================================== */
.wn { min-height: 100vh; display: flex; align-items: center; padding: calc(var(--nav-h) + 20px) 0 calc(var(--ed-h) + 20px); background: radial-gradient(60% 60% at 75% 50%, #ff8a3d10, transparent), var(--bg); }
.wn .wrap { width: min(1440px, 100% - 48px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; }
.wn .kicker { color: var(--img); }
.wn h2 { font-size: clamp(32px, 3.5vw, 52px); line-height: 1.12; margin: 8px 0; font-weight: 900; }
.wn-sub { color: var(--muted); font-size: 17px; margin: 0 0 16px; }
.wn-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; counter-reset: s; }
.wn-steps li { counter-increment: s; padding: 9px 14px 9px 48px; border-radius: 12px; border: 1px solid transparent; position: relative; cursor: pointer; opacity: .5; transition: .35s; }
.wn-steps li::before { content: counter(s); position: absolute; left: 14px; top: 9px; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 12px; background: var(--line); }
.wn-steps b { display: block; font-size: 16px; }
.wn-steps span { display: block; font-size: 14.5px; color: #ccc; line-height: 1.7; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .45s, opacity .45s, margin .45s; }
.wn-steps li.on { opacity: 1; border-color: var(--img); background: color-mix(in srgb, var(--img) 7%, var(--bg-2)); }
.wn-steps li.on::before { background: var(--img); color: #000; }
.wn-steps li.on span { max-height: 200px; opacity: 1; margin-top: 6px; }
.wn-stage { position: relative; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: #07070a; border: 1px solid var(--line); }
.wn-stage > canvas { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .35s; }
.wn-field { opacity: 0; }
.wn-cap { position: absolute; left: 14px; top: 12px; right: 14px; font-size: 13px; color: #fff; text-shadow: 0 1px 4px #000; pointer-events: none; }
.wn-note { position: absolute; left: 14px; bottom: 10px; right: 40%; font-size: 11px; color: var(--dim); pointer-events: none; }
.wn-inset { position: absolute; right: 12px; bottom: 12px; width: 30%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; border: 1px solid #ffffff30; background: #000; opacity: 0; transform: translateY(10px); transition: .4s; box-shadow: 0 8px 30px #000a; }
.wn-inset[data-mode='dn'], .wn-inset[data-mode='blur'] { opacity: 1; transform: none; }
.wn-inset canvas, .wn-inset img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wn-inset img { filter: blur(14px) saturate(.7); transform: scale(1.15); opacity: 0; }
.wn-inset[data-mode='blur'] img { opacity: 1; }
.wn-inset[data-mode='blur'] canvas { opacity: 0; }
.wn-inset span { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 5px; font-size: 11px; background: linear-gradient(transparent, #000c); color: #fff; }
.wn-tools { position: absolute; left: 14px; right: 14px; bottom: 34px; display: flex; justify-content: flex-start; pointer-events: none; }
.wn-tools > * { pointer-events: auto; display: none; }
.wn-stage[data-step='3'] .wn-seed { display: inline-flex; }
.wn-stage[data-step='6'] .wn-prompt { display: flex; }
.wn-stage[data-step='6'] .wn-tools { top: 38px; bottom: auto; }
.wn-prompt { flex-direction: column; gap: 8px; }
.wn-enc-box { font-size: 12px; color: #ddd; background: #000b; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); }
.wn-enc-box b { color: var(--vid); font-weight: 600; }
.wn-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.wn-chip { padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #000b; cursor: pointer; font-size: 14px; }
.wn-chip.on { border-color: var(--img); color: var(--img); }
/* 潜空间流程图 */
.wn-latent { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 2%; padding: 40px 4% 60px; opacity: 0; pointer-events: none; transition: opacity .4s; }
.wn-stage[data-step='5'] .wn-latent { opacity: 1; }
.wn-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; transition: opacity .4s, transform .4s; }
.wn-fig figcaption { text-align: center; font-size: 13px; color: var(--muted); line-height: 1.5; }
.wn-fig figcaption b { display: block; font-family: var(--mono); color: #fff; font-size: 15px; }
.wn-fig figcaption small { display: block; font-size: 11.5px; color: var(--dim); }
.wn-px canvas, .wn-out canvas { width: min(15vw, 190px); aspect-ratio: 1; border-radius: 8px; border: 1px solid var(--line); }
.wn-out canvas { filter: blur(calc((1 - var(--dec, 0)) * 10px)); opacity: calc(.15 + var(--dec, 0) * .85); }
.wn-chans { position: relative; width: min(8vw, 96px); aspect-ratio: 1; margin: 18px 18px 0 0; }
.wn-chans canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; border-radius: 4px; border: 1px solid #ffffff30; }
.wn-chans canvas:nth-child(2) { transform: translate(6px, -6px); }
.wn-chans canvas:nth-child(3) { transform: translate(12px, -12px); }
.wn-chans canvas:nth-child(4) { transform: translate(18px, -18px); }
.wn-arrow { flex: 0 0 auto; width: 9%; height: 2px; background: var(--line); position: relative; transition: .4s; }
.wn-arrow::after { content: ''; position: absolute; right: -2px; top: -5px; border: 6px solid transparent; border-left: 9px solid var(--line); transition: .4s; }
.wn-arrow span { position: absolute; left: 50%; top: -24px; transform: translateX(-50%); font-size: 12px; color: var(--muted); white-space: nowrap; }
.wn-latent[data-phase='enc'] .wn-enc, .wn-latent[data-phase='dec'] .wn-dec { background: var(--img); }
.wn-latent[data-phase='enc'] .wn-enc::after, .wn-latent[data-phase='dec'] .wn-dec::after { border-left-color: var(--img); }
.wn-latent[data-phase='enc'] .wn-enc span, .wn-latent[data-phase='dec'] .wn-dec span { color: var(--img); }
.wn-latent[data-phase='denoise'] .wn-px, .wn-latent[data-phase='denoise'] .wn-out { opacity: .35; }
.wn-latent[data-phase='denoise'] .wn-lat { transform: scale(1.12); }
.wn-latent[data-phase='enc'] .wn-out { opacity: .35; }
.wn-latent-note { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font-size: 15px; color: #fff; }

/* =====================================================================
   另一条线：画得越来越好
   ===================================================================== */
.grow { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-top: 16px; padding: 8px 12px; border-radius: 10px; background: var(--bg-2); border: 1px dashed #ffffff22; font-size: 13px; width: fit-content; max-width: 100%; }
.grow-label { color: var(--img); font-size: 11px; letter-spacing: .12em; }
.grow-res { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); color: #ddd; }
.grow-box { position: relative; width: 26px; height: 26px; border: 1px solid #ffffff40; display: inline-block; }
.grow-box i { position: absolute; left: 0; bottom: 0; min-width: 2px; min-height: 2px; background: var(--img); }
.grow-bar { display: inline-flex; align-items: center; gap: 3px; }
.grow-bar i { width: 9px; height: 14px; border-radius: 2px; background: #ffffff18; }
.grow-bar i.on { background: color-mix(in srgb, var(--img) 70%, transparent); }
.grow-bar i.new { background: var(--img); box-shadow: 0 0 8px var(--img); animation: pulse 1s ease-in-out infinite; }
.grow-bar b { margin-left: 6px; font-size: 12px; color: var(--muted); font-weight: 500; }
.grow-new { color: var(--img); font-weight: 700; }

.growth { min-height: 100vh; padding: calc(var(--nav-h) + 20px) 0 calc(var(--ed-h) + 20px); display: flex; align-items: center; background: radial-gradient(50% 50% at 50% 0%, #ff8a3d14, transparent), var(--bg); }
.growth .wrap { width: min(1440px, 100% - 48px); }
.growth .kicker { color: var(--img); }
.gr-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 18px; }
.gr-head h2 { font-size: clamp(30px, 3.4vw, 50px); line-height: 1.1; margin: 4px 0; font-weight: 900; }
.gr-head p { color: var(--muted); font-size: 15px; margin: 0; max-width: 820px; }
.gr-play { white-space: nowrap; }
.gr-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; }
.gr-stage { position: relative; height: clamp(240px, calc(100vh - 590px), 460px); border-radius: 14px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.gr-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: scale(1.03); transition: opacity .5s, transform .8s; }
.gr-stage img.on { opacity: 1; transform: none; }
.gr-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px; background: linear-gradient(transparent, #000d); display: flex; gap: 12px; align-items: baseline; }
.gr-year { color: var(--img); font-size: 15px; }
.gr-title { font-size: 16px; font-weight: 700; }
.gr-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; min-height: 0; }
.gr-scale { display: flex; flex-direction: column; gap: 8px; }
.gr-scale-head { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); }
.gr-scale-head b { color: #fff; font-size: 13px; font-weight: 600; }
.gr-boxes { position: relative; width: 100%; aspect-ratio: 1; max-height: min(230px, calc(100vh - 690px)); max-width: min(230px, calc(100vh - 690px)); min-width: 150px; min-height: 150px; border: 1px solid #ffffff30; background: repeating-linear-gradient(45deg, #ffffff05 0 6px, transparent 6px 12px); }
.gr-boxes i { position: absolute; left: 0; bottom: 0; min-width: 2px; min-height: 2px; border: 1px solid #ffffff30; opacity: 0; transition: .5s; }
.gr-boxes i.seen { opacity: 1; }
.gr-boxes i.cur { border-color: var(--img); background: color-mix(in srgb, var(--img) 25%, transparent); box-shadow: 0 0 12px var(--img); z-index: 1; }
.gr-scale-note { font-size: 11.5px; color: var(--dim); line-height: 1.6; }
.gr-skills { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.gr-skills li { display: flex; gap: 8px; align-items: center; padding: 3px 8px; border-radius: 7px; color: var(--dim); transition: .35s; }
.gr-skills li::before { content: '○'; color: var(--dim); }
.gr-skills li span { font-size: 11px; color: var(--dim); }
.gr-skills li.on { color: #fff; background: color-mix(in srgb, var(--img) 10%, transparent); }
.gr-skills li.on::before { content: '✓'; color: var(--img); font-weight: 900; }
.gr-track { position: relative; margin-top: 22px; padding: 0 6px; }
.gr-chart { position: relative; height: 60px; margin-bottom: 6px; }
.gr-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.gr-chart path { fill: none; stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.gr-line-bg { stroke: #ffffff14; }
.gr-line { stroke: var(--img); }
.gr-pt { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--bg); border: 2px solid #ffffff30; transition: .3s; }
.gr-pt.on { border-color: var(--img); background: var(--img); }
.gr-pt em { position: absolute; left: 50%; bottom: 11px; transform: translateX(-50%); font-style: normal; font-size: 10px; color: var(--dim); }
.gr-pt.on em { color: var(--img); }
.gr-axis-label { position: absolute; left: 0; top: -4px; font-size: 10px; color: var(--dim); }
.gr-ticks { position: relative; height: 14px; }
.gr-tick { position: absolute; top: 0; width: 4px; height: 14px; margin-left: -2px; border-radius: 2px; border: 0; padding: 0; background: #ffffff25; cursor: pointer; }
.gr-tick.on { background: color-mix(in srgb, var(--img) 60%, transparent); }
.gr-tick.cur { background: var(--img); height: 18px; top: -2px; }
.gr-range { width: 100%; margin: 6px 0 0; accent-color: var(--img); }
.gr-years { position: relative; height: 16px; font-size: 11px; color: var(--dim); }
.gr-years span { position: absolute; transform: translateX(-50%); }
.gr-note { margin: 6px 0 0; font-size: 13.5px; color: #ccc; padding-left: 12px; border-left: 3px solid var(--img); }

@media (max-width: 1000px) {
  .wn .wrap, .gr-body { grid-template-columns: 1fr; }
  .gr-stage { height: 46vh; }
}
@media (max-width: 900px) {
  .wn { display: block; min-height: auto; padding: 64px 0 80px; }
  .wn .wrap { gap: 16px; }
  .wn-text { display: contents; }
  .wn-text > * { margin: 0; }
  .wn-stage { order: 1; position: sticky; top: calc(var(--nav-h) + 6px); z-index: 2; }
  .wn-steps { order: 2; }
  .wn-steps li { min-height: 40vh; opacity: .35; }
  .wn-steps li span { max-height: none; opacity: 1; margin-top: 6px; }
  .wn-latent { padding: 30px 2% 44px; }
  .wn-fig figcaption { font-size: 10px; }
  .wn-fig figcaption b { font-size: 11px; }
  .wn-fig figcaption small, .wn-arrow span { display: none; }
  .wn-px canvas, .wn-out canvas { width: 22vw; }
  .wn-chans { width: 13vw; }
  .wn-inset { width: 38%; }
  .wn-note { display: none; }
}
@media (max-width: 720px) {
  .growth { min-height: auto; padding: 64px 0 80px; }
  .gr-head { flex-direction: column; align-items: flex-start; }
  .gr-side { grid-template-columns: 1fr; }
  .gr-boxes { max-width: 180px; }
  .gr-pt em { display: none; }
}
