/* ============================================================
   浩瀚体育站 · /assets/site.css
   共享外壳：reset、变量、排版、头部、页脚、通用组件
   ============================================================ */

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

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

body, h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote, hr { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { max-width: 100%; }
button { font: inherit; color: inherit; }

:root {
  /* 色彩 */
  --space-900: #07152B;
  --space-700: #0E2A4F;
  --paper-050: #F4EFE6;
  --ink-900: #14181F;
  --lava-500: #FF5A2A;
  --cyan-400: #19D3C5;
  --amber-400: #FFB547;
  --mist-400: #8FA6C4;
  --paper-200: #D9D2C3;
  --green-500: #39C27B;
  --red-500: #E84A5F;

  /* 纸与线 */
  --line-strong: rgba(244, 239, 230, 0.20);
  --line-soft: rgba(244, 239, 230, 0.10);
  --line-ink: rgba(20, 24, 31, 0.18);

  /* 字体 */
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, "Courier New", monospace;

  /* 字号 */
  --fs-display: clamp(2.6rem, 6.6vw, 4.4rem);
  --fs-h2: clamp(1.7rem, 3.4vw, 2.5rem);
  --fs-h3: clamp(1.2rem, 1.9vw, 1.6rem);
  --fs-body: 1rem;
  --fs-note: 0.875rem;

  /* 结构 */
  --header-h: 72px;
  --radius: 3px;
  --shell-max: 1280px;
  --gutter: clamp(16px, 4vw, 44px);
}

body {
  background-color: var(--space-900);
  color: var(--paper-050);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.72;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-locked { overflow: hidden; }

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-display); font-weight: 900; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { text-wrap: pretty; }

a { color: var(--cyan-400); text-decoration: none; }
a:hover { color: var(--paper-050); }

strong { font-weight: 700; }

:focus-visible {
  outline: 2px solid var(--cyan-400);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--lava-500);
  color: #1A0A04;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ------------------------------ 布局容器 ------------------------------ */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.page-header {
  padding-block: clamp(28px, 5vw, 64px);
  border-bottom: 1px solid var(--line-soft);
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-400);
  margin-bottom: 0.9rem;
}
.section-label::before { content: "["; opacity: 0.6; margin-right: 0.35em; }
.section-label::after { content: "]"; opacity: 0.6; margin-left: 0.35em; }

.rule {
  border: 0;
  height: 1px;
  background: var(--line-soft);
  margin-block: clamp(24px, 4vw, 48px);
}

/* ------------------------------ 跳转链接 ------------------------------ */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 400;
  transform: translateY(-180%);
  padding: 0.75rem 1.15rem;
  background: var(--paper-050);
  color: var(--ink-900);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 rgba(20, 24, 31, 0.45);
  transition: transform 0.18s ease;
}
.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); color: var(--ink-900); }

/* ------------------------------ 按钮 ------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.82rem 1.4rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--lava-500);
  color: #1B0A03;
  border-color: var(--lava-500);
  box-shadow: 4px 4px 0 rgba(20, 24, 31, 0.55);
}
.btn--primary:hover { color: #1B0A03; box-shadow: 6px 6px 0 rgba(20, 24, 31, 0.55); }

.btn--paper {
  background: var(--paper-050);
  color: var(--ink-900);
  border-color: var(--paper-200);
  box-shadow: 4px 4px 0 rgba(20, 24, 31, 0.35);
}
.btn--paper:hover { color: var(--ink-900); }

.btn--ghost {
  background: transparent;
  color: var(--paper-050);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--cyan-400); color: var(--cyan-400); }

/* ------------------------------ 头部命令栏 ------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background:
    radial-gradient(120% 220% at 8% -60%, rgba(25, 211, 197, 0.14), transparent 58%),
    radial-gradient(90% 200% at 96% -80%, rgba(255, 90, 42, 0.16), transparent 55%),
    var(--space-900);
  border-bottom: 1px solid var(--line-strong);
}

.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(244, 239, 230, 0.08);
  pointer-events: none;
}
.header-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--lava-500), var(--amber-400) 55%, var(--cyan-400));
}

.header-shell {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  min-height: var(--header-h);
  padding-block: 10px;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: 0 0 auto;
  color: var(--paper-050);
}
.brand:hover { color: var(--paper-050); }

.brand__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 1px solid rgba(25, 211, 197, 0.55);
  border-radius: 2px;
  background:
    radial-gradient(circle at 28% 18%, rgba(25, 211, 197, 0.35), transparent 62%),
    var(--space-700);
  overflow: hidden;
}
.brand__pulse {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--lava-500);
  box-shadow: 0 0 0 4px rgba(255, 90, 42, 0.18);
}

.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-size: 1.06rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.brand__line {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--mist-400);
  white-space: nowrap;
}

/* 命令栏导航 */
.command-nav { flex: 1 1 auto; display: flex; justify-content: center; }

.command-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.command-nav__item { display: block; }

.command-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.72rem;
  border-radius: 2px;
  color: rgba(244, 239, 230, 0.78);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.16s ease, background-color 0.16s ease;
}
.command-nav__link:hover {
  color: var(--paper-050);
  background: rgba(244, 239, 230, 0.07);
}
.command-nav__index {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--mist-400);
  letter-spacing: 0.06em;
}
.command-nav__link[aria-current="page"] {
  color: var(--paper-050);
  background: rgba(25, 211, 197, 0.10);
}
.command-nav__link[aria-current="page"] .command-nav__index { color: var(--cyan-400); }
.command-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.72rem;
  right: 0.72rem;
  bottom: 2px;
  height: 2px;
  background: var(--cyan-400);
}

/* 工具区 */
.header-tools {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 0 0 auto;
}

.search-launch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: rgba(244, 239, 230, 0.05);
  color: rgba(244, 239, 230, 0.82);
  font-size: 0.84rem;
  font-weight: 500;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}
.search-launch:hover,
.search-launch:focus-visible {
  color: var(--paper-050);
  border-color: var(--cyan-400);
  background: rgba(25, 211, 197, 0.10);
  box-shadow: 0 0 0 3px rgba(25, 211, 197, 0.16);
}
.search-launch__icon {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
}
.search-launch__icon::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 6px;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
  border-radius: 1px;
}
.search-launch__label {
  max-width: 12em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-launch__hint {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  padding: 2px 5px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--mist-400);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.7rem;
  min-height: 38px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--paper-050);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--cyan-400); color: var(--cyan-400); }
.nav-toggle__bars {
  display: block;
  width: 18px;
  height: 12px;
  background: linear-gradient(
    to bottom,
    currentColor 0 2px, transparent 2px 5px,
    currentColor 5px 7px, transparent 7px 10px,
    currentColor 10px 12px
  );
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background:
    linear-gradient(to bottom right, transparent calc(50% - 1px), currentColor calc(50% - 1px), currentColor calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(to top right, transparent calc(50% - 1px), currentColor calc(50% - 1px), currentColor calc(50% + 1px), transparent calc(50% + 1px));
}
.nav-toggle__text { line-height: 1; }

/* ------------------------------ 页脚 ------------------------------ */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  background:
    radial-gradient(100% 160% at 90% 0%, rgba(14, 42, 79, 0.9), transparent 60%),
    var(--space-900);
  border-top: 1px solid var(--line-strong);
  color: rgba(244, 239, 230, 0.78);
}

.footer-signal {
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--lava-500) 0 26%,
    var(--cyan-400) 26% 44%,
    var(--amber-400) 44% 54%,
    rgba(244, 239, 230, 0.14) 54% 100%
  );
}

.footer-shell { padding-block: clamp(34px, 5vw, 60px) clamp(22px, 3vw, 34px); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 1.25fr;
  gap: clamp(24px, 4vw, 56px);
}

.footer-brand__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--cyan-400);
  margin-bottom: 0.85rem;
}
.footer-brand__name {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--paper-050);
  line-height: 1.2;
}
.footer-brand__note {
  margin-top: 0.85rem;
  max-width: 30em;
  font-size: var(--fs-note);
  line-height: 1.8;
  color: var(--mist-400);
}

.footer-col__title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-050);
  padding-bottom: 0.6rem;
  margin-bottom: 0.95rem;
  border-bottom: 1px solid var(--line-soft);
}

.footer-index__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 1rem;
}
.footer-index__item { display: block; }

.footer-link {
  display: inline-block;
  padding: 0.18rem 0;
  font-size: 0.9rem;
  color: rgba(244, 239, 230, 0.76);
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.footer-link:hover {
  color: var(--cyan-400);
  border-bottom-color: rgba(25, 211, 197, 0.5);
}

.footer-contact__list { display: grid; gap: 0.55rem; }
.footer-contact__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.7rem;
}
.footer-contact__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--mist-400);
  min-width: 4.6em;
}
.footer-contact__value {
  margin: 0;
  font-size: 0.92rem;
  color: var(--paper-050);
  word-break: break-word;
}
.footer-contact__note {
  margin-top: 0.95rem;
  font-size: 0.8rem;
  line-height: 1.75;
  color: var(--mist-400);
  max-width: 34em;
}

.footer-rule {
  border: 0;
  height: 1px;
  background: var(--line-soft);
  margin-block: clamp(24px, 3.4vw, 40px) clamp(16px, 2.4vw, 24px);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.6rem;
}

.footer-copyright {
  font-size: 0.82rem;
  color: var(--mist-400);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
}
.footer-legal__link {
  font-size: 0.82rem;
  color: rgba(244, 239, 230, 0.72);
  border-bottom: 1px solid var(--line-soft);
}
.footer-legal__link:hover { color: var(--cyan-400); border-bottom-color: var(--cyan-400); }
.footer-icp {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  color: var(--mist-400);
  padding-left: 0.9rem;
  border-left: 1px solid var(--line-soft);
}

/* 返回顶部 */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 180;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 54px;
  height: 54px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--space-700);
  color: var(--paper-050);
  box-shadow: 4px 4px 0 rgba(7, 21, 43, 0.7);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, border-color 0.2s ease;
}
.to-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.to-top:hover { border-color: var(--cyan-400); color: var(--cyan-400); }
.to-top__arrow { font-size: 1rem; line-height: 1; }
.to-top__label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
}

/* ------------------------------ 通用内容组件 ------------------------------ */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  color: var(--mist-400);
  margin-bottom: 1.1rem;
}
.breadcrumb__item { display: inline-flex; align-items: center; gap: 0.35rem; }
.breadcrumb__item a { color: var(--mist-400); }
.breadcrumb__item a:hover { color: var(--cyan-400); }
.breadcrumb__sep { color: rgba(143, 166, 196, 0.6); }

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}

.card {
  position: relative;
  padding: clamp(18px, 2.3vw, 30px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--space-700);
  color: inherit;
}
.card--paper {
  background: var(--paper-050);
  color: var(--ink-900);
  border-color: var(--paper-200);
  box-shadow: 0 8px 0 -5px rgba(217, 210, 195, 0.4);
}
.card--paper a { color: var(--ink-900); }
.card--paper .card__label { color: #8A4B22; }
.card--paper .card__label::before,
.card--paper .card__label::after { color: var(--lava-500); }
.card--ink {
  background: var(--ink-900);
  border-color: rgba(244, 239, 230, 0.14);
}
.card--accent {
  background:
    linear-gradient(135deg, rgba(255, 90, 42, 0.92), rgba(255, 90, 42, 0.72) 55%, rgba(255, 181, 71, 0.72)),
    var(--lava-500);
  color: #1B0A03;
  border-color: rgba(20, 24, 31, 0.25);
}

.card__label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-400);
  margin-bottom: 0.7rem;
}
.card__label::before { content: "["; margin-right: 0.3em; opacity: 0.65; }
.card__label::after { content: "]"; margin-left: 0.3em; opacity: 0.65; }

.card__title {
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.005em;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.36rem 0.72rem;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: rgba(244, 239, 230, 0.05);
  color: rgba(244, 239, 230, 0.82);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}
.chip:hover { border-color: var(--cyan-400); color: var(--cyan-400); }
.chip[aria-pressed="true"],
.chip.is-active {
  background: rgba(25, 211, 197, 0.14);
  border-color: var(--cyan-400);
  color: var(--cyan-400);
}

.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  flex: 1 1 140px;
  padding: 0.9rem clamp(12px, 1.8vw, 20px);
  background: var(--space-700);
}
.stat__value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--cyan-400);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--mist-400);
}

/* 可复用图片容器（页面阶段放入 img 即可） */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 120% at 20% 0%, rgba(25, 211, 197, 0.22), transparent 55%),
    linear-gradient(150deg, var(--space-700), var(--space-900) 62%);
}
.media-frame img,
.media-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--paper {
  border-color: var(--paper-200);
  background: linear-gradient(150deg, var(--paper-050), var(--paper-200));
}
.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.5rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--paper-050);
  background: linear-gradient(to top, rgba(7, 21, 43, 0.85), transparent);
}

.prose {
  max-width: 72ch;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(244, 239, 230, 0.82);
}
.prose > * + * { margin-top: 1.05em; }
.prose h2, .prose h3 { color: var(--paper-050); margin-top: 1.8em; }
.prose h2 { font-size: var(--fs-h2); }
.prose h3 { font-size: var(--fs-h3); }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose ul { list-style: square; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4em; }
.prose a { border-bottom: 1px solid rgba(25, 211, 197, 0.5); }

/* 章节目录（配合 data-toc-link） */
.toc {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  padding: 1.1rem 1.1rem 1.25rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(14, 42, 79, 0.6);
}
.toc__title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist-400);
  margin-bottom: 0.85rem;
}
.toc__list { display: grid; gap: 0.18rem; }
.toc__link {
  display: block;
  padding: 0.4rem 0.55rem;
  border-left: 2px solid transparent;
  font-size: 0.86rem;
  color: rgba(244, 239, 230, 0.72);
  transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}
.toc__link:hover { color: var(--paper-050); background: rgba(244, 239, 230, 0.06); }
.toc__link.is-active {
  color: var(--cyan-400);
  border-left-color: var(--cyan-400);
  background: rgba(25, 211, 197, 0.10);
}

/* ------------------------------ 响应式 ------------------------------ */
@media (max-width: 1140px) {
  .search-launch__hint { display: none; }
  .brand__line { display: none; }
  .command-nav__link { padding: 0.5rem 0.58rem; font-size: 0.86rem; }
}

@media (max-width: 1020px) {
  :root { --header-h: 64px; }

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

  .command-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    justify-content: flex-start;
    padding: 0 var(--gutter) 1.1rem;
    background:
      radial-gradient(120% 200% at 0% 0%, rgba(25, 211, 197, 0.12), transparent 60%),
      var(--space-900);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.85);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }
  .command-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .command-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding-top: 0.9rem;
  }
  .command-nav__link {
    justify-content: flex-start;
    gap: 0.7rem;
    padding: 0.85rem 0.7rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
  }
  .command-nav__link[aria-current="page"]::after {
    left: auto;
    right: 0.7rem;
    top: 50%;
    bottom: auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transform: translateY(-50%);
  }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .search-launch__label { display: none; }
  .search-launch { padding: 0.5rem 0.6rem; }
  .footer-index__list { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-icp { border-left: 0; padding-left: 0; }
  .toc { position: static; }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .brand__name { font-size: 0.98rem; }
  .nav-toggle__text { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .to-top { width: 46px; height: 46px; }
  .stat { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover { transform: none; }
  .to-top { transition: none; }
}
