/* =========================================================================
   九游赛场 · 共享站点样式 /assets/site.css
   结构：重置 → 变量 → 基础排版 → 布局工具 → 通用组件 → 头部 → 页脚 → 响应式
   ========================================================================= */

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

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

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

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

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

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

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

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

/* ---------- 2. 变量 ---------- */
:root {
  /* 珠宝色 / 球场夜灯 */
  --ink-950: #061B17;
  --ink-900: #0B2B24;
  --ink-800: #123D32;
  --cyan: #4DF0D0;
  --cyan-soft: #8CF7E4;
  --ember: #FF8A3D;
  --amber: #FFC28A;
  --slate: #8CA3AD;
  --indigo: #172A3A;
  --paper: #E8F2EE;
  --wine: #5A2230;

  --line: rgba(140, 163, 173, 0.24);
  --line-strong: rgba(140, 163, 173, 0.44);
  --line-cyan: rgba(77, 240, 208, 0.34);
  --line-ember: rgba(255, 138, 61, 0.46);

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

  --rail-w: 264px;
  --topbar-h: 62px;
  --wrap: 1180px;

  --fs-12: 0.75rem;
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-20: 1.25rem;
  --fs-28: 1.75rem;
  --fs-40: 2.5rem;
  --fs-64: 4rem;

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --dur: 180ms;
  --radius: 3px;
}

/* ---------- 3. 基础排版 ---------- */
body {
  background-color: var(--ink-950);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: var(--fs-16);
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  color: #ffffff;
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(var(--fs-28), 3.6vw, var(--fs-40)); }
h2 { font-size: clamp(var(--fs-20), 2.6vw, var(--fs-28)); }
h3 { font-size: var(--fs-20); }
h4 { font-size: var(--fs-16); letter-spacing: 0; }

p { line-height: 1.75; }

strong, b { font-weight: 700; color: #ffffff; }

.prose p,
.prose ul,
.prose ol { margin-bottom: 1.1em; }

.prose ul,
.prose ol {
  padding-left: 1.25em;
  list-style: disc;
}

.prose ol { list-style: decimal; }

.prose a,
p a:not([class]) {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(77, 240, 208, 0.5);
  transition: color var(--dur) var(--ease),
    text-decoration-color var(--dur) var(--ease);
}

.prose a:hover,
p a:not([class]):hover {
  color: var(--cyan-soft);
  text-decoration-color: var(--cyan-soft);
}

.display {
  font-size: clamp(var(--fs-28), 5.2vw, var(--fs-64));
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.06;
}

.lede {
  font-size: var(--fs-16);
  line-height: 1.85;
  color: var(--paper);
  opacity: 0.86;
  max-width: 62ch;
}

.u-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* 焦点环：全站统一荧光青 */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

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

/* ---------- 4. 布局工具 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* ---------- 5. 通用组件 ---------- */

/* 跳转链接 */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--cyan);
  color: var(--ink-950);
  font-size: var(--fs-14);
  font-weight: 700;
  border-radius: var(--radius);
  transform: translateY(-180%);
  transition: transform var(--dur) var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--paper);
  outline-offset: 2px;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: var(--fs-14);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

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

.btn--ember {
  background: var(--ember);
  color: var(--ink-950);
  border-color: var(--ember);
}

.btn--ember:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink-950);
}

.btn--ghost {
  background: transparent;
  color: var(--cyan);
  border-color: rgba(77, 240, 208, 0.5);
}

.btn--ghost:hover {
  background: rgba(77, 240, 208, 0.12);
  border-color: var(--cyan);
  color: var(--cyan-soft);
}

.btn--block {
  display: flex;
  width: 100%;
}

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--line-cyan);
  border-radius: 2px;
  background: rgba(77, 240, 208, 0.08);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.1em;
  line-height: 1.5;
}

.tag--ember {
  border-color: var(--line-ember);
  background: rgba(255, 138, 61, 0.12);
  color: var(--amber);
}

.tag--wine {
  border-color: rgba(90, 34, 48, 0.9);
  background: rgba(90, 34, 48, 0.55);
  color: var(--amber);
}

/* 面板：玻璃层与实色层并置 */
.panel {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 61, 50, 0.55);
}

.panel--solid { background: var(--ink-800); }

.panel--glass {
  background: linear-gradient(
    155deg,
    rgba(140, 163, 173, 0.13),
    rgba(140, 163, 173, 0.04)
  );
  border-color: rgba(232, 242, 238, 0.16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.panel--paper {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink-950);
}

.panel--paper h2,
.panel--paper h3,
.panel--paper h4,
.panel--paper strong { color: var(--ink-950); }

.panel--indigo {
  background: var(--indigo);
  border-color: rgba(140, 163, 173, 0.3);
}

/* 章节引导 */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 22px;
  height: 2px;
  background: var(--cyan);
}

/* 渐隐荧光分隔线 */
.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--cyan), rgba(77, 240, 208, 0));
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.06em;
  color: var(--slate);
}

.breadcrumb a {
  color: var(--slate);
  transition: color var(--dur) var(--ease);
}

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

.breadcrumb__sep {
  color: rgba(140, 163, 173, 0.55);
}

.breadcrumb [aria-current="page"] {
  color: var(--paper);
}

/* 图片容器基础规则（页面阶段置入 <img> 占位） */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(77, 240, 208, 0.1), transparent 55%),
    linear-gradient(160deg, var(--ink-900), var(--ink-800));
  isolation: isolate;
}

.media-frame > img,
.media-frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.62) contrast(1.05) brightness(0.92);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 27, 23, 0) 42%,
    rgba(6, 27, 23, 0.74) 100%
  );
  pointer-events: none;
}

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

/* =========================================================================
   6. 头部：侧边轨道导航 / 移动顶栏 + 抽屉
   ========================================================================= */
.site-header {
  --topbar-h: 62px;
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink-900);
  border-bottom: 1px solid var(--line);
  color: var(--paper);
}

/* --- 品牌 + 开关条 --- */
.rail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: var(--topbar-h);
  padding: 10px 16px;
}

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

.brand__mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  background: var(--cyan);
  color: var(--ink-950);
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
  transition: background-color var(--dur) var(--ease);
}

.brand:hover .brand__mark { background: var(--cyan-soft); }

.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

.brand__name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.brand__tag {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--slate);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- 移动开关 --- */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: transparent;
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

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

.nav-toggle[aria-expanded="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink-950);
}

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

.nav-toggle__bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  transition: opacity var(--dur) var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0.32;
}

.nav-toggle__label { white-space: nowrap; }

/* --- 导航抽屉（移动端默认态） --- */
.site-nav {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 59;
  display: block;
  padding: 18px 20px 40px;
  overflow-y: auto;
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(77, 240, 208, 0.08), transparent 60%),
    var(--ink-900);
  border-top: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    visibility var(--dur) var(--ease);
}

.site-header[data-open] .site-nav {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-nav__title {
  margin-bottom: 12px;
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.4;
}

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

.site-nav__link {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 11px 12px;
  border-left: 2px solid transparent;
  border-radius: 0 2px 2px 0;
  color: var(--paper);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  transition: background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.site-nav__idx {
  flex: 0 0 auto;
  min-width: 1.6em;
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  transition: color var(--dur) var(--ease);
}

.site-nav__label { min-width: 0; }

.site-nav__link:hover {
  background: rgba(77, 240, 208, 0.08);
  border-left-color: var(--cyan);
  color: #ffffff;
}

.site-nav__link:hover .site-nav__idx { color: var(--cyan); }

.site-nav__link[aria-current="page"] {
  background: rgba(77, 240, 208, 0.13);
  border-left-color: var(--cyan);
  color: #ffffff;
  font-weight: 700;
}

.site-nav__link[aria-current="page"] .site-nav__idx {
  color: var(--cyan);
}

/* --- 轨道会员入口 --- */
.rail-cta {
  margin-top: 24px;
  padding: 15px;
  border: 1px solid var(--line-ember);
  border-radius: var(--radius);
  background: linear-gradient(
    160deg,
    rgba(255, 138, 61, 0.16),
    rgba(255, 138, 61, 0.04)
  );
}

.rail-cta__kicker {
  margin-bottom: 6px;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.4;
}

.rail-cta__text {
  margin-bottom: 13px;
  color: var(--paper);
  font-size: 12.5px;
  line-height: 1.65;
  opacity: 0.84;
}

.rail-note {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed rgba(140, 163, 173, 0.28);
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  line-height: 1.9;
}

/* --- 阅读进度：移动端为顶栏下沿横线 --- */
.rail-progress {
  position: relative;
  height: 2px;
  width: 100%;
  background: rgba(140, 163, 173, 0.18);
  overflow: hidden;
}

.rail-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(var(--read, 0));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-soft));
  transition: transform 100ms linear;
}

/* =========================================================================
   7. 页脚：说明书版权页
   ========================================================================= */
.site-footer {
  position: relative;
  padding: 52px 0 26px;
  border-top: 1px solid var(--line-cyan);
  background:
    radial-gradient(110% 80% at 8% 0%, rgba(77, 240, 208, 0.1), transparent 58%),
    radial-gradient(80% 70% at 94% 0%, rgba(255, 138, 61, 0.07), transparent 60%),
    linear-gradient(180deg, #08211c 0%, var(--ink-950) 100%);
  color: var(--paper);
  font-size: var(--fs-14);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 180px;
  height: 2px;
  background: var(--cyan);
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(
    to right,
    rgba(140, 163, 173, 0.06) 1px,
    transparent 1px
  );
  background-size: 96px 100%;
}

.footer__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px 28px;
}

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

.brand--footer .brand__name { font-size: 18px; }

.footer__line {
  max-width: 28ch;
  color: var(--paper);
  font-size: var(--fs-14);
  line-height: 1.65;
}

.footer__meta {
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.04em;
  line-height: 1.8;
}

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

.footer__title {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
}

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

.footer__list a {
  position: relative;
  display: inline-block;
  color: var(--paper);
  font-size: var(--fs-14);
  line-height: 1.6;
  transition: color var(--dur) var(--ease);
}

.footer__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--cyan);
  transition: width var(--dur) var(--ease);
}

.footer__list a:hover { color: var(--cyan); }
.footer__list a:hover::after { width: 100%; }

.footer__contact { min-width: 0; }

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

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

.contact__row dt {
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.12em;
  line-height: 1.5;
}

.contact__row dd {
  color: var(--paper);
  font-size: var(--fs-14);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.contact__note {
  margin-top: 14px;
  padding: 11px 12px 11px 14px;
  border-left: 2px solid var(--ember);
  background: rgba(255, 138, 61, 0.08);
  color: var(--amber);
  font-size: var(--fs-12);
  line-height: 1.7;
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.footer__copy,
.footer__icp {
  color: var(--slate);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__legal a {
  color: var(--slate);
  transition: color var(--dur) var(--ease);
}

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

/* =========================================================================
   8. 响应式
   ========================================================================= */

/* 小屏：隐藏品牌标语，节省顶栏空间 */
@media (max-width: 599px) {
  .rail-top .brand__tag { display: none; }
  .footer__base { justify-content: flex-start; }
}

/* 平板：页脚两列 */
@media (min-width: 600px) {
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer__brand,
  .footer__contact {
    grid-column: 1 / -1;
  }
}

/* 桌面：侧边轨道导航 */
@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }

  .wrap { padding-inline: 40px; }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--rail-w);
    display: flex;
    flex-direction: column;
    padding: 22px 16px 18px;
    border-bottom: 0;
    border-right: 1px solid var(--line);
    overflow-y: auto;
    overflow-x: hidden;
    background:
      radial-gradient(120% 60% at 100% 0%, rgba(77, 240, 208, 0.09), transparent 62%),
      linear-gradient(180deg, var(--ink-900) 0%, #08211c 58%, var(--ink-950) 100%);
  }

  .rail-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    min-height: 0;
    padding: 0 0 18px;
    border-bottom: 1px solid var(--line);
  }

  .brand__tag {
    white-space: normal;
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--slate);
  }

  .nav-toggle { display: none; }

  .site-nav {
    position: static;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    margin-top: 18px;
    padding: 0;
    overflow: visible;
    background: none;
    border-top: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .site-nav__link { padding: 9px 10px; font-size: 14px; }

  .rail-cta { margin-top: auto; padding: 14px; }

  .rail-note { margin-top: 14px; }

  /* 进度条转为轨道右缘竖线 */
  .rail-progress {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: 2px;
    height: auto;
    z-index: 2;
  }

  .rail-progress__bar {
    transform: scaleY(var(--read, 0));
    transform-origin: 50% 0;
    background: linear-gradient(
      180deg,
      var(--cyan) 0%,
      rgba(77, 240, 208, 0.16) 100%
    );
  }

  .footer__inner { padding-inline: 40px; }

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

  .footer__brand,
  .footer__contact {
    grid-column: 1 / -1;
  }

  .site-footer { padding-top: 60px; }
}

/* 宽屏：页脚五列，品牌与联络各自成栏 */
@media (min-width: 1240px) {
  .footer__grid {
    grid-template-columns: 1.15fr 0.75fr 0.75fr 0.75fr 1.4fr;
    gap: 30px 34px;
  }

  .footer__brand,
  .footer__contact {
    grid-column: auto;
  }

  .footer__line { max-width: 24ch; }
}

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

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

  .site-nav,
  .rail-progress__bar {
    transition: none !important;
  }
}
