/* ============================================================
   浩瀚体育赛场 · /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,
p, figure, blockquote, dl, dd, dt, pre { margin: 0; }

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

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

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

a { color: inherit; text-decoration: none; }

/* ---------- 2. 变量 ---------- */
:root {
  /* 色彩体系 */
  --night: #071A2B;
  --deep: #0C2740;
  --layer: #123F5A;
  --ice: #EAF4F4;
  --mist: #8FA9B8;
  --turf: #1FD17A;
  --turf-deep: #14A45C;
  --yellow: #FFD447;
  --red: #FF5A4E;
  --paper: #C8E6D8;

  --line: rgba(200, 230, 216, 0.16);
  --line-strong: rgba(200, 230, 216, 0.32);
  --glow-turf: 0 0 30px -8px rgba(31, 209, 122, 0.65);

  /* 字体 */
  --font-display: "Barlow Condensed", "Oswald", "Noto Sans SC", system-ui, sans-serif;
  --font-head: "Noto Sans SC", "Source Han Sans SC", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* 尺寸 */
  --shell: 1240px;
  --gutter: clamp(18px, 4vw, 40px);
  --radius-pill: 999px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --header-h: 68px;
}

/* ---------- 3. 基础元素 ---------- */
html, body { min-height: 100%; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  color: var(--ice);
  background-color: var(--night);
  background-image:
    radial-gradient(90rem 46rem at 84% -14%, rgba(18, 63, 90, 0.85) 0%, rgba(7, 26, 43, 0) 60%),
    radial-gradient(64rem 38rem at 2% 4%, rgba(31, 209, 122, 0.10) 0%, rgba(7, 26, 43, 0) 58%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--turf); color: var(--night); }

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

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--turf);
  outline-offset: 3px;
}

#main-content {
  display: block;
  scroll-margin-top: calc(var(--header-h) + 32px);
}

/* ---------- 4. 工具 ---------- */
.visually-hidden {
  position: absolute !important;
  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;
}

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

.section {
  position: relative;
  padding-block: clamp(48px, 7vw, 96px);
}

.section--tight { padding-block: clamp(26px, 4vw, 48px); }

.section-head {
  display: grid;
  gap: 12px;
  max-width: 64ch;
  margin-bottom: clamp(24px, 4vw, 42px);
}

.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--turf);
}

.section-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(56px, 10vw, 112px);
  line-height: 0.82;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(31, 209, 122, 0.16);
  -webkit-text-stroke: 1px rgba(31, 209, 122, 0.55);
}

.section-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--ice);
}

.section-lede {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.85;
  color: var(--mist);
  max-width: 58ch;
}

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
  align-items: start;
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 258px), 1fr)); }

.stack {
  display: grid;
  gap: 14px;
  align-content: start;
}

/* ---------- 6. 正文 ---------- */
.prose {
  max-width: 74ch;
  color: var(--mist);
  font-size: 16.5px;
  line-height: 1.9;
}

.prose h2,
.prose h3 {
  color: var(--ice);
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.3;
  margin-top: 1.6em;
}

.prose h2 { font-size: clamp(22px, 2.4vw, 28px); }
.prose h3 { font-size: clamp(18px, 2vw, 21px); }

.prose p + p { margin-top: 1em; }
.prose ul, .prose ol { margin: 1em 0; padding-left: 1.2em; }
.prose ul li { list-style: none; position: relative; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: -1.1em; top: 0.82em;
  width: 6px; height: 2px;
  background: var(--turf);
}
.prose ol { list-style: decimal; }
.prose strong { color: var(--ice); font-weight: 700; }
.prose a,
main a:not([class]) {
  color: var(--turf);
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}
.prose a:hover,
main a:not([class]):hover { color: var(--ice); }

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease,
              border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn--primary {
  background: var(--turf);
  color: var(--night);
  border-color: rgba(31, 209, 122, 0.5);
  box-shadow: var(--glow-turf);
}
.btn--primary:hover { background: #3EE08D; transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: rgba(234, 244, 244, 0.04);
  color: var(--ice);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  background: rgba(31, 209, 122, 0.14);
  border-color: rgba(31, 209, 122, 0.55);
  color: var(--ice);
}

.btn--quiet {
  background: none;
  border-color: transparent;
  color: var(--turf);
  padding: 0 6px;
}
.btn--quiet:hover { color: var(--ice); }

/* ---------- 8. 头部 ---------- */
.skip-link {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 200;
  transform: translate(-50%, -140%);
  padding: 10px 20px;
  border-radius: 0 0 14px 14px;
  background: var(--turf);
  color: var(--night);
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translate(-50%, 0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 var(--gutter);
  background: linear-gradient(180deg, rgba(7, 26, 43, 0.97) 0%, rgba(7, 26, 43, 0.82) 100%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  backdrop-filter: blur(16px) saturate(130%);
}

.header-bar {
  position: relative;
  max-width: var(--shell);
  margin: 12px auto 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 10px 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: linear-gradient(118deg, rgba(18, 63, 90, 0.82) 0%, rgba(12, 39, 64, 0.66) 100%);
  box-shadow: 0 22px 48px -34px rgba(0, 0, 0, 0.95);
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-height: 44px;
  border-radius: var(--radius-pill);
  padding-right: 4px;
}

.brand-mark {
  position: relative;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, var(--turf) 0%, var(--turf-deep) 100%);
  box-shadow: 0 0 0 1px rgba(31, 209, 122, 0.35), var(--glow-turf);
}
.brand-mark::before {
  content: "";
  position: absolute;
  left: 8px; right: 8px; top: 9px;
  height: 2px;
  border-radius: 2px;
  background: rgba(7, 26, 43, 0.75);
}
.brand-mark::after {
  content: "";
  position: absolute;
  left: 8px; right: 8px; bottom: 9px;
  height: 2px;
  border-radius: 2px;
  background: rgba(7, 26, 43, 0.75);
}
.brand-mark__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--night);
  box-shadow: 0 0 0 3px rgba(7, 26, 43, 0.18);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.16;
  gap: 2px;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--ice);
}

.brand-tagline {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--mist);
  white-space: nowrap;
}

/* 导航胶囊 */
.nav-capsule {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
}

.nav-item { display: block; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--mist);
  white-space: nowrap;
  transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.nav-link:hover {
  color: var(--ice);
  background: rgba(31, 209, 122, 0.12);
}

.nav-link[aria-current="page"] {
  color: var(--night);
  font-weight: 700;
  background: var(--turf);
  box-shadow: var(--glow-turf);
}

.nav-cta { display: none; }

/* 头部右侧 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
}

.header-cta { padding: 0 18px; font-size: 13.5px; }

/* 移动开关 */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: auto;
  min-width: 48px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: rgba(234, 244, 244, 0.04);
  color: var(--ice);
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
.nav-toggle:hover {
  background: rgba(31, 209, 122, 0.14);
  border-color: rgba(31, 209, 122, 0.55);
}

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 18px;
}
.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle__label {
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 500;
}

.site-header[data-open] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 阅读进度条 */
.scroll-meter {
  position: relative;
  max-width: var(--shell);
  height: 2px;
  margin: 10px auto 0;
  border-radius: 2px;
  background: rgba(200, 230, 216, 0.10);
  overflow: hidden;
}

.scroll-meter__fill {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--turf-deep) 0%, var(--turf) 58%, var(--yellow) 100%);
  transition: width 0.12s linear;
}

/* ---------- 9. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 104px);
  padding: clamp(36px, 6vw, 68px) var(--gutter) clamp(24px, 4vw, 40px);
  color: var(--mist);
  background: linear-gradient(180deg, var(--deep) 0%, #0A2135 58%, var(--night) 100%);
  border-top: 1px solid var(--line-strong);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(31, 209, 122, 0) 0%,
    rgba(31, 209, 122, 0.75) 22%,
    rgba(255, 212, 71, 0.55) 52%,
    rgba(31, 209, 122, 0) 86%);
}

.footer-inner {
  max-width: var(--shell);
  margin-inline: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 52px);
}

.footer-brand { display: grid; align-content: start; }

.footer-brand__name {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.1;
  color: var(--ice);
}

.footer-brand__line {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.footer-brand__cta { margin-top: 20px; justify-self: start; }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: clamp(22px, 4vw, 40px);
}

.footer-col { display: grid; align-content: start; }

.footer-col__title {
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--turf);
}

.footer-list { display: grid; gap: 2px; }

.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 14px;
  color: var(--mist);
  transition: color 0.18s ease, transform 0.18s ease;
}
.footer-link:hover { color: var(--ice); transform: translateX(2px); }

.footer-contact {
  border: 1px solid var(--paper);
  border-radius: 8px;
  padding: clamp(16px, 2.4vw, 24px);
  background: linear-gradient(160deg, rgba(15, 50, 74, 0.66) 0%, rgba(10, 33, 53, 0.5) 100%);
  box-shadow: 5px 5px 0 -1px rgba(200, 230, 216, 0.10);
}

.contact-list { display: grid; gap: 10px; }

.contact-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: baseline;
  padding-bottom: 9px;
  border-bottom: 1px dashed rgba(200, 230, 216, 0.16);
}
.contact-item:last-child { border-bottom: 0; padding-bottom: 0; }

.contact-item__key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--mist);
}

.contact-item__val {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  color: var(--ice);
  word-break: break-word;
}

.contact-note {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--mist);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 26px;
  margin-top: clamp(28px, 4vw, 46px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.footer-copy,
.footer-icp {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mist);
}

.footer-year { font-variant-numeric: tabular-nums; }

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-left: auto;
}

.legal-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 12.5px;
  color: var(--mist);
  transition: color 0.18s ease;
}
.legal-link:hover { color: var(--ice); }

/* 返回顶部 */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 30px);
  bottom: clamp(14px, 3vw, 30px);
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  color: var(--ice);
  background: rgba(18, 63, 90, 0.92);
  border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease,
              background-color 0.18s ease, color 0.18s ease;
}
.to-top[data-visible] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.to-top:hover {
  background: var(--turf);
  color: var(--night);
  border-color: transparent;
}

/* ---------- 10. 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
}

.crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  color: var(--mist);
  transition: color 0.18s ease;
}
.crumb:hover { color: var(--turf); }

.crumb:not(:first-child)::before {
  content: "/";
  color: rgba(200, 230, 216, 0.32);
}

.crumb--current,
.crumb[aria-current="page"] {
  color: var(--ice);
  pointer-events: none;
}

/* ---------- 11. 表面：面板 / 纸张 ---------- */
.panel {
  padding: clamp(18px, 2.6vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(158deg, rgba(18, 63, 90, 0.72) 0%, rgba(12, 39, 64, 0.52) 100%);
}
.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.paper {
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--paper);
  border-radius: 6px;
  background: linear-gradient(168deg, #0F324A 0%, #0B2337 100%);
  box-shadow:
    6px 6px 0 -1px rgba(200, 230, 216, 0.10),
    12px 12px 0 -2px rgba(200, 230, 216, 0.05);
}

/* ---------- 12. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: rgba(234, 244, 244, 0.05);
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.4;
  white-space: nowrap;
}

.tag--green {
  background: var(--turf);
  border-color: transparent;
  color: var(--night);
  font-weight: 700;
}
.tag--yellow {
  background: var(--yellow);
  border-color: transparent;
  color: var(--night);
  font-weight: 700;
}
.tag--red {
  background: var(--red);
  border-color: transparent;
  color: #2A0704;
  font-weight: 700;
}
.tag--ghost {
  background: transparent;
  color: var(--mist);
  border-color: var(--line-strong);
}

/* ---------- 13. 筛选胶囊 ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: rgba(234, 244, 244, 0.03);
  color: var(--mist);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.18s ease, background-color 0.18s ease,
              border-color 0.18s ease, box-shadow 0.18s ease;
}
.chip:hover { color: var(--ice); border-color: rgba(31, 209, 122, 0.55); }
.chip[aria-pressed="true"] {
  color: var(--ice);
  background: rgba(31, 209, 122, 0.16);
  border-color: var(--turf);
  box-shadow: inset 0 0 0 1px rgba(31, 209, 122, 0.35);
}

/* ---------- 14. 横向数据条带 ---------- */
.data-strip {
  display: grid;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(31, 209, 122, 0.55) transparent;
}
.data-strip::-webkit-scrollbar { height: 6px; }
.data-strip::-webkit-scrollbar-thumb {
  background: rgba(31, 209, 122, 0.55);
  border-radius: 6px;
}

.data-strip__row {
  display: grid;
  grid-template-columns: 62px minmax(88px, 1fr) 78px minmax(120px, 2fr) 54px;
  align-items: center;
  gap: 12px;
  min-width: 520px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(18, 63, 90, 0.58) 0%, rgba(12, 39, 64, 0.26) 100%);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--mist);
}

.data-strip__cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.data-strip__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  font-size: 14px;
  color: var(--ice);
}

/* ---------- 15. 图片容器 ---------- */
.media { display: grid; gap: 10px; }

.media__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(150deg, rgba(18, 63, 90, 0.95) 0%, rgba(12, 39, 64, 0.95) 100%);
}
.media__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 26, 43, 0) 42%, rgba(7, 26, 43, 0.55) 100%);
  pointer-events: none;
}

.media__frame--tall { aspect-ratio: 4 / 5; }
.media__frame--square { aspect-ratio: 1 / 1; }

.media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media__cap {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
}

/* ---------- 16. 章节目录 ---------- */
.toc { display: grid; gap: 4px; align-content: start; }

.toc__title {
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mist);
}

.toc__link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border-left: 2px solid transparent;
  border-radius: 0 10px 10px 0;
  font-size: 13.5px;
  color: var(--mist);
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}
.toc__link:hover { color: var(--ice); background: rgba(31, 209, 122, 0.08); }
.toc__link.is-current {
  color: var(--ice);
  border-left-color: var(--turf);
  background: rgba(31, 209, 122, 0.10);
}

/* ---------- 17. 显现 ---------- */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 0.7, 0.28, 1);
    will-change: opacity, transform;
  }
  [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 18. 响应式 ---------- */
@media (max-width: 1023px) {
  .header-bar {
    justify-content: space-between;
    padding: 8px 10px 8px 14px;
  }

  .nav-capsule {
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    top: calc(100% + 8px);
    display: block;
    padding: 14px;
    border: 1px solid var(--line-strong);
    border-radius: 24px;
    background: linear-gradient(160deg, rgba(18, 63, 90, 0.99) 0%, rgba(12, 39, 64, 0.99) 100%);
    box-shadow: 0 38px 68px -34px rgba(0, 0, 0, 0.95);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .site-header[data-open] .nav-capsule {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav-link {
    width: 100%;
    padding: 0 16px;
    font-size: 15px;
    min-height: 46px;
  }

  .nav-cta {
    display: inline-flex;
    width: 100%;
    margin-top: 12px;
  }

  .header-cta { display: none; }

  .nav-toggle { display: inline-flex; }

  .brand-tagline { display: none; }

  .footer-top { grid-template-columns: 1fr; }
}

@media (min-width: 1024px) {
  .footer-top {
    grid-template-columns: minmax(210px, 1fr) minmax(260px, 1.15fr) minmax(250px, 1fr);
    align-items: start;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .nav-link { padding: 0 10px; font-size: 12.5px; }
  .header-cta { padding: 0 14px; font-size: 13px; }
  .brand-tagline { display: none; }
  .brand-name { font-size: 14px; }
}

@media (max-width: 719px) {
  :root { --header-h: 64px; }

  .nav-toggle__label { display: none; }
  .nav-toggle { padding: 0; width: 48px; }

  .header-bar { gap: 10px; }

  .brand-name { font-size: 14px; letter-spacing: 0.04em; }
  .brand-mark { width: 30px; height: 30px; }

  .scroll-meter { margin-top: 8px; }

  .data-strip__row { grid-template-columns: 54px minmax(80px, 1fr) 64px minmax(110px, 1.6fr) 48px; }

  .legal-links { margin-left: 0; width: 100%; }

  .footer-legal { gap: 4px 18px; }

  .to-top { width: 46px; height: 46px; }
}

@media (max-width: 479px) {
  .brand-text { gap: 0; }
  .brand-name { font-size: 13.5px; }
  .contact-item { grid-template-columns: 40px 1fr; }
}

/* ---------- 19. 减弱动效 ---------- */
@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 !important;
    transform: none !important;
  }

  .scroll-meter__fill { transition: none; }
}
