/* ==========================================================================
   必一体育 · 共享站点样式 /assets/site.css
   视觉母题：赛场夜灯 + 数据仪表盘，纵向叙事长卷
   ========================================================================== */

/* ---------- 1. 变量 ---------- */
:root {
  --ink-900: #061713;
  --ink-800: #0B2A22;
  --teal-700: #10453A;
  --indigo-900: #171B3A;
  --wine-900: #3B1424;
  --cyan-400: #2FF0D3;
  --orange-500: #FF7A18;
  --score-cream: #FFE7CC;
  --mint-400: #4BE3A8;
  --green-600: #0E9E77;
  --text-primary: #E8F5F0;
  --text-muted: #9CBDB1;
  --line-soft: #2A4A40;

  --font-display: "Barlow Condensed", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --wrap: 1240px;
  --gutter: clamp(18px, 4vw, 48px);
  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 620px at 82% -8%, rgba(47, 240, 211, .10), transparent 62%),
    radial-gradient(900px 540px at 2% 16%, rgba(255, 122, 24, .07), transparent 60%),
    var(--ink-900);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a { color: var(--cyan-400); text-decoration: none; }

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

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.01em;
  color: var(--text-primary);
}

p { margin: 0 0 1em; }

:focus-visible {
  outline: 2px solid var(--cyan-400);
  outline-offset: 3px;
  border-radius: 6px;
}

#main-content { scroll-margin-top: 132px; }

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

.section { padding-block: clamp(40px, 6vw, 80px); }
.section--tight { padding-block: clamp(24px, 4vw, 48px); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
  margin-bottom: clamp(18px, 3vw, 32px);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.02;
  margin: 0;
}

.grid { display: grid; gap: clamp(16px, 2.5vw, 28px); }
.grid-75 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.grid-57 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- 4. 文字 ---------- */
.label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.lede {
  max-width: 30em;
  margin: 0;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.7;
  color: var(--text-muted);
}

.prose {
  max-width: 34em;
  font-size: clamp(15px, 1.05vw, 16.5px);
  line-height: 1.85;
  color: var(--text-primary);
}

.prose p { margin: 0 0 1.15em; }
.prose ul,
.prose ol { margin: 0 0 1.15em; padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .4em; }
.prose h2,
.prose h3 { margin: 1.6em 0 .6em; font-size: 1.35em; }
.prose a { border-bottom: 1px solid rgba(47, 240, 211, .45); }
.prose strong { color: var(--score-cream); }

/* ---------- 5. 按钮与胶囊 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  transition: transform .18s var(--ease), background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}

.btn-primary { background: var(--cyan-400); color: #04231D; }
.btn-primary:hover { background: #7CFBE8; transform: translateY(-2px); }

.btn-accent { background: var(--orange-500); color: #1A0A00; }
.btn-accent:hover { background: #FFA05A; transform: translateY(-2px); }

.btn-ghost {
  background: rgba(16, 69, 58, .45);
  border-color: var(--line-soft);
  color: var(--text-primary);
}
.btn-ghost:hover { border-color: var(--cyan-400); color: var(--cyan-400); transform: translateY(-2px); }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  background: rgba(16, 69, 58, .45);
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: .04em;
  text-decoration: none;
  transition: background .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease);
}

.chip:hover { color: var(--text-primary); border-color: rgba(47, 240, 211, .5); }

.chip[aria-pressed="true"],
.chip[data-active] {
  background: var(--cyan-400);
  border-color: var(--cyan-400);
  color: #04231D;
  font-weight: 700;
  transform: translateY(-1px);
}

/* ---------- 6. 头部 ---------- */
.skip-link {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 120;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--cyan-400);
  color: #04231D;
  font-size: 13px;
  font-weight: 700;
  transform: translate(-50%, -180%);
  transition: transform .22s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible { transform: translate(-50%, 0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(6, 23, 19, .90);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}

.site-header[data-compact] {
  background: rgba(6, 23, 19, .97);
  box-shadow: 0 14px 36px -26px #000;
}

.header-inner { position: relative; }

.masthead {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 22px 0 12px;
  transition: padding .3s var(--ease);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--cyan-400), var(--green-600));
  color: #04231D;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 800;
  letter-spacing: .06em;
}

.brand-tagline {
  max-height: 22px;
  overflow: hidden;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: opacity .25s var(--ease), max-height .25s var(--ease);
}

.site-header[data-compact] .brand-tagline { opacity: 0; max-height: 0; }
.site-header[data-compact] .masthead { padding: 10px 0 6px; }

.android-pill {
  position: absolute;
  top: 50%;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 12px;
  border: 1px solid rgba(47, 240, 211, .45);
  border-radius: var(--radius-pill);
  background: rgba(47, 240, 211, .12);
  color: var(--cyan-400);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
  white-space: nowrap;
  text-decoration: none;
  transform: translateY(-50%);
  transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}

.android-pill:hover {
  background: var(--cyan-400);
  color: #04231D;
  transform: translateY(-50%) translateY(-1px);
}

.android-pill-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
  animation: pillPulse 2.6s var(--ease) infinite;
}

@keyframes pillPulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 240, 211, .55); }
  70% { box-shadow: 0 0 0 7px rgba(47, 240, 211, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 240, 211, 0); }
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  background: rgba(16, 69, 58, .55);
  color: var(--text-primary);
  font-size: 12.5px;
  letter-spacing: .1em;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}

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

.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}

.nav-toggle-bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}

.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); }

/* ---------- 7. 主导航 ---------- */
.primary-nav { border-top: 1px solid var(--line-soft); }

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(2px, 1.6vw, 22px);
  list-style: none;
  padding: 2px 0 4px;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 11px 6px;
  color: var(--text-muted);
  font-size: 14px;
  letter-spacing: .06em;
  text-decoration: none;
  transition: color .18s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan-400);
  transform: scaleX(0);
  transform-origin: 50% 50%;
  transition: transform .22s var(--ease), background .22s var(--ease);
}

.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-link[aria-current="page"] { color: var(--cyan-400); font-weight: 600; }
.nav-link[aria-current="page"]::after { transform: scaleX(1); background: var(--orange-500); }

.site-header[data-compact] .nav-link { padding: 8px 6px; font-size: 13px; }

/* ---------- 8. 滚动进度 ---------- */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  background: rgba(42, 74, 64, .45);
  pointer-events: none;
}

.scroll-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan-400), var(--mint-400) 55%, var(--orange-500));
  transition: transform .12s linear;
}

/* ---------- 9. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 110px);
  background: linear-gradient(180deg, var(--ink-800), #04110E 78%);
  border-top: 1px solid var(--line-soft);
  color: var(--text-muted);
  font-size: 14px;
}

.footer-band {
  height: 5px;
  background: linear-gradient(90deg, var(--orange-500), var(--cyan-400) 32%, var(--mint-400) 64%, var(--indigo-900));
}

.footer-inner {
  padding-top: clamp(32px, 5vw, 56px);
  padding-bottom: 26px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(24px, 4vw, 40px);
  border-bottom: 1px solid var(--line-soft);
}

.footer-brand-link { gap: 10px; }

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--text-primary);
}

.footer-tagline {
  margin: 14px 0 0;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan-400);
}

.footer-note {
  margin: 10px 0 0;
  max-width: 26em;
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
}

.footer-col-title {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--text-muted);
}

.footer-links {
  display: grid;
  gap: 8px;
  list-style: none;
}

.footer-links a {
  color: var(--text-primary);
  font-size: 13.5px;
  text-decoration: none;
  transition: color .18s var(--ease);
}

.footer-links a:hover,
.footer-links a:focus-visible { color: var(--cyan-400); }

.footer-contact {
  display: grid;
  gap: 8px;
  padding: clamp(20px, 3vw, 28px) 0;
  border-bottom: 1px solid var(--line-soft);
}

.footer-contact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin: 0;
  font-size: 13.5px;
}

.footer-contact-line .label { min-width: 68px; font-size: 10.5px; }

.footer-contact-value { color: var(--text-primary); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 20px;
  font-size: 12.5px;
}

.footer-copy { margin: 0; }

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  list-style: none;
}

.legal-links a {
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.legal-links a:hover,
.legal-links a:focus-visible { color: var(--cyan-400); border-color: currentColor; }

.footer-icp { margin: 0; letter-spacing: .06em; }

/* ---------- 10. 章节色带 ---------- */
.chapter-band {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 4.5vw, 52px) 0;
  background: var(--ink-800);
  border-block: 1px solid var(--line-soft);
}

.chapter-band[data-tone="indigo"] { background: var(--indigo-900); }
.chapter-band[data-tone="wine"] { background: var(--wine-900); }
.chapter-band[data-tone="teal"] { background: var(--teal-700); }

.chapter-band::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -70%;
  width: clamp(220px, 40vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 240, 211, .18), transparent 68%);
  pointer-events: none;
}

.chapter-index {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .22em;
  color: var(--cyan-400);
}

.chapter-title {
  max-width: 20em;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.01em;
  margin: 0 0 14px;
}

.chapter-band .lede { color: var(--text-primary); opacity: .82; }

/* ---------- 11. 面板与数值 ---------- */
.panel {
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--teal-700);
}

.panel--muted { background: rgba(16, 69, 58, .38); }

.score {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(2.6rem, 9vw, 7rem);
  line-height: .92;
  letter-spacing: -.02em;
  color: var(--score-cream);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: rgba(16, 69, 58, .38);
}

.stat-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.1;
  color: var(--score-cream);
}

.stat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- 12. 图例网格 ---------- */
.legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.legend-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: rgba(16, 69, 58, .35);
}

.legend-swatch {
  width: 14px;
  height: 14px;
  flex: none;
  margin-top: 4px;
  border-radius: 5px;
  background: var(--cyan-400);
}

.legend-swatch[data-tone="away"] { background: var(--orange-500); }
.legend-swatch[data-tone="mint"] { background: linear-gradient(135deg, var(--mint-400), var(--green-600)); }
.legend-swatch[data-tone="indigo"] { background: var(--indigo-900); }

.legend-item .legend-text { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--text-muted); }
.legend-item .legend-name { display: block; color: var(--text-primary); font-weight: 600; }

/* ---------- 13. 时间轴 ---------- */
.timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan-400), rgba(47, 240, 211, 0));
}

.timeline-item {
  position: relative;
  padding: 0 0 22px 40px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink-900);
  border: 2px solid var(--cyan-400);
  box-shadow: 0 0 0 4px rgba(47, 240, 211, .12);
}

.timeline-item[data-state="live"]::before {
  border-color: var(--orange-500);
  box-shadow: 0 0 0 4px rgba(255, 122, 24, .18);
}

.timeline-time {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  letter-spacing: .1em;
  color: var(--cyan-400);
}

.timeline-name { display: block; font-size: 15px; color: var(--text-primary); }

/* ---------- 14. 环图与数据条 ---------- */
.ring {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(120px, 22vw, 180px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from -90deg, var(--cyan-400) calc(var(--value, 0) * 1%), rgba(255, 255, 255, .08) 0);
}

.ring::before {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background: var(--teal-700);
}

.ring-value {
  position: relative;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.1rem, 3vw, 1.7rem);
  color: var(--text-primary);
}

.data-bar {
  height: 8px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .08);
}

.data-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-600), var(--mint-400));
}

.data-bar[data-tone="away"] > span { background: linear-gradient(90deg, var(--wine-900), var(--orange-500)); }

/* ---------- 15. 图片容器（供页面阶段放入占位图） ---------- */
.media-frame {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, var(--teal-700), var(--ink-800));
}

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

.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--portrait { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }

.media-caption {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--text-muted);
}

/* ---------- 16. 面包屑与收束带 ---------- */
.breadcrumbs { font-size: 12.5px; color: var(--text-muted); }

.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.breadcrumbs-list li { display: flex; align-items: center; gap: 8px; }

.breadcrumbs-list li + li::before { content: "›"; color: var(--line-soft); }

.breadcrumbs-list a { color: var(--text-muted); transition: color .18s var(--ease); }
.breadcrumbs-list a:hover { color: var(--cyan-400); }

.closing-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(20px, 3vw, 32px) clamp(20px, 3vw, 36px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--indigo-900), var(--wine-900));
}

.closing-text { margin: 0; font-size: 15px; color: var(--text-primary); }

/* ---------- 17. 滚动显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}

[data-reveal][data-revealed] { opacity: 1; transform: none; }

/* ---------- 18. 响应式 ---------- */
@media (max-width: 900px) {
  .grid-75,
  .grid-57 { grid-template-columns: minmax(0, 1fr); }

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

  .masthead {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    justify-content: initial;
    gap: 10px;
    padding: 14px 0 12px;
  }

  .nav-toggle {
    grid-column: 1;
    position: static;
    transform: none;
  }

  .masthead-brand { grid-column: 2; justify-self: start; min-width: 0; }

  .brand-tagline { display: none; }

  .android-pill {
    grid-column: 3;
    position: static;
    margin-left: auto;
    transform: none;
  }

  .android-pill:hover { transform: none; }

  .android-pill-sub { display: none; }

  .primary-nav {
    display: none;
    padding: 8px 0 16px;
    border-top: 1px solid var(--line-soft);
  }

  .primary-nav[data-open] { display: block; }

  .nav-list {
    flex-direction: column;
    gap: 2px;
    padding: 0;
  }

  .nav-link {
    display: block;
    padding: 13px 12px;
    border-radius: var(--radius-sm);
    font-size: 16px;
  }

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

  .nav-link[aria-current="page"] { background: rgba(47, 240, 211, .10); }

  .site-header[data-compact] .nav-link { padding: 13px 12px; font-size: 16px; }

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

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

@media (max-width: 520px) {
  body { font-size: 15.5px; }

  .brand-mark { width: 32px; height: 32px; border-radius: 10px; font-size: 17px; }
  .brand-name { font-size: 1.25rem; }

  .android-pill { padding: 8px 12px; font-size: 12px; }
  .nav-toggle { padding: 8px 10px; }
  .nav-toggle-label { display: none; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-contact-line .label { min-width: 60px; }
}

/* ---------- 19. 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  [data-reveal] { opacity: 1; transform: none; }

  .android-pill-dot { animation: none; }
}
