/* =========================================================
   MANBET 手机主站 — /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 网格 / 组件 / 头尾
   ========================================================= */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd, dt, table { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; border-spacing: 0; }
summary { display: list-item; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ---------- 变量 ---------- */
:root {
  --field: #060F18;
  --panel: #0D1C29;
  --panel-2: #0A1622;
  --grid: #1C2F3F;
  --steel: #2B4256;
  --cyan: #35E3C6;
  --amber: #FF8A42;
  --violet: #8B7BFF;
  --headline: #F1F6FA;
  --body: #CEDBE4;
  --note: #8AA0B0;
  --note-dim: #61798A;

  --rail: 104px;
  --gridstep: 104px;
  --bar-h: 64px;
  --gutter: clamp(16px, 4.2vw, 56px);
  --maxw: 1480px;

  --line: 1px solid var(--grid);
  --line-strong: 2px solid var(--steel);
  --shadow-hard: 8px 8px 0 0 var(--steel);
  --shadow-mid: 5px 5px 0 0 var(--steel);

  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
  --sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --t-fast: 150ms cubic-bezier(.4, 0, .2, 1);
}

/* ---------- 基础排版 ---------- */
body {
  min-height: 100vh;
  color: var(--body);
  font-family: var(--sans);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.85;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  background-color: var(--field);
  background-image:
    linear-gradient(to right, rgba(28, 47, 63, .5) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(28, 47, 63, .5) 1px, transparent 1px);
  background-size: var(--gridstep) var(--gridstep);
  background-position: 0 0;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  color: var(--headline);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.02em;
}
p + p { margin-top: .9em; }
.display-1 { font-size: clamp(30px, 4.4vw, 64px); line-height: 1.08; font-weight: 900; letter-spacing: -.03em; }
.display-2 { font-size: clamp(24px, 2.6vw, 38px); line-height: 1.16; }
.section-title { font-size: clamp(20px, 1.7vw, 26px); }
.lede { font-size: clamp(16px, 1.15vw, 19px); line-height: 1.8; }
.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}
.note {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: .06em;
  color: var(--note);
}
strong, b { color: var(--headline); font-weight: 700; }

/* ---------- 布局助手 ---------- */
.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.stack { display: flex; flex-direction: column; gap: 16px; }
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 28px);
}
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.hairline { border: 0; border-top: var(--line); }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 跳至主要内容 ---------- */
.skip-link {
  position: fixed;
  top: 0; left: 0;
  z-index: 200;
  transform: translateY(-130%);
  padding: 10px 18px;
  background: var(--cyan);
  color: #04141A;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .08em;
  transition: transform var(--t-fast);
}
.skip-link:focus { transform: translateY(0); }

/* =========================================================
   头部：框架式索引栏
   ========================================================= */
.site-header {
  position: fixed;
  z-index: 80;
  top: 0; left: 0; bottom: 0;
  width: var(--rail);
  display: flex;
  background: var(--field);
  border-right: 2px solid var(--steel);
  overflow: hidden;
}
.rail {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  width: 100%;
  padding: 18px 10px 22px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--steel) transparent;
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px 4px 12px;
  border-bottom: 1px solid var(--grid);
  transition: color var(--t-fast);
}
.brand__mark {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--headline);
  transition: color var(--t-fast);
}
.brand__suffix {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--note);
}
.brand:hover .brand__mark { color: var(--cyan); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 2px solid var(--steel);
  background: var(--panel);
  color: var(--headline);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  cursor: pointer;
  transition: border-color var(--t-fast), color var(--t-fast), background-color var(--t-fast);
}
.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan); }
.nav-toggle__bars { display: inline-flex; flex-direction: column; gap: 3px; width: 16px; }
.nav-toggle__bars i {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.site-nav {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 10px;
}
.site-nav__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav__item { min-width: 0; }
.site-nav__link {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 8px 9px 12px;
  color: var(--body);
  border-left: 2px solid transparent;
  transition: color var(--t-fast), background-color var(--t-fast), border-color var(--t-fast);
}
.site-nav__index {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--note);
  transition: color var(--t-fast);
}
.site-nav__label { font-size: 13px; line-height: 1.35; letter-spacing: .02em; }
.site-nav__link:hover {
  background: var(--panel);
  color: var(--headline);
  border-left-color: var(--steel);
}
.site-nav__link[aria-current="page"] {
  background: linear-gradient(90deg, rgba(53, 227, 198, .16), rgba(53, 227, 198, 0));
  color: var(--cyan);
  border-left-color: var(--cyan);
}
.site-nav__link[aria-current="page"] .site-nav__index { color: var(--cyan); }

.rail__cta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  border: 2px solid var(--cyan);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-align: center;
  transition: background-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}
.rail__cta:hover {
  background: var(--cyan);
  color: var(--field);
  box-shadow: var(--shadow-mid);
}
.rail__descriptor {
  writing-mode: vertical-rl;
  text-orientation: upright;
  align-self: flex-start;
  margin-left: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--grid);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--steel);
}

/* =========================================================
   页脚
   ========================================================= */
.site-footer {
  margin-top: clamp(56px, 7vw, 120px);
  background: var(--panel-2);
  border-top: 2px solid var(--steel);
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--grid);
}
.footer__stamp {
  font-size: 13px;
  color: var(--note);
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(22px, 2.6vw, 44px);
  padding-block: clamp(32px, 4vw, 60px);
}
.footer__col--brand { grid-column: span 4; }
.footer__col--index { grid-column: span 2; }
.footer__col--legal { grid-column: span 2; }
.footer__col--contact { grid-column: span 4; }
.footer__brand {
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 900;
  color: var(--headline);
  letter-spacing: -.01em;
}
.footer__summary {
  margin-top: 12px;
  max-width: 40ch;
  font-size: 14px;
  line-height: 1.85;
  color: var(--note);
}
.footer__title {
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--note-dim);
  text-transform: uppercase;
}
.footer__list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer__link {
  position: relative;
  display: inline-block;
  font-size: 14px;
  color: var(--body);
  transition: color var(--t-fast);
}
.footer__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-fast);
}
.footer__link:hover { color: var(--cyan); }
.footer__link:hover::after { transform: scaleX(1); }

.footer__contact {
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--grid);
}
.contact-line__key {
  min-width: 56px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--note-dim);
}
.contact-line__val {
  font-family: var(--mono);
  font-size: 13.5px;
  letter-spacing: .02em;
  color: var(--headline);
  word-break: break-all;
}
.contact-line__text { font-size: 14px; color: var(--body); }
.copy-btn {
  padding: 3px 10px;
  border: 1px solid var(--steel);
  background: transparent;
  color: var(--note);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  cursor: pointer;
  transition: border-color var(--t-fast), color var(--t-fast), background-color var(--t-fast);
}
.copy-btn:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(53, 227, 198, .08); }
.copy-btn[data-copied="true"] { border-color: var(--cyan); background: var(--cyan); color: var(--field); }
.footer__note {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--note-dim);
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  padding: 18px 0 28px;
  border-top: 1px solid var(--grid);
}
.footer__legal-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer__legal-link {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--note);
  transition: color var(--t-fast);
}
.footer__legal-link:hover { color: var(--cyan); }
.footer__meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--note-dim);
}

/* =========================================================
   通用组件
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 2px solid var(--steel);
  background: transparent;
  color: var(--headline);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .08em;
  cursor: pointer;
  transition: border-color var(--t-fast), color var(--t-fast), background-color var(--t-fast), box-shadow var(--t-fast);
}
.btn:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: var(--shadow-mid); }
.btn--primary { background: var(--cyan); border-color: var(--cyan); color: #04141A; }
.btn--primary:hover { background: var(--field); color: var(--cyan); }
.btn--ghost { border-color: var(--grid); color: var(--body); }
.btn--ghost:hover { border-color: var(--cyan); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--steel);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--note);
}
.tag--cyan { border-color: var(--cyan); color: var(--cyan); background: rgba(53, 227, 198, .08); }
.tag--amber { border-color: var(--amber); color: var(--amber); background: rgba(255, 138, 66, .08); }
.tag--violet { border-color: var(--violet); color: var(--violet); background: rgba(139, 123, 255, .08); }

.dot { display: inline-block; width: 8px; height: 8px; flex: none; background: var(--note-dim); }
.dot--cyan { background: var(--cyan); }
.dot--amber { background: var(--amber); }
.dot--violet { background: var(--violet); }
.dot--idle { background: var(--steel); }

.panel {
  padding: clamp(18px, 2vw, 28px);
  border: 1px solid var(--grid);
  background: var(--panel);
}
.panel--edge { border: 2px solid var(--steel); box-shadow: var(--shadow-hard); }
.panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 20px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--grid);
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(18px, 2vw, 26px);
  border: 1px solid var(--grid);
  background: var(--panel);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.card:hover { border-color: var(--steel); box-shadow: var(--shadow-hard); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 10px 24px;
  margin-bottom: clamp(20px, 2.6vw, 36px);
  padding-bottom: 14px;
  border-bottom: 2px solid var(--steel);
}
.section-head__index {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--cyan);
}
.section-head__note {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--note);
}

.table-scroll { overflow-x: auto; border: 1px solid var(--grid); }
.data-table { width: 100%; min-width: 520px; font-size: 14px; }
.data-table caption {
  padding: 12px 14px;
  text-align: left;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--note);
  border-bottom: 1px solid var(--grid);
}
.data-table th, .data-table td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--grid);
}
.data-table thead th {
  background: var(--panel-2);
  border-bottom: 1px solid var(--steel);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--note);
  white-space: nowrap;
}
.data-table tbody tr { transition: background-color var(--t-fast); }
.data-table tbody tr:hover { background: rgba(53, 227, 198, .06); }
.data-table tbody tr:hover td:first-child { box-shadow: inset 2px 0 0 var(--cyan); }
.data-table__num { font-family: var(--mono); color: var(--note); }
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: 0; }

.kv { border-top: 1px solid var(--grid); }
.kv__row {
  display: grid;
  grid-template-columns: minmax(120px, 32%) 1fr;
  gap: 6px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--grid);
}
.kv__key {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--note);
}
.kv__val { color: var(--body); }

.acc { border: 1px solid var(--grid); background: var(--panel); }
.acc + .acc { margin-top: -1px; }
.acc__summary {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  color: var(--headline);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: background-color var(--t-fast), color var(--t-fast);
}
.acc__summary::-webkit-details-marker { display: none; }
.acc__summary:hover { background: var(--panel-2); color: var(--cyan); }
.acc__mark { flex: none; font-family: var(--mono); font-size: 12px; color: var(--cyan); }
.acc[open] > .acc__summary { border-bottom: 1px solid var(--grid); }
.acc__body { padding: 16px 18px 20px; font-size: 15px; color: var(--body); }

.toc {
  position: sticky;
  top: calc(var(--bar-h) + 20px);
  padding-left: 14px;
  border-left: 2px solid var(--steel);
}
.toc__list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.toc__link {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--note);
  transition: color var(--t-fast);
}
.toc__link:hover { color: var(--cyan); }
.toc__link[aria-current="true"] { color: var(--cyan); }

.media {
  position: relative;
  border: 2px solid var(--steel);
  background: var(--panel-2);
  overflow: hidden;
}
.media__img { width: 100%; height: 100%; object-fit: cover; }
.media__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 160px;
  height: 100%;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .24em;
  color: var(--steel);
  background-image: repeating-linear-gradient(45deg, transparent 0 10px, rgba(28, 47, 63, .55) 10px 11px);
}
.media__cap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 14px;
  padding: 10px 12px;
  border-top: 1px solid var(--grid);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--note);
}
.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--wide { aspect-ratio: 21 / 9; }

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 0;
  border-top: 2px solid var(--steel);
}
.stat__num {
  font-family: var(--mono);
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--headline);
  font-variant-numeric: tabular-nums;
}
.stat__label { font-size: 13px; color: var(--note); }

.breadcrumbs {
  padding: 14px 0;
  border-bottom: 1px solid var(--grid);
}
.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--note);
}
.breadcrumbs__item { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs__item:not(:last-child)::after { content: "/"; color: var(--steel); }
.breadcrumbs__link { color: var(--note); transition: color var(--t-fast); }
.breadcrumbs__link:hover { color: var(--cyan); }
.breadcrumbs__item[aria-current="page"] { color: var(--cyan); }

.scroll-meter {
  position: fixed;
  z-index: 90;
  top: 0; right: 0;
  width: 4px;
  height: 100vh;
  background: rgba(28, 47, 63, .55);
  pointer-events: none;
}
.scroll-meter__bar {
  display: block;
  width: 100%;
  height: 0;
  background: var(--cyan);
  transition: height 120ms linear;
}

/* =========================================================
   响应式：<1100px 转为顶部横条 + 横向滑动索引条
   ========================================================= */
@media (min-width: 1100px) {
  #main-content, .site-footer { margin-left: var(--rail); }
}
@media (max-height: 780px) and (min-width: 1100px) {
  .rail__descriptor { display: none; }
}
@media (max-width: 1099px) {
  :root { --rail: 0px; --gridstep: 56px; --bar-h: 64px; }
  html { scroll-padding-top: 96px; }
  body { padding-top: var(--bar-h); }
  .site-header {
    top: 0; left: 0; right: 0; bottom: auto;
    width: 100%;
    border-right: 0;
    border-bottom: 2px solid var(--steel);
    overflow: visible;
  }
  .rail {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    padding: 10px var(--gutter);
    overflow: visible;
  }
  .brand { flex-direction: column; gap: 2px; padding: 0; border-bottom: 0; }
  .brand__mark { font-size: 12px; }
  .brand__suffix { font-size: 10px; }
  .rail__descriptor { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }

  .site-nav {
    display: none;
    flex: 0 0 auto;
    flex-basis: 100%;
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 12px 0 4px;
    border-top: 1px solid var(--grid);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .site-nav[data-open="true"] { display: flex; }
  .site-nav__list {
    order: 1;
    flex-direction: row;
    gap: 8px;
    flex: none;
  }
  .site-nav__item { flex: none; }
  .site-nav__link {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--grid);
    background: var(--panel);
    white-space: nowrap;
    scroll-snap-align: start;
  }
  .site-nav__link:hover { border-color: var(--steel); background: var(--panel-2); }
  .site-nav__link[aria-current="page"] {
    border-color: var(--cyan);
    background: rgba(53, 227, 198, .12);
    color: var(--cyan);
  }
  .site-nav__label { font-size: 13px; }
  .rail__cta {
    order: 2;
    flex: none;
    margin-top: 0;
    padding: 8px 14px;
    white-space: nowrap;
    scroll-snap-align: end;
  }
}

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .footer__col--brand { grid-column: span 6; }
  .footer__col--index { grid-column: span 3; }
  .footer__col--legal { grid-column: span 3; }
  .footer__col--contact { grid-column: span 6; }
  .col-3, .col-4, .col-5 { grid-column: span 6; }
  .col-6, .col-7, .col-8, .col-9 { grid-column: span 12; }
}
@media (max-width: 640px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .footer__col--brand, .footer__col--index, .footer__col--legal, .footer__col--contact { grid-column: auto; }
  .footer__legal { flex-direction: column; align-items: flex-start; }
  .kv__row { grid-template-columns: minmax(0, 1fr); }
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9 { grid-column: span 12; }
  .scroll-meter { width: 3px; }
}

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .footer__link::after { transition: none !important; }
}
