/* ==========================================================================
   赢点赛事 · 共享样式表  /assets/site.css
   战术板刻度 · 深墨绿底 · 荧光青强调 · 等宽数字
   ========================================================================== */

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

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

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

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

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

button, input, select, textarea { font: inherit; color: inherit; }

button { background: none; border: 0; padding: 0; cursor: pointer; }

a { color: inherit; }

table { border-collapse: collapse; border-spacing: 0; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink-900: #061A16;
  --ink-800: #0C2A23;
  --ink-700: #0A211C;
  --line: #1E4A40;
  --cyan: #2EF2CC;
  --mist: #A6F7E7;
  --amber: #F0B429;
  --red: #E5484D;
  --yellow: #F5C542;
  --white: #F2F7F5;
  --muted: #6E8F88;

  --cyan-08: rgba(46, 242, 204, 0.08);
  --cyan-16: rgba(46, 242, 204, 0.16);
  --amber-14: rgba(240, 180, 41, 0.14);

  --rail-w: 88px;
  --topbar-h: 68px;
  --shell-max: 1360px;
  --gutter: clamp(20px, 4vw, 64px);

  --font-head: "Helvetica Neue", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", Arial, sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Source Han Sans SC", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", "Courier New", monospace;

  --r-xs: 8px;
  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 32px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 240ms;
  --t: 340ms;
  --t-slow: 420ms;
}

/* ---------- 3. 基础排版 ---------- */
body {
  margin: 0;
  background-color: var(--ink-900);
  background-image:
    linear-gradient(rgba(46, 242, 204, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 242, 204, 0.035) 1px, transparent 1px);
  background-size: 88px 88px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(32px, 6vw, 64px); }
h2 { font-size: clamp(24px, 3.4vw, 40px); }
h3 { font-size: clamp(20px, 2.2vw, 30px); }
h4 { font-size: 22px; font-weight: 800; }

p { max-width: 68ch; }

a { text-decoration: none; }

strong, b { font-weight: 800; }

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

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

.sr-only {
  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;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 200;
  padding: 11px 20px;
  border-radius: var(--r-pill);
  background: var(--cyan);
  color: var(--ink-900);
  font-size: 15px;
  font-weight: 800;
  transform: translateY(-180%);
  transition: transform var(--t-fast) var(--ease);
}

.skip-link:focus { transform: translateY(0); }

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

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

.grid--split { grid-template-columns: minmax(0, 1fr); }
.grid--thirds { grid-template-columns: minmax(0, 1fr); }

.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--line), rgba(30, 74, 64, 0));
}

/* ---------- 5. 顶栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
}

.topbar {
  position: relative;
  background: rgba(6, 26, 22, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 10px var(--gutter);
  min-height: var(--topbar-h);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  color: var(--white);
}

.brand__name {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.brand__tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar__tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--mist);
  font-size: 14px;
  line-height: 1;
  transition: color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    background-color var(--t-fast) var(--ease);
}

.tool-link:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: var(--cyan-08);
}

.tool-link__icon {
  width: 15px;
  height: 15px;
  flex: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--mist);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.nav-toggle:hover { color: var(--cyan); border-color: var(--cyan); }

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 16px;
  height: 12px;
}

.nav-toggle__bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.scroll-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}

.scroll-line__fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  transition: width 120ms linear;
}

/* ---------- 6. 侧边轨道导航 ---------- */
.rail {
  position: fixed;
  top: 0;
  right: auto;
  bottom: 0;
  left: 0;
  z-index: 70;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 10px 18px;
  background: linear-gradient(180deg, var(--ink-800) 0%, var(--ink-900) 100%);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.rail__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 6px 0 16px;
  border-bottom: 1px solid var(--line);
  color: var(--white);
}

.rail__brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: radial-gradient(circle at 32% 26%, rgba(46, 242, 204, 0.34), rgba(46, 242, 204, 0.05) 70%);
  color: var(--cyan);
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.rail__brand-code {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--amber);
}

.rail__nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
}

.rail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rail__eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--muted);
  text-align: center;
  flex: 1 1 auto;
}

.rail__close {
  display: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  color: var(--mist);
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.rail__close:hover { color: var(--cyan); border-color: var(--cyan); }

.rail__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rail__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 11px 4px;
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}

.rail__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
  transition: color var(--t-fast) var(--ease);
}

.rail__label { display: block; }

.rail__link:hover {
  color: var(--mist);
  background: var(--cyan-08);
}

.rail__link:hover .rail__num { color: var(--amber); }

.rail__link[aria-current="page"] {
  background: var(--cyan);
  color: var(--ink-900);
  font-weight: 800;
}

.rail__link[aria-current="page"] .rail__num { color: rgba(6, 26, 22, 0.7); }

.rail__foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.rail__minor,
.rail__top {
  display: block;
  width: 100%;
  padding: 8px 6px;
  border-radius: var(--r-xs);
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
  color: var(--muted);
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}

.rail__minor:hover,
.rail__top:hover {
  color: var(--cyan);
  background: var(--cyan-08);
}

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(3, 14, 12, 0.74);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t) var(--ease);
}

.nav-scrim[data-open] {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform var(--t-fast) var(--ease),
    background-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease);
}

.btn--primary {
  background: var(--cyan);
  color: #04211B;
  box-shadow: 0 14px 34px -18px rgba(46, 242, 204, 0.9);
}

.btn--primary:hover { background: var(--mist); transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--mist);
}

.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-08);
}

/* ---------- 8. 内页头部与面包屑 ---------- */
.page-head {
  position: relative;
  padding: clamp(28px, 5vw, 56px) 0 clamp(20px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.breadcrumb a:hover { color: var(--cyan); border-bottom-color: var(--cyan); }

.breadcrumb__sep { color: rgba(110, 143, 136, 0.55); }

/* ---------- 9. 章节标题体系 ---------- */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: clamp(24px, 3.5vw, 44px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--amber);
  border-radius: 2px;
}

.sec-title { margin: 0; }

.lead {
  font-size: 17px;
  line-height: 1.75;
  color: var(--mist);
  max-width: 68ch;
}

.note {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* ---------- 10. 卡片与数据块 ---------- */
.card {
  position: relative;
  padding: clamp(20px, 2.6vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--ink-800);
  overflow: hidden;
}

.card--quiet {
  background: rgba(12, 42, 35, 0.45);
}

.card--accent {
  background:
    linear-gradient(140deg, rgba(46, 242, 204, 0.12), rgba(12, 42, 35, 0.9) 62%);
  border-color: rgba(46, 242, 204, 0.32);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--cyan);
}

.stat__label {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---------- 11. 标签与筛选 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: var(--mist);
  white-space: nowrap;
}

.tag--amber {
  color: var(--amber);
  border-color: rgba(240, 180, 41, 0.45);
  background: var(--amber-14);
}

.tag--red {
  color: #FF9A9D;
  border-color: rgba(229, 72, 77, 0.5);
  background: rgba(229, 72, 77, 0.16);
}

.tag--yellow {
  color: #FFDD7A;
  border-color: rgba(245, 197, 66, 0.5);
  background: rgba(245, 197, 66, 0.16);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--mist);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  transition: color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    background-color var(--t-fast) var(--ease);
}

.chip:hover { border-color: var(--cyan); color: var(--cyan); }

.chip[aria-pressed="true"],
.chip.is-active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink-900);
}

/* ---------- 12. 版本页签与面板 ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid var(--line);
}

.tab {
  padding: 11px 16px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.tab:hover { color: var(--mist); }

.tab[aria-selected="true"] {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.panel { padding-top: clamp(18px, 2.4vw, 30px); }

.panel[hidden] { display: none; }

/* ---------- 13. 图片容器 ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, #0E3228 0%, #061A16 68%);
}

.media > img,
.media > svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 4 / 5; }
.media--square { aspect-ratio: 1 / 1; }

.media--field::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(46, 242, 204, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 242, 204, 0.09) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 70% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000 20%, transparent 78%);
}

.media__caption {
  position: absolute;
  left: 16px;
  bottom: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist);
  text-shadow: 0 1px 12px rgba(6, 26, 22, 0.9);
}

/* ---------- 14. 数据表格 ---------- */
.data-table {
  width: 100%;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.data-table th {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.data-table td.num,
.data-table th.num {
  font-family: var(--font-mono);
  font-weight: 700;
  text-align: right;
}

/* ---------- 15. 入视口与返回顶部 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.back-to-top {
  position: fixed;
  right: clamp(16px, 3vw, 36px);
  bottom: clamp(16px, 3vw, 36px);
  z-index: 55;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(12, 42, 35, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--mist);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease),
    color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.back-to-top:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

/* ---------- 16. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(80px, 10vw, 140px);
  background: linear-gradient(180deg, var(--ink-900) 0%, var(--ink-800) 100%);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.55;
}

.footer__inner {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: clamp(44px, 6vw, 72px) var(--gutter) clamp(28px, 4vw, 40px);
}

.footer__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 5vw, 56px);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 46ch;
}

.footer__brand-name {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--white);
}

.footer__closing {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.footer__service {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted);
}

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

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__col-title {
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer__item { line-height: 1.5; }

.footer__link {
  font-size: 14.5px;
  color: var(--muted);
  transition: color var(--t-fast) var(--ease);
}

.footer__link:hover { color: var(--cyan); }

.footer__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  margin-top: clamp(32px, 5vw, 52px);
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.footer__contact-item {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.footer__contact-value {
  font-family: var(--font-mono);
  color: var(--mist);
  letter-spacing: 0.02em;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding-top: 22px;
}

.footer__legal,
.footer__copy {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

.footer__legal { font-family: var(--font-mono); letter-spacing: 0.04em; }

.footer__totop { flex: none; }

/* ---------- 17. 断点：平板及以上 ---------- */
@media (min-width: 768px) {
  .grid--split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .grid--thirds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- 18. 断点：桌面端（轨道常驻） ---------- */
@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }

  .rail__eyebrow { text-align: left; padding-left: 6px; }

  .footer__main {
    grid-template-columns: minmax(280px, 1fr) minmax(0, 2fr);
    gap: clamp(40px, 5vw, 72px);
  }
}

/* ---------- 19. 断点：平板与手机（轨道变抽屉） ---------- */
@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }

  .rail {
    width: min(304px, 86vw);
    padding: 20px 16px 26px;
    gap: 18px;
    border-right: 1px solid var(--line);
    transform: translateX(-102%);
    transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
    will-change: transform;
  }

  .rail[data-open] {
    transform: translateX(0);
    box-shadow: 24px 0 70px rgba(0, 0, 0, 0.62);
  }

  .rail__brand {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 2px 0 16px;
  }

  .rail__brand-mark { width: 40px; height: 40px; font-size: 18px; }

  .rail__eyebrow { text-align: left; }

  .rail__close { display: grid; }

  .rail__list { gap: 6px; }

  .rail__link {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 13px 16px;
    border-radius: var(--r-sm);
    font-size: 15px;
    text-align: left;
  }

  .rail__num { font-size: 12px; width: 22px; }

  .rail__foot {
    flex-direction: row;
    gap: 10px;
  }

  .rail__minor,
  .rail__top { padding: 10px 8px; font-size: 13px; }

  body.nav-open { overflow: hidden; }

  .nav-scrim[data-open] { display: block; }
}

/* ---------- 20. 断点：手机小屏 ---------- */
@media (max-width: 560px) {
  .brand__tagline { display: none; }

  .tool-link { padding: 10px; border-radius: var(--r-sm); }

  .tool-link__text { display: none; }

  .btn { padding: 10px 18px; font-size: 14px; }

  .nav-toggle__text { display: none; }

  .footer__contact { gap: 10px 20px; }

  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- 21. 动效偏好 ---------- */
@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;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .back-to-top {
    transform: none;
  }
}
