/* ============================================================
   宝威体育站 · 共享站点套件 /assets/site.css
   夜场数据台：深墨绿框架 + 暖纸阅读区 + 荧光青交互 + 琥珀金数据
   ============================================================ */

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

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

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

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

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

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

a { color: inherit; }

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

/* ---------- 2. 设计变量 ---------- */
:root {
  /* 色彩 */
  --ink-950: #06130F;
  --ink-900: #0B1F18;
  --green-700: #123529;
  --paper-100: #F5EFE2;
  --paper-200: #E7DECB;
  --cyan-400: #2FF3D0;
  --cyan-200: #9BFBEA;
  --amber-400: #F2B544;
  --amber-600: #C9861E;
  --legacy-500: #6B7C8C;
  --legacy-300: #A9B6C2;
  --line: #2A4A3F;
  --text-muted: #4A5A52;
  --muted-dark: rgba(245, 239, 226, 0.66);

  /* 字体 */
  --font-display: "Barlow Condensed", "Oswald", "Noto Sans SC", "Source Han Sans SC",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
    "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "Roboto Mono", ui-monospace,
    "SFMono-Regular", Menlo, monospace;

  /* 框架 */
  --frame-max: 1320px;
  --gutter: clamp(14px, 3vw, 40px);
  --rail-w: 284px;
  --cut: 18px;
  --dur: 160ms;
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink-950);
  background-image:
    radial-gradient(900px 420px at 50% -8%, rgba(47, 243, 208, 0.10), rgba(47, 243, 208, 0) 70%),
    linear-gradient(to right, rgba(42, 74, 63, 0.30) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(42, 74, 63, 0.30) 1px, transparent 1px);
  background-size: auto, 96px 96px, 96px 96px;
  background-repeat: no-repeat, repeat, repeat;
  color: var(--paper-100);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: 0.005em;
  color: inherit;
}

h1 { font-size: clamp(30px, 4.2vw, 52px); font-weight: 900; letter-spacing: -0.005em; }
h2 { font-size: clamp(23px, 2.6vw, 34px); }
h3 { font-size: clamp(19px, 1.8vw, 24px); }
h4 { font-size: clamp(16px, 1.4vw, 19px); }

p { max-width: 72ch; }

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

/* ---------- 4. 焦点可见 ---------- */
:focus-visible {
  outline: 2px solid var(--cyan-400);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- 5. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 300;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-950);
  background: var(--cyan-400);
  text-decoration: none;
  transition: top var(--dur) ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
  outline: 2px solid var(--ink-950);
  outline-offset: 2px;
}

/* ---------- 6. 页头框架 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(6, 19, 15, 0.97);
  border-bottom: 1px solid var(--line);
  color: var(--paper-100);
}

.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}

.scroll-meter-fill {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan-400), var(--amber-400));
  transition: transform 90ms linear;
}

.header-frame {
  max-width: var(--frame-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.header-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(10px, 2vw, 28px);
  padding: 13px 0 12px;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  color: var(--paper-100);
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-950);
  background: var(--cyan-400);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: background-color var(--dur) ease;
}
.brand:hover .brand-mark { background: var(--amber-400); }

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.brand-tagline {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 轴注记 */
.header-meta {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.frame-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--legacy-300);
  white-space: nowrap;
}
.frame-note::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--cyan-400);
  opacity: 0.75;
}

/* 页头操作区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

/* ---------- 7. 通用按钮 ---------- */
.btn {
  --btn-cut: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  color: var(--paper-100);
  background: var(--green-700);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - var(--btn-cut)) 0, 100% var(--btn-cut), 100% 100%, 0 100%);
  transition: background-color var(--dur) ease, color var(--dur) ease,
    border-color var(--dur) ease, transform var(--dur) ease;
}
.btn:hover {
  background: var(--cyan-400);
  border-color: var(--cyan-400);
  color: var(--ink-950);
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--cyan-400);
}

.btn--primary {
  background: var(--cyan-400);
  border-color: var(--cyan-400);
  color: var(--ink-950);
  font-weight: 800;
}
.btn--primary:hover {
  background: var(--cyan-200);
  border-color: var(--cyan-200);
  color: var(--ink-950);
}

.btn--ghost {
  background: transparent;
  border-color: var(--legacy-500);
  color: var(--paper-100);
}
.btn--ghost:hover {
  background: rgba(242, 181, 68, 0.10);
  border-color: var(--amber-400);
  color: var(--amber-400);
}

.btn--amber {
  background: var(--amber-400);
  border-color: var(--amber-400);
  color: var(--ink-950);
  font-weight: 800;
}
.btn--amber:hover {
  background: var(--amber-600);
  border-color: var(--amber-600);
  color: var(--ink-950);
}

.btn--sm {
  padding: 7px 13px;
  font-size: 13px;
  --btn-cut: 7px;
}

/* ---------- 8. 移动菜单按钮 ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--paper-100);
  background: var(--green-700);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: background-color var(--dur) ease, color var(--dur) ease;
}
.nav-toggle:hover { background: var(--ink-900); color: var(--cyan-400); }
.nav-toggle:focus-visible { outline: 2px solid var(--cyan-400); outline-offset: 2px; }

.nav-toggle-icon {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: background-color var(--dur) ease;
}
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform var(--dur) ease;
}
.nav-toggle-icon::before { top: -5px; }
.nav-toggle-icon::after { top: 5px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { transform: translateY(-5px) rotate(-45deg); }

.nav-toggle-text { line-height: 1; }

/* ---------- 9. 导航 ---------- */
.site-nav {
  border-top: 1px solid var(--line);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  counter-reset: nav-index;
}

.nav-item { flex: 0 0 auto; }

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55em;
  padding: 12px clamp(12px, 1.6vw, 22px);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: rgba(245, 239, 226, 0.82);
  border-right: 1px solid var(--line);
  transition: color var(--dur) ease, background-color var(--dur) ease;
}
.nav-item:first-child .nav-link { border-left: 1px solid var(--line); }

.nav-link::before {
  counter-increment: nav-index;
  content: counter(nav-index, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--cyan-400);
  opacity: 0.6;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--cyan-400);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur) ease;
}

.nav-link:hover { background: var(--green-700); color: #FFFFFF; }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link:focus-visible { outline: 2px solid var(--cyan-400); outline-offset: -3px; }

.nav-link[aria-current="page"] {
  background: var(--ink-900);
  color: #FFFFFF;
}
.nav-link[aria-current="page"]::before { color: var(--amber-400); opacity: 1; }
.nav-link[aria-current="page"]::after { transform: scaleX(1); background: var(--amber-400); }

/* ---------- 10. 布局与内容容器 ---------- */
.content-frame {
  max-width: var(--frame-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.layout-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}

.rail {
  position: sticky;
  top: 118px;
  align-self: start;
  padding: 16px 14px;
  background: var(--ink-900);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan-400);
}

.rail-title {
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--legacy-300);
}

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

.rail-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px 9px 12px;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  color: rgba(245, 239, 226, 0.80);
  border-left: 2px solid transparent;
  transition: background-color var(--dur) ease, color var(--dur) ease,
    border-color var(--dur) ease;
}
.rail-link:hover {
  background: var(--green-700);
  color: #FFFFFF;
  border-left-color: var(--cyan-400);
}
.rail-link[aria-current="true"] {
  background: rgba(47, 243, 208, 0.10);
  color: #FFFFFF;
  border-left-color: var(--cyan-400);
}
.rail-link[aria-current="true"] .rail-num { color: var(--amber-400); }

.rail-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--legacy-300);
}

/* ---------- 11. 文字与标签元件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-400);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.10em;
  color: var(--cyan-200);
  background: rgba(47, 243, 208, 0.07);
  border: 1px solid var(--line);
}
.tag--amber {
  color: var(--ink-950);
  background: var(--amber-400);
  border-color: var(--amber-400);
  font-weight: 700;
}
.tag--legacy {
  color: var(--legacy-300);
  background: rgba(107, 124, 140, 0.14);
  border-color: var(--legacy-500);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 20px;
  padding-bottom: 10px;
  margin-bottom: clamp(16px, 2vw, 26px);
  border-bottom: 1px solid var(--line);
}

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

/* ---------- 12. 面板与卡片 ---------- */
.panel {
  position: relative;
  padding: clamp(16px, 2.2vw, 28px);
  background: var(--ink-900);
  border: 1px solid var(--line);
  color: var(--paper-100);
}

.panel--cut {
  clip-path: polygon(
    0 0,
    calc(100% - var(--cut)) 0,
    100% var(--cut),
    100% 100%,
    var(--cut) 100%,
    0 calc(100% - var(--cut))
  );
}

.panel--paper {
  background: var(--paper-100);
  border-color: var(--paper-200);
  color: var(--ink-900);
}

.panel--quiet {
  background: var(--green-700);
  border-color: var(--line);
}

.card {
  position: relative;
  background: var(--ink-900);
  border: 1px solid var(--line);
  transition: transform var(--dur) ease, border-color var(--dur) ease,
    box-shadow var(--dur) ease;
}
.card:hover,
.card:focus-within {
  transform: translateY(-2px);
  border-color: var(--cyan-400);
  box-shadow: 0 0 0 1px rgba(47, 243, 208, 0.25);
}

/* ---------- 13. 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--green-700);
  border: 1px solid var(--line);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(6, 19, 15, 0.16) 1px, transparent 1px);
  background-size: 100% 24px;
  mix-blend-mode: multiply;
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }

.media-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  color: var(--ink-950);
  background: rgba(47, 243, 208, 0.86);
}

/* ---------- 14. 长文与面包屑 ---------- */
.prose {
  font-size: 17px;
  line-height: 1.68;
}
.prose > * + * { margin-top: 0.9em; }
.prose p { max-width: 74ch; }
.prose h2, .prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { list-style: none; padding-left: 0; }
.prose li {
  position: relative;
  padding-left: 1.15em;
}
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  background: var(--cyan-400);
}
.prose a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--cyan-400);
}
.prose a:hover { text-decoration-thickness: 2px; }
.prose blockquote {
  padding: 12px 18px;
  border-left: 3px solid var(--amber-400);
  background: rgba(242, 181, 68, 0.08);
}
.panel--paper .prose a { color: var(--green-700); }
.panel--paper .prose li::before { background: var(--green-700); }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted-dark);
}
.breadcrumbs-link {
  color: var(--cyan-200);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) ease, color var(--dur) ease;
}
.breadcrumbs-link:hover {
  color: var(--cyan-400);
  border-bottom-color: var(--cyan-400);
}
.breadcrumbs-sep {
  color: var(--line);
  font-size: 12px;
}

/* ---------- 15. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(40px, 6vw, 80px);
  background: var(--ink-950);
  border-top: 1px solid var(--line);
  color: var(--paper-100);
}

.footer-ticks {
  height: 12px;
  border-bottom: 1px solid var(--line);
  background-image: repeating-linear-gradient(
    90deg,
    var(--line) 0 1px,
    transparent 1px 18px
  );
  opacity: 0.85;
}

.footer-frame {
  max-width: var(--frame-max);
  margin: 0 auto;
  padding: clamp(26px, 4vw, 46px) var(--gutter) 22px;
}

.footer-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 36px;
  padding-bottom: clamp(18px, 2.6vw, 26px);
  border-bottom: 1px solid var(--line);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--paper-100);
}

.footer-brand-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-950);
  background: var(--amber-400);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: background-color var(--dur) ease;
}
.footer-brand:hover .footer-brand-mark { background: var(--cyan-400); }

.footer-brand-text { display: flex; flex-direction: column; gap: 2px; }

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.footer-brand-line {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--legacy-300);
}

.footer-note {
  max-width: 46ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(22px, 3vw, 36px) 0;
}

.footer-col { min-width: 0; }

.footer-col-title {
  margin-bottom: 12px;
  padding-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-400);
  border-bottom: 1px solid var(--line);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link {
  display: inline-block;
  width: fit-content;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(245, 239, 226, 0.78);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) ease, border-color var(--dur) ease;
}
.footer-link:hover {
  color: var(--cyan-400);
  border-bottom-color: var(--cyan-400);
}

.footer-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-line {
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(245, 239, 226, 0.70);
  overflow-wrap: anywhere;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.footer-copy,
.footer-icp {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: var(--legacy-300);
}

/* ---------- 16. 响应式 ---------- */
@media (min-width: 981px) {
  .layout-split {
    grid-template-columns: var(--rail-w) minmax(0, 1fr);
  }
}

@media (max-width: 1080px) {
  .brand-tagline { display: none; }
}

@media (max-width: 980px) {
  .header-top {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    padding: 11px 0 10px;
  }

  .header-meta { display: none; }

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

  .site-nav {
    display: none;
    border-top: 1px solid var(--line);
    padding-bottom: 8px;
  }
  .site-nav[data-open] { display: block; }

  .nav-list { display: block; }
  .nav-item { display: block; }

  .nav-link {
    padding: 14px 6px;
    font-size: 15px;
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-item:first-child .nav-link { border-left: 0; }
  .nav-item:last-child .nav-link { border-bottom: 0; }

  .nav-link::after { display: none; }

  .nav-link[aria-current="page"] {
    padding-left: 16px;
    box-shadow: inset 3px 0 0 var(--amber-400);
  }

  .rail {
    position: static;
    top: auto;
  }

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

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

  .header-actions .btn--ghost { display: none; }

  .btn {
    padding: 9px 13px;
    font-size: 13px;
    --btn-cut: 7px;
  }

  .brand-mark { width: 38px; height: 38px; font-size: 13px; }
  .brand-name { font-size: 19px; }

  .footer-head { flex-direction: column; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-copy, .footer-icp { font-size: 11.5px; }
}

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

/* ---------- 17. 动效偏好 ---------- */
@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;
    scroll-behavior: auto !important;
  }

  .card:hover,
  .card:focus-within { transform: none; }

  .scroll-meter-fill { transition: none; }
}
