/* ============================================================
   乐道赛场 · /assets/site.css
   共享外壳：reset / tokens / 排版 / 头部 / 页脚 / 通用组件
   ============================================================ */

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

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

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

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

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

a { color: inherit; }

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

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

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

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #061114;
  --night: #0B1F2A;
  --pitch: #123B32;
  --grass: #1F6B52;
  --rock: #2E3A3D;
  --lime: #D7FF3F;
  --amber: #FF8A3D;
  --paper: #F4F0E6;
  --mist: #AEB9B6;
  --clay: #C46B4A;

  --line: rgba(215, 255, 63, 0.18);
  --line-soft: rgba(174, 185, 182, 0.18);

  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-pill: 999px;

  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Source Han Sans SC", "Microsoft YaHei", system-ui, -apple-system,
    "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular,
    Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --shell: min(1260px, calc(100% - clamp(28px, 7vw, 80px)));
  --header-h: 68px;
}

/* ---------- 3. Base & 中文排版 ---------- */
body {
  background-color: var(--night);
  background-image:
    radial-gradient(120% 70% at 88% -12%, rgba(31, 107, 82, 0.38), transparent 62%),
    radial-gradient(80% 60% at -10% 108%, rgba(6, 17, 20, 0.92), transparent 72%);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (min-width: 1280px) {
  body { font-size: 16.5px; }
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

#main-content {
  scroll-margin-top: calc(var(--header-h) + 18px);
}

.skip-link {
  position: absolute;
  top: -72px;
  left: 14px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 20px;
  border-radius: 0 0 var(--r-md) var(--r-md);
  background: var(--lime);
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  transition: top 0.18s var(--ease);
}

.skip-link:focus {
  top: 0;
}

/* ---------- 4. 布局工具 ---------- */
.wrap {
  width: var(--shell);
  margin-inline: auto;
}

.section {
  padding-block: clamp(44px, 7vw, 92px);
}

.section--pitch { background: var(--pitch); }
.section--rock  { background: var(--rock); }

.section--paper {
  background: var(--paper);
  color: #182322;
}

.section--paper .eyebrow { color: var(--pitch); }
.section--paper .lead { color: #3A4A47; }
.section--paper .rule {
  background: linear-gradient(90deg, rgba(18, 59, 50, 0.55), rgba(18, 59, 50, 0));
}

.grid {
  display: grid;
  gap: clamp(14px, 2vw, 24px);
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.bento {
  display: grid;
  gap: clamp(12px, 1.8vw, 20px);
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.bento > * { grid-column: span 12; }

@media (min-width: 720px) {
  .bento > *        { grid-column: span 6; }
  .bento-wide       { grid-column: span 12 !important; }
  .bento-half       { grid-column: span 6 !important; }
  .bento-third      { grid-column: span 4 !important; }
}

@media (min-width: 1024px) {
  .bento-focus  { grid-column: span 8 !important; }
  .bento-narrow { grid-column: span 4 !important; }
}

/* ---------- 5. 通用组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lime);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.85;
}

.h-display {
  font-size: clamp(2.25rem, 6vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  font-weight: 900;
}

.h-section {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  font-weight: 900;
}

.h-card {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.35;
  font-weight: 800;
}

.lead {
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.8;
  color: rgba(244, 240, 230, 0.82);
  max-width: 44ch;
}

.measure { max-width: 68ch; }

.rule {
  height: 1px;
  border: 0;
  margin-block: clamp(24px, 4vw, 44px);
  background: linear-gradient(90deg, rgba(215, 255, 63, 0.5), rgba(215, 255, 63, 0));
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
    color 0.18s var(--ease), border-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}

.btn--cta {
  background: var(--amber);
  color: var(--ink);
  box-shadow: 0 12px 28px -16px rgba(255, 138, 61, 0.95);
}

.btn--cta:hover,
.btn--cta:focus-visible {
  background: #FFA063;
  transform: translateY(-1px);
}

.btn--lime {
  background: var(--lime);
  color: var(--ink);
}

.btn--lime:hover,
.btn--lime:focus-visible {
  background: #E6FF7C;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(174, 185, 182, 0.45);
}

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

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 2px 12px;
  border-radius: var(--r-pill);
  background: rgba(174, 185, 182, 0.16);
  color: var(--mist);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.tag--lime { background: var(--lime); color: var(--ink); }
.tag--clay { background: rgba(196, 107, 74, 0.26); color: #EAB6A0; }
.tag--mint { background: rgba(31, 107, 82, 0.42); color: #BEEBD6; }

/* 面板 */
.panel {
  background: var(--pitch);
  border: 1px solid rgba(174, 185, 182, 0.12);
  border-radius: var(--r-xl);
  padding: clamp(20px, 3vw, 34px);
}

.panel--rock { background: var(--rock); }

.panel--paper {
  background: var(--paper);
  color: #16201F;
  border-color: rgba(18, 59, 50, 0.18);
}

.panel--lime {
  background: var(--lime);
  color: var(--ink);
  border-color: transparent;
}

/* 记分牌数据 */
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-family: var(--mono);
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--mist);
}

/* 图片容器基础规则 */
.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, var(--rock), var(--pitch) 62%, var(--night));
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 82% 0%, rgba(215, 255, 63, 0.16), transparent 62%);
  pointer-events: none;
}

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

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

@media (max-width: 640px) {
  .media-frame--hero { aspect-ratio: 4 / 3; }
}

/* 面包屑 */
.breadcrumb {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--mist);
}

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

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

.breadcrumb-list li + li::before {
  content: "/";
  color: rgba(174, 185, 182, 0.5);
}

.breadcrumb-list a {
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.breadcrumb-list a:hover,
.breadcrumb-list a:focus-visible {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

.breadcrumb-list [aria-current="page"] { color: var(--paper); }

/* 长文 */
.prose {
  max-width: 70ch;
  font-size: 16.5px;
  line-height: 1.85;
}

.prose > * + * { margin-top: 1.1em; }

.prose h2 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  margin-top: 1.9em;
}

.prose h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-top: 1.6em;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
  list-style: disc;
}

.prose ol { list-style: decimal; }

.prose a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--lime);
  text-underline-offset: 4px;
}

/* ---------- 6. 头部：左右分置的边线栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(6, 17, 20, 0.97), rgba(11, 31, 42, 0.93));
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
}

.header-inner {
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 26px);
  min-height: var(--header-h);
  padding-block: 10px;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  padding: 4px 2px;
  border-radius: var(--r-md);
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: block;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--pitch), var(--grass));
  box-shadow: inset 0 0 0 1px rgba(215, 255, 63, 0.32);
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-left: 2px solid var(--lime);
  border-bottom: 2px solid var(--lime);
  border-radius: 0 0 0 6px;
}

.brand-mark::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
}

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

.brand-name {
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 900;
  letter-spacing: 0.08em;
  transition: color 0.18s var(--ease);
}

.brand:hover .brand-name,
.brand:focus-visible .brand-name { color: var(--lime); }

.brand-tag {
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--mist);
  white-space: nowrap;
}

/* 主导航 */
.site-nav {
  display: block;
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  counter-reset: nav;
}

.nav-list > li { counter-increment: nav; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  color: var(--mist);
  font-size: 15px;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}

.nav-link::before {
  content: counter(nav, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(174, 185, 182, 0.55);
  transition: color 0.18s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--paper);
  background: rgba(31, 107, 82, 0.38);
}

.nav-link:hover::before,
.nav-link:focus-visible::before { color: var(--lime); }

.nav-link:hover::after,
.nav-link:focus-visible::after { transform: scaleX(1); }

.nav-link[aria-current="page"] {
  color: var(--paper);
  background: rgba(215, 255, 63, 0.14);
  box-shadow: inset 0 0 0 1px rgba(215, 255, 63, 0.5);
}

.nav-link[aria-current="page"]::before { color: var(--lime); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

/* 头部工具区 */
.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.round-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(215, 255, 63, 0.3);
  border-radius: var(--r-pill);
  background: rgba(215, 255, 63, 0.07);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

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

.round-chip-key { color: var(--mist); }

.round-chip-val {
  color: var(--lime);
  font-weight: 700;
}

@keyframes chip-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(215, 255, 63, 0.16); }
  50%      { box-shadow: 0 0 0 7px rgba(215, 255, 63, 0.04); }
}

.quick-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(174, 185, 182, 0.35);
  border-radius: var(--r-pill);
  color: var(--paper);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease),
    color 0.18s var(--ease);
}

.quick-link:hover,
.quick-link:focus-visible {
  background: rgba(31, 107, 82, 0.55);
  border-color: var(--lime);
  color: var(--lime);
}

.header-cta {
  padding-inline: 18px;
  font-size: 14px;
  white-space: nowrap;
}

/* 移动导航按钮（桌面隐藏） */
.nav-toggle { display: none; }

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 18px;
}

.nav-toggle-bars span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.22s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.nav-toggle-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
}

/* 边线进度条 */
.scroll-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  background: rgba(215, 255, 63, 0.12);
  pointer-events: none;
}

.scroll-rail-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--lime), var(--amber));
  transform: scaleX(0);
  transform-origin: left center;
}

/* ---------- 7. 页脚：看台台阶 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: clamp(44px, 6vw, 76px);
  padding-bottom: clamp(24px, 3vw, 38px);
  background: linear-gradient(180deg, var(--ink) 0%, #07171C 55%, var(--ink) 100%);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: repeating-linear-gradient(
    90deg,
    var(--lime) 0 26px,
    rgba(215, 255, 63, 0) 26px 54px
  );
  opacity: 0.4;
}

.footer-stands {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 0.7fr));
  gap: clamp(24px, 3.4vw, 52px);
  padding-bottom: clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--line-soft);
}

.footer-brand-name {
  margin-top: 14px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.footer-brand-line {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--lime);
}

.footer-summary {
  margin-top: 14px;
  max-width: 34ch;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--mist);
}

.footer-col-title {
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lime);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 14.5px;
  color: var(--mist);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: color 0.18s var(--ease), text-decoration-color 0.18s var(--ease);
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--paper);
  text-decoration-color: var(--lime);
}

.footer-reach {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 28px);
  padding-block: clamp(24px, 3.4vw, 40px);
  border-bottom: 1px solid var(--line-soft);
}

.footer-reach-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.footer-reach-key {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--mist);
}

.footer-reach-val {
  font-size: 15px;
  color: var(--paper);
  word-break: break-word;
}

.footer-note {
  grid-column: 1 / -1;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(174, 185, 182, 0.8);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  padding-top: clamp(18px, 2.6vw, 28px);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: rgba(174, 185, 182, 0.85);
}

.footer-legal { color: var(--mist); }

.footer-meta { margin-left: auto; }

/* ---------- 8. 滚动显现（页面阶段用 data-reveal） ---------- */
[data-reveal] {
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

[data-reveal].is-pending {
  opacity: 0;
  transform: translateY(14px);
}

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

/* ---------- 9. 响应式 ---------- */
@media (max-width: 1080px) {
  .quick-link { display: none; }
}

@media (max-width: 960px) {
  .footer-stands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-reach { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --header-h: 62px; }

  .header-inner {
    gap: 10px;
    padding-block: 9px;
  }

  .site-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    z-index: 75;
    margin: 0;
    padding: 12px;
    max-height: min(66vh, 520px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(215, 255, 63, 0.22);
    border-radius: var(--r-xl);
    background: linear-gradient(180deg, var(--pitch), var(--ink));
    box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.92);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(0.985);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease),
      visibility 0.22s var(--ease);
  }

  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 16px;
    color: var(--paper);
  }

  .nav-link::before {
    width: 22px;
    font-size: 11px;
  }

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

  .nav-toggle {
    position: fixed;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    z-index: 80;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 20px;
    border: 1px solid rgba(6, 17, 20, 0.25);
    border-radius: var(--r-pill);
    background: var(--lime);
    color: var(--ink);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.08em;
    box-shadow: 0 18px 40px -18px rgba(6, 17, 20, 0.95);
    cursor: pointer;
    transition: background-color 0.18s var(--ease), transform 0.18s var(--ease);
  }

  .nav-toggle:active { transform: scale(0.98); }

  .nav-toggle[aria-expanded="true"] { background: var(--paper); }

  .header-cta { min-height: 42px; padding-inline: 16px; }

  .site-footer {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 640px) {
  .round-chip { display: none; }
  .brand-tag { display: none; }
  .brand-mark { width: 36px; height: 36px; border-radius: 12px; }
  .header-cta { font-size: 13px; padding-inline: 14px; min-height: 40px; }
}

@media (max-width: 600px) {
  .footer-stands { grid-template-columns: 1fr; gap: 28px; }
  .footer-reach { grid-template-columns: 1fr; }
  .footer-meta { margin-left: 0; }
  .footer-summary { max-width: none; }
}

/* ---------- 10. 动效降级 ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@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;
  }

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

  .round-chip-dot { animation: none; }
}
