/* ==========================================================================
   爱体育主站 — 共享样式 /assets/site.css
   结构：reset → 变量 → 排版 → 页头 → 页脚 → 布局 → 组件 → 状态 → 响应式
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html, 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 { max-width: 100%; }

button { font: inherit; color: inherit; }

:root {
  --paper-100: #F7F1E4;
  --paper-200: #EADFC8;
  --loess-500: #C98F4B;
  --loess-700: #8C5F2A;
  --coal-900: #14110F;
  --coal-600: #4A443C;
  --card-red: #C0392B;
  --card-red-deep: #A93124;
  --card-yellow: #E8A81C;
  --line-teal: #1F7A6B;
  --mist-white: #FFFDF8;
  --border-sand: #D8CDB8;

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-narrow: "Arial Narrow", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "PingFang SC", monospace;

  --radius-organic: 16px 4px 28px 8px;
  --radius-soft: 4px 18px 6px 20px;
  --shadow-panel: 0 12px 28px rgba(20, 17, 15, 0.10);
  --shadow-lift: 0 6px 16px rgba(20, 17, 15, 0.14);

  --shell-w: 1200px;
  --header-h: 56px;
  --gutter: clamp(14px, 4vw, 32px);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 26px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.8;
  font-weight: 400;
  color: var(--coal-900);
  background-color: var(--paper-100);
  background-image:
    radial-gradient(circle at 10% -6%, rgba(201, 143, 75, 0.16), transparent 44%),
    radial-gradient(circle at 94% 3%, rgba(31, 122, 107, 0.09), transparent 40%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 { line-height: 1.22; font-weight: 700; }

a { color: inherit; }

/* --------------------------------------------------------- 排版工具 --- */

.display {
  font-family: var(--font-narrow);
  font-weight: 900;
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-stretch: condensed;
  color: var(--coal-900);
}

.h2 {
  font-family: var(--font-narrow);
  font-weight: 900;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.04;
  letter-spacing: -0.012em;
  font-stretch: condensed;
}

.h3 { font-size: 1.14rem; font-weight: 700; line-height: 1.42; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--coal-600);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--loess-500);
}

.data {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.95em;
  letter-spacing: 0.01em;
}

.prose {
  max-width: 34em;
  font-size: 17px;
  line-height: 1.8;
  color: var(--coal-900);
}

.prose p + p { margin-top: 1.1em; }

.prose a {
  color: var(--line-teal);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.prose a:hover { color: var(--card-red); }

/* --------------------------------------------------------- 跳转链接 --- */

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  background: var(--card-yellow);
  color: var(--coal-900);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-radius: 2px 14px 2px 14px;
  transition: top 0.18s ease;
}

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

/* ------------------------------------------------------------- 页头 --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--coal-900);
  color: var(--paper-100);
  border-bottom: 3px solid var(--loess-700);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled { box-shadow: 0 10px 26px rgba(20, 17, 15, 0.26); }

.progress-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  background: rgba(247, 241, 228, 0.13);
  overflow: hidden;
}

.progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--card-yellow) 0%, var(--card-red) 55%, var(--line-teal) 100%);
  transition: width 0.12s linear;
}

.header-shell {
  width: 100%;
  max-width: var(--shell-w);
  min-height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.6vw, 20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  text-decoration: none;
  color: var(--paper-100);
  flex: 0 0 auto;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--card-yellow);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.02; }

.brand-word {
  font-family: var(--font-narrow);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: 0.05em;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--loess-500);
}

.primary-nav { margin-left: auto; min-width: 0; }

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

.nav-item { flex: 0 0 auto; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 11px;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: rgba(247, 241, 228, 0.74);
  text-decoration: none;
  border-radius: 2px 12px 2px 12px;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.nav-link::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(247, 241, 228, 0.3);
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--loess-500);
  transition: color 0.18s ease;
}

.nav-link:hover { color: var(--paper-100); background: rgba(247, 241, 228, 0.09); }

.nav-link.is-current { color: var(--paper-100); }

.nav-link.is-current .nav-index { color: var(--card-yellow); }

.nav-link.is-current::after { background: var(--card-yellow); box-shadow: none; }

.nav-link[aria-current="page"] {
  background: var(--paper-100);
  color: var(--coal-900);
}

.nav-link[aria-current="page"] .nav-index { color: var(--card-red); }

.nav-link[aria-current="page"]::after { background: var(--card-red); box-shadow: none; }

.nav-link[aria-current="page"]:hover { background: var(--paper-200); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(247, 241, 228, 0.3);
  border-radius: 2px 12px 2px 12px;
  color: var(--paper-100);
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

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

.nav-toggle-lines {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 16px;
  height: 14px;
}

.nav-toggle-lines i {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: var(--card-yellow);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 15px;
  flex: 0 0 auto;
  background: var(--card-red);
  color: var(--mist-white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 2px 14px 2px 14px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.header-cta:hover { background: var(--card-red-deep); transform: translateY(-1px); }

.cta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--card-yellow);
}

/* ------------------------------------------------------------- 页脚 --- */

.site-footer {
  position: relative;
  margin-top: clamp(52px, 8vw, 104px);
  background: var(--coal-900);
  color: var(--paper-100);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--loess-700) 0 26px, transparent 26px 52px);
}

.footer-shell {
  width: 100%;
  max-width: var(--shell-w);
  margin: 0 auto;
  padding: clamp(42px, 6vw, 76px) var(--gutter) clamp(28px, 4vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 2.85fr);
  gap: clamp(28px, 4vw, 56px);
}

.footer-wordmark {
  font-family: var(--font-narrow);
  font-weight: 900;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1;
  letter-spacing: 0.04em;
}

.footer-note {
  margin-top: 14px;
  max-width: 22em;
  font-size: 13.5px;
  line-height: 1.75;
  color: rgba(247, 241, 228, 0.66);
}

.footer-stamp {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--loess-500);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 34px);
}

.footer-col-title {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--loess-500);
}

.footer-list {
  display: grid;
  gap: 9px;
  font-size: 13.5px;
  line-height: 1.65;
}

.footer-list a {
  color: rgba(247, 241, 228, 0.84);
  text-decoration: none;
  border-bottom: 1px solid rgba(247, 241, 228, 0.22);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.footer-list a:hover { color: var(--card-yellow); border-color: var(--card-yellow); }

.footer-list span { color: rgba(247, 241, 228, 0.62); }

.footer-base {
  width: 100%;
  max-width: var(--shell-w);
  margin: 0 auto;
  padding: clamp(22px, 3vw, 30px) var(--gutter) clamp(30px, 4vw, 46px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 26px;
  border-top: 1px solid rgba(247, 241, 228, 0.16);
}

.footer-closing {
  font-family: var(--font-narrow);
  font-weight: 900;
  font-size: clamp(1.35rem, 3vw, 2.05rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--loess-500);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(247, 241, 228, 0.58);
}

/* --------------------------------------------------------- 布局工具 --- */

.shell {
  width: 100%;
  max-width: var(--shell-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.stack {
  display: grid;
  gap: clamp(16px, 2.6vw, 32px);
}

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

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

.span-1 { grid-column: span 1; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-9 { grid-column: span 9; }
.span-10 { grid-column: span 10; }
.span-12 { grid-column: span 12; }

.rail {
  position: sticky;
  top: calc(var(--header-h) + 22px);
  align-self: start;
}

/* --------------------------------------------------------- 面板组件 --- */

.panel {
  position: relative;
  background: var(--mist-white);
  border: 1px solid var(--border-sand);
  border-radius: var(--radius-organic);
  box-shadow: var(--shadow-panel);
  padding: clamp(20px, 3.4vw, 40px);
}

.panel--paper { background: var(--paper-200); }

.panel--ink {
  background: var(--coal-900);
  color: var(--paper-100);
  border-color: transparent;
}

.panel--ink .h2,
.panel--ink .display,
.panel--ink .h3 { color: var(--paper-100); }

.panel--offset { margin-top: clamp(2px, 0.6vw, 6px); }

/* --------------------------------------------------------- 索引标签 --- */

.tag-band {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 13px;
  white-space: nowrap;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  background: var(--paper-200);
  color: var(--coal-900);
  border: 1px solid var(--border-sand);
  border-radius: 2px 12px 2px 12px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.tag:hover { border-color: var(--line-teal); }

.tag.is-active,
.tag[aria-pressed="true"] {
  background: var(--loess-500);
  border-color: var(--loess-700);
  color: var(--coal-900);
  font-weight: 700;
}

.tag--red { background: var(--card-red); color: var(--mist-white); border-color: transparent; }
.tag--yellow { background: var(--card-yellow); color: var(--coal-900); border-color: transparent; }
.tag--teal { background: var(--line-teal); color: var(--mist-white); border-color: transparent; }

/* --------------------------------------------------------- 资料卡片 --- */

.file-card {
  position: relative;
  background: var(--mist-white);
  border: 1px solid var(--border-sand);
  border-radius: var(--radius-soft);
  padding: 18px 20px;
  box-shadow: 0 2px 0 rgba(20, 17, 15, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.file-card:hover,
.file-card:focus-within {
  transform: translateY(-2px);
  border-color: var(--line-teal);
  box-shadow: var(--shadow-lift);
}

.file-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 14px;
}

.file-card__title { font-size: 1.02rem; font-weight: 700; line-height: 1.45; }

.file-card__body {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--coal-600);
}

.file-card__meta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--coal-600);
}

/* --------------------------------------------------------- 时间轴线 --- */

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

.axis::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--loess-700) 0%, var(--line-teal) 100%);
}

.axis-item { position: relative; }

.axis-item + .axis-item { margin-top: 18px; }

.axis-mark {
  position: absolute;
  left: -28px;
  top: 7px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--card-yellow);
  border: 3px solid var(--paper-100);
  box-shadow: 0 0 0 1px var(--border-sand);
}

.axis-mark--red { background: var(--card-red); }
.axis-mark--teal { background: var(--line-teal); }

/* --------------------------------------------------------- 数据表格 --- */

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
}

.data-table caption {
  text-align: left;
  padding-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--coal-600);
}

.data-table th {
  padding: 10px 12px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--coal-600);
  border-bottom: 2px solid var(--loess-700);
  white-space: nowrap;
}

.data-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border-sand);
  vertical-align: top;
}

.data-table tbody tr:hover td { background: var(--paper-200); }

/* ------------------------------------------------------------- 标签页 --- */

.tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 2px solid var(--border-sand);
  scrollbar-width: thin;
}

.tab {
  min-height: 44px;
  padding: 0 16px;
  white-space: nowrap;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  font-size: 14px;
  font-weight: 700;
  color: var(--coal-600);
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.tab:hover { color: var(--coal-900); }

.tab[aria-selected="true"] {
  color: var(--coal-900);
  border-bottom-color: var(--card-red);
}

.tabpanel { padding-top: clamp(16px, 2.4vw, 26px); }

.tabpanel[hidden] { display: none; }

/* --------------------------------------------------------- 图像容器 --- */

.media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--paper-200);
  border-radius: var(--radius-organic);
  isolation: isolate;
}

.media > img,
.media > svg,
.media > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--21x9 { aspect-ratio: 21 / 9; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--3x4 { aspect-ratio: 3 / 4; }
.media--1x1 { aspect-ratio: 1 / 1; }

.media--field::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 17, 15, 0) 52%, rgba(20, 17, 15, 0.58) 100%);
}

.media-caption {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--coal-600);
}

/* ------------------------------------------------------------- 面包屑 --- */

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--coal-600);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
}

.breadcrumb li { display: inline-flex; align-items: center; }

.breadcrumb li + li::before {
  content: "/";
  margin: 0 10px;
  color: var(--loess-500);
}

.breadcrumb a {
  color: var(--coal-600);
  text-decoration: none;
  border-bottom: 1px solid var(--border-sand);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.breadcrumb a:hover { color: var(--line-teal); border-color: var(--line-teal); }

/* ------------------------------------------------------------- 按钮 --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 3px 16px 3px 16px;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn--primary {
  background: var(--card-red);
  color: var(--mist-white);
  box-shadow: 0 3px 0 rgba(20, 17, 15, 0.22);
}

.btn--primary:hover { background: var(--card-red-deep); transform: translateY(-2px); }

.btn--ink { background: var(--coal-900); color: var(--paper-100); }

.btn--ink:hover { background: var(--coal-600); transform: translateY(-2px); }

.btn--ghost { background: transparent; color: var(--coal-900); border-color: var(--coal-900); }

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

/* ------------------------------------------------------------- 折叠 --- */

.fold {
  border-top: 1px solid var(--border-sand);
  padding: 6px 0;
}

.fold summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 700;
  font-size: 15.5px;
  cursor: pointer;
  list-style: none;
}

.fold summary::-webkit-details-marker { display: none; }

.fold summary::before {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--loess-700);
  border-bottom: 2px solid var(--loess-700);
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
}

.fold[open] summary::before { transform: rotate(45deg); }

.fold__body {
  padding: 4px 0 14px 19px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--coal-600);
  max-width: 34em;
}

/* --------------------------------------------------------- 渐显动画 --- */

.has-js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.has-js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------- 焦点 --- */

:focus-visible {
  outline: 2px solid var(--line-teal);
  outline-offset: 2px;
}

.site-header :focus-visible { outline-color: var(--card-yellow); }

/* --------------------------------------------------------- 减少动效 --- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .has-js .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------- 响应式 1024 --- */

@media (max-width: 1024px) {
  .grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

  .span-1, .span-2, .span-3, .span-4, .span-5 { grid-column: span 3; }
  .span-6, .span-7, .span-8, .span-9, .span-10, .span-12 { grid-column: span 6; }

  .rail { position: static; }

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

/* --------------------------------------------------------- 响应式 960 --- */

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }

  .header-cta { margin-left: auto; }

  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    background: #0D0B0A;
    border-top: 1px solid rgba(247, 241, 228, 0.14);
    border-bottom: 3px solid var(--loess-700);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }

  .site-header[data-open] .primary-nav { display: block; }

  .nav-list {
    min-width: max-content;
    padding: 9px var(--gutter);
    gap: 6px;
  }

  .nav-link {
    border: 1px solid rgba(247, 241, 228, 0.22);
    white-space: nowrap;
  }

  .nav-link[aria-current="page"] { border-color: transparent; }
}

/* --------------------------------------------------------- 响应式 768 --- */

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

  .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; }

  .footer-base { align-items: flex-start; }

  .panel { padding: clamp(18px, 5vw, 26px); }
}

/* --------------------------------------------------------- 响应式 480 --- */

@media (max-width: 480px) {
  .grid--12 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .span-1, .span-2, .span-3, .span-4, .span-5, .span-6,
  .span-7, .span-8, .span-9, .span-10, .span-12 { grid-column: span 2; }

  .brand-sub { display: none; }
  .brand-word { font-size: 17px; }

  .nav-toggle { padding: 0 10px; font-size: 12px; }

  .header-cta { padding: 0 12px; font-size: 12px; }
  .header-cta .cta-dot { display: none; }

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

  .breadcrumb { font-size: 10px; }
}

/* -------------------------------------------------------- 响应式 1440 --- */

@media (min-width: 1440px) {
  :root { --shell-w: 1280px; }
}
