/* ============================================================
   99真人会馆 — 共享站点样式 /assets/site.css
   夜间会馆 · 墨蓝底 + 霓虹青节点 + 珊瑚橙行动点 + 暖金规则描边
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

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

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

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

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

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

table { border-collapse: collapse; width: 100%; }

[hidden] { display: none !important; }

/* 2 ── 设计变量 ─────────────────────────────────────── */
:root {
  --ink-900: #060B14;
  --ink-800: #0B1524;
  --ink-700: #14233A;
  --metal-500: #7C8AA0;
  --paper-100: #F2EBDD;
  --neon-400: #35E0D2;
  --coral-500: #FF6A4D;
  --gold-400: #E3B25C;
  --text-100: #E8EEF7;
  --text-300: #A9B6C9;

  --font-display: 'Archivo Narrow', 'Oswald', 'Noto Sans SC', system-ui, sans-serif;
  --font-body: 'Noto Sans SC', 'Source Han Sans SC', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 200ms;
  --dur-slow: 260ms;

  --shell: 1240px;
  --gutter: clamp(1rem, 4vw, 3rem);

  --line: rgba(124, 138, 160, .28);
  --line-strong: rgba(124, 138, 160, .45);
  --line-neon: rgba(53, 224, 210, .55);

  --radius: 14px;
  --radius-sm: 10px;
}

/* 3 ── 中文排版与页面底色 ───────────────────────────── */
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  font-weight: 400;
  color: var(--text-100);
  background-color: var(--ink-800);
  background-image:
    radial-gradient(1100px 620px at 88% -12%, rgba(53, 224, 210, .10), transparent 62%),
    radial-gradient(880px 520px at 4% 6%, rgba(255, 106, 77, .075), transparent 66%),
    linear-gradient(180deg, var(--ink-800) 0%, var(--ink-900) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.015em;
  color: var(--text-100);
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); }
h4 { font-size: 1rem; }

p { max-width: 40em; }

strong, b { font-weight: 700; color: var(--text-100); }

::selection { background: var(--neon-400); color: var(--ink-900); }

#main-content { display: block; min-height: 50vh; }

/* 4 ── 文字与排版工具类 ─────────────────────────────── */
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}
.label {
  font-family: var(--font-body);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--metal-500);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  max-width: none;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--neon-400);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: .7;
}
.display-xl {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 7vw, 7.5rem);
  line-height: .9;
  letter-spacing: -.03em;
}
.muted { color: var(--text-300); }
.accent { color: var(--neon-400); }

/* 5 ── 布局容器与栅格 ───────────────────────────────── */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--narrow { max-width: 960px; }

.stack { display: grid; gap: 1rem; }

.grid { display: grid; gap: clamp(1rem, 2.4vw, 2rem); }
.grid--split { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.grid--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--thirds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid > .side-index { align-self: start; }

.page { padding-block: clamp(1.5rem, 4vw, 3rem) clamp(2.5rem, 6vw, 5rem); }

/* 6 ── 通用按钮 ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .72em 1.25em;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .03em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}
.btn--sm { font-size: .8rem; padding: .6em 1.05em; }
.btn--coral {
  background: var(--coral-500);
  color: var(--ink-900);
  font-weight: 700;
}
.btn--coral:hover { background: #FF8168; transform: translateY(-2px); }
.btn--ghost {
  background: rgba(20, 35, 58, .45);
  border-color: var(--line-strong);
  color: var(--text-100);
}
.btn--ghost:hover {
  border-color: var(--neon-400);
  color: var(--neon-400);
  transform: translateY(-2px);
}
.btn--quiet {
  padding-inline: .4em;
  color: var(--text-300);
}
.btn--quiet:hover { color: var(--neon-400); }

/* 7 ── 跳转链接与滚动进度 ───────────────────────────── */
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -6rem;
  z-index: 200;
  padding: .62rem 1.1rem;
  border-radius: 0 0 10px 10px;
  background: var(--neon-400);
  color: var(--ink-900);
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .04em;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { top: 0; }

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--neon-400), var(--coral-500));
  z-index: 300;
  pointer-events: none;
  will-change: transform;
}

/* 8 ── 刊头 / 头部 ──────────────────────────────────── */
.masthead {
  position: relative;
  z-index: 60;
  background: linear-gradient(180deg, rgba(6, 11, 20, .97) 0%, rgba(10, 19, 33, .97) 100%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 48px -40px rgba(0, 0, 0, .95);
}
.masthead::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--neon-400) 18%,
    rgba(53, 224, 210, .22) 52%,
    rgba(255, 106, 77, .5) 84%,
    transparent 100%);
  pointer-events: none;
}

.masthead__utility {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: .7rem var(--gutter) 0;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--metal-500);
}
.masthead__notice { max-width: none; }
.masthead__stamp {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  max-width: none;
  color: var(--neon-400);
  white-space: nowrap;
}
.masthead__stamp::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-400);
  box-shadow: 0 0 0 3px rgba(53, 224, 210, .18);
}

.masthead__ledger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: .2rem var(--gutter) 1rem;
}
.masthead__lede {
  max-width: none;
  justify-self: start;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--metal-500);
}

.brand {
  position: relative;
  justify-self: center;
  padding: .12em .3em .18em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 4.6vw, 2.9rem);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--text-100);
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}
.brand::after {
  content: "";
  position: absolute;
  left: .3em;
  right: .3em;
  bottom: .04em;
  height: 2px;
  background: var(--neon-400);
  transform: scaleX(0);
  transform-origin: 50% 50%;
  transition: transform var(--dur-slow) var(--ease);
}
.brand:hover { color: #FFFFFF; }
.brand:hover::after { transform: scaleX(1); }

.masthead__actions {
  display: flex;
  align-items: center;
  gap: .7rem;
  justify-self: end;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: .55rem;
  padding: .55rem .8rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-100);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-toggle:hover { border-color: var(--neon-400); color: var(--neon-400); }
.nav-toggle__bars { display: grid; gap: 4px; width: 16px; }
.nav-toggle__bars span {
  display: block;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:first-child {
  transform: translateY(2.75px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:last-child {
  transform: translateY(-2.75px) rotate(-45deg);
}

.navbar {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 35, 58, .45), rgba(11, 21, 36, .2));
}
.navbar__list {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: clamp(.25rem, 2vw, 1.1rem);
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 0 var(--gutter);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.navbar__list::-webkit-scrollbar { display: none; }
.navbar__list > li { flex: 0 0 auto; scroll-snap-align: center; }
.navbar__list a {
  position: relative;
  display: block;
  padding: .95rem .55rem;
  font-size: .83rem;
  letter-spacing: .13em;
  color: var(--text-300);
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}
.navbar__list a::after {
  content: "";
  position: absolute;
  left: .55rem;
  right: .55rem;
  bottom: .62rem;
  height: 2px;
  background: var(--neon-400);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--dur-slow) var(--ease);
}
.navbar__list a:hover { color: var(--text-100); }
.navbar__list a:hover::after { transform: scaleX(1); }
.navbar__list a[aria-current="page"] { color: var(--neon-400); }
.navbar__list a[aria-current="page"]::after { transform: scaleX(1); }

/* 9 ── 页脚 ─────────────────────────────────────────── */
.site-footer {
  position: relative;
  margin-top: clamp(3rem, 8vw, 6rem);
  background: linear-gradient(180deg, #070D18 0%, var(--ink-900) 100%);
  border-top: 1px solid var(--line);
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(53, 224, 210, .55) 30%, rgba(227, 178, 92, .35) 75%, transparent);
  pointer-events: none;
}
.footer__inner {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(2.4rem, 5vw, 4rem) var(--gutter) 1.6rem;
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 2.2fr);
  gap: clamp(1.6rem, 4vw, 3.4rem);
}
.footer__wordmark {
  max-width: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--text-100);
}
.footer__summary {
  margin-top: .9rem;
  max-width: 34ch;
  font-size: .95rem;
  line-height: 1.8;
  color: var(--text-300);
}
.footer__trust {
  margin-top: 1rem;
  padding-top: .9rem;
  max-width: 34ch;
  border-top: 1px dashed var(--line);
  font-size: .8rem;
  line-height: 1.7;
  color: var(--metal-500);
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.4vw, 2rem);
}
.footer__col-title {
  display: block;
  margin: 0 0 .9rem;
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--neon-400);
}
.footer__links { display: grid; gap: .55rem; }
.footer__links a {
  width: fit-content;
  font-size: .92rem;
  color: var(--text-300);
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.footer__links a:hover {
  color: var(--text-100);
  border-bottom-color: var(--neon-400);
}
.footer__lines {
  display: grid;
  gap: .5rem;
  font-size: .9rem;
  line-height: 1.75;
  color: var(--text-300);
}
.footer__lines .mono { color: var(--text-100); font-size: .86rem; word-break: break-all; }
.footer__note {
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
  padding: .9rem 1.1rem;
  border-left: 2px solid var(--gold-400);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(227, 178, 92, .06);
  font-size: .86rem;
  line-height: 1.75;
  color: var(--text-300);
}
.footer__note p { max-width: 64ch; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .8rem 1.6rem;
  margin-top: clamp(1.8rem, 4vw, 2.8rem);
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .06em;
  color: var(--metal-500);
}
.footer__copy { max-width: none; }
.footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  max-width: none;
}
.footer__meta a { color: var(--text-300); transition: color var(--dur) var(--ease); }
.footer__meta a:hover { color: var(--neon-400); }

/* 10 ── 面包屑与正文容器 ───────────────────────────── */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  padding-block: 1rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--metal-500);
}
.breadcrumb a { color: var(--text-300); transition: color var(--dur) var(--ease); }
.breadcrumb a:hover { color: var(--neon-400); }
.breadcrumb__sep { opacity: .55; }
.breadcrumb [aria-current="page"] { color: var(--neon-400); }

.prose {
  max-width: 38em;
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text-300);
}
.prose h2,
.prose h3 { margin: 2em 0 .6em; color: var(--text-100); }
.prose h2:first-child,
.prose h3:first-child { margin-top: 0; }
.prose p + p { margin-top: 1em; }
.prose ul,
.prose ol {
  display: grid;
  gap: .45rem;
  margin-top: 1em;
  padding-left: 1.2rem;
}
.prose ul li { position: relative; padding-left: .9rem; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .85em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--neon-400);
}
.prose ol { list-style: decimal; }
.prose a {
  color: var(--neon-400);
  border-bottom: 1px solid rgba(53, 224, 210, .4);
}
.prose a:hover { border-bottom-color: var(--neon-400); }
.prose strong { color: var(--text-100); }

/* 11 ── 框景与横向主题带 ───────────────────────────── */
.frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 4vw, 3rem);
  background: linear-gradient(160deg, rgba(20, 35, 58, .55), rgba(6, 11, 20, .35));
}
.frame::before,
.frame::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 1px solid var(--neon-400);
  opacity: .8;
  pointer-events: none;
}
.frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.frame::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.band {
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(20, 35, 58, .62), rgba(6, 11, 20, .18));
  padding-block: clamp(1.4rem, 3vw, 2.4rem);
}

/* 12 ── 卡片体系 ───────────────────────────────────── */
.card {
  position: relative;
  display: block;
  padding: clamp(1rem, 2.2vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(20, 35, 58, .85) 0%, rgba(11, 21, 36, .85) 100%);
  transition:
    transform var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--line-neon);
  box-shadow: 0 18px 30px -26px rgba(53, 224, 210, .55);
}
.card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--text-300);
}
.card__title { margin-top: .5rem; font-size: clamp(1.05rem, 1.7vw, 1.28rem); }
.card__text { margin-top: .5rem; font-size: .95rem; line-height: 1.8; color: var(--text-300); }

.version-card {
  padding: clamp(1rem, 2.2vw, 1.5rem);
  border: 1px solid rgba(227, 178, 92, .45);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(227, 178, 92, .08), rgba(11, 21, 36, .6));
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.version-card:hover { transform: translateY(-2px); border-color: rgba(227, 178, 92, .8); }
.version-card__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-400);
}
.card--rule {
  border-color: rgba(227, 178, 92, .42);
  box-shadow: inset 0 0 0 1px rgba(227, 178, 92, .14);
}
.card--rule:hover { border-color: rgba(227, 178, 92, .75); }

/* 13 ── 图片容器基础规则 ───────────────────────────── */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(53, 224, 210, .13), rgba(20, 35, 58, .92) 55%, rgba(255, 106, 77, .13)),
    var(--ink-700);
}
.media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.media:hover > img { transform: scale(1.02); }
.media::after {
  content: "";
  position: absolute;
  inset: auto -25% -45% auto;
  width: 62%;
  height: 130%;
  background: linear-gradient(118deg, transparent 42%, rgba(53, 224, 210, .16) 50%, transparent 58%);
  pointer-events: none;
}
.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 4 / 5; }
.media--square { aspect-ratio: 1 / 1; }
.media__caption {
  margin-top: .6rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--metal-500);
}

/* 14 ── 时间轴 ─────────────────────────────────────── */
.timeline {
  position: relative;
  display: grid;
  gap: 1.1rem;
  padding-left: 1.4rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: .5rem;
  bottom: .5rem;
  width: 1px;
  background: linear-gradient(180deg, var(--neon-400), rgba(124, 138, 160, .25));
}
.timeline__item { position: relative; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -1.4rem;
  top: .6rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink-800);
  border: 2px solid var(--metal-500);
}
.timeline__item[data-kind="entry"]::before { border-color: var(--neon-400); background: var(--neon-400); }
.timeline__item[data-kind="version"]::before { border-color: var(--gold-400); background: var(--gold-400); }
.timeline__item[data-kind="quarter"]::before { border-color: var(--coral-500); background: var(--coral-500); }

/* 15 ── 可折叠侧栏索引 ─────────────────────────────── */
.side-index {
  position: sticky;
  top: 1.2rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(20, 35, 58, .58);
  backdrop-filter: blur(2px);
}
.side-index__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  width: 100%;
  padding: .1rem 0;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--metal-500);
  transition: color var(--dur) var(--ease);
}
.side-index__head:hover { color: var(--neon-400); }
.side-index__head span[aria-hidden="true"] {
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--neon-400);
}
.side-index__list { display: grid; gap: .15rem; margin-top: .7rem; }
.side-index__list a {
  display: block;
  padding: .5rem .65rem;
  border-left: 2px solid transparent;
  border-radius: 0 8px 8px 0;
  font-size: .88rem;
  color: var(--text-300);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.side-index__list a:hover {
  background: rgba(53, 224, 210, .08);
  color: var(--text-100);
}
.side-index__list a[aria-current="true"] {
  border-left-color: var(--neon-400);
  background: rgba(53, 224, 210, .07);
  color: var(--neon-400);
}

/* 16 ── 筛选 chips ─────────────────────────────────── */
.chips {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding: .2rem 0 .6rem;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: .45rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(20, 35, 58, .4);
  font-size: .8rem;
  letter-spacing: .06em;
  color: var(--text-300);
  transition:
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}
.chip:hover { border-color: var(--line-neon); color: var(--text-100); }
.chip[aria-pressed="true"],
.chip.is-active {
  background: var(--neon-400);
  border-color: var(--neon-400);
  color: var(--ink-900);
  font-weight: 700;
}

/* 17 ── 手风琴 ─────────────────────────────────────── */
.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1rem .2rem;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-100);
  transition: color var(--dur) var(--ease);
}
.accordion__trigger:hover { color: var(--neon-400); }
.accordion__icon {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--neon-400);
  transition: transform var(--dur) var(--ease);
}
.accordion__trigger[aria-expanded="true"] .accordion__icon { transform: rotate(45deg); }
.accordion__panel {
  padding: 0 .2rem 1.1rem;
  font-size: .95rem;
  line-height: 1.8;
  color: var(--text-300);
}
.accordion__panel p { max-width: 46ch; }

/* 18 ── 焦点可见 ───────────────────────────────────── */
:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--neon-400);
  outline-offset: 2px;
  border-radius: 4px;
}

/* 19 ── 响应式：平板 ───────────────────────────────── */
@media (max-width: 1060px) {
  .footer__top { grid-template-columns: minmax(0, 1fr); }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--thirds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .grid--split { grid-template-columns: minmax(0, 1fr); }
  .side-index { position: static; }
}

/* 20 ── 响应式：手机与折叠导航 ─────────────────────── */
@media (max-width: 900px) {
  .masthead__ledger {
    grid-template-columns: auto minmax(0, 1fr);
    gap: .6rem;
    padding-block: .5rem .9rem;
  }
  .masthead__lede { display: none; }
  .brand { justify-self: start; }
  .masthead__actions { justify-self: end; }

  .nav-toggle { display: inline-flex; }

  .navbar { display: none; }
  .navbar[data-open] { display: block; }
  .navbar__list {
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    max-width: none;
    padding: .35rem var(--gutter) 1rem;
    overflow: visible;
    scroll-snap-type: none;
  }
  .navbar__list > li {
    width: 100%;
    border-bottom: 1px solid rgba(124, 138, 160, .16);
  }
  .navbar__list > li:last-child { border-bottom: 0; }
  .navbar__list a {
    padding: .95rem .25rem;
    font-size: .95rem;
    letter-spacing: .08em;
  }
  .navbar__list a::after {
    left: .25rem;
    right: auto;
    width: 1.9rem;
    bottom: .7rem;
  }

  .grid--even { grid-template-columns: minmax(0, 1fr); }
  .grid--thirds { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 16px; line-height: 1.8; }

  .masthead__utility {
    flex-wrap: wrap;
    gap: .15rem .9rem;
    padding-top: .6rem;
    font-size: .62rem;
    letter-spacing: .1em;
  }
  .masthead__notice { max-width: 100%; }

  .footer__cols { grid-template-columns: minmax(0, 1fr); }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer__meta { gap: .4rem; }

  .prose { max-width: none; }
  .btn--sm { font-size: .76rem; padding: .55em .9em; }
  .nav-toggle__label { display: none; }
  .nav-toggle { padding: .5rem .65rem; }
}

/* 21 ── 减少动效 ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .card:hover,
  .version-card:hover,
  .btn:hover,
  .media:hover > img { transform: none; }
  .progress { display: none; }
}
