/* ===========================================================
   球王会体育站 · /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 头部 / 页脚 / 通用组件
   =========================================================== */

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

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

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

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

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

a { color: inherit; }

button { font: inherit; color: inherit; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink-950: #04110D;
  --ink-900: #071A13;
  --ink-800: #0A2018;
  --ink-700: #123B2A;
  --pitch-500: #2E7D4F;
  --cyan: #38F2D0;
  --cyan-soft: #A8FFF0;
  --amber: #FFB23E;
  --mist: #E8F5EF;
  --sage: #7E9A8E;
  --coral: #FF6B5A;

  --line: rgba(126, 154, 142, 0.22);
  --line-strong: rgba(126, 154, 142, 0.44);

  --grad-pitch: linear-gradient(120deg, #0A2018 0%, #123B2A 48%, #2E7D4F 100%);
  --grad-panel: linear-gradient(158deg, rgba(18, 59, 42, 0.92), rgba(10, 32, 24, 0.96));

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

  --cut: 12px;
  --gutter: 32px;
  --max: 1440px;
  --content: 1200px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink-950);
  background-image:
    radial-gradient(1100px 560px at 82% -12%, rgba(46, 125, 79, 0.24), transparent 72%),
    repeating-linear-gradient(90deg, rgba(126, 154, 142, 0.055) 0 1px, transparent 1px 96px);
  color: var(--mist);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--mist);
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6vw, 5.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.2; }

p { max-width: 68ch; }

strong { color: var(--mist); font-weight: 700; }

::selection { background: var(--cyan); color: #04110D; }

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

.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;
}

/* ---------- 4. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  left: 16px;
  top: -120px;
  z-index: 300;
  padding: 12px 20px;
  background: var(--cyan);
  color: #04110D;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 14px; }

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

.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(32px, 4vw, 56px); }

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

.workbench {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
}
.workbench__aside { position: sticky; top: 130px; }
.workbench__main { min-width: 0; }

/* ---------- 6. 标题组 / 小标签 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--cyan);
}

.section-head { margin-bottom: clamp(28px, 4vw, 44px); }
.section-head__title { margin-bottom: 14px; }
.section-head__lead {
  max-width: 62ch;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--sage);
}

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

/* ---------- 7. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-soft);
  background: rgba(56, 242, 208, 0.1);
  border: 1px solid rgba(56, 242, 208, 0.35);
}
.tag--amber {
  color: var(--amber);
  background: rgba(255, 178, 62, 0.1);
  border-color: rgba(255, 178, 62, 0.38);
}
.tag--alert {
  color: var(--coral);
  background: rgba(255, 107, 90, 0.1);
  border-color: rgba(255, 107, 90, 0.4);
}

/* ---------- 8. 按钮 ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.05em;
  white-space: nowrap;
  text-decoration: none;
  color: var(--mist);
  background: transparent;
  border: 0;
  cursor: pointer;
  isolation: isolate;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(126, 154, 142, 0.14);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:hover::before { background: rgba(56, 242, 208, 0.16); box-shadow: inset 0 0 0 1px rgba(56, 242, 208, 0.6); }
.btn:active { transform: translateY(0); }

.btn--primary { color: #04110D; }
.btn--primary::before { background: var(--cyan); box-shadow: none; }
.btn--primary:hover { color: #04110D; }
.btn--primary:hover::before { background: var(--cyan-soft); filter: brightness(1.04); }

.btn--ghost { color: var(--mist); }
.btn--ghost:hover { color: var(--cyan-soft); }

.btn--small { padding: 9px 14px; font-size: 12.5px; letter-spacing: 0.04em; }

.text-link {
  color: var(--cyan);
  text-decoration: none;
  padding-bottom: 1px;
  border-bottom: 1px solid rgba(56, 242, 208, 0.4);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.text-link:hover { color: var(--cyan-soft); border-color: var(--cyan-soft); }

/* ---------- 9. 切角面板 ---------- */
.cut-panel {
  --cut: 14px;
  --panel-line: var(--line-strong);
  --panel-bg: var(--grad-panel);
  position: relative;
  padding: clamp(20px, 2.4vw, 28px);
  background: var(--panel-bg);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: background 0.25s var(--ease);
}
.cut-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  pointer-events: none;
  background: var(--panel-line);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  transition: background 0.25s var(--ease);
}
.cut-panel:hover { --panel-line: var(--cyan); }
.cut-panel--amber { --panel-line: rgba(255, 178, 62, 0.55); }
.cut-panel--flat { --panel-bg: rgba(10, 32, 24, 0.72); }

/* ---------- 10. 面包屑 ---------- */
.breadcrumbs { padding-top: 20px; }
.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--sage);
}
.breadcrumbs__item { display: flex; align-items: center; gap: 8px; }
.breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  color: rgba(126, 154, 142, 0.45);
}
.breadcrumbs__link {
  text-decoration: none;
  color: var(--sage);
  transition: color 0.18s var(--ease);
}
.breadcrumbs__link:hover { color: var(--cyan); }
.breadcrumbs__current { color: var(--mist); }

/* ---------- 11. 跑马灯比分条 ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(18, 59, 42, 0.8), rgba(4, 17, 13, 0.5) 60%, rgba(18, 59, 42, 0.8));
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  padding: 12px 0;
  animation: qwh-marquee 24s linear infinite;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }

@keyframes qwh-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--sage);
  white-space: nowrap;
}
.marquee__dot {
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--cyan);
  transform: rotate(45deg);
}

/* ---------- 12. 图片容器基础规则（页面层使用） ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 16 / 9;
  background: linear-gradient(160deg, var(--ink-700), var(--ink-900));
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}
.media-frame > img,
.media-frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.65;
  background:
    repeating-linear-gradient(90deg, rgba(56, 242, 208, 0.1) 0 1px, transparent 1px 64px),
    linear-gradient(180deg, rgba(4, 17, 13, 0) 45%, rgba(4, 17, 13, 0.78) 100%);
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--portrait { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }

.media-frame__caption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  max-width: calc(100% - 32px);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-soft);
}

/* ---------- 13. 斜切分隔 ---------- */
.divider-slant {
  height: clamp(48px, 6vw, 76px);
  pointer-events: none;
  background: linear-gradient(115deg, rgba(18, 59, 42, 0) 0%, rgba(46, 125, 79, 0.28) 55%, rgba(56, 242, 208, 0.16) 100%);
  clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 100%);
}

/* ---------- 14. 滚动显现 ---------- */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 0.34s var(--ease), transform 0.34s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ===========================================================
   15. 头部
   =========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(180deg, rgba(4, 17, 13, 0.97), rgba(7, 26, 19, 0.93));
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* 顶部轨道条 */
.header-rail {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 7px clamp(16px, 3vw, 32px);
  border-bottom: 1px solid rgba(126, 154, 142, 0.14);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
}
.header-rail__tag { color: var(--cyan); white-space: nowrap; }
.header-rail__line {
  flex: 1;
  min-width: 24px;
  height: 1px;
  background: linear-gradient(90deg, rgba(56, 242, 208, 0.7), rgba(56, 242, 208, 0));
}
.header-rail__meta { white-space: nowrap; }
.header-rail__meta + .header-rail__meta::before {
  content: "·";
  margin-right: 8px;
  color: rgba(126, 154, 142, 0.5);
}

/* 主行 */
.header-main {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  max-width: var(--max);
  margin-inline: auto;
  padding: 12px clamp(16px, 3vw, 32px);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  text-decoration: none;
  color: var(--mist);
}
.brand__mark {
  position: relative;
  display: block;
  width: 42px;
  height: 42px;
  background: var(--grad-pitch);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: filter 0.2s var(--ease);
}
.brand__mark-core {
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(56, 242, 208, 0.75);
  border-radius: 50%;
}
.brand__mark-core::after {
  content: "";
  position: absolute;
  left: -9px;
  right: -9px;
  top: 50%;
  height: 1px;
  background: rgba(56, 242, 208, 0.5);
}
.brand:hover .brand__mark { filter: brightness(1.18); }
.brand__text { display: flex; flex-direction: column; gap: 1px; }
.brand__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--mist);
}
.brand__tagline {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--sage);
}

/* 主导航 */
.site-nav { margin-left: auto; }
.site-nav__list { display: flex; align-items: center; gap: 2px; }
.site-nav__item { position: relative; }
.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 9px 12px 10px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.site-nav__index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--sage);
  transition: color 0.18s var(--ease);
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s var(--ease);
}
.site-nav__link:hover { color: var(--cyan-soft); background: rgba(56, 242, 208, 0.07); }
.site-nav__link:hover .site-nav__index { color: var(--cyan); }
.site-nav__link:hover::after { transform: scaleX(0.4); }
.site-nav__link[aria-current="page"] { color: var(--cyan); }
.site-nav__link[aria-current="page"] .site-nav__index { color: var(--cyan); }
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* 右侧动作区 */
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.header-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--sage);
  text-decoration: none;
  background: rgba(4, 17, 13, 0.6);
  border: 1px solid var(--line);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.header-search:hover {
  color: var(--cyan-soft);
  border-color: rgba(56, 242, 208, 0.6);
  background: rgba(56, 242, 208, 0.08);
}
.header-search__key {
  padding: 0 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--cyan);
  border: 1px solid rgba(56, 242, 208, 0.45);
}
.header-search__text { white-space: nowrap; }

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 9px 12px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--cyan-soft);
  background: rgba(56, 242, 208, 0.08);
  border: 1px solid rgba(56, 242, 208, 0.4);
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav-toggle:hover { background: rgba(56, 242, 208, 0.16); border-color: rgba(56, 242, 208, 0.7); }
.nav-toggle__bars { display: inline-flex; flex-direction: column; gap: 4px; width: 16px; }
.nav-toggle__bar {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] { background: rgba(56, 242, 208, 0.2); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* 滚动进度光轨 */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
  transition: transform 0.08s linear;
}

/* ===========================================================
   16. 页脚
   =========================================================== */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(56px, 8vw, 104px);
  background: linear-gradient(180deg, var(--ink-900) 0%, var(--ink-950) 100%);
  border-top: 1px solid var(--line);
  color: var(--mist);
}
.site-footer::before {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -45%;
  height: 340px;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(46, 125, 79, 0.35), transparent 75%);
}
.footer-pitch {
  position: relative;
  height: 6px;
  opacity: 0.6;
  background: repeating-linear-gradient(90deg, var(--pitch-500) 0 26px, rgba(4, 17, 13, 0.9) 26px 52px);
}
.footer-inner {
  position: relative;
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(40px, 5vw, 64px) var(--gutter) clamp(32px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(240px, 1.35fr) minmax(300px, 1.5fr) minmax(260px, 1.15fr);
  gap: 44px 40px;
}

.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.brand--footer .brand__mark { width: 38px; height: 38px; }
.brand--footer .brand__name { font-size: 18px; }
.footer-summary {
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--sage);
}
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--cyan-soft);
  background: rgba(56, 242, 208, 0.08);
  border: 1px solid rgba(56, 242, 208, 0.32);
}
.footer-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--cyan);
  transform: rotate(45deg);
}

.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.footer-col__title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
}
.footer-col__title::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  margin-top: 10px;
  background: var(--cyan);
}
.footer-col__list { display: flex; flex-direction: column; gap: 10px; }
.footer-col__link {
  display: inline-block;
  font-size: 14px;
  color: var(--sage);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.footer-col__link:hover { color: var(--cyan-soft); border-bottom-color: rgba(56, 242, 208, 0.5); }

.footer-contact { display: flex; flex-direction: column; }
.footer-contact__list { display: flex; flex-direction: column; gap: 12px; }
.footer-contact__row { display: flex; flex-direction: column; gap: 2px; }
.footer-contact__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(126, 154, 142, 0.85);
}
.footer-contact__value {
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--mist);
  word-break: break-word;
}
.footer-contact__note {
  max-width: 36ch;
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.8;
  color: rgba(126, 154, 142, 0.9);
}

.footer-legal {
  position: relative;
  max-width: var(--max);
  margin-inline: auto;
  padding: 18px var(--gutter) 26px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--sage);
}
.footer-legal__item { max-width: none; }

/* ===========================================================
   17. 响应式
   =========================================================== */
@media (max-width: 1280px) {
  .header-search__text { display: none; }
  .header-search { padding: 9px 10px; }
}

@media (max-width: 1180px) {
  :root { --gutter: 24px; }
  .site-nav__link { padding: 9px 9px 10px; font-size: 14px; }
  .site-nav__link::after { left: 9px; right: 9px; }
}

@media (max-width: 1024px) {
  :root { --gutter: 20px; }

  .nav-toggle { display: inline-flex; }
  .header-actions { gap: 8px; margin-left: auto; }
  .header-actions .btn { padding: 9px 12px; font-size: 12.5px; letter-spacing: 0.02em; }
  .brand__tagline { display: none; }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    max-height: calc(100vh - 108px);
    overflow-y: auto;
    margin-left: 0;
    padding: 8px var(--gutter) 20px;
    background: linear-gradient(180deg, rgba(7, 26, 19, 0.995), rgba(4, 17, 13, 0.995));
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 26px 48px rgba(0, 0, 0, 0.5);
  }
  .site-nav[data-open] { display: block; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__link {
    display: flex;
    width: 100%;
    padding: 14px 6px;
    font-size: 16px;
    border-bottom: 1px solid rgba(126, 154, 142, 0.14);
  }
  .site-nav__link::after { left: 6px; right: auto; width: 26px; bottom: 8px; }
  .site-nav__link:hover::after { transform: scaleX(1); }
  .site-nav__link[aria-current="page"]::after { transform: scaleX(1); }

  .workbench { grid-template-columns: 1fr; }
  .workbench__aside { position: static; }

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

@media (max-width: 760px) {
  :root { --gutter: 18px; }

  .header-rail { gap: 10px; font-size: 10px; letter-spacing: 0.12em; }
  .header-rail__meta:last-child { display: none; }

  .header-main { gap: 10px; padding: 10px var(--gutter); }
  .brand__mark { width: 36px; height: 36px; }
  .brand__name { font-size: 17px; }
  .header-actions .btn { padding: 8px 10px; font-size: 12px; }

  .grid-12 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-nav { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-legal { flex-direction: column; gap: 6px; }
}

@media (max-width: 480px) {
  .header-rail__tag { font-size: 9.5px; letter-spacing: 0.1em; }
  .header-actions .btn { padding: 8px 9px; font-size: 11.5px; }
  .nav-toggle { padding: 8px 10px; letter-spacing: 0.1em; }
  .footer-nav { grid-template-columns: 1fr; }
}

/* ---------- 18. 动效降级 ---------- */
@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;
  }

  .marquee__track {
    animation: none !important;
    flex-wrap: wrap;
    width: auto;
    padding-inline: var(--gutter);
  }

  .scroll-progress { transition: none; }

  .reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
    transition: opacity 0.12s linear;
  }

  .btn:hover { transform: none; }
  .site-nav__link::after { transition: none; }
}
