@font-face { font-family: "Geist Sans"; src: url("https://cdn.jsdelivr.net/npm/@fontsource/geist-sans@5/files/geist-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+2013-2014, U+2018-201D, U+2026, U+2190-2193; }
@font-face { font-family: "Geist Sans"; src: url("https://cdn.jsdelivr.net/npm/@fontsource/geist-sans@5/files/geist-sans-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; unicode-range: U+0000-00FF, U+2013-2014, U+2018-201D, U+2026, U+2190-2193; }
@font-face { font-family: "Geist Mono"; src: url("https://cdn.jsdelivr.net/npm/@fontsource/geist-mono@5/files/geist-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+2013-2014, U+2018-201D, U+2026, U+2190-2193; }
@font-face { font-family: "Smiley Sans"; src: url("assets/SmileySans-Oblique.subset.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Departure Mono"; src: url("assets/DepartureMono-Regular.woff2") format("woff2"); font-display: swap; }

:root {
  --bg: #0b0c0e;
  --panel: #141518;
  --line: #26282c;
  --fg: #e8e6e1;
  --dim: #7c7f86;
  --sig: #38e1ff;   /* 当前板块的强调色（由 JS 按滚动位置更新） */
  --amb: #9fe8ff;   /* 当前板块的第二强调色 */
  --ok: #3ddc84;
  --sans: "Geist Sans", "PingFang SC", "Source Han Sans SC", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --px: "Departure Mono", "Geist Mono", ui-monospace, monospace;
  /* 得意黑：完整字体按 unicode-range 分片从 CDN 按需加载；本地子集作兜底 */
  --display: "Smiley Sans Oblique", "Smiley Sans", "Geist Sans", "PingFang SC", sans-serif;
  --wide: "Archivo Variable", "Geist Sans", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { background: var(--bg); color: var(--fg); font-family: var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--sig); color: var(--bg); }
.px { font-family: var(--px); letter-spacing: .04em; }

#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; }

/* ---------- 顶部进度线 + Logo 定位槽 ---------- */
.loader-line { position: fixed; left: 0; top: 0; height: 2px; width: 0; z-index: 80; background: var(--sig); box-shadow: 0 0 12px var(--sig); }
.logo-slot { position: fixed; left: 50%; top: 22vh; width: min(64vw, 760px); aspect-ratio: 2770 / 617; transform: translateX(-50%); pointer-events: none; visibility: hidden; }

/* ---------- 赛博朋克光标（cursor.js） ---------- */
html.has-cursor, html.has-cursor * { cursor: none !important; }
.cy-cursor { --cy: #fcee0a; --cy-r: #ff003c; --cy-c: #00f0ff; --g: 0px; position: fixed; left: 0; top: 0; z-index: 95; width: 0; height: 0; pointer-events: none; will-change: transform; transition: opacity .2s; }
.cy-cursor.off { opacity: 0; }
.cy-arrow { position: absolute; left: -2px; top: -2px; overflow: visible; transition: transform .18s var(--ease), opacity .15s; transform-origin: 2px 2px; }
.cy-arrow path { stroke-linejoin: miter; }
.cy-m { fill: var(--cy); stroke: #050505; stroke-width: 1.5; filter: drop-shadow(0 0 5px rgba(252,238,10,.45)); }
.cy-r, .cy-c { fill: none; stroke-width: 1.2; opacity: .9; }
.cy-r { stroke: var(--cy-r); transform: translate(calc(var(--g) * -1 - 1.5px), 1px); }
.cy-c { stroke: var(--cy-c); transform: translate(calc(var(--g) + 1.5px), calc(var(--g) * .35)); }
.cy-notch { fill: none; stroke: #050505; stroke-width: 1.6; }
.cy-cursor.hover .cy-arrow { transform: scale(.78) rotate(-8deg); }
.cy-cursor.down .cy-arrow { transform: scale(.66); }
.cy-beam { position: absolute; left: -1px; top: -12px; width: 2px; height: 24px; background: var(--cy); box-shadow: -2px 0 var(--cy-r), 2px 0 var(--cy-c), 0 0 10px var(--cy); opacity: 0; }
.cy-cursor.text .cy-arrow { opacity: 0; }
.cy-cursor.text .cy-beam { opacity: 1; }
.cy-read { position: absolute; left: 20px; top: 24px; padding: 3px 5px 2px; font: 9px/1 var(--px); letter-spacing: .12em; color: var(--cy); background: rgba(5,5,5,.78); border-left: 2px solid var(--cy-r); white-space: nowrap; opacity: 0; transform: translateX(-4px); transition: opacity .25s, transform .25s; }
.cy-cursor.moving:not(.hover) .cy-read { opacity: 1; transform: none; }
.cy-cursor.glitch .cy-arrow { animation: cy-glitch .26s steps(2) 1; }
@keyframes cy-glitch {
  0% { clip-path: inset(0 0 55% 0); transform: translate(3px, 0); }
  25% { clip-path: inset(40% 0 20% 0); transform: translate(-4px, 1px); }
  50% { clip-path: inset(70% 0 0 0); transform: translate(2px, -1px); }
  75% { clip-path: inset(10% 0 60% 0); transform: translate(-2px, 0); }
  100% { clip-path: inset(0); transform: none; }
}
.cy-frame { --cy: #fcee0a; --cy-r: #ff003c; position: fixed; left: 0; top: 0; z-index: 94; pointer-events: none; opacity: 0; transition: opacity .15s; will-change: transform; }
.cy-frame.on { opacity: 1; }
.cy-box { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); overflow: visible; }
.cy-line { fill: rgba(252,238,10,.05); stroke: var(--cy); stroke-width: 1.4; filter: drop-shadow(0 0 4px rgba(252,238,10,.6)); stroke-dasharray: 2000; stroke-dashoffset: 2000; }
.cy-frame.on .cy-line { animation: cy-draw .38s var(--ease) forwards; }
@keyframes cy-draw { to { stroke-dashoffset: 0; } }
.cy-acc { fill: none; stroke: var(--cy-r); stroke-width: 3; }
.cy-tag { position: absolute; left: 0; bottom: calc(100% + 4px); padding: 4px 10px 3px 7px; font: 10px/1 var(--px); letter-spacing: .16em; color: #050505; background: var(--cy); clip-path: polygon(0 0, 100% 0, 100% 55%, calc(100% - 6px) 100%, 0 100%); white-space: nowrap; transform: translateY(4px); opacity: 0; transition: transform .25s var(--ease), opacity .2s; }
.cy-tag::before { content: "▸ "; }
.cy-id { position: absolute; right: 0; top: calc(100% + 5px); font: 9px/1 var(--px); letter-spacing: .14em; color: var(--cy); opacity: 0; transition: opacity .3s .1s; white-space: nowrap; }
.cy-frame.on .cy-tag { transform: none; opacity: 1; }
.cy-frame.on .cy-id { opacity: .8; }
.cy-scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--cy); box-shadow: 0 0 12px var(--cy); opacity: 0; }
.cy-frame.on .cy-scan { animation: cy-scan .5s var(--ease) 1; }
@keyframes cy-scan { 0% { top: 0; opacity: 1; } 100% { top: 100%; opacity: 0; } }
.cy-frame.glitch { animation: cy-shake .26s steps(3) 1; }
@keyframes cy-shake { 33% { margin-left: 3px; filter: hue-rotate(160deg); } 66% { margin-left: -3px; } }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 22px 4vw; background: linear-gradient(180deg, var(--bg) 30%, rgba(11,12,14,0)); }
.logo-mark img { display: block; height: 22px; filter: invert(94%); }
.nav nav { display: flex; gap: 36px; font: 13px/1 var(--px); letter-spacing: .1em; text-transform: uppercase; }
.nav nav a { position: relative; padding: 4px 0; }
.nav nav a::before { content: "["; opacity: 0; margin-right: 6px; color: var(--sig); transition: .2s; }
.nav nav a::after { content: "]"; opacity: 0; margin-left: 6px; color: var(--sig); transition: .2s; }
.nav nav a:hover::before, .nav nav a:hover::after { opacity: 1; }
.nav-hud { font: 12px/1 var(--px); color: var(--dim); display: flex; align-items: center; gap: 8px; }
.nav-hud .dot { width: 6px; height: 6px; background: var(--ok); animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }

main { position: relative; z-index: 2; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 4vw 9vh; }
.hero-text { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4vw; margin-bottom: 2.4vh; }
.hero-text .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.eyebrow { font-size: 12px; color: var(--sig); margin-bottom: 22px; }
h1 { font: 400 clamp(30px, 3.4vw, 58px)/1.08 var(--display); letter-spacing: -.005em; }
.split .ln { display: block; overflow: hidden; padding: 0 .25em .08em 0; white-space: nowrap; }
.split .ch { display: inline-block; will-change: transform; }
.hero-meta { position: absolute; left: 4vw; right: 4vw; bottom: 4.5vh; display: flex; justify-content: space-between; font-size: 11px; color: var(--dim); letter-spacing: .12em; pointer-events: none; }

.ask { width: min(520px, 38vw); display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border: 1px solid var(--line); background: rgba(20,21,24,.72); backdrop-filter: blur(10px); }
.ask:focus-within { border-color: var(--sig); }
.ask-tag { font-size: 12px; color: var(--bg); background: var(--fg); padding: 6px 8px; }
.ask:focus-within .ask-tag { background: var(--sig); }
.ask input { flex: 1; min-width: 160px; background: none; border: 0; outline: 0; color: var(--fg); font: 15px var(--sans); cursor: none; }
.ask button { width: 36px; height: 36px; border: 1px solid var(--line); background: var(--panel); color: var(--fg); font-size: 16px; cursor: none; }
.ask button:hover { border-color: var(--sig); color: var(--sig); }
.ask-out { flex-basis: 100%; font-size: 13px; line-height: 1.7; color: var(--amb); padding: 4px 2px 2px; }
.ask-out:empty { display: none; }

/* ---------- chapters ---------- */
.chapter { position: relative; min-height: 190vh; display: flex; padding: 0 4vw; }
.chapter-long { min-height: 300vh; }
.chapter-trick { min-height: 320vh; }
.chapter[data-side="right"] { justify-content: flex-end; }
.chapter-text { position: sticky; top: 26vh; height: fit-content; max-width: 600px; }
.chapter-no { display: block; font-size: 12px; color: var(--sig); margin-bottom: 20px; }
h2 { font: 400 clamp(44px, 5.8vw, 104px)/1.0 var(--display); letter-spacing: -.005em; }
em { font-style: normal; color: var(--sig); }
.chapter p { margin-top: 28px; color: #a7a9ae; line-height: 1.95; font-size: 16px; }
.reveal .w { display: inline-block; white-space: pre; will-change: filter, opacity; }
.readout { margin-top: 34px; display: inline-flex; align-items: center; gap: 18px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12px; letter-spacing: .1em; color: var(--dim); min-width: 320px; }
.readout b { color: var(--amb); font-weight: 400; min-width: 4ch; }
.readout .bar { display: inline-block; width: 120px; height: 6px; background: repeating-linear-gradient(90deg, var(--sig) 0 6px, transparent 6px 8px); clip-path: inset(0 0 0 0); transition: clip-path .2s; }

/* ---------- work ---------- */
.work { position: relative; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding-top: 70px; }
.work-frame { position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 70% 10%, #1a1b1f, var(--panel) 60%, #0e0f11); clip-path: polygon(18% 22%, 84% 14%, 78% 86%, 22% 80%); }
.work-head { padding: 0 4vw 32px; display: flex; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.work-head .chapter-no { flex-basis: 100%; margin-bottom: 0; }
.work-head .cta { margin: 0 0 10px; }
.work-head h2 { font-size: clamp(40px, 4.6vw, 80px); }
.work-track { display: flex; gap: 24px; padding: 0 4vw; width: max-content; will-change: transform; }
.card { position: relative; width: min(28vw, 380px); min-width: 270px; aspect-ratio: 3/4; border: 1px solid var(--line); background: var(--panel); padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; transform-style: preserve-3d; }
.card::before { content: ""; position: absolute; inset: 10px; border: 1px dashed transparent; transition: border-color .3s; pointer-events: none; }
.card:hover { border-color: var(--sig); }
.card:hover::before { border-color: rgba(255,90,31,.35); }
.card-no { position: absolute; top: 20px; left: 22px; font-size: 12px; color: var(--dim); z-index: 1; }
.card-metric { position: absolute; top: 14px; right: 20px; font: 800 40px/1 var(--wide); font-stretch: 112%; letter-spacing: -.03em; color: var(--fg); z-index: 1; }
.card-metric small { font: 13px var(--px); color: var(--sig); margin-left: 4px; }
.card h3 { position: relative; z-index: 1; font: 400 26px/1.25 var(--display); }
.card p { position: relative; z-index: 1; margin-top: 8px; font-size: 12px; color: var(--dim); }
.card-visual { position: absolute; inset: 0; opacity: .5; transition: opacity .4s, transform .8s cubic-bezier(.2,.8,.2,1); }
.card:hover .card-visual { opacity: .95; transform: scale(1.05); }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, var(--panel) 88%); }
.pat-grid { background-image: radial-gradient(var(--dim) 1px, transparent 1.2px); background-size: 14px 14px; mask: radial-gradient(circle at 60% 40%, #000 0 30%, transparent 70%); }
.pat-contour { background: repeating-radial-gradient(circle at 70% 35%, transparent 0 13px, rgba(232,230,225,.35) 13px 14px); }
.pat-pixel { background:
  conic-gradient(from 90deg at 50% 50%, var(--sig) 25%, transparent 0 50%, var(--line) 0 75%, transparent 0) 0 0 / 28px 28px; mask: linear-gradient(135deg, #000 10%, transparent 70%); opacity: .35; }
.pat-scan { background: repeating-linear-gradient(0deg, rgba(255,176,0,.35) 0 1px, transparent 1px 7px); mask: radial-gradient(ellipse at 50% 38%, #000 0 35%, transparent 70%); }
.pat-layers { background: repeating-linear-gradient(0deg, rgba(232,230,225,.22) 0 2px, transparent 2px 6px), linear-gradient(0deg, rgba(255,90,31,.5), transparent 60%); mask: linear-gradient(0deg, #000, transparent 80%); }

/* ---------- marquee / contact ---------- */
.marquee { padding: 9vh 0; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.marquee-inner { display: flex; gap: 4vw; width: max-content; font: 900 clamp(56px, 10vw, 170px)/1 var(--wide); font-stretch: 125%; letter-spacing: -.03em; white-space: nowrap; }
.marquee .o { font-family: var(--display); font-weight: 400; }
.marquee .o { color: transparent; -webkit-text-stroke: 1.5px var(--sig); }
.contact { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 14vh 4vw 16vh; background: var(--bg); overflow: hidden; }
.scope { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.contact-inner { position: relative; width: 100%; }
.contact-title { font: 400 clamp(56px, 8.6vw, 150px)/.98 var(--display); max-width: 12ch; }
.contact-mail { margin-top: 7vh; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.mail { display: inline-flex; font: 900 clamp(30px, 5.4vw, 92px)/1 var(--wide); font-stretch: 118%; letter-spacing: -.03em; color: var(--fg); }
.mail span { display: inline-block; transition: color .3s; }
.mail:hover span { color: var(--sig); text-shadow: 0 0 24px color-mix(in srgb, var(--sig) 60%, transparent); }
.copy { padding: 12px 16px; border: 1px solid var(--line); background: rgba(20,21,24,.7); color: var(--fg); font-size: 12px; letter-spacing: .12em; cursor: none; }
.copy:hover { border-color: var(--sig); color: var(--sig); }
.channels { margin-top: 6vh; display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.channels a { display: inline-block; padding: 12px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; letter-spacing: .12em; color: var(--dim); background: rgba(11,12,14,.6); transition: color .25s, border-color .25s, background .25s, box-shadow .25s; }
.channels a:hover { color: var(--bg); background: var(--sig); border-color: var(--sig); box-shadow: 0 0 28px color-mix(in srgb, var(--sig) 50%, transparent); }
.contact-status { margin-top: 5vh; display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .1em; color: var(--dim); }
.contact-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sig); box-shadow: 0 0 10px var(--sig); animation: blink 1.4s steps(2) infinite; }
.contact-status a { color: var(--fg); }
.contact-status a:hover { color: var(--sig); }
.toast { position: absolute; left: 50%; bottom: 12vh; transform: translate(-50%, 20px); padding: 10px 16px; background: var(--sig); color: var(--bg); font-size: 12px; letter-spacing: .12em; opacity: 0; pointer-events: none; }
.foot { position: relative; z-index: 2; display: flex; justify-content: space-between; padding: 26px 4vw 64px; font-size: 12px; color: var(--dim); background: var(--bg); border-top: 1px solid var(--line); }

/* ---------- skate progress ---------- */
.skatebar { position: fixed; left: 4vw; right: 4vw; bottom: 18px; height: 40px; z-index: 30; pointer-events: none; }
.skatebar-track { position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: var(--line); }
.tick { position: absolute; top: -10px; transform: translateX(-50%); padding: 12px 8px 4px; font-size: 10px; color: var(--dim); background: none; border: 0; cursor: none; pointer-events: auto; display: flex; flex-direction: column; align-items: center; }
.tick em { position: absolute; bottom: 30px; font: 400 13px/1 var(--display); font-style: normal; color: var(--fg); white-space: nowrap; opacity: 0; transform: translateY(6px); transition: .25s var(--ease); pointer-events: none; }
.tick:hover { color: var(--sig); }
.tick:hover em, .tick.current em { opacity: 1; transform: none; }
.tick.current em { color: var(--sig); }
.tick::before { content: ""; position: absolute; left: 50%; top: 7px; width: 1px; height: 5px; background: currentColor; transition: height .2s; }
.tick:hover::before { height: 9px; top: 3px; }
.tick.on { color: var(--sig); }
.skater { position: absolute; bottom: 7px; left: 0; width: 42px; height: 36px; transform: translateX(-50%); }
.skater svg { display: block; width: 100%; height: 100%; shape-rendering: crispEdges; }

@media (max-width: 760px) {
  body { cursor: auto; }
  .nav nav, .hero-meta, .hud-sec { display: none; }
  .hero { padding-bottom: 14vh; }
  .chapter-text { background: linear-gradient(180deg, rgba(11,12,14,.0), rgba(11,12,14,.82) 18%, rgba(11,12,14,.82)); padding: 24px 0; top: 40vh; }
  .chapter[data-side="right"] { justify-content: flex-start; }
  .card { width: 72vw; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-hud .dot { animation: none; }
}

/* ---------- 巨型字标（每章一个，随滚动横移） ---------- */
.giant { position: absolute; inset: 0; overflow: clip; pointer-events: none; z-index: -1; }
.giant span { position: sticky; top: 52vh; display: block; white-space: nowrap; padding-left: 4vw;
  font: 900 clamp(120px, 21vw, 380px)/.78 var(--wide); font-stretch: 125%; letter-spacing: -.04em;
  background: linear-gradient(180deg, rgba(232,230,225,.11), rgba(232,230,225,0) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; will-change: transform; }

.wordmark { display: flex; justify-content: space-between; font: 900 11.3vw/.76 var(--wide); font-stretch: 125%; letter-spacing: -.04em; color: var(--fg); overflow: hidden; padding-top: .04em; margin: 0 -.5vw; }
.wordmark span { display: inline-block; will-change: transform; }
@media (max-width: 760px) {
  .hero-text { grid-template-columns: 1fr; }
  .ask { width: 100%; }
  .wordmark { font-size: 11vw; }
}
.hero-meta span:first-child { margin-left: 56px; }

/* ---------- 3D 步道：路点标签 ---------- */
.chapter-trail { min-height: 420vh; }
.wp-layer { position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: 0; }
.wp-label { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; gap: 4px; padding: 0 0 0 12px; margin-top: -8px; border-left: 1px solid var(--line); white-space: nowrap; transition: opacity .3s, border-color .3s; }
.wp-label span { font-size: 11px; color: var(--dim); letter-spacing: .08em; }
.wp-label b { font: 400 22px/1.1 var(--display); color: var(--fg); }
.wp-label.done { border-color: var(--sig); }
.wp-label.done .px { color: var(--sig); }

/* ================= v5 新增 ================= */
.nav-right { display: flex; align-items: center; gap: 28px; }
.nav nav a { font-family: var(--sans); letter-spacing: .02em; }
.menu-btn { position: relative; z-index: 41; display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border: 1px solid var(--line); background: rgba(11,12,14,.6); color: var(--fg); font-size: 12px; letter-spacing: .14em; cursor: none; }
.menu-btn i { display: block; width: 14px; height: 1px; background: currentColor; transition: transform .4s var(--ease); }
.menu-btn i + i { margin-left: -24px; transform: translateY(4px); }
.menu-btn i:first-of-type { transform: translateY(-4px); }
.menu-open .menu-btn { border-color: var(--sig); color: var(--sig); }
.menu-open .menu-btn i:first-of-type { transform: rotate(45deg); }
.menu-open .menu-btn i + i { transform: rotate(-45deg); }
.nav { z-index: 42; }

.menu { position: fixed; inset: 0; z-index: 40; visibility: hidden; display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; padding: 110px 4vw 80px; --mc: var(--sig); }
.menu-bg { position: absolute; inset: 0; background:
  radial-gradient(60% 70% at 80% 30%, color-mix(in srgb, var(--mc) 14%, transparent), transparent 70%),
  repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 4px), #08090b; transition: background .5s; }
.menu-list { position: relative; list-style: none; columns: 2; column-gap: 4vw; }
.menu-list li { overflow: hidden; break-inside: avoid; }
.menu-list a { display: flex; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.menu-list span { font-size: 12px; color: var(--dim); width: 28px; }
.menu-list b { font: 400 clamp(28px, 3.4vw, 54px)/1.05 var(--display); transition: color .25s, transform .4s var(--ease); }
.menu-list i { margin-left: auto; font-style: normal; font-size: 11px; color: var(--dim); letter-spacing: .14em; }
.menu-list a:hover b { color: var(--mc); transform: translateX(14px); }
.menu-list a:hover span, .menu-list a:hover i { color: var(--mc); }
.menu-side { position: relative; align-self: end; justify-self: end; max-width: 360px; font-size: 12px; color: var(--dim); letter-spacing: .1em; }
.menu-side span { color: var(--mc); }
.menu-side p { margin-top: 14px; font: 15px/1.8 var(--sans); letter-spacing: 0; color: var(--fg); }

.cta { margin-top: 30px; display: inline-flex; align-items: center; gap: 14px; padding: 14px 20px; border: 1px solid color-mix(in srgb, var(--sig) 55%, transparent); color: var(--fg); font-size: 13px; letter-spacing: .12em;
  background: linear-gradient(90deg, color-mix(in srgb, var(--sig) 16%, transparent), transparent); position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: var(--sig); transform: translateX(-101%); transition: transform .5s var(--ease); }
.cta > * , .cta { z-index: 0; }
.cta span { transition: transform .4s var(--ease); }
.cta:hover { color: var(--bg); }
.cta:hover::before { transform: none; }
.cta:hover span { transform: translateX(6px); }
.cta { isolation: isolate; }
.cta::before { z-index: -1; }
.chapter-text .cta { display: flex; width: fit-content; }

.scanbar { position: absolute; left: -2%; right: -2%; top: 50%; height: 2px; background: var(--sig); box-shadow: 0 0 18px var(--sig), 0 0 2px #fff; transform: scaleX(0); pointer-events: none; }

a.card { color: inherit; }
.card-metric { font-size: 30px; }

.more { position: relative; padding: 18vh 4vw 14vh; background: linear-gradient(180deg, transparent, rgba(11,12,14,.92) 18%); }
.more-head { margin-bottom: 48px; }
.more { padding-top: 11vh; padding-bottom: 7vh; height: 100vh; display: flex; flex-direction: column; }
.more-head { margin-bottom: 2vh; }
.ring-stage { position: relative; flex: 1; min-height: 380px; perspective: 1600px; perspective-origin: 50% 40%; display: grid; place-items: center; }
.ring { position: relative; width: 270px; height: 340px; transform-style: preserve-3d; will-change: transform; }
.ring-card { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 14px; padding: 26px; border: 1px solid color-mix(in srgb, var(--ta) 35%, var(--line));
  background: linear-gradient(160deg, color-mix(in srgb, var(--ta) 14%, #0c0d10), #0b0c0e 60%); backface-visibility: hidden; transition: opacity .2s, border-color .3s, box-shadow .3s; overflow: hidden; }
.ring-card.front { border-color: var(--ta); box-shadow: 0 0 60px color-mix(in srgb, var(--ta) 30%, transparent), inset 0 0 40px color-mix(in srgb, var(--ta) 10%, transparent); }
.rc-no { font-size: 11px; letter-spacing: .14em; color: var(--ta); }
.ring-card b { font: 400 40px/1.05 var(--display); }
.ring-card p { color: #a5a8ad; font-size: 14px; line-height: 1.7; }
.rc-orb { position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--ta) 50%, transparent);
  background: radial-gradient(circle, color-mix(in srgb, var(--tb) 26%, transparent), transparent 62%); box-shadow: 0 0 0 26px color-mix(in srgb, var(--ta) 6%, transparent), 0 0 0 54px color-mix(in srgb, var(--ta) 4%, transparent); transition: transform .6s var(--ease); }
.ring-card.front .rc-orb { transform: scale(1.15) rotate(25deg); }
.rc-go { margin-top: auto; font-size: 11px; letter-spacing: .14em; color: var(--ta); }
.ring-card:hover { border-color: var(--ta); }
.ring-floor { position: absolute; left: 50%; bottom: 4%; width: 120%; height: 120px; transform: translateX(-50%) rotateX(78deg); pointer-events: none;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--sig) 22%, transparent), transparent 60%), repeating-radial-gradient(ellipse at center, transparent 0 24px, color-mix(in srgb, var(--sig) 18%, transparent) 24px 25px); opacity: .55; }
.ring-hud { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 11px; letter-spacing: .14em; color: var(--dim); }
.ring-hud span:first-child { color: var(--sig); }
.ring-bar { width: 160px; height: 1px; background: var(--line); }
.ring-bar b { display: block; height: 100%; width: 0; background: var(--sig); box-shadow: 0 0 8px var(--sig); }
.sparks { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 55; pointer-events: none; mix-blend-mode: screen; }
.nav-hud .dot { background: var(--sig); }
/* 顶栏 HUD：当前板块（切换时乱码过渡一次后定格）+ 动效开关 */
.hud-sec { color: var(--fg); letter-spacing: .1em; white-space: nowrap; }
.hud-fx { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid var(--line); background: rgba(11,12,14,.6); color: var(--dim); font: inherit; letter-spacing: .14em; transition: border-color .2s, color .2s; }
.hud-fx b { font-weight: 400; color: var(--sig); min-width: 3ch; text-align: left; }
.hud-fx:hover, .hud-fx:focus-visible { border-color: var(--sig); color: var(--fg); }
.hud-fx[aria-pressed="false"] b { color: var(--dim); }
.hud-fx[aria-pressed="false"] .dot { background: var(--dim); animation: none; }
/* 动效关闭：页面里的 CSS 循环动画定格（光标的点击反馈除外） */
html.fx-off body *:not(.cy-cursor *):not(.cy-frame *), html.fx-off body *::before, html.fx-off body *::after { animation-play-state: paused !important; }
.wp-label.done { border-color: var(--sig); }
@media (max-width: 760px) {
  .menu { grid-template-columns: 1fr; }
  .menu-list { columns: 1; }
  .menu-side { display: none; }
}

.chapter-print { min-height: 460vh; }

/* 开场遮罩：资源就绪前盖住页面，避免第一帧突兀；之后和 Logo 扫描显现一起淡出 */
.veil { position: fixed; inset: 0; z-index: 75; background: var(--bg); display: grid; place-items: center; pointer-events: none; }
.veil-mark { font-size: 11px; letter-spacing: .3em; color: var(--dim); animation: blink 1s steps(2) infinite; }

/* ---------- 语言切换 ---------- */
.lang { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; letter-spacing: .1em; color: var(--dim); }
.lang button { padding: 7px 8px; background: none; border: 0; color: var(--dim); font: inherit; letter-spacing: inherit; cursor: inherit; }
.lang button.on { color: var(--sig); }
.lang button:hover { color: var(--fg); }
.lang i { font-style: normal; opacity: .5; }
/* 英文：标题改用 Archivo（更适合拉丁字母），加粗收紧 */
html[lang="en"] { --display: "Archivo Variable", "Geist Sans", sans-serif; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] .pg-title, html[lang="en"] .menu-list b, html[lang="en"] .ring-card b, html[lang="en"] .card h3,
html[lang="en"] .wp-label b, html[lang="en"] .contact-title, html[lang="en"] .blk-h h2, html[lang="en"] .card-m h3:not(.px), html[lang="en"] .pcard h3, html[lang="en"] .wcard h3,
html[lang="en"] .posts a, html[lang="en"] .timeline b, html[lang="en"] .steps b, html[lang="en"] .pg-pager a, html[lang="en"] .channel b, html[lang="en"] .kv b {
  font-weight: 700; letter-spacing: -.02em; font-stretch: 104%; }
html[lang="en"] h2 { font-size: clamp(38px, 5vw, 88px); }
html[lang="en"] h1 { font-size: clamp(28px, 3vw, 52px); }

/* ================= 手机适配 ================= */
@media (hover: none) { body { cursor: auto; } .sparks { display: none; } }
@media (max-width: 760px) {
  .nav { padding: 14px 5vw; }
  .logo-mark img { height: 18px; }
  .nav-right { gap: 10px; }
  .menu-btn { padding: 8px 10px; }
  .logo-slot { top: 20vh; width: 84vw; }
  .hero { padding: 0 5vw 12vh; }
  .hero-text { gap: 18px; margin-bottom: 18px; }
  h1 { font-size: 30px; }
  html[lang="en"] h1 { font-size: 26px; }
  .ask { padding: 8px; }
  .ask input { font-size: 14px; min-width: 0; }
  .hero-meta { display: none; }
  .chapter { padding: 0 5vw; }
  .chapter-text { top: 46vh; position: sticky; padding: 22px 0 90px;
    background: linear-gradient(180deg, rgba(11,12,14,0), rgba(11,12,14,.9) 16%, rgba(11,12,14,.96)); max-width: none; width: 100%; }
  h2, html[lang="en"] h2 { font-size: 34px; }
  .chapter p { font-size: 14px; margin-top: 14px; line-height: 1.8; }
  .readout { min-width: 0; flex-wrap: wrap; gap: 10px; margin-top: 16px; padding: 8px 0; font-size: 11px; }
  .chapter-text .cta { margin-top: 16px; padding: 12px 16px; }
  .giant span { font-size: 26vw; top: 18vh; }
  .work { padding-top: 60px; }
  .work-head h2 { font-size: 30px; }
  .card { width: 76vw; min-width: 0; }
  .more { padding-top: 10vh; }
  .ring { width: 230px; height: 300px; }
  .ring-card { padding: 20px; }
  .ring-card b { font-size: 30px; }
  .ring-card p { font-size: 13px; }
  .ring-hud { flex-wrap: wrap; }
  .marquee-inner { font-size: 52px; }
  .contact { padding: 12vh 5vw 18vh; }
  .contact-title, html[lang="en"] .contact-title { font-size: 46px; }
  .mail { font-size: 7.4vw; }
  .contact-mail { gap: 14px; margin-top: 4vh; }
  .channels a { padding: 10px 14px; font-size: 11px; }
  .contact-status { flex-wrap: wrap; font-size: 11px; }
  .foot { flex-direction: column; gap: 8px; padding-bottom: 80px; }
  .skatebar { left: 5vw; right: 5vw; bottom: 12px; }
  .tick em { display: none; }
  .tick { padding: 14px 6px 6px; }
  .wp-label b { font-size: 16px; }
  .wp-label span { font-size: 9px; }
  .scope { opacity: .7; }
}

html[lang="en"] .split .ln { white-space: normal; }
@media (max-width: 760px) { .mail { font-size: 6.4vw; } }

/* 3D 卡片环和路点标签不能撑宽页面（否则手机会整体缩小、可横向拖动，底部进度条也会被挤出屏幕） */
.more, .wp-layer { overflow: hidden; }
@media (max-width: 760px) {
  .nav { padding-top: calc(14px + env(safe-area-inset-top)); }
  .hud-fx { padding: 7px 8px; gap: 5px; font-size: 11px; }
  .lang button { padding: 7px 5px; }
  .ask input { font-size: 16px; }   /* iOS 输入框小于 16px 会在聚焦时自动放大页面 */
  .skatebar { bottom: calc(12px + env(safe-area-inset-bottom)); }
  .tick { padding: 16px 7px 8px; }
  .tick span { opacity: 0; transition: opacity .2s; }
  .tick.current span { opacity: 1; }
  .more { padding-bottom: 13vh; }
  .ring-stage { min-height: 340px; }
  .scope { opacity: .55; }
  .foot { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
}
