/* ============================================================
   爱娱乐体育 · 共享站套件 /assets/site.css
   主题：夜间赛场的数据指挥中心
   ============================================================ */

*,
*::before,
*::after { box-sizing: border-box; }

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

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

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

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

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

a { color: inherit; }

:root {
  --ink-900: #061C17;
  --ink-800: #0B2B23;
  --ink-700: #123B31;
  --paper: #F2E9D8;
  --chalk: #F7F4EA;
  --lime: #D7FF3F;
  --orange: #FF6B2C;
  --steel: #8DA6B8;
  --red: #E3342F;
  --line: #2F5A4E;
  --line-paper: #D8D2C4;

  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system,
    "Segoe UI", sans-serif;
  --font-display: var(--font-body);
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace,
    SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1240px;
  --gutter: 1.5rem;
  --radius: 16px;
  --radius-sm: 10px;
  --tilt: -2deg;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 68px;
}

/* ---------- 基础排版 ---------- */

html { scroll-behavior: smooth; }

body {
  background-color: var(--ink-900);
  background-image:
    radial-gradient(900px 520px at 10% -12%, rgba(215, 255, 63, .07), transparent 62%),
    radial-gradient(760px 540px at 92% -4%, rgba(255, 107, 44, .06), transparent 60%);
  color: var(--chalk);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.72;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, .h1 {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 6.2vw, 4.2rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -.025em;
}

h2, .h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.8vw, 2.6rem);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -.02em;
}

h3, .h3 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.01em;
}

h4, h5, h6 {
  font-weight: 700;
  line-height: 1.36;
  letter-spacing: 0;
}

strong { font-weight: 800; color: var(--chalk); }

a:not([class]) {
  color: var(--lime);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .2s var(--ease);
}

a:not([class]):hover { color: var(--orange); }

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

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 通用工具 ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

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

.tilt { transform: skewX(var(--tilt)); transform-origin: left center; }

.stack { display: grid; gap: 1rem; }

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

#main-content { display: block; scroll-margin-top: 120px; }

.skip-link {
  position: fixed;
  top: .5rem;
  left: .5rem;
  z-index: 200;
  transform: translateY(-180%);
  padding: .65rem 1.1rem;
  border-radius: 8px;
  background: var(--lime);
  color: var(--ink-900);
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  transition: transform .22s var(--ease);
}

.skip-link:focus { transform: translateY(0); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--lime);
}

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

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .72rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .22s var(--ease), color .22s var(--ease),
    border-color .22s var(--ease), transform .22s var(--ease),
    box-shadow .22s var(--ease);
}

.btn--lime {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink-900);
  box-shadow: 0 8px 24px rgba(215, 255, 63, .16);
}

.btn--lime:hover {
  background: #e6ff78;
  border-color: #e6ff78;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(215, 255, 63, .24);
}

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

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

.btn--sm {
  padding: .5rem .95rem;
  font-size: .82rem;
}

/* ============================================================
   头部
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(6, 28, 23, .9);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
  color: var(--chalk);
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  display: block;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--lime), var(--orange));
  pointer-events: none;
}

.header-rail {
  max-height: 46px;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(215, 255, 63, .1), transparent 58%);
  border-bottom: 1px solid rgba(47, 90, 78, .7);
  transition: max-height .28s var(--ease), opacity .28s var(--ease);
}

.site-header.is-condensed .header-rail {
  max-height: 0;
  opacity: 0;
}

.header-rail__inner {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding-block: .5rem;
}

.rail-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(215, 255, 63, .16);
  animation: rail-pulse 2.6s ease-in-out infinite;
}

@keyframes rail-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(215, 255, 63, .16); }
  50% { box-shadow: 0 0 0 6px rgba(215, 255, 63, .04); }
}

.rail-note {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--steel);
}

.rail-tag {
  flex: none;
  margin-left: auto;
  padding: .1rem .55rem;
  border: 1px solid rgba(215, 255, 63, .35);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--lime);
  white-space: nowrap;
}

.site-header__inner {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(.75rem, 2vw, 1.75rem);
  padding-block: .75rem;
}

/* 品牌 */

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--chalk);
}

.brand__mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--lime);
  color: var(--ink-900);
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  transform: skewX(-8deg);
  box-shadow: 3px 3px 0 rgba(255, 107, 44, .85);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.brand__mark-sub {
  position: absolute;
  right: 6px;
  bottom: 4px;
  font-size: 10px;
  letter-spacing: 0;
}

.brand:hover .brand__mark {
  transform: skewX(-8deg) scale(1.06);
  box-shadow: 4px 4px 0 rgba(255, 107, 44, 1);
}

.brand__text {
  display: grid;
  gap: 2px;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: .01em;
}

.brand__tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--steel);
}

/* 悬浮胶囊导航 */

.site-nav {
  justify-self: center;
  max-width: 100%;
  padding: .28rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(11, 43, 35, .72);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .28),
    inset 0 1px 0 rgba(247, 244, 234, .05);
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: .1rem;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.site-nav__list::-webkit-scrollbar { display: none; }

.site-nav__item { display: flex; }

.site-nav__link {
  position: relative;
  display: block;
  padding: .5rem .85rem;
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  color: rgba(247, 244, 234, .78);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}

.site-nav__link:hover {
  color: var(--chalk);
  background: rgba(47, 90, 78, .55);
}

.site-nav__link[aria-current="page"] {
  color: var(--lime);
  background: rgba(215, 255, 63, .08);
}

.site-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--lime);
  transform: translateX(-50%);
}

/* 头部右侧 */

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: .55rem;
}

.header-cta {
  box-shadow: 0 0 0 1px rgba(215, 255, 63, .25), 0 10px 24px rgba(215, 255, 63, .14);
}

.nav-toggle {
  display: none;
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 46px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(18, 59, 49, .85);
  color: var(--chalk);
  cursor: pointer;
  transition: border-color .2s var(--ease);
}

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

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}

.nav-toggle__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ============================================================
   页脚
   ============================================================ */

.site-footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--ink-900), #04120F 72%);
  border-top: 1px solid var(--line);
  color: rgba(247, 244, 234, .72);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--lime), var(--orange) 45%, transparent 86%);
  opacity: .9;
}

.site-footer::after {
  content: "";
  position: absolute;
  right: -14%;
  bottom: -46%;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  border: 1px solid rgba(47, 90, 78, .55);
  background: radial-gradient(circle at 50% 50%, rgba(215, 255, 63, .06), transparent 62%);
  pointer-events: none;
}

.site-footer > .wrap {
  position: relative;
  z-index: 1;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 5vw, 4rem);
  padding-block: clamp(2.5rem, 6vw, 4rem) clamp(2rem, 4vw, 2.75rem);
}

.footer-statement {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.footer-kicker {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--lime);
}

.footer-kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--lime);
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6.5vw, 4.4rem);
  font-weight: 900;
  line-height: .96;
  letter-spacing: -.035em;
  color: var(--chalk);
  transform: skewX(var(--tilt));
  transform-origin: left center;
  text-wrap: balance;
}

.footer-summary {
  max-width: 44ch;
  font-size: .95rem;
  line-height: 1.8;
  color: rgba(247, 244, 234, .66);
}

.footer-contact {
  display: grid;
  align-content: start;
  gap: .55rem;
  padding-left: clamp(1rem, 3vw, 2rem);
  border-left: 1px solid var(--line);
}

.footer-contact__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--steel);
}

.footer-contact__action {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  width: fit-content;
  margin-bottom: .35rem;
  padding-bottom: .15rem;
  border-bottom: 1px solid rgba(215, 255, 63, .35);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--lime);
  text-decoration: none;
  transition: color .2s var(--ease), border-color .2s var(--ease), gap .2s var(--ease);
}

.footer-contact__action:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
  gap: .8rem;
}

.footer-contact__line {
  font-size: .9rem;
  line-height: 1.6;
  color: rgba(247, 244, 234, .78);
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}

.footer-contact__note {
  margin-top: .3rem;
  font-size: 12px;
  line-height: 1.6;
  color: var(--steel);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(1.75rem, 4vw, 2.5rem);
  border-top: 1px solid var(--line);
}

.footer-col {
  display: grid;
  align-content: start;
}

.footer-col__title {
  margin-bottom: .9rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--steel);
}

.footer-col__list {
  display: grid;
  gap: .55rem;
  list-style: none;
}

.footer-col__link {
  display: inline-block;
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  font-size: .92rem;
  color: rgba(247, 244, 234, .76);
  text-decoration: none;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.footer-col__link:hover {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.75rem;
  padding-block: 1.25rem 1.75rem;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--steel);
}

.footer-base__copy {
  font-family: var(--font-mono);
  letter-spacing: .05em;
}

.footer-base__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  list-style: none;
}

.footer-base__link {
  color: rgba(247, 244, 234, .7);
  text-decoration: none;
  transition: color .2s var(--ease);
}

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

.footer-icp {
  font-family: var(--font-mono);
  letter-spacing: .04em;
}

/* ============================================================
   共享正文组件
   ============================================================ */

.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .6rem 1.5rem;
  margin-bottom: 1.75rem;
}

.section__note {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--steel);
}

.prose {
  display: grid;
  gap: 1.1rem;
  max-width: 72ch;
  font-size: 1rem;
}

.prose p { color: rgba(247, 244, 234, .82); }

.prose .hl {
  color: var(--lime);
  box-shadow: inset 0 -2px 0 rgba(215, 255, 63, .65);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--steel);
}

.breadcrumbs a {
  color: var(--steel);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.breadcrumbs a:hover {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

.breadcrumbs__sep { color: var(--line); }

.breadcrumbs__current { color: var(--chalk); }

.grid { display: grid; gap: var(--gutter); }

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

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

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

.card {
  position: relative;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-800);
  transition: border-color .25s var(--ease), transform .25s var(--ease),
    box-shadow .25s var(--ease);
}

.card:hover {
  border-color: var(--lime);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .32);
}

.card--cut { border-radius: var(--radius) var(--radius) var(--radius) 0; }

.card--paper {
  background: var(--paper);
  border-color: var(--line-paper);
  color: var(--ink-900);
}

.card--paper p { color: rgba(6, 28, 23, .78); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .26rem .6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--steel);
  white-space: nowrap;
}

.tag--lime {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink-900);
}

.tag--orange {
  border-color: rgba(255, 107, 44, .5);
  color: var(--orange);
}

.tag--red {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.metric {
  display: grid;
  gap: .2rem;
}

.metric__value {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}

.metric__unit {
  margin-left: .2em;
  font-size: .55em;
  color: var(--steel);
}

.metric__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--steel);
}

.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(150deg, var(--ink-700), var(--ink-800) 68%);
}

.media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--wide { aspect-ratio: 16 / 9; }

.media-frame--tall { aspect-ratio: 4 / 5; }

.media-frame--square { aspect-ratio: 1 / 1; }

.media-frame__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: .6rem .85rem;
  background: linear-gradient(180deg, transparent, rgba(6, 28, 23, .88));
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--chalk);
}

/* ============================================================
   动效
   ============================================================ */

html[data-motion-ready="true"] [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}

html[data-motion-ready="true"] [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ============================================================
   响应式
   ============================================================ */

@media (max-width: 1040px) {
  .site-header__inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

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

  .header-cta { display: none; }

  .site-nav {
    position: absolute;
    z-index: 5;
    top: calc(100% + .55rem);
    left: clamp(1rem, 4vw, 2.5rem);
    right: clamp(1rem, 4vw, 2.5rem);
    display: none;
    justify-self: stretch;
    max-height: min(70vh, 520px);
    overflow-y: auto;
    padding: .5rem;
    border-radius: 18px;
    background: var(--ink-800);
    box-shadow: 0 24px 50px rgba(0, 0, 0, .45);
  }

  .site-nav[data-open="true"] {
    display: block;
    animation: nav-drop .24s var(--ease) both;
  }

  @keyframes nav-drop {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: none; }
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: .15rem;
    overflow: visible;
  }

  .site-nav__item { display: block; }

  .site-nav__link {
    padding: .8rem 1rem;
    border-radius: 12px;
    font-size: 1rem;
  }

  .site-nav__link[aria-current="page"] {
    background: rgba(215, 255, 63, .12);
  }

  .site-nav__link[aria-current="page"]::after { display: none; }

  .nav-toggle[data-open="true"] .nav-toggle__bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle[data-open="true"] .nav-toggle__bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[data-open="true"] .nav-toggle__bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}

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

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

  .footer-top { grid-template-columns: 1fr; }

  .footer-contact {
    padding-left: 0;
    padding-top: 1.5rem;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .header-rail__inner { padding-block: .45rem; }

  .rail-tag { display: none; }

  .brand__mark { width: 38px; height: 38px; font-size: 18px; }

  .brand__tagline { display: none; }

  .brand__name { font-size: 1rem; }

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

  .footer-base { flex-direction: column; align-items: flex-start; gap: .6rem; }
}

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

  .footer-nav { grid-template-columns: 1fr; }

  .footer-wordmark { font-size: clamp(2rem, 12vw, 2.8rem); }
}

/* ============================================================
   降级动效
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  html[data-motion-ready="true"] [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .rail-dot { animation: none; }

  .card:hover,
  .btn:hover,
  .brand:hover .brand__mark { transform: none; }
}
