/* =========================================================
   9体育赛事 · 共享站点样式 /assets/site.css
   夜场灯带 × 高原红土 × 编辑部报头
   ========================================================= */

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

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

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

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

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

button { background: none; border: 0; padding: 0; }

a { color: inherit; }

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

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #0B0F0E;
  --pine: #0F2A22;
  --panel: #173B31;
  --lime: #C6FF3D;
  --lime-soft: rgba(198, 255, 61, 0.18);
  --orange: #FF6A2B;
  --clay: #B45A3C;
  --paper: #F2EAD8;
  --paper-edge: #d9cdb4;
  --umber: #1A1410;
  --bone: #E6EDE8;
  --mist: #9FB3A8;

  --line: rgba(230, 237, 232, 0.14);
  --line-soft: rgba(230, 237, 232, 0.08);
  --lime-line: rgba(198, 255, 61, 0.34);

  --maxw: 1240px;
  --gutter: clamp(1rem, 4vw, 3.5rem);

  --font-display: "Arial Narrow", "Helvetica Neue Condensed", "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Roboto Mono", Menlo, Consolas, "Courier New", monospace;

  --fs-12: 0.75rem;
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-22: 1.375rem;
  --fs-28: 1.75rem;
  --fs-36: 2.25rem;
  --fs-48: 3rem;
  --fs-72: 4.5rem;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --fast: 150ms var(--ease);
}

/* ---------- 3. 中文排版基底 ---------- */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.97rem + 0.16vw, 1.125rem);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1 1 auto; display: block; }

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

h1 { font-size: clamp(2.25rem, 1.5rem + 4vw, 4.5rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 1.3rem + 2.1vw, 3rem); }
h3 { font-size: clamp(1.375rem, 1.15rem + 1vw, 1.75rem); }
h4 { font-size: var(--fs-18); letter-spacing: 0; }

p { text-wrap: pretty; }

b, strong { font-weight: 700; }

::selection { background: var(--lime); color: var(--ink); }

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

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

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

/* ---------- 5. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: -5rem;
  left: var(--gutter);
  z-index: 300;
  padding: 0.7rem 1.1rem;
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  font-size: var(--fs-14);
  text-decoration: none;
  border-radius: 2px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  transition: top var(--fast);
}
.skip-link:focus { top: 1rem; }

/* ---------- 6. 页头 ---------- */
.site-header {
  position: relative;
  z-index: 60;
  background:
    radial-gradient(120% 140% at 50% -20%, #12362b 0%, rgba(15, 42, 34, 0) 62%),
    linear-gradient(180deg, #0c2119 0%, var(--ink) 78%);
  border-bottom: 1px solid var(--line-soft);
}

.site-header::after {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--clay) 0 16%,
    var(--orange) 16% 28%,
    var(--lime) 28% 34%,
    #12241d 34% 100%
  );
}

/* 细刊线 */
.site-header__rail {
  border-bottom: 1px solid var(--line-soft);
}
.site-header__railinner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.5rem;
}
.rail-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.1em;
  color: var(--mist);
}
.rail-note__pip {
  width: 6px;
  height: 6px;
  background: var(--clay);
  box-shadow: 0 0 0 3px rgba(180, 90, 60, 0.22);
}
.utility-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.utility-link {
  font-size: var(--fs-12);
  letter-spacing: 0.12em;
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color var(--fast), border-color var(--fast);
}
.utility-link:hover,
.utility-link:focus-visible {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

/* 报头行 */
.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.6rem;
  padding-block: clamp(0.85rem, 2.4vw, 1.5rem) clamp(0.65rem, 1.8vw, 1.1rem);
}
.masthead__brand {
  justify-self: center;
  text-align: center;
  line-height: 0.95;
}
.masthead__link {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.7rem, 1.1rem + 3.1vw, 3.1rem);
  letter-spacing: -0.055em;
  color: var(--bone);
  text-decoration: none;
  transition: color var(--fast), text-shadow var(--fast);
}
.masthead__link:hover,
.masthead__link:focus-visible {
  color: var(--lime);
  text-shadow: 0 0 26px rgba(198, 255, 61, 0.35);
}
.masthead__actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* 移动导航按钮 */
.nav-toggle {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--bone);
  font-size: var(--fs-12);
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: border-color var(--fast), color var(--fast), background-color var(--fast);
}
.nav-toggle:hover { border-color: var(--lime-line); color: var(--lime); }
.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 18px;
}
.nav-toggle__bars i {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform var(--fast), opacity var(--fast);
}
.site-header[data-open="true"] .nav-toggle {
  border-color: var(--lime);
  color: var(--lime);
  background: rgba(198, 255, 61, 0.08);
}
.site-header[data-open="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.site-header[data-open="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-toggle__label { white-space: nowrap; }

/* 导航（移动优先：折叠面板） */
.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 70;
  background: linear-gradient(180deg, #0e2a21 0%, #0a1915 100%);
  border-top: 1px solid var(--lime-line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 28px 48px rgba(0, 0, 0, 0.58);
  max-height: calc(100vh - 5rem);
  overflow-y: auto;
}
.site-header[data-open="true"] .site-nav { display: block; }

.nav-list {
  display: flex;
  flex-direction: column;
  padding: 0.4rem var(--gutter) 1.2rem;
}
.nav-item { min-width: 0; }
.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0.2rem;
  color: var(--bone);
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--line-soft);
  transition: color var(--fast), background-color var(--fast);
}
.nav-link:hover,
.nav-link:focus-visible { color: var(--lime); }
.nav-link[aria-current="page"] { color: var(--lime); }
.nav-link[aria-current="page"]::after {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--lime);
  flex: none;
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(3rem, 7vw, 6rem);
  background: linear-gradient(180deg, #0d241d 0%, var(--ink) 46%, #090c0b 100%);
  border-top: 1px solid var(--line-soft);
  color: var(--bone);
  overflow: hidden;
}
.footer__band {
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--clay) 0 30%,
    var(--orange) 30% 42%,
    var(--lime) 42% 49%,
    rgba(230, 237, 232, 0.12) 49% 100%
  );
}
.footer__inner {
  position: relative;
  padding-block: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 3.4vw, 2.5rem);
}
.footer__top { position: relative; z-index: 1; }
.footer__brandline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.05rem, 0.94rem + 0.5vw, 1.35rem);
  letter-spacing: -0.01em;
  color: var(--bone);
  padding-bottom: 1.1rem;
  margin-bottom: clamp(1.4rem, 3vw, 2.2rem);
  border-bottom: 1px solid var(--line);
}
.footer__brandline::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 6px;
  margin-right: 0.65rem;
  vertical-align: 0.18em;
  background: var(--lime);
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.9rem 1.5rem;
}
.footer__col { min-width: 0; }
.footer__title {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.2em;
  color: var(--clay);
  margin-bottom: 0.85rem;
}
.footer__list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.footer__link {
  color: var(--bone);
  font-size: var(--fs-14);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color var(--fast), border-color var(--fast);
  word-break: break-word;
}
.footer__link:hover,
.footer__link:focus-visible {
  color: var(--lime);
  border-bottom-color: var(--lime);
}
.footer__contact { grid-column: 1 / -1; }
.footer__contact-row {
  display: grid;
  grid-template-columns: 3.2em minmax(0, 1fr);
  gap: 0.6rem;
  font-size: var(--fs-14);
  line-height: 1.65;
  padding-block: 0.28rem;
  border-bottom: 1px dashed var(--line-soft);
}
.footer__key {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.1em;
  color: var(--mist);
  padding-top: 0.12rem;
}
.footer__strong {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--lime);
  letter-spacing: 0.01em;
  word-break: break-all;
}
.footer__note {
  margin-top: 0.85rem;
  font-size: var(--fs-12);
  line-height: 1.7;
  color: var(--mist);
  max-width: 34ch;
}
.footer__mark {
  position: absolute;
  right: clamp(0.5rem, 4vw, 3rem);
  bottom: -0.42em;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(9rem, 22vw, 17rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(230, 237, 232, 0.1);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.footer__legal {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
}
.footer__legalrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  padding-block: 1rem;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-12);
  letter-spacing: 0.06em;
  color: var(--mist);
}
.footer__sep {
  width: 1px;
  height: 0.85em;
  background: var(--clay);
  flex: none;
}
.footer__legalitem { white-space: normal; }

/* ---------- 8. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--fast), color var(--fast), border-color var(--fast), box-shadow var(--fast), transform var(--fast);
}
.btn:active { transform: translateY(1px); }

.btn--lime {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}
.btn--lime:hover,
.btn--lime:focus-visible {
  background: #d7ff72;
  box-shadow: 0 0 0 3px var(--lime-soft);
}

.btn--ghost {
  background: transparent;
  color: var(--bone);
  border-color: rgba(230, 237, 232, 0.34);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: var(--lime);
  border-color: var(--lime);
  background: rgba(198, 255, 61, 0.07);
}

.btn--orange {
  background: var(--orange);
  color: var(--ink);
  border-color: var(--orange);
}
.btn--orange:hover,
.btn--orange:focus-visible {
  background: #ff8352;
  box-shadow: 0 0 0 3px rgba(255, 106, 43, 0.24);
}

.btn--sm {
  padding: 0.5rem 0.8rem;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}

/* ---------- 9. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.08em;
  color: var(--mist);
  padding-block: 1.1rem 0;
}
.breadcrumb a {
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--fast), border-color var(--fast);
}
.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--lime);
  border-bottom-color: var(--lime);
}
.breadcrumb__sep { color: var(--clay); }

/* ---------- 10. 正文 ---------- */
.prose {
  max-width: 72ch;
  font-size: clamp(1rem, 0.97rem + 0.12vw, 1.0625rem);
  line-height: 1.78;
  color: var(--bone);
}
.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 1.9em; }
.prose h3 { margin-top: 1.6em; }
.prose h4 { margin-top: 1.4em; }
.prose ul,
.prose ol { padding-left: 1.35em; }
.prose ul { list-style: square; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4em; }
.prose a {
  color: var(--lime);
  text-decoration: none;
  border-bottom: 1px solid var(--lime-line);
}
.prose a:hover { border-bottom-color: var(--lime); }
.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  background: rgba(230, 237, 232, 0.09);
  border-radius: 2px;
}
.prose blockquote {
  border-left: 3px solid var(--clay);
  padding-left: 1rem;
  color: var(--mist);
}

/* ---------- 11. 栅格 ---------- */
.grid {
  display: grid;
  gap: var(--gap, 1.25rem);
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 268px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 216px), 1fr)); }
.grid--sidebar { grid-template-columns: minmax(0, 1fr); }

/* ---------- 12. 基础组件 ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.25rem 1.2rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color var(--fast), transform var(--fast), box-shadow var(--fast);
}
.card:hover,
.card:focus-within {
  border-color: var(--lime-line);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
}
.card > h3,
.card > h4 { color: var(--bone); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.22rem 0.5rem;
  border: 1px solid currentColor;
  border-radius: 1px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-12);
  letter-spacing: 0.1em;
  line-height: 1.4;
  color: var(--lime);
  background: rgba(198, 255, 61, 0.07);
}
.tag--orange {
  color: var(--orange);
  background: rgba(255, 106, 43, 0.09);
}
.tag--clay {
  color: var(--clay);
  background: rgba(180, 90, 60, 0.12);
}

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.24em;
  color: var(--mist);
  text-transform: uppercase;
}

.section-index {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(2.25rem, 1.4rem + 4vw, 4.5rem);
  line-height: 0.86;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--clay);
}

.paper {
  position: relative;
  background: var(--paper);
  color: var(--umber);
  border: 1px solid var(--paper-edge);
  border-radius: 2px;
  padding: clamp(1.15rem, 3vw, 2.25rem);
  box-shadow:
    0 10px 0 -4px var(--paper-edge),
    0 26px 44px rgba(0, 0, 0, 0.42);
}
.paper .prose { color: var(--umber); }
.paper .prose a { color: #7a3c24; border-bottom-color: rgba(122, 60, 36, 0.4); }
.paper .prose code { background: rgba(26, 20, 16, 0.08); }
.paper .prose blockquote { color: #4a3d33; }
.paper .eyebrow { color: #8a6a4d; }
.paper h2,
.paper h3,
.paper h4 { color: var(--umber); }

/* 图片容器 */
.media {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, var(--pine) 0%, #123028 55%, #0c1f1a 100%);
  border: 1px solid var(--line);
  border-radius: 2px;
  aspect-ratio: 16 / 10;
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(200deg, rgba(198, 255, 61, 0.1) 0%, rgba(198, 255, 61, 0) 42%),
    radial-gradient(120% 90% at 50% 120%, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 62%);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}
.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }
.media__caption {
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.08em;
  color: var(--mist);
}

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

/* ---------- 13. JS 注入元素 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 200;
  background: linear-gradient(90deg, var(--lime) 0%, var(--orange) 62%, var(--clay) 100%);
  pointer-events: none;
}

.to-top {
  position: fixed;
  right: clamp(0.75rem, 2.4vw, 1.6rem);
  bottom: clamp(0.75rem, 2.4vw, 1.6rem);
  z-index: 190;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  border: 1px solid var(--lime-line);
  border-radius: 2px;
  background: rgba(11, 15, 14, 0.9);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 1.05rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--fast), transform var(--fast), visibility var(--fast), border-color var(--fast), background-color var(--fast);
  backdrop-filter: blur(4px);
}
.to-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.to-top:hover,
.to-top:focus-visible {
  border-color: var(--lime);
  background: rgba(198, 255, 61, 0.12);
}
.to-top__arrow { line-height: 1; }

/* 滚动显现 */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 340ms var(--ease), transform 340ms var(--ease);
}
.has-js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- 14. 断点 ---------- */
@media (max-width: 700px) {
  .rail-note { display: none; }
  .site-header__railinner { justify-content: flex-end; }
  .utility-nav { gap: 0.9rem; }
}

@media (max-width: 420px) {
  .masthead { gap: 0.4rem; }
  .masthead__link { font-size: 1.55rem; }
  .btn--sm { padding: 0.45rem 0.6rem; font-size: 0.74rem; }
  .nav-toggle__label { display: none; }
}

@media (min-width: 620px) {
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__contact { grid-column: 1 / -1; }
  .footer__note { max-width: 46ch; }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }

  .site-nav {
    display: block;
    position: static;
    background: transparent;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: none;
    max-height: none;
    overflow: visible;
  }
  .nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
    gap: 0.1rem;
    padding: 0 0 0.15rem;
  }
  .nav-link {
    justify-content: center;
    padding: 0.85rem 1.05rem 0.72rem;
    font-size: 0.98rem;
    border-bottom: 3px solid transparent;
    transition: color var(--fast), border-color var(--fast);
  }
  .nav-link:hover,
  .nav-link:focus-visible { border-bottom-color: rgba(198, 255, 61, 0.42); }
  .nav-link[aria-current="page"] { border-bottom-color: var(--lime); }
  .nav-link[aria-current="page"]::after { content: none; }

  .grid--sidebar { grid-template-columns: minmax(180px, 220px) minmax(0, 1fr); }

  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(260px, 1.3fr); }
  .footer__contact { grid-column: auto; }
}

@media (min-width: 1080px) {
  .masthead { padding-block: 1.5rem 1.15rem; }
  .nav-link { padding-inline: 1.25rem; }
}

/* ---------- 15. 减少动态 ---------- */
@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;
  }
  .has-js [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .card:hover { transform: none; }
  .to-top { transform: none; }
}
