/* ============================================================================
   LoongRise · 个人站  ——  site.css
   深蓝 + 青绿 / 纯静态 / 无框架
   ---------------------------------------------------------------------------
   设计参考（学了什么写在这里，也是给后面维护的人看的）：
   · 8px 间距刻度 + clamp() 流体字号，一套令牌管全站（Dopefolio 的 html{font-size} 缩放思路的现代化做法）
   · 章节头「编号 + 细线 + 标题 + 右对齐副文」的栅格（参考站 + Dopefolio 的 heading-sec）
   · 卡片 hover 只动 3px 与描边，不动阴影大跳（varad 的克制感）
   · 移动端汉堡菜单 + 全屏面板（Dopefolio / WowFolio 的 header__main-ham-menu 模式）
   · 进场动画统一 IntersectionObserver + 一档缓动，尊重 prefers-reduced-motion
   ========================================================================== */

/* ---------------------------------------------------------------- 令牌 */
:root {
  /* 底色：越往下越深，形成纵深 */
  --bg-0: #03060d;
  --bg-1: #050a14;
  --bg-2: #08111f;
  --panel: #0a1322;
  --panel-2: #0d182a;

  /* 线 */
  --line: rgba(122, 178, 220, .13);
  --line-2: rgba(122, 178, 220, .26);
  --line-3: rgba(34, 211, 238, .45);

  /* 墨色（对比度全部 ≥ 4.5:1，见 04 无障碍） */
  --ink: #e9f3fb;      /* 正文强调 */
  --text: #b3c7d9;     /* 正文 */
  --muted: #8098ad;    /* 次要 */
  --faint: #6d8497;    /* 极小字/装饰 */

  /* 强调：青 + 绿 */
  --cyan: #22d3ee;
  --cyan-soft: #7ce8ff;
  --teal: #2dd4bf;
  --green: #34d399;
  --blue: #60a5fa;
  --violet: #a78bfa;
  --amber: #fbbf24;

  /* 间距 8 的倍数 */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  /* 字号 */
  --fs-hero: clamp(40px, 6.4vw, 78px);
  --fs-h2: clamp(26px, 3.4vw, 44px);
  --fs-h3: clamp(17px, 1.5vw, 20px);
  --fs-body: clamp(14px, 1.05vw, 15.5px);
  --fs-sm: 13px;
  --fs-xs: 12px;
  --fs-micro: 11px;
  --fs-num: clamp(34px, 4.6vw, 58px);

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1220px;
  --nav-h: 66px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-1: 0 18px 50px rgba(0, 0, 0, .38);
  --shadow-2: 0 30px 80px rgba(0, 0, 0, .5);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background: var(--bg-0);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "微软雅黑", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--text);
  background: var(--bg-1);
  overflow-x: clip;               /* 用 clip 不用 hidden：不破坏 sticky */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 背景：三团极淡的光 + 一层网格，网格用 mask 收边，别糊满屏 */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1100px 720px at 78% -8%, rgba(34, 211, 238, .10), transparent 62%),
    radial-gradient(820px 620px at 8% 18%, rgba(52, 211, 153, .06), transparent 60%),
    radial-gradient(1000px 800px at 50% 108%, rgba(96, 165, 250, .07), transparent 62%),
    linear-gradient(180deg, #04070f 0%, #050a14 48%, #03060d 100%);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(122, 178, 220, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 178, 220, .035) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(circle at 50% 12%, #000 0%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 12%, #000 0%, transparent 72%);
}

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, .3); color: #fff; }

/* 键盘可达：所有可交互元素统一焦点环 */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 跳转链接：键盘用户第一个 Tab 就能跳过导航
   注意：这里用 clip 藏，不用 left:-9999px —— 后者会被「横向溢出」检测判成布局塌了，
   而且某些浏览器里会把滚动条撑出来。 */
.skip {
  position: absolute; left: 0; top: 0; z-index: 999;
  padding: 12px 18px; border-radius: 0 0 10px 0;
  background: var(--cyan); color: #04121a; font-weight: 800; font-size: var(--fs-sm);
  transform: translateY(-110%);
  transition: transform .18s var(--ease);
}
.skip:focus,
.skip:focus-visible { transform: translateY(0); }

/* 等宽字体：所有编号 / 计量 / HUD 都用它，专业感的一半来自这里 */
.mono {
  font-family: ui-monospace, "Cascadia Code", Consolas, Menlo, monospace;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

/* 只给读屏看的文字 */
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------- 骨架 */
.wrap {
  width: min(var(--maxw), calc(100% - 48px));
  margin-inline: auto;
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 36px); }
}

section { position: relative; }
.sec { padding: var(--s10) 0; }
@media (max-width: 900px) { .sec { padding: var(--s8) 0; } }

/* 阅读进度条：一根 2px 的线，滚到哪亮到哪 */
#progress {
  position: fixed; top: 0; left: 0; z-index: 70;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--teal) 55%, var(--green));
  box-shadow: 0 0 12px rgba(34, 211, 238, .7);
  transition: width .08s linear;
  pointer-events: none;
}

/* 章节编号水印：超大的 01/02 压在区块右侧，给版式一点编辑部味 */
.sec[data-no]::after {
  content: attr(data-no);
  position: absolute;
  right: max(24px, calc((100vw - var(--maxw)) / 2 - 20px));
  top: calc(var(--s10) - 18px);
  font-family: ui-monospace, Consolas, monospace;
  font-size: clamp(90px, 13vw, 190px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.04em;
  color: rgba(122, 178, 220, .05);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.sec > .wrap { position: relative; z-index: 1; }
@media (max-width: 900px) { .sec[data-no]::after { display: none; } }

/* 回到顶部 */
.totop {
  position: fixed; right: 22px; bottom: 22px; z-index: 65;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(8, 17, 31, .9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--cyan-soft);
  opacity: 0; transform: translateY(10px) scale(.9); pointer-events: none;
  transition: opacity .25s, transform .25s, border-color .2s;
}
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { border-color: var(--line-3); color: #fff; }
.totop svg { width: 16px; height: 16px; }

/* 章节头：编号 + 细线 + 大标题 ／ 右侧副文（两栏到底） */
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  gap: var(--s7);
  align-items: end;
  margin-bottom: var(--s7);
  position: relative;
  padding-top: var(--s5);
}
.sec-head::before {
  content: "";
  position: absolute; left: 0; top: 0;
  width: 190px; height: 1px;
  background: linear-gradient(90deg, rgba(34, 211, 238, .75), rgba(52, 211, 153, .3), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.1s var(--ease);
}
.sec-head.in::before { transform: scaleX(1); }

.sec-label {
  display: flex; align-items: center; gap: 12px;
  color: var(--faint); font-size: var(--fs-micro);
  margin-bottom: var(--s4);
}
.sec-label .idx {
  display: inline-grid; place-items: center;
  min-width: 30px; height: 20px; padding: 0 6px;
  border: 1px solid var(--line-2); border-radius: 5px;
  color: var(--cyan-soft); letter-spacing: .06em;
}
.sec-label .ln {
  width: 34px; height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}
.sec-title {
  font-size: var(--fs-h2);
  line-height: 1.2;
  letter-spacing: -.02em;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.sec-title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--cyan-soft), var(--teal) 60%, var(--green));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sec-sub {
  margin: 0; color: var(--muted);
  font-size: var(--fs-sm); line-height: 1.95;
  text-wrap: pretty;
}
@media (max-width: 820px) {
  .sec-head { grid-template-columns: 1fr; gap: var(--s4); align-items: start; }
  .sec-sub { max-width: 62ch; }
}

/* 章节之间的细分割线 */
.divider { height: 1px; width: min(var(--maxw), calc(100% - 48px)); margin: 0 auto; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }

/* ---------------------------------------------------------------- 顶栏 */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: linear-gradient(180deg, rgba(4, 8, 16, .82), rgba(4, 8, 16, .5));
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  border-bottom: 1px solid var(--line);
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.nav::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .5), rgba(52, 211, 153, .3), transparent);
  opacity: .8;
}
.nav.scrolled {
  background: linear-gradient(180deg, rgba(4, 8, 16, .96), rgba(4, 8, 16, .82));
  border-bottom-color: var(--line-2);
  box-shadow: 0 14px 44px rgba(0, 0, 0, .4);
}
.nav-in {
  width: min(var(--maxw), calc(100% - 48px));
  margin-inline: auto;
  display: flex; align-items: center; gap: var(--s4);
}

.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img {
  width: 30px; height: 30px; object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(34, 211, 238, .55));
}
.brand-txt { font-size: 16px; font-weight: 800; letter-spacing: .2px; color: var(--ink); }
.brand-txt em { font-style: normal; color: var(--cyan); }
.brand-tag {
  font-size: var(--fs-micro); color: var(--faint);
  padding-left: 10px; margin-left: 4px;
  border-left: 1px solid var(--line-2);
}
@media (max-width: 1100px) { .brand-tag { display: none; } }

.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a {
  position: relative;
  font-size: var(--fs-sm); color: var(--text);
  padding: 8px 12px; border-radius: 8px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav-links a .no {
  font-family: ui-monospace, Consolas, monospace;
  font-size: var(--fs-micro); color: var(--cyan);
  margin-right: 5px; opacity: .85;
}
.nav-links a:hover { color: var(--cyan-soft); background: rgba(34, 211, 238, .07); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px;
  height: 1px; background: linear-gradient(90deg, var(--cyan), transparent);
}
@media (max-width: 960px) { .nav-links { display: none; } }

.nav-cta {
  margin-left: var(--s4);
  padding: 9px 18px; border-radius: 999px;
  font-size: var(--fs-sm); font-weight: 700;
  color: #04121a;
  background: linear-gradient(100deg, var(--cyan), var(--green));
  box-shadow: 0 0 24px rgba(34, 211, 238, .26);
  transition: transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 0 38px rgba(34, 211, 238, .42); }
@media (max-width: 720px) { .nav-cta { display: none; } }

/* 汉堡 */
.burger {
  display: none;
  width: 40px; height: 40px; margin-left: auto;
  border: 1px solid var(--line-2); border-radius: 10px;
  position: relative;
}
.burger span {
  position: absolute; left: 11px; right: 11px; height: 1.5px;
  background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 19.5px; }
.burger span:nth-child(3) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
@media (max-width: 960px) { .burger { display: block; } }

/* 移动端菜单面板 */
.mmenu {
  position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 55;
  background: rgba(4, 8, 16, .97);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-2);
  padding: var(--s4) 0 var(--s6);
  display: none;
}
.mmenu.open { display: block; }
.mmenu a {
  display: flex; align-items: baseline; gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink); font-size: 16px; font-weight: 700;
}
.mmenu a .no { font-family: ui-monospace, Consolas, monospace; font-size: var(--fs-micro); color: var(--cyan); }
.mmenu a small { margin-left: auto; color: var(--faint); font-size: var(--fs-xs); font-weight: 400; }

/* ---------------------------------------------------------------- Hero */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + var(--s8));
  padding-bottom: var(--s7);
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: clip;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: var(--s7);
  align-items: center;
}
@media (max-width: 980px) {
  .hero { padding-top: calc(var(--nav-h) + var(--s7)); min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: var(--s6); }
}

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-micro); color: var(--cyan-soft);
  padding: 7px 14px 7px 11px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(34, 211, 238, .05);
  margin-bottom: var(--s5);
}
.kicker .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, .12);
  animation: pulse 2.8s ease-in-out infinite;
  flex: none;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(52, 211, 153, .02); opacity: .6; } }

.hero h1 {
  margin: 0 0 var(--s5);
  font-size: var(--fs-hero);
  line-height: 1.06;
  letter-spacing: -.035em;
  font-weight: 900;
  color: var(--ink);
  text-wrap: balance;
}
.hero h1 .grad {
  background: linear-gradient(100deg, #ffffff 0%, var(--cyan-soft) 38%, var(--teal) 68%, var(--green) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead {
  max-width: 34em;
  margin: 0 0 var(--s6);
  color: var(--text);
  font-size: clamp(14.5px, 1.2vw, 17px);
  line-height: 1.95;
  text-wrap: pretty;
}
.hero .lead b { color: var(--ink); font-weight: 700; }
.hero .lead code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: .92em; color: var(--cyan-soft);
  background: rgba(34, 211, 238, .09);
  border: 1px solid var(--line); border-radius: 5px;
  padding: 1px 5px;
}

.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px;
  font-size: 14px; font-weight: 700;
  border: 1px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s, color .2s;
}
.btn-main {
  color: #04121a;
  background: linear-gradient(100deg, var(--cyan), var(--green));
  box-shadow: 0 0 28px rgba(34, 211, 238, .22), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn-main:hover { transform: translateY(-2px); box-shadow: 0 0 44px rgba(34, 211, 238, .36), inset 0 1px 0 rgba(255, 255, 255, .55); }
.btn-ghost {
  color: var(--ink);
  border-color: var(--line-2);
  background: rgba(255, 255, 255, .015);
}
.btn-ghost:hover { border-color: var(--line-3); color: #fff; background: rgba(34, 211, 238, .06); }
.btn .arw { transition: transform .2s; }
.btn:hover .arw { transform: translateX(3px); }

.hero-meta {
  margin-top: var(--s6);
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  font-size: var(--fs-micro); color: var(--faint);
}
.hero-meta b { color: var(--text); font-weight: 600; }

/* Hero 右侧：轨道系统（纯 CSS + SVG，不用 canvas，省性能） */
.orbit {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  display: grid; place-items: center;
}
.orbit-hud {
  position: absolute; inset: 0 0 auto 0;
  display: flex; justify-content: space-between; gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-micro); color: var(--faint);
}
.orbit-hud .live { display: inline-flex; align-items: center; gap: 7px; color: var(--cyan-soft); }
.orbit-hud .live::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 9px var(--cyan);
  animation: blink 2.8s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: .3; } }

.orbit-stage {
  position: relative;
  width: 78%; aspect-ratio: 1;
  display: grid; place-items: center;
}
.ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.ring:nth-child(1) { inset: 0; }
.ring:nth-child(2) { inset: 12%; border-style: dashed; border-color: rgba(122, 178, 220, .16); }
.ring:nth-child(3) { inset: 26%; border-color: rgba(34, 211, 238, .2); }

.spin {
  position: absolute; inset: 0;
  animation: spin 46s linear infinite;
}
.spin.rev { animation-direction: reverse; animation-duration: 64s; }
@keyframes spin { to { transform: rotate(360deg); } }

.node {
  position: absolute;
  left: 50%; top: 0;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(8, 17, 31, .92);
  font-size: var(--fs-micro); color: var(--text);
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .45);
}
.node b { color: var(--cyan-soft); font-weight: 700; letter-spacing: .08em; }
.node i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
  flex: none;
}
/* 节点落在圆周上：用 rotate + translateY 定位，文字反向转回来 */
.node.n1 { top: 0; }
.node.n2 { top: 50%; left: 100%; }
.node.n3 { top: 100%; left: 50%; }
.node.n4 { top: 50%; left: 0; }
.spin .node { animation: unspin 46s linear infinite; }
.spin.rev .node { animation: unspin 64s linear infinite reverse; }
@keyframes unspin { to { transform: translate(-50%, -50%) rotate(-360deg); } }

.core {
  position: relative; z-index: 2;
  width: 42%; aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(34, 211, 238, .18), rgba(8, 17, 31, .9) 62%);
  border: 1px solid rgba(34, 211, 238, .28);
  box-shadow: 0 0 60px rgba(34, 211, 238, .18), inset 0 0 40px rgba(34, 211, 238, .08);
}
.core img {
  width: 56%; height: auto; object-fit: contain;
  filter: drop-shadow(0 0 22px rgba(34, 211, 238, .5));
  animation: floaty 8s ease-in-out infinite;
}
@keyframes floaty { 50% { transform: translateY(-7px); } }
.core::after {
  content: ""; position: absolute; inset: -14%;
  border-radius: 50%;
  border: 1px solid rgba(52, 211, 153, .18);
  animation: halo 5s ease-in-out infinite;
}
@keyframes halo { 50% { transform: scale(1.06); opacity: .35; } }

.hero-foot {
  margin-top: var(--s7);
  padding-top: var(--s4);
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 18px; align-items: center;
  font-size: var(--fs-micro); color: var(--faint);
  flex-wrap: wrap;
}
.hero-foot .scroll { display: inline-flex; align-items: center; gap: 10px; }
.hero-foot .scroll::before {
  content: ""; width: 30px; height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}
@media (max-width: 980px) { .hero-foot { margin-top: var(--s6); } .orbit { max-width: 380px; } }

/* ---------------------------------------------------------------- 数字条 */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 17, 31, .72), rgba(5, 10, 20, .5));
}
.stats-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
}
.stat {
  padding: var(--s6) var(--s4);
  border-left: 1px solid var(--line);
  position: relative;
}
.stat:first-child { border-left: 0; }
.stat-num {
  font-size: var(--fs-num);
  font-weight: 900; line-height: 1;
  letter-spacing: -.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  display: flex; align-items: baseline; gap: 4px;
}
.stat-num .unit { font-size: .36em; font-weight: 700; color: var(--cyan); letter-spacing: 0; }
.stat-label { margin-top: var(--s3); font-size: var(--fs-sm); color: var(--text); }
.stat-note { margin-top: 2px; font-size: var(--fs-micro); color: var(--faint); }
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-top: 1px solid var(--line); }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:first-child, .stat:nth-child(2) { border-top: 0; }
}
@media (max-width: 480px) {
  .stat { padding: var(--s5) var(--s3); }
}

/* ---------------------------------------------------------------- 卡片 */
.cards { display: grid; gap: var(--s4); }
.cards.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .cards.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards.c3, .cards.c2 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  padding: var(--s6) var(--s5) var(--s5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(13, 24, 42, .9), rgba(7, 13, 24, .82));
  transition: transform .3s var(--ease), border-color .3s, background .3s;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 16%; right: 16%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .6), transparent);
  opacity: .5; transition: opacity .3s;
}
/* 右下角切角，专业感的细节（学自参考站的 .card:after） */
.card::after {
  content: ""; position: absolute; right: 16px; bottom: 16px;
  width: 14px; height: 14px;
  border-right: 1px solid rgba(122, 178, 220, .26);
  border-bottom: 1px solid rgba(122, 178, 220, .26);
  opacity: .55; transition: opacity .3s, border-color .3s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); background: linear-gradient(180deg, rgba(16, 29, 50, .95), rgba(8, 15, 28, .9)); }
.card:hover::before { opacity: 1; }
.card:hover::after { opacity: 1; border-color: var(--line-3); }

.card .no { font-size: var(--fs-micro); color: var(--faint); letter-spacing: .12em; }
.card .ico {
  width: 40px; height: 40px; margin: var(--s4) 0 var(--s4);
  display: grid; place-items: center;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  background: rgba(34, 211, 238, .07);
}
.card .ico svg { width: 22px; height: 22px; }
.card h3 {
  margin: 0 0 var(--s3);
  font-size: var(--fs-h3); font-weight: 800; color: var(--ink);
  letter-spacing: -.01em;
}
.card p { margin: 0; font-size: var(--fs-sm); line-height: 1.9; color: var(--muted); }
.card .tags {
  margin-top: var(--s5); padding-top: var(--s3);
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 6px;
  font-size: var(--fs-micro); color: var(--faint);
  letter-spacing: .04em;
}
.card .tags span { padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; }

/* ---------------------------------------------------------------- 数据区 */
.proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: var(--s4);
}
@media (max-width: 980px) { .proof-grid { grid-template-columns: 1fr; } }

.chart-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(11, 21, 37, .92), rgba(6, 12, 22, .86));
  padding: var(--s5);
  min-width: 0;
}
.chart-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--s3); flex-wrap: wrap;
  margin-bottom: var(--s4);
}
.chart-head h3 {
  margin: 0; font-size: 15px; font-weight: 800; color: var(--ink);
  display: flex; align-items: center; gap: 9px;
}
.chart-head h3::before {
  content: ""; width: 3px; height: 14px; border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--green));
}
.chart-head .unit { font-size: var(--fs-micro); color: var(--faint); }
.chart-box { width: 100%; height: 300px; }
.chart-box.sm { height: 236px; }
@media (max-width: 640px) { .chart-box { height: 250px; } .chart-box.sm { height: 210px; } }

.chart-note {
  margin: var(--s4) 0 0;
  font-size: var(--fs-micro); color: var(--faint); line-height: 1.8;
}
.chart-note code {
  font-family: ui-monospace, Consolas, monospace;
  color: var(--cyan-soft); font-size: .95em;
}
.chart-fallback {
  display: grid; place-items: center; height: 100%;
  font-size: var(--fs-sm); color: var(--muted); text-align: center; padding: var(--s4);
}

/* 数据表（给读屏与「看不到图」的场景，也是 ECharts 挂了之后的兜底） */
.dtable { width: 100%; border-collapse: collapse; font-size: var(--fs-xs); }
.dtable th, .dtable td {
  text-align: left; padding: 6px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.dtable th { color: var(--faint); font-weight: 600; font-size: var(--fs-micro); letter-spacing: .08em; text-transform: uppercase; }
.dtable td.num { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
details.dwrap { margin-top: var(--s4); }
details.dwrap summary {
  cursor: pointer; font-size: var(--fs-xs); color: var(--muted);
  padding: 6px 0; list-style: none;
}
details.dwrap summary::-webkit-details-marker { display: none; }
details.dwrap summary::before { content: "▸ "; color: var(--cyan); }
details.dwrap[open] summary::before { content: "▾ "; }
details.dwrap summary:hover { color: var(--cyan-soft); }

/* 数据说明小卡 */
.proof-side { display: grid; gap: var(--s4); align-content: start; }
.proof-bottom {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s4);
  margin-top: var(--s4);
}
@media (max-width: 860px) { .proof-bottom { grid-template-columns: 1fr; } }

/* 最近几单 */
.recent-list { margin: 0; padding: 0; list-style: none; }
.recent-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
  font-size: var(--fs-xs);
}
.recent-list li:last-child { border-bottom: 0; }
.recent-list .rd { color: var(--cyan); font-size: var(--fs-micro); }
.recent-list .rt { color: var(--text); line-height: 1.6; }
.recent-list .rw { color: var(--faint); font-size: var(--fs-micro); white-space: nowrap; }
.note-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s5);
  background: rgba(8, 17, 31, .6);
}
.note-card h4 {
  margin: 0 0 var(--s3); font-size: var(--fs-sm); font-weight: 800; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.note-card h4 .k {
  font-family: ui-monospace, Consolas, monospace;
  font-size: var(--fs-micro); color: var(--cyan);
  padding: 1px 6px; border: 1px solid var(--line-2); border-radius: 4px;
}
.note-card p { margin: 0; font-size: var(--fs-xs); line-height: 1.9; color: var(--muted); }
.note-card ul { margin: 0; padding-left: 16px; font-size: var(--fs-xs); line-height: 1.9; color: var(--muted); }
.note-card li::marker { color: var(--cyan); }
.note-card code {
  font-family: ui-monospace, Consolas, monospace; font-size: .95em;
  color: var(--cyan-soft); word-break: break-all;
}

/* ---------------------------------------------------------------- 团队 */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 12px;
}.member {
  position: relative;
  padding: var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(10, 19, 34, .6);
  transition: border-color .25s, background .25s, transform .25s;
}
.member:hover { border-color: var(--line-2); background: rgba(14, 26, 46, .8); transform: translateY(-2px); }
.member-top { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.member-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 8px rgba(34, 211, 238, .8);
  flex: none;
}
.member-name { font-size: 14px; font-weight: 800; color: var(--ink); }
.member-scene {
  margin-left: auto;
  font-size: var(--fs-micro); color: var(--faint);
  padding: 1px 7px; border: 1px solid var(--line); border-radius: 999px;
  white-space: nowrap;
}
.member-duty { font-size: var(--fs-xs); line-height: 1.75; color: var(--muted); }

/* 本岗高亮 */
.member.me { border-color: rgba(34, 211, 238, .38); background: rgba(34, 211, 238, .06); }
.member.me .member-dot { background: var(--green); box-shadow: 0 0 10px var(--green); }
.member.me .member-name::after {
  content: "写这个站的人"; margin-left: 8px;
  font-size: var(--fs-micro); font-weight: 500; color: var(--green);
}

/* 场景条：10 个并行场景 + 各自面板数（真源：外壳\scenarios\*.json） */
.scene-strip {
  margin-top: var(--s5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 17, 31, .5);
  overflow: hidden;
}
.scene-strip-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s3); flex-wrap: wrap;
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-micro); color: var(--faint);
}
.scene-strip-head b { color: var(--text); font-weight: 600; }
.scene-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
}
.scene-item {
  padding: 12px var(--s4);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 8px;
  font-size: var(--fs-xs);
  transition: background .2s;
}
.scene-item:hover { background: rgba(34, 211, 238, .05); }
.scene-item .sname { color: var(--ink); font-weight: 700; }
.scene-item .sp { margin-left: auto; color: var(--cyan); font-family: ui-monospace, Consolas, monospace; font-size: var(--fs-micro); }
.scene-item .st { flex-basis: 100%; color: var(--faint); font-size: var(--fs-micro); line-height: 1.6; }

/* ---------------------------------------------------------------- 流程 */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  padding: var(--s5) var(--s4) var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(8, 17, 31, .5);
}
.step .n { font-size: var(--fs-micro); color: var(--cyan); letter-spacing: .14em; }
.step h4 { margin: 10px 0 6px; font-size: 14.5px; font-weight: 800; color: var(--ink); }
.step p { margin: 0; font-size: var(--fs-xs); line-height: 1.8; color: var(--muted); }
.step::after {
  content: ""; position: absolute; left: var(--s4); bottom: 0; width: 0; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  transition: width .5s var(--ease);
}
.step:hover::after { width: calc(100% - var(--s4) * 2); }

/* ---------------------------------------------------------------- 关于 */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: var(--s7);
  align-items: start;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: var(--s6); } }
.about-copy p { margin: 0 0 var(--s4); font-size: var(--fs-body); line-height: 1.95; color: var(--text); }
.about-copy p b { color: var(--ink); }
.about-copy blockquote {
  margin: var(--s5) 0 0;
  padding: var(--s3) 0 var(--s3) var(--s5);
  border-left: 2px solid rgba(34, 211, 238, .5);
  color: var(--ink); font-size: clamp(16px, 1.5vw, 19px);
  font-style: italic; line-height: 1.7;
}

.contact-card {
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  padding: var(--s5);
  background: rgba(34, 211, 238, .025);
}
.contact-card h3 { margin: 0 0 var(--s3); font-size: var(--fs-h3); font-weight: 800; color: var(--ink); }
.contact-card p { margin: 0 0 var(--s4); font-size: var(--fs-sm); line-height: 1.9; color: var(--muted); }
.contact-slot {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; margin-bottom: 8px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: rgba(5, 10, 20, .5);
  font-size: var(--fs-xs); color: var(--faint);
}
.contact-slot .k { color: var(--text); font-weight: 700; }
.contact-slot .v { margin-left: auto; }
.contact-card .hint { font-size: var(--fs-micro); color: var(--faint); margin: 0; }

/* ---------------------------------------------------------------- 页脚 */
.foot {
  border-top: 1px solid var(--line);
  padding: var(--s8) 0 var(--s5);
  background: rgba(3, 6, 13, .7);
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: var(--s7);
}
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: var(--s5); } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: var(--s3); }
.foot-brand img { width: 26px; height: 26px; object-fit: contain; }
.foot-brand b { font-size: 15px; color: var(--ink); }
.foot-desc { margin: 0; font-size: var(--fs-xs); line-height: 1.9; color: var(--muted); max-width: 40ch; }
.foot-col h4 {
  margin: 0 0 var(--s3); font-size: var(--fs-micro); color: var(--faint);
  letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
}
.foot-col a, .foot-col span {
  display: block; padding: 4px 0; font-size: var(--fs-xs); color: var(--text);
}
.foot-col a:hover { color: var(--cyan-soft); }
.foot-bottom {
  margin-top: var(--s6); padding-top: var(--s4);
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap;
  font-size: var(--fs-micro); color: var(--faint);
}

/* ---------------------------------------------------------------- 动效 */
/* 进场动画只在「JS 真的跑起来了」时才藏元素：
   html 上没有 .js 类 = 内容默认可见，脚本挂了也不会白屏；
   html 上有 .reveal-failsafe（内联脚本 3 秒后加）= 兜底强制显示。

   ⚠ 这里刻意用独立的 translate 属性，不用 transform：
     踩过的坑 —— .reveal.in{transform:none} 的权重（0,2,1）压过 .card:hover 的
     translateY(-4px)（0,2,0），导致卡片 hover 完全不位移。
     换成 translate 属性后，transform 空出来给 hover 用，两件事互不打架。 */
.reveal { opacity: 1; translate: 0 0; }
html.js .reveal {
  opacity: 0;
  translate: 0 30px;
  transition: opacity .8s var(--ease), translate .9s var(--ease);
}
html.js .reveal.in { opacity: 1; translate: 0 0; }
html.js.reveal-failsafe .reveal { opacity: 1 !important; translate: 0 0 !important; }
html.js .sec-head::before { transform: scaleX(0); }
html.js .sec-head.in::before { transform: scaleX(1); }
html.js.reveal-failsafe .sec-head::before { transform: scaleX(1) !important; }

@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 !important; transform: none !important; }
  .spin, .spin .node { animation: none !important; }
}

/* 高对比偏好：把线加粗一点 */
@media (prefers-contrast: more) {
  :root { --line: rgba(160, 200, 235, .3); --line-2: rgba(160, 200, 235, .5); --muted: #a8bccd; }
}
