/* ============================================================
   幻影登录 · 全站共享样式  /assets/site.css
   设计语言：暗场显影（Dark Field Development）
   深空底 → 夜蓝色带 → 幻影紫索引 → 霓虹青坐标
   ============================================================ */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background-color: #070B1A;
  background-image:
    radial-gradient(1200px 820px at 86% -12%, rgba(108, 76, 241, .24), transparent 68%),
    radial-gradient(900px 720px at 4% 4%, rgba(43, 227, 224, .09), transparent 66%),
    radial-gradient(1100px 900px at 50% 120%, rgba(36, 26, 77, .55), transparent 72%);
  background-repeat: no-repeat;
  color: #C9D2E3;
  font-family: system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

::selection { background: rgba(108, 76, 241, .55); color: #F2F5FC; }

:focus-visible {
  outline: 2px solid #2BE3E0;
  outline-offset: 3px;
  border-radius: 4px;
}

[id] { scroll-margin-top: calc(72px + 28px); }

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

/* ---------- 2. 变量 ---------- */
:root {
  /* 色彩体系 */
  --ink-900: #070B1A;   /* 深空底 */
  --ink-800: #0E1733;   /* 夜蓝层 */
  --ink-700: #241A4D;   /* 幻影深紫 */
  --violet: #6C4CF1;    /* 幻影紫 */
  --violet-soft: #A78BFA; /* 紫阶浅 */
  --silver: #C9D2E3;    /* 冷银灰 */
  --white: #F2F5FC;     /* 高光白 */
  --cyan: #2BE3E0;      /* 霓虹青 */
  --amber: #FF8A3D;     /* 暖橙 */
  --line: #39456E;      /* 线灰 */
  --line-12: rgba(57, 69, 110, .42);
  --line-06: rgba(57, 69, 110, .22);

  /* 字体栈 */
  --font-display: "Source Han Serif SC Semibold", "Noto Serif SC", "Songti SC", "SimSun", serif;
  --font-body: system-ui, "PingFang SC", "Microsoft YaHei", "Heiti SC", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-narrow: "Barlow Condensed", "Oswald", "Arial Narrow", system-ui, sans-serif;

  /* 尺寸 */
  --shell: 1360px;
  --measure: 1180px;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --pill: 999px;
  --gutter: clamp(20px, 4.5vw, 56px);
  --section-y: clamp(64px, 9vw, 140px);
  --header-h: 72px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

@media (min-width: 900px) {
  :root { --header-h: 84px; }
  [id] { scroll-margin-top: calc(84px + 32px); }
}

/* ---------- 3. 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }
.container--wide { max-width: var(--shell); }

.section {
  position: relative;
  padding-block: var(--section-y);
}
.section--tight { padding-block: clamp(40px, 5vw, 76px); }

.section--band {
  background: linear-gradient(180deg, var(--ink-800), rgba(14, 23, 51, .38));
  border-block: 1px solid var(--line-06);
}

.section--deep {
  background:
    radial-gradient(90% 62% at 12% 0%, rgba(36, 26, 77, .9), transparent 72%),
    radial-gradient(70% 60% at 100% 100%, rgba(43, 227, 224, .07), transparent 70%),
    var(--ink-800);
  border-block: 1px solid var(--line-06);
}

.stack { display: grid; gap: clamp(16px, 2.5vw, 28px); }
.stack--tight { gap: 10px; }
.stack--loose { gap: clamp(28px, 5vw, 64px); }

.grid { display: grid; gap: clamp(18px, 2.6vw, 32px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.grid--sidebar { grid-template-columns: 1fr; }

@media (min-width: 1000px) {
  .grid--sidebar {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: clamp(32px, 5vw, 76px);
  }
}

.divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--line-12), transparent);
}
.band {
  height: 1px;
  border: 0;
  margin: 0;
  opacity: .75;
  background: linear-gradient(90deg, transparent, rgba(108, 76, 241, .7), rgba(43, 227, 224, .45), transparent);
}

/* ---------- 4. 排版 ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 5vw, 64px);
  line-height: 1.14;
  letter-spacing: .02em;
  color: var(--white);
  margin: 0;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0;
}

.lede {
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.8;
  color: var(--silver);
  max-width: 38em;
  margin: 0;
}

.num {
  font-family: var(--font-narrow);
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
  color: var(--white);
}

.mono {
  font-family: var(--font-mono);
  font-size: .92em;
  letter-spacing: .02em;
}

.chapter-no {
  font-family: var(--font-narrow);
  font-size: clamp(72px, 14vw, 180px);
  line-height: .84;
  letter-spacing: .04em;
  color: rgba(167, 139, 250, .22);
  user-select: none;
}
@supports (-webkit-text-stroke: 1px #fff) {
  .chapter-no {
    color: transparent;
    -webkit-text-stroke: 1px rgba(167, 139, 250, .62);
  }
}

.section-head { display: grid; gap: 16px; max-width: 54rem; }
.section-head__no {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--cyan);
}
.section-head__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 5vw, 64px);
  line-height: 1.15;
  letter-spacing: .02em;
  color: var(--white);
  margin: 0;
}
.section-head__lede {
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.85;
  color: var(--silver);
  max-width: 38em;
  margin: 0;
}

.prose {
  max-width: 38em;
  color: var(--silver);
  font-size: 17px;
  line-height: 1.85;
}
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: .02em;
  color: var(--white);
  margin-top: 2em;
}
.prose h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--white);
  margin-top: 1.8em;
}
.prose strong { color: var(--white); font-weight: 600; }
.prose a {
  color: var(--violet-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(167, 139, 250, .45);
}
.prose a:hover { color: var(--cyan); border-bottom-color: var(--cyan); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .5em; }
.prose blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--violet);
  color: var(--white);
  font-family: var(--font-display);
}

/* ---------- 5. 按钮 / 标签 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .08em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease),
              color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn--accent {
  background: linear-gradient(120deg, var(--violet), #8B6BFF);
  color: var(--white);
  box-shadow: 0 14px 34px -16px rgba(108, 76, 241, .95);
}
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -18px rgba(108, 76, 241, 1); }
.btn--ghost {
  background: rgba(108, 76, 241, .12);
  border-color: rgba(167, 139, 250, .45);
  color: var(--white);
}
.btn--ghost:hover { background: rgba(108, 76, 241, .24); border-color: var(--violet-soft); }
.btn--line {
  background: transparent;
  border-color: var(--line);
  color: var(--silver);
}
.btn--line:hover { border-color: var(--cyan); color: var(--white); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 15px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: rgba(14, 23, 51, .65);
  color: var(--silver);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  line-height: 1.6;
  white-space: nowrap;
}
.pill--accent { color: var(--violet-soft); border-color: rgba(108, 76, 241, .55); background: rgba(108, 76, 241, .14); }
.pill--cyan { color: var(--cyan); border-color: rgba(43, 227, 224, .45); background: rgba(43, 227, 224, .1); }
.pill--warm { color: var(--amber); border-color: rgba(255, 138, 61, .45); background: rgba(255, 138, 61, .1); }
.pill__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-12);
  background: rgba(36, 26, 77, .7);
  color: var(--silver);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  line-height: 1.7;
}

/* ---------- 6. 跳过链接 ---------- */
.skip-link {
  position: fixed;
  left: 50%;
  top: -120px;
  transform: translateX(-50%);
  z-index: 200;
  padding: 10px 22px;
  border-radius: var(--pill);
  background: var(--violet);
  color: var(--white);
  font-size: 14px;
  letter-spacing: .1em;
  text-decoration: none;
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .9);
  transition: top .28s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- 7. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(7, 11, 26, .96), rgba(7, 11, 26, .82));
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.is-condensed {
  border-bottom-color: var(--line-12);
  background: linear-gradient(180deg, rgba(7, 11, 26, .99), rgba(14, 23, 51, .94));
  box-shadow: 0 24px 50px -34px rgba(0, 0, 0, .95);
}

.site-header__inner {
  position: relative;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  flex: 0 0 auto;
}
.brand__mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: radial-gradient(120% 120% at 20% 0%, #8B6BFF, var(--violet) 46%, #2B1F6B 100%);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1;
  box-shadow: 0 0 0 1px rgba(167, 139, 250, .42), 0 12px 28px -16px rgba(108, 76, 241, 1);
}
.brand__text { display: grid; gap: 2px; }
.brand__name {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.1;
  letter-spacing: .06em;
  color: var(--white);
}
.brand__since {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--cyan);
  opacity: .88;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 3;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--pill);
  border: 1px solid var(--line-12);
  background: rgba(36, 26, 77, .8);
  color: var(--white);
  font-size: 13px;
  letter-spacing: .16em;
  cursor: pointer;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.nav-toggle:hover { border-color: var(--violet-soft); }
.nav-toggle__bars { position: relative; display: block; width: 18px; height: 10px; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  border-radius: 2px;
  background: var(--cyan);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 4px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 4px; transform: rotate(-45deg); }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
}
.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav__item { position: relative; }
.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 9px 14px;
  border-radius: var(--pill);
  color: var(--silver);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-decoration: none;
  transition: color .25s var(--ease), background-color .25s var(--ease);
}
.site-nav__link:hover { color: var(--white); background: rgba(108, 76, 241, .16); }
.site-nav__link[aria-current="page"] {
  color: var(--white);
  background: rgba(108, 76, 241, .2);
}
.site-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  transform: translateX(-50%);
  background: var(--cyan);
}
.site-nav__note {
  display: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: rgba(201, 210, 227, .72);
}
.site-nav__cta { flex: 0 0 auto; }

.scroll-meter {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  overflow: hidden;
  background: var(--line-06);
}
.scroll-meter__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
}

@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 24px;
    padding: calc(var(--header-h) + 40px) var(--gutter) calc(48px + env(safe-area-inset-bottom, 0px));
    background:
      radial-gradient(120% 70% at 82% 0%, rgba(36, 26, 77, .98), rgba(7, 11, 26, .99) 62%),
      var(--ink-900);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s linear;
  }
  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
  .site-nav__item { border-bottom: 1px solid var(--line-06); }
  .site-nav__link {
    display: block;
    padding: 16px 4px;
    border-radius: 0;
    font-family: var(--font-display);
    font-size: clamp(22px, 6vw, 30px);
    letter-spacing: .06em;
    color: var(--silver);
  }
  .site-nav__link[aria-current="page"] { background: none; color: var(--cyan); }
  .site-nav__link[aria-current="page"]::after {
    left: 4px;
    bottom: 12px;
    width: 28px;
    transform: none;
  }
  .site-nav__note { display: block; }
  .site-nav__cta { align-self: flex-start; padding: 15px 32px; }
}

/* ---------- 8. 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 34px);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--pill);
  border: 1px solid rgba(167, 139, 250, .42);
  background: rgba(36, 26, 77, .92);
  color: var(--white);
  font-size: 13px;
  letter-spacing: .16em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  box-shadow: 0 22px 44px -26px rgba(0, 0, 0, .95);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s linear,
              background-color .3s var(--ease), border-color .3s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: rgba(108, 76, 241, .92); border-color: var(--violet-soft); }
.to-top__arrow {
  display: block;
  width: 9px;
  height: 9px;
  border-left: 1.5px solid var(--cyan);
  border-top: 1.5px solid var(--cyan);
  transform: rotate(45deg);
  margin-top: 3px;
}
.to-top__label { white-space: nowrap; }

/* ---------- 9. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 120px);
  background: linear-gradient(180deg, var(--ink-800), var(--ink-900) 72%);
  border-top: 1px solid var(--line-12);
  color: var(--silver);
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(43, 227, 224, .55), rgba(108, 76, 241, .5), transparent);
}

.site-footer__inner {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(48px, 7vw, 88px) var(--gutter) clamp(32px, 4vw, 56px);
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .site-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1080px) {
  .site-footer__inner {
    grid-template-columns: minmax(240px, 1.25fr) repeat(4, minmax(0, 1fr));
    gap: clamp(24px, 3vw, 44px);
  }
}

.site-footer__brand { display: grid; gap: 10px; align-content: start; }
.site-footer__name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: .06em;
  color: var(--white);
}
.site-footer__name::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 3px;
  background: var(--violet);
  box-shadow: 0 0 0 3px rgba(108, 76, 241, .22);
  flex: 0 0 auto;
}
.site-footer__since {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .2em;
  color: var(--cyan);
}
.site-footer__tagline {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--silver);
  max-width: 24em;
}
.site-footer__note {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(201, 210, 227, .72);
  max-width: 26em;
}

.footer-col { display: grid; gap: 14px; align-content: start; }
.footer-col__title {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .22em;
  color: var(--violet-soft);
}
.footer-col__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col__item { line-height: 1.7; }
.footer-col__link {
  color: var(--silver);
  font-size: 14.5px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.footer-col__link:hover { color: var(--white); border-bottom-color: var(--cyan); }

.contact-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  align-items: center;
  margin-bottom: 4px;
}
.contact-line__label {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--violet-soft);
}
.contact-line__value {
  grid-column: 1;
  font-size: 14px;
  line-height: 1.65;
  color: var(--white);
  word-break: break-word;
}
.copy-chip {
  grid-column: 2;
  grid-row: 2;
  padding: 4px 11px;
  border-radius: var(--pill);
  border: 1px solid rgba(167, 139, 250, .35);
  background: rgba(108, 76, 241, .14);
  color: var(--violet-soft);
  font-size: 11.5px;
  letter-spacing: .12em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.copy-chip:hover { background: rgba(108, 76, 241, .32); color: var(--white); }
.copy-chip[data-copy-state="done"] {
  color: var(--cyan);
  border-color: rgba(43, 227, 224, .6);
  background: rgba(43, 227, 224, .12);
}
.copy-chip[data-copy-state="fail"] {
  color: var(--amber);
  border-color: rgba(255, 138, 61, .6);
  background: rgba(255, 138, 61, .12);
}

.site-footer__bar {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 22px var(--gutter) 34px;
  border-top: 1px solid var(--line-06);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  font-size: 13px;
  color: rgba(201, 210, 227, .7);
}
.site-footer__copy { margin: 0; }
.site-footer__icp {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: rgba(201, 210, 227, .62);
}
.legal-links {
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.legal-link {
  color: var(--silver);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.legal-link:hover { color: var(--cyan); border-bottom-color: rgba(43, 227, 224, .5); }
@media (max-width: 720px) {
  .legal-links { margin-left: 0; }
}

/* ---------- 10. 面包屑 ---------- */
.breadcrumb { padding-block: 18px; }
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  letter-spacing: .1em;
}
.breadcrumb__item { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb__item + .breadcrumb__item::before { content: "/"; color: var(--line); }
.breadcrumb__link {
  color: var(--silver);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.breadcrumb__link:hover { color: var(--cyan); border-bottom-color: rgba(43, 227, 224, .5); }
.breadcrumb__item[aria-current="page"] { color: var(--white); }

/* ---------- 11. 内容组件 ---------- */
.card {
  position: relative;
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-12);
  background: linear-gradient(160deg, rgba(36, 26, 77, .92), rgba(14, 23, 51, .9));
  display: grid;
  gap: 12px;
  align-content: start;
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover {
  border-color: rgba(108, 76, 241, .55);
  transform: translateY(-3px);
  box-shadow: 0 30px 60px -40px rgba(108, 76, 241, .95);
}
.card__no {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--cyan);
}
.card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(19px, 2.2vw, 25px);
  line-height: 1.35;
  letter-spacing: .02em;
  color: var(--white);
}
.card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--silver);
}

.panel {
  padding: clamp(18px, 2.6vw, 28px);
  border-radius: var(--radius-md);
  border: 1px solid var(--line-12);
  background: rgba(36, 26, 77, .55);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.legend__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--silver);
}
.legend__dot {
  width: 10px; height: 10px;
  border-radius: 3px;
  background: var(--violet);
  box-shadow: 0 0 0 3px rgba(108, 76, 241, .18);
  flex: 0 0 auto;
}
.legend__dot--cyan { background: var(--cyan); box-shadow: 0 0 0 3px rgba(43, 227, 224, .16); }
.legend__dot--warm { background: var(--amber); box-shadow: 0 0 0 3px rgba(255, 138, 61, .16); }

.coords { display: grid; border-top: 1px solid var(--line-12); }
.coords__row {
  display: grid;
  grid-template-columns: minmax(110px, auto) minmax(0, 1fr);
  gap: 6px 20px;
  align-items: baseline;
  padding: 14px 6px;
  border-bottom: 1px solid var(--line-06);
  transition: background-color .25s var(--ease);
}
.coords__row:hover { background: rgba(108, 76, 241, .1); }
.coords__key {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.coords__val { font-size: 15px; line-height: 1.8; color: var(--silver); }
@media (max-width: 560px) {
  .coords__row { grid-template-columns: 1fr; }
}

.index-list { list-style: none; margin: 0; padding: 0; display: grid; }
.index-list__item {
  display: grid;
  grid-template-columns: minmax(56px, auto) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 44px);
  padding: clamp(20px, 3vw, 32px) 6px;
  border-top: 1px solid var(--line-06);
  transition: background-color .3s var(--ease);
}
.index-list__item:hover { background: linear-gradient(90deg, rgba(108, 76, 241, .16), transparent 62%); }
.index-list__no {
  font-family: var(--font-narrow);
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.1;
  letter-spacing: .1em;
  color: var(--violet-soft);
}
.index-list__body { display: grid; gap: 8px; }
.index-list__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.4;
  letter-spacing: .02em;
  color: var(--white);
}
.index-list__text { margin: 0; font-size: 15px; line-height: 1.85; color: var(--silver); max-width: 38em; }
@media (max-width: 640px) {
  .index-list__item { grid-template-columns: 1fr; gap: 10px; }
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-06);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 520px;
}
.data-table caption {
  text-align: left;
  padding: 14px 16px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--cyan);
}
.data-table th,
.data-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-06);
  vertical-align: top;
}
.data-table thead th {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--violet-soft);
  border-bottom-color: var(--line-12);
  white-space: nowrap;
}
.data-table tbody tr { transition: background-color .2s var(--ease); }
.data-table tbody tr:hover { background: rgba(108, 76, 241, .12); }
.data-table td { color: var(--silver); }
.data-table td:first-child { color: var(--white); font-family: var(--font-mono); font-size: 13.5px; }

.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-12);
  background: linear-gradient(150deg, var(--ink-700), var(--ink-900) 72%);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.88) contrast(1.06) brightness(.92);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 11, 26, 0) 42%, rgba(7, 11, 26, .78));
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame__tag { position: absolute; left: 16px; bottom: 16px; z-index: 1; }
@media (max-width: 600px) {
  .media-frame { aspect-ratio: 4 / 3; }
  .media-frame--wide { aspect-ratio: 16 / 9; }
}

.toc { position: sticky; top: calc(var(--header-h) + 28px); }
.toc__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc__link {
  display: block;
  padding: 9px 12px 9px 16px;
  border-left: 2px solid var(--line-06);
  color: var(--silver);
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
  transition: color .25s var(--ease), border-color .25s var(--ease), background-color .25s var(--ease);
}
.toc__link:hover { color: var(--white); background: rgba(108, 76, 241, .1); border-left-color: var(--violet-soft); }
.toc__link[aria-current] { color: var(--cyan); border-left-color: var(--cyan); }

.accordion { display: grid; gap: 12px; }
.accordion details {
  border: 1px solid var(--line-12);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(36, 26, 77, .62), rgba(14, 23, 51, .62));
  overflow: hidden;
}
.accordion summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.5;
  color: var(--white);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1.2;
  color: var(--violet-soft);
}
.accordion details[open] summary { border-bottom: 1px solid var(--line-06); }
.accordion details[open] summary::after { content: "–"; color: var(--cyan); }
.accordion__panel { padding: 18px 22px 24px; font-size: 15px; line-height: 1.85; color: var(--silver); }

.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-chip {
  padding: 8px 16px;
  border-radius: var(--pill);
  border: 1px solid var(--line-12);
  background: rgba(14, 23, 51, .7);
  color: var(--silver);
  font-size: 13px;
  letter-spacing: .1em;
  cursor: pointer;
  transition: color .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease);
}
.filter-chip:hover { color: var(--white); border-color: var(--violet-soft); }
.filter-chip[aria-pressed="true"] {
  color: var(--white);
  background: rgba(108, 76, 241, .3);
  border-color: var(--violet-soft);
}
.filter-count { font-family: var(--font-mono); font-size: 13px; color: var(--cyan); }

/* ---------- 12. 显影动效 ---------- */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .42s ease-out, transform .42s ease-out;
  transition-delay: var(--reveal-delay, 0s);
}
.has-js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 13. 减少动态 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .has-js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .to-top { transition: none !important; }
}
