/* ============================================================
   新记看台 · 全站共享外壳样式
   路径：/assets/site.css
   包含：reset、设计变量、中文排版、页头、页脚、按钮、
        面包屑、容器网格、通用组件、响应式与动效降级
   ============================================================ */

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

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

body {
  margin: 0;
  padding-top: var(--header-h);
}

h1, h2, h3, h4, h5, p, figure, blockquote { 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; }

table { border-collapse: collapse; }

/* ---------- 2. 设计变量 ---------- */
:root {
  /* 色彩：暗场看台 */
  --ink: #0D1412;
  --deep: #123328;
  --moss: #3A6152;
  --turf: #7CE49B;
  --amber: #E4794A;
  --silver: #C9D6D2;
  --stone: #9AA5A0;
  --cream: #F3F1E7;
  --clay: #8C5A3C;
  --pulse: #4FD1C5;
  --steel: #A9B7C6;

  /* 结构性线条 */
  --line-soft: rgba(58, 97, 82, 0.45);
  --line: rgba(58, 97, 82, 0.75);
  --line-turf: rgba(124, 228, 155, 0.45);
  --line-steel: rgba(169, 183, 198, 0.22);

  /* 形状 */
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;

  /* 尺幅 */
  --shell: 1320px;
  --gutter: clamp(16px, 3.4vw, 44px);
  --header-h: 84px;

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

  /* 缓动 */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
}

/* ---------- 3. 中文排版 ---------- */
body {
  background-color: var(--ink);
  color: var(--silver);
  font-family: var(--font-body);
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* 背景坐标网格：暗场控制室底纹 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(169, 183, 198, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(169, 183, 198, 0.05) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(circle at 28% 8%, #000 0%, transparent 76%);
  mask-image: radial-gradient(circle at 28% 8%, #000 0%, transparent 76%);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--cream);
}

h1 { font-size: clamp(40px, 6.4vw, 72px); }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: clamp(20px, 2.2vw, 24px); }
h4 { font-size: 18px; font-weight: 700; }

p { max-width: 68ch; }

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

::selection {
  background: var(--turf);
  color: #08110D;
}

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

#main-content {
  position: relative;
  z-index: 1;
  scroll-margin-top: calc(var(--header-h) + 18px);
  outline: none;
}

/* ---------- 4. 跳过链接 ---------- */
.skip-link {
  position: fixed;
  left: var(--gutter);
  top: 10px;
  z-index: 200;
  transform: translateY(-180%);
  background: var(--turf);
  color: #08110D;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.22s var(--ease);
}

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

/* ---------- 5. 页头 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(13, 20, 18, 0.96), rgba(13, 20, 18, 0.72));
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line-soft);
  transition: height 0.28s var(--ease), background 0.28s var(--ease);
}

.site-header[data-scrolled="true"] {
  background: linear-gradient(180deg, rgba(13, 20, 18, 0.99), rgba(13, 20, 18, 0.9));
  border-bottom-color: rgba(124, 228, 155, 0.28);
}

/* 左侧坐标轴刻度：滚动后浮现，对应「收拢为坐标轴」的构图 */
.header-rail {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: calc(var(--gutter) + 8px);
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: flex-start;
  padding-left: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.site-header[data-scrolled="true"] .header-rail { opacity: 1; }

.header-rail__tick {
  display: block;
  width: 12px;
  height: 1px;
  background: rgba(201, 214, 210, 0.28);
}

.header-rail__tick:nth-child(3n + 1) {
  width: 20px;
  background: var(--line-turf);
}

.header-rail__tick:nth-child(4n + 3) {
  background: rgba(228, 121, 74, 0.35);
}

.header-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: minmax(180px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(10px, 1.8vw, 28px);
}

/* 品牌簇 */
.brand-cluster {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand__pulse {
  flex: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--turf);
  box-shadow: 0 0 0 0 rgba(124, 228, 155, 0.55);
  animation: xt-pulse 2.6s var(--ease) infinite;
}

@keyframes xt-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(124, 228, 155, 0.5); }
  70%  { box-shadow: 0 0 0 13px rgba(124, 228, 155, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 228, 155, 0); }
}

.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.01em;
  color: var(--cream);
  white-space: nowrap;
}

.brand__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  color: var(--stone);
  white-space: nowrap;
  transition: opacity 0.26s var(--ease);
}

.site-header[data-scrolled="true"] .brand__tag { opacity: 0.55; }

/* 悬浮胶囊导航 */
.nav-capsule {
  justify-self: center;
  display: flex;
  align-items: center;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: rgba(18, 51, 40, 0.72);
  border: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.38);
  transition: transform 0.28s var(--ease), padding 0.28s var(--ease),
    background 0.28s var(--ease), border-color 0.28s var(--ease);
}

.nav-capsule__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--silver);
  white-space: nowrap;
  transition: background 0.12s linear, color 0.12s linear;
}

.nav-link:hover {
  background: rgba(124, 228, 155, 0.12);
  color: var(--cream);
}

.nav-link[aria-current="page"] {
  background: var(--turf);
  color: #08110D;
  font-weight: 700;
}

.site-header[data-scrolled="true"] .nav-capsule {
  padding: 3px;
  transform: scale(0.955);
  background: rgba(18, 51, 40, 0.95);
  border-color: var(--line-turf);
}

.site-header[data-scrolled="true"] .nav-link {
  padding: 6px 12px;
  font-size: 13px;
}

/* 页头行动区 */
.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 9px;
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 21px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.12s var(--ease), background 0.16s linear,
    color 0.16s linear, border-color 0.16s linear;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--accent {
  background: var(--turf);
  color: #08110D;
  border-color: var(--turf);
  box-shadow: 0 10px 26px rgba(124, 228, 155, 0.2);
}

.btn--accent:hover {
  background: #96eeb2;
  border-color: #96eeb2;
}

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

.btn--ghost:hover {
  border-color: var(--turf);
  color: var(--turf);
}

.btn--sm {
  padding: 8px 15px;
  font-size: 13px;
}

/* ---------- 7. 移动导航按钮 ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  justify-self: end;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  color: var(--silver);
  font-size: 13px;
  letter-spacing: 0.1em;
  transition: border-color 0.16s linear, color 0.16s linear;
}

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

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: top 0.24s var(--ease), transform 0.24s var(--ease);
}

.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { top: 8px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  top: 4px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  top: 4px;
  transform: rotate(-45deg);
}

/* ---------- 8. 滚动进度 ---------- */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--turf) 0%, var(--pulse) 62%, var(--amber) 100%);
  pointer-events: none;
  will-change: transform;
}

/* ---------- 9. 容器与骨架 ---------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  z-index: 1;
  padding-block: clamp(40px, 6vw, 88px);
}

.stack > * + * { margin-top: clamp(14px, 1.6vw, 22px); }

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--turf);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--turf);
}

.section-title {
  font-size: clamp(26px, 3.4vw, 40px);
  max-width: 22ch;
}

.lede {
  font-size: 17px;
  line-height: 1.8;
  color: var(--silver);
  max-width: 64ch;
}

.note {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--stone);
  max-width: 62ch;
}

/* ---------- 10. 面板 / 标签 / 表格 ---------- */
.panel {
  position: relative;
  background: linear-gradient(180deg, rgba(18, 51, 40, 0.78), rgba(18, 51, 40, 0.4));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 2.6vw, 30px);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.09em;
  color: var(--silver);
  white-space: nowrap;
}

.tag--turf {
  color: var(--turf);
  border-color: var(--line-turf);
  background: rgba(124, 228, 155, 0.08);
}

.tag--amber {
  color: var(--amber);
  border-color: rgba(228, 121, 74, 0.5);
  background: rgba(228, 121, 74, 0.08);
}

.tag--steel {
  color: var(--steel);
  border-color: rgba(169, 183, 198, 0.42);
  background: rgba(169, 183, 198, 0.06);
}

.data-table {
  width: 100%;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.data-table caption {
  text-align: left;
  padding-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--stone);
}

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

.data-table th {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--stone);
  text-transform: uppercase;
}

.data-table td {
  color: var(--silver);
  font-family: var(--font-mono);
}

.data-table td:first-child,
.data-table td.is-label {
  font-family: var(--font-body);
  color: var(--cream);
}

.data-table tbody tr:hover {
  background: rgba(124, 228, 155, 0.05);
}

/* ---------- 11. 面包屑与坐标轴 ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--stone);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.breadcrumb__list li:not(:last-child)::after {
  content: "/";
  margin-left: 9px;
  color: var(--moss);
}

.breadcrumb a:hover { color: var(--turf); }

.coord-axis {
  position: relative;
  padding-left: 24px;
}

.coord-axis::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line) 10%, var(--line) 90%, transparent);
}

.coord-axis__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--turf);
  writing-mode: vertical-rl;
  position: absolute;
  left: 7px;
  top: 0;
}

/* ---------- 12. 图片容器基础规则（页面阶段放图） ---------- */
.figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(150deg, rgba(18, 51, 40, 0.92), rgba(13, 20, 18, 0.98));
}

.figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.94) contrast(1.05);
}

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

.figure__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(169, 183, 198, 0.16) 1px, transparent 1px),
    linear-gradient(0deg, rgba(169, 183, 198, 0.16) 1px, transparent 1px);
  background-size: 46px 46px;
  mix-blend-mode: screen;
}

.figure__mark {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-turf);
  background: rgba(13, 20, 18, 0.74);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--turf);
}

.figure__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 16px 13px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--silver);
  background: linear-gradient(0deg, rgba(13, 20, 18, 0.94), rgba(13, 20, 18, 0));
}

/* ---------- 13. 显现动效 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

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

/* ---------- 14. 页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(56px, 9vw, 132px);
  background: linear-gradient(180deg, rgba(18, 51, 40, 0.5), rgba(13, 20, 18, 1) 58%);
  border-top: 1px solid var(--line);
  color: var(--silver);
}

/* 顶部刻度尺：纯 CSS，无子元素 */
.footer-rule {
  height: 26px;
  background-image:
    repeating-linear-gradient(90deg, rgba(124, 228, 155, 0.4) 0 2px, transparent 2px 27px),
    repeating-linear-gradient(90deg, rgba(58, 97, 82, 0.85) 0 1px, transparent 1px 13px);
  background-size: 100% 20px, 100% 8px;
  background-position: 0 100%, 0 100%;
  background-repeat: repeat-x;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

.footer-inner {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(34px, 5vw, 64px) var(--gutter) clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(240px, 1.1fr) minmax(0, 1.5fr) minmax(230px, 1fr);
  gap: clamp(26px, 4vw, 56px);
  align-items: start;
}

.footer-statement {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--cream);
  max-width: 18ch;
}

.footer-brand .footer-note { margin-top: 12px; }

.footer-note {
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--stone);
  max-width: 34ch;
}

.footer-note--mono {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--moss);
  filter: brightness(1.35);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 34px);
}

.footer-nav__title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--turf);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
  max-width: none;
}

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

.footer-link {
  display: inline-block;
  font-size: 14.5px;
  color: var(--silver);
  padding-left: 14px;
  position: relative;
  transition: color 0.14s linear, transform 0.14s var(--ease);
}

.footer-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 1px;
  background: var(--moss);
  transition: width 0.16s var(--ease), background 0.16s linear;
}

.footer-link:hover {
  color: var(--turf);
  transform: translateX(2px);
}

.footer-link:hover::before {
  width: 11px;
  background: var(--turf);
}

.footer-contact__label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--turf);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.footer-contact__line {
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.03em;
  color: var(--cream);
  margin-bottom: 6px;
  max-width: none;
  word-break: break-all;
}

.footer-contact__note {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--stone);
  max-width: 30ch;
  margin-top: 8px;
}

.footer-legal {
  border-top: 1px solid var(--line-soft);
  padding: 16px var(--gutter) 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 28px;
}

.footer-legal__text {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--stone);
  max-width: none;
}

/* ---------- 15. 平板与移动端 ---------- */
@media (max-width: 1180px) {
  .header-actions .btn--ghost { display: none; }
  .nav-link { padding: 7px 11px; font-size: 13.5px; }
  .header-inner { grid-template-columns: minmax(160px, auto) minmax(0, 1fr) auto; }
}

@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  }
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; }

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

  .header-actions { display: none; }

  .header-rail { display: none; }

  .nav-capsule {
    position: fixed;
    left: var(--gutter);
    right: var(--gutter);
    top: calc(var(--header-h) + 10px);
    z-index: 88;
    flex-direction: column;
    align-items: stretch;
    justify-self: stretch;
    padding: 12px;
    border-radius: var(--radius-lg);
    background: rgba(13, 20, 18, 0.98);
    border-color: var(--line-turf);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px) scale(0.99);
    max-height: calc(100vh - var(--header-h) - 34px);
    overflow-y: auto;
    transition: opacity 0.24s var(--ease), transform 0.24s var(--ease),
      visibility 0.24s linear;
  }

  .site-header[data-scrolled="true"] .nav-capsule {
    padding: 12px;
    transform: translateY(-12px) scale(0.99);
  }

  .nav-capsule[data-open="true"],
  .site-header[data-scrolled="true"] .nav-capsule[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }

  .nav-capsule__list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 4px;
  }

  .nav-link,
  .site-header[data-scrolled="true"] .nav-link {
    display: block;
    padding: 14px 16px;
    font-size: 16px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
  }

  .nav-link:hover { border-color: var(--line-turf); }

  .nav-link[aria-current="page"] {
    background: rgba(124, 228, 155, 0.14);
    color: var(--turf);
    border-color: var(--line-turf);
  }
}

@media (max-width: 720px) {
  body { font-size: 16px; }

  .brand__tag { display: none; }

  .brand__name { font-size: 18px; }

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

  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .footer-legal { justify-content: flex-start; gap: 6px 18px; }

  .coord-axis { padding-left: 18px; }
}

@media (max-width: 460px) {
  .footer-nav { grid-template-columns: minmax(0, 1fr); }
  .nav-toggle__label { display: none; }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .brand__pulse { box-shadow: 0 0 0 0 rgba(124, 228, 155, 0.4); }

  .site-header[data-scrolled="true"] .nav-capsule { transform: none; }
}
