/* ==========================================================================
   易倍赛事 · 共享站点样式 /assets/site.css
   01 reset & tokens  02 基础排版  03 布局骨架  04 通用组件
   05 头部  06 页脚  07 响应式  08 动效偏好
   ========================================================================== */

/* 01 reset & tokens ------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

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

ol, ul { padding: 0; }

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

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

:root {
  /* 色彩体系 */
  --pitch: #0B2E22;
  --stand: #123B2C;
  --line: #1D4A38;
  --lamp: #F5F0E1;
  --grey: #D6D2C4;
  --brand: #F05A28;
  --coral: #FF8A5C;
  --cool: #8FA3B0;
  --mint: #5DD3A8;
  --mist: #E8EFE9;

  /* 排版 */
  --font-display: "Barlow Condensed", "Roboto Condensed", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  /* 尺度与材质 */
  --shell: 1240px;
  --gutter: clamp(1rem, 3.2vw, 2.5rem);
  --radius: 2px;
  --hair: 1px solid var(--line);
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.4), 0 18px 38px -30px rgba(0, 0, 0, 0.95);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* 02 基础排版 ------------------------------------------------------------- */
html, body { min-height: 100%; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  color: var(--lamp);
  background-color: var(--pitch);
  background-image:
    radial-gradient(120% 88% at 84% -12%, rgba(245, 240, 225, 0.10), transparent 58%),
    radial-gradient(90% 62% at 4% 0%, rgba(93, 211, 168, 0.07), transparent 62%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.017) 0 1px, transparent 1px 4px);
  background-attachment: fixed;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--lamp);
}

h1 { font-size: clamp(2rem, 5.4vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }

p { color: var(--grey); }

a { color: var(--coral); text-decoration-thickness: 1px; text-underline-offset: 3px; }

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

::selection { background: var(--brand); color: var(--pitch); }

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

[id] { scroll-margin-top: 128px; }

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

/* 03 布局骨架 ------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container {
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: 760px; }
.container--wide { max-width: 1320px; }

.site-main { padding-bottom: clamp(2rem, 6vw, 4rem); }

.grid { display: grid; gap: clamp(1rem, 2.6vw, 2rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.grid--aside { grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); }

.stack { display: flex; flex-direction: column; gap: clamp(0.85rem, 2vw, 1.5rem); }

/* 04 通用组件 ------------------------------------------------------------- */
/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn--primary {
  background: var(--brand);
  color: var(--pitch);
  box-shadow: 0 10px 24px -18px rgba(240, 90, 40, 0.9);
}
.btn--primary:hover { background: var(--coral); }
.btn--primary:active { transform: translateY(1px); }

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

.btn--block { width: 100%; }

/* 标题与文本块 */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--brand);
  flex: 0 0 auto;
}

.display-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 5.6vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -0.005em;
  margin: 0;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  line-height: 1.14;
}

.lede {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.75;
  color: var(--grey);
  max-width: 62ch;
}

/* 面板 */
.panel {
  position: relative;
  border: var(--hair);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(29, 74, 56, 0.35), rgba(18, 59, 44, 0.62));
  padding: clamp(1rem, 2.4vw, 1.6rem);
  box-shadow: var(--shadow);
}
.panel--flat { box-shadow: none; background: rgba(18, 59, 44, 0.45); }

/* 数据 */
.stat { display: flex; flex-direction: column; gap: 0.3rem; }
.stat__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 600;
  line-height: 1;
  color: var(--lamp);
}
.stat__value--accent { color: var(--brand); }
.stat__label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cool);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.data-table th,
.data-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid rgba(29, 74, 56, 0.85);
  text-align: left;
  color: var(--grey);
}
.data-table thead th {
  background: rgba(232, 239, 233, 0.06);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cool);
}
.data-table .num { text-align: right; color: var(--lamp); }

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.24rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--grey);
}
.tag--accent { border-color: rgba(240, 90, 40, 0.55); color: var(--coral); }

/* 图像容器基础规则（页面阶段放占位图） */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: var(--hair);
  border-radius: var(--radius);
  background:
    linear-gradient(150deg, rgba(93, 211, 168, 0.12), rgba(11, 46, 34, 0.92) 46%, rgba(18, 59, 44, 0.92));
}
.media-frame > img,
.media-frame > picture,
.media-frame > picture > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11, 46, 34, 0.05), rgba(11, 46, 34, 0.62)),
    repeating-linear-gradient(180deg, rgba(245, 240, 225, 0.05) 0 1px, transparent 1px 6px);
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }

/* 面包屑 */
.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--cool);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}
.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.breadcrumbs li + li::before {
  content: "/";
  color: var(--line);
}
.breadcrumbs a {
  color: var(--cool);
  text-decoration: none;
}
.breadcrumbs a:hover { color: var(--lamp); }
.breadcrumbs [aria-current="page"] { color: var(--lamp); }

/* 章节目录 */
.toc {
  position: sticky;
  top: 128px;
  border-left: var(--hair);
  padding-left: 0.9rem;
}
.toc-title {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cool);
  margin-bottom: 0.7rem;
}
.toc-list {
  list-style: none;
  display: grid;
  gap: 0.15rem;
}
.toc-link {
  display: block;
  margin-left: -0.95rem;
  padding: 0.38rem 0.5rem 0.38rem 0.95rem;
  border-left: 2px solid transparent;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--cool);
  text-decoration: none;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease),
              background-color 0.18s var(--ease);
}
.toc-link:hover { color: var(--lamp); }
.toc-link[aria-current="true"] {
  color: var(--lamp);
  border-left-color: var(--brand);
  background: linear-gradient(90deg, rgba(240, 90, 40, 0.14), transparent 88%);
}

/* 滚动进度与返回顶部 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--coral));
  pointer-events: none;
}

.back-to-top {
  position: fixed;
  right: clamp(0.9rem, 3vw, 2rem);
  bottom: clamp(0.9rem, 3vw, 2rem);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.68rem 0.9rem;
  border: var(--hair);
  border-radius: var(--radius);
  background: var(--stand);
  color: var(--lamp);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  box-shadow: var(--shadow);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease),
              border-color 0.24s var(--ease), color 0.24s var(--ease);
}
.back-to-top[data-visible="true"] {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.back-to-top:hover { border-color: var(--coral); color: var(--coral); }

/* 05 头部 ----------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 200;
  padding: 0.62rem 1rem;
  border-radius: var(--radius);
  background: var(--brand);
  color: var(--pitch);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-240%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: none;
  outline: 2px solid var(--lamp);
  outline-offset: 2px;
}

.header-rail {
  background: var(--pitch);
  border-bottom: var(--hair);
}
.rail-inner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 34px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.rail-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(240, 90, 40, 0.16);
  animation: railPulse 2.6s var(--ease) infinite;
}
.rail-text { color: var(--cool); }
.rail-meta {
  color: var(--lamp);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.rail-ticks {
  flex: 1 1 auto;
  height: 8px;
  min-width: 24px;
  background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 11px);
  opacity: 0.85;
}
.rail-side {
  color: var(--mint);
  white-space: nowrap;
}

@keyframes railPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(240, 90, 40, 0.16); }
  50% { box-shadow: 0 0 0 6px rgba(240, 90, 40, 0.05); }
}

.header-bar {
  position: relative;
  background: rgba(18, 59, 44, 0.94);
  border-bottom: var(--hair);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.bar-inner {
  display: flex;
  align-items: center;
  gap: clamp(0.55rem, 1.8vw, 1.4rem);
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex: 0 0 auto;
  color: var(--lamp);
  text-decoration: none;
}
.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: var(--hair);
  background:
    linear-gradient(135deg, var(--brand) 0 50%, transparent 50% 100%),
    var(--stand);
  box-shadow: inset 0 0 0 1px rgba(245, 240, 225, 0.07);
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(245, 240, 225, 0.32);
}
.brand-text { display: flex; flex-direction: column; gap: 0.1rem; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.16rem;
  letter-spacing: 0.07em;
  line-height: 1.05;
  color: var(--lamp);
}
.brand-note {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cool);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  border: var(--hair);
  border-radius: var(--radius);
  background: transparent;
  color: var(--grey);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav-toggle-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: background-color 0.18s var(--ease);
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.22s var(--ease), top 0.22s var(--ease);
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.site-header[data-open] .nav-toggle {
  color: var(--coral);
  border-color: rgba(240, 90, 40, 0.55);
}
.site-header[data-open] .nav-toggle-bars { background: transparent; }
.site-header[data-open] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.site-header[data-open] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

.primary-nav { margin-inline-start: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(0.1rem, 1vw, 0.75rem);
  list-style: none;
}
.nav-item { flex: 0 0 auto; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.38rem;
  padding: 0.55rem 0.6rem;
  color: var(--grey);
  font-size: 0.9rem;
  line-height: 1.2;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.nav-index {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: var(--cool);
  transition: color 0.2s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 0.12rem;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s var(--ease), background-color 0.2s var(--ease);
}
.nav-link::before {
  content: "";
  position: absolute;
  left: 0.6rem;
  top: 0.05rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.nav-link:hover { color: var(--lamp); }
.nav-link:hover::after { transform: scaleX(1); background: var(--coral); }
.nav-link:hover .nav-index { color: var(--coral); }

.nav-link[aria-current="page"] { color: var(--lamp); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-link[aria-current="page"]::before { opacity: 1; }
.nav-link[aria-current="page"] .nav-index { color: var(--brand); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-inline-start: auto;
  flex: 0 0 auto;
}
.header-status {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  white-space: nowrap;
}
.status-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px rgba(93, 211, 168, 0.75);
}

/* 06 页脚 ----------------------------------------------------------------- */
.site-footer {
  margin-top: clamp(2.5rem, 7vw, 5rem);
  border-top: var(--hair);
  background:
    linear-gradient(180deg, rgba(18, 59, 44, 0.55), rgba(11, 46, 34, 0.98));
}

.footer-band {
  border-bottom: var(--hair);
  background:
    repeating-linear-gradient(90deg, rgba(29, 74, 56, 0.28) 0 1px, transparent 1px 14px);
}
.band-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.band-item {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  padding: 0.9rem clamp(0.7rem, 1.8vw, 1.2rem);
  border-left: var(--hair);
}
.band-item:first-child {
  border-left: 0;
  padding-left: 0;
}
.band-key {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cool);
}
.band-value {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--lamp);
}
.band-value--live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.7fr) minmax(0, 0.7fr) minmax(0, 1.2fr);
  gap: clamp(1.4rem, 3.6vw, 3rem);
  padding-block: clamp(2rem, 5vw, 3.4rem);
}

.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  letter-spacing: 0.05em;
  color: var(--lamp);
  margin-bottom: 0.6rem;
}
.footer-brand-note {
  max-width: 34ch;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--grey);
  margin-bottom: 1.1rem;
}
.footer-cta { font-size: 0.82rem; }

.footer-col-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cool);
}
.footer-col-title::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  background: var(--brand);
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}
.footer-link {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  color: var(--grey);
  font-size: 0.92rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.footer-link:hover {
  color: var(--lamp);
  border-bottom-color: rgba(240, 90, 40, 0.7);
}

.contact-list {
  display: grid;
  gap: 0.6rem;
  margin: 0;
}
.contact-row {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: 0.45rem;
  align-items: start;
}
.contact-key {
  padding-top: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cool);
}
.contact-val {
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--lamp);
  word-break: break-word;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  padding-block: 1.05rem;
  border-top: var(--hair);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--cool);
}
.legal-line,
.legal-note {
  font-family: inherit;
  font-size: inherit;
  color: var(--cool);
  margin: 0;
}
.legal-note { color: var(--mint); }

/* 07 响应式 --------------------------------------------------------------- */
@media (max-width: 1180px) {
  .header-status { display: none; }
  .nav-link { font-size: 0.85rem; padding-inline: 0.45rem; }
  .nav-link::after { left: 0.45rem; right: 0.45rem; }
  .nav-link::before { left: 0.45rem; }
}

@media (max-width: 1023px) {
  .grid--split,
  .grid--aside,
  .grid--2 { grid-template-columns: minmax(0, 1fr); }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand { grid-column: 1 / -1; }

  .band-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band-item:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }
  .band-item:nth-child(n + 3) { border-top: var(--hair); }
}

@media (max-width: 999px) {
  .rail-side { display: none; }
  .rail-ticks { min-width: 16px; }

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

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    margin: 0;
    padding: 0.35rem var(--gutter) 1rem;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    background: rgba(18, 59, 44, 0.99);
    border-top: var(--hair);
    border-bottom: var(--hair);
    box-shadow: 0 28px 44px -32px #000;
  }
  .site-header[data-open] .primary-nav {
    display: block;
    animation: navDrop 0.22s var(--ease);
  }
  @keyframes navDrop {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-item + .nav-item { border-top: 1px solid rgba(29, 74, 56, 0.7); }
  .nav-link {
    display: flex;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 0.2rem;
    font-size: 1rem;
  }
  .nav-link::after { display: none; }
  .nav-link::before {
    position: static;
    left: auto;
    top: auto;
    margin-top: 0.45rem;
    opacity: 0.35;
  }
  .nav-link[aria-current="page"]::before { opacity: 1; }
  .nav-link[aria-current="page"] { background: linear-gradient(90deg, rgba(240, 90, 40, 0.12), transparent 70%); }

  .toc { position: static; border-left: 0; padding-left: 0; }
}

@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .brand-note { display: none; }
  .brand-mark { width: 30px; height: 30px; }
  .bar-inner { min-height: 58px; gap: 0.5rem; }
  .btn--primary { padding: 0.62rem 0.8rem; font-size: 0.8rem; }
  .footer-main { grid-template-columns: minmax(0, 1fr); }
  .footer-brand { grid-column: auto; }
  .contact-row { grid-template-columns: 2.9rem minmax(0, 1fr); }
  .footer-legal { justify-content: flex-start; }
}

@media (max-width: 400px) {
  .nav-toggle-label { display: none; }
  .rail-text { display: none; }
}

/* 08 动效偏好 ------------------------------------------------------------- */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.js-reveal [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@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;
  }
  .rail-dot { animation: none; }
  .js-reveal [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  .back-to-top {
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .back-to-top,
  .scroll-progress,
  .toc { display: none !important; }
  body {
    background: #fff;
    color: #111;
  }
  p, .contact-val, .footer-link { color: #222; }
}
