/* ==========================================================
   乐竞体育 · 共享站点样式  /assets/site.css
   侧边轨道导览 + 专题研究板 · 赛前数据指挥室
   ========================================================== */

/* ---------- 01 · Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 84px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  padding-left: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 560px at 88% -12%, rgba(50, 245, 208, 0.07), transparent 62%),
    radial-gradient(900px 520px at 6% 108%, rgba(255, 122, 26, 0.055), transparent 66%),
    #071A16;
  color: #F4F8F6;
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 800; line-height: 1.2; }
p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
main { display: block; }
::selection { background: rgba(50, 245, 208, 0.28); color: #F4F8F6; }

:focus-visible {
  outline: 2px solid #32F5D0;
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- 02 · Tokens ---------- */
:root {
  --ink: #071A16;
  --ink-deep: #0B0F0E;
  --glass: #102A25;
  --panel: #163B33;
  --cyan: #32F5D0;
  --cyan-soft: rgba(50, 245, 208, 0.14);
  --orange: #FF7A1A;
  --red: #E8354D;
  --grey: #B8C9C3;
  --paper: #F4F8F6;
  --sky: #6FD3FF;

  --rail-w: 104px;
  --gap: 24px;
  --pad: clamp(16px, 3vw, 40px);
  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 8px;
  --slant: 10deg;

  --font-display: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

/* ---------- 03 · Skip link ---------- */
.skip-link {
  position: absolute;
  top: -72px;
  left: 8px;
  z-index: 300;
  display: inline-block;
  padding: 10px 18px;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  background: #32F5D0;
  color: #04120F;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
  transition: top 0.16s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 0;
  outline: 2px solid #F4F8F6;
  outline-offset: 2px;
}

/* ---------- 04 · Header / 左侧轨道 ---------- */
.site-header {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 80;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px 0 16px;
  background: linear-gradient(180deg, rgba(16, 42, 37, 0.94) 0%, rgba(11, 15, 14, 0.97) 100%);
  border-right: 1px solid rgba(50, 245, 208, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    180deg,
    rgba(50, 245, 208, 0.055) 0 1px,
    transparent 1px 6px
  );
  opacity: 0.55;
}

/* 品牌 */
.brand {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  text-decoration: none;
  color: #F4F8F6;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  background: linear-gradient(140deg, #32F5D0 0%, #16A88B 100%);
  color: #04120F;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 0 0 1px rgba(50, 245, 208, 0.5), 0 10px 26px rgba(50, 245, 208, 0.18);
}
.brand__name {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.24em;
  color: #F4F8F6;
}
.brand__tag {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(184, 201, 195, 0.62);
}

/* 菜单按钮（仅移动端显示） */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid rgba(50, 245, 208, 0.35);
  border-radius: var(--r-sm);
  background: rgba(50, 245, 208, 0.08);
  color: #32F5D0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
.nav-toggle:hover { background: rgba(50, 245, 208, 0.16); border-color: rgba(50, 245, 208, 0.6); }
.nav-toggle__bars { display: flex; flex-direction: column; gap: 4px; width: 16px; }
.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease;
}
.site-header[data-open] .nav-toggle__bars span:first-child { transform: translateY(3px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars span:last-child { transform: translateY(-3px) rotate(-45deg); }
.nav-toggle__text { line-height: 1; }

/* 导航轨道 */
.rail {
  position: relative;
  z-index: 1;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 8px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(50, 245, 208, 0.4) transparent;
}
.rail::-webkit-scrollbar { width: 4px; }
.rail::-webkit-scrollbar-thumb { background: rgba(50, 245, 208, 0.4); border-radius: 4px; }

.rail-nav { width: 100%; }
.rail-nav__list { display: flex; flex-direction: column; gap: 2px; }
.rail-nav__item { margin: 0; }
.rail-nav__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 9px 6px;
  border-radius: var(--r-sm);
  text-decoration: none;
  color: #B8C9C3;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.rail-nav__idx {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(50, 245, 208, 0.7);
}
.rail-nav__label {
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 1.4;
  white-space: nowrap;
}
.rail-nav__link:hover,
.rail-nav__link:focus-visible {
  background: rgba(50, 245, 208, 0.09);
  color: #F4F8F6;
}
.rail-nav__link[aria-current="page"] {
  background: rgba(50, 245, 208, 0.14);
  color: #F4F8F6;
}
.rail-nav__link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 2px;
  border-radius: 2px;
  background: #32F5D0;
  box-shadow: 0 0 10px rgba(50, 245, 208, 0.8);
}
.rail-nav__link[aria-current="page"] .rail-nav__idx { color: #32F5D0; }

/* V3 工具入口 */
.rail-foot {
  width: 100%;
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.rail-foot__tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
  padding: 10px 4px;
  border: 1px solid rgba(255, 122, 26, 0.5);
  border-radius: var(--r-sm);
  background: rgba(255, 122, 26, 0.12);
  color: #FF7A1A;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.08em;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.rail-foot__tool:hover,
.rail-foot__tool:focus-visible {
  background: rgba(255, 122, 26, 0.24);
  border-color: #FF7A1A;
  transform: translateY(-2px);
}
.rail-foot__badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  opacity: 0.9;
}
.rail-foot__label { line-height: 1.4; }
.rail-foot__hint {
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.5;
  text-align: center;
  letter-spacing: 0.02em;
  color: rgba(184, 201, 195, 0.6);
}

/* 滚动进度 */
.scroll-meter {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  width: 2px;
  background: rgba(50, 245, 208, 0.1);
  pointer-events: none;
}
.scroll-meter__fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #32F5D0 0%, #6FD3FF 55%, #FF7A1A 100%);
  transform: scaleY(var(--p, 0));
  transform-origin: top center;
}

/* ---------- 05 · 通用容器 / 网格 / 组件 ---------- */
.shell {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: clamp(48px, 7vw, 88px); }
.section--tight { padding-block: clamp(26px, 4vw, 48px); }
.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 18px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(50, 245, 208, 0.16);
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: #F4F8F6;
}
.section__kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(50, 245, 208, 0.8);
}

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.grid--8-4 { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }

/* 层与卡片 */
.panel {
  background: #163B33;
  border: 1px solid rgba(50, 245, 208, 0.14);
  border-radius: var(--r-md);
  padding: clamp(18px, 2.4vw, 28px);
}
.glass {
  background: rgba(16, 42, 37, 0.66);
  border: 1px solid rgba(50, 245, 208, 0.2);
  border-radius: var(--r-md);
  padding: clamp(16px, 2.2vw, 24px);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.card-hover {
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.card-hover:hover,
.card-hover:focus-within {
  transform: translateY(-2px);
  border-color: rgba(50, 245, 208, 0.42);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36);
}
.slant {
  position: relative;
  padding: clamp(20px, 3vw, 36px);
  background: linear-gradient(118deg, rgba(50, 245, 208, 0.16) 0%, rgba(255, 122, 26, 0.1) 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), 0 100%);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn--primary { background: #32F5D0; color: #04120F; }
.btn--primary:hover { background: #5CFFDE; transform: translateY(-2px); }
.btn--ghost {
  border-color: rgba(50, 245, 208, 0.4);
  background: rgba(50, 245, 208, 0.07);
  color: #32F5D0;
}
.btn--ghost:hover {
  border-color: #32F5D0;
  background: rgba(50, 245, 208, 0.16);
  transform: translateY(-2px);
}
.btn--alert { background: #E8354D; color: #F4F8F6; }
.btn--alert:hover { background: #F04C63; transform: translateY(-2px); }

/* 面包屑 */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #B8C9C3;
}
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.breadcrumb__item { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: rgba(50, 245, 208, 0.55);
}
.breadcrumb__item a {
  color: rgba(184, 201, 195, 0.9);
  text-decoration: none;
  transition: color 0.16s ease;
}
.breadcrumb__item a:hover { color: #32F5D0; }
.breadcrumb__item[aria-current="page"] { color: #F4F8F6; }

/* 标签 / 数字 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid currentColor;
  border-radius: var(--r-xs);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.6;
  color: #32F5D0;
}
.tag--orange { color: #FF7A1A; }
.tag--red { color: #E8354D; }
.tag--sky { color: #6FD3FF; }
.tag--solid { background: #32F5D0; border-color: #32F5D0; color: #04120F; }

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.metric {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #32F5D0;
}

/* 图片容器（页面阶段放入 img / picture） */
.media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, #0E2B25 0%, #071A16 100%);
}
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--4x5 { aspect-ratio: 4 / 5; }
.media--wide { aspect-ratio: 21 / 9; }
.media--slant img { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 92%); }
.media__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #F4F8F6;
  background: linear-gradient(0deg, rgba(7, 26, 22, 0.94) 0%, rgba(7, 26, 22, 0) 100%);
}
.media--placeholder {
  display: grid;
  place-items: center;
  min-height: 160px;
  border: 1px dashed rgba(50, 245, 208, 0.34);
  color: rgba(50, 245, 208, 0.62);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-align: center;
}

/* ---------- 06 · Footer ---------- */
.site-footer {
  position: relative;
  margin-top: 96px;
  overflow: hidden;
  background: linear-gradient(180deg, #0B0F0E 0%, #07120F 100%);
  border-top: 1px solid rgba(50, 245, 208, 0.16);
  color: #B8C9C3;
  font-size: 14px;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #32F5D0 0%, rgba(50, 245, 208, 0) 46%, #FF7A1A 100%);
  opacity: 0.75;
}

.footer__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px var(--pad) 40px;
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 0.9fr 1.3fr;
  gap: 40px 32px;
}

.footer__brand { min-width: 0; }
.footer__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #F4F8F6;
}
.footer__desc {
  margin-top: 10px;
  max-width: 30em;
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(184, 201, 195, 0.82);
}
.footer__cta { margin-top: 18px; }
.footer__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #32F5D0;
}
.footer__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #32F5D0;
  box-shadow: 0 0 0 3px rgba(50, 245, 208, 0.16);
}

.footer__col { min-width: 0; }
.footer__contact { min-width: 0; }
.footer__heading {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(50, 245, 208, 0.85);
}
.footer__list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13.5px;
}
.footer__list a {
  display: inline-block;
  color: rgba(184, 201, 195, 0.88);
  text-decoration: none;
  transition: color 0.16s ease, padding-left 0.16s ease;
}
.footer__list a:hover,
.footer__list a:focus-visible {
  color: #32F5D0;
  padding-left: 4px;
}
.footer__list--contact { gap: 12px; }
.footer__list--contact li { display: block; }
.footer__key {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(50, 245, 208, 0.62);
}
.footer__value {
  display: block;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(244, 248, 246, 0.92);
  word-break: break-word;
}
.footer__note {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(184, 201, 195, 0.6);
}

.footer__base {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px var(--pad) 28px;
  border-top: 1px solid rgba(50, 245, 208, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: rgba(184, 201, 195, 0.66);
}
.footer__copy { margin-right: auto; }
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.footer__legal a {
  color: rgba(184, 201, 195, 0.74);
  text-decoration: none;
  transition: color 0.16s ease;
}
.footer__legal a:hover,
.footer__legal a:focus-visible { color: #32F5D0; }
.footer__icp { letter-spacing: 0.06em; }

/* ---------- 07 · 响应式 ---------- */
@media (min-width: 900px) {
  body { padding-left: var(--rail-w); }
}

@media (max-width: 1080px) {
  .grid--7-5,
  .grid--8-4 { grid-template-columns: minmax(0, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 34px 26px; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 899px) {
  body { padding-left: 0; }

  .site-header {
    position: sticky;
    inset: auto;
    top: 0;
    left: auto;
    width: auto;
    height: 62px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
    border-right: 0;
    border-bottom: 1px solid rgba(50, 245, 208, 0.16);
    z-index: 90;
  }

  .brand { flex-direction: row; gap: 10px; padding: 0; }
  .brand__mark { width: 32px; height: 32px; font-size: 12px; }
  .brand__name {
    writing-mode: horizontal-tb;
    font-size: 15px;
    letter-spacing: 0.16em;
  }
  .brand__tag { display: none; }

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

  .rail {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    width: auto;
    max-height: calc(100dvh - 62px);
    padding: 12px 16px 20px;
    overflow-y: auto;
    background: rgba(7, 26, 22, 0.985);
    border-bottom: 1px solid rgba(50, 245, 208, 0.24);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 20;
  }
  .site-header[data-open] .rail {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .rail-nav__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
  }
  .rail-nav__link {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 12px 10px;
  }
  .rail-nav__label { font-size: 15px; letter-spacing: 0.05em; }
  .rail-nav__idx { font-size: 11px; }
  .rail-nav__link[aria-current="page"]::before { top: 10px; bottom: 10px; }

  .rail-foot {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(50, 245, 208, 0.14);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .rail-foot__tool {
    flex: 1;
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    padding: 12px;
  }
  .rail-foot__hint {
    font-size: 10px;
    text-align: right;
    line-height: 1.5;
  }

  .scroll-meter {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: 2px;
  }
  .scroll-meter__fill {
    width: 100%;
    height: 100%;
    transform: scaleX(var(--p, 0));
    transform-origin: left center;
  }

  .site-footer { margin-top: 64px; }
  .footer__inner { padding-top: 44px; }
}

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

@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .footer__inner {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 38px;
    padding-bottom: 28px;
    gap: 28px;
  }
  .footer__base {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .footer__copy { margin-right: 0; }
}

/* ---------- 08 · 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .card-hover:hover,
  .card-hover:focus-within,
  .btn:hover,
  .rail-foot__tool:hover { transform: none; }
  .site-header[data-open] .rail { transform: none; }
}
