﻿:root {
  --bg: #0b0c0b;
  --bg2: #121412;
  --bg3: #181a18;
  --fg: #ecebe5;
  --mute: #9a9b94;
  --dim: #5f615b;
  --line: rgba(236, 235, 229, .11);
  --line2: rgba(236, 235, 229, .22);
  --acc: #ff6b1a;
  --acc-soft: rgba(255, 107, 26, .12);
  --sans: "Inter", "Segoe UI Variable Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, "Microsoft YaHei", monospace;
  --wrap: 1320px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--fg); background: var(--bg); line-height: 1.7; font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
::selection { background: var(--acc); color: #000; }
.mono { font-family: var(--mono); letter-spacing: .02em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); }
.acc { color: var(--acc); }

.grain { pointer-events: none; position: fixed; inset: 0; z-index: 90; opacity: .06; mix-blend-mode: overlay;
  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>"); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 64px; display: flex; align-items: center; gap: 32px; padding: 0 clamp(20px, 3vw, 40px); transition: background .4s, border-color .4s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(11, 12, 11, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.brand { font-family: var(--mono); font-weight: 700; letter-spacing: .12em; font-size: 13px; display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 10px; height: 10px; border: 1.5px solid var(--acc); transform: rotate(45deg); }
.nav nav { display: flex; gap: 28px; margin-left: auto; font-size: 14px; color: var(--mute); }
.nav nav a { position: relative; transition: color .2s; }
.nav nav a:hover, .nav nav a.on { color: var(--fg); }
.nav nav a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--acc); }
@keyframes blink { 50% { opacity: .2; } }

/* ---------- spline progress rail ---------- */
.rail-nav { position: fixed; left: 22px; top: 50%; transform: translateY(-50%); z-index: 40; width: 28px; height: 380px; opacity: 0; transition: opacity .5s; }
body.past-hero .rail-nav { opacity: 1; }
.rail-nav svg { overflow: visible; }
.rail-nav .track { fill: none; stroke: var(--line2); stroke-width: 1; }
.rail-nav .prog { fill: none; stroke: var(--acc); stroke-width: 1.5; }
.rail-nav a { position: absolute; left: 0; transform: translate(-50%, -50%); width: 14px; height: 14px; display: grid; place-items: center; }
.rail-nav a i { width: 7px; height: 7px; background: var(--bg); border: 1.5px solid var(--dim); transform: rotate(45deg); transition: .25s; }
.rail-nav a.on i, .rail-nav a.done i { border-color: var(--acc); }
.rail-nav a.on i { background: var(--acc); width: 9px; height: 9px; }
.rail-nav a span { position: absolute; left: 22px; white-space: nowrap; font: 11px var(--mono); color: var(--mute); opacity: 0; transform: translateX(-4px); transition: .2s; pointer-events: none; }
.rail-nav a:hover span, .rail-nav a.on span { opacity: 1; transform: none; }
/* 窄屏没有侧边留白时，当前章节名会压到内容上：只在悬停时显示 */
@media (max-width: 1499px) { .rail-nav a.on span { opacity: 0; } }
/* 宽屏两侧有留白时，目录文字常显，不用悬停 / 点击 */
@media (min-width: 1500px) {
  .rail-nav a span { opacity: .55; transform: none; }
  .rail-nav a.done span { opacity: .42; }
  .rail-nav a.on span { opacity: 1; color: var(--fg); }
  .rail-nav a:hover span { opacity: 1; }
  body.past-hero .rail-nav a span { pointer-events: auto; }
}
@media (max-width: 1180px) { .rail-nav { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 680px; max-height: 1100px; overflow: hidden; }
#hero-canvas, .hero-ov { position: absolute; inset: 0; width: 100%; height: 100%; }
#hero-canvas { touch-action: pan-y; }
.hero-ov { pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, var(--bg) 0%, rgba(11, 12, 11, 0) 16%), linear-gradient(to right, rgba(11, 12, 11, .9) 0%, rgba(11, 12, 11, .5) 24%, transparent 42%); }
.hero-copy { position: absolute; z-index: 2; pointer-events: none; }
.hero-copy { left: clamp(20px, 5vw, 80px); top: 50%; transform: translateY(-48%); width: min(600px, 42vw); }
.eyebrow { font-size: 12px; letter-spacing: .22em; color: var(--acc); margin-bottom: 22px; }
.hero h1 { font-size: clamp(60px, 7vw, 120px); line-height: 1; letter-spacing: -.02em; font-weight: 700; }
.lede { margin-top: 26px; font-size: clamp(22px, 2.1vw, 34px); line-height: 1.45; font-weight: 500; letter-spacing: .01em; }
.hero .sub { margin-top: 16px; color: var(--mute); font-size: 14px; display: flex; flex-wrap: wrap; row-gap: 2px; }
.hero .sub span { white-space: nowrap; }
.hero .sub span + span::before { content: "·"; margin: 0 .9em; color: var(--dim); }
.hero-stats { margin-top: clamp(30px, 5vh, 52px); padding-top: 20px; border-top: 1px solid var(--line); display: inline-flex; gap: clamp(28px, 3.4vw, 52px); }
.hero-stats b { display: block; font-size: 30px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hero-stats span { font-size: 12px; color: var(--mute); }
/* 首屏底部：字幕 + 读数 + 仿 Houdini 节点链 */
.hero-cook { position: absolute; z-index: 3; left: 38.5%; right: clamp(20px, 2.5vw, 40px); bottom: clamp(22px, 3.6vh, 38px); font-size: 11px; color: var(--mute); pointer-events: none; }
.hero-bar { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 14px; }
.hero-cap { color: var(--fg); font-size: 12px; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.hero-cap b { color: var(--acc); font-weight: 500; margin-right: 10px; }
.hero-cap span { color: var(--mute); margin-left: 12px; font-family: var(--sans); letter-spacing: .02em; }
.hero-cap em { font-style: normal; color: var(--dim); margin-left: 14px; }
.hero-fig { white-space: nowrap; flex: none; }
.hero-fig b { color: var(--acc); font-weight: 500; margin-right: 10px; }
.hero-fig span { margin-left: 14px; }
.hero-fig i { font-style: normal; color: var(--fg); font-variant-numeric: tabular-nums; }
#hero-seed { pointer-events: auto; margin-left: 16px; font: inherit; color: var(--acc); background: var(--acc-soft); border: 1px solid rgba(255, 107, 26, .5); border-radius: 3px; padding: 4px 9px; cursor: pointer; transition: background .2s; }
#hero-seed:hover { background: rgba(255, 107, 26, .24); }
#hero-seed i { font-style: normal; color: var(--fg); }
.hero-chain { display: flex; align-items: center; }
.hero-chain li { position: relative; display: flex; align-items: center; flex: 1 1 0; }
.hero-chain li:last-child { flex: none; }
.hero-chain li:not(:last-child)::after { content: ""; flex: 1; height: 1px; margin: 0 6px; background: var(--line2); transition: background .4s; }
.hero-chain li.done:not(:last-child)::after { background: rgba(255, 107, 26, .55); }
.hero-chain button { pointer-events: auto; display: flex; align-items: center; gap: 7px; padding: 5px 9px; font: inherit; color: var(--dim); background: rgba(11, 12, 11, .6); border: 1px solid var(--line2); border-radius: 4px; cursor: pointer; white-space: nowrap; transition: color .3s, border-color .3s, box-shadow .3s; }
.hero-chain button i { width: 7px; height: 7px; border: 1.5px solid currentColor; transform: rotate(45deg); transition: background .3s; }
.hero-chain b { font-weight: 500; letter-spacing: .08em; }
.hero-chain em { font-style: normal; font-size: 10px; color: var(--dim); font-variant-numeric: tabular-nums; }
.hero-chain li.done button { color: var(--fg); border-color: rgba(236, 235, 229, .3); }
.hero-chain li.done button i { background: var(--acc); border-color: var(--acc); }
.hero-chain li.on button { color: var(--acc); border-color: var(--acc); box-shadow: 0 0 16px rgba(255, 107, 26, .35); }
.hero-chain li.on button i { animation: blink .4s steps(2) infinite; }
.hero-chain button:hover { border-color: var(--acc); }
.hero-chain .tip { position: absolute; left: 0; bottom: calc(100% + 12px); width: 250px; padding: 10px 12px; background: rgba(18, 20, 18, .95); border: 1px solid var(--line2); border-radius: 6px; font: 12px/1.6 var(--sans); color: var(--fg); opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; pointer-events: none; }
.hero-chain .tip::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
.hero-chain .tip a { display: inline-block; margin-top: 6px; color: var(--acc); font: 11px var(--mono); }
.hero-chain li:nth-last-child(-n+2) .tip { left: auto; right: 0; }
.hero-chain li:hover .tip, .hero-chain li:focus-within .tip { opacity: 1; transform: none; pointer-events: auto; }
.hero-nogl .hero-cook { display: none; }
.scroll-cue { position: absolute; z-index: 2; left: clamp(20px, 5vw, 80px); bottom: 22px; font: 10px var(--mono); letter-spacing: .3em; color: var(--dim); }
.scroll-cue::after { content: ""; display: block; width: 1px; height: 26px; margin: 8px auto 0; background: linear-gradient(var(--acc), transparent); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 900px), (max-aspect-ratio: 23/20) {
  .hero::after { background: linear-gradient(to top, var(--bg) 0%, rgba(11, 12, 11, .85) 40%, transparent 56%); }
  .hero-copy { top: auto; bottom: 36px; transform: none; right: 20px; width: auto; }
  .hero-cook { left: 20px; right: 20px; top: 74px; bottom: auto; }
  .hero-chain, .hero-fig span, .hero-fig b, .hero-cap em, .scroll-cue { display: none; }
  .hero-bar { margin: 0; }
  .hero-fig { font-size: 0; }
  #hero-seed { font-size: 11px; margin: 0; }
  .hero-stats b { font-size: 24px; }
  .eyebrow { letter-spacing: .1em; font-size: 11px; margin-bottom: 14px; }
}
@media (max-width: 700px) {
  .nav nav { display: none; }
}

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; }
.marquee div { display: flex; gap: 48px; width: max-content; animation: slide 46s linear infinite; font-size: clamp(26px, 3.6vw, 52px); font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.marquee span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px var(--line2); }
.marquee em { font-style: normal; color: var(--acc); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section, .case { position: relative; }
.block { padding: clamp(72px, 9vw, 130px) 0; }
.sec-head { display: grid; grid-template-columns: 90px 1fr; gap: 0 24px; align-items: baseline; margin-bottom: clamp(40px, 5vw, 72px); }
.sec-head .idx { color: var(--acc); font-size: 13px; }
.sec-head h2 { font-size: clamp(40px, 5.6vw, 84px); line-height: 1; letter-spacing: -.035em; font-weight: 800; }
.sec-head p { grid-column: 2; margin-top: 18px; color: var(--mute); max-width: 680px; font-size: 17px; }
@media (max-width: 700px) { .sec-head { grid-template-columns: 1fr; } .sec-head p { grid-column: 1; } }

/* ---------- figures ---------- */
.fig { position: relative; }
.fig .media { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #050505; }
.fig .media img, .fig .media video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.fig .media img.zoom { cursor: zoom-in; }
.fig.contain .media img { object-fit: contain; padding: 4% 3%; }
/* 录屏底部常有 Windows 任务栏：只裁画面，控制条仍留在盒子底边 */
.fig.trim .media { aspect-ratio: 16 / 8.55; }
.fig.trim .media video { object-position: 50% 0; }
.fig:hover .media img.zoom { transform: scale(1.025); }
.fig figcaption { margin-top: 10px; font: 12px/1.6 var(--mono); color: var(--mute); }
.fig figcaption b { color: var(--acc); font-weight: 500; margin-right: 8px; }
.r169 .media { aspect-ratio: 16 / 9; }
.r21 .media { aspect-ratio: 21 / 9; }
.r43 .media { aspect-ratio: 4 / 3; }
.r32 .media { aspect-ratio: 3 / 2; }
.grid { display: grid; gap: clamp(14px, 1.6vw, 24px); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.span2 { grid-column: span 2; }
.span3 { grid-column: 1 / -1; }
.gap-top { margin-top: clamp(14px, 1.6vw, 24px); }
/* 紧凑图组：缩小间距和说明字号 */
.grid.tight { gap: 10px; }
.grid.tight .fig figcaption { margin-top: 7px; font-size: 11px; }
.grid.tight .fig figcaption b { margin-right: 6px; }
.mt { margin-top: clamp(48px, 6vw, 96px); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } .span2 { grid-column: auto; } }

/* ---------- case ---------- */
.case { padding: clamp(100px, 13vw, 190px) 0 clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); }
.case-head { display: grid; grid-template-columns: auto 1fr; gap: 0 clamp(20px, 3vw, 48px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.case-no { font-size: clamp(120px, 17vw, 260px); line-height: .78; font-weight: 800; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.2px var(--line2); user-select: none; }
.kicker { font-size: 12px; letter-spacing: .2em; color: var(--acc); }
.case h2 { font-size: clamp(38px, 5vw, 76px); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; margin: 10px 0 16px; }
.case-lede { font-size: clamp(17px, 1.5vw, 21px); color: #cfcec8; max-width: 760px; }
.case-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0; margin-top: 34px; border-block: 1px solid var(--line); }
.case-meta div { padding: 12px 28px 12px 0; margin-right: 28px; border-right: 1px solid var(--line); }
.case-meta div:last-child { border-right: 0; }
.case-meta dt { font-size: 11px; color: var(--dim); letter-spacing: .14em; }
.case-meta dd { font-size: 13px; color: var(--fg); }
@media (max-width: 700px) { .case-head { grid-template-columns: 1fr; } .case-no { font-size: 110px; } }

.case-hero { max-width: 1680px; margin: 0 auto clamp(60px, 7vw, 110px); padding: 0 clamp(12px, 2vw, 32px); }
.case-hero .media { aspect-ratio: 2.1 / 1; border-radius: 8px; }
.case-hero .media img { clip-path: inset(6% 6% 6% 6% round 8px); transform: scale(1.08); transition: clip-path 1.4s var(--ease), transform 1.8s var(--ease); }
.case-hero.in .media img { clip-path: inset(0 0 0 0 round 0); transform: scale(1); }

.pdr { display: grid; grid-template-columns: 1fr 1fr 1.35fr; gap: 0; border-top: 1px solid var(--line); }
.pdr > div { padding: 28px 28px 28px 0; }
.pdr > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.pdr h3 { font: 500 12px var(--mono); letter-spacing: .16em; color: var(--acc); margin-bottom: 14px; }
.pdr p, .pdr li { font-size: 15px; color: #cfcec8; }
.pdr li { position: relative; padding-left: 18px; margin-bottom: 10px; }
.pdr li::before { content: ""; position: absolute; left: 0; top: .75em; width: 6px; height: 1px; background: var(--acc); }
.pdr ol { counter-reset: s; }
.pdr ol li { padding-left: 30px; }
.pdr ol li::before { counter-increment: s; content: counter(s, decimal-leading-zero); width: auto; height: auto; background: none; top: .15em; font: 12px var(--mono); color: var(--acc); }
.pdr li b { color: var(--fg); }
@media (max-width: 900px) { .pdr { grid-template-columns: 1fr; } .pdr > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

.sub-h { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; }
.sub-h h3 { font-size: clamp(22px, 2vw, 30px); letter-spacing: -.02em; }
.sub-h span { font: 12px var(--mono); color: var(--dim); }

/* diagram */
.diagram { border: 1px solid var(--line); border-radius: 6px; background: radial-gradient(circle at 1px 1px, rgba(236, 235, 229, .07) 1px, transparent 0) 0 0 / 22px 22px, #0d0e0d; padding: 24px; overflow-x: auto; }
.diagram svg { min-width: 860px; width: 100%; height: auto; }
.diagram .n rect { fill: #121412; stroke: var(--line2); }
.diagram .n.hot rect { stroke: var(--acc); fill: rgba(255, 107, 26, .1); }
.diagram .n text { fill: var(--fg); font: 600 14px var(--sans); }
.diagram .n text.s { fill: var(--mute); font: 11px var(--mono); }
.diagram .e { fill: none; stroke: rgba(236, 235, 229, .3); stroke-width: 1.2; }
.diagram .e.flow { stroke: var(--acc); stroke-dasharray: 4 6; animation: flow 1.6s linear infinite; }
.diagram .lbl { fill: var(--dim); font: 11px var(--mono); }
@keyframes flow { to { stroke-dashoffset: -20; } }

/* chips pipeline */
.chips { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; }
.chips li { position: relative; flex: 1 1 150px; padding: 16px 30px 16px 18px; border: 1px solid var(--line); background: var(--bg2); margin-right: -1px; margin-bottom: -1px; }
.chips li .mono { display: block; font-size: 11px; color: var(--acc); margin-bottom: 4px; }
.chips li b { display: block; font-size: 15px; }
.chips li small { display: block; color: var(--mute); font-size: 12.5px; margin-top: 4px; line-height: 1.5; }
.chips li::after { content: "→"; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--dim); font-family: var(--mono); }
.chips li:last-child::after { content: ""; }
.chips li.mine { border-color: var(--acc); background: var(--acc-soft); z-index: 1; }

/* decision cards */
.decide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.decide > div { position: relative; padding: 22px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg2); }
.decide .tag { font: 11px var(--mono); color: var(--dim); }
.decide h4 { font-size: 17px; margin: 6px 0 8px; }
.decide p { font-size: 14px; color: var(--mute); }
.decide .x, .decide .ok { position: absolute; top: 18px; right: 18px; font: 600 12px var(--mono); }
.decide .x { color: var(--dim); }
.decide .chosen { border-color: var(--acc); background: linear-gradient(180deg, rgba(255, 107, 26, .12), transparent 70%), var(--bg2); }
.decide .ok { color: var(--acc); }
@media (max-width: 800px) { .decide { grid-template-columns: 1fr; } }

/* counters */
.bignums { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.bignums > div { padding: 28px 0 26px; }
.bignums > div + div { padding-left: 32px; border-left: 1px solid var(--line); }
.bignums b { display: block; font-size: clamp(64px, 9vw, 140px); font-weight: 800; line-height: .9; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.bignums > div:last-child b { color: var(--acc); }
.bignums span { font: 12px var(--mono); color: var(--mute); }
@media (max-width: 620px) { .bignums { grid-template-columns: 1fr; } .bignums > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

/* bars */
.bars li { display: grid; grid-template-columns: 230px 1fr 90px; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.bars li:first-child { border-top: 1px solid var(--line); }
.bars .name b { display: block; font-size: 16px; }
.bars .name small { font: 11px var(--mono); color: var(--dim); white-space: nowrap; }
.bars .track { position: relative; height: 34px; background: rgba(255, 255, 255, .03); }
.bars .fill { position: absolute; inset: 0 auto 0 0; width: 0; background: rgba(236, 235, 229, .16); border-right: 2px solid var(--fg); transition: width 1.6s var(--ease); }
.bars.in .fill { width: max(3px, calc(var(--v) / var(--max, 220) * 100%)); }
.bars .note { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 12.5px; color: #cfcec8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 24px); }
.bars .val { font: 700 24px var(--mono); text-align: right; }
.bars .val small { font-size: 12px; color: var(--mute); font-weight: 400; }
.bars li.best .fill { background: rgba(255, 107, 26, .3); border-color: var(--acc); }
.bars li.best .val { color: var(--acc); }
@media (max-width: 700px) { .bars li { grid-template-columns: 1fr 70px; } .bars .track { grid-column: 1 / -1; grid-row: 2; } .bars .note { position: static; transform: none; display: block; padding: 6px 0 0; white-space: normal; } }

/* compare */
.compare { position: relative; width: 100%; height: 100%; user-select: none; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare img.after { clip-path: inset(0 0 0 var(--pos)); }
.compare .cmp-bar { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--acc); pointer-events: none; }
.compare .cmp-bar::after { content: "⇆"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--acc); color: #000; font-size: 16px; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; }
.compare .cmp-l, .compare .cmp-r { position: absolute; top: 14px; font-size: 11px; padding: 3px 8px; background: rgba(0, 0, 0, .6); border: 1px solid var(--line2); pointer-events: none; }
.compare .cmp-l { left: 14px; } .compare .cmp-r { right: 14px; color: var(--acc); }

/* steps (lab) */
.lab { background: linear-gradient(180deg, var(--bg) 0%, #0f110f 30%, #0f110f 70%, var(--bg) 100%); }
.lab-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.steps li { display: grid; grid-template-columns: 44px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line); }
.steps li:first-child { border-top: 1px solid var(--line); }
.steps .mono { color: var(--acc); font-size: 12px; padding-top: 3px; }
.steps b { display: block; font-size: 16px; }
.steps small { display: block; color: var(--mute); font-size: 13.5px; margin-top: 2px; }
.json { margin-top: 24px; font: 12px/1.7 var(--mono); color: var(--mute); background: #070807; border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px; white-space: pre; overflow-x: auto; }
.json .k { color: #cfcec8; } .json .s { color: var(--acc); } .json .n { color: #9fd3c7; }
.side-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.side-cards > div { padding: 20px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg2); }
.side-cards .mono { font-size: 11px; color: var(--acc); }
.side-cards b { display: block; font-size: 16px; margin: 6px 0; }
.side-cards p { font-size: 13.5px; color: var(--mute); }
@media (max-width: 900px) { .lab-grid, .side-cards { grid-template-columns: 1fr; } }

/* AI 板块内的分节 */
.part-head { display: grid; grid-template-columns: 90px 1fr; gap: 0 24px; align-items: baseline; margin: clamp(90px, 10vw, 150px) 0 clamp(32px, 4vw, 52px); padding-top: 32px; border-top: 1px solid var(--line); }
.part-head.first { margin-top: 0; padding-top: 0; border-top: 0; }
.part-head > .mono { color: var(--acc); font-size: 13px; }
.part-head h3 { font-size: clamp(30px, 3.6vw, 54px); line-height: 1.08; letter-spacing: -.03em; font-weight: 800; }
.part-head p { margin-top: 12px; color: var(--mute); font-size: 17px; max-width: 760px; }
.part-head .part-lede { margin-top: 18px; font-size: 15px; line-height: 1.85; color: #b8b7b1; max-width: 720px; }
.side-cards.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .part-head { grid-template-columns: 1fr; } .side-cards.two { grid-template-columns: 1fr; } }

/* 01 生态：图文分栏 / 等高图片行 / 参考 */
.part-head { scroll-margin-top: 80px; }
.side-cards > a { padding: 20px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg2); transition: border-color .2s, background .2s; }
.side-cards > a:hover { border-color: var(--acc); background: linear-gradient(180deg, rgba(255, 107, 26, .1), transparent 80%), var(--bg2); }
.mask-row, .layer { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(20px, 3vw, 48px); align-items: start; padding: clamp(24px, 3vw, 40px) 0; border-top: 1px solid var(--line); }
.layer { grid-template-columns: minmax(240px, 300px) 1fr; }
.mask-txt > .mono { font-size: 11px; letter-spacing: .14em; color: var(--acc); }
.mask-txt h4 { font-size: clamp(22px, 2vw, 28px); line-height: 1.25; letter-spacing: -.02em; margin: 6px 0 12px; }
.mask-txt p, .mask-txt li { font-size: 15px; color: #cfcec8; }
.mask-txt ul { margin: 6px 0 14px; }
.mask-txt li { position: relative; padding-left: 18px; margin-bottom: 6px; }
.mask-txt li::before { content: ""; position: absolute; left: 0; top: .75em; width: 6px; height: 1px; background: var(--acc); }
.mask-txt li b { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.mask-txt .aside { margin-top: 14px; padding: 10px 14px; border-left: 2px solid var(--acc); background: var(--acc-soft); font-size: 14px; }
.mask-txt .fig { margin-top: 20px; }
.fit { display: flex; gap: clamp(10px, 1.2vw, 16px); align-items: flex-start; }
.fit > * { flex: var(--ar) 1 0; min-width: 0; }
.fit .media { aspect-ratio: var(--ar); }
.ref { margin-top: 28px; font-size: 13px; color: var(--mute); }
.ref .mono { font-size: 11px; color: var(--acc); margin-right: 10px; }
.ref a { color: #cfcec8; border-bottom: 1px solid var(--line2); transition: .2s; }
.ref a:hover { color: var(--acc); border-color: var(--acc); }
@media (max-width: 900px) { .mask-row, .layer { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .fit { flex-direction: column; } .fit > * { width: 100%; } }

/* 地形遮罩：两列 + 扫描透镜 */
@property --sweep { syntax: "<percentage>"; inherits: true; initial-value: 0%; }
@property --r { syntax: "<length>"; inherits: true; initial-value: 0px; }
.masks { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(36px, 4vw, 64px) clamp(20px, 2.4vw, 36px); align-items: start; }
.mask-view { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #050505; cursor: crosshair; --x: 50%; --y: 50%; transition: --r .5s var(--ease); }
.mask-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mask-view .base { filter: grayscale(1) brightness(.62) contrast(1.15); pointer-events: none; }
.mask-view .top { cursor: crosshair; -webkit-mask: linear-gradient(90deg, #000 var(--sweep), transparent calc(var(--sweep) + .5%)); mask: linear-gradient(90deg, #000 var(--sweep), transparent calc(var(--sweep) + .5%)); }
.mask-view.lens .top { -webkit-mask: radial-gradient(circle var(--r) at var(--x) var(--y), #000 97%, transparent 100%); mask: radial-gradient(circle var(--r) at var(--x) var(--y), #000 97%, transparent 100%); }
.mask-card.in .mask-view { --sweep: 100%; animation: sweep 1.8s var(--ease) .15s backwards; }
@keyframes sweep { from { --sweep: 0%; } }
.mask-view .scan { position: absolute; top: 0; bottom: 0; left: var(--sweep); width: 2px; margin-left: -1px; background: var(--acc); box-shadow: 0 0 18px 2px var(--acc); opacity: 0; pointer-events: none; }
.mask-card.in .scan { animation: scanfade 1.8s var(--ease) .15s; }
@keyframes scanfade { 0%, 85% { opacity: 1; } 100% { opacity: 0; } }
.mask-view .ring { position: absolute; left: var(--x); top: var(--y); width: calc(var(--r) * 2); height: calc(var(--r) * 2); transform: translate(-50%, -50%); border: 1px solid var(--acc); border-radius: 50%; opacity: 0; pointer-events: none; transition: opacity .3s; }
.mask-view .ring::before, .mask-view .ring::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--acc); transform: translate(-50%, -50%); }
.mask-view .ring::before { width: 14px; height: 1px; } .mask-view .ring::after { width: 1px; height: 14px; }
.mask-view.lens .ring { opacity: 1; }
.mask-view .read, .mask-view .hint { position: absolute; font-size: 11px; padding: 3px 8px; pointer-events: none; }
.mask-view .read { left: 12px; top: 12px; color: var(--fg); background: rgba(0, 0, 0, .62); border: 1px solid var(--line2); font-variant-numeric: tabular-nums; }
.mask-view.lens .read { color: var(--acc); border-color: rgba(255, 107, 26, .6); }
.mask-view .hint { right: 10px; bottom: 10px; color: var(--mute); background: rgba(0, 0, 0, .5); transition: opacity .3s; }
.mask-view.lens .hint { opacity: 0; }
.mask-card .mask-txt { padding-top: 18px; }
.mask-card .mask-txt h4 { display: flex; align-items: baseline; gap: 12px; }
.mask-card .mask-txt h4 .mono { font-size: 12px; color: var(--acc); letter-spacing: .1em; font-weight: 500; }
/* Houdini 节点网络示意 */
.hnet-wrap { background: radial-gradient(circle at 1px 1px, rgba(236, 235, 229, .07) 1px, transparent 0) 0 0 / 18px 18px, #0d0e0d; }
.hnet { width: 100%; height: 100%; display: block; }
.hnet .bx { fill: rgba(236, 235, 229, .025); stroke: var(--line2); transition: stroke .25s, fill .25s; }
.hnet .box:hover .bx { stroke: var(--acc); fill: rgba(255, 107, 26, .05); }
.hnet .bk { fill: var(--acc); font: 12px var(--mono); }
.hnet .bt { fill: var(--fg); font: 700 15px var(--sans); }
.hnet .bg { fill: var(--dim); font: 10.5px var(--mono); letter-spacing: .12em; }
.hnet .n rect { fill: #1c1e1c; stroke: rgba(236, 235, 229, .4); }
.hnet .n .ic { fill: none; stroke: var(--mute); stroke-width: 1.4; }
.hnet .n text { fill: var(--mute); font: 13px var(--mono); transition: fill .2s; }
.hnet .n.w rect { fill: #2a2418; stroke: rgba(255, 190, 90, .55); }
.hnet .n.w .ic { stroke: #f2b45a; }
.hnet .n.hot rect { fill: rgba(255, 107, 26, .25); stroke: var(--acc); }
.hnet .n.hot text { fill: var(--fg); }
.hnet .n { cursor: help; }
.hnet .n:hover text { fill: var(--acc); }
.hnet .n.out rect { fill: rgba(255, 107, 26, .12); stroke: var(--acc); }
.hnet .n.out text { fill: var(--fg); font-weight: 600; }
.hnet .e { fill: none; stroke: rgba(150, 180, 220, .55); stroke-width: 1.3; }
.hnet .e.flow { stroke: var(--acc); stroke-dasharray: 4 6; animation: flow 1.6s linear infinite; }
.hnet .e.ref { stroke: rgba(236, 235, 229, .35); stroke-dasharray: 2 4; }
.hnet .lbl { fill: var(--dim); font: 11px var(--mono); }
@media (prefers-reduced-motion: reduce) { .hnet .e.flow { animation: none; } }
/* 结果 / 结论 */
.result > h3 { font-size: 12px; letter-spacing: .16em; color: var(--acc); font-weight: 500; margin-bottom: 4px; }
.bignums.sm b { font-size: clamp(36px, 4.2vw, 64px); letter-spacing: -.035em; }
.bignums.sm b small { font-size: .38em; margin-left: 4px; color: var(--mute); letter-spacing: 0; font-weight: 600; }
.bignums.sm > div:last-child b small { color: inherit; }
.bignums.sm span { display: block; margin-top: 10px; }
.decide-one { display: grid; grid-template-columns: 140px 1fr; gap: 20px; align-items: baseline; padding: 20px 24px; border: 1px solid var(--acc); border-radius: 6px; background: linear-gradient(90deg, rgba(255, 107, 26, .12), transparent 70%), var(--bg2); }
.decide-one .ok { color: var(--acc); font-size: 13px; font-weight: 600; }
.decide-one p { font-size: 15px; color: #cfcec8; }
@media (max-width: 700px) { .decide-one { grid-template-columns: 1fr; gap: 6px; } }
.g2 .bars li { grid-template-columns: 150px 1fr 76px; gap: 14px; }
.contact .copy { font: 13px var(--mono); padding: 10px 16px; border: 1px solid var(--line2); border-radius: 99px; background: none; color: inherit; cursor: copy; transition: .2s; }
.contact .copy:hover, .contact .copy.done { border-color: var(--acc); color: var(--acc); }
/* Pivot Painter 2 原理交互 */
.pp2 { display: grid; grid-template-columns: 1fr 330px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: radial-gradient(circle at 1px 1px, rgba(236, 235, 229, .06) 1px, transparent 0) 0 0 / 22px 22px, #0d0e0d; }
.pp2-stage { position: relative; min-height: 460px; }
.pp2-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: pan-y; }
.pp2-stage .read, .pp2-stage .hint { position: absolute; font-size: 11px; padding: 3px 8px; pointer-events: none; }
.pp2-stage .read { left: 12px; top: 12px; color: var(--fg); background: rgba(0, 0, 0, .62); border: 1px solid var(--line2); font-variant-numeric: tabular-nums; }
.pp2-stage .hint { right: 10px; bottom: 10px; color: var(--mute); background: rgba(0, 0, 0, .5); }
.pp2-side { display: flex; flex-direction: column; gap: 20px; padding: 22px; border-left: 1px solid var(--line); background: var(--bg2); }
.pp2-steps li { display: grid; grid-template-columns: 30px 1fr; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pp2-steps li:first-child { padding-top: 0; }
.pp2-steps .mono { color: var(--acc); font-size: 12px; padding-top: 2px; }
.pp2-steps b { display: block; font-size: 15px; }
.pp2-steps small { display: block; font-size: 12.5px; color: var(--mute); line-height: 1.55; margin-top: 2px; }
.pp2-tex { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pp2-tex .mono { display: block; font-size: 10px; color: var(--dim); letter-spacing: .08em; margin-bottom: 6px; }
.pp2-tex canvas { display: block; width: 100%; aspect-ratio: 1; border: 1px solid var(--line2); image-rendering: pixelated; cursor: crosshair; }
.pp2-ctl label { display: flex; align-items: center; gap: 12px; }
.pp2-ctl label .mono { font-size: 11px; color: var(--mute); }
.pp2-ctl input[type=range] { flex: 1; accent-color: var(--acc); }
.pp2-tg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pp2-tg button { font: 12px var(--mono); padding: 6px 11px; border: 1px solid var(--line2); border-radius: 99px; background: none; color: var(--mute); cursor: pointer; transition: .2s; }
.pp2-tg button[aria-pressed="true"] { color: var(--acc); border-color: rgba(255, 107, 26, .6); background: var(--acc-soft); }
@media (max-width: 960px) { .pp2 { grid-template-columns: 1fr; } .pp2-stage { min-height: 0; aspect-ratio: 4 / 3; } .pp2-side { border-left: 0; border-top: 1px solid var(--line); } }
.sec-lede { max-width: 820px; margin: -6px 0 26px; font-size: 16px; color: var(--mute); }
/* 工具墙分组 */
.wg + .wg { margin-top: clamp(30px, 3.2vw, 48px); }
/* 工具墙压缩：统一 16:9、缩小间距 */
.wg .grid { gap: 12px; }
.wg .tool { aspect-ratio: 16 / 9; }
.wg .gap-top { margin-top: 12px; }
/* 卡牌扇：默认一摞收在中间，鼠标靠近像发牌一样散开 */
.grid.strip { position: relative; height: 232px; }
.grid.strip > .tool {
  position: absolute; left: 50%; bottom: 30px; width: 240px; height: 172px;
  display: flex; flex-direction: column;
  border-radius: 8px; background: #0a0b0a; transform-origin: 50% 100%;
  transform: translateX(calc(-50% - 36px + var(--i) * 12px)) rotate(calc((var(--i) - 3) * 2deg));
  transition: transform .65s var(--ease), box-shadow .4s var(--ease), border-color .3s, opacity .3s;
}
.grid.strip > .tool:nth-child(1) { z-index: 1; }
.grid.strip > .tool:nth-child(2) { z-index: 2; }
.grid.strip > .tool:nth-child(3) { z-index: 3; }
.grid.strip > .tool:nth-child(4) { z-index: 4; }
.grid.strip > .tool:nth-child(5) { z-index: 5; }
.grid.strip > .tool:nth-child(6) { z-index: 6; }
.grid.strip > .tool:nth-child(7) { z-index: 7; }
.grid.strip > .tool img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 30%; background: #060706;
  filter: grayscale(.22) brightness(.92);
  transition: filter .5s;
}
.grid.strip > .tool .info {
  position: absolute; inset: auto 0 0 0; padding: 20px 10px 9px;
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .88));
  border: 0; opacity: 0; transition: opacity .35s .05s;
}
.grid.strip > .tool .tags { display: block; font-size: 8.5px; letter-spacing: .1em; opacity: .85; }
.grid.strip > .tool b { font-size: 12px; line-height: 1.35; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grid.strip > .tool p {
  position: absolute; left: 0; right: 0; bottom: 100%; margin: 0;
  padding: 26px 10px 10px; max-height: none;
  font-size: 10.5px; line-height: 1.5; color: #d9d8d2;
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .9) 45%);
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.grid.strip > .tool .no { font-size: 9px; top: 8px; left: 10px; letter-spacing: .08em; }
@media (hover: hover) {
  .grid.strip:hover > .tool {
    transform: translateX(calc(-50% - 465px + var(--i) * 155px)) rotate(calc((var(--i) - 3) * 0.5deg));
  }
  .grid.strip:hover > .tool .info { opacity: 1; }
  .grid.strip > .tool:hover { transform: translateX(calc(-50% - 465px + var(--i) * 155px)) translateY(-14px) rotate(0deg) scale(1.04); z-index: 20; border-color: rgba(255, 107, 26, .75); box-shadow: 0 24px 48px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 107, 26, .28); }
  .grid.strip > .tool:hover img { filter: none; }
  .grid.strip > .tool:hover p { opacity: 1; }
  .grid.strip > .tool::after { content: "↗"; position: absolute; top: 8px; right: 10px; z-index: 4; font: 12px var(--mono); color: var(--acc); opacity: 0; transform: translate(-4px, 4px); transition: .3s; pointer-events: none; }
  .grid.strip > .tool:hover::after { opacity: 1; transform: none; }
}
@media (hover: none), (max-width: 760px) {
  .grid.strip { height: auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .grid.strip > .tool { position: relative; left: auto; bottom: auto; width: auto; height: 170px; transform: none !important; }
  .grid.strip > .tool .info { opacity: 1; }
}
.wg .wg-head h3 { font-size: clamp(18px, 1.5vw, 22px); }
.wg-head { display: flex; align-items: baseline; gap: 14px; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.wg-head > .mono:first-child { color: var(--acc); font-size: 12px; }
.wg-head h3 { font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -.02em; }
.wg-head small { margin-left: auto; font-size: 11px; color: var(--dim); letter-spacing: .1em; }
.wg .g2 .tool { aspect-ratio: 16 / 9; }
.tool-feature { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: 14px; }
.tool-feature .tool { aspect-ratio: 16 / 9; }
.tool-feature .tf-main { grid-row: span 2; aspect-ratio: auto; }
.tool-feature .tf-main img:first-child { filter: none; }
.tool-feature .tf-main b { font-size: 24px; }
.tool-feature .tf-main p { max-height: none; max-width: 560px; font-size: 13.5px; }
@media (max-width: 760px) { .tool-feature { grid-template-columns: 1fr; } .tool-feature .tf-main { grid-row: auto; aspect-ratio: 16 / 9; } }
/* 未公开内容说明 */
.redact { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; padding: 22px 26px; border: 1px solid var(--line2); border-radius: 6px; background: repeating-linear-gradient(135deg, rgba(236, 235, 229, .035) 0 10px, transparent 10px 20px), var(--bg2); }
.redact > .mono { font-size: 11px; letter-spacing: .14em; color: var(--dim); }
.redact b { display: block; font-size: 17px; }
.redact p { font-size: 14px; color: var(--mute); margin-top: 4px; }
@media (max-width: 700px) { .redact { grid-template-columns: 1fr; gap: 8px; } }
.tool img.alt { opacity: 0; transition: opacity .5s, transform 1s var(--ease); }
.tool:hover img.alt { opacity: 1; }

/* 有视频的卡片：角标提示 + 悬停播放时裁掉录屏里的软件面板 / 任务栏 */
.tool.has-loop::after { content: "▶ 动态"; position: absolute; top: 10px; right: 12px; z-index: 4; font: 10px var(--mono); letter-spacing: .1em; color: rgba(236, 235, 229, .8); padding: 3px 8px; border: 1px solid rgba(236, 235, 229, .22); border-radius: 99px; background: rgba(6, 7, 7, .5); backdrop-filter: blur(4px); transition: opacity .3s; pointer-events: none; }
.tool.has-loop:hover::after { opacity: 0; }
.tool.has-loop:hover video { filter: none; }
.tf-main[data-loop] video { transform: scale(1.95); transform-origin: 50.6% 34%; }
@media (max-width: 760px) { .masks { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .mask-view { --sweep: 100%; } .mask-card.in .mask-view, .mask-card.in .scan { animation: none; } }

/* tool wall */
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); grid-auto-flow: dense; gap: 14px; }
.tool.big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.tool.big b { font-size: 22px; }
@media (max-width: 640px) { .tool.big { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; } }
.tool { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #050505; cursor: zoom-in; }
.tool img, .tool video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.55) brightness(.72); transition: filter .5s, transform 1s var(--ease); }
.tool.contain { background: #0b0b0b; }
.tool.contain img { object-fit: contain; padding: 0; filter: grayscale(.25) brightness(.92); }
.tool.contain:hover img { transform: none; }
.tool video { opacity: 0; transition: opacity .3s; }
.tool.has-loop:hover video { opacity: 1; }
/* 头图视频：内嵌播放器 + 可拖动进度条 */
.tf-player { cursor: default; }
.tf-player video { opacity: 1; filter: grayscale(.35) brightness(.86); }
.tf-player:hover video { filter: none; }
.tool.tf-player .info { padding-bottom: 62px; pointer-events: none; background: linear-gradient(transparent, rgba(0, 0, 0, .55) 34%, rgba(0, 0, 0, .93)); }
.vctrl { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; height: 40px; display: flex; align-items: center; gap: 12px; padding: 0 12px; background: linear-gradient(rgba(6, 7, 7, 0), rgba(6, 7, 7, .72) 38%); }
.vctrl button { flex: 0 0 auto; width: 24px; height: 24px; display: grid; place-items: center; font: 12px/1 var(--mono); color: #e9e7df; background: none; border: 0; padding: 0; cursor: pointer; opacity: .85; transition: .2s; }
.vctrl button:hover { opacity: 1; color: var(--acc); }
.vtime { flex: 0 0 auto; font: 11px var(--mono); color: rgba(236, 235, 229, .75); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.vtrack { position: relative; flex: 1 1 auto; height: 16px; cursor: pointer; touch-action: none; }
.vtrack::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 99px; background: rgba(236, 235, 229, .24); }
.vfill { position: absolute; left: 0; top: 50%; height: 3px; margin-top: -1.5px; width: 0; border-radius: 99px; background: var(--acc); }
.vknob { position: absolute; top: 50%; left: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 3px rgba(6, 7, 7, .55); transition: transform .15s; }
.vtrack:hover .vknob { transform: scale(1.15); }
@media (max-width: 760px) {
  .tool.tf-player .info { padding-bottom: 46px; }
  .tool.tf-player .info p { display: none; }
  .vctrl { height: 34px; gap: 8px; padding: 0 10px; }
  .vtime { font-size: 10px; }
}

/* 悬停播放时的进度线（贴在卡片底边） */
.tool .vid-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 4; background: var(--acc); transform: scaleX(0); transform-origin: 0 50%; opacity: 0; transition: opacity .3s, transform .25s linear; pointer-events: none; }
.tool.has-loop:hover .vid-bar { opacity: .95; }
.tool:hover img { filter: none; transform: scale(1.05); }
.tool .info { position: absolute; inset: auto 0 0 0; z-index: 3; padding: 26px 12px 9px; background: linear-gradient(transparent, rgba(0, 0, 0, .88)); }
.tool .tags { font: 10px var(--mono); color: var(--acc); letter-spacing: .08em; }
.tool b { display: block; font-size: 14px; margin-top: 1px; line-height: 1.35; }
.tool p { font-size: 12.5px; color: #c4c3bd; max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.tool:hover p { max-height: 80px; }
.tool .no { position: absolute; top: 12px; left: 14px; font: 11px var(--mono); color: rgba(236, 235, 229, .6); }

/* about */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 5vw, 80px); }
.about-grid .big { font-size: clamp(22px, 2.2vw, 32px); line-height: 1.5; font-weight: 600; letter-spacing: -.01em; }
.about-grid .big em { font-style: normal; color: var(--acc); }
.skills li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.skills li:first-child { border-top: 1px solid var(--line); }
.skills .mono { color: var(--acc); font-size: 12px; padding-top: 2px; }
.contact { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.contact a, .contact span { font: 13px var(--mono); padding: 10px 16px; border: 1px solid var(--line2); border-radius: 99px; transition: .2s; }
.contact a:hover { border-color: var(--acc); color: var(--acc); }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

/* 附录：上一份工作的述职报告（页面图片翻页浏览，不提供原文件） */
.appendix { padding: clamp(60px, 8vw, 110px) 0; }
.deck { max-width: 1120px; margin-left: 114px; user-select: none; -webkit-user-select: none; }
.deck img { -webkit-user-drag: none; }
.deck-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; border: 1px solid var(--line2); border-radius: 8px; }
.deck-stage img { display: block; width: 100%; height: 100%; object-fit: contain; }
.deck-stage:fullscreen { border: 0; border-radius: 0; }
.deck-nav { position: absolute; top: 50%; width: 44px; height: 44px; transform: translateY(-50%); border: 1px solid var(--line2); border-radius: 50%; background: rgba(11, 12, 11, .72); color: var(--fg); font-size: 22px; line-height: 1; cursor: pointer; opacity: 0; transition: .2s; }
.deck-prev { left: 14px; }
.deck-next { right: 14px; }
.deck-stage:hover .deck-nav, .deck-nav:focus-visible { opacity: 1; }
.deck-nav:hover { border-color: var(--acc); color: var(--acc); }
.deck-bar { display: flex; align-items: center; gap: 16px; margin-top: 12px; font-size: 12px; color: var(--mute); }
.deck-bar b { color: var(--fg); font-weight: 500; }
.deck-count { margin-left: auto; color: var(--fg); font-variant-numeric: tabular-nums; }
.deck-fs { font: inherit; color: var(--mute); background: none; border: 1px solid var(--line2); border-radius: 99px; padding: 6px 12px; cursor: pointer; transition: .2s; }
.deck-fs:hover { color: var(--acc); border-color: var(--acc); }
.deck-thumbs { display: flex; gap: 8px; margin-top: 14px; padding-bottom: 8px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: rgba(236, 235, 229, .22) transparent; }
.deck-thumbs button { flex: none; width: 112px; aspect-ratio: 16 / 9; padding: 0; overflow: hidden; background: #000; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; opacity: .5; transition: .2s; }
.deck-thumbs button:hover { opacity: .9; }
.deck-thumbs button.on { opacity: 1; border-color: var(--acc); }
.deck-thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .deck { margin-left: 0; } .deck-nav { opacity: 1; width: 36px; height: 36px; } .deck-bar > span:first-child { display: none; } }
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font: 12px var(--mono); color: var(--dim); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(5, 5, 5, .94); display: none; flex-direction: column; align-items: center; justify-content: center; padding: 4vh 4vw; cursor: zoom-out; }
.lb.open { display: flex; animation: fade .25s; }
.lb img, .lb video { max-width: 100%; max-height: 86vh; object-fit: contain; border: 1px solid var(--line); }
.lb video { display: none; cursor: auto; background: #000; }
/* 视频：用 object-fit 裁掉画面底部（Windows 任务栏），不用 clip-path——否则会把原生控制条和进度条一起切掉 */
.lb.is-video video { display: block; width: min(94vw, 1280px); aspect-ratio: 16 / 8.56; height: auto; max-height: 86vh; object-fit: cover; object-position: 50% 0; }
.lb.is-video img { display: none; }
.lb p { margin-top: 14px; font: 12px var(--mono); color: var(--mute); }
@keyframes fade { from { opacity: 0; } }

/* reveal */
.rv { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .marquee div, .diagram .e.flow { animation: none; }
  .case-hero .media img { clip-path: none; transform: none; }
}

/* 实时 Demo 卡：整行 16:9，页面内直接跑，点击放大（不跳页、不打开灯箱） */
.grid > .tool-live { aspect-ratio: 16 / 9; }
.wg-note { align-self: center; max-width: 54ch; padding: 0 4px; }
.wg-note .mono { display: block; font-size: 11px; letter-spacing: .16em; color: var(--acc); margin-bottom: 12px; }
.wg-note p { font-size: 13px; line-height: 1.8; color: var(--mute); }
@media (max-width: 760px) { .wg-note { margin-top: 4px; } }
.tool-live { cursor: pointer; }
.tool-live .no { color: var(--acc); letter-spacing: .12em; }
.tool-live:hover b { color: var(--acc); }
@media (max-width: 700px) { .tool-live { aspect-ratio: 4 / 3; } }

.tool-demo .live-stage { position: absolute; inset: 0; background: #050505; }
.tool-demo .live-stage img { transition: opacity .7s var(--ease); }
.tool-demo iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; pointer-events: none; opacity: 0; transition: opacity .9s var(--ease); background: #0a0c0b; }
.tool-demo.live-ready iframe { opacity: 1; }
.tool-demo.live-ready .live-stage img { opacity: 0; }
.tool-demo:hover .live-stage img { transform: none; }
.tool-demo .live-hint { position: absolute; top: 12px; right: 14px; z-index: 3; font: 11px var(--mono); letter-spacing: .04em; color: rgba(236, 235, 229, .82); padding: 4px 9px; border: 1px solid rgba(236, 235, 229, .22); border-radius: 99px; background: rgba(6, 7, 7, .5); backdrop-filter: blur(6px); transition: .25s; }
.tool-demo:hover .live-hint { color: var(--acc); border-color: var(--acc); }
.tool-demo .info { z-index: 2; pointer-events: none; }
.tool-demo .no { z-index: 3; }

/* 页面内放大的 Demo 覆盖层 */
.live-overlay { position: fixed; inset: 0; z-index: 300; display: none; background: rgba(4, 5, 5, .93); backdrop-filter: blur(8px); }
.live-overlay.open { display: block; animation: fade .22s; }
.live-shell { position: absolute; inset: 3.2vh 3vw; display: flex; flex-direction: column; border: 1px solid var(--line2); border-radius: 8px; overflow: hidden; background: #0a0c0b; box-shadow: 0 30px 90px rgba(0, 0, 0, .6); }
.live-bar { flex: 0 0 auto; display: flex; align-items: center; gap: 18px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #0d100f; }
.live-title { font-size: 13px; font-weight: 600; color: var(--fg); }
.live-tip { font: 11.5px var(--mono); color: var(--mute); }
.live-close { margin-left: auto; font: 11.5px var(--mono); color: var(--fg); padding: 6px 12px; border: 1px solid var(--line2); border-radius: 99px; background: transparent; cursor: pointer; transition: .2s; }
.live-close:hover { border-color: var(--acc); color: var(--acc); }
.live-shell iframe { flex: 1 1 auto; width: 100%; border: 0; display: block; background: #0a0c0b; }
@media (max-width: 760px) {
  .live-shell { inset: 0; border: 0; border-radius: 0; }
  .live-tip { display: none; }
  .live-bar { padding: 8px 12px; }
  /* 手机上描述文字会压掉大半画面，Demo 卡只留标题行 */
  .tool-demo p { display: none; }
}