/* =========================================================
   site.css — 非凡体育入口 / 北国赛场控制台
   共享层：reset、变量、中文排版、头部、页脚、通用组件
   ========================================================= */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 108px; }
body { margin: 0; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
table { border-collapse: collapse; }

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 3px solid #FF5A36;
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- variables ---------- */
:root {
  --frost: #F4FBFF;
  --ink: #0B1B2B;
  --ink-deep: #08131f;
  --ice: #8FD8F2;
  --cyan: #26F0D3;
  --flash: #FF5A36;
  --paper: #F2E9D8;
  --steel: #6C8193;
  --glare: #D6F3FF;
  --lime: #D8FF4F;
  --alert: #B3261E;

  --line: rgba(108, 129, 147, 0.28);
  --line-soft: rgba(108, 129, 147, 0.16);
  --line-frost: rgba(143, 216, 242, 0.22);

  --font-display: "Arial Narrow", "Helvetica Neue Condensed", "Helvetica Neue", Arial,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC",
    "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --shell: 1320px;
  --gutter: clamp(16px, 3vw, 32px);
  --radius: 2px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- base ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: clamp(16px, 0.55vw + 15px, 17px);
  line-height: 1.75;
  color: #12283a;
  background-color: var(--frost);
  background-image:
    radial-gradient(1200px 640px at 84% -10%, rgba(143, 216, 242, 0.55), transparent 60%),
    radial-gradient(900px 520px at 4% 0%, rgba(214, 243, 255, 0.85), transparent 68%),
    repeating-linear-gradient(90deg, rgba(108, 129, 147, 0.13) 0 1px, transparent 1px 96px);
  background-repeat: no-repeat, no-repeat, repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--cyan); color: var(--ink); }

#main-content { outline: none; }

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

/* ---------- 排版工具 ---------- */
.display-xl {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.editorial-title {
  font-weight: 300;
  font-size: clamp(2.1rem, 5.2vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.lede {
  font-size: clamp(1.02rem, 1.2vw, 1.2rem);
  line-height: 1.72;
  color: #2b4356;
  max-width: 60ch;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--steel);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--flash);
}

.section-index {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  color: var(--steel);
}

/* ---------- 版心与布局 ---------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 880px; }

.page-main { padding-block: clamp(22px, 4vw, 52px) 0; }

.section { padding-block: clamp(28px, 4.4vw, 62px); }
.section + .section { border-top: 1px solid var(--line); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 28px);
  margin-bottom: clamp(16px, 2.4vw, 32px);
}

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

.panel-stack { display: grid; gap: clamp(10px, 1.4vw, 16px); }

/* ---------- 面板 ---------- */
.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 32px);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.panel--ink {
  background: linear-gradient(170deg, #0B1B2B, #08131f 82%);
  border-color: rgba(38, 240, 211, 0.26);
  color: rgba(244, 251, 255, 0.86);
}
.panel--ink .section-title { color: var(--frost); }
.panel--paper { background: var(--paper); border-color: rgba(108, 129, 147, 0.3); }
.panel--ice {
  background: linear-gradient(150deg, var(--glare), #ffffff 72%);
  border-color: rgba(143, 216, 242, 0.6);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.55em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn--primary {
  background: var(--flash);
  color: #ffffff;
  box-shadow: 0 14px 28px -18px rgba(255, 90, 54, 0.95);
}
.btn--primary:hover { background: #ff6f4c; box-shadow: 0 14px 30px -14px rgba(255, 90, 54, 0.8); }
.btn--ink { background: var(--ink); color: var(--frost); }
.btn--ink:hover { background: #12293f; }
.btn--cyan { background: var(--cyan); color: var(--ink); }
.btn--cyan:hover { background: #4df5dd; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(11, 27, 43, 0.3);
}
.btn--ghost:hover { border-color: var(--ink); background: rgba(11, 27, 43, 0.05); }

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.26em 0.72em;
  border: 1px solid rgba(108, 129, 147, 0.42);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.69rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  background: rgba(255, 255, 255, 0.6);
}
.tag--flash { background: var(--flash); border-color: var(--flash); color: #ffffff; }
.tag--cyan { background: var(--cyan); border-color: var(--cyan); color: var(--ink); }

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.1em;
  color: var(--steel);
  margin-bottom: clamp(14px, 2vw, 24px);
}
.breadcrumb a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.breadcrumb a:hover { color: var(--ink); border-color: var(--flash); }
.breadcrumb-sep { opacity: 0.5; }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------- 图像容器（页面阶段放置图片占位） ---------- */
.figure {
  position: relative;
  margin: 0;
  background: linear-gradient(150deg, var(--glare), #ffffff 62%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.figure-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(150deg, #D6F3FF 0%, #F4FBFF 52%, #8FD8F2 100%);
}
.figure-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(11, 27, 43, 0.11) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(0deg, rgba(11, 27, 43, 0.08) 0 1px, transparent 1px 44px);
  mix-blend-mode: multiply;
  opacity: 0.55;
}
.figure-media img,
.figure-media video,
.figure-media svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}
.figure--wide .figure-media { aspect-ratio: 21 / 9; }
.figure--tall .figure-media { aspect-ratio: 3 / 4; }
.figure--square .figure-media { aspect-ratio: 1 / 1; }
.figure-caption {
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  background: rgba(244, 251, 255, 0.78);
  font-family: var(--font-mono);
  font-size: 0.71rem;
  letter-spacing: 0.1em;
  color: var(--steel);
}

/* ---------- 数据条 ---------- */
.data-bar {
  position: relative;
  height: 6px;
  background: rgba(108, 129, 147, 0.22);
  border-radius: 1px;
  overflow: hidden;
}
.data-bar-fill {
  display: block;
  height: 100%;
  width: var(--value, 50%);
  background: linear-gradient(90deg, var(--ice), var(--cyan) 72%, var(--lime));
  transition: width 0.8s var(--ease);
}

/* ---------- 长文 ---------- */
.prose {
  max-width: 68ch;
  font-size: 1.06rem;
  line-height: 1.8;
  color: #183247;
}
.prose > * + * { margin-top: 1.05em; }
.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 1.6em;
}
.prose h3 { font-size: 1.1rem; font-weight: 700; color: var(--ink); margin-top: 1.4em; }
.prose a { color: #0a6472; text-decoration: underline; text-underline-offset: 0.22em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose ul { list-style: square; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4em; }
.prose strong { color: var(--ink); }

/* ---------- 滚动增强 ---------- */
[data-reveal] {
  transition: opacity 0.26s var(--ease), transform 0.26s var(--ease);
}
.js [data-reveal] { opacity: 0; transform: translateY(16px); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

[data-section][data-active="true"] {
  box-shadow: inset 3px 0 0 var(--cyan);
}

/* =========================================================
   头部
   ========================================================= */
.skip-link {
  position: fixed;
  left: 16px;
  top: -90px;
  z-index: 300;
  padding: 0.72em 1.15em;
  background: var(--ink);
  color: var(--frost);
  border: 1px solid var(--cyan);
  border-radius: var(--radius);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: top 0.18s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { top: 14px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px var(--gutter) 0;
}

.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(11, 27, 43, 0.12);
  z-index: 120;
  pointer-events: none;
}
.read-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--ice) 58%, var(--flash));
  transition: transform 0.1s linear;
}

.header-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 20px);
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 9px 12px 9px 14px;
  border-radius: 999px;
  color: var(--frost);
  background: linear-gradient(180deg, rgba(11, 27, 43, 0.97), rgba(8, 19, 31, 0.95));
  border: 1px solid rgba(38, 240, 211, 0.28);
  box-shadow:
    0 22px 48px -30px rgba(11, 27, 43, 0.95),
    inset 0 1px 0 rgba(214, 243, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 3px 0;
  text-decoration: none;
  color: inherit;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(140deg, var(--ice), var(--cyan));
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
  box-shadow: inset 0 0 0 1px rgba(11, 27, 43, 0.35);
}
.brand-text { display: grid; line-height: 1.1; }
.brand-name {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--frost);
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(214, 243, 255, 0.6);
}

.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}
.nav-link {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-decoration: none;
  color: rgba(244, 251, 255, 0.74);
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.nav-link:hover {
  color: #ffffff;
  background: rgba(38, 240, 211, 0.14);
}
.nav-link[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
  background: linear-gradient(120deg, var(--cyan), var(--ice));
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.tool-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}
.tool-pill--primary {
  background: var(--flash);
  color: #ffffff;
  border-color: var(--flash);
}
.tool-pill--primary:hover { background: #ff734f; border-color: #ff734f; }
.tool-pill--help {
  color: var(--cyan);
  border-color: rgba(38, 240, 211, 0.55);
}
.tool-pill--help:hover { background: rgba(38, 240, 211, 0.14); }
.tool-pill--back {
  color: rgba(244, 251, 255, 0.68);
  border-color: rgba(214, 243, 255, 0.24);
}
.tool-pill--back:hover {
  color: var(--frost);
  border-color: rgba(214, 243, 255, 0.6);
  background: rgba(214, 243, 255, 0.1);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(38, 240, 211, 0.42);
  background: rgba(38, 240, 211, 0.1);
  color: var(--cyan);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.nav-toggle-icon {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: background-color 0.18s var(--ease);
}
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s var(--ease);
}
.nav-toggle-icon::before { top: -5px; }
.nav-toggle-icon::after { top: 5px; }
.site-header[data-open] .nav-toggle-icon { background: transparent; }
.site-header[data-open] .nav-toggle-icon::before { transform: translateY(5px) rotate(45deg); }
.site-header[data-open] .nav-toggle-icon::after { transform: translateY(-5px) rotate(-45deg); }

.site-header :focus-visible { outline-color: var(--lime); }

/* =========================================================
   页脚
   ========================================================= */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  color: rgba(244, 251, 255, 0.84);
  background:
    radial-gradient(820px 360px at 8% 0%, rgba(38, 240, 211, 0.16), transparent 64%),
    radial-gradient(680px 320px at 94% 4%, rgba(255, 90, 54, 0.16), transparent 62%),
    linear-gradient(180deg, #0B1B2B 0%, #08131f 80%);
  border-top: 1px solid rgba(38, 240, 211, 0.32);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(143, 216, 242, 0.1) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(143, 216, 242, 0.07) 0 1px, transparent 1px 72px);
}

.footer-shell {
  position: relative;
  z-index: 1;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(32px, 5vw, 64px) var(--gutter) clamp(18px, 2.4vw, 26px);
}

.footer-mast {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding-bottom: clamp(20px, 3vw, 34px);
  border-bottom: 1px solid rgba(143, 216, 242, 0.18);
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(140deg, var(--ice), var(--cyan));
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}
.footer-brand-text { display: grid; line-height: 1.15; }
.footer-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.14rem;
  letter-spacing: -0.01em;
  color: var(--frost);
}
.footer-kicker {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(143, 216, 242, 0.8);
}
.footer-lede {
  font-size: 0.94rem;
  line-height: 1.72;
  color: rgba(244, 251, 255, 0.7);
  max-width: 46ch;
}
.to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.6em 1.1em;
  border: 1px solid rgba(38, 240, 211, 0.45);
  border-radius: 999px;
  background: transparent;
  color: var(--cyan);
  font-size: 0.79rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.to-top:hover { background: var(--cyan); color: var(--ink); }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: clamp(20px, 3vw, 40px);
  padding-block: clamp(24px, 3.4vw, 40px);
}
.footer-col { min-width: 0; }
.footer-col + .footer-col {
  border-left: 1px solid rgba(143, 216, 242, 0.14);
  padding-left: clamp(16px, 2.4vw, 32px);
}
.footer-col-title {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 0.95em;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(38, 240, 211, 0.9);
}
.footer-col-title::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.8;
}
.footer-links { display: grid; gap: 0.4em; }
.footer-links a {
  display: inline-block;
  padding: 0.12em 0;
  font-size: 0.92rem;
  color: rgba(244, 251, 255, 0.78);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.footer-links a:hover { color: var(--frost); border-color: var(--flash); }

.footer-contact { display: grid; gap: 0.9em; }
.contact-item { display: grid; gap: 0.12em; }
.contact-label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(143, 216, 242, 0.72);
}
.contact-value {
  font-size: 0.92rem;
  color: rgba(244, 251, 255, 0.9);
  word-break: break-word;
}
.contact-value--mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
}
.copy-btn {
  justify-self: start;
  margin-top: 0.32em;
  padding: 0.26em 0.72em;
  border: 1px dashed rgba(38, 240, 211, 0.55);
  border-radius: var(--radius);
  background: transparent;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.67rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease),
    border-color 0.16s var(--ease);
}
.copy-btn:hover { background: rgba(38, 240, 211, 0.14); }
.copy-btn[data-copied="true"] {
  border-style: solid;
  border-color: var(--lime);
  color: var(--lime);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: clamp(16px, 2vw, 22px);
  border-top: 1px solid rgba(143, 216, 242, 0.18);
  font-size: 0.78rem;
  color: rgba(244, 251, 255, 0.55);
}
.footer-note {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.footer-legal-links { display: flex; flex-wrap: wrap; gap: clamp(10px, 2vw, 22px); }
.footer-legal-links a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.footer-legal-links a:hover { color: var(--cyan); border-color: rgba(38, 240, 211, 0.6); }

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1279px) {
  .tool-pill--back { display: none; }
}

@media (max-width: 1023px) {
  .site-header { padding: 10px 12px 0; }
  .header-shell {
    flex-wrap: wrap;
    row-gap: 0;
    border-radius: 26px;
    padding: 10px 12px;
  }
  .brand { order: 1; }
  .header-tools { order: 2; margin-left: auto; }
  .nav-toggle { order: 3; display: inline-flex; margin-left: 8px; }
  .site-nav {
    order: 4;
    display: none;
    flex: 1 1 100%;
    justify-content: flex-start;
    width: 100%;
  }
  .site-header[data-open] .header-shell { border-radius: 22px; }
  .site-header[data-open] .site-nav {
    display: block;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(214, 243, 255, 0.18);
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: 4px; width: 100%; }
  .nav-link {
    display: block;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 0.95rem;
  }
  .nav-link[aria-current="page"] { border-radius: 10px; }

  .footer-mast { grid-template-columns: 1fr; justify-items: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col--contact { grid-column: 1 / -1; border-left: 0; padding-left: 0; }
  .footer-col:nth-child(3) { border-left: 0; padding-left: 0; }
}

@media (max-width: 720px) {
  .grid--12 { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-col + .footer-col {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid rgba(143, 216, 242, 0.12);
    padding-top: 18px;
  }
  .footer-legal { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .brand-sub { display: none; }
  .tool-pill--help { display: none; }
  .tool-pill { padding: 7px 12px; font-size: 0.78rem; }
  .read-progress { height: 2px; }
}

/* =========================================================
   降级动效
   ========================================================= */
@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 [data-reveal] { opacity: 1; transform: none; }
  .read-progress-bar { transition: none; }
  .data-bar-fill { transition: none; }
}
