/* ==========================================================================
   n体育赛事 · 全站共享样式 /assets/site.css
   夜战控制台：深炭黑底 + 沙金橙节奏 + 侧边轨道导航 + Bento 面板
   ========================================================================== */

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

html {
  margin: 0;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 18px);
  background-color: #0B0E13;
  background-image:
    radial-gradient(1100px 520px at 84% -6%, rgba(232, 163, 61, .12), transparent 62%),
    radial-gradient(860px 520px at -10% 102%, rgba(124, 92, 255, .10), transparent 62%),
    repeating-linear-gradient(118deg, rgba(42, 52, 65, .26) 0, rgba(42, 52, 65, .26) 1px, transparent 1px, transparent 96px);
  background-repeat: no-repeat, no-repeat, repeat;
}

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure, figcaption, blockquote, dl, dd, dt { margin: 0; }

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

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

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

a { color: inherit; }

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

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #0B0E13;
  --panel: #141A22;
  --panel-2: #101620;
  --gold: #E8A33D;
  --gold-deep: #C97A1E;
  --blue: #4A9FD8;
  --violet: #7C5CFF;
  --mint: #3FD8A4;
  --alert: #FF5C6C;
  --sand: #F2EDE4;
  --cool: #9AA4B2;
  --struct: #2A3441;

  --rail-w: 268px;
  --topbar-h: 62px;
  --gut: clamp(18px, 4vw, 40px);
  --wrap: 1180px;

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 10px;
  --shadow-float: 0 20px 44px -26px rgba(0, 0, 0, .9), 0 0 0 1px rgba(42, 52, 65, .9);
  --ease: cubic-bezier(.22, .7, .24, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  padding-top: var(--topbar-h);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.85;
  letter-spacing: .01em;
  color: var(--sand);
  background: transparent;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -.02em;
  color: var(--sand);
}

h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.375rem); }

p { text-wrap: pretty; }

strong, b { font-weight: 700; color: var(--sand); }

small { font-size: .8125rem; color: var(--cool); }

a { text-decoration-color: rgba(232, 163, 61, .5); text-underline-offset: 3px; }

::selection { background: var(--gold); color: #12160F; }

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

#main-content { display: block; scroll-margin-top: calc(var(--topbar-h) + 20px); }

/* ---------- 4. 工具类 ---------- */
.wrap {
  width: min(var(--wrap), calc(100% - var(--gut) * 2));
  margin-inline: auto;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: .02em;
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .875rem;
  letter-spacing: .04em;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .16s var(--ease);
}

.btn--gold { background: var(--gold); border-color: var(--gold); color: #12160F; }
.btn--gold:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: #0B0E13; }

.btn--ghost { background: transparent; border-color: var(--struct); color: var(--sand); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

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

.btn:active { transform: translateY(1px); }

/* ---------- 6. 页头 / 侧边轨道 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--gold);
  color: #12160F;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8125rem;
  letter-spacing: .06em;
  text-decoration: none;
  border-radius: var(--r-sm);
  transform: translateY(-160%);
  transition: transform .18s var(--ease);
}

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

.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 120;
  background: rgba(42, 52, 65, .55);
  pointer-events: none;
}

.read-progress__fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  transition: width .12s linear;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 100%;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  padding: 0 var(--gut);
  background: rgba(11, 14, 19, .97);
  border-bottom: 1px solid var(--struct);
}

.rail__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand__mark {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  clip-path: polygon(0 0, 100% 0, 100% 58%, 58% 100%, 0 100%);
}

.brand__mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% 58%, 58% 100%, 0 100%);
}

.brand__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.0625rem;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--sand);
  white-space: nowrap;
}

.brand__line {
  font-size: .6875rem;
  line-height: 1.2;
  letter-spacing: .14em;
  color: var(--cool);
  white-space: nowrap;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  background: rgba(20, 26, 34, .75);
  border: 1px solid var(--struct);
  border-radius: var(--r-sm);
  color: var(--sand);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .14em;
  cursor: pointer;
  transition: border-color .16s ease, color .16s ease;
}

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

.nav-toggle__bars { display: inline-flex; flex-direction: column; gap: 3px; width: 15px; }

.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform .2s var(--ease), opacity .2s ease;
}

.nav-toggle__bars span:nth-child(2) { width: 70%; }

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

/* ---------- 7. 导航与抽屉 ---------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 70;
  width: min(84vw, 336px);
  padding: calc(var(--topbar-h) + 22px) 18px 132px;
  overflow-y: auto;
  background: linear-gradient(165deg, #131A24 0%, #0B0E13 68%);
  border-right: 1px solid var(--struct);
  transform: translateX(-104%);
  transition: transform .28s var(--ease);
  scrollbar-width: thin;
  scrollbar-color: var(--struct) transparent;
}

.site-header[data-open] .site-nav { transform: none; }

.site-nav__caption {
  padding: 0 12px 10px;
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .22em;
  color: var(--cool);
  opacity: .75;
}

.site-nav__list { display: flex; flex-direction: column; gap: 2px; }

.site-nav__item { display: block; }

.site-nav__link {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  padding: 11px 12px 11px 10px;
  border-left: 2px solid transparent;
  border-radius: var(--r-sm);
  color: var(--cool);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9375rem;
  line-height: 1.5;
  text-decoration: none;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease;
}

.site-nav__index {
  color: rgba(154, 164, 178, .55);
  font-size: .6875rem;
  transition: color .16s ease;
}

.site-nav__label { display: block; }

.site-nav__link:hover {
  color: var(--sand);
  background: rgba(232, 163, 61, .07);
}

.site-nav__link[aria-current="page"],
.site-nav__link[data-section-current] {
  color: var(--gold);
  border-left-color: var(--gold);
  background: linear-gradient(90deg, rgba(232, 163, 61, .16), transparent 82%);
}

.site-nav__link[aria-current="page"] .site-nav__index,
.site-nav__link[data-section-current] .site-nav__index { color: var(--gold); }

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(4, 6, 10, .68);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}

.site-header[data-open] .nav-scrim { opacity: 1; pointer-events: auto; }

/* 轨道底部：移动端成为抽屉底栏 */
.rail__foot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 72;
  width: min(84vw, 336px);
  padding: 16px 18px 22px;
  border-top: 1px solid var(--struct);
  border-right: 1px solid var(--struct);
  background: linear-gradient(180deg, rgba(11, 14, 19, .72), #0B0E13 42%);
  transform: translateX(-104%);
  transition: transform .28s var(--ease);
}

.site-header[data-open] .rail__foot { transform: none; }

.status-list { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }

.status-list__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  line-height: 1.5;
  letter-spacing: .02em;
  color: var(--cool);
}

.status-dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(63, 216, 164, .16);
}

.status-dot--ok { background: var(--mint); box-shadow: 0 0 0 3px rgba(63, 216, 164, .16); }
.status-dot--blue { background: var(--blue); box-shadow: 0 0 0 3px rgba(74, 159, 216, .16); }
.status-dot--violet { background: var(--violet); box-shadow: 0 0 0 3px rgba(124, 92, 255, .18); }

.rail__cta { margin-top: 2px; }

/* ---------- 8. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 104px);
  padding: clamp(40px, 5vw, 64px) 0 26px;
  border-top: 1px solid var(--struct);
  background: linear-gradient(180deg, #101620 0%, #0B0E13 62%);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 22%, var(--gold-deep) 48%, transparent 88%);
  opacity: .85;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 44px);
  padding-bottom: 34px;
}

.footer__brand { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }

.footer__tagline {
  max-width: 32em;
  font-size: .8125rem;
  line-height: 1.75;
  color: var(--cool);
}

.footer__stats { display: flex; flex-wrap: wrap; gap: 10px 22px; }

.footer__stat {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--struct);
  border-radius: var(--r-sm);
  background: rgba(20, 26, 34, .6);
}

.footer__stat-num { font-size: 1.25rem; line-height: 1; color: var(--gold); }

.footer__stat-key { font-size: .6875rem; letter-spacing: .08em; color: var(--cool); }

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

.footer__col { display: flex; flex-direction: column; gap: 8px; }

.footer__col-title {
  font-family: var(--font-display);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--gold);
  line-height: 1.5;
}

.footer__desc { font-size: .75rem; line-height: 1.7; color: var(--cool); }

.footer__list { display: flex; flex-direction: column; gap: 6px; }

.footer__item { display: block; }

.footer__link {
  display: inline-block;
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  color: var(--cool);
  font-size: .875rem;
  line-height: 1.6;
  text-decoration: none;
  transition: color .16s ease, border-color .16s ease;
}

.footer__link:hover { color: var(--sand); border-bottom-color: var(--gold); }

.footer__arrow {
  display: inline-block;
  margin-left: 6px;
  color: var(--gold);
  opacity: .75;
  transition: transform .16s var(--ease);
}

.footer__link:hover .footer__arrow { transform: translateX(3px); }

.footer__base {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 24px;
  border-top: 1px solid var(--struct);
}

.footer__contact { display: flex; flex-direction: column; gap: 10px; }

.footer__contact-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  font-size: .8125rem;
}

.footer__contact-key {
  min-width: 4.6em;
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .14em;
  color: var(--cool);
}

.footer__contact-val { color: var(--sand); font-size: .8125rem; word-break: break-all; }

.footer__contact-val--text {
  font-family: var(--font-body);
  letter-spacing: .02em;
  word-break: normal;
}

.footer__note {
  max-width: 46em;
  font-size: .75rem;
  line-height: 1.75;
  color: var(--cool);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  background: transparent;
  border: 1px solid var(--struct);
  border-radius: var(--r-sm);
  color: var(--cool);
  font-size: .6875rem;
  letter-spacing: .08em;
  line-height: 1.5;
  cursor: pointer;
  transition: border-color .16s ease, color .16s ease;
}

.copy-btn:hover { border-color: var(--blue); color: var(--blue); }

.copy-btn[data-copied] { border-color: var(--mint); color: var(--mint); }

.copy-btn__text { display: inline-block; }

.footer__colophon { display: flex; flex-direction: column; gap: 12px; }

.footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }

.footer__legal-item { display: flex; align-items: center; gap: 14px; }

.footer__legal-item + .footer__legal-item::before {
  content: "";
  width: 1px;
  height: 12px;
  background: var(--struct);
}

.footer__legal-link {
  color: var(--cool);
  font-size: .75rem;
  letter-spacing: .04em;
  text-decoration: none;
  border-bottom: 1px solid var(--struct);
  padding-bottom: 1px;
  transition: color .16s ease, border-color .16s ease;
}

.footer__legal-link:hover { color: var(--gold); border-color: var(--gold); }

.footer__icp {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .06em;
  color: var(--cool);
}

.footer__copyline {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .06em;
  color: var(--cool);
}

/* ---------- 9. 页面基础组件 ---------- */
.section { padding: clamp(48px, 7vw, 88px) 0; }

.section__head { max-width: 44em; margin-bottom: clamp(20px, 3vw, 34px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .2em;
  color: var(--gold);
}

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

.section__title { font-size: clamp(1.5rem, 3vw, 2rem); }

.section__lead { margin-top: 12px; font-size: 1rem; color: var(--cool); }

.prose { max-width: 34em; }

.prose p { margin-bottom: 1.1em; color: var(--cool); }

.prose p:last-child { margin-bottom: 0; }

.prose h2,
.prose h3 { margin: 1.6em 0 .6em; }

.prose ul,
.prose ol { margin: 0 0 1.1em; padding-left: 1.1em; }

.prose ul li { list-style: none; position: relative; margin-bottom: .5em; color: var(--cool); }

.prose ul li::before {
  content: "";
  position: absolute;
  left: -1.1em;
  top: .78em;
  width: 6px;
  height: 6px;
  background: var(--gold);
  clip-path: polygon(0 0, 100% 0, 100% 60%, 60% 100%, 0 100%);
}

.prose a { color: var(--blue); }

.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--struct);
  border-radius: var(--r-lg);
  background: var(--panel);
}

.card--float {
  box-shadow: var(--shadow-float);
  transition: transform .2s var(--ease), border-color .2s ease;
}

.card--float:hover { transform: translateY(-3px); border-color: rgba(232, 163, 61, .55); }

.card--slant { overflow: hidden; }

.card--slant::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, transparent 50%, rgba(232, 163, 61, .18) 50%);
  pointer-events: none;
}

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.bento__cell { grid-column: span 6; }

.stat { display: flex; flex-direction: column; gap: 6px; }

.stat__value {
  font-family: var(--font-mono);
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--sand);
  font-variant-numeric: tabular-nums;
}

.stat__value--gold { color: var(--gold); }
.stat__value--blue { color: var(--blue); }
.stat__value--violet { color: var(--violet); }

.stat__label {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .14em;
  color: var(--cool);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .1em;
  line-height: 1.6;
}

.badge--gold { color: var(--gold); background: rgba(232, 163, 61, .12); border-color: rgba(232, 163, 61, .4); }
.badge--blue { color: var(--blue); background: rgba(74, 159, 216, .12); border-color: rgba(74, 159, 216, .4); }
.badge--violet { color: var(--violet); background: rgba(124, 92, 255, .12); border-color: rgba(124, 92, 255, .42); }
.badge--mint { color: var(--mint); background: rgba(63, 216, 164, .12); border-color: rgba(63, 216, 164, .4); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid var(--struct);
  border-radius: 999px;
  background: rgba(20, 26, 34, .55);
  color: var(--cool);
  font-size: .8125rem;
  line-height: 1.5;
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background-color .16s ease;
}

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

.chip[aria-pressed="true"],
.chip[data-active] {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(232, 163, 61, .12);
}

.media {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--struct);
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, #182130 0%, #0E131B 100%);
}

.media__frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background:
    repeating-linear-gradient(115deg, rgba(42, 52, 65, .5) 0, rgba(42, 52, 65, .5) 1px, transparent 1px, transparent 44px),
    linear-gradient(150deg, #182130, #0E131B);
}

.media__img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.86) contrast(1.08); }

.media__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(58% 46% at 74% 4%, rgba(232, 163, 61, .26), transparent 72%);
}

.media__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .08em;
  color: var(--cool);
  background: linear-gradient(180deg, transparent, rgba(11, 14, 19, .92));
}

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

.breadcrumbs { padding: clamp(18px, 3vw, 30px) 0 0; }

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .04em;
  color: var(--cool);
}

.breadcrumbs__item { display: flex; align-items: center; gap: 8px; }

.breadcrumbs__item + .breadcrumbs__item::before { content: "/"; color: var(--struct); }

.breadcrumbs__link { color: var(--cool); text-decoration: none; transition: color .16s ease; }

.breadcrumbs__link:hover { color: var(--gold); }

.breadcrumbs__current { color: var(--sand); }

.divider-slant {
  position: relative;
  height: clamp(30px, 5vw, 62px);
}

.divider-slant::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  transform: rotate(-1.2deg);
  background: linear-gradient(90deg, transparent, var(--struct) 18%, var(--struct) 82%, transparent);
}

/* ---------- 10. 断点 ---------- */
@media (min-width: 760px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bento__cell--wide { grid-column: span 4; }
  .bento__cell--half { grid-column: span 3; }
  .bento__cell--third { grid-column: span 2; }
  .bento__cell--tall { grid-row: span 2; }
}

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

  .skip-link { left: calc(var(--rail-w) + 14px); }

  .read-progress { left: var(--rail-w); }

  .site-header {
    width: var(--rail-w);
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    border-bottom: 0;
    border-right: 1px solid var(--struct);
    background: linear-gradient(178deg, #111826 0%, #0B0E13 58%, #0B0E13 100%);
  }

  .site-header::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: -1px;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--gold) 16%, transparent 42%, transparent 72%, var(--blue) 94%);
    opacity: .8;
    pointer-events: none;
  }

  .rail__top { padding: 24px 22px 20px; width: auto; }

  .nav-toggle { display: none; }

  .site-nav {
    position: static;
    z-index: auto;
    flex: 1 1 auto;
    min-height: 0;
    width: auto;
    padding: 4px 14px 12px;
    overflow-y: auto;
    background: transparent;
    border-right: 0;
    transform: none;
    transition: none;
  }

  .nav-scrim { display: none; }

  .rail__foot {
    position: static;
    z-index: auto;
    width: auto;
    padding: 16px 22px 26px;
    border-top: 1px solid var(--struct);
    border-right: 0;
    background: transparent;
    transform: none;
    transition: none;
  }

  .footer__grid { grid-template-columns: 1.15fr 2fr; }

  .footer__base { flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 48px; }

  .footer__contact { max-width: 46em; }

  .footer__colophon { align-items: flex-end; text-align: right; }

  .footer__legal { justify-content: flex-end; }

  #main-content { scroll-margin-top: 28px; }
}

@media (max-width: 1023.98px) {
  body.nav-open { overflow: hidden; }
}

/* ---------- 11. 动效降级与打印 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

@media print {
  .site-header,
  .read-progress,
  .nav-scrim { display: none !important; }

  body { padding: 0; color: #000; background: #fff; }

  .site-footer { border-top: 1px solid #999; background: #fff; }
}
