/* ============================================================
   张钦源 · 作品集 — 深海档案
   Design system: single typeface (Manrope), 8px spacing rhythm,
   base motion curve cubic-bezier(.22,1,.36,1), transform/opacity only.
   ============================================================ */

/* ---------- 0. tokens ---------- */
:root {
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --max: 1240px;
  --nav-h: 68px;
}

html[data-theme="deep"] {
  --bg: #01060f;
  --bg-2: #04101f;
  --bg-3: #071a2e;
  --ink: #eaf6ff;
  --ink-soft: #c3dcef;
  --muted: #7f9db8;
  --line: rgba(140, 210, 255, .14);
  --line-strong: rgba(140, 210, 255, .3);
  --glass: rgba(8, 24, 42, .58);
  --glass-2: rgba(10, 30, 52, .82);
  --aqua: #7dfff0;
  --cyan: #37d8ff;
  --blue: #1b7fe0;
  --violet: #a78bfa;
  --amber: #ffc98a;
  --coral: #ff9b7a;
  --glow: rgba(55, 216, 255, .5);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .9);
  --grain: .05;
  --orb-1: .5;
  --orb-2: .38;
  color-scheme: dark;
}

html[data-theme="shallow"] {
  --bg: #e9f7ff;
  --bg-2: #d9f0fe;
  --bg-3: #c6e8fb;
  --ink: #04233a;
  --ink-soft: #17405c;
  --muted: #4d7896;
  --line: rgba(4, 40, 66, .12);
  --line-strong: rgba(4, 40, 66, .26);
  --glass: rgba(255, 255, 255, .72);
  --glass-2: rgba(255, 255, 255, .9);
  --aqua: #0b9c96;
  --cyan: #0a8fd8;
  --blue: #0857b8;
  --violet: #6b4de0;
  --amber: #c97a12;
  --coral: #d9542f;
  --glow: rgba(10, 143, 216, .35);
  --shadow: 0 26px 60px -28px rgba(6, 50, 80, .34);
  --grain: .035;
  --orb-1: .34;
  --orb-2: .26;
  color-scheme: light;
}

/* ---------- 1. base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--aqua); color: #00131c; }

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 400;
  padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--aqua); color: #001318;
  font-size: 14px; font-weight: 700;
  transform: translateY(-200%); transition: transform .3s var(--ease);
}
.skip-link:focus-visible { transform: none; }

:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; border-radius: 6px; }

/* ---------- 2. 海洋氛围层 ---------- */
.ocean { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.ocean-orb {
  position: absolute; border-radius: 50%;
  filter: blur(70px);
  will-change: transform;
}
.orb-top {
  width: 56vw; height: 56vw; left: -14vw; top: -22vw;
  background: radial-gradient(circle at 40% 40%, rgba(55, 216, 255, .55), rgba(11, 110, 224, .18) 55%, transparent 70%);
  opacity: var(--orb-1);
  animation: drift-a 34s var(--ease-io) infinite alternate;
}
.orb-deep {
  width: 62vw; height: 62vw; right: -20vw; bottom: -26vw;
  background: radial-gradient(circle at 50% 50%, rgba(167, 139, 250, .42), rgba(90, 40, 200, .16) 55%, transparent 72%);
  opacity: var(--orb-2);
  animation: drift-b 42s var(--ease-io) infinite alternate;
}
@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(8vw, 6vh, 0) scale(1.15); }
}
@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.08); }
  to { transform: translate3d(-9vw, -5vh, 0) scale(.94); }
}

/* 光柱 */
.ocean-rays { position: absolute; inset: -20% 0 auto 0; height: 120%; opacity: .5; }
.ocean-rays i {
  position: absolute; top: 0; width: 16vw; height: 150%;
  background: linear-gradient(180deg, rgba(125, 255, 240, .22), rgba(55, 216, 255, .06) 45%, transparent 78%);
  filter: blur(18px);
  transform-origin: 50% 0;
  animation: ray-sway 18s var(--ease-io) infinite alternate;
}
.ocean-rays i:nth-child(1) { left: 4%; transform: rotate(9deg); animation-delay: -2s; }
.ocean-rays i:nth-child(2) { left: 27%; width: 9vw; transform: rotate(4deg); animation-delay: -7s; opacity: .7; }
.ocean-rays i:nth-child(3) { left: 58%; width: 12vw; transform: rotate(-6deg); animation-delay: -11s; }
.ocean-rays i:nth-child(4) { left: 80%; width: 7vw; transform: rotate(-11deg); animation-delay: -4s; opacity: .6; }
@keyframes ray-sway {
  from { opacity: .35; }
  to { opacity: .85; }
}

/* 水下焦散 */
.ocean-caustics {
  position: absolute; inset: -10%;
  background:
    repeating-radial-gradient(circle at 22% 18%, rgba(125, 255, 240, .09) 0 2px, transparent 2px 26px),
    repeating-radial-gradient(circle at 74% 62%, rgba(55, 216, 255, .07) 0 2px, transparent 2px 34px);
  mask-image: radial-gradient(120% 80% at 50% 10%, #000 0%, transparent 72%);
  opacity: .5;
  animation: caustic-drift 26s linear infinite;
}
@keyframes caustic-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-2%, 1.5%, 0) scale(1.04); }
  to   { transform: translate3d(0, 0, 0) scale(1); }
}

/* 气泡 */
.ocean-bubbles { position: absolute; inset: 0; }
.bub {
  position: absolute; bottom: -6vh;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .9), rgba(160, 240, 255, .28) 42%, rgba(90, 180, 230, .06) 70%);
  box-shadow: inset 0 0 6px rgba(255, 255, 255, .5), 0 0 12px rgba(90, 200, 240, .22);
  opacity: 0;
  animation: bub-rise linear infinite;
  will-change: transform, opacity;
}
@keyframes bub-rise {
  0%   { transform: translate3d(0, 0, 0) scale(.6); opacity: 0; }
  12%  { opacity: .8; }
  70%  { opacity: .55; }
  100% { transform: translate3d(var(--dx, 20px), -112vh, 0) scale(1.1); opacity: 0; }
}

.ocean-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 40%, transparent 40%, rgba(0, 3, 9, .55) 100%);
  opacity: .8;
}
html[data-theme="shallow"] .ocean-vignette {
  background: radial-gradient(120% 90% at 50% 30%, transparent 45%, rgba(120, 190, 230, .4) 100%);
  opacity: .6;
}

.ocean-grain {
  position: absolute; inset: 0; opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ---------- 3. 开场 ---------- */
.intro {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  background: radial-gradient(120% 90% at 50% 0%, #0a2b49 0%, #030c16 54%, #000205 100%);
  overflow: hidden;
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
}
.intro.done { opacity: 0; transform: scale(1.08); pointer-events: none; }

.intro-ghost {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -52%);
  font-size: clamp(110px, 23vw, 380px); font-weight: 800;
  letter-spacing: .02em; white-space: nowrap; pointer-events: none;
  color: transparent; -webkit-text-stroke: 1px rgba(125, 255, 240, .12);
  opacity: 0;
  animation: ghost-in 2.6s var(--ease) .15s forwards;
}
@keyframes ghost-in {
  from { opacity: 0; transform: translate(-50%, -46%) scale(.94); }
  to   { opacity: 1; transform: translate(-50%, -52%) scale(1); }
}

.intro-rays { position: absolute; inset: 0; }
.intro-rays i {
  position: absolute; top: -12%; height: 135%; width: 20vw;
  background: linear-gradient(180deg, rgba(125, 255, 240, .26), rgba(55, 216, 255, .06) 50%, transparent 76%);
  filter: blur(26px); transform-origin: 50% 0;
  animation: ray-sway 9s var(--ease-io) infinite alternate;
}
.intro-rays i:nth-child(1) { left: 4%; transform: rotate(13deg); }
.intro-rays i:nth-child(2) { left: 26%; width: 12vw; transform: rotate(5deg); animation-delay: -3s; }
.intro-rays i:nth-child(3) { left: 48%; width: 16vw; transform: rotate(-2deg); animation-delay: -6s; }
.intro-rays i:nth-child(4) { left: 68%; width: 10vw; transform: rotate(-9deg); animation-delay: -2s; }
.intro-rays i:nth-child(5) { left: 84%; width: 14vw; transform: rotate(-16deg); animation-delay: -7s; }

/* 水面上涨，把开场整个淹没 */
.intro-water {
  position: absolute; left: -12%; right: -12%; bottom: 0; height: 0; z-index: 6;
  background: linear-gradient(180deg, rgba(125, 255, 240, .5) 0%, #0d5578 12%, #062a45 42%, #01080f 92%);
  border-radius: 50% 50% 0 0 / 15vh 15vh 0 0;
  box-shadow: 0 -24px 90px rgba(125, 255, 240, .4), inset 0 3px 0 rgba(255, 255, 255, .55);
  transition: height 1.05s cubic-bezier(.65, 0, .35, 1);
  pointer-events: none;
}
.intro.flood .intro-water { height: 145%; }

.intro-center {
  position: relative; z-index: 3;
  display: flex; flex-direction: column; align-items: center;
  gap: 18px; padding: 0 24px; text-align: center;
  opacity: 0; transform: translateY(16px);
}
.intro.go .intro-center { animation: intro-in 1.1s var(--ease) forwards; }
@keyframes intro-in { to { opacity: 1; transform: none; } }

.intro-kicker {
  font-size: 12px; font-weight: 700; letter-spacing: .36em;
  text-transform: uppercase; color: rgba(125, 255, 240, .7);
}
.intro-sign {
  position: relative;
  width: min(760px, 88vw); height: clamp(170px, 30vh, 280px);
  display: flex; align-items: center; justify-content: center;
}
.intro-sign img {
  width: 100%; height: 100%; object-fit: contain;
  filter: invert(1) brightness(1.9) drop-shadow(0 0 30px rgba(125, 255, 240, .55)) drop-shadow(0 0 90px rgba(55, 216, 255, .35));
}
.intro-sheen {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  mask-image: linear-gradient(90deg, #000, #000);
}
.intro-sheen::after {
  content: ""; position: absolute; top: -20%; left: -30%; width: 22%; height: 140%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: rotate(12deg) translateX(-140%);
  animation: sheen 3.4s var(--ease) 1s infinite;
}
@keyframes sheen { 0% { transform: rotate(12deg) translateX(-140%); } 55%, 100% { transform: rotate(12deg) translateX(760%); } }

.intro-caption { font-size: 14px; letter-spacing: .2em; color: rgba(200, 230, 250, .6); }
.intro-line { position: relative; width: min(420px, 66vw); height: 2px; background: rgba(125, 255, 240, .14); overflow: hidden; border-radius: 2px; }
.intro-line i { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--aqua), var(--cyan)); transform: scaleX(0); transform-origin: 0 50%; }
.intro-depth {
  display: flex; align-items: baseline; gap: 6px;
  font-variant-numeric: tabular-nums; font-size: 13px; letter-spacing: .28em;
  color: rgba(125, 255, 240, .55);
}
.intro-depth em { font-style: normal; font-size: 10px; letter-spacing: .2em; color: rgba(180, 220, 240, .4); }
.intro-skip {
  position: absolute; right: 24px; bottom: 24px; z-index: 8;
  font-size: 13px; color: rgba(220, 240, 255, .5);
  padding: 10px 16px; border-radius: 999px;
  border: 1px solid rgba(140, 210, 255, .18);
  transition: color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
  opacity: 0;
}
.intro.go .intro-skip { opacity: 1; transition: opacity 1s .8s ease; }
.intro-skip:hover { color: #fff; border-color: var(--aqua); transform: translateY(-2px); }

@media (max-width: 720px) {
  .intro-sign { width: 92vw; height: clamp(120px, 22vh, 190px); }
  .intro-ghost { font-size: 26vw; }
  .intro-caption { font-size: 12px; letter-spacing: .14em; }
}

/* ---------- 4. 常驻 UI ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 90; background: rgba(255, 255, 255, .05); }
.progress i {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--aqua), var(--cyan) 45%, var(--violet));
  transform: scaleX(0); transform-origin: 0 50%;
  box-shadow: 0 0 14px var(--glow);
}

.depth-hud {
  position: fixed; right: 22px; top: 58%; z-index: 70;
  transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); pointer-events: none;
  opacity: 0; transition: opacity .6s var(--ease);
}
.depth-hud.on { opacity: 1; }
.dh-val { display: flex; align-items: baseline; gap: 4px; color: var(--ink-soft); }
.dh-val b { font-size: 15px; letter-spacing: .06em; font-variant-numeric: tabular-nums; font-weight: 700; }
.dh-val em { font-style: normal; font-size: 10px; color: var(--muted); }
.dh-bar { width: 1px; height: 120px; background: var(--line); position: relative; overflow: hidden; }
.dh-bar i { position: absolute; inset: 0; background: linear-gradient(180deg, var(--aqua), transparent); transform: scaleY(0); transform-origin: 50% 0; }
.dh-tick { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.dh-tick i { width: 6px; height: 1px; background: var(--line-strong); }

@media (max-width: 1080px) { .depth-hud { display: none; } }

/* 光标 */
.cursor { position: fixed; inset: 0; z-index: 250; pointer-events: none; opacity: 0; transition: opacity .4s ease; }
.cursor.on { opacity: 1; }
.c-dot, .c-ring { position: absolute; top: 0; left: 0; border-radius: 50%; }
.c-dot {
  width: 6px; height: 6px; margin: -3px 0 0 -3px;
  background: var(--aqua); box-shadow: 0 0 10px var(--aqua);
}
.c-ring {
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1px solid rgba(125, 255, 240, .55);
  transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}
.cursor.hot .c-ring {
  width: 54px; height: 54px; margin: -27px 0 0 -27px;
  background: rgba(125, 255, 240, .12); border-color: rgba(125, 255, 240, .8);
}
@media (hover: none), (max-width: 860px) { .cursor { display: none; } }

/* ---------- 5. 导航 ---------- */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 120; display: flex; justify-content: center; padding: 0 16px; }
.nav-pill {
  display: flex; align-items: center; gap: 24px;
  padding: 8px 8px 8px 20px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 18px 40px -26px rgba(0, 0, 0, .8);
  transition: padding .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.nav-pill.scrolled { padding: 6px 6px 6px 16px; background: var(--glass-2); box-shadow: 0 20px 50px -22px rgba(0, 0, 0, .9); }

.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; letter-spacing: -.02em; }
.brand-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--aqua) 60%, var(--cyan));
  box-shadow: 0 0 12px var(--aqua);
  animation: pulse-dot 3s var(--ease-io) infinite;
}
@keyframes pulse-dot { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.7); opacity: .6; } }
.brand-tld { color: var(--muted); font-weight: 600; }

.nav-links { display: flex; gap: 4px; }
.nav-links a {
  position: relative; padding: 8px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--ink-soft);
  transition: color .3s var(--ease), background .3s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 0; height: 1px;
  background: var(--aqua); transform: translateX(-50%);
  transition: width .35s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: rgba(125, 255, 240, .07); }
.nav-links a:hover::after { width: 22px; }

.nav-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink-soft);
  border: 1px solid transparent;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.icon-btn:hover { background: rgba(125, 255, 240, .1); color: var(--ink); border-color: var(--line); transform: rotate(-12deg); }
.icon-btn:active { transform: scale(.94); }
html[data-theme="deep"] .i-sun { display: none; }
html[data-theme="shallow"] .i-moon { display: none; }

.nav-toggle { display: none; width: 38px; height: 38px; border-radius: 50%; place-items: center; }
.burger line { stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; transition: transform .35s var(--ease), opacity .2s; }
.nav-toggle.open .b1 { transform: translateY(3px) rotate(45deg); transform-origin: 11px 8px; }
.nav-toggle.open .b2 { transform: translateY(-3px) rotate(-45deg); transform-origin: 11px 14px; }

.mobile-panel {
  position: fixed; inset: 0; z-index: 110;
  padding: calc(var(--nav-h) + 40px) 24px 40px;
  background: var(--glass-2); backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0; pointer-events: none; transform: translateY(-10px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.mobile-panel.open { opacity: 1; pointer-events: auto; transform: none; }
.mobile-panel a {
  font-size: 30px; font-weight: 700; letter-spacing: -.02em;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 14px;
  opacity: 0; transform: translateY(24px);
}
.mobile-panel.open a { animation: mp-in .5s var(--ease) forwards; }
.mobile-panel.open a:nth-child(1) { animation-delay: .06s; }
.mobile-panel.open a:nth-child(2) { animation-delay: .12s; }
.mobile-panel.open a:nth-child(3) { animation-delay: .18s; }
.mobile-panel.open a:nth-child(4) { animation-delay: .24s; }
@keyframes mp-in { to { opacity: 1; transform: none; } }
.mobile-panel em { font-style: normal; font-size: 12px; letter-spacing: .2em; color: var(--aqua); font-weight: 600; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
  .nav-pill { gap: 10px; padding: 6px 6px 6px 16px; }
}

/* ---------- 6. 通用排版 ---------- */
.wrap { width: min(var(--max), 100% - 48px); margin-inline: auto; }
@media (max-width: 640px) { .wrap { width: calc(100% - 32px); } }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .28em;
  text-transform: uppercase; color: var(--aqua);
}
.kicker::before { content: ""; width: 24px; height: 1px; background: currentColor; opacity: .6; }

.sec-h2 {
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1.06; letter-spacing: -.03em; font-weight: 700;
  margin: 16px 0 0;
  text-wrap: balance;
}
.sec-h2 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--aqua), var(--cyan) 45%, var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sec-desc { margin-top: 16px; max-width: 620px; color: var(--muted); font-size: 16px; line-height: 1.75; text-wrap: pretty; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-size: 15px; font-weight: 700; letter-spacing: -.01em;
  transition: transform .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  will-change: transform;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  color: #001018;
  background: linear-gradient(120deg, var(--aqua), var(--cyan) 60%, #8fb8ff);
  box-shadow: 0 14px 36px -14px rgba(55, 216, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.btn-primary:hover { box-shadow: 0 20px 46px -14px rgba(55, 216, 255, .95); transform: translateY(-2px); }
.btn-ghost { color: var(--ink); border: 1px solid var(--line-strong); background: rgba(125, 255, 240, .05); }
.btn-ghost:hover { background: rgba(125, 255, 240, .12); border-color: var(--aqua); transform: translateY(-2px); }

/* 滚动揭示 */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="90"] { transition-delay: .09s; }
.reveal[data-delay="180"] { transition-delay: .18s; }
.reveal[data-delay="270"] { transition-delay: .27s; }
.reveal[data-delay="360"] { transition-delay: .36s; }

/* ---------- 7. 首屏：海面 ---------- */
.surface { position: relative; height: 235vh; background: #01060f; z-index: 1; }
.surface-inner {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  overflow: hidden; isolation: isolate;
}

.scene { position: absolute; inset: 0; will-change: transform, opacity; }

/* 天空 */
.sky {
  position: absolute; inset: 0 0 0 0;
  background: linear-gradient(180deg,
    #01030a 0%,
    #040b1c 13%,
    #08193a 27%,
    #0e3460 41%,
    #1d5f86 53%,
    #3f8fa0 63%,
    #8fc4bf 68%,
    #ffd7a3 71.5%,
    #ff9f66 73.4%,
    #ffb27a 74.5%,
    #2a5e78 76%,
    #07223a 100%);
}
.sky::after {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: 24%;
  height: 16%;
  background: radial-gradient(58% 100% at 50% 100%, rgba(255, 220, 158, .9), rgba(255, 152, 92, .38) 42%, transparent 76%);
  filter: blur(10px);
  animation: glow-breathe 11s var(--ease-io) infinite alternate;
}
@keyframes glow-breathe { from { opacity: .72; } to { opacity: 1; } }

/* 星点 */
.stars { position: absolute; inset: 0 0 40% 0; opacity: .8; }
.stars i {
  position: absolute; width: 2px; height: 2px; border-radius: 50%;
  background: #fff; opacity: .65;
  animation: twinkle 4s ease-in-out infinite;
}
@keyframes twinkle { 0%, 100% { opacity: .15; } 50% { opacity: .9; } }

/* 太阳 */
.sun { position: absolute; left: 50%; bottom: 27.5%; transform: translateX(-50%); width: 1px; height: 1px; }
.sun-halo {
  position: absolute; left: 50%; top: 50%; width: 130vmin; height: 130vmin;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 214, 160, .55) 0%, rgba(255, 160, 100, .22) 26%, rgba(255, 120, 80, .08) 44%, transparent 66%);
  filter: blur(6px);
  animation: halo-breathe 9s var(--ease-io) infinite alternate;
}
@keyframes halo-breathe { from { opacity: .8; transform: translate(-50%, -50%) scale(.95); } to { opacity: 1; transform: translate(-50%, -50%) scale(1.06); } }
.sun-core {
  position: absolute; left: 50%; top: 50%; width: 9vmin; height: 9vmin;
  min-width: 86px; min-height: 86px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 46%, #fffef8 0%, #fff4d6 32%, #ffd295 58%, #ffa366 80%, rgba(255, 150, 95, 0) 100%);
  box-shadow: 0 0 70px rgba(255, 200, 140, .95), 0 0 180px rgba(255, 165, 105, .6), 0 0 320px rgba(255, 150, 90, .35);
}

/* 海平面 */
.horizon {
  position: absolute; left: -10%; right: -10%; bottom: 26.4%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 238, 205, .6) 30%, rgba(255, 255, 255, .8) 50%, rgba(255, 238, 205, .6) 70%, transparent);
  filter: blur(.6px);
}

/* 海面 */
.sea {
  position: absolute; left: -5%; right: -5%; bottom: 0; height: 26.6%;
  background:
    radial-gradient(30% 76% at 50% 0%, rgba(255, 232, 190, .78) 0%, rgba(255, 180, 120, .24) 32%, transparent 68%),
    linear-gradient(180deg, #2f8397 0%, #14607f 7%, #0b3d5c 20%, #072a45 42%, #04182a 64%, #01080f 100%);
  overflow: hidden;
}
.sea::before {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(180deg, rgba(205, 242, 255, .24) 0 1px, transparent 1px 6px),
    repeating-linear-gradient(180deg, transparent 0 17px, rgba(125, 255, 240, .08) 17px 18px);
  mask-image: radial-gradient(78% 100% at 50% 0%, #000 0%, rgba(0, 0, 0, .5) 40%, transparent 82%);
  -webkit-mask-image: radial-gradient(78% 100% at 50% 0%, #000 0%, rgba(0, 0, 0, .5) 40%, transparent 82%);
  animation: sea-shift 13s linear infinite;
}
.sea::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(48% 9% at 50% 5%, rgba(255, 236, 202, .38), transparent 72%),
    repeating-linear-gradient(180deg, transparent 0 30px, rgba(125, 255, 240, .045) 30px 31px),
    linear-gradient(90deg, rgba(0, 0, 0, .5), transparent 18%, transparent 82%, rgba(0, 0, 0, .5));
}
@keyframes sea-shift { from { transform: translateY(0); } to { transform: translateY(6px); } }

/* 水面碎光 */
.sea-glints { position: absolute; left: 0; right: 0; bottom: 0; height: 26.6%; overflow: hidden; pointer-events: none; }
.sea-glints i {
  position: absolute; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 236, 200, .9), transparent);
  filter: blur(1.2px);
  animation: glint 7.5s var(--ease-io) infinite;
}
@keyframes glint {
  0%, 100% { opacity: 0; transform: translateX(0) scaleX(.35); }
  45% { opacity: .95; transform: translateX(20px) scaleX(1); }
  70% { opacity: .2; transform: translateX(34px) scaleX(1.3); }
}

/* 日照水面的光带 */
.sun-path {
  position: absolute; left: 50%; bottom: 0; width: min(56vw, 560px); height: 27%;
  transform: translateX(-50%);
  background:
    radial-gradient(26% 38% at 50% 0%, rgba(255, 248, 226, .9) 0%, rgba(255, 224, 176, .4) 40%, transparent 74%),
    radial-gradient(46% 62% at 50% 0%, rgba(255, 222, 172, .55) 0%, rgba(255, 190, 130, .2) 40%, transparent 72%),
    repeating-linear-gradient(180deg, rgba(255, 228, 186, .5) 0 2px, rgba(255, 228, 186, 0) 2px 12px);
  mask-image: radial-gradient(48% 96% at 50% 0%, #000 0%, rgba(0, 0, 0, .72) 38%, transparent 80%);
  -webkit-mask-image: radial-gradient(48% 96% at 50% 0%, #000 0%, rgba(0, 0, 0, .72) 38%, transparent 80%);
  filter: blur(1.4px);
  animation: shimmer 7s var(--ease-io) infinite alternate;
}
@keyframes shimmer { from { opacity: .55; transform: translateX(-50%) scaleX(.82); } to { opacity: 1; transform: translateX(-50%) scaleX(1.06); } }

/* 波浪层 */
.waves { position: absolute; left: 0; right: 0; bottom: 24.2%; height: 7vmin; pointer-events: none; }
.waves svg { position: absolute; inset: 0; width: 200%; height: 100%; }
.waves .w1 { animation: wave-x 26s linear infinite; }
.waves .w2 { animation: wave-x 17s linear infinite reverse; }
.waves .w3 { animation: wave-x 11s linear infinite; }
.waves .w1 path { fill: rgba(9, 34, 54, .55); }
.waves .w2 path { fill: rgba(14, 52, 78, .62); }
.waves .w3 path { fill: rgba(24, 76, 104, .38); }
@keyframes wave-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 首屏文案 */
.surface-copy {
  position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%);
  width: min(var(--max), 100% - 48px);
  text-align: center; z-index: 4;
}
.hero-h1 {
  margin: 20px 0 0;
  font-size: clamp(44px, 8.4vw, 116px);
  line-height: 1.08; letter-spacing: -.035em; font-weight: 800;
  text-wrap: balance;
}
.hl { display: block; overflow: hidden; padding-bottom: .06em; }
.hl > span {
  display: block;
  background: linear-gradient(100deg, #ffffff 0%, #d6f3ff 38%, #8fe9ff 62%, #b7a5ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 220% 100%;
  animation: shine 9s var(--ease-io) infinite;
  filter: drop-shadow(0 8px 40px rgba(80, 200, 255, .35));
}
@keyframes shine { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.hero-sub {
  margin: 24px auto 0; max-width: 620px;
  font-size: clamp(15px, 1.6vw, 18px); line-height: 1.7;
  color: rgba(226, 244, 255, .78); text-wrap: pretty;
}
.hero-cta { margin-top: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-meta {
  margin-top: 26px; display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap;
  font-size: 12px; letter-spacing: .04em; color: rgba(200, 228, 245, .62);
}
.hero-meta b { color: #fff; font-size: 15px; font-weight: 700; margin-right: 3px; font-variant-numeric: tabular-nums; }
.hero-meta i { width: 3px; height: 3px; border-radius: 50%; background: rgba(125, 255, 240, .5); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 24px; z-index: 5;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: .34em; text-transform: uppercase;
  color: rgba(210, 236, 250, .55);
}

.hero-corner {
  position: absolute; left: 32px; bottom: 34px; z-index: 5;
  display: flex; gap: 22px; flex-wrap: wrap;
  font-size: 12px; letter-spacing: .06em; color: rgba(200, 228, 245, .55);
  opacity: calc(1 - var(--dive, 0) * 1.6);
  animation: fade-up 1s var(--ease) 1.1s both;
}
.hero-corner b { color: #fff; font-size: 15px; font-weight: 700; margin-right: 4px; font-variant-numeric: tabular-nums; }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .hero-corner { display: none; } }
.scroll-cue i { width: 1px; height: 46px; background: linear-gradient(180deg, rgba(125, 255, 240, .8), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after {
  content: ""; position: absolute; inset: 0; background: var(--aqua);
  transform: translateY(-100%); animation: cue-drop 2.4s var(--ease-io) infinite;
}
@keyframes cue-drop { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* 下潜遮罩 */
.dive-veil {
  position: absolute; inset: 0; z-index: 3; opacity: var(--dive, 0);
  background: linear-gradient(180deg, rgba(3, 20, 38, .55) 0%, rgba(2, 12, 24, .92) 40%, #01060f 78%);
  pointer-events: none;
}
.surface-inner .sun, .surface-inner .sky, .surface-inner .sea, .surface-inner .waves, .surface-inner .sun-path, .surface-inner .horizon {
  transition: none;
}
.scene-dive {
  transform: translate3d(0, calc(var(--dive, 0) * -16%), 0) scale(calc(1 + var(--dive, 0) * .08));
  opacity: calc(1 - var(--dive, 0) * .72);
}
.surface-copy { opacity: calc(1 - var(--dive, 0) * 1.15); transform: translate(-50%, calc(-50% - var(--dive, 0) * 70px)); }

@media (max-width: 720px) {
  .hero-sub { font-size: 15px; }
  .hero-cta .btn { padding: 11px 18px; font-size: 14px; }
  .hero-meta { gap: 16px; font-size: 12px; }
}

/* ---------- 8. 跑马灯 ---------- */
.marquee {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #04101f 0%, #071a2e 50%, #04101f 100%);
  overflow: hidden; padding: 14px 0;
  transform: rotate(-1.2deg) scale(1.04);
  margin: -1px 0 -1px;
}
.marquee-track { display: flex; width: max-content; animation: marquee-x 34s linear infinite; }
html[data-theme="shallow"] .marquee { background: linear-gradient(90deg, #d9f0fe 0%, #c6e8fb 50%, #d9f0fe 100%); }.marquee-track span {
  display: inline-flex; align-items: center; gap: 18px;
  padding-right: 18px;
  font-size: clamp(14px, 1.8vw, 20px); font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft);
  white-space: nowrap;
}
.marquee-track span i { font-style: normal; color: var(--aqua); font-size: .8em; }
@keyframes marquee-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 9. 螺旋作品展 ---------- */
.spiral { position: relative; z-index: 2; height: 360vh; }
.spiral-inner {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 24px) 0 32px;
  overflow: hidden;
}
.spiral-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 50% at 50% 52%, rgba(24, 120, 180, .28), transparent 70%),
    radial-gradient(80% 60% at 50% 100%, rgba(167, 139, 250, .18), transparent 72%);
  mask-image: radial-gradient(80% 70% at 50% 50%, #000 30%, transparent 78%);
}
.spiral-head {
  position: relative; z-index: 6;
  width: min(var(--max), 100% - 48px); margin: 0 auto;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  pointer-events: none;
}
.spiral-head .sec-h2 { font-size: clamp(30px, 4.2vw, 54px); }
.spiral-head-r { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; max-width: 640px; }
.spiral-head .sec-desc { margin: 0; max-width: 480px; font-size: 13px; text-align: right; }

.spiral-legend {
  position: relative; z-index: 8; pointer-events: auto;
  display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap;
}
.chip {
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--glass);
  font-size: 12px; font-weight: 600; color: var(--muted);
  backdrop-filter: blur(10px);
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}
.chip:hover { color: var(--ink); border-color: var(--line-strong); transform: translateY(-1px); }
.chip.active { color: #00141c; background: linear-gradient(120deg, var(--aqua), var(--cyan)); border-color: transparent; }

/* 展台 */
.helix {
  position: relative; z-index: 5;
  flex: 1 1 auto; min-height: 0;
  margin-top: 10px;
  perspective: 1400px;
  perspective-origin: 50% 48%;
  display: grid; place-items: center;
  overflow: hidden;
  mask-image: linear-gradient(180deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.helix-axis {
  position: absolute; left: 50%; top: 6%; bottom: 6%; width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, rgba(125, 255, 240, .35) 18%, rgba(125, 255, 240, .5) 50%, rgba(125, 255, 240, .35) 82%, transparent);
  box-shadow: 0 0 24px rgba(125, 255, 240, .25);
}
.helix-axis::before, .helix-axis::after {
  content: ""; position: absolute; left: 50%; width: 7px; height: 7px; margin-left: -3.5px;
  border-radius: 50%; background: var(--aqua); box-shadow: 0 0 16px var(--aqua);
}
.helix-axis::before { top: -3px; }
.helix-axis::after { bottom: -3px; }

.helix-ring {
  position: absolute; left: 50%; top: 50%; width: 660px; height: 660px;
  margin: -330px 0 0 -330px; border-radius: 50%;
  border: 1px dashed rgba(125, 255, 240, .16);
  transform: rotateX(72deg);
  animation: ring-spin 40s linear infinite;
}
.helix-ring::after {
  content: ""; position: absolute; inset: 14%; border-radius: 50%;
  border: 1px solid rgba(167, 139, 250, .12);
}
@keyframes ring-spin { from { transform: rotateX(72deg) rotate(0deg); } to { transform: rotateX(72deg) rotate(360deg); } }

.helix-stage { position: absolute; inset: 0; transform-style: preserve-3d; }

.hx {
  position: absolute; left: 50%; top: 50%;
  width: 260px; height: 164px; margin: -82px 0 0 -130px;
  display: block;
  border-radius: var(--r-md);
  will-change: transform, opacity;
  transform-style: preserve-3d;
  text-decoration: none;
}
.hx-in {
  position: relative; width: 100%; height: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 14px;
  border-radius: inherit;
  background: var(--glass-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  transition: transform .5s var(--ease), border-color .4s var(--ease), box-shadow .5s var(--ease);
  transform: translateZ(0);
}
.hx-in::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(90% 80% at 20% 0%, color-mix(in srgb, var(--accent, #37d8ff) 45%, transparent), transparent 70%);
  opacity: .55;
}
.hx-in::after {
  content: ""; position: absolute; top: -60%; left: -40%; width: 60%; height: 220%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .18), transparent);
  transform: rotate(14deg) translateX(-120%);
  transition: transform .7s var(--ease);
  pointer-events: none;
}
.hx:hover .hx-in { transform: translateY(-6px) scale(1.06); border-color: var(--accent, var(--aqua)); box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .95), 0 0 0 1px var(--accent, var(--aqua)); }
.hx:hover .hx-in::after { transform: rotate(14deg) translateX(320%); }
.hx:active .hx-in { transform: scale(.98); }
.hx.is-active .hx-in {
  border-color: color-mix(in srgb, var(--accent, #37d8ff) 62%, transparent);
  box-shadow: 0 34px 90px -32px rgba(0, 0, 0, .95),
              0 0 0 1px color-mix(in srgb, var(--accent, #37d8ff) 45%, transparent),
              0 0 70px -16px var(--accent, #37d8ff);
}

.hx-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hx-idx { font-size: 11px; font-weight: 700; letter-spacing: .2em; color: var(--muted); font-variant-numeric: tabular-nums; }
.hx-cat { font-size: 11px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft); }
.hx-mid { display: flex; align-items: center; gap: 12px; }
.hx-thumb {
  width: 58px; height: 58px; flex: 0 0 58px;
  border-radius: var(--r-sm);
  overflow: hidden; display: grid; place-items: center;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  font-size: 24px;
}
.hx-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.hx-txt { min-width: 0; }
.hx-txt b { display: block; font-size: 20px; line-height: 1.25; letter-spacing: -.02em; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-txt span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-bot { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.hx-bot i { font-style: normal; color: var(--accent, var(--aqua)); font-weight: 700; }
.hx.dim { opacity: .14 !important; filter: blur(2px) saturate(.4); }
.hx.dim .hx-in { pointer-events: none; }

.helix-hud {
  position: relative; z-index: 8; margin-top: 8px;
  display: flex; align-items: baseline; justify-content: center; gap: 12px;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.helix-hud b { font-size: 15px; letter-spacing: .04em; color: var(--ink); font-weight: 700; text-transform: none; }
.helix-hud .hh-idx { font-variant-numeric: tabular-nums; color: var(--aqua); font-weight: 700; letter-spacing: .1em; }

/* 移动端：螺旋降级为列表 */
@media (max-width: 900px) {
  .spiral { height: auto; }
  .spiral-inner { position: static; height: auto; display: block; padding: calc(var(--nav-h) + 40px) 0 40px; }
  .spiral-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .spiral-head-r { align-items: flex-start; }
  .spiral-head .sec-desc { text-align: left; max-width: none; }
  .spiral-legend { justify-content: flex-start; }
  .helix { display: block; margin-top: 24px; padding: 0 16px; perspective: none; overflow: visible; mask-image: none; -webkit-mask-image: none; }
  .helix-axis, .helix-ring { display: none; }
  .helix-stage { position: static; display: grid; gap: 12px; }
  .hx {
    position: static; width: auto; height: auto; margin: 0;
    transform: none !important; opacity: 1 !important; filter: none !important;
  }
  .hx-in { padding: 16px; }
  .hx-txt b { font-size: 18px; }
  .helix-hud { display: none; }
}

/* ---------- 10. 自述 ---------- */
.statement { position: relative; z-index: 2; padding: 22vh 0; }
.statement-inner { width: min(1080px, 100% - 48px); margin-inline: auto; position: relative; }
.statement-text {
  font-size: clamp(28px, 5vw, 62px);
  line-height: 1.32; letter-spacing: -.03em; font-weight: 700;
  text-wrap: balance;
}
.statement-text .w {
  display: inline-block;
  color: var(--ink);
  opacity: .18;
  transition: opacity .55s var(--ease), transform .55s var(--ease), filter .55s var(--ease);
  transform: translateY(.08em);
}
.statement-text .w.on { opacity: 1; transform: none; }
.statement-text .w.hi {
  background: linear-gradient(100deg, var(--aqua), var(--cyan) 50%, var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.statement-sign { margin-top: 48px; display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
.statement-sign i { width: 60px; height: 1px; background: var(--line-strong); }

/* 水母 */
.jelly {
  position: absolute; width: 120px; height: 120px; border-radius: 50% 50% 46% 46%;
  background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, .5), rgba(167, 139, 250, .35) 40%, rgba(125, 255, 240, .1) 65%, transparent 75%);
  filter: blur(6px); opacity: .5; pointer-events: none;
  animation: jelly-float 20s var(--ease-io) infinite alternate;
}
.jelly::after {
  content: ""; position: absolute; left: 20%; right: 20%; top: 78%; height: 90px;
  background: linear-gradient(180deg, rgba(167, 139, 250, .35), transparent 70%);
  filter: blur(4px); border-radius: 50%;
}
.jelly.j1 { right: -4%; top: 6%; }
.jelly.j2 { left: -6%; bottom: 4%; width: 80px; height: 80px; animation-delay: -8s; opacity: .35; }
@keyframes jelly-float {
  from { transform: translate3d(0, 0, 0) scale(1) rotate(-3deg); }
  to { transform: translate3d(-30px, -50px, 0) scale(1.1) rotate(4deg); }
}

/* ---------- 11. 关于 ---------- */
.about { position: relative; z-index: 2; padding: 10vh 0 11vh; }
.about-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: start; }
.about-lead { font-size: clamp(24px, 3.2vw, 38px); line-height: 1.4; letter-spacing: -.025em; font-weight: 700; text-wrap: balance; }
.about-lead em { font-style: normal; color: var(--aqua); }
.about-body { margin-top: 24px; display: grid; gap: 16px; color: var(--muted); line-height: 1.85; text-wrap: pretty; }
.stack-list { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.stack-list span {
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--ink-soft);
  transition: border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.stack-list span:hover { border-color: var(--aqua); color: var(--ink); transform: translateY(-2px); }

.about-card {
  position: relative; padding: 28px; border-radius: var(--r-lg);
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(20px); box-shadow: var(--shadow);
  overflow: hidden;
}
.about-card::before {
  content: ""; position: absolute; inset: -40% -20% auto -20%; height: 200px;
  background: radial-gradient(50% 60% at 50% 50%, rgba(125, 255, 240, .35), transparent 70%);
  filter: blur(24px);
}
.about-card .mark { font-size: 34px; }
.about-card h3 { margin-top: 16px; font-size: 24px; line-height: 1.35; letter-spacing: -.02em; }
.about-card p { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.about-card .sig-line { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

.stats-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 64px; }
.stat-box {
  padding: 24px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--glass);
  backdrop-filter: blur(14px);
}
.stat-box b { display: flex; align-items: baseline; gap: 2px; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.03em; font-weight: 800; }
.stat-box b em { font-style: normal; font-size: .5em; color: var(--aqua); }
.stat-box > span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .stats-band { grid-template-columns: 1fr; }
}

/* ---------- 12. 页脚 ---------- */
.site-footer { position: relative; z-index: 2; border-top: 1px solid var(--line); padding: 40px 0 56px; margin-top: 40px; }
.footer-inner {
  width: min(var(--max), 100% - 48px); margin-inline: auto;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.footer-sign { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.footer-sign span { color: var(--muted); }
.footer-note { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.footer-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.beian-link { color: var(--muted); border-bottom: 1px solid transparent; transition: color .3s var(--ease), border-color .3s var(--ease); }
.beian-link:hover { color: var(--aqua); border-color: var(--aqua); }

.signature-mark {
  position: fixed; right: 18px; bottom: 20px; z-index: 60;
  width: 132px; pointer-events: none; opacity: .78;
  transition: opacity .4s ease, transform .4s var(--ease);
}
.signature-mark img {
  width: 100%; height: auto;
  filter: invert(1) brightness(1.55) drop-shadow(0 0 10px rgba(125, 255, 240, .3));
  mix-blend-mode: difference;
}
html[data-theme="shallow"] .signature-mark img { filter: invert(1) brightness(1.8); mix-blend-mode: difference; }
.signature-mark:hover { opacity: 1; transform: scale(1.04); }
@media (max-width: 720px) { .signature-mark { width: 96px; right: 12px; bottom: 14px; opacity: .66; } }

.to-top {
  position: fixed; right: 20px; bottom: 168px; z-index: 60;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--glass-2); border: 1px solid var(--line);
  backdrop-filter: blur(14px); color: var(--ink-soft);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease), border-color .3s, color .3s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--aqua); color: var(--aqua); }
@media (max-width: 900px) { .to-top { bottom: 132px; width: 36px; height: 36px; } }

/* ---------- 13. 详情页 ---------- */
.detail { position: relative; z-index: 2; }

.d-hero {
  position: relative; min-height: 88vh; display: flex; align-items: center;
  padding: calc(var(--nav-h) + 56px) 0 72px; overflow: hidden;
}
.d-bloom {
  position: absolute; left: 50%; top: 22%; width: 120vmin; height: 120vmin;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--accent, #37d8ff) 55%, transparent) 0%, transparent 62%);
  filter: blur(40px); opacity: .5; pointer-events: none;
  animation: halo-breathe 12s var(--ease-io) infinite alternate;
}
.d-hero-inner { position: relative; z-index: 2; width: min(var(--max), 100% - 48px); margin-inline: auto; }

.d-visual {
  position: absolute; right: 6%; top: 50%; z-index: 1;
  width: clamp(140px, 22vw, 268px); aspect-ratio: 1;
  border-radius: 26%; overflow: hidden;
  box-shadow: 0 44px 100px -34px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .14), 0 0 90px -20px var(--accent, #37d8ff);
  animation: float-y 7s var(--ease-io) infinite alternate;
}
.d-visual img { width: 100%; height: 100%; object-fit: cover; }
@keyframes float-y {
  from { transform: translateY(-50%); }
  to { transform: translateY(calc(-50% - 16px)); }
}
@media (max-width: 900px) { .d-visual { display: none; } }
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  transition: color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.back-link:hover { color: var(--ink); border-color: var(--line-strong); transform: translateX(-3px); }
.d-en { margin-top: 32px; font-size: 12px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--aqua); }
.d-title {
  margin: 12px 0 0; font-size: clamp(42px, 8vw, 104px); line-height: 1.04;
  letter-spacing: -.04em; font-weight: 800;
  background: linear-gradient(100deg, var(--ink) 0%, var(--ink) 40%, color-mix(in srgb, var(--accent, #37d8ff) 80%, var(--ink)) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.d-tagline { margin-top: 18px; max-width: 640px; font-size: clamp(16px, 2vw, 21px); line-height: 1.6; color: var(--ink-soft); text-wrap: pretty; }
.d-tags { margin-top: 24px; display: flex; gap: 8px; flex-wrap: wrap; }
.d-tags span {
  padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
  border: 1px solid var(--line); color: var(--muted);
}
.d-tags span:first-child { color: var(--accent, var(--aqua)); border-color: color-mix(in srgb, var(--accent, #37d8ff) 45%, transparent); }

.d-sec { position: relative; padding: 10vh 0; }
.d-sec-inner { width: min(var(--max), 100% - 48px); margin-inline: auto; }
.d-sec h2 { font-size: clamp(28px, 3.6vw, 46px); line-height: 1.15; letter-spacing: -.03em; margin: 12px 0 0; }
.d-desc { margin-top: 24px; max-width: 780px; font-size: clamp(16px, 1.8vw, 19px); line-height: 1.9; color: var(--ink-soft); text-wrap: pretty; }
.work-note {
  margin-top: 24px; padding: 16px 20px; border-radius: var(--r-sm);
  border: 1px solid var(--line); border-left: 2px solid var(--aqua);
  background: rgba(125, 255, 240, .05); font-size: 13px; line-height: 1.8; color: var(--muted);
  max-width: 780px;
}
.link-row { margin-top: 28px; display: flex; gap: 10px; flex-wrap: wrap; }
.link-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px;
  background: linear-gradient(120deg, var(--aqua), var(--cyan));
  color: #001018; font-size: 14px; font-weight: 700;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  box-shadow: 0 14px 32px -14px rgba(55, 216, 255, .8);
}
.link-btn:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -14px rgba(55, 216, 255, .95); }
.link-btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); box-shadow: none; }
.link-btn.ghost:hover { border-color: var(--aqua); background: rgba(125, 255, 240, .08); }

.features { margin-top: 40px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.feature {
  display: flex; gap: 16px; padding: 22px;
  border-radius: var(--r-md); border: 1px solid var(--line);
  background: var(--glass);
  transition: border-color .35s var(--ease), transform .35s var(--ease), background .35s var(--ease);
}
.feature:hover { border-color: var(--line-strong); transform: translateY(-3px); background: var(--glass); }
.feature .n { font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--aqua); padding-top: 3px; font-variant-numeric: tabular-nums; }
.feature p { font-size: 14px; line-height: 1.8; color: var(--ink-soft); }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }

.gallery { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.shot { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--glass); }
.shot img { width: 100%; height: auto; transition: transform .8s var(--ease); }
.shot:hover img { transform: scale(1.03); }
.shot figcaption { padding: 12px 16px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }

.stack-table { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.stack-table span {
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--glass);
  font-size: 13px; font-weight: 600; color: var(--ink-soft);
}

.dl-panel {
  margin-top: 8px; padding: clamp(24px, 4vw, 48px);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(10, 30, 52, .96), rgba(3, 12, 22, .98));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.dl-panel::before {
  content: ""; position: absolute; inset: -50% 40% auto -10%; height: 380px;
  background: radial-gradient(50% 60% at 50% 50%, rgba(55, 216, 255, .3), transparent 70%);
  filter: blur(30px); pointer-events: none;
}
.dl-panel h2 { color: #eaf6ff; }
.dl-panel .sec-desc { color: rgba(190, 220, 240, .7); }
.dl-list { margin-top: 28px; display: grid; gap: 10px; }
.dl-item {
  position: relative; display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; border-radius: var(--r-sm);
  border: 1px solid rgba(140, 210, 255, .16);
  background: rgba(255, 255, 255, .04);
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.dl-item:hover { transform: translateX(4px); border-color: var(--aqua); background: rgba(125, 255, 240, .08); }
.os-icon {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: var(--r-sm);
  display: grid; place-items: center; font-size: 18px;
  background: rgba(125, 255, 240, .1); border: 1px solid rgba(125, 255, 240, .2);
}
.dl-meta { flex: 1 1 auto; min-width: 0; }
.dl-meta b { display: block; font-size: 15px; color: #eaf6ff; font-weight: 700; }
.dl-meta span { display: block; font-size: 12px; color: rgba(180, 210, 235, .6); margin-top: 2px; }
.size { font-size: 12px; font-variant-numeric: tabular-nums; color: rgba(180, 210, 235, .7); white-space: nowrap; }
.dl-arrow { color: var(--aqua); display: grid; place-items: center; }
.dl-empty { margin-top: 24px; padding: 24px; border-radius: var(--r-sm); border: 1px dashed rgba(140, 210, 255, .3); text-align: center; color: rgba(180, 210, 235, .6); font-size: 14px; }

.next-work {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 32px; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: var(--glass);
  transition: border-color .4s var(--ease), background .4s var(--ease), transform .4s var(--ease);
}
.next-work:hover { border-color: var(--aqua); background: rgba(125, 255, 240, .06); transform: translateY(-3px); }
.n-label { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.n-name { margin-top: 8px; font-size: clamp(22px, 3vw, 34px); font-weight: 700; letter-spacing: -.02em; display: flex; align-items: center; gap: 12px; }
html[data-theme="shallow"] .dl-panel { background: linear-gradient(160deg, #062b4a, #01121f); }

/* ---------- 14. 响应 / 降级 ---------- */
@media (max-width: 640px) {
  .surface-copy { top: 47%; }
  .hero-h1 { font-size: clamp(38px, 11vw, 56px); }
  .hero-meta { display: none; }
  .statement { padding: 14vh 0; }
  .signature-mark { width: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .statement-text .w { opacity: 1; transform: none; }
  .scene-dive { transform: none; }
}
