/* ============================================================
   HOLZWEGE — 科幻 / 3D / 科技 个人网站
   0. Fonts   1. Tokens   2. Base   3. Background   4. Nav
   5. Preloader  6. Hero  7. Sections  8. About  9. Projects
   10. Blog  11. Contact  12. Motion  13. Responsive
   ============================================================ */

/* ---------- 0. Self-hosted fonts ---------- */
@font-face { font-family: 'Orbitron'; src: url('../fonts/orbitron-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Orbitron'; src: url('../fonts/orbitron-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Orbitron'; src: url('../fonts/orbitron-latin-900-normal.woff2') format('woff2'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('../fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('../fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }

/* ---------- 1. Design tokens ---------- */
:root {
  /* surface */
  --bg-0: #04060D;
  --bg-1: #070A14;
  --bg-2: #0A0F1C;
  --panel: rgba(255, 255, 255, .028);
  --panel-hi: rgba(255, 255, 255, .055);
  --line: rgba(140, 180, 230, .13);
  --line-hi: rgba(140, 200, 255, .32);

  /* text */
  --txt-0: #E9EFFA;
  --txt-1: #97A5BC;
  --txt-2: #5C6A80;

  /* accents */
  --cy: #22D3EE;
  --cy-d: #0E7490;
  --bl: #38BDF8;
  --vi: #8B5CF6;
  --mg: #E879F9;
  --ok: #34D399;
  --warn: #FBBF24;

  --grad: linear-gradient(100deg, var(--cy) 0%, var(--bl) 42%, var(--vi) 100%);
  --grad-soft: linear-gradient(100deg, rgba(34,211,238,.16), rgba(139,92,246,.16));

  /* type */
  --f-display: 'Orbitron', 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --f-body: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, "Segoe UI", Roboto, sans-serif;

  /* layout */
  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --nav-h: 72px;
  --r-s: 8px;
  --r-m: 14px;
  --r-l: 22px;

  /* motion */
  --e-out: cubic-bezier(.16, 1, .3, 1);
  --e-io: cubic-bezier(.65, .05, .36, 1);

  --shadow-glow: 0 0 40px rgba(34, 211, 238, .22);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--txt-0);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: rgba(34, 211, 238, .28); color: #fff; }

/* scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--cy-d), #2A2F52); border-radius: 10px; border: 2px solid var(--bg-0); }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(var(--cy), var(--vi)); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- 3. Background layers ---------- */
#scene-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  pointer-events: none;
}

.bg-veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    /* 左侧文字区压暗，保证 3D 再亮也不影响可读性 */
    linear-gradient(100deg, rgba(4, 6, 13, .9) 0%, rgba(4, 6, 13, .66) 26%, rgba(4, 6, 13, .2) 54%, transparent 72%),
    radial-gradient(120% 78% at 50% 0%, transparent 38%, rgba(4, 6, 13, .62) 78%, var(--bg-0) 100%),
    radial-gradient(90% 55% at 12% 88%, rgba(139, 92, 246, .10), transparent 62%),
    radial-gradient(70% 45% at 88% 12%, rgba(34, 211, 238, .09), transparent 60%);
}

/* 细网格 + 扫描线 */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .34;
  background-image:
    linear-gradient(rgba(120, 170, 230, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 170, 230, .045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(105% 88% at 50% 42%, #000 0%, transparent 88%);
  -webkit-mask-image: radial-gradient(105% 88% at 50% 42%, #000 0%, transparent 88%);
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page { position: relative; z-index: 2; }

/* ---------- 4. Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 90;
  display: flex;
  align-items: center;
  transition: background .5s var(--e-out), border-color .5s var(--e-out), backdrop-filter .5s;
  border-bottom: 1px solid transparent;
}
/* 顶部能量线 */
.nav::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34,211,238,.6) 30%, rgba(139,92,246,.6) 70%, transparent);
  opacity: 0; transition: opacity .6s var(--e-out);
}
/* 底部流光带 */
.nav::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cy) 32%, var(--vi) 68%, transparent);
  background-size: 220% 100%;
  opacity: 0; transition: opacity .6s var(--e-out);
  animation: navFlow 7s linear infinite;
}
.nav.is-stuck {
  background: rgba(6, 9, 18, .64);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  border-bottom-color: transparent;
  box-shadow: 0 14px 44px -28px rgba(0, 0, 0, .95);
}
.nav.is-stuck::before { opacity: 1; }
.nav.is-stuck::after { opacity: .85; }

.nav__in {
  width: 100%; max-width: var(--wrap);
  margin: 0 auto; padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 22px;
}

/* --- 品牌 --- */
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand__mark {
  width: 30px; height: 30px; flex-shrink: 0;
  position: relative;
  display: grid; place-items: center;
}
.brand__mark::before,
.brand__mark::after {
  content: ''; position: absolute; border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, .38);
  pointer-events: none;
}
.brand__mark::before { inset: -3px; animation: ringPulse 3.4s var(--e-out) infinite; }
.brand__mark::after { inset: -3px; animation: ringPulse 3.4s var(--e-out) 1.7s infinite; }
.brand__mark svg { width: 30px; height: 30px; overflow: visible; position: relative; }
.brand__mark .spin { transform-origin: 50% 50%; animation: spin 14s linear infinite; }
.brand:hover .brand__mark .spin { animation-duration: 4s; }
.brand:hover .brand__mark svg { filter: drop-shadow(0 0 8px rgba(34, 211, 238, .9)); }
.brand__name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .24em;
  color: var(--txt-0);
  transition: text-shadow .4s;
}
.brand__name em { font-style: normal; color: var(--cy); }
.brand:hover .brand__name { text-shadow: 0 0 18px rgba(34, 211, 238, .6); }

/* --- 链接胶囊组 --- */
.nav__links {
  display: flex; align-items: center; gap: 2px;
  margin-left: auto;
  position: relative;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 16, 30, .40);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: border-color .45s, background .45s;
}
.nav__links:hover { border-color: var(--line-hi); background: rgba(12, 19, 34, .6); }
/* 鼠标跟随光斑（::before 位于胶囊与链接之下） */
.nav__links::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(130px circle at var(--mx, 50%) var(--my, 50%), rgba(34, 211, 238, .2), transparent 72%);
  opacity: 0; transition: opacity .4s;
  pointer-events: none;
}
.nav__links:hover::before { opacity: 1; }

/* 滑动指示胶囊 */
.nav__pill {
  position: absolute; top: 5px; left: 0; height: calc(100% - 10px); width: 0;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(34, 211, 238, .20), rgba(139, 92, 246, .22));
  border: 1px solid rgba(34, 211, 238, .42);
  box-shadow: 0 0 24px -7px rgba(34, 211, 238, .95), inset 0 0 20px -10px rgba(34, 211, 238, .9);
  opacity: 0;
  transition: transform .55s var(--e-out), width .55s var(--e-out), opacity .35s;
  pointer-events: none;
}
.nav__pill.is-on { opacity: 1; }

.nav__link {
  position: relative;
  padding: 8px 15px;
  font-size: 13px;
  color: var(--txt-1);
  border-radius: 999px;
  transition: color .3s, transform .3s var(--e-out);
  white-space: nowrap;
}
.nav__link span {
  font-family: var(--f-mono); font-size: 10px; color: var(--txt-2);
  margin-right: 6px; transition: color .3s;
}
.nav__link:hover { color: var(--txt-0); transform: translateY(-1px); }
.nav__link:hover span { color: var(--cy); }
.nav__link.is-active { color: var(--cy); text-shadow: 0 0 14px rgba(34, 211, 238, .55); }
.nav__link.is-active span { color: var(--cy); }

/* --- 状态胶囊 --- */
.nav__status {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 16, 30, .5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--txt-1);
  letter-spacing: .06em;
  flex-shrink: 0;
  overflow: hidden;
}
/* 循环掠光 */
.nav__status::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(34, 211, 238, .3) 50%, transparent 70%);
  transform: translateX(-130%);
  animation: shine 5s var(--e-out) infinite;
  pointer-events: none;
}
.nav__status b { color: var(--cy); font-weight: 500; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: pulse 2.4s ease-in-out infinite; }

.nav__burger { display: none; width: 40px; height: 40px; margin-left: auto; position: relative; }
.nav__burger i {
  position: absolute; left: 10px; width: 20px; height: 1.5px; background: var(--txt-0);
  transition: transform .35s var(--e-out), opacity .25s;
}
.nav__burger i:nth-child(1) { top: 15px; }
.nav__burger i:nth-child(2) { top: 20px; }
.nav__burger i:nth-child(3) { top: 25px; }
.is-menu-open .nav__burger i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.is-menu-open .nav__burger i:nth-child(2) { opacity: 0; }
.is-menu-open .nav__burger i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 89;
  background: rgba(4, 6, 13, .95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: grid; align-content: center; justify-items: center; gap: 6px;
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--e-out), visibility .4s;
}
.is-menu-open .drawer { opacity: 1; visibility: visible; }
.drawer a {
  font-family: var(--f-display);
  font-size: clamp(24px, 6vw, 40px);
  font-weight: 700; letter-spacing: .1em;
  color: var(--txt-1); padding: 8px 0;
  transition: color .3s, letter-spacing .3s;
}
.drawer a:hover { color: var(--cy); letter-spacing: .18em; }

/* ---------- 5. Preloader ---------- */
#loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg-0);
  display: grid; place-content: center; justify-items: center; gap: 22px;
  transition: opacity .7s var(--e-out), visibility .7s;
}
#loader.is-done { opacity: 0; visibility: hidden; }
.loader__ring { width: 58px; height: 58px; position: relative; }
.loader__ring::before, .loader__ring::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid transparent;
}
.loader__ring::before { border-top-color: var(--cy); border-right-color: var(--cy); animation: spin 1s linear infinite; }
.loader__ring::after { inset: 10px; border-bottom-color: var(--vi); border-left-color: var(--vi); animation: spin 1.6s linear infinite reverse; }
.loader__txt {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .3em;
  color: var(--txt-2); text-transform: uppercase;
}
.loader__bar { width: 180px; height: 2px; background: rgba(255,255,255,.08); overflow: hidden; border-radius: 2px; }
.loader__bar i { display: block; height: 100%; width: 0; background: var(--grad); }
.loader__pct { font-family: var(--f-mono); font-size: 10px; color: var(--txt-2); letter-spacing: .2em; }

/* ---------- 6. Progress bar ---------- */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  z-index: 95;
  background: var(--grad);
  box-shadow: 0 0 14px rgba(34, 211, 238, .85);
}
/* 彗星头 */
.progress::after {
  content: ''; position: absolute; right: -3px; top: 50%;
  width: 34px; height: 12px; transform: translateY(-50%);
  background: radial-gradient(closest-side, rgba(34, 211, 238, .95), transparent 72%);
  filter: blur(2px);
  pointer-events: none;
}

/* ---------- 6b. 视口 HUD 装饰层 ---------- */
.bg-scan {
  position: fixed; left: 0; right: 0; height: 34vh;
  z-index: 1; pointer-events: none;
  background: linear-gradient(180deg,
    transparent,
    rgba(34, 211, 238, .028) 42%,
    rgba(34, 211, 238, .075) 50%,
    rgba(34, 211, 238, .028) 58%,
    transparent);
  animation: scanBeam 11s linear infinite;
  mix-blend-mode: screen;
}
.bg-hud { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
.bg-hud i {
  position: absolute; width: 24px; height: 24px;
  border: 1px solid rgba(34, 211, 238, .34);
  animation: glowPulse 4.6s ease-in-out infinite;
}
.bg-hud i:nth-child(1) { top: calc(var(--nav-h) + 16px); left: 18px; border-right: 0; border-bottom: 0; }
.bg-hud i:nth-child(2) { top: calc(var(--nav-h) + 16px); right: 18px; border-left: 0; border-bottom: 0; animation-delay: .8s; }
.bg-hud i:nth-child(3) { bottom: 18px; left: 18px; border-right: 0; border-top: 0; animation-delay: 1.6s; }
.bg-hud i:nth-child(4) { bottom: 18px; right: 18px; border-left: 0; border-top: 0; animation-delay: 2.4s; }
.hud-tag {
  position: fixed; right: 18px; bottom: 56px; z-index: 3;
  writing-mode: vertical-rl;
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .34em;
  color: rgba(92, 106, 128, .8);
  text-transform: uppercase;
  pointer-events: none;
  animation: flicker 7s linear infinite;
}

/* ---------- 7. Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 11.5px;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--cy);
}
.eyebrow::before {
  content: ''; width: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cy));
}
.grad-txt {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mono { font-family: var(--f-mono); }

/* ---------- 8. Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: calc(var(--nav-h) + 22px);
  padding-bottom: 84px;
}
.hero__in { width: 100%; }

.hero__tag {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 16, 30, .6);
  backdrop-filter: blur(10px);
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: .16em; color: var(--txt-1); text-transform: uppercase;
  margin-bottom: 30px;
  opacity: 0; animation: rise .9s var(--e-out) .15s forwards;
}

.hero__title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(30px, 8.6vw, 124px);
  line-height: .96;
  letter-spacing: .01em;
  white-space: nowrap;
  margin: 0 0 6px;
  position: relative;
  opacity: 0; animation: rise 1s var(--e-out) .28s forwards;
}
.hero__title .ch {
  display: inline-block;
  background: linear-gradient(110deg, #FFFFFF 0%, #AFD9F5 28%, #4E7FB8 46%, #8B5CF6 64%, #22D3EE 82%, #FFFFFF 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 62px rgba(56, 189, 248, .35);
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0) rotate(var(--rz, 0deg));
  transition: transform .35s var(--e-out), filter .35s;
  animation: titleShimmer 7s linear infinite;
}
.hero__title:hover .ch { filter: drop-shadow(0 0 22px rgba(34,211,238,.85)); }
.hero__title.glitch .ch { animation: titleShimmer 7s linear infinite, glitchX .3s steps(2, end) 1; }
@keyframes titleShimmer { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }
@keyframes glitchX {
  0% { transform: translate3d(var(--mx,0px), var(--my,0px), 0) translate(0,0); }
  25% { transform: translate3d(var(--mx,0px), var(--my,0px), 0) translate(-3px, 1px); }
  50% { transform: translate3d(var(--mx,0px), var(--my,0px), 0) translate(3px, -1px); }
  75% { transform: translate3d(var(--mx,0px), var(--my,0px), 0) translate(-2px, 0); }
  100% { transform: translate3d(var(--mx,0px), var(--my,0px), 0) translate(0,0); }
}

.hero__sub {
  max-width: 660px;
  font-size: clamp(15px, 1.9vw, 19px);
  color: var(--txt-1);
  line-height: 1.85;
  margin: 26px 0 0;
  opacity: 0; animation: rise .9s var(--e-out) .42s forwards;
}
.hero__sub b { color: var(--txt-0); font-weight: 500; }

.hero__role {
  font-family: var(--f-mono);
  font-size: clamp(13px, 1.6vw, 15px);
  color: var(--cy);
  letter-spacing: .1em;
  margin-top: 20px;
  min-height: 1.6em;
  opacity: 0; animation: rise .9s var(--e-out) .52s forwards;
}
.hero__role .caret { display: inline-block; width: 8px; background: var(--cy); animation: blink 1s steps(1) infinite; margin-left: 2px; }

.hero__cta {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: 40px;
  opacity: 0; animation: rise .9s var(--e-out) .62s forwards;
}

.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 26px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  letter-spacing: .04em;
  overflow: hidden;
  transition: transform .3s var(--e-out), box-shadow .3s, border-color .3s, color .3s;
  border: 1px solid transparent;
}
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn--primary {
  background: var(--grad);
  color: #04060D; font-weight: 700;
  box-shadow: 0 8px 30px -8px rgba(34, 211, 238, .65);
}
.btn--primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.55) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform .8s var(--e-out);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px rgba(34, 211, 238, .9); }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--ghost {
  border-color: var(--line-hi);
  background: rgba(10, 16, 30, .5);
  backdrop-filter: blur(10px);
  color: var(--txt-0);
}
.btn--ghost:hover { border-color: var(--cy); color: var(--cy); transform: translateY(-2px); box-shadow: 0 0 26px -6px rgba(34,211,238,.6); }

.hero__stats {
  display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 62px);
  margin-top: 52px; padding-top: 26px;
  border-top: 1px solid var(--line);
  opacity: 0; animation: rise .9s var(--e-out) .74s forwards;
}
.stat__n {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(26px, 3.4vw, 38px); line-height: 1;
  color: var(--txt-0);
}
.stat__n em { font-style: normal; font-size: .62em; color: var(--cy); margin-left: 2px; }
.stat__l { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; color: var(--txt-2); text-transform: uppercase; margin-top: 9px; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .3em;
  color: var(--txt-2); text-transform: uppercase;
  opacity: 0; animation: rise 1s var(--e-out) 1s forwards;
}
.hero__scroll i { width: 1px; height: 40px; background: linear-gradient(180deg, var(--cy), transparent); position: relative; overflow: hidden; }
.hero__scroll i::after {
  content: ''; position: absolute; top: -50%; left: 0; width: 100%; height: 50%;
  background: #fff; animation: drop 1.9s var(--e-io) infinite;
}

/* ---------- 9. Section shell ---------- */
.section { position: relative; padding: clamp(88px, 13vw, 160px) 0; }
.section--tint { background: linear-gradient(180deg, transparent, rgba(8, 12, 24, .72) 18%, rgba(8, 12, 24, .72) 82%, transparent); }

.sec-head { margin-bottom: clamp(40px, 6vw, 66px); }
.sec-head__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sec-title {
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 700; line-height: 1.15;
  margin: 14px 0 0; letter-spacing: -.01em;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1s var(--e-out);
}
.sec-head.is-in .sec-title { clip-path: inset(0 0 0 0); }
.sec-desc { max-width: 470px; color: var(--txt-1); font-size: 15px; margin: 12px 0 0; }
.sec-idx { font-family: var(--f-mono); font-size: 11px; color: var(--txt-2); letter-spacing: .2em; }

/* ---------- 10. About ---------- */
.about { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 76px); align-items: start; }
.about__p { color: var(--txt-1); font-size: 16px; line-height: 1.95; }
.about__p + .about__p { margin-top: 20px; }
.about__p b { color: var(--txt-0); font-weight: 500; }
.about__p code {
  font-family: var(--f-mono); font-size: .88em;
  padding: 2px 7px; border-radius: 5px;
  background: rgba(34, 211, 238, .1);
  color: var(--cy); border: 1px solid rgba(34, 211, 238, .2);
}

.about__meta { display: grid; gap: 14px; margin-top: 34px; }
.meta-row { display: flex; gap: 14px; align-items: baseline; font-size: 14px; padding-bottom: 13px; border-bottom: 1px dashed rgba(140,180,230,.14); }
.meta-row dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: .15em; color: var(--txt-2); text-transform: uppercase; min-width: 92px; }
.meta-row dd { margin: 0; color: var(--txt-1); }

.panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: linear-gradient(160deg, rgba(19, 27, 46, .74), rgba(8, 12, 22, .86));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: clamp(22px, 3vw, 32px);
}
/* HUD 角标 */
.panel::before, .panel::after {
  content: ''; position: absolute; width: 14px; height: 14px;
  border: 1px solid var(--cy); opacity: .55;
  transition: opacity .35s, width .35s, height .35s;
}
.panel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-radius: var(--r-l) 0 0 0; }
.panel::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-radius: 0 0 var(--r-l) 0; }
.panel:hover::before, .panel:hover::after { opacity: 1; width: 24px; height: 24px; }

.panel__title {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .22em;
  color: var(--txt-2); text-transform: uppercase; margin: 0 0 22px;
  display: flex; align-items: center; gap: 10px;
}
.panel__title::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.skills { display: grid; gap: 17px; }
.skill__top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.skill__top span:first-child { color: var(--txt-0); }
.skill__top span:last-child { font-family: var(--f-mono); font-size: 11px; color: var(--cy); }
.skill__track { height: 4px; border-radius: 4px; background: rgba(255,255,255,.07); overflow: hidden; }
.skill__fill {
  height: 100%; width: 0; border-radius: 4px;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(34, 211, 238, .6);
  transition: width 1.4s var(--e-out);
}

.stack { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .05em;
  padding: 6px 12px; border-radius: 7px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.028);
  color: var(--txt-1);
  transition: all .3s var(--e-out);
}
.chip:hover { color: var(--cy); border-color: rgba(34,211,238,.5); background: rgba(34,211,238,.09); transform: translateY(-2px); }

/* ---------- 11. Projects ---------- */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: linear-gradient(165deg, rgba(19, 27, 46, .76), rgba(8, 12, 22, .86));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: clamp(24px, 3vw, 34px);
  overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 268px;
  transition: transform .5s var(--e-out), border-color .4s, box-shadow .5s;
  transform-style: preserve-3d;
}
.card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(34,211,238,.13), transparent 66%);
  opacity: 0; transition: opacity .45s;
  pointer-events: none;
}
.card:hover { border-color: rgba(34,211,238,.42); box-shadow: 0 22px 60px -26px rgba(34,211,238,.55); }
.card:hover::after { opacity: 1; }

/* 悬停扫描光带 */
.card::before {
  content: ''; position: absolute; left: 0; right: 0; top: -42%; height: 42%;
  background: linear-gradient(180deg, transparent, rgba(34, 211, 238, .11), transparent);
  opacity: 0; transition: opacity .4s;
  pointer-events: none;
}
.card:hover::before { opacity: 1; animation: cardScan 2.4s linear infinite; }
@keyframes cardScan { 0% { transform: translateY(0); } 100% { transform: translateY(360%); } }

.card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.card__ico {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--grad-soft);
  border: 1px solid rgba(34,211,238,.28);
  color: var(--cy);
  flex-shrink: 0;
}
.card__ico svg { width: 21px; height: 21px; }
.card__no { font-family: var(--f-mono); font-size: 11px; color: var(--txt-2); letter-spacing: .18em; }

.card__en {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .26em;
  color: var(--txt-2); text-transform: uppercase;
  margin: 24px 0 0;
}
.card__en::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.card__title { font-size: clamp(19px, 2.1vw, 22px); font-weight: 600; margin: 11px 0 10px; letter-spacing: -.01em; }
.card__desc { color: var(--txt-1); font-size: 14px; line-height: 1.8; flex: 1; margin: 0; }
.card__stat {
  display: inline-flex; align-items: center; gap: 9px;
  align-self: flex-start;
  margin-top: 16px; padding: 7px 12px;
  border-radius: 8px;
  background: rgba(34, 211, 238, .075);
  border: 1px solid rgba(34, 211, 238, .2);
  font-family: var(--f-mono); font-size: 11.5px; color: #A8ECF8; letter-spacing: .04em;
  transition: background .4s, border-color .4s;
}
.card__stat b { color: var(--cy); font-weight: 600; }
.card:hover .card__stat { background: rgba(34, 211, 238, .14); border-color: rgba(34, 211, 238, .45); }
.card__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.card__tags span {
  font-family: var(--f-mono); font-size: 10.5px; color: var(--txt-2);
  padding: 4px 9px; border: 1px solid var(--line); border-radius: 5px;
  letter-spacing: .05em;
}
.card__go {
  position: absolute; right: 22px; bottom: 22px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  color: var(--txt-1);
  opacity: 0; transform: translate(-6px, 6px);
  transition: all .4s var(--e-out);
}
.card__go svg { width: 14px; height: 14px; }
.card:hover .card__go { opacity: 1; transform: none; border-color: var(--cy); color: var(--cy); }

/* ---------- 12. Blog ---------- */
.posts { display: grid; gap: 2px; border-top: 1px solid var(--line); }
.post {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: clamp(16px, 3vw, 34px);
  align-items: center;
  padding: 26px 18px 26px 4px;
  border-bottom: 1px solid var(--line);
  transition: padding-left .45s var(--e-out), background .4s;
}
.post::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--grad); transform: scaleY(0); transform-origin: 50% 0;
  transition: transform .45s var(--e-out);
}
.post:hover { padding-left: 22px; background: linear-gradient(90deg, rgba(34,211,238,.05), transparent 72%); }
.post:hover::before { transform: scaleY(1); }
.post__date { font-family: var(--f-mono); font-size: 11.5px; color: var(--txt-2); letter-spacing: .07em; white-space: nowrap; }
.post__title { font-size: clamp(16px, 2.1vw, 20px); font-weight: 500; margin: 0 0 7px; transition: color .3s; }
.post:hover .post__title { color: var(--cy); }
.post__excerpt { color: var(--txt-1); font-size: 13.5px; margin: 0; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post__meta { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; align-items: center; }
.post__meta span { font-family: var(--f-mono); font-size: 10px; color: var(--txt-2); border: 1px solid var(--line); padding: 3px 8px; border-radius: 4px; }
.post__meta span.is-src {
  color: var(--cy); border-color: rgba(34, 211, 238, .4);
  background: rgba(34, 211, 238, .08);
  display: inline-flex; align-items: center; gap: 5px;
}
.post__meta span.is-src::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--cy); box-shadow: 0 0 7px var(--cy);
  animation: pulse 2.2s ease-in-out infinite;
}
.post__date { display: flex; flex-direction: column; gap: 3px; }
.post__date b { font-weight: 500; color: var(--txt-1); font-size: 10.5px; letter-spacing: .14em; }
.post__arrow { color: var(--txt-2); transition: transform .4s var(--e-out), color .3s; }
.post__arrow svg { width: 18px; height: 18px; display: block; }
.post:hover .post__arrow { transform: translateX(6px); color: var(--cy); }

.posts__more { margin-top: 30px; display: flex; justify-content: center; }

/* ---------- 13. Contact ---------- */
.contact { text-align: center; padding-bottom: clamp(30px, 4vw, 52px); }
.contact__big {
  font-size: clamp(28px, 5.4vw, 62px);
  font-weight: 700; line-height: 1.2; letter-spacing: -.02em;
  margin: 20px 0 0;
}
.contact__mail {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 32px; padding: 15px 28px;
  border: 1px solid var(--line-hi); border-radius: 999px;
  font-family: var(--f-mono); font-size: clamp(13px, 1.7vw, 16px);
  letter-spacing: .04em;
  background: rgba(10, 16, 30, .55);
  backdrop-filter: blur(12px);
  transition: all .4s var(--e-out);
}
.contact__mail:hover { border-color: var(--cy); color: var(--cy); box-shadow: 0 0 36px -8px rgba(34,211,238,.8); transform: translateY(-3px); }
.contact__mail svg { width: 17px; height: 17px; }

.contact__loc {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap;
  margin-top: 22px;
  font-family: var(--f-mono);
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--txt-2);
}
.contact__loc span { display: inline-flex; align-items: center; gap: 9px; }
.contact__loc svg { width: 15px; height: 15px; color: var(--cy); }
.contact__loc > i { width: 4px; height: 4px; border-radius: 50%; background: var(--line-hi); }

.socials { display: flex; justify-content: center; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.social {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.028);
  color: var(--txt-1);
  transition: all .35s var(--e-out);
}
.social svg { width: 18px; height: 18px; }
.social:hover { color: var(--cy); border-color: rgba(34,211,238,.55); transform: translateY(-4px); box-shadow: 0 12px 26px -12px rgba(34,211,238,.9); }

.footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em;
  color: var(--txt-2);
}
.footer a:hover { color: var(--cy); }

/* ---------- 14. Ticker ---------- */
.ticker {
  position: relative;
  border-block: 1px solid var(--line);
  padding: 15px 0;
  overflow: hidden;
  background: rgba(8, 12, 24, .5);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker__row { display: flex; gap: 44px; width: max-content; animation: slide 34s linear infinite; }
.ticker__row span {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .2em;
  color: var(--txt-2); text-transform: uppercase;
  display: flex; align-items: center; gap: 14px; white-space: nowrap;
}
.ticker__row span::after { content: '◆'; font-size: 7px; color: rgba(34,211,238,.55); }
.ticker__row span:nth-child(3n) { color: rgba(34,211,238,.72); }

/* ---------- 15. Reveal motion ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--e-out), transform .9s var(--e-out);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 16. Article page ---------- */
.article-hero { padding-top: calc(var(--nav-h) + clamp(60px, 10vw, 120px)); padding-bottom: 40px; max-width: 900px; }
.article-hero__meta { display: flex; gap: 14px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; color: var(--txt-2); text-transform: uppercase; margin-bottom: 22px; }
.article-hero h1 { font-size: clamp(28px, 5vw, 54px); line-height: 1.2; letter-spacing: -.02em; margin: 0; font-weight: 700; }
.article-body { max-width: 760px; padding-bottom: 90px; }
.article-body h2 { font-size: clamp(20px, 2.6vw, 27px); margin: 52px 0 16px; letter-spacing: -.01em; }
.article-body h3 { font-size: 19px; margin: 36px 0 12px; color: var(--txt-0); }
.article-body p { color: var(--txt-1); line-height: 1.95; margin: 0 0 20px; }
.article-body strong { color: var(--txt-0); font-weight: 600; }
.article-body ul { color: var(--txt-1); line-height: 1.9; padding-left: 22px; margin: 0 0 22px; }
.article-body li { margin-bottom: 9px; }
.article-body li::marker { color: var(--cy); }
.article-body blockquote {
  margin: 28px 0; padding: 18px 24px;
  border-left: 2px solid var(--cy);
  background: rgba(34, 211, 238, .055);
  border-radius: 0 var(--r-m) var(--r-m) 0;
  color: var(--txt-1); font-style: italic;
}
.article-body pre {
  background: rgba(2, 5, 12, .82);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 20px 22px; overflow-x: auto;
  font-family: var(--f-mono); font-size: 13px; line-height: 1.75;
  color: #A9D6F0;
  margin: 0 0 24px;
}
.article-body code { font-family: var(--f-mono); font-size: .88em; }
.article-body p code, .article-body li code {
  padding: 2px 7px; border-radius: 5px;
  background: rgba(34, 211, 238, .1); color: var(--cy);
  border: 1px solid rgba(34, 211, 238, .2);
}
.back-link {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em;
  color: var(--txt-1); text-transform: uppercase;
  transition: color .3s, gap .3s var(--e-out);
}
.back-link:hover { color: var(--cy); gap: 14px; }
.back-link svg { width: 15px; height: 15px; }

/* 掘金原文卡片 */
.article-src {
  position: relative;
  margin: 30px 0 10px;
  padding: 20px 24px;
  border-radius: var(--r-m);
  border: 1px solid rgba(34, 211, 238, .26);
  background:
    radial-gradient(120% 180% at 100% 0%, rgba(34, 211, 238, .12), transparent 62%),
    rgba(10, 16, 30, .6);
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  overflow: hidden;
}
.article-src::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(34, 211, 238, .16) 50%, transparent 70%);
  transform: translateX(-130%);
  animation: shine 6s var(--e-out) infinite;
  pointer-events: none;
}
.article-src__txt { flex: 1; min-width: 220px; position: relative; }
.article-src__txt small {
  display: block; font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: .22em; color: var(--txt-2); text-transform: uppercase;
  margin-bottom: 7px;
}
.article-src__txt p { margin: 0; color: var(--txt-1); font-size: 14px; line-height: 1.7; }
.article-src .btn { position: relative; height: 44px; padding: 0 22px; }

/* 文章要点 */
.keypoints {
  margin: 26px 0 30px; padding: 22px 24px;
  border-radius: var(--r-m);
  border: 1px solid var(--line);
  background: rgba(10, 16, 30, .55);
}
.keypoints__t {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .22em;
  color: var(--cy); text-transform: uppercase; margin: 0 0 15px;
  display: flex; align-items: center; gap: 10px;
}
.keypoints__t::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.keypoints ul { margin: 0; padding-left: 20px; }
.keypoints li { color: var(--txt-1); font-size: 14.5px; line-height: 1.85; margin-bottom: 10px; }
.keypoints li:last-child { margin-bottom: 0; }
.keypoints li b { color: var(--txt-0); font-weight: 500; }

/* ---------- 17. Keyframes ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes drop { 0% { top: -50%; } 100% { top: 110%; } }
@keyframes slide { to { transform: translateX(-50%); } }
@keyframes navFlow { 0% { background-position: 0% 0; } 100% { background-position: 220% 0; } }
@keyframes ringPulse {
  0% { transform: scale(.72); opacity: .85; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}
@keyframes shine { 0% { transform: translateX(-130%); } 55%, 100% { transform: translateX(130%); } }
@keyframes scanBeam { 0% { transform: translateY(-30vh); } 100% { transform: translateY(110vh); } }
@keyframes orbitDot { to { transform: rotate(360deg); } }
@keyframes glowPulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes flicker {
  0%, 100% { opacity: 1; }
  42% { opacity: 1; }
  43% { opacity: .45; }
  45% { opacity: 1; }
  62% { opacity: 1; }
  63% { opacity: .6; }
  64% { opacity: 1; }
}

/* ---------- 18. Responsive ---------- */
@media (max-width: 1024px) {
  .about { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  :root { --nav-h: 64px; }
  .nav__links, .nav__status { display: none; }
  .bg-hud, .hud-tag { display: none; }
  .nav__burger { display: block; }
  .post { grid-template-columns: 1fr auto; gap: 14px; }
  .post__date { grid-column: 1 / -1; }
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 76px); padding-bottom: 80px; }
  .hero__scroll { display: none; }
  .hero__stats { gap: 30px 40px; margin-top: 46px; }
  .bg-grid { background-size: 44px 44px; }
  .footer { justify-content: center; text-align: center; }
}

@media (max-width: 640px) {
  /* 窄屏下代码块改为换行，避免横向被裁切 */
  .article-body pre {
    font-size: 11.5px; padding: 16px 14px;
    white-space: pre-wrap; overflow-wrap: anywhere;
  }
}

@media (max-width: 520px) {
  .hero__cta .btn { flex: 1 1 100%; justify-content: center; }
  .contact__mail { width: 100%; justify-content: center; }
  .article-src { padding: 18px; }
  .article-src .btn { width: 100%; justify-content: center; }
  .keypoints { padding: 18px; }
}

/* ---------- 19. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .skill__fill { width: var(--w, 0) !important; }
}

/* ---------- 22. 内页（博客文章） ---------- */
body.page-stars {
  background-color: var(--bg-0);
  background-image:
    radial-gradient(1.4px 1.4px at 11% 18%, rgba(255,255,255,.75), transparent),
    radial-gradient(1.6px 1.6px at 76% 12%, rgba(34,211,238,.8), transparent),
    radial-gradient(1.1px 1.1px at 41% 58%, rgba(255,255,255,.55), transparent),
    radial-gradient(1.8px 1.8px at 88% 68%, rgba(139,92,246,.75), transparent),
    radial-gradient(1.2px 1.2px at 24% 82%, rgba(255,255,255,.6), transparent),
    radial-gradient(1.5px 1.5px at 62% 34%, rgba(56,189,248,.7), transparent),
    radial-gradient(1px 1px at 53% 90%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.3px 1.3px at 33% 6%, rgba(255,255,255,.6), transparent),
    radial-gradient(1.5px 1.5px at 69% 47%, rgba(232,121,249,.6), transparent),
    radial-gradient(1px 1px at 92% 30%, rgba(255,255,255,.45), transparent),
    radial-gradient(1.2px 1.2px at 6% 55%, rgba(56,189,248,.55), transparent),
    radial-gradient(1px 1px at 82% 88%, rgba(255,255,255,.4), transparent);
  background-repeat: repeat;
  background-size: 620px 480px;
  background-attachment: fixed;
}
body.page-inner .nav {
  background: rgba(6, 9, 18, .8);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--line);
}
.article-foot {
  border-top: 1px solid var(--line);
  margin-top: 44px; padding-top: 30px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em;
  color: var(--txt-2);
}
.article-body .lead { font-size: 17px; color: var(--txt-0); line-height: 1.9; }
.toc { list-style: none; padding: 0; margin: 0; }
.toc li { margin-bottom: 10px; }
.toc a { color: var(--txt-1); border-bottom: 1px dashed rgba(140,180,230,.25); transition: color .3s, border-color .3s; }
.toc a:hover { color: var(--cy); border-color: var(--cy); }

/* ---------- 20. 预加载期间暂停首屏入场 ---------- */
body:not(.is-ready) .hero__tag,
body:not(.is-ready) .hero__title,
body:not(.is-ready) .hero__sub,
body:not(.is-ready) .hero__role,
body:not(.is-ready) .hero__cta,
body:not(.is-ready) .hero__stats,
body:not(.is-ready) .hero__scroll { animation-play-state: paused; }

/* ---------- 21. WebGL 不可用时的 CSS 星空兜底 ---------- */
.no-webgl body, html.no-webgl {
  background:
    radial-gradient(1.4px 1.4px at 12% 22%, rgba(255,255,255,.85), transparent),
    radial-gradient(1.6px 1.6px at 78% 14%, rgba(34,211,238,.9), transparent),
    radial-gradient(1.2px 1.2px at 42% 62%, rgba(255,255,255,.6), transparent),
    radial-gradient(1.8px 1.8px at 88% 71%, rgba(139,92,246,.85), transparent),
    radial-gradient(1.3px 1.3px at 26% 84%, rgba(255,255,255,.7), transparent),
    radial-gradient(1.5px 1.5px at 62% 38%, rgba(56,189,248,.8), transparent),
    var(--bg-0);
  background-repeat: repeat;
  background-size: 1200px 900px;
}

/* ============================================================
   22. 升级层：鼠标跟随光晕 + 文字动画
   ============================================================ */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 420px; height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 6;
  background: radial-gradient(circle,
    rgba(34, 211, 238, .18) 0%,
    rgba(139, 92, 246, .10) 38%,
    transparent 70%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity .35s var(--e-out);
  will-change: transform;
}
body.has-cursor-glow .cursor-glow { opacity: 1; }
@media (hover: none) { .cursor-glow { display: none; } }

/* 标题逐字光标高亮（已拆 .ch） */
.hero__title .ch {
  display: inline-block;
  will-change: transform, opacity;
}

/* 区块标题入场：逐字擦除式揭示（文字动画） */
.sec-title {
  background-image: linear-gradient(180deg, var(--txt-0), #cfe6ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sec-head.is-in .sec-title {
  animation: titleReveal 1s var(--e-out) both;
}
@keyframes titleReveal {
  from {
    clip-path: inset(0 100% 0 0);
    filter: blur(7px);
    transform: translateY(16px);
    opacity: .2;
  }
  to {
    clip-path: inset(0 0 0 0);
    filter: blur(0);
    transform: none;
    opacity: 1;
  }
}

/* 随笔卡片链接：鼠标悬停的辉光描边（鼠标跟随增强） */
.post {
  position: relative;
  overflow: hidden;
}
.post::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(220px circle at var(--px, 50%) var(--py, 50%), rgba(34, 211, 238, .14), transparent 60%);
  opacity: 0;
  transition: opacity .35s var(--e-out);
  pointer-events: none;
}
.post:hover::after { opacity: 1; }

