/* ============================================================
   CAPQHT API — docs
   黑 · 白渐变 / 白点阵背景 / 毛玻璃 / HarmonyOS Sans SC
   全站灰阶（无彩色相），层级靠亮度与透明度建立
   ============================================================ */

@font-face {
  font-family: "HarmonyOS Sans SC";
  src: url("fonts/harmonyos.woff2") format("woff2-variations"),
       url("fonts/harmonyos.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* — 底色 — */
  --bg: #050505;
  --bg-soft: #0a0a0a;
  --bg-elev: #101010;

  /* — 文字：白 → 灰阶 — */
  --tx: #f5f5f5;
  --tx-2: #b4b4b4;
  --tx-3: #868686;
  --tx-4: #5f5f5f;

  /* — 描边 / 玻璃 — */
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .22);
  --glass: linear-gradient(157deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .028) 46%, rgba(255, 255, 255, .058));
  --glass-flat: rgba(255, 255, 255, .04);

  /* — 强调：白 / 浅灰 — */
  --hi: #ffffff;
  --hi-2: #d6d6d6;
  --hi-3: #a3a3a3;

  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 10px;

  /* 视口自适应字号：同时参考宽与高，浏览器缩放后仍能铺满 */
  --fs-h1: clamp(42px, min(4.8vw, 6.6vh), 84px);
  --fs-h2: clamp(24px, min(2.2vw, 3.2vh), 40px);
  --fs-lede: clamp(15px, min(1.05vw, 1.45vh), 20px);
  --fs-body: clamp(13.5px, min(.92vw, 1.3vh), 16px);
  --fs-brand: clamp(25px, min(2vw, 2.9vh), 38px);
  --fs-mark: clamp(58px, min(4.4vw, 6.2vh), 92px);
  --fs-btn: clamp(13px, min(.95vw, 1.35vh), 16px);
  --h-btn: clamp(40px, min(3vw, 4.4vh), 54px);

  /* 全站统一使用 Harmony：不再引入等宽字体 */
  --mono: "HarmonyOS Sans SC", "HarmonyOS Sans", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --sans: "HarmonyOS Sans SC", "HarmonyOS Sans", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;

  --shadow: 0 30px 80px -32px rgba(0, 0, 0, .95);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ── 背景层：白色辉光 + 点阵 + 细网格 ─────────────────────── */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(62% 44% at 50% -12%, rgba(255, 255, 255, .13), transparent 70%),
    radial-gradient(40% 34% at 88% 4%, rgba(255, 255, 255, .06), transparent 72%),
    radial-gradient(50% 40% at 48% 110%, rgba(255, 255, 255, .05), transparent 74%),
    var(--bg);
}
/* 白点阵（主角） */
.bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .15) 1px, transparent 1.1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(130% 110% at 50% 0%, #000 6%, rgba(0, 0, 0, .62) 50%, rgba(0, 0, 0, .26) 100%);
  -webkit-mask-image: radial-gradient(130% 110% at 50% 0%, #000 6%, rgba(0, 0, 0, .62) 50%, rgba(0, 0, 0, .26) 100%);
}
/* 细网格（叠加在点阵之上，极淡） */
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 132px 132px;
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 10%, rgba(0, 0, 0, .4) 72%, rgba(0, 0, 0, .16) 100%);
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 10%, rgba(0, 0, 0, .4) 72%, rgba(0, 0, 0, .16) 100%);
}
.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .035;
  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");
}

/* 固定白色光晕：透过毛玻璃形成亮雾 */
.orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(90px);
  transition: transform 1.15s cubic-bezier(.22, 1, .36, 1);
}
.orb-a {
  width: 560px; height: 560px;
  top: 2%; left: 44%;
  background: radial-gradient(circle, rgba(255, 255, 255, .13), transparent 68%);
  transform: translate3d(calc(var(--slide, 0) * -64px), 0, 0);
}
.orb-b {
  width: 480px; height: 480px;
  top: 46%; left: 0%;
  background: radial-gradient(circle, rgba(255, 255, 255, .07), transparent 68%);
  transform: translate3d(calc(var(--slide, 0) * 42px), 0, 0);
}
.orb-c {
  width: 640px; height: 640px;
  top: 76%; left: 58%;
  background: radial-gradient(circle, rgba(255, 255, 255, .06), transparent 70%);
  transform: translate3d(calc(var(--slide, 0) * -34px), 0, 0);
}

::selection { background: rgba(255, 255, 255, .26); color: #fff; }

/* 任何代码类元素也统一用 Harmony，禁掉浏览器默认等宽字体 */
code, kbd, samp, pre, tt { font-family: var(--sans); }

/* ── 滚动条 ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .14);
  border-radius: 99px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .26); }

/* ── 通用玻璃 ──────────────────────────────────────────── */
.glass {
  position: relative;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-md);
  backdrop-filter: blur(26px) saturate(120%);
  -webkit-backdrop-filter: blur(26px) saturate(120%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .1),
    inset 0 -1px 0 rgba(0, 0, 0, .3),
    var(--shadow);
}
/* 顶部镜面高光 */
.glass::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .65), transparent);
  opacity: .5;
  pointer-events: none;
}

/* ── 顶栏 ──────────────────────────────────────────────── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 24px;
  background: rgba(5, 5, 5, .66);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(30px) saturate(130%);
  -webkit-backdrop-filter: blur(30px) saturate(130%);
}
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; color: inherit; }
.brand svg { display: block; width: 38px; height: 38px; }
.brand-name { font-size: 22px; font-weight: 800; letter-spacing: .01em; }
.brand-name span { color: var(--tx-3); font-weight: 700; }
.brand-tag {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--tx-4);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 8px;
  margin-left: 2px;
}

.topnav { display: flex; align-items: center; gap: 4px; margin-left: 14px; }
.topnav a {
  color: var(--tx-2);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 11px;
  border-radius: 8px;
  transition: color .18s, background .18s;
}
.topnav a:hover { color: var(--tx); background: rgba(255, 255, 255, .06); }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 12px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  font-size: 12px;
  color: var(--tx-2);
  text-decoration: none;
  white-space: nowrap;
}
.pill b { color: var(--tx); font-weight: 500; }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--tx-4); }
.pill .dot.ok { background: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, .9); }
.pill .dot.warn { background: #b9b9b9; box-shadow: 0 0 9px rgba(255, 255, 255, .45); }
.pill .dot.bad { background: #4a4a4a; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
a.pill:hover { border-color: var(--line-2); color: var(--tx); }

.icon-btn {
  width: 32px; height: 32px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--tx-2);
  cursor: pointer;
}

.progress {
  position: fixed;
  top: 61px; left: 0;
  height: 2px;
  width: 0%;
  z-index: 61;
  background: linear-gradient(90deg, #fff, #bdbdbd 60%, rgba(255, 255, 255, .2));
  box-shadow: 0 0 14px rgba(255, 255, 255, .5);
  transition: width .1s linear;
}

/* ── 布局：侧栏贴左满高，正文右移 ──────────────────────── */
.app { display: block; max-width: none; margin: 0; padding: 0; }

.sidebar {
  position: fixed;
  top: 62px;
  left: 0;
  bottom: 0;
  width: 368px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 12px 12px;
  border: none;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012) 42%, rgba(255, 255, 255, .022));
  backdrop-filter: blur(26px) saturate(120%);
  -webkit-backdrop-filter: blur(26px) saturate(120%);
  box-shadow: none;
  z-index: 50;
  overflow: hidden;
}
.sidebar::before { display: none; }
.sidebar-scroll { flex: 1; min-height: 0; overflow-y: auto; margin: -4px; padding: 4px; }
.sidebar-scroll::-webkit-scrollbar { width: 6px; }
.sidebar-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .12);
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.sidebar-scroll:hover::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .22); background-clip: padding-box; }

.content {
  margin-left: 368px;
  padding: 62px clamp(28px, 3.2vw, 72px) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.content > * { width: 100%; max-width: none; }
.content > section { padding-top: 68px; }
.content > footer { display: none; }

/* 视图：一次只显示一页，页面内部滚动，滚动不切页 */
.view { display: none; height: calc(100vh - 62px); overflow-y: auto; overflow-x: hidden; }
.view.active { display: block; }
.view::-webkit-scrollbar { width: 8px; }
.view::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
.doc-section-title { font-size: 13px; color: #fff; margin: 24px 0 10px; letter-spacing: .02em; }
.doc-fields { margin-top: 0; }

.search {
  position: relative;
  display: flex;
  align-items: center;
}
.search svg { position: absolute; left: 12px; color: var(--tx-4); pointer-events: none; }
.search input {
  width: 100%;
  height: 40px;
  padding: 0 54px 0 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .36);
  color: var(--tx);
  font-family: var(--sans);
  font-size: 13.5px;
  outline: none;
  transition: border-color .18s, background .18s;
}
.search input::placeholder { color: var(--tx-4); }
.search input:focus { border-color: rgba(255, 255, 255, .38); background: rgba(0, 0, 0, .5); }
.search kbd {
  position: absolute;
  right: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--tx-4);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
  background: rgba(255, 255, 255, .04);
}

.nav-group { margin-top: 18px; }
.nav-group + .nav-group {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.nav-group:first-child { margin-top: 6px; }
.nav-title {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tx-2);
  padding: 0 10px 8px;
  font-weight: 500;
}
.nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--tx-2);
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
  transition: color .16s, background .16s;
}
.nav a:hover { color: var(--tx); background: rgba(255, 255, 255, .055); }
.nav a.active {
  color: #fff;
  font-weight: 500;
  background: linear-gradient(90deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .02));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, .8);
}
/* 缩写：统一宽度的圆角标签，保证右侧中文名严格对齐 */
.nav-k {
  flex: 0 0 126px;
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .055);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.5;
  color: var(--tx-2);
  letter-spacing: 0;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: background .16s, border-color .16s, color .16s;
}
.nav a:hover .nav-k { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .18); }
.nav a.active .nav-k {
  background: rgba(255, 255, 255, .18);
  border-color: rgba(255, 255, 255, .34);
  color: #fff;
}
.nav-l {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}
.nav a.active .nav-k { color: rgba(255, 255, 255, .8); }
.nav .count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--tx-4);
}

.sidebar-foot {
  border-top: 1px solid var(--line);
  padding: 12px 4px 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--tx-4);
}
.sidebar-foot a { color: var(--tx-3); text-decoration: none; }
.sidebar-foot a:hover { color: #fff; }

/* ── 主内容 ────────────────────────────────────────────── */
main { min-width: 0; }

section { scroll-margin-top: 92px; }
.block { margin-bottom: 68px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--tx-3);
  margin-bottom: 18px;
}
.eyebrow .bar {
  width: 26px; height: 1px;
  background: linear-gradient(90deg, #fff, transparent);
}
.eyebrow .live-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 9px rgba(255, 255, 255, .9);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

h1 {
  font-size: var(--fs-h1);
  line-height: 1.08;
  letter-spacing: -.028em;
  font-weight: 700;
  margin: 0 0 20px;
  background: linear-gradient(174deg, #ffffff 4%, #ededed 42%, #9a9a9a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #ffffff, #dcdcdc 55%, #909090);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: var(--fs-lede);
  line-height: 1.78;
  color: var(--tx-2);
  max-width: 66ch;
  margin: 0 0 clamp(14px, 2vh, 26px);
}
.lede b { color: var(--tx); font-weight: 500; }

h2 {
  font-size: var(--fs-h2);
  letter-spacing: -.018em;
  font-weight: 600;
  margin: 0 0 8px;
  color: #fbfbfb;
}
.sub {
  color: var(--tx-3);
  font-size: 13.5px;
  margin: 0 0 26px;
  max-width: 68ch;
}
h3 {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: .005em;
  margin: 0 0 10px;
  color: #f2f2f2;
}

p { margin: 0 0 14px; color: var(--tx-2); }

a.link { color: #e8e8e8; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .3); }
a.link:hover { color: #fff; border-bottom-color: rgba(255, 255, 255, .6); }

/* ── Hero ──────────────────────────────────────────────── */
.hero { position: relative; padding-top: 6px; }

/* 介绍页：左侧内容 + 右侧整列事件卡 */
.intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(380px, 27vw, 520px);
  grid-template-rows: auto auto;
  column-gap: clamp(30px, 3vw, 56px);
  row-gap: clamp(16px, 2.2vh, 28px);
  align-items: stretch;
}
.intro-main { grid-column: 1; grid-row: 1; min-width: 0; align-self: start; }
.hero-copy { min-width: 0; }
.hero-side {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 356px;
  gap: 48px;
  align-items: start;
}

.live {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 18px;
  border-radius: 20px;
  overflow: hidden;
}
.live::after {
  content: "";
  position: absolute;
  right: -40px; top: -60px;
  width: 190px; height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .12), transparent 70%);
  filter: blur(16px);
  pointer-events: none;
}
.live-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--tx-2);
}
.live-src { font-size: 11px; color: var(--tx-4); letter-spacing: .04em; }

.live-main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.live-mag { display: flex; align-items: baseline; gap: 8px; }
.live-mag .m { font-size: 15px; color: var(--tx-3); }
.live-mag b {
  font-size: clamp(52px, 4.8vw, 84px);
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(172deg, #ffffff 6%, #dedede 58%, #9a9a9a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.live-mag b.placeholder {
  font-size: 32px;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: var(--tx-4);
  -webkit-text-fill-color: var(--tx-4);
}
.live-int { text-align: right; flex-shrink: 0; }
.live-int .k {
  display: block;
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--tx-4);
  margin-bottom: 2px;
}
.live-int .v {
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 600;
  line-height: 1;
  color: #fff;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.live-loc {
  font-size: clamp(15px, 1.15vw, 18px);
  color: var(--tx);
  margin: 14px 0 0;
  line-height: 1.45;
}

/* 近期事件列表（填充中部，提供更多真实数据） */
.live-recent { margin-top: 18px; }
.lr-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--tx-4);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.lr-list { list-style: none; margin: 0; padding: 0; }
.lr-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  font-size: 11.5px;
  color: var(--tx-3);
}
.lr-list li:last-child { border-bottom: 0; }
.lr-list .t { color: var(--tx-4); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.lr-list .p {
  flex: 1;
  min-width: 0;
  color: var(--tx-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lr-list .m { color: #fff; font-weight: 500; font-variant-numeric: tabular-nums; flex-shrink: 0; }

.live-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 10px 18px;
  margin: 0;
  padding: 16px 0 0;
  margin-top: auto;
  border-top: 1px solid var(--line);
}
.live-facts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.live-facts dt { font-size: 11px; color: var(--tx-4); white-space: nowrap; }
.live-facts dd {
  margin: 0;
  font-size: 12px;
  color: var(--tx-2);
  font-variant-numeric: tabular-nums;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  font-size: 10.5px;
  color: var(--tx-4);
  border-top: 1px solid var(--line);
}
.live-foot span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.endpoints {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 22px;
  max-width: min(620px, 100%);
}
.ep-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px 9px 14px;
  border-radius: 12px;
}
.proto-badge {
  flex-shrink: 0;
  width: 48px;
  padding: 3px 0;
  text-align: center;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .06);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--tx-2);
}
.ep-url {
  flex: 1;
  min-width: 0;
  font-size: clamp(12.5px, min(.95vw, 1.35vh), 15px);
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ep-row .copy { margin-left: auto; }

.stats-rows {
  margin-top: 12px;
  border-radius: 18px;
  overflow: hidden;
  padding: 0;
}
.sr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
}
.sr:last-child { border-bottom: none; }
.sr .k { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sr .k b {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--tx-3);
}
.sr .k i { font-style: normal; font-size: 11.5px; color: var(--tx-4); }
.sr .v {
  font-size: clamp(20px, min(1.6vw, 2.3vh), 30px);
  font-weight: 600;
  letter-spacing: -.02em;
  color: #fff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sr .v small { font-size: 12px; font-weight: 400; color: var(--tx-3); letter-spacing: 0; }

.cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: var(--h-btn);
  padding: 0 clamp(16px, 1.4vw, 24px);
  border-radius: 11px;
  font-family: var(--sans);
  font-size: var(--fs-btn);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .16s, filter .16s, background .16s, border-color .16s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  color: #080808;
  background: linear-gradient(150deg, #ffffff, #e2e2e2 62%, #c8c8c8);
  box-shadow: 0 12px 34px -14px rgba(255, 255, 255, .55), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.btn-primary:hover { filter: brightness(1.04); }
.btn-ghost {
  color: var(--tx);
  background: rgba(255, 255, 255, .05);
  border-color: var(--line);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .09); border-color: var(--line-2); }
.btn svg { opacity: .85; }

/* ── 舞台：整屏上下翻页 ────────────────────────────────── */
.stage {
  position: relative;
  height: calc(100vh - 62px);
  min-height: 600px;
  margin-bottom: 0;
}
.stage-viewport { height: 100%; overflow: hidden; overflow: clip; }
.track {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform .9s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}
.page {
  flex: 0 0 100%;
  height: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
}
.page-inner {
  width: 100%;
  max-height: 100%;
  padding: 20px 0 clamp(16px, 3vh, 32px);
  overflow-y: auto;
  scrollbar-width: none;
}
.page-inner::-webkit-scrollbar { width: 0; height: 0; }

/* 页内组件逐层入场（shown 保留到离场结束，避免翻页时中间留白） */
.stagger { opacity: 0; transform: translateY(18px); }
.page.shown .stagger {
  opacity: 1;
  transform: none;
  transition:
    opacity .75s cubic-bezier(.22, 1, .36, 1),
    transform .75s cubic-bezier(.22, 1, .36, 1);
  transition-delay: calc(var(--i, 0) * 90ms + 90ms);
}
.no-js .stagger { opacity: 1; transform: none; }

/* 品牌锁定：LOGO + CAPQHT API Server */
.brand-lockup { display: flex; align-items: center; gap: clamp(14px, 1.1vw, 20px); margin-bottom: clamp(20px, 2vh, 34px); }
.bl-mark {
  width: var(--fs-mark);
  height: var(--fs-mark);
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 12px 30px -14px rgba(0, 0, 0, .9);
}
.bl-text { display: flex; align-items: baseline; gap: clamp(8px, .7vw, 12px); flex-wrap: wrap; }
.bl-name {
  font-size: var(--fs-brand);
  font-weight: 600;
  letter-spacing: .02em;
  color: #fff;
  line-height: 1.05;
}
.bl-sub {
  font-size: var(--fs-brand);
  font-weight: 300;
  letter-spacing: .01em;
  color: var(--tx-3);
  line-height: 1.05;
}

/* 介绍页：三个运行指标（左列第二行） */
.intro-stats {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 12px;
  align-self: end;
}
.istat {
  padding: 15px 18px 14px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 116px;
}
.istat-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ik { font-size: 11.5px; color: var(--tx-3); letter-spacing: .02em; }
.iv {
  font-size: clamp(26px, 2.4vw, 38px);
  font-weight: 600;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.iv small { font-size: 12px; font-weight: 400; color: var(--tx-4); margin-left: 4px; letter-spacing: 0; }
.iv-sm { font-size: 12.5px; color: var(--tx-2); font-variant-numeric: tabular-nums; }
.if { font-size: 11px; color: var(--tx-4); line-height: 1.5; margin-top: auto; }

.minibars { display: flex; align-items: flex-end; gap: 3px; height: 44px; margin: 6px 0 2px; }
.minibars i {
  flex: 1;
  height: 6%;
  min-height: 3px;
  border-radius: 2px 2px 1px 1px;
  background: linear-gradient(180deg, #ffffff, #b6b6b6);
  transition: height .55s cubic-bezier(.22, 1, .36, 1), background .3s, opacity .3s;
}
.minibars i.bad { background: rgba(255, 255, 255, .22); }
.minibars i.idle { background: rgba(255, 255, 255, .07); }

/* 介绍页：分类入口 */
.intro-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.intro-cats a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: clamp(7px, .7vh, 10px) clamp(11px, 1vw, 15px);
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  color: var(--tx-2);
  text-decoration: none;
  font-size: clamp(12px, min(.9vw, 1.25vh), 15px);
  transition: color .18s, border-color .18s, background .18s;
}
.intro-cats a b { font-family: var(--mono); font-size: clamp(10px, min(.7vw, 1vh), 12px); color: var(--tx-4); font-weight: 500; }
.intro-cats a:hover { color: #fff; border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .07); }
.intro-cats a:hover b { color: #fff; }

/* 快速开始：三张组件卡 */
/* 快速开始：左侧竖轴三步 + 右侧响应示例/返回码 */
/* 快速开始：左侧竖轴三步 + 右侧响应示例/字段/返回码 */
.qs-layout {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(360px, 30vw, 470px);
  grid-template-rows: auto 1fr;
  column-gap: clamp(28px, 3vw, 48px);
  row-gap: clamp(16px, 2.6vh, 30px);
  align-items: start;
}
.qs-head { grid-column: 1; grid-row: 1; margin-bottom: 0; }
.qs-head h2 { margin-bottom: 10px; }
.qs-head .sub { font-size: clamp(12.5px, .95vw, 14px); line-height: 1.75; max-width: 74ch; margin-bottom: 0; color: var(--tx-3); }

.qs-steps {
  grid-column: 1;
  grid-row: 2;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(20px, 3.4vh, 44px);
  padding-left: 4px;
}
.qs-steps::before {
  content: "";
  position: absolute;
  left: 33px;
  top: 34px;
  bottom: 34px;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .1) 80%, rgba(255, 255, 255, 0));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.1s cubic-bezier(.22, 1, .36, 1) .15s;
}
.page.shown .qs-steps::before { transform: scaleY(1); }

.qstep {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  position: relative;
}
.qstep-num {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #060606;
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
  font-size: 18px;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 8px rgba(5, 5, 5, .95);
  transition: background .3s, color .3s, border-color .3s;
}
.qstep:hover .qstep-num { background: #fff; color: #0a0a0a; border-color: #fff; }
.qstep-body h3 { margin: 4px 0 8px; font-size: clamp(18px, 1.5vw, 24px); }
.qstep-body .qs-desc { margin: 0 0 12px; max-width: 56ch; }
.qstep-body .qcode { margin-bottom: 10px; }

/* 右侧面板 */
.qs-aside {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-height: 0;
  height: 100%;
}
.qs-panel { padding: 16px 18px 14px; border-radius: 16px; overflow: hidden; flex-shrink: 0; }
.qs-ph {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: #fff;
}
.qs-ph-tag { font-size: 10.5px; color: var(--tx-4); letter-spacing: .02em; }
.qs-json {
  margin: 12px 0 0;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.75;
  color: #cfcfcf;
  white-space: pre;
  overflow: auto;
}
.qs-json::-webkit-scrollbar { width: 6px; height: 6px; }
.qs-fields { list-style: none; margin: 10px 0 0; padding: 0; }
.qs-fields li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  font-size: 11.5px;
}
.qs-fields li:last-child { border-bottom: 0; }
.qs-fields b { color: #e8e8e8; font-weight: 500; min-width: 104px; flex-shrink: 0; }
.qs-fields span { color: var(--tx-3); }
.qs-codes { list-style: none; margin: 10px 0 0; padding: 0; }
.qs-codes li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  font-size: 12px;
}
.qs-codes li:last-child { border-bottom: 0; }
.qs-codes b { color: #fff; font-weight: 500; min-width: 34px; font-variant-numeric: tabular-nums; }
.qs-codes span { color: var(--tx-3); }

.qs-desc { font-size: 14px; color: var(--tx-3); line-height: 1.75; margin: 0 0 14px; }
.qcode {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(0, 0, 0, .5);
  padding: 13px 15px;
  overflow: hidden;
}
.qcode pre {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: #d6d6d6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Swagger 风格操作行：试一试 / 测延迟 / 新标签打开 */
.qs-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  min-height: 30px;
}
.qs-btn {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .07);
  color: #ededed;
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: background .16s, border-color .16s, color .16s;
}
.qs-btn:hover { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .42); color: #fff; }
.qs-btn.ghost { background: transparent; color: var(--tx-3); }
.qs-btn.ghost:hover { color: #fff; border-color: rgba(255, 255, 255, .32); }
.qs-btn[disabled] { opacity: .5; cursor: progress; }
.qs-result {
  font-size: 11.5px;
  color: var(--tx-3);
  font-variant-numeric: tabular-nums;
}
.qs-result.ok { color: #fff; }
.qs-result.bad { color: var(--tx-4); }

.qs-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--tx-2);
  text-decoration: none;
}
.qs-link .mono { font-family: var(--mono); font-size: 11.5px; }
.qs-link .arr { transition: transform .2s; color: var(--tx-4); }
.qs-link:hover { color: #fff; }
.qs-link:hover .arr { transform: translateX(4px); color: #fff; }

/* ── 端点详情页（hash 路由，单独成页） ─────────────────── */
.doc-view { padding-top: clamp(24px, 3.4vh, 42px); }
.doc-crumb { font-size: 12px; color: var(--tx-4); letter-spacing: .08em; margin-bottom: 12px; }
.doc-head-row { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }

/* 2026-11-14: 详情页方法角标加大到与标题文字通用视觉高度，并新增 WSS 角标 */
.doc-head-row .method {
  font-size: clamp(16px, 1.6vw, 26px);
  padding: .3em .55em;
  border-radius: .3em;
  letter-spacing: .05em;
}
.method.wss { color: #0a0a0a; background: #e6e6e6; border: 1px solid transparent; }
.doc-title { font-size: clamp(28px, 2.6vw, 42px); margin: 0; }
.doc-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.doc-line .copy { margin-left: 0; }
.doc-path { font-size: 15px; color: #fff; }
.doc-sub { font-size: 12px; color: var(--tx-4); }
.doc-desc { font-size: 15.5px; color: var(--tx-2); line-height: 1.9; max-width: 92ch; margin: 0 0 6px; white-space: pre-line; }
.doc-params { margin-top: 18px; }
.doc-actions { margin: 20px 0 0; }

.doc-fields { margin-top: 0; }
.doc-fields table { font-size: 15px; }
.doc-fields th { font-size: 12px; padding: 13px 18px; letter-spacing: .12em; }
.doc-fields td { padding: 14px 18px; font-size: 15px; line-height: 1.65; }
.doc-fields td code { font-size: 14px; padding: 2px 7px; }
.doc-fields .type { font-size: 13.5px; }
.doc-fields .req { font-size: 14px; color: var(--tx-3); text-align: center; }

.doc-sample {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, .5);
  overflow: hidden;
}
.doc-sample .code-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--tx-4);
}
.doc-sample .copy { margin-left: auto; }
.sample-note { font-style: normal; font-size: 10.5px; color: var(--tx-4); margin-left: 4px; }

/* 上游原样表格（如 Early-est） */
.sample-html { padding: 6px 10px 12px; overflow: auto; }
.sample-html table { width: 100%; border-collapse: collapse; font-size: 12px; }
.sample-html th,
.sample-html td {
  padding: 7px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  white-space: nowrap;
  color: var(--tx-3);
}
.sample-html th {
  color: #fff;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .02em;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.sample-html tbody tr:first-child { background: rgba(255, 255, 255, .04); }
.doc-sample pre {
  margin: 0;
  padding: 18px 20px;
  font-family: var(--mono);
  font-size: 14.5px;
  line-height: 1.9;
  color: #dcdcdc;
  overflow: auto;
}

/* ── 卡片 / 端点 ────────────────────────────────────────── */
.card { padding: 20px 22px; border-radius: var(--r-md); }

.eps { display: grid; gap: 12px; }
.ep {
  padding: 15px 18px 12px;
  border-radius: var(--r-md);
  scroll-margin-top: 84px;
  transition: transform .2s cubic-bezier(.2, .7, .2, 1), border-color .2s, box-shadow .2s;
}
.ep:target { border-color: rgba(255, 255, 255, .3); }
.ep:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .1),
    0 24px 50px -28px rgba(0, 0, 0, .95),
    0 0 0 1px rgba(255, 255, 255, .05),
    0 10px 40px -24px rgba(255, 255, 255, .16);
}
.ep-head { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.ep-path {
  font-family: var(--mono);
  font-size: 13.5px;
  color: #f2f2f2;
  letter-spacing: -.01em;
}
.ep-path .param { color: #b9b9b9; }
.ep-title { font-size: 13px; color: var(--tx-2); margin-left: auto; }

.method {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
  padding: 4px 7px;
  border-radius: 5px;
  border: 1px solid transparent;
  line-height: 1;
}
.method.get { color: #0a0a0a; background: #e6e6e6; }
.method.post { color: #ededed; background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .26); }
.method.ws { color: #e2e2e2; background: transparent; border: 1px dashed rgba(255, 255, 255, .4); }

.ep-desc { font-size: 13px; color: var(--tx-2); margin: 9px 0 0; line-height: 1.65; }
.ep-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; align-items: center; }
.ep-meta .try-btn { margin-left: auto; }
.tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .04em;
  color: var(--tx-3);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 7px;
}
.tag.warn { color: #dcdcdc; border-color: rgba(255, 255, 255, .26); background: rgba(255, 255, 255, .07); }

details.sample { margin-top: 12px; }
details.sample summary {
  cursor: pointer;
  font-size: 11.5px;
  color: #e2e2e2;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  letter-spacing: .04em;
}
details.sample summary::-webkit-details-marker { display: none; }
details.sample summary::before {
  content: "";
  width: 0; height: 0;
  border-left: 4px solid currentColor;
  border-top: 3.5px solid transparent;
  border-bottom: 3.5px solid transparent;
  transition: transform .2s;
}
details.sample[open] summary::before { transform: rotate(90deg); }
details.sample .code { margin-top: 10px; }

.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ── 代码块 ────────────────────────────────────────────── */
.code {
  position: relative;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .4));
  overflow: hidden;
}
.code-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .022);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--tx-4);
  text-transform: uppercase;
}
.code-head .lights { display: flex; gap: 5px; }
.code-head .lights i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.code pre {
  margin: 0;
  padding: 14px 16px;
  overflow: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.78;
  color: #dcdcdc;
  tab-size: 2;
}
.code pre::-webkit-scrollbar { height: 8px; }
.code pre .c1 { color: #6b6b6b; }      /* 注释 */
.code pre .k1 { color: #ffffff; }      /* 关键字 */
.code pre .s1 { color: #c9c9c9; }      /* 字符串 */
.code pre .n1 { color: #eaeaea; }      /* 数字 */
.code pre .p1 { color: #9d9d9d; }      /* 提示符 */

.copy {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: var(--tx-3);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .05em;
  cursor: pointer;
  transition: color .16s, border-color .16s, background .16s;
}
.copy:hover { color: #fff; border-color: rgba(255, 255, 255, .34); background: rgba(255, 255, 255, .09); }
.copy.done { color: #fff; border-color: rgba(255, 255, 255, .5); }

/* ── Tabs ──────────────────────────────────────────────── */
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: rgba(0, 0, 0, .34); border: 1px solid var(--line); width: fit-content; margin-bottom: 12px; }
.tab {
  padding: 5px 13px;
  border-radius: 7px;
  font-size: 12px;
  color: var(--tx-3);
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: var(--sans);
  transition: color .16s, background .16s;
}
.tab:hover { color: var(--tx-2); }
.tab.active {
  color: #fff;
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
}
.pane { display: none; }
.pane.active { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ── 字段表 ────────────────────────────────────────────── */
.tbl-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
th {
  text-align: left;
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--tx-4);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
  white-space: nowrap;
}
td { padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, .055); color: var(--tx-2); vertical-align: top; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255, 255, 255, .018); }
td code, p code, li code, .inline-code {
  font-family: var(--mono);
  font-size: .92em;
  color: #ededed;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
}
td.type { font-family: var(--mono); font-size: 11.5px; color: #a8a8a8; white-space: nowrap; }

/* ── 数据源实时面板 ─────────────────────────────────────── */
.src-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.src-legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--tx-4); margin-left: auto; }
.src-legend span { display: inline-flex; align-items: center; gap: 6px; }
.src-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 8px; }
.src {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  transition: border-color .2s, background .2s;
}
.src:hover { border-color: var(--line-2); background: rgba(255, 255, 255, .04); }
.src .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--tx-2); }
.src .up { font-family: var(--mono); font-size: 10px; color: var(--tx-4); }
.dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.dot.ok { background: #fff; box-shadow: 0 0 8px rgba(255, 255, 255, .75); }
.dot.bad { background: #444; box-shadow: 0 0 0 1px rgba(255, 255, 255, .28); }
.dot.idle { background: var(--tx-4); }
.skel { height: 38px; border-radius: 10px; background: linear-gradient(90deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .08), rgba(255, 255, 255, .03)); background-size: 200% 100%; animation: shine 1.4s infinite; }
@keyframes shine { to { background-position: -200% 0; } }

/* ── 提示条 ────────────────────────────────────────────── */
.note {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: linear-gradient(100deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .012));
  font-size: 12.5px;
  color: #dcdcdc;
  line-height: 1.7;
}
.note .ic { flex-shrink: 0; color: #fff; margin-top: 1px; }
.note b { color: #fff; }
.note.danger { border-color: rgba(255, 255, 255, .26); background: linear-gradient(100deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .015)); color: #efefef; }
.note.danger .ic { color: #fff; }

/* ── Try it 面板 ───────────────────────────────────────── */
.try-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.try-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, .26);
  background: rgba(255, 255, 255, .08);
  color: #ededed;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background .16s, border-color .16s, color .16s;
}
.try-btn:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .45); color: #fff; }
.try-btn[disabled] { opacity: .5; cursor: progress; }
.try-out { margin-top: 10px; display: none; }
.try-out.show { display: block; animation: fade .3s ease; }
.try-stat { display: flex; gap: 10px; font-family: var(--mono); font-size: 10.5px; color: var(--tx-4); padding: 0 2px 8px; flex-wrap: wrap; }
.try-stat .st { padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line); }
.try-stat .st.ok { color: #fff; border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .08); }
.try-stat .st.bad { color: #bdbdbd; border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .04); }

/* JSON 高亮（灰阶） */
.j-key { color: #ffffff; }
.j-str { color: #c2c2c2; }
.j-num { color: #ededed; }
.j-bool { color: #d0d0d0; }
.j-null { color: #7a7a7a; }
.j-punc { color: #8a8a8a; }

/* ── 页脚 ──────────────────────────────────────────────── */
footer {
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--tx-4);
}
footer a { color: var(--tx-3); text-decoration: none; }
footer a:hover { color: #fff; }
footer .fcol { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── 入场动画 ──────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
/* 无 JS / 不支持 IO 时直接显示，避免内容不可见 */
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ── 响应式 ────────────────────────────────────────────── */
/* 矮视口：压缩组件，保证整屏不溢出 */
@media (max-height: 880px) {
  :root { --fs-h1: clamp(30px, min(3.8vw, 5vh), 52px); }
  .brand-lockup { margin-bottom: 12px; }
  .endpoints { margin-bottom: 14px; }
  .intro-stats { margin-top: 12px; gap: 10px; }
  .istat { padding: 12px 15px; min-height: 100px; }
  .minibars { height: 36px; }

  /* 快速开始整屏压缩 */
  .qs-head h2 { font-size: 24px; }
  .qs-head { margin-bottom: 10px; }
  .qs-head .sub { margin-bottom: 0; font-size: 12.5px; }
  .qs-steps { gap: 10px; }
  .qs-steps::before { left: 23px; top: 24px; bottom: 24px; }
  .qstep { grid-template-columns: 46px minmax(0, 1fr); gap: 12px; }
  .qstep-num { width: 46px; height: 46px; font-size: 14px; box-shadow: 0 0 0 6px rgba(5, 5, 5, .95); }
  .qstep-body h3 { font-size: 16px; margin: 0 0 4px; }
  .qstep-body .qs-desc { margin-bottom: 8px; font-size: 12px; }
  .qstep-body .qcode { margin-bottom: 6px; }
  .qcode { padding: 8px 10px; }
  .qcode pre { font-size: 11.5px; }
  .qs-panel { padding: 12px 14px 10px; }
  .qs-json { font-size: 10.5px; line-height: 1.55; margin-top: 8px; }
  .qs-fields { margin-top: 6px; }
  .qs-fields li { padding: 3px 0; font-size: 11px; }
  .qs-codes { margin-top: 6px; }
  .qs-codes li { padding: 4px 0; font-size: 11.5px; }
}

@media (max-width: 1180px) {
  .intro-layout { grid-template-columns: minmax(0, 1fr); row-gap: 22px; }
  .intro-main { grid-column: 1; grid-row: 1; }
  .hero-side { grid-column: 1; grid-row: 2; }
  .intro-stats { grid-column: 1; grid-row: 3; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .intro-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .content { margin-left: 0; padding: 62px 20px 72px; }
  .content > section { padding-top: 44px; }
  .stage { height: auto; min-height: 0; }
  .stage-viewport { height: auto; overflow: visible; }
  .track { display: block; transform: none !important; transition: none; }
  .page { display: block; height: auto; margin-bottom: 46px; }
  .page:last-child { margin-bottom: 0; }
  .page-inner { padding: 0; max-height: none; }
  .stagger { opacity: 1; transform: none; }
  .qs-grid { grid-template-columns: 1fr; }
  .qs-grid.timeline { grid-template-columns: 1fr; gap: 26px; margin-bottom: 22px; }
  .qs-grid.timeline::before {
    left: 18px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, rgba(255, 255, 255, .4), rgba(255, 255, 255, .1) 80%, rgba(255, 255, 255, 0));
    transform: scaleY(0);
    transform-origin: top;
  }
  .page.shown .qs-grid.timeline::before { transform: scaleY(1); }
  .step { padding-top: 0; padding-left: 58px; }
  .sidebar {
    width: 320px;
    z-index: 55;
    transform: translateX(-104%);
    transition: transform .3s cubic-bezier(.2, .7, .2, 1);
    background: rgba(6, 6, 6, .96);
  }
  .sidebar.open { transform: none; }
  .icon-btn { display: flex; }
  .topnav { display: none; }
  .backdrop {
    position: fixed;
    inset: 62px 0 0;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(3px);
    z-index: 54;
    display: none;
  }
  .backdrop.show { display: block; }
}
@media (max-width: 680px) {
  body { font-size: 14px; }
  .content { padding: 78px 14px 60px; }
  h1 { font-size: 32px; }
  .lede { font-size: 15px; }
  .topbar { padding: 0 12px; gap: 8px; }
  .topbar-right { gap: 6px; }
  .topbar-right .pill:last-child { display: none; }
  #headPill { height: 27px; padding: 0 9px; font-size: 10.5px; }
  .brand-name { font-size: 13.5px; }
  .brand svg { width: 22px; height: 22px; }
  .card, .ep { padding: 14px; }
  .ep-title { display: none; }
  .brand-tag { display: none; }
  .baseurl { font-size: 12px; }
  .src-grid { grid-template-columns: 1fr 1fr; }
  h2 { font-size: 22px; }
  .block { margin-bottom: 56px; }
}
@media (max-width: 480px) {
  #headPill { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ── 服务器节点页 ───────────────────────────────────────── */
.srv-layout {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(24px, 3vw, 64px);
  align-items: center;
}
.srv-main { min-width: 0; }
.srv-eyebrow {
  font-size: 12.5px;
  color: var(--tx-3);
  letter-spacing: .18em;
  margin-bottom: clamp(12px, 2vh, 22px);
}
.srv-h1 {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 0 0 clamp(14px, 2.2vh, 24px);
  font-size: clamp(32px, min(3.1vw, 4.9vh), 54px);
  line-height: 1.14;
  font-weight: 600;
}
.srv-num {
  font-size: 1.72em;
  line-height: .92;
  background: linear-gradient(180deg, #ffffff 10%, rgba(255, 255, 255, .42));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.srv-h1-t { color: #fff; }
.srv-sub {
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.95;
  color: var(--tx-3);
  margin: 0 0 clamp(20px, 3vh, 30px);
}

.srv-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
  margin-bottom: clamp(16px, 2.4vh, 24px);
}
.srv-tab {
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 10px 6px;
  cursor: pointer;
  font-family: var(--sans);
  color: var(--tx-3);
  transition: background .2s, box-shadow .2s;
  text-align: center;
}
.srv-tab b {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 3px;
}
.srv-tab b i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3d3d3d;
  margin-right: 6px;
  vertical-align: 1px;
  transition: background .2s;
}
.srv-tab em {
  display: block;
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: .16em;
  color: var(--tx-4);
}
.srv-tab .lat {
  display: block;
  margin-top: 5px;
  font-size: 10.5px;
  color: var(--tx-3);
  font-variant-numeric: tabular-nums;
}
.srv-tab.on { background: rgba(255, 255, 255, .11); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.srv-tab.ok b i { background: #fff; }
.srv-tab.bad b i { background: #4a4a4a; }

.srv-node { border-top: 1px solid var(--line); padding-top: 16px; }
.srv-node-k { font-size: 10px; letter-spacing: .2em; color: var(--tx-4); margin-bottom: 8px; }
.srv-node-name { display: flex; align-items: baseline; gap: 10px; margin-bottom: 3px; }
.srv-node-name b { font-size: clamp(20px, 1.6vw, 26px); font-weight: 600; }
.srv-node-name span { font-size: 13px; color: var(--tx-3); }
.srv-node-region { font-size: 12px; color: var(--tx-4); margin-bottom: 14px; }
.srv-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.srv-metric span { display: block; font-size: 10.5px; color: var(--tx-4); letter-spacing: .1em; margin-bottom: 4px; }
.srv-metric b { font-size: clamp(16px, 1.3vw, 21px); font-weight: 500; font-variant-numeric: tabular-nums; }

.srv-globe { display: flex; align-items: center; justify-content: center; min-width: 0; }
.globe { width: 100%; max-width: 620px; height: auto; overflow: visible; }
.globe-grid { opacity: .9; }
.globe-nodes text {
  font-family: var(--sans);
  font-size: 11px;
  fill: #ececec;
  letter-spacing: .04em;
}
.globe-nodes .gn-dot { fill: #fff; }
.globe-nodes .gn-halo { fill: rgba(255, 255, 255, .18); }
.globe-nodes .gn-pulse {
  fill: none;
  stroke: rgba(255, 255, 255, .55);
  stroke-width: 1;
  transform-origin: center;
  animation: gnPulse 2.6s ease-out infinite;
}
@keyframes gnPulse {
  0% { r: 4; opacity: .8; }
  100% { r: 20; opacity: 0; }
}
.globe-arcs path { animation: arcFlow 3.4s linear infinite; }
@keyframes arcFlow { to { stroke-dashoffset: -40; } }

@media (max-width: 1080px) {
  .srv-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .srv-globe { order: -1; }
  .globe { max-width: 320px; }
}

.globe-nodes .gn-lat { fill: rgba(255,255,255,.5); font-size: 9.5px; letter-spacing: .04em; }
.globe-limb { fill: none; stroke: rgba(255,255,255,.05); }
.srv-note { margin-top: 14px; font-size: 10.5px; color: var(--tx-4); line-height: 1.6; }

.globe-grid { stroke: rgba(255,255,255,.15) !important; }
.globe-arcs { stroke: rgba(255,255,255,.42) !important; }
.globe-dots { opacity: .85; }

.sidebar-foot { flex-wrap: wrap; row-gap: 4px; }
.sidebar-foot .icp { width: 100%; font-size: 10px; color: var(--tx-4); text-decoration: none; letter-spacing: .02em; }
.sidebar-foot .icp:hover { color: var(--tx-2); }

.home-legal { grid-column: 1; display: flex; gap: 12px; align-items: center; margin-top: 10px; font-size: 10.5px; color: var(--tx-4); letter-spacing: .02em; }
.home-legal a { color: var(--tx-4); text-decoration: none; }
.home-legal a:hover { color: var(--tx-2); }


.icp-badge {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .03em;
  color: #ffffff;
  text-decoration: none;
  padding: 2px 0;
  transition: opacity .18s;
}
.icp-badge:hover { opacity: .72; }
@media (max-width: 760px) { .icp-badge { font-size: 11px; } }


/* 2026-11-14: 文档内嵌示意图（如 SASMEX 震中/烈度图） */
.doc-img-wrap { display: block; margin: 0 0 28px; }
.doc-img {
  display: block;
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0b0b0b;
}
