/* ==========================================================================
   球盟会主站 · 共享 Site Kit
   夜间球场档案室 / 深墨绿 · 荧光青 · 暖橙脉冲
   路径：/assets/site.css
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background-color: #06120E;
  background-image: repeating-linear-gradient(
    118deg,
    rgba(47, 240, 200, 0.025) 0 1px,
    transparent 1px 11px
  );
  background-attachment: fixed;
}

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

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

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

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

button { background: none; border: 0; }

a { color: inherit; -webkit-tap-highlight-color: transparent; }

/* ---------- 2. 变量 ---------- */
:root {
  /* 色彩 */
  --ink: #06120E;          /* 墨绿夜幕 */
  --ink-cabin: #0B1F18;    /* 档案深舱 */
  --rail-line: #12332A;    /* 轨道描边 */
  --cyan: #2FF0C8;         /* 荧光青 */
  --cyan-deep: #0E8F79;    /* 青深可读 */
  --orange: #FF8A3D;       /* 暖橙脉冲 */
  --slate: #7C93A8;        /* 灰蓝归档 */
  --paper: #EAF3EF;        /* 纸白正文 */
  --mist: #9FB5AC;         /* 雾绿次要 */
  --alert: #F25C54;        /* 下调信号 */

  /* 结构 */
  --rail-w: 96px;
  --maxw: 1180px;
  --pad-x: clamp(18px, 3.4vw, 44px);
  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  /* 字体 */
  --font-display: "Barlow Condensed", "Oswald", "HarmonyOS Sans SC",
    "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", Consolas,
    "Liberation Mono", "Courier New", monospace;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
    "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;

  /* 节奏 */
  --ease: cubic-bezier(0.22, 0.68, 0.3, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  background: transparent;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.75;
  letter-spacing: 0.005em;
  overflow-x: hidden;
  font-kerning: normal;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--paper);
  text-wrap: balance;
}

p { max-width: 72ch; }

strong { color: var(--paper); font-weight: 700; }

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

/* ---------- 4. 焦点与可访问性 ---------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
  box-shadow: 0 0 0 4px rgba(47, 240, 200, 0.18);
}

.skip-link {
  position: absolute;
  top: -72px;
  left: 16px;
  z-index: 200;
  display: inline-block;
  padding: 11px 20px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--cyan);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 0;
  outline-offset: 0;
}

.visually-hidden {
  position: absolute !important;
  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;
}

/* ---------- 5. 容器与通用组件 ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.22s var(--ease), color 0.22s var(--ease),
    border-color 0.22s var(--ease), transform 0.22s var(--ease);
}

.btn--primary {
  background: var(--cyan);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(47, 240, 200, 0.35), 0 12px 28px -16px rgba(47, 240, 200, 0.9);
}

.btn--primary:hover {
  background: #6BF7DA;
  transform: translateY(-1px);
}

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

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

.capsule {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 13px;
  border: 1px solid rgba(47, 240, 200, 0.35);
  border-radius: var(--radius-pill);
  background: rgba(47, 240, 200, 0.06);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.6;
}

.breadcrumb {
  padding-block: 16px;
  font-size: 12.5px;
  color: var(--slate);
}

.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: "/";
  font-family: var(--font-mono);
  color: var(--slate);
  opacity: 0.45;
}

.breadcrumb__link {
  color: var(--mist);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

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

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

/* 框景：四角刻度 */
.frame {
  position: relative;
  border: 1px solid rgba(47, 240, 200, 0.22);
  border-radius: var(--radius-lg);
}

.frame::before,
.frame::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid var(--cyan);
  opacity: 0.65;
  pointer-events: none;
}

.frame::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
  border-top-left-radius: var(--radius-lg);
}

.frame::after {
  right: -1px;
  bottom: -1px;
  border-left: 0;
  border-top: 0;
  border-bottom-right-radius: var(--radius-lg);
}

/* ---------- 6. 图片容器基础规则 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: linear-gradient(150deg, var(--ink-cabin) 0%, var(--ink) 100%);
  isolation: isolate;
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.66) saturate(0.85);
  transition: filter 0.4s var(--ease), transform 0.6s var(--ease);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(6, 18, 14, 0.12) 0%, rgba(6, 18, 14, 0.66) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

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

.media__tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
}

a.media:hover img { filter: brightness(0.74) saturate(0.95); }

/* ---------- 7. 头部外壳 ---------- */
.site-header {
  position: relative;
  z-index: 20;
  background: linear-gradient(180deg, rgba(11, 31, 24, 0.98) 0%, rgba(6, 18, 14, 0.97) 100%);
  border-bottom: 1px solid var(--rail-line);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 90;
  background: rgba(18, 51, 42, 0.55);
  pointer-events: none;
}

.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan) 0%, #7CF7FF 55%, var(--orange) 100%);
  box-shadow: 0 0 12px rgba(47, 240, 200, 0.6);
}

/* ---------- 8. 左侧品牌轨道 ---------- */
.rail { display: none; }

.header-main {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* 上层：品牌说明带 */
.header-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 28px);
  padding-block: clamp(14px, 1.8vw, 20px);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
  color: var(--paper);
  text-decoration: none;
}

.brand__name {
  position: relative;
  padding-left: 15px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 25px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}

.brand__name::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan) 0%, var(--cyan-deep) 100%);
  box-shadow: 0 0 12px rgba(47, 240, 200, 0.55);
}

.brand__line {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--mist);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-top__note {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate);
  white-space: nowrap;
}

.header-top__cta {
  flex: none;
  padding: 9px 20px;
  font-size: 13.5px;
}

/* 下层：主导航带 */
.header-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  border-top: 1px solid rgba(18, 51, 42, 0.85);
}

.nav {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}

.nav__list {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0 0 0 14px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan-deep) transparent;
  -webkit-overflow-scrolling: touch;
}

.nav__list::-webkit-scrollbar { height: 2px; }
.nav__list::-webkit-scrollbar-thumb { background: var(--cyan-deep); border-radius: 2px; }
.nav__list::-webkit-scrollbar-track { background: transparent; }

.nav__item {
  display: flex;
  flex: none;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 19px 4px 20px;
  margin-right: clamp(14px, 2.2vw, 30px);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--mist);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.22s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease);
}

.nav__link:hover,
.nav__link:focus-visible { color: var(--paper); }

.nav__link:hover::after { transform: scaleX(1); }

.nav__link[aria-current="page"] { color: var(--cyan); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav__link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 9px;
  border-radius: 2px;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(47, 240, 200, 0.8);
}

.header-nav__meta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
  white-space: nowrap;
}

.header-nav__meta::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.16);
  animation: qmh-pulse 2.6s ease-in-out infinite;
}

@keyframes qmh-pulse {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 1; }
}

/* ---------- 9. 移动导航按钮 ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  flex: none;
  padding: 9px 16px 9px 13px;
  border: 1px solid var(--rail-line);
  border-radius: var(--radius-pill);
  background: rgba(11, 31, 24, 0.9);
  color: var(--paper);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease),
    background 0.2s var(--ease);
}

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

.nav-toggle__text {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
  flex: none;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.26s var(--ease), top 0.26s var(--ease);
}

.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after  { top: 8px; }

.site-header[data-open="true"] .nav-toggle {
  border-color: var(--cyan);
  color: var(--cyan);
}

.site-header[data-open="true"] .nav-toggle__bars::before {
  top: 4px;
  transform: rotate(45deg);
}

.site-header[data-open="true"] .nav-toggle__bars::after {
  top: 4px;
  transform: rotate(-45deg);
}

/* ---------- 10. 页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 10;
  margin-top: clamp(56px, 7vw, 104px);
  border-top: 1px solid var(--rail-line);
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(14, 143, 121, 0.14), transparent 58%),
    linear-gradient(180deg, var(--ink-cabin) 0%, var(--ink) 72%);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 10px;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(124, 147, 168, 0.45) 0 1px,
    transparent 1px 22px
  );
  opacity: 0.55;
  pointer-events: none;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 3.4vw, 52px);
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(40px, 5vw, 66px) var(--pad-x) clamp(26px, 3vw, 40px);
}

.footer-brand__name {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--paper);
}

.footer-brand__line {
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--cyan);
  opacity: 0.85;
}

.footer-brand__sign {
  margin-top: 18px;
  max-width: 24em;
  font-size: 13px;
  line-height: 1.7;
  color: var(--slate);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 18px;
}

.footer-col__title {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--slate);
}

.footer-col__list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col__list a {
  position: relative;
  display: inline-block;
  padding-left: 12px;
  font-size: 14px;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.footer-col__list a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 1px;
  background: var(--slate);
  transform: translateY(-50%) scaleX(0.6);
  transform-origin: left center;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

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

.footer-col__list a:hover::before {
  background: var(--cyan);
  transform: translateY(-50%) scaleX(1.8);
}

.footer-contact {
  display: grid;
  gap: 14px;
  align-content: start;
}

.footer-contact__row {
  display: grid;
  gap: 3px;
}

.footer-contact__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
}

.footer-contact__value {
  font-size: 14px;
  line-height: 1.6;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.footer-contact__value--mono {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.01em;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 26px;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 20px var(--pad-x) clamp(28px, 3.4vw, 42px);
  border-top: 1px dashed rgba(18, 51, 42, 0.9);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--slate);
}

.footer-base__note { max-width: 48ch; }

.footer-base__legal {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--mist);
}

/* ---------- 11. 滚动显现 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* ---------- 12. 桌面端：品牌轨道启用 ---------- */
@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }

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

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

  .rail {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 30;
    display: flex;
    width: var(--rail-w);
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0 26px;
    border-right: 1px solid var(--rail-line);
    background: linear-gradient(180deg, var(--ink-cabin) 0%, var(--ink) 100%);
  }

  .rail::after {
    content: "";
    position: absolute;
    top: 0;
    right: -1px;
    width: 1px;
    height: 100%;
    background: linear-gradient(
      180deg,
      transparent 0%,
      rgba(47, 240, 200, 0.35) 22%,
      rgba(47, 240, 200, 0.06) 70%,
      transparent 100%
    );
    pointer-events: none;
  }

  .rail__mark {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 6px 0;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.32em;
    color: var(--paper);
    opacity: 0.85;
  }

  .rail__ticks {
    flex: 1 1 auto;
    width: 100%;
    min-height: 40px;
    margin: 22px 0;
    background-image: repeating-linear-gradient(
      180deg,
      rgba(124, 147, 168, 0.5) 0 1px,
      transparent 1px 20px
    );
    background-size: 24px 100%;
    background-position: right center;
    background-repeat: repeat-y;
    border-right: 1px solid rgba(47, 240, 200, 0.2);
  }

  .rail__round {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 6px 0;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.3em;
    color: var(--cyan);
    opacity: 0.9;
  }

  .footer-inner {
    grid-template-columns: minmax(200px, 1.05fr) minmax(0, 1.55fr) minmax(220px, 1fr);
    align-items: start;
  }

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

/* ---------- 13. 平板 ---------- */
@media (min-width: 720px) and (max-width: 1023px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }

  .footer-cols {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-contact { grid-row: 1; grid-column: 2; }
}

@media (min-width: 720px) {
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- 14. 移动端导航 ---------- */
@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 5;
    display: none;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100vh - 88px);
    overflow-y: auto;
    padding: 6px var(--pad-x) 20px;
    border-top: 1px solid var(--rail-line);
    border-bottom: 1px solid var(--rail-line);
    background: linear-gradient(180deg, var(--ink-cabin) 0%, #071610 100%);
    box-shadow: 0 30px 50px -30px #000;
  }

  .site-header[data-open="true"] .nav { display: block; }

  .nav__list {
    display: block;
    padding: 0;
    overflow: visible;
  }

  .nav__item {
    display: block;
    border-bottom: 1px solid rgba(18, 51, 42, 0.7);
  }

  .nav__item:last-child { border-bottom: 0; }

  .nav__link {
    display: flex;
    justify-content: space-between;
    padding: 15px 2px;
    margin: 0;
    font-size: 16px;
    color: var(--paper);
  }

  .nav__link::after { bottom: 7px; }

  .nav__link[aria-current="page"]::before {
    left: auto;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 9px;
    height: 2px;
  }

  .header-nav__meta { display: none; }
}

@media (max-width: 880px) {
  .header-top__note { display: none; }
}

@media (max-width: 640px) {
  .brand__line { display: none; }

  .header-top__cta {
    padding: 8px 15px;
    font-size: 12.5px;
  }

  .footer-base { font-size: 12px; }

  .footer-base__legal { white-space: normal; }
}

@media (max-width: 399px) {
  .footer-cols { grid-template-columns: 1fr; }
}

/* ---------- 15. reduced-motion ---------- */
@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;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .header-nav__meta::before { animation: none; opacity: 1; }

  .btn--primary:hover,
  .btn--ghost:hover { transform: none; }

  .media img { transition: none; }
}

/* ---------- 16. 打印/低带宽兜底 ---------- */
@media print {
  .rail,
  .scroll-progress,
  .nav-toggle { display: none !important; }

  body { padding-left: 0; color: #111; background: #fff; }
}
