/* ============================================================
   乐道赛场 · 共享样式 /assets/site.css
   夜岩赛道 + 纸质战报卡片 + 双色数据高亮
   ============================================================ */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, video, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #0A1A2F;
  --panel: #12294A;
  --line: #1E3A63;
  --orange: #FF6B1A;
  --lime: #C8FF3D;
  --paper: #EDE7D8;
  --rock: #8A99AD;
  --amber: #F2B441;
  --moss: #4E7A5E;
  --clay: #C2543A;
  --deep: #071120;

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

  --shell: 1220px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 112px;
  --edge: 2px;
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--paper);
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 560px at 84% -8%, rgba(255, 107, 26, .13), transparent 62%),
    radial-gradient(760px 420px at 4% 2%, rgba(200, 255, 61, .07), transparent 58%),
    repeating-linear-gradient(0deg, rgba(30, 58, 99, .3) 0 1px, transparent 1px 84px),
    repeating-linear-gradient(90deg, rgba(30, 58, 99, .24) 0 1px, transparent 1px 84px);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -.02em;
  line-height: 1.15;
  color: var(--paper);
}
h1 { font-size: clamp(30px, 5vw, 58px); }
h2 { font-size: clamp(24px, 3.4vw, 38px); }
h3 { font-size: clamp(19px, 2.2vw, 26px); }
p { text-wrap: pretty; }
::selection { background: var(--lime); color: #08131f; }
#main-content { display: block; scroll-margin-top: 128px; }

/* ---------- 4. 焦点与动效基线 ---------- */
:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .read-progress__bar { transition: none; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ---------- 5. 布局容器 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(32px, 5vw, 68px); }
.section--tight { padding-block: clamp(18px, 3vw, 32px); }

.grid { display: grid; gap: clamp(14px, 2vw, 24px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--bento { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

/* ---------- 6. Skip link ---------- */
.skip-link {
  position: fixed;
  left: 12px;
  top: -96px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--lime);
  color: #08131f;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .02em;
  border-radius: 2px;
  box-shadow: 3px 3px 0 var(--orange);
  transition: top .16s ease-out;
}
.skip-link:focus { top: 12px; }

/* ---------- 7. 阅读进度条 ---------- */
.read-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  background: rgba(30, 58, 99, .8);
  z-index: 130;
}
.read-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--orange) 0%, var(--orange) 62%, var(--lime) 100%);
  transition: width .12s linear;
}

/* ---------- 8. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  isolation: isolate;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(3, 8, 16, .55);
}
.header-top {
  position: relative;
  z-index: 120;
  background: linear-gradient(180deg, rgba(18, 41, 74, .94), rgba(10, 26, 47, .97));
  border-bottom: 1px solid var(--line);
  transition: background .16s ease-out;
}
.header-top__inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 28px);
  padding-block: 14px;
  padding-top: 17px;
  transition: padding .16s ease-out;
}

/* 品牌 */
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  background: var(--orange);
  transform: skewX(-8deg);
  box-shadow: 3px 3px 0 rgba(200, 255, 61, .85);
  transition: width .16s ease-out, height .16s ease-out;
}
.brand__mark-core {
  display: block;
  width: 12px;
  height: 12px;
  background: var(--ink);
  transform: skewX(8deg);
}
.brand__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.brand__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -.02em;
  line-height: 1.15;
  color: var(--paper);
  transition: font-size .16s ease-out;
}
.brand__tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .16em;
  line-height: 1.4;
  color: var(--rock);
  white-space: nowrap;
}

/* 快捷入口 */
.header-quick { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.quick-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  line-height: 1.4;
  border: 1px solid var(--line);
  border-radius: var(--edge);
  white-space: nowrap;
  transition: transform .16s ease-out, background .16s ease-out, border-color .16s ease-out, box-shadow .16s ease-out, color .16s ease-out;
}
.quick-btn--ghost { color: var(--paper); background: transparent; border-color: var(--line); }
.quick-btn--ghost:hover { color: var(--lime); border-color: var(--lime); }
.quick-btn--solid {
  color: #08131f;
  font-weight: 700;
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 3px 3px 0 rgba(200, 255, 61, .85);
}
.quick-btn--solid:hover { transform: translateY(-2px); box-shadow: 5px 5px 0 var(--lime); }

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: var(--edge);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--paper);
  transition: border-color .16s ease-out, color .16s ease-out;
}
.nav-toggle:hover { border-color: var(--lime); color: var(--lime); }
.nav-toggle__bars { position: relative; display: block; width: 18px; height: 2px; background: var(--lime); transition: background .16s ease-out; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--lime);
  transition: transform .18s ease-out;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.site-header[data-open] .nav-toggle__bars { background: transparent; }
.site-header[data-open] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }
.nav-toggle__label { line-height: 1; }

/* 栏目带 */
.header-nav { position: relative; background: var(--ink); }
.header-nav__inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 42px);
  min-height: 52px;
}
.header-nav__quick { display: none; }
.nav-list { display: flex; align-items: center; gap: clamp(2px, 1.4vw, 20px); flex-wrap: wrap; }
.nav-list__item { display: flex; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 12px 2px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--rock);
  transition: color .16s ease-out;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .16s ease-out;
}
.nav-link:hover { color: var(--paper); }
.nav-link:hover::after { transform: scaleX(1); background: var(--line); }
.nav-link__idx {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--rock);
  opacity: .8;
  transition: color .16s ease-out;
}
.nav-link__text { line-height: 1.4; }
.nav-link[aria-current="page"] { color: var(--paper); }
.nav-link[aria-current="page"] .nav-link__idx { color: var(--orange); opacity: 1; }
.nav-link[aria-current="page"]::after { transform: scaleX(1); background: var(--orange); }

.nav-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--rock);
  white-space: nowrap;
}
.nav-status__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(200, 255, 61, .18);
}

/* 遮罩（仅移动端可显） */
.nav-scrim {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 105;
  background: rgba(4, 10, 18, .72);
}

/* 收缩态 */
.site-header.is-condensed .header-top__inner { padding-block: 8px; padding-top: 12px; }
.site-header.is-condensed .brand__mark { width: 27px; height: 27px; }
.site-header.is-condensed .brand__name { font-size: 17px; }
.site-header.is-condensed .nav-link { padding-block: 9px; }
.site-header.is-condensed .header-nav__inner { min-height: 44px; }

/* ---------- 9. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  background: linear-gradient(180deg, #0A1A2F 0%, #081422 100%);
  border-top: 1px solid var(--line);
}
.footer-lane {
  height: 3px;
  background: linear-gradient(90deg, var(--orange) 0 20%, var(--lime) 20% 24%, var(--line) 24% 100%);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: clamp(22px, 3vw, 48px);
  padding-block: clamp(34px, 5vw, 60px) clamp(24px, 4vw, 44px);
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.brand--footer .brand__mark { width: 30px; height: 30px; }
.brand--footer .brand__name { font-size: 22px; }
.footer-claim {
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(237, 231, 216, .78);
}
.footer-icp {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--rock);
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: var(--edge);
}
.footer-col { display: flex; flex-direction: column; }
.footer-col__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: .18em;
  color: var(--amber);
}
.footer-col__title::before { content: ""; display: block; width: 14px; height: 2px; background: var(--orange); }
.footer-list { display: flex; flex-direction: column; gap: 9px; }
.footer-link {
  font-size: 14px;
  color: rgba(237, 231, 216, .82);
  transition: color .16s ease-out, padding-left .16s ease-out;
}
.footer-link:hover { color: var(--lime); padding-left: 4px; }
.footer-col--contact { gap: 6px; }
.footer-meta { font-size: 13.5px; line-height: 1.6; color: rgba(237, 231, 216, .84); }
.footer-meta--mono { font-family: var(--font-mono); font-size: 13px; letter-spacing: .02em; color: var(--paper); }
.footer-meta--note { font-size: 12.5px; color: var(--rock); margin-top: 2px; }
.footer-cta { margin-top: 14px; align-self: flex-start; }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-block: 16px 20px;
  border-top: 1px solid var(--line);
}
.footer-base__copy { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--rock); }
.footer-base__copy [data-year] { color: var(--lime); }
.footer-base__note { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; color: rgba(138, 153, 173, .8); }

/* ---------- 10. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: var(--edge);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .02em;
  transition: transform .16s ease-out, box-shadow .16s ease-out, background .16s ease-out, color .16s ease-out, border-color .16s ease-out;
}
.btn--primary {
  background: var(--orange);
  color: #08131f;
  border-color: var(--orange);
  box-shadow: 4px 4px 0 rgba(200, 255, 61, .75);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 6px 6px 0 var(--lime); }
.btn--ghost { color: var(--paper); background: transparent; }
.btn--ghost:hover { color: var(--lime); border-color: var(--lime); }
.btn--quiet { color: var(--rock); border-color: transparent; padding-inline: 4px; }
.btn--quiet:hover { color: var(--paper); }

/* ---------- 11. 面包屑 ---------- */
.breadcrumb { margin-block: clamp(14px, 2vw, 22px) 0; }
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--rock);
}
.breadcrumb__item { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb__item--current { color: var(--amber); }
.breadcrumb__link { color: var(--rock); transition: color .16s ease-out; }
.breadcrumb__link:hover { color: var(--lime); }
.breadcrumb__sep { color: var(--line); }

/* ---------- 12. 正文 ---------- */
.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.8;
  color: rgba(237, 231, 216, .9);
}
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(22px, 2.6vw, 30px); margin-top: 1.8em; }
.prose h3 { font-size: clamp(18px, 2vw, 22px); margin-top: 1.5em; }
.prose a { color: var(--lime); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.prose strong { color: var(--paper); font-weight: 800; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose ul li { list-style: none; position: relative; }
.prose ul li::before { content: ""; position: absolute; left: -1em; top: .72em; width: 6px; height: 6px; background: var(--orange); transform: skewX(-8deg); }

/* ---------- 13. 标题组 ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; margin-bottom: clamp(18px, 3vw, 32px); }
.section-head__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--lime);
  padding: 3px 9px;
  border: 1px solid rgba(200, 255, 61, .4);
  border-radius: var(--edge);
}
.section-head__title { flex: 1 1 320px; }
.section-head__lede { flex: 1 1 280px; max-width: 46ch; font-size: 15px; color: var(--rock); }

/* ---------- 14. 卡片 ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(16px, 2.2vw, 26px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--edge);
  box-shadow: 4px 4px 0 var(--deep);
  transition: transform .16s ease-out, box-shadow .16s ease-out, border-color .16s ease-out;
}
.card:hover { transform: translateY(-2px); border-color: rgba(255, 107, 26, .6); box-shadow: 6px 6px 0 rgba(255, 107, 26, .55); }
.card--focus { border-color: var(--orange); box-shadow: 6px 6px 0 var(--orange); background: linear-gradient(160deg, #16345c, #10233d 70%); }
.card--focus:hover { box-shadow: 8px 8px 0 var(--orange); }
.card--muted { background: rgba(18, 41, 74, .55); box-shadow: 4px 4px 0 rgba(7, 17, 32, .8); }
.card__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; color: var(--lime); }
.card__title { font-size: clamp(18px, 2vw, 24px); }
.card__text { font-size: 14.5px; line-height: 1.75; color: rgba(237, 231, 216, .8); }
.card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--rock);
}

/* ---------- 15. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  line-height: 1.6;
  color: var(--paper);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--edge);
}
.tag--orange { color: #ffc7a6; background: rgba(255, 107, 26, .14); border-color: rgba(255, 107, 26, .6); }
.tag--lime { color: var(--lime); background: rgba(200, 255, 61, .1); border-color: rgba(200, 255, 61, .5); }
.tag--amber { color: var(--amber); background: rgba(242, 180, 65, .12); border-color: rgba(242, 180, 65, .55); }
.tag--moss { color: #d3e8da; background: rgba(78, 122, 94, .32); border-color: var(--moss); }
.tag--clay { color: #f6d6cb; background: rgba(194, 84, 58, .3); border-color: var(--clay); }

/* ---------- 16. 数据 ---------- */
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--lime);
}
.stat__unit { margin-left: .18em; font-size: .46em; letter-spacing: .06em; color: var(--rock); }
.stat__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--rock); }

/* ---------- 17. 图片容器 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--edge);
  background-image:
    repeating-linear-gradient(135deg, rgba(30, 58, 99, .55) 0 2px, transparent 2px 18px),
    radial-gradient(120% 100% at 100% 0%, rgba(255, 107, 26, .28), transparent 55%),
    linear-gradient(150deg, #16345c 0%, #0A1A2F 68%);
  box-shadow: 4px 4px 0 var(--deep);
}
.media-frame__img { width: 100%; height: 100%; object-fit: cover; }
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 107, 26, .26) 0%, transparent 42%, rgba(10, 26, 47, .5) 76%, rgba(200, 255, 61, .14) 100%);
  mix-blend-mode: screen;
}
.media-frame__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  padding: 7px 12px;
  background: rgba(10, 26, 47, .88);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--lime);
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 4 / 5; }

/* ---------- 18. 旁注 ---------- */
.side-note {
  padding: 12px 16px;
  border-left: 3px solid var(--amber);
  background: rgba(30, 58, 99, .42);
  font-size: 14px;
  line-height: 1.75;
  color: rgba(237, 231, 216, .84);
}
.side-note__title {
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--amber);
}

/* ---------- 19. 章节导航（滚动高亮） ---------- */
.chapter-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.chapter-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--rock);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--edge);
  transition: color .16s ease-out, border-color .16s ease-out, background .16s ease-out;
}
.chapter-link::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
  transition: background .16s ease-out, transform .16s ease-out;
}
.chapter-link:hover { color: var(--paper); border-color: var(--rock); }
.chapter-link.is-active {
  color: var(--paper);
  background: rgba(255, 107, 26, .12);
  border-color: rgba(255, 107, 26, .7);
}
.chapter-link.is-active::before { background: var(--orange); transform: scale(1.06); }

/* ---------- 20. 入场 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease-out, transform .5s ease-out;
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 21. 工具类 ---------- */
.u-kicker { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .16em; color: var(--lime); }
.u-mono { font-family: var(--font-mono); font-size: 13px; letter-spacing: .02em; }
.u-lime { color: var(--lime); }
.u-orange { color: var(--orange); }
.u-muted { color: var(--rock); }

/* ---------- 22. 响应式 ---------- */
@media (max-width: 1180px) {
  .nav-status { display: none; }
}

@media (max-width: 1024px) {
  .header-quick { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-top__inner { padding-block: 12px; padding-top: 15px; gap: 12px; }

  .header-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 110;
    max-height: 84vh;
    overflow-y: auto;
    background: var(--ink);
    border-top: 3px solid var(--orange);
    border-radius: var(--edge) var(--edge) 0 0;
    box-shadow: 0 -22px 46px rgba(3, 8, 16, .74);
    transform: translateY(105%);
    visibility: hidden;
    transition: transform .28s cubic-bezier(.22, .86, .24, 1), visibility .28s;
  }
  .site-header[data-open] .header-nav { transform: translateY(0); visibility: visible; }
  .site-header[data-open] .nav-scrim { display: block; }

  .header-nav__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-height: 0;
    padding-block: 14px 22px;
  }
  .header-nav__quick {
    display: flex;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--line);
  }
  .header-nav__quick .quick-btn { flex: 1 1 0; padding: 12px 8px; font-size: 12.5px; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list__item { display: block; width: 100%; }
  .nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 13px 2px;
    font-size: 17px;
    border-bottom: 1px solid rgba(30, 58, 99, .7);
  }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] {
    padding-left: 12px;
    color: var(--paper);
    background: rgba(255, 107, 26, .1);
    box-shadow: inset 3px 0 0 var(--orange);
  }
  .nav-status {
    display: inline-flex;
    margin: 16px 0 0;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
    white-space: normal;
  }
  body.nav-open { overflow: hidden; }

  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .grid--bento > .span-5,
  .grid--bento > .span-6,
  .grid--bento > .span-7,
  .grid--bento > .span-8,
  .grid--bento > .span-12 { grid-column: span 6; }
  .grid--bento > .span-3,
  .grid--bento > .span-4 { grid-column: span 3; }

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

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .brand__name { font-size: 18px; }
  .brand__tag { letter-spacing: .12em; font-size: 10px; }
  .header-nav__quick { flex-direction: column; }
  .grid--2, .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .grid--bento { grid-template-columns: minmax(0, 1fr); }
  .grid--bento > .span-3,
  .grid--bento > .span-4,
  .grid--bento > .span-5,
  .grid--bento > .span-6,
  .grid--bento > .span-7,
  .grid--bento > .span-8,
  .grid--bento > .span-12 { grid-column: auto; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .footer-base { flex-direction: column; align-items: flex-start; }
  .section-head__title { flex: 1 1 100%; }
  .media-frame--wide { aspect-ratio: 16 / 10; }
}

@media (max-width: 380px) {
  .brand__tag { display: none; }
  .nav-toggle__label { display: none; }
}
