/* =========================================================
   天行赛场 · 共享样式 /assets/site.css
   顺序：重置 → 变量 → 排版 → 通用组件 → 头部 → 页脚 → 响应式
   ========================================================= */

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

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

body {
  margin: 0;
  background-color: #F5F9FC;
  color: #0B2239;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding-left: 0; list-style: none; }
img, svg, picture, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }

::selection { background-color: #2F8FD6; color: #FFFFFF; }

/* ---------- 2. 变量 ---------- */
:root {
  --sky-500: #2F8FD6;
  --sky-600: #1F72B4;
  --sky-050: #E3F1FB;
  --ink-900: #0B2239;
  --ink-700: #123A5A;
  --ink-500: #33506B;
  --ink-300: #5C7085;
  --turf-500: #2E9E5B;
  --turf-700: #1F7A43;
  --track-500: #E86A2A;
  --track-700: #B94A16;
  --mist-50: #F5F9FC;
  --cloud-200: #D8E4EE;
  --paper: #FFFFFF;
  --hair: 1px solid #D8E4EE;
  --hair-light: 1px solid rgba(216, 228, 238, 0.7);
  --radius-s: 4px;
  --radius-m: 10px;
  --shell-max: 1180px;
  --gutter: clamp(18px, 4vw, 44px);
  --dur: 190ms;
  --dur-slow: 320ms;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --shadow-1: 0 1px 0 rgba(11, 34, 57, 0.04), 0 18px 40px -32px rgba(11, 34, 57, 0.55);
  --shadow-2: 0 18px 44px -22px rgba(11, 34, 57, 0.45);
  --font-num: ui-monospace, "SFMono-Regular", "Menlo", "Consolas", "Roboto Mono", "Courier New", monospace;
}

/* ---------- 3. 基础排版 ---------- */
.h1, .h2, .h3, .h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-stretch: condensed;
  line-height: 1.08;
  color: var(--ink-900);
  text-wrap: balance;
}
.h1 { font-size: clamp(40px, 6.4vw, 64px); }
.h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.14; }
.h3 { font-size: clamp(20px, 2.4vw, 28px); line-height: 1.28; }
.h4 { font-size: 20px; line-height: 1.35; }

.lead {
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.8;
  color: var(--ink-500);
  max-width: 56ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sky-600);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background-color: currentColor;
}

.chapter-num {
  display: block;
  font-family: var(--font-num);
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--cloud-200);
  font-variant-numeric: tabular-nums;
}

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

.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink-500);
}
.prose > * + * { margin-top: 1.15em; }
.prose h2, .prose h3 {
  color: var(--ink-900);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.prose h2 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.3; margin-top: 1.9em; }
.prose h3 { font-size: 20px; line-height: 1.4; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.15em; }
.prose ul { list-style: none; }
.prose ul li { position: relative; padding-left: 4px; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: -0.9em;
  top: 0.78em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--sky-500);
}
.prose ol { list-style: decimal; }
.prose ol li::marker { color: var(--sky-600); font-family: var(--font-num); font-weight: 700; }
.prose strong { color: var(--ink-900); font-weight: 700; }
.prose a { color: var(--sky-600); text-underline-offset: 4px; }

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

.section { padding-block: clamp(48px, 7vw, 96px); }
.section--tint { background-color: var(--sky-050); }
.section--ink { background-color: var(--ink-900); color: #DCE8F2; }
.section--ink .h1,
.section--ink .h2,
.section--ink .h3 { color: #FFFFFF; }
.section--ink .lead { color: #A9C6DC; }

.grid { display: grid; gap: clamp(20px, 3vw, 40px); }
.grid--split { grid-template-columns: 1fr; }
.grid--stagger { grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); }
.grid--stagger > *:nth-child(even) { margin-top: 0; }

.stack { display: grid; gap: 16px; }
.stack--loose { gap: clamp(20px, 3vw, 32px); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cluster--wide { gap: 18px 28px; }

.rule { height: 1px; border: 0; background-color: var(--cloud-200); margin: 0; }

/* ---------- 5. 按钮与链接 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  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),
    box-shadow var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background-color: var(--track-500);
  color: var(--ink-900);
  box-shadow: 0 14px 26px -18px rgba(232, 106, 42, 0.95);
}
.btn--primary:hover { background-color: #F07C41; box-shadow: 0 18px 32px -18px rgba(232, 106, 42, 0.95); }

.btn--sky {
  background-color: var(--sky-500);
  color: #FFFFFF;
  box-shadow: 0 14px 26px -18px rgba(47, 143, 214, 0.9);
}
.btn--sky:hover { background-color: var(--sky-600); }

.btn--ghost {
  background-color: transparent;
  border-color: var(--cloud-200);
  color: var(--ink-900);
}
.btn--ghost:hover { border-color: var(--sky-500); color: var(--sky-600); }

.btn--inverse {
  background-color: #FFFFFF;
  color: var(--ink-900);
}
.btn--inverse:hover { background-color: var(--sky-050); color: var(--sky-600); }

.link-underline {
  color: var(--sky-600);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size var(--dur) var(--ease), color var(--dur) var(--ease);
}
.link-underline:hover,
.link-underline:focus-visible { background-size: 100% 1px; }

/* ---------- 6. 通用小组件 ---------- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
}
.status-pill--live { background-color: rgba(46, 158, 91, 0.14); color: var(--turf-700); }
.status-pill--warn { background-color: rgba(232, 106, 42, 0.16); color: var(--track-700); }
.status-pill--info { background-color: var(--sky-050); color: var(--sky-600); }

.tag {
  display: inline-block;
  padding: 3px 11px;
  border: var(--hair);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-500);
  white-space: nowrap;
}

.panel {
  background-color: var(--paper);
  border: var(--hair);
  border-radius: var(--radius-m);
  padding: clamp(18px, 3vw, 28px);
  box-shadow: var(--shadow-1);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-block: 18px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-300);
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.breadcrumbs li { display: flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "›"; color: var(--cloud-200); }
.breadcrumbs a { color: var(--ink-900); text-decoration: none; }
.breadcrumbs a:hover { color: var(--sky-600); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs [aria-current="page"] { color: var(--ink-300); }

/* 图片容器基础规则 */
.media { display: block; margin: 0; }
.media__frame {
  position: relative;
  display: block;
  overflow: hidden;
  border: var(--hair);
  border-radius: var(--radius-m);
  background-color: var(--sky-050);
  background-image: linear-gradient(158deg, #E3F1FB 0%, #D8E4EE 58%, #CFE2F2 100%);
}
.media__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(120% 86% at 18% 0%, rgba(47, 143, 214, 0.24), transparent 62%);
}
.media__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}
.media__caption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-300);
}
.media--wide .media__frame { aspect-ratio: 16 / 9; }
.media--tall .media__frame { aspect-ratio: 3 / 4; }
.media--square .media__frame { aspect-ratio: 1 / 1; }
.media--band .media__frame { aspect-ratio: 21 / 9; }

/* ---------- 7. 焦点与可达性 ---------- */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--sky-500);
  outline-offset: 2px;
  border-radius: var(--radius-s);
  box-shadow: 0 0 0 5px rgba(245, 249, 252, 0.9);
}

.skip-link {
  position: absolute;
  top: 0;
  left: -9999px;
  z-index: 200;
  padding: 12px 22px;
  background-color: var(--ink-900);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 var(--radius-m) 0;
  transition: background-color var(--dur) var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { left: 0; }
.skip-link:hover { background-color: var(--sky-600); }

/* ---------- 8. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background-color: var(--paper);
  border-bottom: var(--hair);
  box-shadow: 0 12px 26px -26px rgba(11, 34, 57, 0.9);
}

.read-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  overflow: hidden;
  z-index: 2;
}
.read-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background-image: linear-gradient(90deg, #2F8FD6 0%, #2E9E5B 62%, #E86A2A 100%);
  transition: transform 90ms linear;
}

.header-ribbon {
  background-color: var(--ink-900);
  color: #DCE8F2;
}
.header-ribbon__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px clamp(14px, 3vw, 30px);
  min-height: 38px;
  padding-block: 6px;
}
.header-ribbon__live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #EAF3FA;
}
.live-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background-color: var(--turf-500);
  box-shadow: 0 0 0 3px rgba(46, 158, 91, 0.24);
  animation: livePulse 2.6s var(--ease) infinite;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(46, 158, 91, 0.24); }
  50% { box-shadow: 0 0 0 6px rgba(46, 158, 91, 0.06); }
}
.header-ribbon__meta {
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #8FB4D0;
}
.header-ribbon__link {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--track-500);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.header-ribbon__link:hover,
.header-ribbon__link:focus-visible {
  color: #FF9560;
  border-bottom-color: currentColor;
}

.header-bar { background-color: var(--paper); }
.header-bar__inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 40px);
  min-height: 78px;
  padding-block: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink-900);
  flex: none;
}
.brand__mark {
  position: relative;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 6px;
  background-color: var(--sky-500);
  transition: background-color var(--dur) var(--ease);
}
.brand__mark::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 4px;
  height: 3px;
  border-radius: 2px;
  background-color: var(--mist-50);
}
.brand:hover .brand__mark { background-color: var(--sky-600); }
.brand__text { display: block; }
.brand__name {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-stretch: condensed;
  line-height: 1.1;
  color: inherit;
}
.brand__tagline {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--ink-300);
}

.nav { margin-left: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(2px, 0.8vw, 6px);
}
.nav__link {
  position: relative;
  display: inline-block;
  padding: 10px 12px;
  border-radius: var(--radius-s);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink-900);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background-color: var(--sky-500);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav__link:hover { color: var(--sky-600); }
.nav__link:hover::after,
.nav__link:focus-visible::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--sky-600); }
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  background-color: var(--track-500);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 15px;
  background-color: var(--paper);
  border: 1px solid var(--cloud-200);
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink-900);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-toggle:hover { border-color: var(--sky-500); color: var(--sky-600); }
.nav-toggle__bars {
  position: relative;
  width: 16px;
  height: 10px;
  flex: none;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background-color: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle[aria-expanded="true"] {
  background-color: var(--sky-050);
  border-color: var(--sky-500);
  color: var(--sky-600);
}
.nav-toggle__label { display: inline-block; }

/* ---------- 9. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  padding-top: clamp(44px, 6vw, 78px);
  background-color: var(--ink-900);
  color: #DCE8F2;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background-image: linear-gradient(
    90deg,
    #2F8FD6 0%,
    #2F8FD6 62%,
    #2E9E5B 62%,
    #2E9E5B 84%,
    #E86A2A 84%,
    #E86A2A 100%
  );
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.brand--inverse { color: #FFFFFF; }
.brand--inverse .brand__name { color: #FFFFFF; }
.brand--inverse .brand__tagline { color: #8FAFC9; }
.brand--inverse .brand__mark { background-color: var(--sky-500); }
.brand--inverse:hover .brand__mark { background-color: var(--turf-500); }

.footer-brand__tagline {
  margin-top: 18px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  font-stretch: condensed;
}
.footer-brand__note {
  margin-top: 10px;
  max-width: 32ch;
  font-size: 13px;
  line-height: 1.75;
  color: #8FAFC9;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 36px);
}

.footer-col__title {
  margin-bottom: 16px;
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7FA0BC;
  line-height: 1.6;
}
.footer-col__list { display: grid; gap: 11px; }
.footer-col__list a {
  position: relative;
  display: inline-block;
  font-size: 15px;
  line-height: 1.6;
  color: #DCE8F2;
  text-decoration: none;
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.footer-col__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background-color: var(--sky-500);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur) var(--ease);
}
.footer-col__list a:hover { color: #FFFFFF; }
.footer-col__list a:hover::after { transform: scaleX(1); }

.footer-contact__list { display: grid; gap: 14px; }
.footer-contact__label {
  display: block;
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.6;
  color: #7FA0BC;
}
.footer-contact__value {
  display: block;
  font-size: 14px;
  line-height: 1.7;
  color: #EAF3FA;
  overflow-wrap: anywhere;
}
.footer-contact__value--mono {
  font-family: var(--font-num);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  margin-top: clamp(34px, 5vw, 58px);
  padding-block: 22px;
  border-top: 1px solid rgba(216, 228, 238, 0.18);
  font-size: 13px;
  line-height: 1.7;
  color: #8FAFC9;
}
.footer-legal__copy { color: #8FAFC9; }
.footer-legal__icp {
  font-family: var(--font-num);
  letter-spacing: 0.03em;
  color: #8FAFC9;
}
.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-left: auto;
}
.footer-legal__links a {
  color: #BBD3E6;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.footer-legal__links a:hover {
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--sky-500);
}

.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 30px);
  bottom: clamp(14px, 3vw, 30px);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--cloud-200);
  border-radius: 999px;
  background-color: var(--paper);
  color: var(--ink-900);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  box-shadow: var(--shadow-2);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.to-top::before {
  content: "↑";
  font-family: var(--font-num);
  font-size: 14px;
  line-height: 1;
  color: var(--sky-500);
}
.to-top[data-shown] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.to-top:hover { border-color: var(--sky-500); color: var(--sky-600); }

/* ---------- 10. 响应式 ---------- */
@media (min-width: 760px) {
  .grid--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .grid--split > .grid--split__narrow { max-width: 44ch; }
}

@media (max-width: 1000px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-brand__note { max-width: 46ch; }
}

@media (max-width: 880px) {
  html { scroll-padding-top: 104px; }

  .header-bar__inner {
    flex-wrap: wrap;
    min-height: 64px;
    padding-block: 10px;
    gap: 10px;
  }
  .nav-toggle { display: inline-flex; }

  .nav {
    display: none;
    flex-basis: 100%;
    margin-left: 0;
    width: 100%;
    padding-block: 8px 10px;
    border-top: var(--hair-light);
  }
  .nav[data-open] { display: block; }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .nav__link {
    display: block;
    padding: 13px 12px;
    font-size: 16px;
    border-radius: var(--radius-s);
  }
  .nav__link::after {
    left: 12px;
    right: 12px;
    bottom: 8px;
  }
  .nav__link:hover { background-color: var(--sky-050); }
  .nav__link[aria-current="page"] {
    background-color: var(--sky-050);
    color: var(--sky-600);
  }

  .header-ribbon__meta { display: none; }
  .header-ribbon__inner { min-height: 34px; }
}

@media (max-width: 760px) {
  .footer-cols { grid-template-columns: 1fr; gap: 26px; }
  .footer-legal__links { margin-left: 0; }
  .brand__name { font-size: 20px; }
  .brand__tagline { font-size: 11px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .header-ribbon__link { font-size: 11px; }
  .header-ribbon__live { font-size: 11px; letter-spacing: 0.08em; }
  .footer-brand__tagline { font-size: 18px; }
  .to-top { padding: 10px 15px; font-size: 12px; }
}

/* ---------- 11. 减少动效 ---------- */
@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;
  }
  .btn:hover,
  .to-top[data-shown] { transform: none; }
  .read-progress__bar { transition: none; }
}
