/* ============================================================
   /assets/site.css — 共享外壳样式
   暗色仪表盘 · 左侧悬浮索引条 · 目录型内容地图
   ============================================================ */

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body,
h1, h2, h3, h4, h5, p,
ul, ol, li, figure, figcaption, blockquote, dl, dd {
  margin: 0;
}

ul, ol { padding: 0; list-style: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
}

input { font: inherit; }

img, svg, video { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

[hidden] { display: none !important; }

/* ---------- 变量 ---------- */
:root {
  --obsidian: #07090D;
  --rock: #11161F;
  --graphite: #1B2330;
  --silver: #8E99A8;
  --bone: #E9E4D8;
  --blue: #2F7BFF;
  --cyan: #35E0E8;
  --amber: #D9A441;
  --moss: #7FB88A;
  --clay: #C97B5A;

  --line: rgba(142, 153, 168, 0.18);
  --line-strong: rgba(142, 153, 168, 0.34);
  --ink-dim: rgba(233, 228, 216, 0.74);
  --ink-mute: rgba(142, 153, 168, 0.9);

  --font-heading: "Arial Narrow", "Helvetica Neue Condensed", "Noto Sans SC", sans-serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-pill: 999px;

  --shell: 1280px;
  --panel: linear-gradient(180deg, rgba(27, 35, 48, 0.92), rgba(11, 15, 22, 0.84));
  --shadow-float: 0 26px 70px -34px rgba(0, 0, 0, 0.95);
  --ease: cubic-bezier(0.22, 0.68, 0.31, 1);
}

/* ---------- 基础排版 ---------- */
body {
  min-height: 100vh;
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  background-color: var(--obsidian);
  background-image:
    repeating-linear-gradient(90deg, rgba(142, 153, 168, 0.055) 0 1px, transparent 1px 120px),
    repeating-linear-gradient(0deg, rgba(142, 153, 168, 0.045) 0 1px, transparent 1px 120px),
    radial-gradient(1100px 620px at 80% -8%, rgba(47, 123, 255, 0.20), transparent 62%),
    radial-gradient(760px 520px at 2% 106%, rgba(53, 224, 232, 0.10), transparent 66%),
    linear-gradient(180deg, #07090D 0%, #0A0E15 44%, #07090D 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
}

main { display: block; }

#main-content { scroll-margin-top: 96px; }

h1, h2, h3, h4 { font-weight: 400; line-height: 1.2; }

p { text-wrap: pretty; }

::selection { background: rgba(53, 224, 232, 0.28); color: #F6F4EE; }

:where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 工具类 ---------- */
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 300;
  padding: 10px 22px;
  border-radius: var(--r-pill);
  background: var(--cyan);
  color: #04070B;
  font-size: 13px;
  letter-spacing: 0.08em;
  transform: translate(-50%, -180%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { transform: translate(-50%, 0); }

/* ---------- 头部外壳 ---------- */
.site-header {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }

.read-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 6;
  pointer-events: none;
  background: rgba(142, 153, 168, 0.14);
}
.read-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--blue), var(--cyan) 68%, var(--amber));
  transition: transform 0.1s linear;
}

/* 品牌浮岛 */
.brand-island {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 15px 7px 9px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-float);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: conic-gradient(from 200deg, var(--blue), var(--cyan) 46%, var(--amber) 78%, var(--blue));
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 4px;
  background: var(--obsidian);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name {
  font-family: var(--font-heading);
  font-size: 15px;
  letter-spacing: 0.16em;
  color: var(--bone);
}
.brand-tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(142, 153, 168, 0.92);
}

.status-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px 4px 9px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(127, 184, 138, 0.34);
  background: rgba(127, 184, 138, 0.12);
  font-size: 11px;
  white-space: nowrap;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--moss);
  box-shadow: 0 0 0 3px rgba(127, 184, 138, 0.18);
  animation: statusPulse 4s ease-in-out infinite;
}
.status-label {
  letter-spacing: 0.08em;
  color: rgba(142, 153, 168, 0.95);
}
.status-value {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--moss);
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(127, 184, 138, 0.36); }
  50% { opacity: 0.72; box-shadow: 0 0 0 7px rgba(127, 184, 138, 0); }
}

/* 工具浮岛 */
.tool-island {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-float);
}

.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: rgba(7, 9, 13, 0.72);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.search-field:focus-within {
  border-color: rgba(53, 224, 232, 0.55);
  box-shadow: 0 0 0 3px rgba(53, 224, 232, 0.12);
}
.search-icon {
  position: relative;
  flex: none;
  width: 11px;
  height: 11px;
  border: 1.5px solid var(--silver);
  border-radius: 50%;
}
.search-icon::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 6px;
  height: 1.5px;
  background: var(--silver);
  transform: rotate(45deg);
}
.search-input {
  width: 178px;
  border: 0;
  background: transparent;
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 13px;
}
.search-input::placeholder { color: rgba(142, 153, 168, 0.86); }
.search-input:focus { outline: none; }
.search-input::-webkit-search-cancel-button { filter: invert(0.7); }

.search-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  white-space: nowrap;
}
.search-count[data-empty] { color: var(--clay); }

.drawer-trigger {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(217, 164, 65, 0.44);
  background: rgba(217, 164, 65, 0.12);
  color: var(--amber);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.drawer-trigger:hover {
  background: rgba(217, 164, 65, 0.22);
  border-color: rgba(217, 164, 65, 0.7);
  color: #F3DBA8;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  height: 38px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(53, 224, 232, 0.36);
  background: rgba(53, 224, 232, 0.10);
  color: #BFF7FA;
  font-size: 12px;
  letter-spacing: 0.1em;
  cursor: pointer;
}
.nav-toggle-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 14px;
}
.nav-toggle-bar {
  display: block;
  width: 14px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child { transform: translateY(2.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child { transform: translateY(-2.75px) rotate(-45deg); }

/* 左侧悬浮索引条 */
.site-nav {
  position: fixed;
  top: 118px;
  bottom: 26px;
  left: 18px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 92px;
  padding: 14px 8px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-float), inset 0 1px 0 rgba(233, 228, 216, 0.06);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(142, 153, 168, 0.4) transparent;
  transition: width 0.22s var(--ease), border-radius 0.22s var(--ease);
}
.site-nav::-webkit-scrollbar { width: 4px; }
.site-nav::-webkit-scrollbar-thumb { background: rgba(142, 153, 168, 0.4); border-radius: 4px; }

.nav-caption {
  display: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: rgba(142, 153, 168, 0.85);
  padding: 0 10px 8px;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item { min-width: 0; }

.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 9px 4px;
  border-radius: 16px;
  color: var(--silver);
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.nav-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: rgba(142, 153, 168, 0.68);
  transition: color 0.18s var(--ease);
}
.nav-label {
  font-size: 12.5px;
  letter-spacing: 0.04em;
  line-height: 1.35;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--bone);
  background: rgba(47, 123, 255, 0.16);
}
.nav-link:hover .nav-num { color: rgba(53, 224, 232, 0.9); }

.nav-link[aria-current="page"] {
  color: #05070A;
  background: linear-gradient(140deg, var(--blue), var(--cyan));
  box-shadow: 0 0 0 1px rgba(53, 224, 232, 0.45), 0 14px 30px -16px rgba(47, 123, 255, 0.9);
}
.nav-link[aria-current="page"] .nav-num { color: rgba(5, 7, 10, 0.62); }

.rail-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 8px 4px;
  border-radius: 14px;
  border: 1px dashed rgba(142, 153, 168, 0.32);
  color: var(--silver);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.rail-toggle:hover {
  color: var(--cyan);
  border-color: rgba(53, 224, 232, 0.5);
}

/* 索引条展开态 */
.site-header[data-rail="expanded"] .site-nav { width: 226px; border-radius: var(--r-md); }
.site-header[data-rail="expanded"] .nav-caption { display: block; }
.site-header[data-rail="expanded"] .nav-list { gap: 2px; }
.site-header[data-rail="expanded"] .nav-link {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 12px;
}
.site-header[data-rail="expanded"] .nav-num { font-size: 11px; }
.site-header[data-rail="expanded"] .nav-label { font-size: 13.5px; }
.site-header[data-rail="expanded"] .rail-toggle { justify-content: flex-start; padding-left: 12px; }

/* 帮助抽屉 */
.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 7;
  background: rgba(4, 6, 10, 0.6);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.drawer-scrim[data-open] { opacity: 1; }

.help-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 8;
  width: min(400px, 92vw);
  padding: 22px;
  overflow-y: auto;
  border-left: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #141A25, #0A0E15);
  box-shadow: -40px 0 80px -40px rgba(0, 0, 0, 0.95);
  transform: translateX(103%);
  transition: transform 0.24s var(--ease);
}
.help-drawer[data-open] { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.drawer-title {
  font-family: var(--font-heading);
  font-size: 20px;
  letter-spacing: 0.14em;
  color: var(--bone);
}
.drawer-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--silver);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.drawer-close:hover { color: var(--cyan); border-color: rgba(53, 224, 232, 0.55); }

.drawer-lead {
  margin: 16px 0 18px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-mute);
}

.drawer-links { display: grid; gap: 6px; }
.drawer-link {
  display: flex;
  align-items: center;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(27, 35, 48, 0.55);
  font-size: 13.5px;
  color: var(--ink-dim);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.drawer-link::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(53, 224, 232, 0.16);
}
.drawer-link:hover {
  color: var(--bone);
  border-color: rgba(53, 224, 232, 0.45);
  background: rgba(47, 123, 255, 0.16);
}

.drawer-contact {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}
.drawer-contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
}
.drawer-contact-key {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: rgba(142, 153, 168, 0.9);
}
.drawer-contact-value {
  color: var(--bone);
  overflow-wrap: anywhere;
}
.drawer-contact-note {
  font-size: 12px;
  line-height: 1.7;
  color: rgba(142, 153, 168, 0.9);
}

.copy-btn {
  flex: none;
  padding: 2px 9px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(53, 224, 232, 0.32);
  color: rgba(53, 224, 232, 0.92);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.copy-btn:hover { background: rgba(53, 224, 232, 0.14); color: #C6F9FB; }
.copy-btn.is-copied {
  background: var(--moss);
  border-color: var(--moss);
  color: #06120A;
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 120px);
  padding: clamp(36px, 5vw, 72px) clamp(16px, 4vw, 56px) 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(620px 280px at 10% 0%, rgba(47, 123, 255, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(27, 35, 48, 0.6), rgba(7, 9, 13, 0.98) 62%);
  color: var(--ink-mute);
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.35fr;
  gap: clamp(24px, 3vw, 48px);
  padding-bottom: clamp(28px, 4vw, 56px);
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 19px;
  letter-spacing: 0.18em;
  color: var(--bone);
}
.footer-statement {
  margin-top: 8px;
  font-size: 13.5px;
  color: rgba(53, 224, 232, 0.86);
  letter-spacing: 0.04em;
}
.footer-note {
  margin-top: 12px;
  max-width: 36ch;
  font-size: 12.5px;
  line-height: 1.75;
  color: rgba(142, 153, 168, 0.92);
}

.footer-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.26em;
  color: rgba(142, 153, 168, 0.95);
}

.footer-nav-list { display: grid; gap: 8px; }

.footer-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-dim);
  transition: color 0.18s var(--ease);
}
.footer-link::before {
  content: "";
  width: 10px;
  height: 1px;
  background: rgba(142, 153, 168, 0.45);
  transition: width 0.18s var(--ease), background 0.18s var(--ease);
}
.footer-link:hover { color: var(--cyan); }
.footer-link:hover::before { width: 18px; background: var(--cyan); }

.footer-contact-list { display: grid; gap: 10px; }
.footer-contact-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
}
.footer-contact-key {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: rgba(142, 153, 168, 0.9);
}
.footer-contact-value {
  color: var(--bone);
  overflow-wrap: anywhere;
}

.footer-base {
  max-width: var(--shell);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  padding: 18px 0 30px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: rgba(142, 153, 168, 0.88);
}
.footer-copyright { font-family: var(--font-mono); letter-spacing: 0.06em; }
.footer-meta { color: rgba(142, 153, 168, 0.8); }
.footer-icp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}
.footer-icp-label {
  padding: 1px 7px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(142, 153, 168, 0.95);
}

/* ---------- 通用页面骨架（页面阶段复用） ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 56px);
}

.section { padding: clamp(44px, 6vw, 96px) 0; }
.section--tight { padding: clamp(28px, 4vw, 56px) 0; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(20px, 3vw, 40px);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cyan);
}

.display-title {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bone);
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.12;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone);
}

.lead {
  max-width: 62ch;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.8;
  color: var(--ink-dim);
}

.stack > * + * { margin-top: 1.1em; }

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 32px);
}
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 24px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: 14px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: linear-gradient(120deg, var(--blue), var(--cyan));
  color: #05070A;
  font-weight: 600;
  box-shadow: 0 18px 40px -22px rgba(47, 123, 255, 0.95);
}
.btn--amber {
  background: rgba(217, 164, 65, 0.14);
  border-color: rgba(217, 164, 65, 0.5);
  color: var(--amber);
}
.btn--amber:hover {
  background: rgba(217, 164, 65, 0.24);
  border-color: rgba(217, 164, 65, 0.75);
  color: #F3DBA8;
}
.btn--ghost {
  border-color: var(--line-strong);
  color: var(--bone);
}
.btn--ghost:hover {
  border-color: rgba(53, 224, 232, 0.55);
  color: var(--cyan);
}

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--silver);
}
.tag--live {
  color: var(--moss);
  border-color: rgba(127, 184, 138, 0.42);
  background: rgba(127, 184, 138, 0.1);
}
.tag--warn {
  color: var(--clay);
  border-color: rgba(201, 123, 90, 0.44);
  background: rgba(201, 123, 90, 0.1);
}
.tag--info {
  color: var(--cyan);
  border-color: rgba(53, 224, 232, 0.36);
  background: rgba(53, 224, 232, 0.08);
}

/* 面包屑 */
.breadcrumbs { margin: 0 0 clamp(18px, 2vw, 28px); }
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
}
.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(142, 153, 168, 0.9);
}
.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: rgba(142, 153, 168, 0.45);
}
.breadcrumb-item a:hover { color: var(--cyan); }
.breadcrumb-item[aria-current="page"] { color: var(--bone); }

/* 页内章节高亮（配合 [data-spy-link]） */
[data-spy-link][aria-current] {
  color: var(--cyan);
  border-color: rgba(53, 224, 232, 0.5);
}

/* 图片容器 */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 120% at 22% 0%, rgba(47, 123, 255, 0.3), transparent 62%),
    linear-gradient(140deg, #131A26, #080B11 72%);
  box-shadow: inset 0 1px 0 rgba(233, 228, 216, 0.05);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgba(53, 224, 232, 0.14) 50%, transparent 58%);
}
.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 桌面端内容偏移 ---------- */
@media (min-width: 1024px) {
  body { padding-left: 132px; }
}

/* ---------- 平板 / 手机 ---------- */
@media (max-width: 1023px) {
  body { padding-left: 0; padding-bottom: 104px; }

  .brand-island {
    top: 12px;
    left: 12px;
    gap: 8px;
    padding: 6px 12px 6px 8px;
  }
  .brand-mark { width: 26px; height: 26px; border-radius: 8px; }
  .brand-mark::after { inset: 6px; }
  .brand-name { font-size: 13.5px; letter-spacing: 0.12em; }
  .brand-tagline { font-size: 9px; letter-spacing: 0.14em; }

  .tool-island {
    top: 12px;
    right: 12px;
    gap: 8px;
    padding: 7px;
  }
  .nav-toggle { display: inline-flex; }

  .site-nav {
    top: auto;
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding: 8px;
    border-radius: 24px;
    overflow: visible;
    transform: translateY(calc(100% + 28px));
    opacity: 0;
    visibility: hidden;
    transition: transform 0.24s var(--ease), opacity 0.2s var(--ease), visibility 0.24s linear;
  }
  .site-nav[data-open] {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .site-header[data-rail="expanded"] .site-nav { width: auto; border-radius: 24px; }
  .site-header[data-rail="expanded"] .nav-caption { display: none; }

  .nav-caption { display: none; }
  .nav-list {
    flex-direction: row;
    gap: 4px;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav-list::-webkit-scrollbar { display: none; }
  .nav-item { flex: 1 0 auto; }
  .nav-link {
    flex-direction: column;
    gap: 1px;
    padding: 7px 10px;
    min-width: 54px;
    border-radius: 14px;
  }
  .site-header[data-rail="expanded"] .nav-link {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 7px 10px;
  }
  .nav-num, .site-header[data-rail="expanded"] .nav-num { font-size: 9.5px; }
  .nav-label, .site-header[data-rail="expanded"] .nav-label { font-size: 11.5px; }
  .rail-toggle { display: none; }

  .help-drawer {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-height: 86vh;
    border-left: 0;
    border-top: 1px solid var(--line-strong);
    border-radius: 26px 26px 0 0;
    transform: translateY(103%);
  }
  .help-drawer[data-open] { transform: translateY(0); }

  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column: span 12; }
}

@media (max-width: 820px) {
  .search-field { display: none; }
  .footer-base { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 620px) {
  body { font-size: 15px; }
  .brand-tagline { display: none; }
  .status-label { display: none; }
  .status-chip { padding: 4px 9px; }
  .drawer-trigger { padding: 0 12px; font-size: 11.5px; }
  .nav-toggle { padding: 0 12px; font-size: 11.5px; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .section { padding: 36px 0; }
}

/* ---------- 无障碍：减少动画 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .status-dot { animation: none; }
  .read-progress-bar { transition: none; }
}
