/* ==========================================================================
   迈博体育赛场 · /assets/site.css
   共享外壳：双层甲板页头 / 地图图例页脚 / 堆叠面板与坐标索引基础组件
   ========================================================================== */

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

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

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

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

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

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

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

button { background: none; border: 0; }

::selection { background: var(--mint); color: #06120E; }

/* 02 — tokens ------------------------------------------------------------ */
:root {
  /* 色彩（按规范面积分配：碳黑 55% / 红土 12% / 蓝天 8% / 青绿 ≤8%） */
  --ink: #0A0D10;
  --panel: #141A20;
  --glass: rgba(30, 38, 45, 0.62);
  --red: #C74A2E;
  --red-deep: #8E3320;
  --blue: #2C6E9B;
  --sky: #7FB6D4;
  --mint: #2FE3B0;
  --paper: #F4F1EA;
  --paper-soft: #DEDAD1;
  --muted: #9AA7AF;
  --gold: #E8B04B;
  --line: #2A333A;

  /* 字体 */
  --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, -apple-system, sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, "Noto Sans Mono CJK SC", monospace;

  /* 度量 */
  --shell-w: 1240px;
  --gutter: 20px;
  --ease: cubic-bezier(0.22, 0.8, 0.28, 1);
  --deck-h: 68px;
}

@media (min-width: 900px) {
  :root { --gutter: 32px; }
}

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

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

p { text-wrap: pretty; }

code, kbd, samp, .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* 04 — 布局骨架 ---------------------------------------------------------- */
.shell {
  width: min(var(--shell-w), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

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

.stage--tight { padding-block: clamp(30px, 4vw, 56px); }

.stage--panel {
  background: var(--panel);
  border-block: 1px solid var(--line);
}

.stage--glass {
  background: var(--glass);
  border-block: 1px solid rgba(127, 182, 212, 0.18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.stage--cut {
  padding-top: clamp(64px, 9vw, 128px);
  clip-path: polygon(0 clamp(18px, 4vw, 72px), 100% 0, 100% 100%, 0 100%);
}

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--asym { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }

.divider {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--line);
}

/* 05 — 文本层级与坐标索引 ------------------------------------------------ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--mint);
}

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

.section-title {
  margin: 0 0 18px;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.06;
}

.display-xl {
  font-size: clamp(40px, 7vw, 88px);
  line-height: 0.98;
}

.lede {
  max-width: 38ch;
  margin: 0 0 24px;
  color: var(--paper-soft);
  font-size: 17px;
  line-height: 1.8;
}

.coord {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.vertical-note {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--muted);
}

.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.85;
  color: var(--paper-soft);
}

.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: clamp(24px, 3vw, 32px); margin-top: 1.6em; color: var(--paper); }
.prose h3 { font-size: 22px; margin-top: 1.4em; color: var(--paper); }
.prose a { color: var(--mint); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--paper); font-weight: 700; }

.list-disc { list-style: disc; padding-left: 1.4em; }
.list-disc li + li { margin-top: 0.4em; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 06 — 按钮 -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease), transform 0.22s var(--ease);
}

.btn--cta {
  background: var(--mint);
  color: #06120E;
  box-shadow: 0 0 0 1px rgba(47, 227, 176, 0.42), 0 10px 24px -16px rgba(47, 227, 176, 0.9);
}

.btn--cta:hover { background: #5BF0C4; transform: translateY(-1px); }

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

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

.btn--red {
  background: var(--red);
  color: var(--paper);
}

.btn--red:hover { background: var(--red-deep); }

/* 07 — 焦点环 ------------------------------------------------------------ */
:focus-visible,
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 1px;
}

/* 08 — 跳转链接 ---------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 220;
  padding: 12px 18px;
  border-radius: 2px;
  background: var(--mint);
  color: #06120E;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: top 0.22s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible { top: 12px; }

/* 09 — 页头：双层甲板 ---------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: #0A0D10;
  border-bottom: 1px solid var(--line);
}

/* 上层：品牌与通道状态 */
.brand-deck {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #0E1419 0%, #0A0D10 82%);
}

.brand-deck::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: min(46%, 420px);
  background: linear-gradient(148deg, rgba(199, 74, 46, 0.72) 0%, rgba(142, 51, 32, 0.3) 58%, rgba(44, 110, 155, 0.22) 100%);
  clip-path: polygon(32% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.brand-deck::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--mint) 0%, var(--red) 100%);
  pointer-events: none;
}

.brand-deck__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--deck-h);
  padding-block: 11px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--paper);
}

.brand__mark {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--mint);
  background: rgba(47, 227, 176, 0.08);
  clip-path: polygon(0 0, 100% 0, 100% 74%, 74% 100%, 0 100%);
}

.brand__mark::before {
  content: "";
  position: absolute;
  inset: 8px;
  background: var(--mint);
  clip-path: polygon(0 100%, 100% 0, 100% 40%, 40% 100%);
}

.brand__text { display: block; min-width: 0; }

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.16;
  white-space: nowrap;
}

.brand__line {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  line-height: 1.4;
  color: var(--muted);
  white-space: nowrap;
}

.deck-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--glass);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--sky);
  white-space: nowrap;
}

.deck-status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(47, 227, 176, 0.16);
  animation: deck-pulse 2.4s ease-in-out infinite;
}

@keyframes deck-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(47, 227, 176, 0.16); }
  50%      { box-shadow: 0 0 0 6px rgba(47, 227, 176, 0.05); }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex: 0 0 auto;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--glass);
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--paper);
  transition: transform 0.26s var(--ease), opacity 0.2s ease;
}

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

/* 进度条 */
.progress-rail {
  position: relative;
  height: 2px;
  background: linear-gradient(90deg, var(--line) 0%, rgba(42, 51, 58, 0) 100%);
  overflow: hidden;
}

.progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--red) 0%, var(--mint) 100%);
}

/* 下层：栏目甲板 */
.primary-deck {
  position: relative;
  background: rgba(20, 26, 32, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.primary-deck::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(32%, 300px);
  height: 1px;
  background: linear-gradient(90deg, rgba(47, 227, 176, 0), var(--mint));
  pointer-events: none;
}

.primary-deck__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 52px;
}

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

.nav-item { display: flex; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 15px 14px;
  color: var(--paper);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s var(--ease);
}

.nav-link:hover { color: var(--mint); }
.nav-link:hover .nav-index { color: var(--mint); }
.nav-link:hover::after { transform: scaleX(1); }

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

.nav-coords {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  white-space: nowrap;
}

/* 10 — 页脚：地图图例 ---------------------------------------------------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #0C1116 0%, #0A0D10 100%);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg,
    var(--red) 0 18%,
    var(--red-deep) 18% 26%,
    var(--blue) 26% 44%,
    var(--sky) 44% 52%,
    var(--mint) 52% 62%,
    var(--line) 62% 100%);
  pointer-events: none;
}

.footer-legend {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 0.75fr 0.75fr;
  gap: clamp(24px, 3vw, 44px);
  padding-block: clamp(44px, 6vw, 72px) clamp(32px, 4vw, 48px);
}

.footer-brand { min-width: 0; }

.footer-brand__name {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.footer-brand__note {
  max-width: 34ch;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.footer-coords {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--sky);
}

.legend-key {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.legend-key__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.legend-key__dot {
  display: block;
  width: 9px;
  height: 9px;
}

.legend-key__dot--red { background: var(--red); }
.legend-key__dot--blue { background: var(--blue); border-radius: 50%; }
.legend-key__dot--mint { background: var(--mint); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }

.footer-col { min-width: 0; }

.footer-col__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--paper);
}

.footer-col__key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  background: var(--mint);
  color: #06120E;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.footer-col__key--red { background: var(--red); color: var(--paper); }
.footer-col__key--blue { background: var(--blue); color: var(--paper); }

.footer-col__list {
  display: grid;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.footer-col__list--links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--paper);
  font-size: 15px;
  transition: color 0.2s var(--ease);
}

.footer-col__list--links a::before {
  content: "";
  width: 7px;
  height: 1px;
  background: var(--line);
  transition: width 0.24s var(--ease), background 0.24s var(--ease);
}

.footer-col__list--links a:hover { color: var(--mint); }
.footer-col__list--links a:hover::before { width: 16px; background: var(--mint); }

.footer-mono {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--paper);
  word-break: break-word;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 18px 30px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.footer-meta__note { letter-spacing: 0.02em; }
.footer-meta__icp { color: var(--sky); letter-spacing: 0.08em; }

/* 11 — 面板 / 数据带 / 标签 ---------------------------------------------- */
.panel {
  position: relative;
  padding: clamp(18px, 2.6vw, 32px);
  border: 1px solid var(--line);
  background: var(--panel);
}

.panel--glass {
  background: var(--glass);
  border-color: rgba(127, 182, 212, 0.22);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.panel--accent { border-left: 3px solid var(--mint); }

.data-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px clamp(18px, 3vw, 42px);
  padding-block: 13px;
  border-block: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.data-strip__item { display: inline-flex; align-items: baseline; gap: 8px; }

.data-strip__value {
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid rgba(47, 227, 176, 0.35);
  background: rgba(47, 227, 176, 0.12);
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.6;
}

.tag--gold {
  border-color: rgba(232, 176, 75, 0.4);
  background: rgba(232, 176, 75, 0.12);
  color: var(--gold);
}

.tag--blue {
  border-color: rgba(127, 182, 212, 0.4);
  background: rgba(44, 110, 155, 0.2);
  color: var(--sky);
}

/* 12 — 图片容器（共享骨架不放图片，供页面阶段填充） --------------------- */
.figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #182028 0%, #0E141A 58%, #1D150F 100%);
}

.figure__media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.figure__placeholder {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(127, 182, 212, 0.1) 0 1px, rgba(127, 182, 212, 0) 1px 16px),
    linear-gradient(150deg, #172029 0%, #0D1216 56%, #22160F 100%);
}

.figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 13, 16, 0) 42%, rgba(10, 13, 16, 0.82) 100%);
  pointer-events: none;
}

.figure__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--sky);
}

.figure--tall .figure__media { aspect-ratio: 4 / 5; }
.figure--wide .figure__media { aspect-ratio: 21 / 9; }

.figure--cut {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), calc(100% - 34px) 100%, 0 100%);
}

/* 13 — 面包屑 ------------------------------------------------------------ */
.breadcrumb { padding-block: 20px 0; }

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  margin-right: 9px;
  color: var(--line);
}

.breadcrumb a { color: var(--muted); transition: color 0.2s var(--ease); }
.breadcrumb a:hover { color: var(--mint); }
.breadcrumb [aria-current="page"] { color: var(--paper); }

/* 14 — 分段切换（可访问标签页） ------------------------------------------ */
.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.tab {
  position: relative;
  padding: 11px 15px;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.tab:hover { color: var(--paper); background: rgba(127, 182, 212, 0.06); }
.tab[aria-selected="true"] { color: var(--mint); border-bottom-color: var(--mint); }
.tab-panel[hidden] { display: none; }

/* 15 — 进视口显现（JS 开启后才隐藏） ------------------------------------- */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.58s var(--ease), transform 0.58s var(--ease);
}

.js-reveal [data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

/* 16 — 响应式 ------------------------------------------------------------ */
@media (max-width: 1080px) {
  .footer-legend { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .grid--asym { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .deck-status { display: none; }
  .nav-coords { display: none; }

  .primary-deck {
    max-height: 0;
    overflow: hidden;
    background: #0E141A;
    transition: max-height 0.36s var(--ease);
  }

  .primary-deck[data-open] {
    max-height: min(78vh, 560px);
    overflow-y: auto;
    border-bottom: 1px solid var(--line);
  }

  .primary-deck__inner {
    display: block;
    min-height: 0;
    padding: 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 16px;
  }

  .nav-item { display: block; }

  .nav-link {
    justify-content: flex-start;
    padding: 15px 10px;
    border-bottom: 1px solid rgba(42, 51, 58, 0.65);
    border-left: 2px solid transparent;
    font-size: 16px;
  }

  .nav-link::after { display: none; }

  .nav-link[aria-current="page"] {
    border-left-color: var(--mint);
    background: rgba(47, 227, 176, 0.07);
  }

  .stage--cut {
    clip-path: polygon(0 8px, 100% 0, 100% 100%, 0 100%);
    padding-top: clamp(44px, 8vw, 72px);
  }
}

@media (min-width: 901px) {
  .brand-deck {
    max-height: 140px;
    transition: max-height 0.38s var(--ease), opacity 0.26s ease;
  }

  .site-header.is-tight .brand-deck {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
  }

  .site-header.is-tight .brand-deck::before { opacity: 0; }
}

@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .brand-deck__inner { gap: 12px; }
  .brand__name { font-size: 17px; }
  .brand__line { font-size: 10px; letter-spacing: 0.1em; }
  .btn { padding: 11px 15px; font-size: 13px; }
  .grid--2 { grid-template-columns: 1fr; }
  .footer-legend { grid-template-columns: 1fr; }
  .footer-meta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
  .grid--3 { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  .brand__line { display: none; }
  .header-actions { gap: 8px; }
  .btn--cta { padding: 10px 12px; font-size: 12px; }
  .nav-toggle { width: 40px; height: 38px; }
}

/* 17 — 降低动效 ---------------------------------------------------------- */
@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;
  }

  .js-reveal [data-reveal],
  .js-reveal [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }

  .deck-status__dot { animation: none; }
}
