:root {
  --ink: #06080f;
  --ink-2: #0d1120;
  --paper: #f2ede3;
  --paper-2: #e8e1d3;
  --text: #16171c;
  --muted: #6c6a66;
  --line: rgba(22, 23, 28, .12);
  --ember: #ff5b32;
  --ember-2: #e2502c;
  --teal: #1f7a8c;
  --star: #f5efe4;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "Source Han Serif CN", serif;
  --display: "Didot", "Bodoni 72", "Playfair Display", "Times New Roman", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --panel-w: min(640px, 46vw);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--ink); color: var(--star); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }

#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; touch-action: none; cursor: grab; }
body.dragging #gl { cursor: grabbing; }
body.hovering #gl { cursor: pointer; }
body[data-mode="intro"] #gl { cursor: default; }

.grain { position: fixed; inset: -50%; pointer-events: none; z-index: 5; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0) } 20% { transform: translate(-3%, 2%) } 40% { transform: translate(2%, -4%) } 60% { transform: translate(-4%, -1%) } 80% { transform: translate(3%, 3%) } 100% { transform: translate(0, 0) } }
.vignette { position: fixed; inset: 0; pointer-events: none; z-index: 4; background: radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(0, 0, 0, .55) 100%); }

/* ---------- 开场 ---------- */
.intro { position: fixed; inset: 0; z-index: 20; display: grid; grid-template-rows: auto 1fr auto; padding: clamp(18px, 3vw, 36px); pointer-events: none; }
.intro > * { pointer-events: auto; }
.intro-top { display: flex; justify-content: space-between; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(245, 239, 228, .62); }
.intro-welcome { position: absolute; left: 50%; top: calc(50% - min(15vw, 120px)); transform: translateX(-50%); margin: 0; font: 400 clamp(14px, 1.4vw, 18px)/1 var(--serif); letter-spacing: .5em; padding-left: .5em; color: rgba(245, 239, 228, .7); pointer-events: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.intro-caption { position: absolute; left: 50%; top: calc(50% + min(9vw, 104px)); transform: translate(-50%, 8px); margin: 0; font: 400 clamp(14px, 1.3vw, 17px)/1.6 var(--serif); color: rgba(245, 239, 228, .82); text-align: center; opacity: 0; transition: opacity .9s var(--ease), transform .9s var(--ease); pointer-events: none; white-space: nowrap; }
.intro-caption b { color: var(--ember); font-weight: 400; font-family: var(--display); font-style: italic; font-size: 1.3em; }
.intro-caption.on { opacity: 1; transform: translate(-50%, 0); }
.intro-bottom { grid-row: 3; display: flex; flex-direction: column; align-items: center; gap: 14px; padding-bottom: 2vh; }
.intro-meta { margin: 0; font: 500 11px/1 var(--mono); letter-spacing: .3em; color: rgba(245, 239, 228, .45); }
.hold { position: relative; display: flex; align-items: center; gap: 16px; padding: 10px 24px 10px 10px; border-radius: 999px; background: rgba(245, 239, 228, .06); border: 1px solid rgba(245, 239, 228, .16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .3s, border-color .3s, transform .4s var(--ease), opacity .6s; user-select: none; -webkit-user-select: none; touch-action: none; }
.hold:hover { background: rgba(245, 239, 228, .1); border-color: rgba(245, 239, 228, .3); }
.hold svg { width: 44px; height: 44px; transform: rotate(-90deg); }
.hold circle { fill: none; stroke-width: 2; }
.hold-track { stroke: rgba(245, 239, 228, .18); }
.hold-fill { stroke: var(--ember); stroke-dasharray: 182.2; stroke-dashoffset: calc(182.2 * (1 - var(--p, 0))); stroke-linecap: round; }
.hold-dot { position: absolute; left: 10px; top: 50%; width: 44px; height: 44px; margin-top: -22px; display: grid; place-items: center; }
.hold-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--star); transform: scale(calc(1 + var(--p, 0) * 1.6)); box-shadow: 0 0 calc(var(--p, 0) * 24px) var(--ember); transition: background .2s; }
.hold.active .hold-dot::after { background: var(--ember); }
.hold-text { font: 400 15px/1 var(--serif); letter-spacing: .12em; }
.hold:disabled { opacity: .35; cursor: progress; }
.loader { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, .06); }
.loader span { display: block; height: 100%; width: var(--load, 0%); background: var(--ember); transition: width .4s var(--ease), opacity .6s; }
body:not(.loading) .loader span { opacity: 0; }
body.entering .intro-welcome, body.entering .intro-bottom, body.entering .intro-top { opacity: 0; transform: translateY(10px); transition: opacity .6s, transform .6s var(--ease); pointer-events: none; }
body.entering .intro-welcome { transform: translate(-50%, 10px); }
body:not([data-mode="intro"]) .intro { opacity: 0; visibility: hidden; transition: opacity .8s, visibility 0s .8s; }

/* ---------- HUD ---------- */
.hud { position: fixed; left: 0; right: 0; z-index: 12; display: flex; align-items: center; justify-content: space-between; padding: clamp(16px, 2.4vw, 28px) clamp(16px, 2.6vw, 32px); pointer-events: none; opacity: 0; transform: translateY(-8px); transition: opacity .9s var(--ease) .2s, transform .9s var(--ease) .2s; }
.hud > * { pointer-events: auto; }
.hud-top { top: 0; }
.hud-bottom { bottom: 0; transform: translateY(8px); align-items: flex-end; }
body.entered .hud { opacity: 1; transform: none; }
.brand { font: italic 400 clamp(24px, 2.4vw, 32px)/1 var(--display); letter-spacing: -.01em; color: var(--star); }
.brand em { color: var(--ember); font-style: italic; }
.hud-nav { display: flex; gap: 8px; }
.chip { height: 36px; padding: 0 14px; border-radius: 999px; font: 500 13px/1 var(--sans); letter-spacing: .06em; background: rgba(12, 15, 28, .5); border: 1px solid rgba(245, 239, 228, .14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: inline-flex; align-items: center; gap: 8px; transition: background .25s, border-color .25s; }
.chip:hover { background: rgba(245, 239, 228, .12); border-color: rgba(245, 239, 228, .3); }
.chip-k { font: 500 10px/1 var(--mono); opacity: .55; }
.chip-sound { width: 36px; padding: 0; justify-content: center; }
.bars { display: flex; gap: 2px; align-items: flex-end; height: 12px; }
.bars i { width: 2px; height: 3px; background: currentColor; border-radius: 1px; transition: height .3s; }
.chip-sound[aria-pressed="true"] .bars i { animation: bar 1s ease-in-out infinite; }
.chip-sound[aria-pressed="true"] .bars i:nth-child(2) { animation-delay: -.3s } .chip-sound[aria-pressed="true"] .bars i:nth-child(3) { animation-delay: -.6s } .chip-sound[aria-pressed="true"] .bars i:nth-child(4) { animation-delay: -.15s }
@keyframes bar { 0%, 100% { height: 3px } 50% { height: 12px } }
body[data-mode="explore"] #btnOverview { opacity: .45; }
.hint, .clock { margin: 0; font: 500 11px/1.5 var(--mono); letter-spacing: .1em; color: rgba(245, 239, 228, .55); }
.hint kbd, .near kbd, .index-foot kbd { font: 600 10px/1 var(--mono); padding: 3px 5px; border-radius: 4px; border: 1px solid rgba(245, 239, 228, .3); margin: 0 2px; }
.clock { text-align: right; }
.clock b { color: var(--star); font-weight: 500; }
body.panel-open .hud-bottom, body.panel-open .hud-nav #btnIndex { opacity: 0; pointer-events: none; }

/* ---------- 地点标签 ---------- */
.labels { position: fixed; inset: 0; z-index: 8; pointer-events: none; }
.pin { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 10px; padding: 0; opacity: 0; pointer-events: none; transition: opacity .35s; will-change: transform; }
.pin > * { transform: translate(-14px, -50%) translateY(-18px); }
.pin.on { opacity: calc(.35 + var(--f, 1) * .65); pointer-events: auto; }
.pin::before { content: ""; position: absolute; left: -1px; top: -16px; width: 1px; height: 16px; background: linear-gradient(to top, rgba(245, 239, 228, 0), rgba(245, 239, 228, .55)); }
.pin-no { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 600 10px/1 var(--mono); background: rgba(10, 13, 25, .62); border: 1px solid rgba(245, 239, 228, .3); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .3s, border-color .3s, transform .4s var(--ease); }
.pin-txt { display: grid; gap: 3px; text-align: left; white-space: nowrap; text-shadow: 0 1px 12px rgba(0, 0, 0, .7); }
.pin-txt b { font: 600 15px/1 var(--serif); letter-spacing: .04em; }
.pin-txt i { font: normal 500 10px/1 var(--mono); letter-spacing: .12em; opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .3s var(--ease); color: rgba(245, 239, 228, .7); }
.pin.hot .pin-no, .pin:focus-visible .pin-no { background: var(--ember); border-color: var(--ember); transform: scale(1.12); }
.pin.hot .pin-txt i, .pin:focus-visible .pin-txt i { opacity: 1; transform: none; }
.pin-station .pin-no { background: rgba(80, 110, 255, .25); }

/* ---------- 靠近提示 / 摇杆 ---------- */
.near { position: fixed; left: 50%; bottom: 13vh; z-index: 12; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; transition: opacity .35s, transform .35s var(--ease); }
.near.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.near button { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; background: var(--paper); color: var(--text); font: 500 14px/1 var(--sans); box-shadow: 0 10px 40px rgba(0, 0, 0, .4); }
.near button kbd { border-color: rgba(0, 0, 0, .25); }
.near button b { font: 600 15px/1 var(--serif); }
.joy { position: fixed; left: 24px; bottom: calc(28px + env(safe-area-inset-bottom)); z-index: 12; width: 112px; height: 112px; border-radius: 50%; border: 1px solid rgba(245, 239, 228, .2); background: rgba(10, 13, 25, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: none; touch-action: none; }
.joy span { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px; border-radius: 50%; background: rgba(245, 239, 228, .85); transform: translate(var(--jx, 0), var(--jy, 0)); }
body.touch.entered:not(.panel-open) .joy { display: block; }

/* ---------- 面板 ---------- */
.panel { position: fixed; z-index: 15; top: 12px; right: 12px; bottom: 12px; width: var(--panel-w); background: var(--paper); color: var(--text); border-radius: 18px; display: flex; flex-direction: column; overflow: hidden; transform: translateX(calc(100% + 24px)); transition: transform .8s var(--ease), width .6s var(--ease), height .6s var(--ease); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.panel.open { transform: none; }
.panel-grip { display: none; }
.panel-head { position: absolute; z-index: 3; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 18px 28px; pointer-events: none; }
.panel-head > * { pointer-events: auto; }
.panel-crumb { margin: 0; display: flex; gap: 10px; font: 600 11px/1 var(--mono); letter-spacing: .14em; padding: 8px 12px; border-radius: 999px; background: rgba(242, 237, 227, .85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.panel-crumb span:first-child { color: var(--ember-2); }
.panel-close { position: relative; width: 40px; height: 40px; border-radius: 50%; background: var(--text); transition: transform .4s var(--ease), background .3s; }
.panel-close:hover { transform: rotate(90deg); background: var(--ember-2); }
.panel-close span { position: absolute; left: 13px; top: 19px; width: 14px; height: 1.5px; background: var(--paper); transform: rotate(45deg); }
.panel-close span + span { transform: rotate(-45deg); }
.panel-body { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 84px clamp(24px, 3.4vw, 48px) 64px; scroll-behavior: smooth; overscroll-behavior: contain; outline: none; }
.panel-body::-webkit-scrollbar { width: 6px; } .panel-body::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, .15); border-radius: 3px; }
.panel.compact { width: 340px; top: auto; height: auto; max-height: 50vh; }
.panel.compact .panel-body { padding: 70px 26px 26px; }

.reveal > * { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; }
.reveal > *:nth-child(1) { animation-delay: .15s } .reveal > *:nth-child(2) { animation-delay: .22s } .reveal > *:nth-child(3) { animation-delay: .29s } .reveal > *:nth-child(4) { animation-delay: .36s } .reveal > *:nth-child(5) { animation-delay: .43s } .reveal > *:nth-child(n+6) { animation-delay: .5s }
@keyframes rise { to { opacity: 1; transform: none; } }

.kicker { margin: 0 0 14px; font: 600 11px/1.4 var(--mono); letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.kicker .live { display: inline-flex; align-items: center; gap: 6px; color: #2f8a52; margin-left: 8px; }
.kicker .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(47, 138, 82, .18); }
.p-title { margin: 0; font: 700 clamp(46px, 5.4vw, 76px)/1 var(--serif); letter-spacing: -.01em; }
.p-title.latin { font: italic 400 clamp(52px, 6vw, 88px)/.95 var(--display); letter-spacing: -.02em; }
.p-sub { margin: 10px 0 0; font: 500 15px/1.4 var(--sans); color: var(--muted); letter-spacing: .04em; }
.lede { margin: 22px 0 0; font: 400 clamp(17px, 1.35vw, 20px)/1.75 var(--serif); color: #2a2a2e; max-width: 34em; }
.sec { margin-top: 56px; }
.sec-h { display: flex; align-items: baseline; gap: 12px; margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font: 700 20px/1.3 var(--serif); }
.sec-h small { font: 600 10px/1 var(--mono); letter-spacing: .14em; color: var(--ember-2); }
.sec p { font: 400 15px/1.85 var(--sans); color: #34343a; margin: 0 0 12px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0; margin: 28px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts div { padding: 14px 14px 14px 0; }
.facts div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.facts dt { font: 600 10px/1 var(--mono); letter-spacing: .14em; color: var(--muted); margin-bottom: 8px; }
.facts dd { margin: 0; font: 500 14px/1.45 var(--sans); }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px; border-radius: 999px; background: var(--text); color: var(--paper); font: 500 14px/1 var(--sans); text-decoration: none; transition: background .3s, transform .3s var(--ease); }
.btn:hover { background: var(--ember-2); }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); }
.btn.ghost:hover { background: var(--text); color: var(--paper); }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.note { font: 400 12px/1.7 var(--sans); color: var(--muted); margin-top: 30px; padding-top: 16px; border-top: 1px dashed var(--line); }
.panel-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 64px; }
.panel-nav button { text-align: left; padding: 18px; border-radius: 14px; background: var(--paper-2); transition: background .3s, color .3s; }
.panel-nav button:hover { background: var(--text); color: var(--paper); }
.panel-nav button + button { text-align: right; }
.panel-nav small { display: block; font: 600 10px/1 var(--mono); letter-spacing: .14em; opacity: .55; margin-bottom: 8px; }
.panel-nav b { font: 700 18px/1.2 var(--serif); }

/* 播放器 */
.player { position: relative; margin: 30px calc(-1 * clamp(24px, 3.4vw, 48px)) 0; background: #000; aspect-ratio: 16 / 9; overflow: hidden; }
.player video { width: 100%; height: 100%; object-fit: cover; }
.play-big { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, .05) 60%); color: #fff; transition: opacity .5s; }
.play-big span { display: flex; align-items: center; gap: 14px; padding: 14px 24px 14px 16px; border-radius: 999px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .25); font: 500 14px/1 var(--sans); letter-spacing: .08em; transition: transform .4s var(--ease), background .3s; }
.play-big:hover span { transform: scale(1.05); background: var(--ember-2); border-color: var(--ember-2); }
.play-big i { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.play-big i::after { content: ""; border-left: 11px solid #111; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.player.playing .play-big { opacity: 0; pointer-events: none; }
.ctrl { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 30px 16px 12px; background: linear-gradient(to top, rgba(0, 0, 0, .7), transparent); color: #fff; font: 500 11px/1 var(--mono); opacity: 0; transition: opacity .4s; }
.player.playing:hover .ctrl, .player.paused-mid .ctrl, .player.playing.show-ctrl .ctrl { opacity: 1; }
.ctrl button { width: 28px; height: 28px; display: grid; place-items: center; }
.ctrl .pp::before { content: ""; width: 10px; height: 12px; border-left: 3px solid #fff; border-right: 3px solid #fff; box-sizing: border-box; }
.player:not(.playing) .ctrl .pp::before { width: 0; height: 0; border-left: 10px solid #fff; border-right: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.ctrl .fs::before { content: ""; width: 12px; height: 12px; border: 1.5px solid #fff; border-radius: 2px; }
.ctrl .mute::before { content: "♪"; font-size: 14px; }
.ctrl .mute.off { opacity: .4; }
.bar { position: relative; flex: 1; height: 18px; cursor: pointer; }
.bar::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: rgba(255, 255, 255, .25); }
.bar .fill { position: absolute; left: 0; top: 8px; height: 2px; background: var(--ember); width: 0; }
.bar .tick { position: absolute; top: 5px; width: 1px; height: 8px; background: rgba(255, 255, 255, .5); }
.bar .tip { position: absolute; bottom: 22px; transform: translateX(-50%); padding: 5px 8px; border-radius: 6px; background: rgba(0, 0, 0, .8); white-space: nowrap; font: 500 11px/1 var(--sans); pointer-events: none; opacity: 0; transition: opacity .2s; }
.bar:hover .tip { opacity: 1; }

/* 片段索引 */
.chapters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.chapter { position: relative; text-align: left; border-radius: 8px; overflow: hidden; background: #111; aspect-ratio: 16 / 9; }
.chapter img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s; filter: saturate(.85); }
.chapter:hover img { transform: scale(1.06); filter: none; }
.chapter span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; background: linear-gradient(to top, rgba(0, 0, 0, .75), transparent); color: #fff; font: 500 10.5px/1.3 var(--sans); }
.chapter span em { display: block; font: 600 9px/1 var(--mono); opacity: .7; font-style: normal; margin-bottom: 3px; }
.chapter.now { box-shadow: 0 0 0 2px var(--ember); }

/* 对照滑块 */
.pair { margin-bottom: 28px; }
.compare { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare .top { clip-path: inset(0 calc(100% - var(--x, 50%)) 0 0); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--x, 50%); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.compare .handle::after { content: "⟷"; position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; margin: -19px; border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; font-size: 15px; box-shadow: 0 4px 20px rgba(0, 0, 0, .35); }
.compare .tag { position: absolute; top: 10px; padding: 5px 9px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font: 600 10px/1 var(--mono); letter-spacing: .1em; pointer-events: none; }
.compare .tag.l { left: 10px; } .compare .tag.r { right: 10px; }
.pair-cap { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; }
.pair-cap b { font: 700 17px/1.3 var(--serif); white-space: nowrap; }
.pair-cap p { margin: 0 !important; font-size: 13.5px !important; color: var(--muted) !important; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { position: relative; padding: 16px 0 16px 52px; border-bottom: 1px solid var(--line); counter-increment: s; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 17px; font: 600 12px/1 var(--mono); color: var(--ember-2); }
.steps b { display: block; font: 700 16px/1.4 var(--serif); margin-bottom: 4px; }
.steps span { font: 400 14px/1.75 var(--sans); color: #45454b; }
.credit { font: 400 12px/1.7 var(--sans); color: var(--muted); margin-top: 28px; }

/* 图库与标注 */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gallery button { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 10; background: #111; text-align: left; }
.gallery button:first-child { grid-column: span 2; aspect-ratio: 16 / 9; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery button:hover img { transform: scale(1.05); }
.gallery span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; color: #fff; font: 500 12px/1.3 var(--sans); background: linear-gradient(to top, rgba(0, 0, 0, .7), transparent); }
.anno { position: relative; border-radius: 10px; overflow: hidden; }
.anno img { width: 100%; }
.dot { position: absolute; transform: translate(-50%, -50%); }
.dot i { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 4px rgba(255, 91, 50, .3); animation: ping 2.2s infinite; }
.dot span { position: absolute; left: 50%; bottom: 20px; transform: translate(-50%, 6px); padding: 7px 10px; border-radius: 8px; background: rgba(10, 12, 20, .88); color: #fff; font: 500 12px/1.35 var(--sans); white-space: nowrap; opacity: 0; transition: opacity .25s, transform .25s var(--ease); pointer-events: none; }
.dot span small { display: block; font: 600 9px/1 var(--mono); letter-spacing: .12em; opacity: .6; margin-bottom: 3px; }
.dot:hover span, .dot:focus-visible span, .dot.on span { opacity: 1; transform: translate(-50%, 0); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 91, 50, .6) } 70% { box-shadow: 0 0 0 12px rgba(255, 91, 50, 0) } 100% { box-shadow: 0 0 0 0 rgba(255, 91, 50, 0) } }
.clips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.clip { border-radius: 10px; overflow: hidden; background: #000; }
.clip video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.clip p { margin: 0 !important; padding: 10px 12px; background: var(--paper-2); font-size: 12.5px !important; }
.clip b { font: 700 14px/1.2 var(--serif); margin-right: 6px; }
.mod-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.mod-list div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.mod-list b { font: 700 15px/1.3 var(--serif); display: block; }
.mod-list small { font: 600 9.5px/1 var(--mono); letter-spacing: .12em; color: var(--muted); }

/* 演示窗口 */
.demo { margin-top: 30px; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 18px 50px rgba(30, 40, 60, .16); border: 1px solid rgba(0, 0, 0, .06); font-family: var(--sans); }
.demo-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #f4f5f7; border-bottom: 1px solid #e8eaee; }
.demo-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d9dce2; }
.demo-bar span { margin-left: 8px; font: 500 11px/1 var(--mono); color: #8a8f99; }
.demo-bar em { margin-left: auto; font: 600 10px/1 var(--mono); font-style: normal; color: #b86b1d; background: #fdf1e2; padding: 4px 7px; border-radius: 4px; letter-spacing: .06em; }

.qy { display: grid; grid-template-columns: 132px 1fr; min-height: 380px; }
.qy-side { padding: 14px 10px; border-right: 1px solid #eef0f3; font-size: 12px; color: #4a5160; }
.qy-logo { display: flex; align-items: center; gap: 8px; margin: 0 4px 16px; font-weight: 700; color: #16303a; font-size: 13px; }
.qy-logo i { width: 24px; height: 24px; border-radius: 7px; background: var(--teal); display: grid; place-items: center; color: #fff; font-style: normal; font-size: 13px; }
.qy-side p { margin: 0; padding: 8px 8px; border-radius: 7px; }
.qy-side p.on { background: #e3f1f3; color: var(--teal); font-weight: 600; }
.qy-side small { display: block; margin: 12px 8px 4px; font-size: 10px; color: #a0a6b0; }
.qy-main { position: relative; padding: 18px; background: #f7f8fa; overflow: hidden; }
.qy-stage { position: absolute; inset: 38px 18px 18px; display: flex; flex-direction: column; opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s var(--ease); pointer-events: none; }
.qy-stage.on { opacity: 1; transform: none; pointer-events: auto; }
.qy-h { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: #1b2430; }
.qy-p { margin: 0 0 14px; font-size: 12px; color: #7a828f; }
.qy-drop { flex: 1; border: 1.5px dashed #c9d3dc; border-radius: 12px; display: grid; place-items: center; text-align: center; color: #7a828f; font-size: 12.5px; background: #fff; }
.qy-drop .btn { height: 40px; background: var(--teal); margin-top: 12px; font-size: 13px; }
.qy-files { display: flex; flex-direction: column; gap: 8px; }
.qy-file { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid #e9ecf0; font-size: 12.5px; opacity: 0; transform: translateX(-12px); animation: slidein .5s var(--ease) forwards; }
.qy-file i { width: 28px; height: 32px; border-radius: 4px; background: #e3f1f3; color: var(--teal); display: grid; place-items: center; font: 700 9px/1 var(--mono); font-style: normal; }
.qy-file em { margin-left: auto; font-style: normal; font-size: 11px; color: #2f8a52; }
@keyframes slidein { to { opacity: 1; transform: none; } }
.qy-doc { position: relative; flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.qy-paper { position: relative; border-radius: 8px; background: #fff; border: 1px solid #e9ecf0; padding: 14px; overflow: hidden; }
.qy-paper p { height: 6px; border-radius: 3px; background: #e8ebef; margin: 0 0 9px; }
.qy-paper .scan { position: absolute; left: 0; right: 0; height: 40px; background: linear-gradient(to bottom, transparent, rgba(31, 122, 140, .22), transparent); border-bottom: 2px solid var(--teal); animation: scan 1.6s ease-in-out infinite; }
@keyframes scan { 0% { top: -40px } 100% { top: 100% } }
.qy-fields { display: flex; flex-direction: column; gap: 7px; font-size: 12px; }
.qy-fields div { display: flex; justify-content: space-between; padding: 7px 10px; border-radius: 7px; background: #fff; border: 1px solid #edf0f3; opacity: 0; animation: slidein .4s var(--ease) forwards; }
.qy-fields span { color: #8a919c; } .qy-fields b { color: #1b2430; font-weight: 600; }
.qy-meters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; flex: 1; align-content: center; }
.meter { text-align: center; padding: 14px 6px; background: #fff; border-radius: 12px; border: 1px solid #edf0f3; }
.meter svg { width: 64px; height: 64px; transform: rotate(-90deg); }
.meter circle { fill: none; stroke-width: 6; }
.meter .t { stroke: #edf0f3; }
.meter .v { stroke: var(--c, var(--teal)); stroke-linecap: round; stroke-dasharray: 163.4; stroke-dashoffset: 163.4; transition: stroke-dashoffset 1.4s var(--ease); }
.meter b { display: block; margin-top: -42px; height: 30px; font: 700 15px/1 var(--mono); color: #1b2430; }
.meter p { margin: 10px 0 0; font-size: 11.5px; color: #6d7480; }
.qy-report { flex: 1; background: #fff; border-radius: 10px; border: 1px solid #edf0f3; padding: 14px 16px; overflow: hidden; font-size: 12px; }
.qy-sum { display: flex; gap: 10px; align-items: flex-start; padding-bottom: 12px; border-bottom: 1px solid #f0f2f5; }
.qy-sum i { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--teal); display: grid; place-items: center; color: var(--teal); font-style: normal; font-weight: 700; font-size: 11px; }
.qy-sum b { display: block; font-size: 13.5px; color: #1b2430; margin-bottom: 3px; }
.qy-sum span { color: #7a828f; }
.qy-kpi { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid #f0f2f5; }
.qy-kpi div { padding: 10px 4px; text-align: center; }
.qy-kpi div + div { border-left: 1px solid #f0f2f5; }
.qy-kpi small { display: block; color: #8a919c; font-size: 10.5px; margin-bottom: 4px; }
.qy-kpi b { font-size: 13px; color: #1b2430; }
.qy-match { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.qy-match div { display: grid; grid-template-columns: 110px 1fr 36px; align-items: center; gap: 10px; }
.qy-match span { color: #4a5160; }
.qy-match p { margin: 0; height: 6px; border-radius: 3px; background: #edf0f3; overflow: hidden; }
.qy-match p i { display: block; height: 100%; width: 0; background: var(--teal); transition: width 1.2s var(--ease); }
.qy-match em { font: 600 11px/1 var(--mono); font-style: normal; color: var(--teal); text-align: right; }
.qy-again { margin-top: auto; align-self: flex-start; font-size: 12px; color: var(--teal); font-weight: 600; padding-top: 10px; }
.qy-progress { display: flex; gap: 6px; margin-bottom: 14px; }
.qy-progress span { flex: 1; height: 3px; border-radius: 2px; background: #e3e7ec; overflow: hidden; }
.qy-progress span i { display: block; height: 100%; width: 0; background: var(--teal); transition: width .6s var(--ease); }
.qy-progress span.done i { width: 100%; }

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.card { padding: 18px; border-radius: 14px; background: var(--paper-2); }
.card small { font: 600 10px/1 var(--mono); letter-spacing: .14em; color: var(--ember-2); }
.card b { display: block; margin: 10px 0 6px; font: 700 17px/1.3 var(--serif); }
.card p { margin: 0 !important; font-size: 13.5px !important; line-height: 1.7 !important; color: #4a4a50 !important; }
.principles { list-style: none; padding: 0; margin: 0; }
.principles li { display: grid; grid-template-columns: 34px 1fr; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.principles li::before { content: "—"; color: var(--ember-2); font-weight: 700; }
.principles b { font: 700 15.5px/1.5 var(--serif); }
.principles span { display: block; font: 400 13.5px/1.7 var(--sans); color: #55555b; margin-top: 2px; }

/* 叙物演示 */
.xw { display: grid; grid-template-columns: 200px 1fr; gap: 0; min-height: 420px; background: #0f3b45; color: #f6ecd8; }
.xw-phone { margin: 22px auto; width: 168px; height: 360px; border-radius: 26px; background: #111; padding: 8px; box-shadow: 0 20px 40px rgba(0, 0, 0, .35); }
.xw-screen { position: relative; width: 100%; height: 100%; border-radius: 20px; overflow: hidden; background: #f6ecd8; color: #2d241f; }
.xw-view { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; overflow: hidden; }
.xw-view.on { opacity: 1; }
.xw-photo { position: absolute; inset: 0; background: radial-gradient(circle at 50% 40%, #e9d6b4, #b9946a); }
.board { position: absolute; left: 12%; right: 12%; top: 40%; height: 34%; border-radius: 14px; background: linear-gradient(135deg, #a8733f, #7a4d27); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .15); }
.sausage { position: absolute; height: 18px; border-radius: 10px; background: radial-gradient(circle at 30% 40%, rgba(255, 255, 255, .45) 0 1.5px, transparent 2px) 0 0 / 9px 7px, radial-gradient(circle at 70% 60%, rgba(255, 230, 210, .5) 0 1.5px, transparent 2px) 4px 3px / 11px 8px, linear-gradient(to bottom, #a8392b, #6c1f18); box-shadow: 0 3px 4px rgba(0, 0, 0, .25); }
.chili { position: absolute; width: 10px; height: 34px; border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%; background: linear-gradient(90deg, #e2412a, #a71e12); }
.chili::before { content: ""; position: absolute; top: -5px; left: 3px; width: 4px; height: 7px; background: #3d7a33; border-radius: 2px; }
.xw-tags { position: absolute; left: 8px; right: 8px; bottom: 10px; display: flex; flex-wrap: wrap; gap: 4px; }
.xw-tags span { padding: 4px 7px; border-radius: 999px; background: rgba(15, 59, 69, .9); color: #f6ecd8; font-size: 9.5px; opacity: 0; transform: translateY(6px); animation: slidein .4s var(--ease) forwards; }
.xw-box { position: absolute; border: 1.5px solid #ef5a22; border-radius: 6px; }
.xw-box::after { content: attr(data-l); position: absolute; top: -16px; left: -1px; background: #ef5a22; color: #fff; font: 600 8px/1 var(--mono); padding: 3px 4px; border-radius: 3px; }
.xw-list { padding: 30px 10px 10px; display: flex; flex-direction: column; gap: 6px; }
.xw-list div { padding: 8px 9px; border-radius: 9px; background: #fff; font-size: 10px; line-height: 1.45; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); opacity: 0; animation: slidein .4s var(--ease) forwards; }
.xw-list b { display: block; font-size: 11px; margin-bottom: 2px; }
.xw-list em { font-style: normal; font-size: 8.5px; padding: 1px 5px; border-radius: 3px; background: #e5f2e8; color: #2f7a43; }
.xw-list em.wait { background: #fdf0e2; color: #b4641c; }
.xw-sw { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 30px 10px 10px; }
.xw-sw i { height: 60px; border-radius: 10px; opacity: 0; animation: slidein .4s var(--ease) forwards; }
.xw-sw p { grid-column: span 2; margin: 6px 0 0; font-size: 10px; line-height: 1.6; color: #5a4a40; }
.xw-page { position: absolute; left: 0; right: 0; top: 0; transition: transform 3s ease-in-out; }
.xw-hero { height: 190px; background: radial-gradient(circle at 70% 30%, #5a2219, #1e1310); color: #f6ecd8; position: relative; padding: 26px 12px; }
.xw-hero h4 { margin: 0; font: 700 22px/1.15 var(--serif); }
.xw-hero p { margin: 6px 0 0; font-size: 9px; letter-spacing: .2em; color: #e9a07c; }
.xw-hero .sausage { width: 110px; transform: rotate(-12deg); }
.xw-blk { height: 120px; margin: 8px; border-radius: 10px; position: relative; overflow: hidden; background: #efe2c9; }
.xw-blk::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .6) 50%, transparent 70%); transform: translateX(-100%); }
.xw-blk.gen::after { animation: shimmer 1.2s ease-in-out infinite; }
.xw-blk.done::after { display: none; }
.xw-blk b { position: absolute; left: 10px; top: 10px; font: 700 13px/1.2 var(--serif); }
.xw-blk small { position: absolute; left: 10px; top: 30px; font-size: 8.5px; color: #7a5f4e; }
@keyframes shimmer { to { transform: translateX(100%); } }
.xw-check { padding: 30px 10px; display: flex; flex-direction: column; gap: 7px; font-size: 10px; }
.xw-check div { display: flex; gap: 6px; align-items: flex-start; padding: 8px; border-radius: 8px; background: #fff; opacity: 0; animation: slidein .4s var(--ease) forwards; line-height: 1.45; }
.xw-check i { flex: none; width: 14px; height: 14px; border-radius: 50%; background: #2f7a43; color: #fff; font: 700 8px/14px var(--mono); text-align: center; font-style: normal; }
.xw-check i.w { background: #d98a2b; }
.xw-right { padding: 22px 22px 18px 6px; display: flex; flex-direction: column; }
.xw-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-bottom: 18px; }
.xw-steps button { position: relative; padding: 10px 0 0; text-align: left; font: 500 10.5px/1.3 var(--sans); color: rgba(246, 236, 216, .5); transition: color .3s; }
.xw-steps button::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 2px; background: rgba(246, 236, 216, .18); }
.xw-steps button::after { content: ""; position: absolute; top: 0; left: 0; height: 3px; border-radius: 2px; background: #ef5a22; width: 0; }
.xw-steps button.past::after { width: 100%; }
.xw-steps button.on { color: #f6ecd8; }
.xw-steps button.on::after { animation: stepfill var(--dur, 3.6s) linear forwards; }
.xw-steps button.on.held::after { animation: none; width: 100%; }
@keyframes stepfill { from { width: 0 } to { width: 100% } }
.xw-steps small { display: block; font: 600 9px/1 var(--mono); opacity: .6; margin-bottom: 4px; }
.xw-desc { flex: 1; }
.xw-desc small { font: 600 10px/1 var(--mono); letter-spacing: .14em; color: #ef8a5e; }
.xw-desc h4 { margin: 10px 0 10px; font: 700 21px/1.3 var(--serif); }
.xw-desc p { margin: 0 !important; font-size: 13px !important; line-height: 1.8 !important; color: rgba(246, 236, 216, .78) !important; }
.xw-prompts { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.xw-prompts div { display: grid; grid-template-columns: 26px 1fr; gap: 6px; font-size: 11.5px; line-height: 1.5; }
.xw-prompts span { font: 600 10px/1.6 var(--mono); color: #ef8a5e; }
.xw-prompts p[contenteditable] { margin: 0 !important; padding: 5px 8px; border-radius: 6px; background: rgba(246, 236, 216, .08); color: #f6ecd8 !important; font-size: 11.5px !important; line-height: 1.5 !important; outline: none; border: 1px solid transparent; }
.xw-prompts p[contenteditable]:focus { border-color: #ef5a22; }
.xw-logo { width: 54px; height: 54px; border-radius: 14px; background: #0f3b45; position: relative; display: inline-block; vertical-align: middle; margin-right: 14px; }
.xw-logo::before { content: ""; position: absolute; left: 14px; top: 11px; width: 26px; height: 32px; background: #f6ecd8; transform: rotate(-10deg); clip-path: polygon(0 0, 72% 0, 100% 24%, 100% 100%, 0 100%); }
.xw-logo::after { content: ""; position: absolute; left: 31px; top: 10px; width: 9px; height: 9px; background: #ef5a22; transform: rotate(-10deg); clip-path: polygon(0 0, 100% 100%, 0 100%); }
.feature-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.feature-table td { padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.6; }
.feature-table td:first-child { width: 34%; font: 700 14.5px/1.5 var(--serif); padding-right: 12px; }
.feature-table td:last-child { color: #55555b; }
.stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.stack span { padding: 6px 10px; border-radius: 999px; background: var(--paper-2); font: 500 12px/1 var(--mono); }

/* 关于 */
.about-hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: 26px; align-items: end; margin-top: 26px; }
.about-hero figure { margin: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 5; background: #ddd; }
.about-hero img { width: 100%; height: 100%; object-fit: cover; }
.quote { margin: 0; font: 400 clamp(19px, 1.6vw, 23px)/1.65 var(--serif); }
.quote::before { content: "“"; display: block; font: 400 64px/0.6 var(--display); color: var(--ember-2); margin-bottom: 8px; }
.roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.roles div { background: var(--paper); padding: 16px 12px; transition: background .3s, color .3s; }
.roles div:hover { background: var(--text); color: var(--paper); }
.roles b { display: block; font: 700 19px/1 var(--serif); margin-bottom: 8px; }
.roles small { font: 500 10.5px/1.3 var(--sans); opacity: .6; }
.tl { list-style: none; margin: 0; padding: 0; }
.tl li { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.6; }
.tl b { font: 600 12px/1.9 var(--mono); color: var(--ember-2); }
.egg { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; padding: 14px; border-radius: 14px; background: var(--paper-2); text-decoration: none; transition: background .3s; }
.egg:hover { background: #e0d7c5; }
.egg img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.egg b { display: block; font: 700 17px/1.3 var(--serif); margin-bottom: 4px; }
.egg span { font-size: 13px; color: #55555b; line-height: 1.6; }

/* 简历 */
.cv-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.cv-job { margin-bottom: 22px; }
.cv-job header { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 8px; }
.cv-job header b { font: 700 17px/1.35 var(--serif); }
.cv-job header span { font: 500 11.5px/1 var(--mono); color: var(--muted); white-space: nowrap; }
.cv-job ul { margin: 0; padding-left: 18px; }
.cv-job li { font: 400 14px/1.8 var(--sans); color: #3c3c42; margin-bottom: 4px; }
.cv-job li b { font-weight: 600; color: var(--text); }
.cv-works { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cv-works button { text-align: left; padding: 14px; border-radius: 12px; background: var(--paper-2); transition: background .3s, color .3s; }
.cv-works button:hover { background: var(--text); color: var(--paper); }
.cv-works small { font: 600 10px/1 var(--mono); letter-spacing: .12em; opacity: .55; }
.cv-works b { display: block; margin-top: 8px; font: 700 16px/1.3 var(--serif); }
.skills { display: grid; grid-template-columns: 90px 1fr; gap: 10px 14px; font-size: 14px; line-height: 1.7; }
.skills b { font: 700 14px/1.7 var(--serif); }
.mail { display: block; margin-top: 8px; font: italic 400 clamp(26px, 3vw, 40px)/1.1 var(--display); text-decoration: none; word-break: break-all; transition: color .3s; }
.mail:hover { color: var(--ember-2); }
.toast { position: fixed; left: 50%; bottom: 40px; z-index: 40; transform: translate(-50%, 20px); opacity: 0; padding: 12px 18px; border-radius: 999px; background: var(--text); color: var(--paper); font-size: 13px; transition: opacity .3s, transform .4s var(--ease); pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* 索引 */
.index { position: fixed; inset: 0; z-index: 30; background: rgba(6, 8, 15, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s .5s; }
.index.open { opacity: 1; visibility: visible; transition: opacity .5s var(--ease); }
.index-inner { width: min(980px, 90vw); }
.index-kicker { font: 600 11px/1 var(--mono); letter-spacing: .2em; color: rgba(245, 239, 228, .5); margin: 0 0 22px; }
.index-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(245, 239, 228, .14); }
.index-list li { border-bottom: 1px solid rgba(245, 239, 228, .14); overflow: hidden; }
.index-list button { width: 100%; display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 16px; padding: clamp(12px, 2vh, 20px) 0; text-align: left; transform: translateY(100%); transition: transform .8s var(--ease), color .3s, padding .4s var(--ease); }
.index.open .index-list button { transform: none; }
.index-list li:nth-child(2) button { transition-delay: .04s } .index-list li:nth-child(3) button { transition-delay: .08s } .index-list li:nth-child(4) button { transition-delay: .12s } .index-list li:nth-child(5) button { transition-delay: .16s } .index-list li:nth-child(6) button { transition-delay: .2s }
.index-list button:hover { color: var(--ember); padding-left: 14px; }
.index-list .n { font: 600 12px/1 var(--mono); opacity: .5; }
.index-list .t { font: 700 clamp(28px, 4.4vw, 56px)/1.05 var(--serif); }
.index-list .t.latin { font: italic 400 clamp(32px, 5vw, 64px)/1 var(--display); }
.index-list .k { font: 500 12px/1.5 var(--mono); letter-spacing: .1em; opacity: .6; text-align: right; }
.index-foot { font: 500 12px/1 var(--sans); color: rgba(245, 239, 228, .45); margin-top: 22px; }

.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .92); display: grid; place-items: center; padding: 4vw; opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; cursor: zoom-out; }
.lightbox.open { opacity: 1; visibility: visible; transition: opacity .4s; }
.lightbox img { max-height: 84vh; border-radius: 6px; }
.lightbox p { color: rgba(255, 255, 255, .7); font-size: 13px; margin: 14px 0 0; text-align: center; }

.noscript, .nogl { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--ink); color: var(--star); font: 16px/1.6 var(--serif); text-align: center; }

/* WebGL 不可用时 */
body.no-gl .intro, body.no-gl #gl, body.no-gl .labels { display: none; }
body.no-gl .hud { opacity: 1; transform: none; }
body.no-gl .index { opacity: 1; visibility: visible; background: var(--ink); }

/* ---------- 手机 ---------- */
@media (max-width: 760px) {
  :root { --panel-w: 100vw; }
  .panel { top: auto; left: 0; right: 0; bottom: 0; width: 100%; height: 84vh; height: 84dvh; border-radius: 20px 20px 0 0; transform: translateY(105%); }
  .panel.open { transform: none; }
  .panel-grip { display: block; position: absolute; z-index: 4; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: rgba(0, 0, 0, .2); }
  .panel.compact { left: 12px; right: 12px; bottom: 12px; width: auto; height: auto; border-radius: 18px; }
  .panel-head { padding: 16px 14px 14px 18px; }
  .panel-body { padding: 72px 20px calc(48px + env(safe-area-inset-bottom)); }
  .player { margin-left: -20px; margin-right: -20px; }
  .p-title { font-size: clamp(34px, 10vw, 44px); }
  .p-title.latin { font-size: clamp(44px, 13vw, 56px); }
  .chapters { grid-template-columns: repeat(2, 1fr); }
  .pair-cap { flex-direction: column; gap: 4px; }
  .gallery { grid-template-columns: 1fr; } .gallery button:first-child { grid-column: auto; }
  .clips, .cards, .mod-list, .cv-works { grid-template-columns: 1fr; }
  .roles { grid-template-columns: repeat(2, 1fr); }
  .about-hero { grid-template-columns: 1fr; }
  .about-hero figure { aspect-ratio: 1; max-width: 260px; }
  .qy { grid-template-columns: 1fr; } .qy-side { display: none; } .qy-main { min-height: 380px; }
  .qy-meters { grid-template-columns: repeat(2, 1fr); }
  .xw { grid-template-columns: 1fr; } .xw-right { padding: 0 18px 20px; }
  .xw-steps button { font-size: 0; } .xw-steps small { font-size: 9px; }
  .hint { display: none; }
  .hud-nav #btnOverview { display: none; }
  .near { bottom: calc(160px + env(safe-area-inset-bottom)); }
  .index-list button { grid-template-columns: 34px 1fr; } .index-list .k { grid-column: 2; text-align: left; margin-top: -6px; }
  .intro-caption { white-space: normal; width: 86vw; }
  .egg { grid-template-columns: 90px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .grain { display: none; }
}

/* ---------- 进入后的指引 ---------- */
.chip-help { width: 36px; padding: 0; justify-content: center; font: 600 14px/1 var(--mono); }
.coach { position: fixed; z-index: 13; top: clamp(70px, 9vh, 92px); left: 50%; width: min(600px, calc(100vw - 24px)); display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: center; padding: 16px 20px 18px 16px; border-radius: 18px; background: rgba(12, 15, 28, .72); border: 1px solid rgba(245, 239, 228, .14); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 20px 60px rgba(0, 0, 0, .45); color: var(--star); transform: translate(-50%, -16px); opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), transform .6s var(--ease), visibility 0s .6s; }
.coach.on { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .6s var(--ease), transform .6s var(--ease); }
body.panel-open .coach, body:not(.entered) .coach { opacity: 0; visibility: hidden; pointer-events: none; }
.coach-ill { position: relative; width: 112px; height: 84px; border-radius: 12px; background: rgba(245, 239, 228, .05); overflow: hidden; }
.coach-step { margin: 0 0 6px; font: 600 10px/1 var(--mono); letter-spacing: .16em; color: var(--ember); }
.coach h3 { margin: 0 0 6px; font: 700 19px/1.3 var(--serif); }
.coach-txt > p:not(.coach-step) { margin: 0; font: 400 13.5px/1.7 var(--sans); color: rgba(245, 239, 228, .78); }
.coach-txt kbd { font: 600 10px/1 var(--mono); padding: 3px 5px; border-radius: 4px; border: 1px solid rgba(245, 239, 228, .35); margin: 0 1px; }
.coach-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.coach-act button { height: 34px; padding: 0 14px; border-radius: 999px; font: 500 13px/1 var(--sans); background: rgba(245, 239, 228, .1); border: 1px solid rgba(245, 239, 228, .2); transition: background .25s, border-color .25s, color .25s; }
.coach-act button:hover { background: rgba(245, 239, 228, .2); }
.coach-act button.primary { background: var(--ember); border-color: var(--ember); color: #fff; }
.coach-act button.primary:hover { background: #ff7650; }
.coach-skip { position: absolute; top: 12px; right: 14px; font: 500 11px/1 var(--sans); color: rgba(245, 239, 228, .45); transition: color .2s; }
.coach-skip:hover { color: var(--star); }
.coach-bar { position: absolute; left: 18px; right: 18px; bottom: 0; height: 2px; background: rgba(245, 239, 228, .08); border-radius: 2px; overflow: hidden; }
.coach-bar i { display: block; height: 100%; width: 0; background: var(--ember); transition: width .6s var(--ease); }
.coach.done-flash h3::after { content: " ✓"; color: #7ee0a1; }
.coach-txt { min-width: 0; }

/* 指引里的小动画 */
.ill-globe { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #9fd07a, #4f8a47 60%, #2c5a3a); box-shadow: 0 0 18px rgba(120, 140, 255, .35); overflow: hidden; }
.ill-globe::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 60%, #3f86b0 0 18%, transparent 19%), radial-gradient(circle at 70% 30%, #3f86b0 0 12%, transparent 13%); animation: spinbg 2.4s ease-in-out infinite; }
@keyframes spinbg { 0%, 100% { transform: translateX(-10px) } 50% { transform: translateX(10px) } }
.ill-hand { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: 4px 0 0 -4px; border-radius: 50%; background: rgba(255, 255, 255, .9); box-shadow: 0 0 0 6px rgba(255, 255, 255, .18); animation: drag 2.4s ease-in-out infinite; }
@keyframes drag { 0%, 100% { transform: translateX(-22px) } 50% { transform: translateX(22px) } }
.ill-tap { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.ill-tap b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ember); font: 600 11px/1 var(--mono); color: #fff; position: relative; }
.ill-tap b::before, .ill-tap b::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ember); animation: ring 1.8s ease-out infinite; }
.ill-tap b::after { animation-delay: .9s; }
@keyframes ring { from { transform: scale(1); opacity: .9 } to { transform: scale(2.4); opacity: 0 } }
.ill-tap span { position: absolute; left: 40px; top: 6px; white-space: nowrap; font: 600 12px/1 var(--serif); }
.ill-keys { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; grid-template-columns: repeat(3, 24px); gap: 4px; }
.ill-keys i { display: grid; place-items: center; height: 24px; border-radius: 5px; border: 1px solid rgba(245, 239, 228, .35); font: 600 10px/1 var(--mono); font-style: normal; animation: key 2.4s infinite; }
.ill-keys i:first-child { grid-column: 2; grid-row: 1; }
.ill-keys i:nth-child(2) { grid-column: 1; grid-row: 2; } .ill-keys i:nth-child(3) { grid-column: 2; grid-row: 2; } .ill-keys i:nth-child(4) { grid-column: 3; grid-row: 2; }
.ill-keys i:nth-child(2) { animation-delay: .6s } .ill-keys i:nth-child(3) { animation-delay: 1.2s } .ill-keys i:nth-child(4) { animation-delay: 1.8s }
@keyframes key { 0%, 30%, 100% { background: transparent; color: inherit } 10%, 20% { background: var(--ember); border-color: var(--ember); color: #fff } }
.ill-joy { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px; border-radius: 50%; border: 1px solid rgba(245, 239, 228, .35); }
.ill-joy::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px; border-radius: 50%; background: rgba(245, 239, 228, .9); animation: joy 2.4s ease-in-out infinite; }
@keyframes joy { 0%, 100% { transform: translate(0, 0) } 25% { transform: translate(0, -12px) } 50% { transform: translate(12px, 0) } 75% { transform: translate(0, 12px) } }
.ill-list { position: absolute; inset: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.ill-list i { height: 6px; border-radius: 3px; background: rgba(245, 239, 228, .25); animation: listglow 3s infinite; }
.ill-list i:nth-child(1) { width: 80% } .ill-list i:nth-child(2) { width: 60%; animation-delay: .5s } .ill-list i:nth-child(3) { width: 72%; animation-delay: 1s } .ill-list i:nth-child(4) { width: 50%; animation-delay: 1.5s } .ill-list i:nth-child(5) { width: 66%; animation-delay: 2s }
@keyframes listglow { 0%, 20%, 100% { background: rgba(245, 239, 228, .25) } 8%, 14% { background: var(--ember) } }

/* 当前这一步对应的界面元素会闪一下 */
body.coach-open .pin.on .pin-no { animation: pinpulse 1.6s ease-out infinite; }
@keyframes pinpulse { 0% { box-shadow: 0 0 0 0 rgba(255, 91, 50, .7) } 100% { box-shadow: 0 0 0 14px rgba(255, 91, 50, 0) } }
body.coach-open .pin.on .pin-txt i { opacity: 1; transform: none; }
body.coach-index #btnIndex, body.coach-help #btnHelp { border-color: var(--ember); box-shadow: 0 0 0 4px rgba(255, 91, 50, .2); }
body.coach-walk .joy { border-color: var(--ember); box-shadow: 0 0 0 6px rgba(255, 91, 50, .2); }

@media (max-width: 760px) {
  .coach { grid-template-columns: 72px 1fr; gap: 12px; padding: 14px 14px 16px 12px; top: 66px; }
  .coach-ill { width: 72px; height: 72px; }
  .ill-keys { transform: translate(-50%, -50%) scale(.75); }
  .coach h3 { font-size: 16px; }
  .coach-txt > p:not(.coach-step) { font-size: 12.5px; }
}

/* ---------- 简历：面板内预览 + 全屏查看 ---------- */
.cv-sheet { position: relative; display: block; width: 100%; margin-top: 28px; padding: 0; border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 14px 40px rgba(40, 30, 20, .16); cursor: zoom-in; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.cv-sheet:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(0, 0, 0, .06), 0 24px 60px rgba(40, 30, 20, .22); }
.cv-sheet img { width: 100%; height: auto; }
.cv-hint { position: absolute; right: 12px; top: 12px; padding: 6px 10px; border-radius: 999px; background: rgba(22, 23, 28, .78); color: #fff; font: 500 11px/1 var(--sans); opacity: 0; transition: opacity .3s; }
.cv-sheet:hover .cv-hint, .cv-sheet:focus-visible .cv-hint { opacity: 1; }
.cv-viewer { position: fixed; inset: 0; z-index: 60; background: rgba(6, 8, 15, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s .4s; }
.cv-viewer.open { opacity: 1; visibility: visible; transition: opacity .4s var(--ease); }
.cv-bar { display: flex; align-items: center; gap: 10px; padding: 14px clamp(14px, 3vw, 28px); color: var(--star); }
.cv-title { margin-right: auto; font: 600 14px/1 var(--serif); letter-spacing: .06em; }
.cv-bar button, .cv-bar a { height: 36px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; font: 500 13px/1 var(--sans); text-decoration: none; background: rgba(245, 239, 228, .1); border: 1px solid rgba(245, 239, 228, .18); transition: background .25s; }
.cv-bar button:hover, .cv-bar a:hover { background: rgba(245, 239, 228, .2); }
.cv-bar .cv-dl { background: var(--ember); border-color: var(--ember); color: #fff; }
.cv-bar .cv-close { width: 36px; padding: 0; justify-content: center; font-size: 20px; }
.cv-scroll { flex: 1; overflow: auto; padding: 8px 16px 40px; display: flex; justify-content: center; align-items: flex-start; overscroll-behavior: contain; }
.cv-scroll img { width: min(860px, 100%); height: auto; border-radius: 4px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); cursor: zoom-in; transform: translateY(16px); transition: transform .5s var(--ease), width .4s var(--ease); }
.cv-viewer.open .cv-scroll img { transform: none; }
.cv-viewer.zoom .cv-scroll img { width: max(1400px, 100%); max-width: none; cursor: zoom-out; }
@media (max-width: 760px) { .cv-title { display: none; } .cv-viewer.zoom .cv-scroll img { width: 1200px; } }
.about-intro p { font-size: 15.5px; line-height: 1.95; margin-bottom: 16px; }
.about-intro .about-lead { font: 400 clamp(18px, 1.5vw, 21px)/1.8 var(--serif); color: var(--text); }

/* 《抽屉》在当前页以弹层打开 */
.drawer-view { position: fixed; inset: 0; z-index: 55; background: #06080f; opacity: 0; visibility: hidden; transform: scale(1.02); transition: opacity .6s var(--ease), transform .6s var(--ease), visibility 0s .6s; }
.drawer-view.open { opacity: 1; visibility: visible; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.drawer-view iframe { width: 100%; height: 100%; border: 0; display: block; }
