/* ==========================================================================
   8868体育 · 共享站点样式  /assets/site.css
   概念：夜间赛场指挥台 —— 深墨绿画布 / 左立柱框架导航 / 荧光赛程强调
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-block-start: 96px;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: #07120F;
  background-image:
    radial-gradient(70% 45% at 84% -8%, rgba(111, 247, 214, 0.075), transparent 62%),
    radial-gradient(58% 40% at 2% 6%, rgba(200, 255, 61, 0.055), transparent 60%);
  background-repeat: no-repeat;
  color: #F2EBDD;
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul, ol { margin: 0; padding: 0; }

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

img, video { height: auto; }

button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

a { color: inherit; }

hr { border: 0; }

/* ---------- 2. Tokens ---------- */
:root {
  color-scheme: dark;

  --ink-deep: #07120F;
  --ink-carbon: #121A18;
  --ink-pitch: #0E2A23;
  --paper: #F2EBDD;
  --paper-dim: #CFC6B4;
  --lime: #C8FF3D;
  --orange: #FF6A2A;
  --cyan: #6FF7D6;
  --line: #7E8C86;
  --orange-deep: #6B2C16;

  --line-soft: rgba(126, 140, 134, 0.32);
  --line-faint: rgba(126, 140, 134, 0.16);

  --rail-w: 240px;

  --font-display: "Arial Narrow", "Helvetica Neue", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "IBM Plex Mono", "Roboto Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --radius-s: 12px;
  --radius-m: 20px;
  --radius-l: 28px;
  --radius-pill: 999px;

  --shadow-lift: 0 18px 40px -26px rgba(0, 0, 0, 0.9);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --scroll-progress: 0;
}

/* ---------- 3. Focus & 无障碍基线 ---------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

#main-content {
  display: block;
  scroll-margin-block-start: 96px;
}

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

.skip-link {
  position: fixed;
  top: -90px;
  inset-inline-start: 16px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--lime);
  color: var(--ink-deep);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-lift);
  transition: top 0.2s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 16px;
  outline-offset: 3px;
}

/* ---------- 4. 排版基础 ---------- */
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.display-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.6rem, 7vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--paper);
  text-wrap: balance;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.9rem, 3.6vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--paper);
  text-wrap: balance;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lime);
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.lede {
  margin: 0;
  max-width: 44ch;
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  line-height: 1.75;
  color: var(--paper-dim);
}

.prose {
  max-width: 40em;
  color: var(--paper-dim);
}

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

.prose p { line-height: 1.85; }

.prose h3 {
  margin-top: 1.6em;
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--paper);
}

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

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

/* ---------- 5. 容器与分区 ---------- */
.container {
  width: min(1180px, calc(100% - clamp(32px, 7vw, 96px)));
  margin-inline: auto;
}

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

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

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(24px, 3.6vw, 48px);
  padding-bottom: clamp(14px, 2vw, 22px);
  border-bottom: 1px solid var(--line-faint);
}

.divider {
  height: 1px;
  border: 0;
  margin-block: clamp(24px, 4vw, 44px);
  background: var(--line-faint);
}

/* ---------- 6. 网格 ---------- */
.grid {
  display: grid;
  gap: clamp(20px, 3vw, 40px);
}

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

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

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

@media (min-width: 860px) {
  .grid--split { grid-template-columns: 1.15fr 0.85fr; align-items: start; }
  .grid--5-7 { grid-template-columns: 5fr 7fr; align-items: start; }
}

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

/* ---------- 7. 通用组件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.btn--accent {
  background: var(--lime);
  color: #06110D;
}

.btn--accent:hover {
  background: #DCFF7C;
  transform: translateY(-1px);
}

.btn--accent:active {
  background: var(--orange);
  color: #180A02;
  transform: none;
}

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

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

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border: 1px solid rgba(111, 247, 214, 0.35);
  border-radius: var(--radius-pill);
  background: rgba(111, 247, 214, 0.12);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.6;
  white-space: nowrap;
}

.pill--lime {
  border-color: rgba(200, 255, 61, 0.4);
  background: rgba(200, 255, 61, 0.14);
  color: var(--lime);
}

.pill--orange {
  border-color: rgba(255, 106, 42, 0.42);
  background: rgba(255, 106, 42, 0.14);
  color: var(--orange);
}

.card {
  position: relative;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-l);
  background: var(--ink-pitch);
  box-shadow: var(--shadow-lift);
}

/* 图片容器基础规则（页面阶段直接放 <img>） */
.media {
  position: relative;
  display: block;
  isolation: isolate;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-l);
  background-color: var(--ink-pitch);
  background-image:
    linear-gradient(140deg, rgba(14, 42, 35, 0.95), rgba(7, 18, 15, 0.98)),
    repeating-linear-gradient(135deg, rgba(126, 140, 134, 0.09) 0 1px, transparent 1px 12px);
}

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

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

.media__caption {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--paper);
  background: linear-gradient(180deg, rgba(7, 18, 15, 0) 0%, rgba(7, 18, 15, 0.86) 100%);
}

/* 面包屑 */
.breadcrumb {
  padding-block: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--paper-dim);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

.breadcrumb__link {
  color: var(--paper-dim);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

.breadcrumb__link:hover { color: var(--lime); }

.breadcrumb__current { color: var(--paper); }

/* ---------- 8. 品牌锁定组合 ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--paper);
}

.brand__mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(150deg, #D8FF6B 0%, #A6E51F 100%);
  color: #06110D;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.06em;
  box-shadow: 0 10px 24px -12px rgba(200, 255, 61, 0.75);
  transition: transform 0.2s var(--ease), border-radius 0.2s var(--ease);
}

.brand:hover .brand__mark {
  transform: rotate(-4deg);
  border-radius: 16px;
}

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

.brand__name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  transition: color 0.18s var(--ease);
}

.brand:hover .brand__name { color: var(--lime); }

.brand__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.14em;
  color: var(--paper-dim);
}

/* ---------- 9. 页面头部（框架式左立柱 / 移动胶囊条） ---------- */
.scroll-progress {
  position: fixed;
  inset-block-start: 0;
  inset-inline-start: 0;
  inset-inline-end: 0;
  z-index: 120;
  height: 3px;
  pointer-events: none;
}

.scroll-progress__bar {
  width: 100%;
  height: 100%;
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--lime) 55%, var(--orange) 100%);
}

.site-header {
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: var(--rail-w);
  padding: 26px 18px 22px;
  border-inline-end: 1px solid var(--line-soft);
  background-color: var(--ink-deep);
  background-image:
    radial-gradient(120% 55% at 0% 0%, rgba(200, 255, 61, 0.10), transparent 62%),
    linear-gradient(to right, rgba(126, 140, 134, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(126, 140, 134, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, #0B1A16 0%, #07120F 52%, #040B09 100%);
  background-size: auto, 26px 26px, 26px 26px, auto;
  background-repeat: no-repeat, repeat, repeat, no-repeat;
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* 主导航 */
.site-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.site-nav__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__item { display: block; }

.site-nav__link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 12px 10px 14px;
  border-radius: var(--radius-s);
  color: var(--paper-dim);
  font-size: 15px;
  line-height: 1.45;
  text-decoration: none;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
              transform 0.18s var(--ease);
}

.site-nav__link::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  width: 3px;
  height: 0;
  border-radius: 3px;
  background: var(--lime);
  translate: 0 -50%;
  transition: height 0.18s var(--ease);
}

.site-nav__link:hover {
  background: rgba(200, 255, 61, 0.08);
  color: var(--paper);
  transform: translateX(2px);
}

.site-nav__link:hover::before { height: 58%; }

.site-nav__link:focus-visible {
  color: var(--paper);
  background: rgba(111, 247, 214, 0.10);
}

.site-nav__link:focus-visible::before { height: 58%; background: var(--cyan); }

.site-nav__link[aria-current="page"] {
  background: var(--lime);
  color: #06110D;
  font-weight: 600;
}

.site-nav__link[aria-current="page"]::before { height: 0; }

.site-nav__index {
  flex: none;
  min-width: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--line);
  transition: color 0.18s var(--ease);
}

.site-nav__link:hover .site-nav__index { color: var(--lime); }

.site-nav__link[aria-current="page"] .site-nav__index { color: rgba(6, 17, 13, 0.55); }

/* 立柱底部 */
.site-header__aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.site-header__utility {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.9;
  letter-spacing: 0.08em;
  color: var(--paper-dim);
}

.site-header__cta { width: 100%; }

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 15px 9px 13px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  background: rgba(14, 42, 35, 0.75);
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease);
}

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle__bars > span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--lime);
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease),
              width 0.22s var(--ease);
}

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

.nav-toggle:focus-visible { outline-offset: 3px; }

/* 回到顶部 */
.to-top {
  position: fixed;
  inset-block-end: 22px;
  inset-inline-end: 22px;
  z-index: 88;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  background: rgba(18, 26, 24, 0.92);
  color: var(--lime);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease),
              visibility 0.22s var(--ease), border-color 0.18s var(--ease);
}

.to-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  border-color: var(--lime);
  color: var(--orange);
}

/* ---------- 10. 页面页脚 ---------- */
.site-footer {
  position: relative;
  border-block-start: 1px solid var(--line-soft);
  background-color: var(--ink-carbon);
  background-image:
    radial-gradient(80% 70% at 100% 0%, rgba(255, 106, 42, 0.10), transparent 62%),
    radial-gradient(60% 60% at 0% 100%, rgba(111, 247, 214, 0.07), transparent 65%);
  background-repeat: no-repeat;
  color: var(--paper);
}

.site-footer__inner {
  width: min(1180px, calc(100% - clamp(32px, 7vw, 96px)));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(26px, 4vw, 42px);
  padding-block: clamp(40px, 6vw, 68px) 0;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.footer-brand__tag {
  margin: 0;
  max-width: 26ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--paper-dim);
}

.footer-col { display: block; }

.footer-col__title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lime);
}

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

.footer-list__item { display: block; }

.footer-link {
  position: relative;
  display: inline-block;
  padding-inline-start: 0;
  color: var(--paper-dim);
  font-size: 15px;
  line-height: 1.6;
  text-decoration: none;
  transition: color 0.18s var(--ease), transform 0.18s var(--ease);
}

.footer-link::before {
  content: "";
  position: absolute;
  inset-inline-start: -13px;
  top: 50%;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--lime);
  translate: 0 -50%;
  transition: width 0.18s var(--ease);
}

.footer-link:hover {
  color: var(--lime);
  transform: translateX(2px);
}

.footer-link:hover::before { width: 8px; }

.footer-contact {
  grid-column: 1 / -1;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-l);
  background: rgba(7, 18, 15, 0.55);
}

.footer-contact__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px 28px;
  margin: 0;
}

.footer-contact__item { display: block; }

.footer-contact__label {
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--line);
}

.footer-contact__value {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.footer-contact__note {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px dashed var(--line-faint);
  max-width: 62ch;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--paper-dim);
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  padding-block: clamp(18px, 2.5vw, 26px);
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  line-height: 1.7;
  color: rgba(207, 198, 180, 0.68);
}

.footer-legal { margin: 0; }

.footer-icp { margin: 0; }

.footer-note { margin: 0; }

/* ---------- 11. 平板 ---------- */
@media (min-width: 760px) {
  .site-footer__inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-brand { grid-column: 1 / -1; }

  .footer-contact__list {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .footer-note { margin-inline-start: auto; }
}

/* ---------- 12. 桌面：左立柱框架 ---------- */
@media (min-width: 1024px) {
  body { padding-inline-start: var(--rail-w); }

  .scroll-progress { inset-inline-start: var(--rail-w); }

  .brand__mark { width: 44px; height: 44px; }

  .footer-brand {
    grid-column: auto;
    grid-row: span 2;
    padding-inline-end: 16px;
  }

  .site-footer__inner {
    grid-template-columns: minmax(220px, 1.05fr) repeat(3, minmax(0, 0.72fr));
    align-items: start;
  }

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

/* ---------- 13. 移动 / 平板：头部收束为胶囊索引条 ---------- */
@media (max-width: 1023px) {
  .site-header {
    position: sticky;
    inset-block-start: 0;
    inset-block-end: auto;
    inset-inline-start: auto;
    width: 100%;
    padding: 0;
    gap: 0;
    border-inline-end: 0;
    border-block-end: 1px solid var(--line-soft);
    background-color: rgba(7, 18, 15, 0.97);
    background-image:
      radial-gradient(120% 150% at 0% 0%, rgba(200, 255, 61, 0.13), transparent 62%),
      linear-gradient(to right, rgba(126, 140, 134, 0.07) 1px, transparent 1px);
    background-size: auto, 26px 26px;
    background-repeat: no-repeat, repeat;
  }

  .site-header__bar {
    padding: 11px clamp(14px, 4vw, 26px);
  }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    padding: 4px clamp(14px, 4vw, 26px) 18px;
    border-block-start: 1px solid transparent;
  }

  .site-header[data-open] .site-nav {
    display: block;
    max-height: min(62dvh, 460px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border-block-start-color: var(--line-faint);
    padding-block-start: 14px;
  }

  .site-nav__list { gap: 4px; }

  .site-nav__link {
    padding: 13px 14px;
    font-size: 16px;
    border: 1px solid transparent;
  }

  .site-nav__link:hover { transform: none; }

  .site-nav__item + .site-nav__item { border-top: 1px solid var(--line-faint); }

  .site-header__aside { display: none; }

  /* 展开态：按钮变为荧光青柠，横线变叉 */
  .site-header[data-open] .nav-toggle {
    background: var(--lime);
    border-color: var(--lime);
    color: #06110D;
  }

  .site-header[data-open] .nav-toggle__bars > span {
    background: #06110D;
  }

  .site-header[data-open] .nav-toggle__bars > span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .site-header[data-open] .nav-toggle__bars > span:nth-child(2) {
    opacity: 0;
    width: 0;
  }

  .site-header[data-open] .nav-toggle__bars > span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}

/* ---------- 14. 小屏微调 ---------- */
@media (max-width: 520px) {
  body { font-size: 16px; }

  .brand__mark { width: 38px; height: 38px; border-radius: 12px; font-size: 13px; }

  .brand__name { font-size: 16px; }

  .brand__sub { font-size: 9.5px; letter-spacing: 0.1em; }

  .nav-toggle { padding: 8px 13px; font-size: 12px; }

  .to-top { inset-block-end: 16px; inset-inline-end: 16px; width: 42px; height: 42px; }
}

/* ---------- 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;
  }

  .site-nav__link:hover,
  .footer-link:hover,
  .btn--accent:hover,
  .brand:hover .brand__mark { transform: none; }
}
