/* ============================================================
   九州体育 · 共享样式表 /assets/site.css
   夜间开放的体育数据档案馆 —— 墨蓝底 / 竞技金 / 电光青
   ============================================================ */

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

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

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

ul, ol { padding: 0; }

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

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

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

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

[hidden] { display: none !important; }

/* ---------- 2. 设计令牌 ---------- */
:root {
  --ink: #0B1D33;
  --panel: #132A44;
  --gold: #E8B44A;
  --cyan: #23D3C4;
  --orange: #FF7A3C;
  --mist: #EEF3F8;
  --slate: #5B6B80;
  --sand: #F6E3B4;
  --line: #2E4A66;
  --green: #42C98B;

  --rail-w: 96px;
  --topbar-h: 62px;
  --shell-max: 1240px;
  --pad: clamp(20px, 4vw, 60px);

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --font-ui: "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-card: 0 24px 46px -30px rgba(2, 10, 20, .95);
  --progress: 0;
}

/* ---------- 3. 基础排版 ---------- */
body {
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .012em;
  color: var(--mist);
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 620px at 86% -6%, rgba(35, 211, 196, .10), transparent 62%),
    radial-gradient(880px 520px at 4% 2%, rgba(232, 180, 74, .075), transparent 60%);
  background-repeat: no-repeat;
  padding-top: var(--topbar-h);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.nav-open { overflow: hidden; }

h1, h2, h3, h4 {
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -.012em;
}

h1 { font-size: clamp(2.4rem, 6.2vw, 4.6rem); line-height: 1.06; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.18rem, 2vw, 1.5rem); }

strong { font-weight: 600; color: var(--sand); }

::selection { background: rgba(35, 211, 196, .32); color: #03121F; }

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

/* ---------- 4. 排版工具 ---------- */
.display {
  font-weight: 200;
  font-size: clamp(3rem, 9vw, 9.5rem);
  line-height: .9;
  letter-spacing: -.035em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
  line-height: 1.6;
}

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

.lead {
  font-size: clamp(1.04rem, 1.6vw, 1.3rem);
  line-height: 1.75;
  color: #C2D0E0;
  max-width: 36em;
}

.prose {
  max-width: 38em;
  color: #B4C3D5;
  font-size: 1rem;
}

.prose p { margin: 0; }
.prose p + p { margin-top: 1.15em; }
.prose h2, .prose h3 { margin: 1.6em 0 .6em; color: var(--mist); }

.prose--light { color: var(--slate); background: var(--mist); }

.quote {
  margin: 1.6rem 0 0;
  padding: 1.1rem 1.4rem;
  border-left: 2px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(19, 42, 68, .55);
  color: var(--sand);
  font-size: 1rem;
  max-width: 34em;
}

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

.section {
  position: relative;
  padding-block: clamp(56px, 7.5vw, 112px);
}

.section--tight { padding-block: clamp(32px, 4.5vw, 62px); }

.section--panel {
  background: linear-gradient(160deg, #15304F, #0F2340 62%, #0C1E36);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding-block: clamp(30px, 4.5vw, 62px);
  padding-inline: clamp(20px, 3.4vw, 52px);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.1rem;
  margin-bottom: clamp(22px, 3vw, 40px);
}

.grid {
  display: grid;
  gap: clamp(16px, 2.2vw, 30px);
}

.grid--2, .grid--3, .grid--4, .grid--split { grid-template-columns: 1fr; }

.divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--line) 18%, var(--line) 82%, transparent);
  margin-block: clamp(28px, 4vw, 56px);
}

#main-content { display: block; }

/* ---------- 6. 按钮与芯片 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 44px;
  padding: .68em 1.5em;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--mist);
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .05em;
  cursor: pointer;
  transition: background-color .22s var(--ease), border-color .22s var(--ease),
              color .22s var(--ease), transform .22s var(--ease), box-shadow .22s var(--ease);
}

.btn--gold {
  background: var(--gold);
  color: #1B1206;
  box-shadow: 0 16px 32px -20px rgba(232, 180, 74, .95);
}
.btn--gold:hover { background: #F3CB72; transform: translateY(-1px); }

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

.btn--quiet { background: rgba(238, 243, 248, .07); color: var(--mist); }
.btn--quiet:hover { background: rgba(238, 243, 248, .15); }

.btn--sm { min-height: 36px; padding: .42em 1.05em; font-size: .82rem; }
.btn--block { width: 100%; }

.chip-set {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  min-height: 36px;
  padding: .4em 1.05em;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: transparent;
  color: #BCC9D9;
  font-size: .82rem;
  letter-spacing: .05em;
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease), background-color .2s var(--ease);
}

.chip:hover { border-color: var(--cyan); color: var(--cyan); }

.chip[aria-pressed="true"] {
  background: rgba(35, 211, 196, .14);
  border-color: var(--cyan);
  color: #EAFDFB;
}

.filter-status {
  margin-top: .9rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  color: var(--slate);
}

/* ---------- 7. 面板 / 卡片 / 标签 ---------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 34px);
}

.panel--light {
  background: var(--mist);
  color: var(--slate);
  border-color: transparent;
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  padding: 1.35rem 1.35rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(19, 42, 68, .95), rgba(11, 29, 51, .9));
  transition: transform .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease);
}

.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(35, 211, 196, .55);
  box-shadow: var(--shadow-card);
}

.card-index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--gold);
}

.card-title {
  font-size: 1.14rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--mist);
}

.card-text {
  font-size: .93rem;
  line-height: 1.8;
  color: #A9B8CB;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: auto;
  padding-top: .5rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .24em .7em;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: .73rem;
  letter-spacing: .06em;
  color: #B7C6D8;
  line-height: 1.7;
}

.tag--gold { border-color: rgba(232, 180, 74, .5); color: var(--gold); }
.tag--live { border-color: rgba(255, 122, 60, .5); color: var(--orange); }
.tag--done { border-color: rgba(66, 201, 139, .45); color: var(--green); }

.status-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(35, 211, 196, .16);
}

.status-dot--live {
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 122, 60, .18);
}

.metric {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.metric-num {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  line-height: 1;
  color: var(--sand);
}

.metric-label {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  color: var(--slate);
}

/* ---------- 8. 时间轴 ---------- */
.timeline {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0 0 0 1.5rem;
  border-left: 1px solid var(--line);
}

.timeline-item {
  position: relative;
  padding: 0 0 1.9rem 1.1rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: .58em;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: var(--ink);
}

.timeline-date {
  display: block;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .12em;
  color: var(--sand);
  margin-bottom: .35rem;
}

.timeline-title {
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--mist);
  margin-bottom: .3rem;
}

.timeline-text {
  font-size: .92rem;
  line-height: 1.8;
  color: #A9B8CB;
  max-width: 36em;
}

/* ---------- 9. 媒体容器 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(155deg, #15304F, #0B1D33);
  isolation: isolate;
}

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

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

.media-slot {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 92% at 76% 10%, rgba(35, 211, 196, .16), transparent 58%),
    radial-gradient(96% 84% at 10% 90%, rgba(232, 180, 74, .14), transparent 62%),
    repeating-linear-gradient(114deg, rgba(238, 243, 248, .055) 0 1px, transparent 1px 15px);
}

.media-slot-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .22em;
  color: rgba(238, 243, 248, .5);
}

.media-caption {
  margin-top: .7rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  color: var(--slate);
}

/* ---------- 10. 面包屑 ---------- */
.breadcrumbs { margin-bottom: 1.5rem; }

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--slate);
}

.breadcrumbs li { display: flex; align-items: center; gap: .5rem; }

.breadcrumbs li + li::before {
  content: "/";
  color: var(--line);
}

.breadcrumbs a { color: #9FB0C4; transition: color .2s var(--ease); }
.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs [aria-current="page"] { color: var(--sand); }

/* ---------- 11. 工具类 ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   12. 站点头部
   ============================================================ */
.skip-link {
  position: fixed;
  left: 14px;
  top: 14px;
  z-index: 200;
  transform: translateY(-180%);
  padding: .7em 1.2em;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: #1B1206;
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: .04em;
  transition: transform .22s var(--ease);
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  background: rgba(11, 29, 51, .94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  max-width: var(--shell-max);
  min-height: var(--topbar-h);
  margin-inline: auto;
  padding-inline: var(--pad);
}

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

.brand-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(145deg, #F2C868, #C08A24);
  color: #141008;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: 0;
  box-shadow: 0 12px 24px -14px rgba(232, 180, 74, .95);
}

.brand-text { display: flex; flex-direction: column; min-width: 0; }

.brand-name {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .09em;
  color: var(--mist);
  line-height: 1.35;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--slate);
  line-height: 1.5;
  white-space: nowrap;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.btn--rail { white-space: nowrap; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 42px;
  padding: .5em .95em;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(238, 243, 248, .05);
  color: var(--mist);
  font-size: .82rem;
  letter-spacing: .1em;
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease), background-color .2s var(--ease);
}

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

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

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

.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

/* --- 导航（移动端抽屉） --- */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  width: min(348px, 86vw);
  padding: 20px 18px 26px;
  background: linear-gradient(180deg, #0E2340, #08182B);
  border-right: 1px solid var(--line);
  box-shadow: 34px 0 64px -42px rgba(0, 0, 0, .95);
  overflow-y: auto;
  transform: translateX(-104%);
  visibility: hidden;
  transition: transform .34s var(--ease), visibility .34s var(--ease);
}

.rail[data-open] {
  transform: translateX(0);
  visibility: visible;
}

.rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.rail-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--gold);
}

.rail-close {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--mist);
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}

.rail-close:hover { border-color: var(--cyan); color: var(--cyan); }

.rail-close-x {
  position: relative;
  display: block;
  width: 13px;
  height: 13px;
}

.rail-close-x::before,
.rail-close-x::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 13px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
}

.rail-close-x::before { transform: rotate(45deg); }
.rail-close-x::after { transform: rotate(-45deg); }

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rail-item { list-style: none; }

.rail-link {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .8rem .9rem;
  border-radius: 14px;
  color: #B9C6D6;
  transition: background-color .22s var(--ease), color .22s var(--ease);
}

.rail-link:hover { background: rgba(238, 243, 248, .07); color: var(--mist); }

.rail-link[aria-current="page"] {
  background: rgba(232, 180, 74, .13);
  color: var(--sand);
}

.rail-link[aria-current="page"] .rail-num { color: var(--gold); }
.rail-link[aria-current="page"] .rail-label { font-weight: 500; }

.rail-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--slate);
  transition: color .22s var(--ease);
}

.rail-label { font-size: .98rem; letter-spacing: .05em; }

.rail-foot {
  margin-top: auto;
  padding: .9rem .95rem 0;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .16em;
  color: var(--slate);
}

/* --- 遮罩与进度 --- */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 75;
  background: rgba(4, 12, 22, .68);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}

.nav-scrim.is-open { opacity: 1; pointer-events: auto; }

.rail-progress {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  right: 0;
  z-index: 72;
  height: 2px;
  background: rgba(46, 74, 102, .45);
}

.rail-progress-bar {
  display: block;
  height: 100%;
  width: calc(var(--progress, 0) * 100%);
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  transition: width .1s linear;
}

/* ============================================================
   13. 站点页脚
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  background: linear-gradient(180deg, #0A1B2F 0%, #071524 100%);
  border-top: 1px solid var(--line);
  color: #9FB0C4;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 52px);
  padding-block: clamp(44px, 6vw, 78px);
}

.footer-brand { max-width: 34em; }

.footer-wordmark {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 200;
  letter-spacing: .1em;
  line-height: 1.25;
  color: var(--sand);
}

.footer-note {
  margin: .85rem 0 1.1rem;
  font-size: .92rem;
  line-height: 1.85;
  color: #8C9DB2;
}

.footer-flag {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  color: var(--gold);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: clamp(18px, 3vw, 32px);
}

.footer-col { display: flex; flex-direction: column; }

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  line-height: 1.6;
  color: var(--sand);
  margin-bottom: 1rem;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .62rem;
  font-size: .9rem;
}

.footer-link {
  color: #9FB0C4;
  transition: color .2s var(--ease);
}

.footer-link:hover { color: var(--cyan); }

.footer-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .65rem;
  font-size: .86rem;
  line-height: 1.75;
}

.footer-key {
  flex: none;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  color: var(--slate);
}

.footer-val { color: #B9C6D6; word-break: break-word; }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.8rem;
  padding-block: 1.15rem 1.6rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .11em;
  color: var(--slate);
}

.footer-legal { margin: 0; }
.footer-legal--icp { color: #6D8098; }

/* ============================================================
   14. 响应式
   ============================================================ */
@media (max-width: 560px) {
  .brand-tag { display: none; }
  .nav-toggle-text { display: none; }
  .nav-toggle { padding: .5em .75em; }
  .btn--rail { padding: .6em 1em; font-size: .8rem; }
}

@media (min-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 760px) {
  .footer-main { grid-template-columns: 1fr 1.4fr; }
  .footer-contact { grid-column: 1 / -1; }
}

@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid--split { grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); }
}

@media (min-width: 1024px) {
  body {
    padding-top: 0;
    padding-left: var(--rail-w);
  }

  .prose { font-size: 1.02rem; }

  .site-header {
    top: 0;
    bottom: 0;
    right: auto;
    width: var(--rail-w);
    border-bottom: 0;
    border-right: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(13, 32, 55, .99), rgba(8, 21, 38, .99));
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 18px;
    height: 100%;
    min-height: 0;
    max-width: none;
    padding: 26px 0 22px;
  }

  .brand {
    flex-direction: column;
    align-items: center;
    gap: .9rem;
    padding-inline: .4rem;
    text-align: center;
  }

  .brand-name {
    writing-mode: vertical-rl;
    font-size: .92rem;
    letter-spacing: .22em;
    padding-block: .2rem;
  }

  .brand-tag { display: none; }

  .rail {
    position: static;
    flex: 1 1 auto;
    justify-content: center;
    gap: 0;
    width: auto;
    height: auto;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    overflow: visible;
    transform: none;
    visibility: visible;
  }

  .rail-head { display: none; }

  .rail-list { gap: 2px; padding-inline: 8px; }

  .rail-link {
    flex-direction: column;
    align-items: center;
    gap: .3rem;
    padding: .8rem .25rem;
    border-radius: 13px;
    text-align: center;
  }

  .rail-label { font-size: .76rem; letter-spacing: .04em; white-space: nowrap; }
  .rail-num { font-size: .6rem; letter-spacing: .12em; }
  .rail-foot { display: none; }

  .header-tools {
    flex-direction: column;
    align-items: stretch;
    gap: .6rem;
    padding-inline: 10px;
  }

  .nav-toggle { display: none; }

  .btn--rail {
    min-height: 38px;
    padding: .62em .4em;
    font-size: .79rem;
    letter-spacing: .08em;
  }

  .nav-scrim { display: none; }

  .rail-progress {
    top: 0;
    bottom: 0;
    left: auto;
    right: 0;
    width: 2px;
    height: auto;
    background: rgba(46, 74, 102, .4);
  }

  .rail-progress-bar {
    width: 100%;
    height: calc(var(--progress, 0) * 100%);
    background: linear-gradient(180deg, var(--gold), var(--cyan));
    transition: height .1s linear;
  }
}

@media (min-width: 1080px) {
  .footer-main {
    grid-template-columns: 1fr 1.5fr 1fr;
    align-items: start;
  }

  .footer-contact { grid-column: auto; }
}

/* ---------- 15. 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .card:hover,
  .card:focus-within,
  .btn:hover { transform: none; }

  .rail { transition: none; }
  .nav-scrim { transition: none; }
  .rail-progress-bar { transition: none; }
}
