/* 酷霜个人网站 · 第三版
   方向：编辑感的夜景。整页一层粒子，宋体大字，留白多，元素少而准。
   色彩：黑白为底，夜蓝点缀，红只用于特殊提示。所有元素都有入场、过渡、退场。 */
@font-face { font-family: "KS Display"; src: url("fonts/display.woff") format("woff"); font-weight: 900; font-display: swap; }
:root {
  --ease: cubic-bezier(.22, 1, .36, 1); --spring: cubic-bezier(.34, 1.56, .64, 1); --ease-in: cubic-bezier(.55, 0, 1, .45);
  --red: #ff5a5f; --radius: 22px;
  --sans: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "KS Display", "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
[data-theme="dark"] { color-scheme: dark; --bg: #06070a; --bg-2: #0c0e13; --panel: #101319; --line: #1f2430; --line-2: #2c3343; --ink: #f2f4f8; --ink-2: #bcc3d1; --muted: #7d879b; --accent: #8fa9ff; --accent-strong: #4f7dff; --glow: rgba(79, 125, 255, .22); --shadow: 0 30px 80px rgba(0, 0, 0, .5); --chip: #171b24; --particle: 225, 232, 255; --particle-accent: 120, 156, 255; }
[data-theme="light"] { color-scheme: light; --bg: #fbfbf9; --bg-2: #f2f3f0; --panel: #ffffff; --line: #e4e5e0; --line-2: #d3d5ce; --ink: #0d0f14; --ink-2: #3a3f4b; --muted: #6f7480; --accent: #2a55d4; --accent-strong: #2a55d4; --glow: rgba(42, 85, 212, .12); --shadow: 0 30px 70px rgba(20, 24, 40, .1); --chip: #eeefea; --particle: 22, 28, 48; --particle-accent: 42, 85, 212; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.8; overflow-x: hidden; -webkit-font-smoothing: antialiased; transition: background-color .6s var(--ease), color .6s var(--ease); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
h1, h2, h3, p { margin: 0; }
p { text-wrap: pretty; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent-strong); color: #fff; }
:where(a, button):focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 10px; }
.serif { font-family: var(--serif); font-weight: 900; letter-spacing: -.01em; }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.shell { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 300; padding: 10px 14px; border-radius: 10px; background: var(--panel); }
.skip-link:focus { top: 12px; }
.scroll-progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 200; background: var(--accent-strong); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); pointer-events: none; }
#field { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
main, .site-footer { position: relative; z-index: 1; }

/* 光标跟随（仅鼠标设备） */
.cursor { position: fixed; left: 0; top: 0; z-index: 500; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cursor span { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 999px; background: var(--ink); display: grid; place-items: center; color: var(--bg); font-size: 12px; font-weight: 700; white-space: nowrap; transition: width .45s var(--spring), height .45s var(--spring), left .45s var(--spring), top .45s var(--spring), background .3s; }
.cursor.on { opacity: 1; }
.cursor.big span { width: 76px; height: 76px; left: -38px; top: -38px; }
.cursor.big span::after { content: attr(data-label); }
.cursor.hide span { width: 0; height: 0; left: 0; top: 0; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* 微交互 */
.press { transition: transform .35s var(--spring), background-color .3s, color .3s, border-color .3s, box-shadow .3s var(--ease); }
@media (hover: hover) { .press:hover { transform: scale(1.05); } }
.press:active { transform: scale(.94) !important; transition-duration: .12s; }
.magnetic { transform: translate(var(--mx, 0px), var(--my, 0px)); transition: transform .5s var(--spring), background-color .3s, color .3s, border-color .3s, background-size .5s var(--ease); }
@media (hover: hover) { .press.magnetic:hover { transform: translate(var(--mx, 0px), var(--my, 0px)) scale(1.05); } }
.press.magnetic:active { transform: translate(var(--mx, 0px), var(--my, 0px)) scale(.94) !important; }
.cursor.press span { width: 8px; height: 8px; left: -4px; top: -4px; }
.cursor.big.press span { width: 64px; height: 64px; left: -32px; top: -32px; }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 26px; border-radius: 999px; font-weight: 650; font-size: 15px; white-space: nowrap; }
.btn .ic { transition: transform .45s var(--spring); }
.btn:hover .ic { transform: translateX(3px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { box-shadow: 0 14px 40px var(--glow); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); background: color-mix(in srgb, var(--bg) 60%, transparent); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--ink); }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--ink-2); }
.icon-btn:hover { color: var(--ink); border-color: var(--ink); }
.icon-btn[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.icon-btn .ic { width: 16px; height: 16px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; padding-bottom: 4px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease), color .3s, transform .5s var(--spring); }
.link-arrow:hover { background-size: 100% 1px; color: var(--accent); }
.link-arrow .ic { transition: transform .45s var(--spring); }
.link-arrow:hover .ic { transform: translateX(4px); }

/* 导航 */
.site-header { position: fixed; z-index: 100; top: 16px; left: 50%; transform: translateX(-50%); width: min(1280px, calc(100% - 40px)); height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 8px 0 10px; border-radius: 999px; border: 1px solid transparent; transition: background-color .45s var(--ease), border-color .45s, width .5s var(--ease), box-shadow .45s; }
.site-header.scrolled { width: min(760px, calc(100% - 24px)); background: color-mix(in srgb, var(--bg) 70%, transparent); border-color: var(--line); box-shadow: var(--shadow); backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-2); }
.brand-name { font-size: 20px; }
.site-nav { position: relative; display: flex; gap: 2px; font-size: 14px; font-weight: 600; color: var(--muted); }
.site-nav a { position: relative; z-index: 1; padding: 8px 16px; border-radius: 999px; transition: color .3s; }
.site-nav a:hover, .site-nav a.active { color: var(--ink); }
.nav-ink { position: absolute; z-index: 0; top: 0; left: 0; height: 100%; width: 0; border-radius: 999px; background: var(--chip); opacity: 0; transition: transform .55s var(--spring), width .55s var(--spring), opacity .3s; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle, .menu-toggle { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; overflow: hidden; background: color-mix(in srgb, var(--bg) 60%, transparent); }
.theme-toggle .ic { position: absolute; transition: transform .6s var(--spring), opacity .4s; }
[data-theme="dark"] .theme-toggle .ic-sun, [data-theme="light"] .theme-toggle .ic-moon { opacity: 1; transform: none; }
[data-theme="dark"] .theme-toggle .ic-moon { opacity: 0; transform: rotate(-90deg) scale(.4) translateY(14px); }
[data-theme="light"] .theme-toggle .ic-sun { opacity: 0; transform: rotate(90deg) scale(.4) translateY(14px); }
.menu-toggle { display: none; }
.menu-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .45s var(--ease), top .45s var(--ease); }
.menu-toggle span:first-child { top: 17px; } .menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.motion .site-header[data-enter] { animation: drop 1s .5s var(--ease) both; }
@keyframes drop { from { opacity: 0; transform: translate(-50%, -24px); } }

/* 滚动显现：进入 / 离开视口 */
.motion [data-reveal] { opacity: 0; transform: translateY(34px); filter: blur(8px); transition: opacity .9s var(--ease), transform 1s var(--ease), filter .9s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.motion [data-reveal].in { opacity: 1; transform: none; filter: none; }
.motion [data-reveal].out-up { transform: translateY(-24px); }

/* 首屏：满屏剪影 + 大字 */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: 120px 0 64px; }
.hero-inner { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }
.hero-role { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); letter-spacing: .04em; }
.hero-role i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.hero-name { font-size: clamp(120px, 23vw, 340px); line-height: .9; margin: 14px 0 0 -.04em; letter-spacing: -.04em; }
.split .ch { display: inline-block; }
.motion .split .ch { opacity: 0; transform: translateY(.35em) scale(.96); filter: blur(18px); animation: ch-in 1.4s var(--ease) forwards; animation-delay: calc(var(--i) * 140ms + 200ms); }
@keyframes ch-in { to { opacity: 1; transform: none; filter: none; } }
.hero-tag { font-size: clamp(28px, 3.4vw, 48px); line-height: 1.25; margin-top: clamp(24px, 3vw, 44px); color: var(--ink-2); }
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-lead { max-width: 460px; color: var(--ink-2); font-size: 16px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-hint { position: absolute; right: max(48px, calc((100% - 1240px) / 2)); top: 50%; display: flex; flex-direction: column; align-items: flex-end; gap: 16px; font-size: 12px; color: var(--muted); letter-spacing: .1em; writing-mode: vertical-rl; transform: translateY(-50%); }
.scroll-line { position: relative; width: 1px; height: 80px; background: var(--line-2); overflow: hidden; }
.scroll-line i { position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--ink); }
.motion .scroll-line i { animation: scroll-line 2.2s var(--ease) infinite; }
@keyframes scroll-line { from { transform: translateY(-100%); } to { transform: translateY(250%); } }

/* 滚动字带 */
.marquee { position: relative; z-index: 1; overflow: hidden; border-block: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(8px); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; }
.motion .marquee-track { animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee span { display: inline-flex; align-items: center; gap: 40px; padding: 22px 0 22px 40px; font-family: var(--serif); font-weight: 900; font-size: 26px; color: var(--ink-2); white-space: nowrap; }
.marquee span::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-strong); }

/* 区块标题 */
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--accent); margin-bottom: 18px; }
h2 { font-size: clamp(40px, 5.4vw, 76px); line-height: 1.1; }
.section-head { padding: 140px 0 40px; }
.split-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; padding-bottom: 48px; }
.split-head > p { max-width: 360px; color: var(--muted); font-size: 15px; }

/* 作品：案例故事，左侧浏览器框固定，右侧讲问题、做法、结果 */
.case { display: grid; grid-template-columns: 1.15fr .85fr; gap: 72px; padding: 60px 0 100px; }
.case + .case { border-top: 1px solid var(--line); }
.case-visual { position: relative; }
.frame { position: sticky; top: 110px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--panel); overflow: hidden; box-shadow: var(--shadow); transform: perspective(1400px) rotateX(var(--tilt, 0deg)); transition: transform .3s linear, box-shadow .5s; }
.frame-bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.frame-bar span { margin-left: 12px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.frame-view { position: relative; height: min(560px, 62vh); overflow: hidden; background: var(--bg-2); }
.frame-view img { width: 100%; height: auto; transform: translateY(calc(var(--focus, 0) * -1 * var(--travel, 0px))); transition: transform 1.2s var(--ease); }
.case-text { display: flex; flex-direction: column; }
.case-head { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 34px; }
.case-no { font-size: 64px; line-height: .9; color: var(--accent); }
.case-title { font-size: clamp(30px, 3vw, 42px); line-height: 1.2; }
.case-meta { margin-top: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.case-step { position: relative; padding: 26px 0 26px 26px; border-left: 1px solid var(--line-2); min-height: 26vh; transition: border-color .5s; }
.case-step span { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--muted); margin-bottom: 10px; transition: color .5s; }
.case-step p { color: var(--muted); font-size: 17px; transition: color .5s; }
.case-step::before { content: ""; position: absolute; left: -4px; top: 30px; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); transition: background .5s, transform .5s var(--spring); }
.case-step.active { border-color: var(--accent-strong); }
.case-step.active::before { background: var(--accent-strong); transform: scale(1.6); }
.case-step.active span { color: var(--accent); }
.case-step.active p { color: var(--ink); }
.case-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; margin-top: 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 999px; background: var(--chip); color: var(--ink-2); border: 1px solid var(--line); }

/* 实验室 */
.lab { padding-bottom: 60px; }
.lab-grid { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto auto; gap: 20px; }
.lab-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); overflow: hidden; transition: border-color .4s, box-shadow .5s; }
.lab-card.l-big { grid-row: span 2; }
@media (hover: hover) { .lab-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); } }
.lab-stage { position: relative; flex: 1; min-height: 300px; background: var(--bg-2); overflow: hidden; touch-action: pan-y; }
.l-big .lab-stage { min-height: 520px; }
.lab-stage canvas { position: absolute; inset: 0; display: block; width: 100% !important; height: 100% !important; }
.motion .lab-stage canvas { animation: fade-in 1s var(--ease); }
@keyframes fade-in { from { opacity: 0; } }
.lab-stage .fallback[hidden] { display: none; }
.lab-stage .fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.lab-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 20px 22px 22px; border-top: 1px solid var(--line); }
.lab-no { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--accent); }
.lab-foot h3 { font-size: 22px; margin: 4px 0 2px; }
.lab-foot p { font-size: 14px; color: var(--muted); }
.lab-actions { display: flex; gap: 8px; flex: none; }
.lab-state { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-family: var(--mono); font-size: 11px; color: var(--muted); background: color-mix(in srgb, var(--panel) 80%, transparent); border: 1px solid var(--line); backdrop-filter: blur(6px); transition: opacity .6s var(--ease); }
.lab-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.lab-card.running .lab-state::before { background: var(--accent-strong); box-shadow: 0 0 0 4px var(--glow); }
.lab-card.running .lab-state { opacity: 0; }
.lab-card.running:hover .lab-state { opacity: 1; }
.lab-card.failed .lab-state::before { background: var(--red); }
.lab-credit { margin-top: 22px; font-size: 13px; color: var(--muted); }
.lab-credit a { color: var(--accent); margin-left: 6px; }

/* 关于 */
.about { padding: 160px 0 60px; }
.about-statement { font-size: clamp(32px, 4.2vw, 60px); line-height: 1.3; max-width: 1080px; }
.about-statement em { font-style: normal; color: var(--accent); }
.about-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 64px; margin-top: 70px; align-items: start; }
.about-photo { border-radius: 26px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 5; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.about-photo:hover img { transform: scale(1.05); }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 48px; }
.about-cols h3 { font-size: 26px; margin-bottom: 10px; }
.about-cols p { color: var(--ink-2); font-size: 15px; }
.about-links { display: flex; flex-wrap: wrap; gap: 24px; align-self: end; }

/* 联系 */
.contact { position: relative; padding: 180px 24px 140px; text-align: center; }
.contact-title { font-size: clamp(120px, 22vw, 320px); line-height: .95; letter-spacing: -.04em; }
.contact-lead { margin: 34px auto 0; color: var(--muted); font-size: 17px; }
.wechat-card { display: inline-flex; align-items: center; gap: 28px; margin-top: 44px; padding: 12px 12px 12px 30px; border-radius: 999px; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--panel) 80%, transparent); backdrop-filter: blur(10px); text-align: left; }
.wechat-card div span { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--muted); }
.wechat-card strong { font-size: 24px; font-family: var(--mono); }

.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 30px 0 44px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer-brand { font-size: 22px; color: var(--ink); }
.site-footer nav { display: flex; gap: 20px; }
.site-footer nav a:hover { color: var(--ink); }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 400; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 600; box-shadow: var(--shadow); opacity: 0; transform: translate(-50%, 24px) scale(.94); transition: opacity .3s var(--ease), transform .45s var(--spring); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* 主题切换：从按钮处圆形展开 */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
.theme-vt::view-transition-new(root) { animation: theme-reveal .75s var(--ease) both; }
@keyframes theme-reveal { from { clip-path: circle(0 at var(--tx, 90%) var(--ty, 5%)); } to { clip-path: circle(var(--tr, 150vmax) at var(--tx, 90%) var(--ty, 5%)); } }

/* 响应式 */
@media (max-width: 1024px) {
  .shell, .hero-inner { width: calc(100% - 56px); }
  .site-nav { position: fixed; top: 74px; left: 12px; right: 12px; flex-direction: column; gap: 0; padding: 10px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 18px; color: var(--ink); opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.97); transform-origin: top right; transition: opacity .3s var(--ease), transform .45s var(--ease), visibility 0s .45s; }
  .site-nav a { padding: 14px 16px; }
  .nav-ink { display: none; }
  .menu-open .site-nav { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .45s var(--ease), visibility 0s; }
  .menu-toggle { display: grid; }
  .site-header.scrolled { width: calc(100% - 24px); }
  .hero-hint { display: none; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .case { grid-template-columns: 1fr; gap: 36px; padding: 40px 0 80px; }
  .frame { position: relative; top: 0; }
  .frame-view { height: 420px; }
  .case-step { min-height: 0; }
  .lab-grid { grid-template-columns: 1fr; }
  .lab-card.l-big { grid-row: auto; }
  .l-big .lab-stage { min-height: 380px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { max-width: 360px; }
  .split-head { flex-direction: column; align-items: flex-start; gap: 18px; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .shell, .hero-inner { width: calc(100% - 36px); }
  .site-header { top: 8px; width: calc(100% - 16px); height: 58px; }
  .hero { padding-bottom: 40px; }
  .hero-name { font-size: 34vw; }
  .hero-tag { font-size: 28px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; height: 52px; padding: 0 18px; }
  .marquee span { font-size: 20px; padding: 16px 0 16px 28px; gap: 28px; }
  .section-head { padding-top: 100px; }
  .frame-view { height: 340px; }
  .case-no { font-size: 46px; }
  .case-step { padding: 18px 0 18px 20px; }
  .case-step p { font-size: 15px; }
  .lab-stage { min-height: 260px; }
  .l-big .lab-stage { min-height: 320px; }
  .about { padding-top: 110px; }
  .about-cols { grid-template-columns: 1fr; gap: 28px; }
  .contact { padding: 120px 18px 100px; }
  .contact-title { font-size: 38vw; }
  .wechat-card { flex-direction: column; gap: 16px; border-radius: 26px; padding: 24px; text-align: center; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}
/* ===== 第四版新增特效 ===== */
/* 流体光标（React Bits Splash Cursor 原生移植）：首屏完整显示，往下滚动后变淡，不挡点击 */
.splash-cursor { position: fixed; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s var(--ease); }
.splash-cursor.on { opacity: 1; }
.splash-cursor.on.quiet { opacity: .35; }
.splash-cursor__canvas { display: block; width: 100%; height: 100%; }
[data-theme="light"] .splash-cursor.on { opacity: .8; }
[data-theme="light"] .splash-cursor.on.quiet { opacity: .25; }

/* 解码文字 */
.dc { transition: color .3s var(--ease), opacity .3s var(--ease); }
.dc.scr { color: var(--accent); opacity: .75; }
.kicker { cursor: default; }

/* 坐标：点阵地球 */
.base { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; margin-top: 120px; padding-top: 56px; border-top: 1px solid var(--line); }
.base-text h3 { font-size: clamp(40px, 5vw, 72px); line-height: 1.08; letter-spacing: -.02em; }
.base-text > p:last-child { margin-top: 24px; max-width: 400px; color: var(--ink-2); }
.globe-stage { position: relative; width: 100%; max-width: 620px; aspect-ratio: 1; justify-self: end; cursor: grab; touch-action: pan-y; }
.globe-stage.grabbing { cursor: grabbing; }
.globe-stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.motion .globe-stage canvas { animation: globe-in 1.6s var(--ease) both; }
@keyframes globe-in { from { opacity: 0; transform: scale(.82) rotate(-8deg); filter: blur(10px); } }
.globe-stage .fallback[hidden] { display: none; }
.globe-stage .fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.globe-label { position: absolute; left: 0; top: 0; pointer-events: none; display: inline-flex; align-items: center; gap: 8px; margin: -46px 0 0 14px; padding: 6px 12px 6px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--ink); background: color-mix(in srgb, var(--panel) 82%, transparent); border: 1px solid var(--line-2); backdrop-filter: blur(8px); transition: opacity .5s var(--ease), scale .5s var(--spring); }
.globe-label i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 25%, transparent); }
.globe-label.back { opacity: 0; scale: .8; }

/* 联系：可以拖动甩起来的吊牌名片（React Bits Lanyard 原生移植） */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 460px); align-items: center; gap: 24px; width: min(1240px, calc(100% - 96px)); margin-inline: auto; padding-inline: 0; }
.contact-main { order: 1; }
.contact .contact-title { font-size: clamp(120px, 17vw, 300px); }
.badge-stage { order: 2; position: relative; height: 680px; margin: -180px 0 0 -140px; align-self: start; cursor: grab; touch-action: pan-y; }
.badge-stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.motion .badge-stage canvas { animation: fade-in 1s var(--ease); }
.badge-hint { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--muted); opacity: 0; transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none; }
.badge-stage.ready .badge-hint { opacity: 1; }
.badge-stage.touched .badge-hint { opacity: 0; transform: translate(-50%, 8px); }
.badge-stage.failed { display: none; }
.lanyard { overflow: visible; }

@media (max-width: 980px) {
  .base { grid-template-columns: 1fr; gap: 24px; margin-top: 90px; }
  .globe-stage { justify-self: center; max-width: 520px; }
  .contact { grid-template-columns: 1fr; width: auto; padding-inline: 24px; }
  .contact-main { order: 2; }
  .badge-stage { order: 1; height: 440px; margin: -120px auto 0; width: min(100%, 360px); }
  .contact .contact-title { font-size: clamp(120px, 22vw, 320px); }
}
@media (max-width: 640px) {
  .contact { padding-inline: 18px; }
  .contact .contact-title { font-size: 38vw; }
  .badge-stage { height: 400px; margin-top: -90px; }
  .base { padding-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
