/* ==========================================================================
   YABO赛事 · 共享站点套件 /assets/site.css
   赛事指挥舱：深靛蓝底 + 荧光青主强调 + 活力橙赛前 + 洋红点缀
   ========================================================================== */

/* ---------- 1. 变量 ---------- */
:root {
  --ink-900: #070B24;
  --ink-800: #0B1030;
  --ink-700: #131A45;
  --ink-600: #1E2A6B;
  --cyan: #4CF2D4;
  --cyan-soft: #7BF8E2;
  --orange: #FF7A2F;
  --magenta: #FF2E8B;
  --gold: #FFD166;
  --paper: #F4F7FF;
  --mist: #A7B0D6;
  --grid: #6E7BB5;

  --line-soft: rgba(110, 123, 181, 0.28);
  --line-strong: rgba(110, 123, 181, 0.55);

  --shell: 1240px;
  --gutter: clamp(18px, 4vw, 48px);
  --radius: 2px;

  --font-display: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC",
    "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Noto Sans SC", "HarmonyOS Sans SC", "PingFang SC",
    "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", "Cascadia Mono", Consolas,
    "Liberation Mono", Menlo, monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --stack-gap: 18px;
}

/* ---------- 2. Reset / 基础 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--ink-800);
  background-image:
    radial-gradient(64vw 42vw at 16% -10%, rgba(76, 242, 212, 0.10), transparent 62%),
    radial-gradient(52vw 38vw at 94% 2%, rgba(255, 46, 139, 0.09), transparent 64%),
    radial-gradient(70vw 50vw at 50% 108%, rgba(30, 42, 107, 0.85), transparent 70%),
    linear-gradient(180deg, #0B1030 0%, #0A0E2B 52%, #070B24 100%);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.18;
  color: var(--paper);
}

p { margin: 0 0 1em; }

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}
a:hover { color: var(--cyan-soft); }

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

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

::selection {
  background: rgba(76, 242, 212, 0.28);
  color: var(--paper);
}

/* ---------- 3. 容器与排版 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(56px, 8vw, 112px); }
.section--tight { padding-block: clamp(32px, 5vw, 64px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mist);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  flex: none;
  background: var(--orange);
}

.display-title {
  font-size: clamp(34px, 5.6vw, 72px);
  letter-spacing: 0.04em;
  line-height: 1.06;
}

.section-title {
  font-size: clamp(24px, 3vw, 40px);
  letter-spacing: 0.05em;
}

.lede {
  max-width: 44ch;
  font-size: 17px;
  line-height: 1.8;
  color: var(--mist);
}

.prose { max-width: 42em; }
.prose p { margin-bottom: 1.1em; }

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.num-mega {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(56px, 9vw, 160px);
  line-height: 0.86;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--cyan);
}
@supports not (-webkit-text-stroke: 1px #000) {
  .num-mega { color: var(--cyan); }
}

.stack > * + * { margin-top: var(--stack-gap); }

.rule {
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--line-soft);
}

.band {
  height: 4px;
  margin: 0;
  border: 0;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--orange) 55%, var(--magenta) 100%);
}

/* ---------- 4. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease),
    background-color 0.18s var(--ease), transform 0.12s var(--ease),
    box-shadow 0.18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #06122A;
  box-shadow: 0 16px 34px -20px rgba(76, 242, 212, 0.9);
}
.btn--primary:hover {
  background: var(--cyan-soft);
  border-color: var(--cyan-soft);
  color: #06122A;
}

.btn--ghost {
  border-color: rgba(255, 122, 47, 0.6);
  color: var(--orange);
}
.btn--ghost:hover {
  background: rgba(255, 122, 47, 0.12);
  border-color: var(--orange);
  color: #FFA46E;
}

.btn--quiet {
  padding-inline: 0;
  border-color: transparent;
  color: var(--mist);
}
.btn--quiet:hover { color: var(--cyan); }

.btn__arrow::after {
  content: "\2192";
  font-family: var(--font-mono);
  font-size: 13px;
}

/* ---------- 5. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.1em;
  color: var(--mist);
}
.tag--cyan {
  color: var(--cyan);
  border-color: rgba(76, 242, 212, 0.45);
  background: rgba(76, 242, 212, 0.08);
}
.tag--orange {
  color: var(--orange);
  border-color: rgba(255, 122, 47, 0.45);
  background: rgba(255, 122, 47, 0.08);
}
.tag--magenta {
  color: var(--magenta);
  border-color: rgba(255, 46, 139, 0.45);
  background: rgba(255, 46, 139, 0.08);
}
.tag--gold {
  color: var(--gold);
  border-color: rgba(255, 209, 102, 0.45);
  background: rgba(255, 209, 102, 0.08);
}

/* ---------- 6. 面板 / 卡片 / 网格 ---------- */
.panel {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--ink-700);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 24px 48px -36px rgba(0, 0, 0, 0.95);
}

.card {
  position: relative;
  padding: clamp(20px, 2.4vw, 30px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(30, 42, 107, 0.72), rgba(19, 26, 69, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 22px 44px -36px rgba(0, 0, 0, 0.9);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease),
    background-color 0.2s var(--ease);
}
.card:hover {
  border-color: rgba(76, 242, 212, 0.5);
  transform: translateY(-3px);
}

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
}
.split--rev { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }

/* ---------- 7. 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background-color: var(--ink-700);
  background-image:
    radial-gradient(120% 90% at 18% 0%, rgba(76, 242, 212, 0.16), transparent 58%),
    radial-gradient(100% 80% at 92% 100%, rgba(255, 46, 139, 0.14), transparent 62%),
    linear-gradient(160deg, #10173C, #0A0E2B);
}
.media-frame > img,
.media-frame > svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }

.media-frame__caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
  background: linear-gradient(180deg, transparent, rgba(7, 11, 36, 0.88));
}

/* ---------- 8. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
}
.breadcrumb__item {
  color: var(--mist);
  text-decoration: none;
}
.breadcrumb__item:hover { color: var(--cyan); }
.breadcrumb__item[aria-current="page"] { color: var(--paper); }
.breadcrumb__sep { color: rgba(167, 176, 214, 0.5); }

/* ---------- 9. 章节导航（桌面左侧 64px） ---------- */
.chapter-rail {
  position: fixed;
  left: 0;
  top: 50%;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 64px;
  padding: 20px 0;
  transform: translateY(-50%);
  border-right: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(11, 16, 48, 0) 0%, rgba(11, 16, 48, 0.78) 18%, rgba(11, 16, 48, 0.78) 82%, rgba(11, 16, 48, 0) 100%);
}
.chapter-rail__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: rgba(167, 176, 214, 0.72);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}
.chapter-rail__link::before {
  content: "";
  width: 1px;
  height: 18px;
  background: currentColor;
  opacity: 0.45;
  transition: opacity 0.18s var(--ease);
}
.chapter-rail__link:hover,
.chapter-rail__link.is-active { color: var(--cyan); }
.chapter-rail__link.is-active::before { opacity: 1; }

/* ---------- 10. 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 240;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--cyan);
  color: #06122A;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.18s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  color: #06122A;
}

/* ---------- 11. 站点头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 13, 38, 0.96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 18px 40px -34px rgba(0, 0, 0, 0.95);
}
.site-header::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--cyan) 22%, var(--orange) 58%, var(--magenta) 100%);
}

.masthead { border-bottom: 1px solid var(--line-soft); }

.masthead__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "region brand side";
  align-items: center;
  gap: 16px;
  padding-block: 20px;
  transition: padding-block 0.24s var(--ease);
}

.masthead__region {
  grid-area: region;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mist);
}
.masthead__pulse {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(76, 242, 212, 0.16);
}

.brand {
  grid-area: brand;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  text-decoration: none;
}
.brand:hover { color: var(--paper); }

.brand__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border: 1px solid rgba(76, 242, 212, 0.7);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(76, 242, 212, 0.2), rgba(76, 242, 212, 0) 65%);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.brand:hover .brand__mark {
  border-color: var(--orange);
  color: var(--orange);
  background: linear-gradient(150deg, rgba(255, 122, 47, 0.24), rgba(255, 122, 47, 0) 65%);
}

.brand__word {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.1vw, 27px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.16em;
  white-space: nowrap;
  transition: font-size 0.24s var(--ease);
}

.masthead__side {
  grid-area: side;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 122, 47, 0.5);
  border-radius: var(--radius);
  background: rgba(255, 122, 47, 0.08);
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.status-tag__dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--orange);
}

.fav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: transparent;
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease),
    background-color 0.18s var(--ease), transform 0.12s var(--ease);
}
.fav-btn:hover {
  color: var(--paper);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}
.fav-btn__mark {
  width: 8px;
  height: 8px;
  flex: none;
  border: 1px solid currentColor;
  transform: rotate(45deg);
  transition: background-color 0.18s var(--ease);
}
.fav-btn__text { white-space: nowrap; }
.fav-btn[aria-pressed="true"] {
  color: var(--magenta);
  border-color: rgba(255, 46, 139, 0.6);
  background: rgba(255, 46, 139, 0.1);
}
.fav-btn[aria-pressed="true"] .fav-btn__mark { background: currentColor; }

/* 导航条 */
.nav-band { position: relative; }

.nav-band__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.primary-nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2.4vw, 34px);
  counter-reset: navidx;
}
.primary-nav__list > li { counter-increment: navidx; }

.primary-nav a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 15px 2px 14px;
  color: var(--mist);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: color 0.18s var(--ease), padding 0.24s var(--ease);
}
.primary-nav a::before {
  content: "0" counter(navidx);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(167, 176, 214, 0.55);
  transition: color 0.18s var(--ease);
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s var(--ease);
}
.primary-nav a:hover { color: var(--paper); }
.primary-nav a:hover::after { transform: scaleX(1); }
.primary-nav a[aria-current="page"] { color: var(--paper); }
.primary-nav a[aria-current="page"]::before { color: var(--cyan); }
.primary-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--cyan);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: transparent;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan); }
.nav-toggle__bars {
  position: relative;
  width: 16px;
  height: 10px;
  flex: none;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--cyan);
  transition: transform 0.2s var(--ease), top 0.2s var(--ease), bottom 0.2s var(--ease);
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { bottom: 0; }
.nav-toggle__label { white-space: nowrap; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  top: 4px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  bottom: 5px;
  transform: rotate(-45deg);
}

/* 吸顶收窄 */
.site-header.is-stuck .masthead__inner { padding-block: 10px; }
.site-header.is-stuck .brand__word { font-size: clamp(17px, 1.7vw, 22px); }
.site-header.is-stuck .brand__mark { width: 30px; height: 30px; }
.site-header.is-stuck .primary-nav a { padding-block: 11px 10px; font-size: 13px; }

/* ---------- 12. 站点页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 120px);
  border-top: 1px solid var(--line-soft);
  background-color: var(--ink-900);
  background-image:
    radial-gradient(70% 120% at 10% 0%, rgba(30, 42, 107, 0.66), transparent 62%),
    radial-gradient(60% 110% at 90% 8%, rgba(255, 46, 139, 0.08), transparent 62%);
  color: var(--mist);
  font-size: 14px;
}
.site-footer::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--magenta) 0%, var(--orange) 45%, var(--cyan) 100%);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-block: clamp(32px, 5vw, 56px) clamp(22px, 3vw, 34px);
  border-bottom: 1px solid var(--line-soft);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand__word {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.16em;
  color: var(--paper);
}
.footer-brand__note {
  margin: 0;
  max-width: 36ch;
  font-size: 13px;
  line-height: 1.75;
  color: var(--mist);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 48px);
  padding-block: clamp(28px, 4vw, 52px);
}

.footer-col { min-width: 0; }

.footer-col__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--paper);
}
.footer-col__title::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--cyan);
}

.footer-list li + li { margin-top: 10px; }
.footer-list a {
  position: relative;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.16s var(--ease);
}
.footer-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s var(--ease);
}
.footer-list a:hover { color: var(--paper); }
.footer-list a:hover::after { transform: scaleX(1); }

.footer-contact {
  display: grid;
  gap: 12px;
  margin: 0;
}
.footer-contact__item {
  display: grid;
  gap: 3px;
  margin: 0;
}
.footer-contact__label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(167, 176, 214, 0.7);
}
.footer-contact__value {
  font-size: 14px;
  line-height: 1.6;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 18px 28px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.08em;
  color: rgba(167, 176, 214, 0.82);
}
.footer-bottom__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin: 0;
}

/* ---------- 13. 动效与滚动进度 ---------- */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.js-ready [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--orange) 58%, var(--magenta) 100%);
  pointer-events: none;
}

/* ---------- 14. 响应式 ---------- */
@media (max-width: 1180px) {
  .chapter-rail { display: none; }
}

@media (max-width: 980px) {
  .grid--3,
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav-band__inner {
    justify-content: flex-end;
    padding-block: 8px;
  }
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    display: none;
    padding: 8px var(--gutter) 20px;
    background: linear-gradient(180deg, rgba(19, 26, 69, 0.99), rgba(11, 16, 48, 0.99));
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 28px 52px -32px rgba(0, 0, 0, 0.95);
  }
  .primary-nav[data-open="true"] { display: block; }
  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .primary-nav__list > li + li { border-top: 1px solid rgba(110, 123, 181, 0.18); }
  .primary-nav a {
    padding: 14px 0;
    font-size: 15px;
  }
  .primary-nav a::after {
    left: 0;
    right: auto;
    bottom: 10px;
    width: 44px;
  }
  .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
  .split,
  .split--rev { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .masthead__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand side"
      "region region";
    justify-items: start;
    gap: 12px;
    padding-block: 14px;
  }
  .brand { justify-self: start; }
  .masthead__side { justify-self: end; }
  .masthead__region {
    justify-self: start;
    letter-spacing: 0.2em;
  }
  .site-header.is-stuck .masthead__region { display: none; }
  .footer-top { align-items: flex-start; flex-direction: column; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .media-frame--wide { aspect-ratio: 16 / 10; }
}

@media (max-width: 520px) {
  .status-tag { display: none; }
  .brand__mark { width: 32px; height: 32px; }
}

@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;
    scroll-behavior: auto !important;
  }
  .js-ready [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .ease,
  .card:hover,
  .btn:hover,
  .fav-btn:hover { transform: none; }
}
