/* =========================================================
   JBO 赛事中心 · 共享样式表 /assets/site.css
   结构：1 重置 2 变量 3 中文排版 4 布局 5 通用组件
        6 头部 7 页脚 8 响应式 9 动效降级
   ========================================================= */

/* ---------- 1 重置 ---------- */
*,
*::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, li, figure, blockquote, dl, dd { margin: 0; padding: 0; }

ul, ol { list-style: none; }

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

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

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

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

table { border-collapse: collapse; width: 100%; }

/* ---------- 2 变量 ---------- */
:root {
  --field: #0A2A1E;
  --night: #061B13;
  --panel: #123A2C;
  --cyan: #2FE3C0;
  --grass: #1F7A52;
  --orange: #FF7A33;
  --yellow: #FFD447;
  --paper: #F3F6F1;
  --ink: #0B0F0D;
  --mist: #8FA99C;

  --line: rgba(143, 169, 156, 0.24);
  --line-soft: rgba(143, 169, 156, 0.14);
  --line-strong: rgba(47, 227, 192, 0.42);
  --surface: rgba(18, 58, 44, 0.72);
  --cyan-soft: rgba(47, 227, 192, 0.08);

  --radius: 2px;
  --radius-lg: 4px;
  --shadow-panel: 0 26px 60px -36px rgba(0, 0, 0, 0.92);

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-data: "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;

  --shell: 1280px;
  --gutter: clamp(18px, 4vw, 44px);
  --header-total: 106px;
}

/* ---------- 3 中文排版与基调 ---------- */
body {
  background-color: var(--field);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

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

h1 { font-size: clamp(28px, 5vw, 56px); }
h2 { font-size: clamp(22px, 3vw, 34px); }
h3 { font-size: clamp(18px, 2.2vw, 24px); }

p { text-wrap: pretty; }

strong { font-weight: 700; }

.num,
.data-table .num { font-family: var(--font-data); font-variant-numeric: tabular-nums; }

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

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

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

.offset-top { padding-top: calc(var(--header-total) + clamp(16px, 4vw, 48px)); }

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

.section--paper { background: var(--paper); color: var(--ink); }
.section--paper .eyebrow { color: var(--grass); }
.section--paper .stat-value { color: var(--grass); }
.section--paper .tag { color: #3E5A4D; border-color: rgba(11, 15, 13, 0.2); }
.section--paper .panel {
  background: #FFFFFF;
  border-color: rgba(11, 15, 13, 0.14);
  color: var(--ink);
  box-shadow: 0 20px 44px -32px rgba(11, 15, 13, 0.55);
}
.section--paper .panel .stat-label { color: #56705F; }

.section--dark { background: var(--night); }

.section-head { display: grid; gap: 14px; margin-bottom: clamp(24px, 3vw, 40px); }
.section-title { margin: 0; }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
}
.grid-12 > * { grid-column: 1 / -1; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 5 通用组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--paper);
  background: transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn:hover { transform: translateY(-2px); border-color: var(--cyan); color: var(--cyan); }

.btn--primary { background: var(--cyan); border-color: var(--cyan); color: var(--night); }
.btn--primary:hover { background: var(--paper); border-color: var(--paper); color: var(--night); }

.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--cyan); }
.btn--ghost:hover { background: rgba(47, 227, 192, 0.1); color: var(--cyan); }

.btn--accent { background: var(--orange); border-color: var(--orange); color: var(--night); }
.btn--accent:hover { background: var(--yellow); border-color: var(--yellow); color: var(--night); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist);
}
.tag--orange { color: var(--orange); border-color: rgba(255, 122, 51, 0.45); }
.tag--yellow { color: var(--yellow); border-color: rgba(255, 212, 71, 0.45); }

.label-strip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: var(--grass);
  color: var(--paper);
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
}

.frame-print { position: relative; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: clamp(18px, 2.6vw, 30px); }
.frame-print::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  pointer-events: none;
}

.paper-card {
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--paper);
  color: var(--ink);
  border: 1px solid rgba(11, 15, 13, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 44px -34px rgba(11, 15, 13, 0.55);
}

.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-value {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--cyan);
}
.stat-value--accent { color: var(--yellow); }
.stat-value--warm { color: var(--orange); }
.stat-label {
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--mist);
}

.data-table { font-size: 14px; }
.data-table th {
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  color: var(--mist);
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-strong);
}
.data-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.data-table tbody tr { transition: background-color 0.18s ease; }
.data-table tbody tr:hover { background-color: var(--cyan-soft); }
.data-table .num { text-align: right; }

.crumbs { padding-block: 14px; border-bottom: 1px solid var(--line-soft); }
.crumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mist);
}
.crumbs-list li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs-list li + li::before { content: "/"; color: var(--grass); }
.crumbs-list a:hover { color: var(--cyan); }
.crumb-current { color: var(--paper); }

.section-nav { position: relative; }
.section-nav-list { display: flex; flex-direction: column; gap: 4px; }
.section-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-left: 2px solid var(--line);
  font-size: 14px;
  color: var(--mist);
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
.section-nav-link:hover { color: var(--paper); border-left-color: var(--grass); }
.section-nav-link[data-active="true"] {
  color: var(--cyan);
  border-left-color: var(--cyan);
  background: var(--cyan-soft);
  transform: translateX(4px);
}
.section-nav-index { font-family: var(--font-data); font-size: 11px; letter-spacing: 0.12em; opacity: 0.7; }

.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, var(--panel) 0%, var(--night) 100%);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 27, 19, 0) 42%, rgba(6, 27, 19, 0.72) 100%);
  pointer-events: none;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: rgba(143, 169, 156, 0.5);
}
.media-caption { margin-top: 10px; font-size: 13px; color: var(--mist); }
.media-grid { display: grid; gap: clamp(12px, 2vw, 20px); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.timeline { position: relative; }
.timeline-track {
  display: flex;
  gap: clamp(16px, 2.4vw, 28px);
  overflow-x: auto;
  padding: 26px 4px 18px;
  scroll-snap-type: x proximity;
  scrollbar-color: var(--grass) transparent;
}
.timeline-item {
  position: relative;
  flex: 0 0 clamp(220px, 26vw, 300px);
  padding-top: 24px;
  scroll-snap-align: start;
}
.timeline-item::before {
  content: "";
  position: absolute;
  top: 6px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--grass), rgba(143, 169, 156, 0.2));
}
.timeline-node {
  position: absolute;
  top: 0; left: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(47, 227, 192, 0.14);
}
.timeline-year { font-family: var(--font-data); font-size: 12px; letter-spacing: 0.14em; color: var(--cyan); }

/* 显现动效 */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 0.7, 0.3, 1);
}
.js [data-reveal][data-revealed="true"] { opacity: 1; transform: none; }

/* ---------- 6 头部 ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  background: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header[data-scrolled="true"] {
  background: rgba(6, 27, 19, 0.95);
  box-shadow: 0 1px 0 rgba(47, 227, 192, 0.22), 0 22px 54px -36px rgba(0, 0, 0, 1);
}

.skip-link {
  position: absolute;
  top: -80px;
  left: var(--gutter);
  z-index: 4;
  padding: 10px 18px;
  background: var(--cyan);
  color: var(--night);
  font-size: 14px;
  font-weight: 700;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

.header-status {
  position: relative;
  z-index: 2;
  max-height: 46px;
  overflow: hidden;
  background: rgba(6, 27, 19, 0.74);
  border-bottom: 1px solid var(--line-soft);
  transition: max-height 0.3s ease, opacity 0.3s ease, border-color 0.3s ease;
}
.site-header[data-scrolled="true"] .header-status { max-height: 0; opacity: 0; border-color: transparent; }

.header-status-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 8px var(--gutter);
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist);
}

.status-dot {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(47, 227, 192, 0.16);
  animation: statusPulse 2.6s ease-in-out infinite;
}
@keyframes statusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.78); }
}

.status-text { color: rgba(243, 246, 241, 0.76); }
.status-meta { margin-left: auto; color: var(--cyan); white-space: nowrap; }

.header-bar {
  position: relative;
  z-index: 3;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-header[data-scrolled="true"] .header-bar { border-bottom-color: rgba(47, 227, 192, 0.22); }

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 36px);
  max-width: var(--shell);
  min-height: 64px;
  margin-inline: auto;
  padding: 12px var(--gutter);
}

.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-mark {
  position: relative;
  width: 34px; height: 34px;
  flex: 0 0 34px;
  background: linear-gradient(140deg, var(--cyan), var(--grass));
  clip-path: polygon(0 0, 100% 0, 100% 60%, 60% 100%, 0 100%);
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 9px;
  background: var(--night);
  clip-path: polygon(0 0, 100% 0, 100% 60%, 60% 100%, 0 100%);
}
.brand-text { display: block; }
.brand-line {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--paper);
}
.brand-tagline {
  display: block;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--mist);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.6vw, 20px);
  margin-left: auto;
}
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-link {
  position: relative;
  display: block;
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(243, 246, 241, 0.78);
  border-radius: var(--radius);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 4px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.nav-link:hover { color: var(--paper); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--cyan); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--cyan);
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.nav-cta:hover { background: var(--cyan); border-color: var(--cyan); color: var(--night); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--paper);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan); }
.nav-toggle-label { font-size: 13px; letter-spacing: 0.08em; }
.nav-toggle-bars { display: flex; flex-direction: column; gap: 4px; width: 20px; }
.nav-toggle-bars i {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(1) { transform: translateY(6px) 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(-6px) rotate(-45deg); }

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(6, 27, 19, 0.74);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.nav-scrim[data-open="true"] { opacity: 1; visibility: visible; }

.read-progress {
  position: absolute;
  left: 0; bottom: 0;
  z-index: 4;
  display: block;
  width: 100%;
  height: 2px;
  background: rgba(47, 227, 192, 0.12);
  pointer-events: none;
}
.read-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--grass), var(--cyan) 62%, var(--yellow));
}

/* ---------- 7 页脚 ---------- */
.site-footer {
  position: relative;
  background: var(--night);
  color: var(--paper);
  border-top: 1px solid rgba(47, 227, 192, 0.22);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--grass) 44%, transparent);
}

.footer-shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(42px, 6vw, 76px) var(--gutter) 0;
}

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

.footer-brand { max-width: 42ch; }
.footer-mark {
  display: block;
  width: 44px; height: 44px;
  margin-bottom: 16px;
  background: linear-gradient(140deg, var(--cyan), var(--grass));
  clip-path: polygon(0 0, 100% 0, 100% 58%, 58% 100%, 0 100%);
}
.footer-brand-line {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.footer-brand-note {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--mist);
}
.footer-brand .btn { margin-top: 22px; }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 34px);
}
.footer-col { min-width: 0; }
.footer-col-title {
  margin-bottom: 14px;
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(243, 246, 241, 0.78);
  transition: color 0.2s ease, transform 0.2s ease;
}
.footer-link::before {
  content: "";
  width: 12px;
  height: 1px;
  background: var(--grass);
  transition: background-color 0.2s ease, width 0.2s ease;
}
.footer-link:hover { color: var(--cyan); transform: translateX(3px); }
.footer-link:hover::before { background: var(--cyan); width: 18px; }

.footer-contact {
  margin-top: clamp(32px, 5vw, 58px);
  padding-top: clamp(24px, 3vw, 34px);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 18px;
}
.footer-contact-title {
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}
.footer-contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 46px;
}
.footer-contact-item { display: flex; flex-direction: column; gap: 2px; }
.footer-contact-key {
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--mist);
}
.footer-contact-value {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  color: var(--paper);
  word-break: break-word;
}
.footer-contact-note {
  max-width: 74ch;
  font-size: 13px;
  line-height: 1.75;
  color: var(--mist);
}

.footer-bottom {
  margin-top: clamp(28px, 4vw, 42px);
  padding-block: 20px clamp(24px, 3vw, 34px);
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist);
}
.footer-copy { color: rgba(243, 246, 241, 0.7); }
.footer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.footer-legal { color: var(--mist); }
.footer-icp { color: var(--mist); }

/* ---------- 8 响应式 ---------- */
@media (min-width: 640px) {
  .footer-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 760px) {
  .footer-top { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.7fr); }
  .footer-contact { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: start; }
  .footer-contact-title { grid-column: 1; }
  .footer-contact-list { grid-column: 2; }
  .footer-contact-note { grid-column: 2; }
}

@media (min-width: 901px) {
  .grid-12 > .span-3 { grid-column: span 3; }
  .grid-12 > .span-4 { grid-column: span 4; }
  .grid-12 > .span-5 { grid-column: span 5; }
  .grid-12 > .span-6 { grid-column: span 6; }
  .grid-12 > .span-8 { grid-column: span 8; }
  .grid-12 > .span-12 { grid-column: span 12; }
}

@media (min-width: 1040px) {
  .footer-top { grid-template-columns: minmax(0, 1.4fr) minmax(0, 2.3fr); }
}

@media (max-width: 979px) {
  :root { --header-total: 96px; }

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

  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    width: min(340px, 88vw);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin-left: 0;
    padding: 92px 22px 32px;
    background: var(--night);
    border-left: 1px solid var(--line-strong);
    overflow-y: auto;
    visibility: hidden;
    transform: translateX(102%);
    transition: transform 0.3s cubic-bezier(0.22, 0.7, 0.3, 1), visibility 0.3s ease;
  }
  .primary-nav[data-open="true"] { visibility: visible; transform: translateX(0); }

  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link {
    padding: 13px 12px;
    font-size: 15px;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
    color: rgba(243, 246, 241, 0.86);
  }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] {
    background: var(--cyan-soft);
    border-left: 3px solid var(--cyan);
    padding-left: 14px;
  }

  .nav-cta { margin-top: 20px; padding: 13px 16px; }

  .status-meta { display: none; }
  .status-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (max-width: 520px) {
  .brand-tagline { display: none; }
  .footer-contact-list { gap: 12px 26px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

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

  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .status-dot { animation: none; }
  .nav-link[data-active="true"],
  .section-nav-link[data-active="true"] { transform: none; }
  .btn:hover { transform: none; }
}
