/* ============================================================
   火博看台 · 共享外壳样式 (site.css)
   夜间看台深底 + 熔岩橙导览轨道 + 青蓝数据线 + 暖纸阅读面
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

:root {
  /* 色彩 */
  --lava: #FF5A1F;
  --flame: #FF8A3D;
  --ink: #12100E;
  --ink-2: #1C1917;
  --paper: #F4EDE3;
  --cyan: #35D0E0;
  --ice: #A7F3F7;
  --ash: #8A8178;
  --red: #E8341C;
  --white: #FFFDF8;

  /* 字体 */
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Roboto Mono", "Courier New", monospace;

  /* 尺寸 */
  --shell: min(100% - 2rem, 1240px);
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --header-h: 62px;

  /* 动效 */
  --ease: cubic-bezier(.2, .7, .3, 1);
  --glow-lava: 0 16px 42px -20px rgba(255, 90, 31, .95);
  --glow-cyan: 0 14px 38px -20px rgba(53, 208, 224, .8);
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 118px;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 0.91rem + 0.18vw, 1.05rem);
  line-height: 1.7;
  color: var(--paper);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
a { color: inherit; }

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

/* ---------- 无障碍工具 ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -140%;
  z-index: 200;
  padding: .7rem 1.1rem;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(120deg, var(--lava), var(--flame));
  color: #12100E;
  font-weight: 800;
  font-size: .88rem;
  letter-spacing: .04em;
  text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ============================================================
   头部：双层信息导航 + 品牌轨道
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 1px solid rgba(255, 90, 31, .3);
  color: var(--paper);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(28, 25, 23, .95), rgba(18, 16, 14, .88));
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  pointer-events: none;
}

.site-header.is-scrolled {
  border-bottom-color: rgba(255, 90, 31, .62);
  box-shadow: 0 22px 46px -34px rgba(0, 0, 0, .95);
}

.header-inner {
  width: min(100% - 1.75rem, 1320px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand toggle"
    "nav nav";
  align-items: center;
  gap: .5rem 1rem;
  padding-block: .72rem .6rem;
}

/* 品牌轨道单元 */
.brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  gap: .7rem;
  min-width: 0;
  text-decoration: none;
  color: var(--paper);
  padding-block: .1rem;
}

.brand-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--lava), var(--flame));
  color: #12100E;
  font-weight: 900;
  font-size: 1.2rem;
  line-height: 1;
  box-shadow: 0 0 0 1px rgba(255, 138, 61, .6), var(--glow-lava);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.brand:hover .brand-mark { transform: translateY(-2px) rotate(-3deg); }

.brand-copy { min-width: 0; display: block; }

.brand-name {
  display: block;
  font-weight: 900;
  font-size: 1.02rem;
  letter-spacing: .06em;
  line-height: 1.15;
  white-space: nowrap;
}

.brand-line {
  display: block;
  font-family: var(--font-mono);
  font-size: .67rem;
  letter-spacing: .05em;
  color: var(--ash);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand--footer { grid-area: auto; margin-bottom: 1.1rem; }
.brand--footer .brand-name { font-size: 1.1rem; }

/* 移动端开关 */
.nav-toggle {
  grid-area: toggle;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 90, 31, .5);
  background: rgba(255, 90, 31, .12);
  color: var(--paper);
  font-size: .8rem;
  letter-spacing: .1em;
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.nav-toggle:hover { background: rgba(255, 90, 31, .22); }

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 16px;
  height: 12px;
}
.nav-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--lava);
  transition: transform .26s var(--ease), opacity .2s var(--ease);
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 5px; }
.nav-toggle-bars span:nth-child(3) { top: 10px; }
body[data-nav-open] .nav-toggle-bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body[data-nav-open] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
body[data-nav-open] .nav-toggle-bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* 导航轨道 */
.primary-nav { grid-area: nav; }

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.nav-list a {
  display: block;
  padding: .62rem .95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--paper);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), box-shadow .25s var(--ease);
}
.nav-list a:hover {
  color: var(--ice);
  background: rgba(53, 208, 224, .09);
  border-color: rgba(53, 208, 224, .42);
}
.nav-list a[aria-current="page"] {
  color: #12100E;
  background: linear-gradient(120deg, var(--lava), var(--flame));
  border-color: transparent;
  box-shadow: var(--glow-lava);
}

/* 工具区 */
.header-utility {
  grid-area: utility;
  display: none;
  align-items: center;
  gap: .45rem;
  justify-self: end;
}

.util-link, .util-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .38rem .72rem;
  border-radius: 999px;
  border: 1px solid rgba(244, 237, 227, .14);
  background: rgba(244, 237, 227, .05);
  color: rgba(244, 237, 227, .78);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.util-link:hover, .util-btn:hover {
  color: var(--ice);
  border-color: rgba(53, 208, 224, .55);
  background: rgba(53, 208, 224, .1);
}
.util-btn[aria-pressed="true"] {
  color: #12100E;
  background: linear-gradient(120deg, var(--lava), var(--flame));
  border-color: transparent;
}
.util-btn.is-active {
  color: var(--flame);
  border-color: rgba(255, 90, 31, .6);
}

/* 滚动进度 */
.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--lava), var(--flame) 46%, var(--cyan));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .14s linear;
  pointer-events: none;
}

/* 抽屉遮罩 */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 85;
  padding: 0;
  border: 0;
  background: rgba(18, 16, 14, .72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  cursor: pointer;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
}

/* ---------- 小屏：侧边抽屉 ---------- */
@media (max-width: 767px) {
  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(84vw, 340px);
    padding: 5.4rem 1.4rem 2.2rem;
    background: linear-gradient(180deg, #1C1917 0%, #12100E 72%);
    border-left: 1px solid rgba(255, 90, 31, .45);
    box-shadow: -34px 0 70px -34px rgba(0, 0, 0, .95);
    overflow-y: auto;
    visibility: hidden;
    transform: translateX(101%);
    transition: transform .34s var(--ease), visibility .34s var(--ease);
  }
  body[data-nav-open] .primary-nav { visibility: visible; transform: translateX(0); }
  body[data-nav-open] { overflow: hidden; }
  body[data-nav-open] .nav-scrim { opacity: 1; visibility: visible; }
  .nav-list a { font-size: 1rem; padding: .78rem 1rem; }
}

@media (min-width: 768px) {
  .nav-scrim { display: none; }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand utility"
      "nav nav";
    gap: .55rem 1.5rem;
    padding-block: 1rem .5rem;
  }

  .nav-toggle { display: none; }
  .header-utility { display: flex; }

  .primary-nav {
    position: relative;
    margin-top: .3rem;
    padding-top: .5rem;
    border-top: 1px solid rgba(244, 237, 227, .08);
  }
  .primary-nav::before {
    content: "";
    position: absolute;
    left: 0;
    top: -1px;
    width: 76px;
    height: 1px;
    background: linear-gradient(90deg, var(--lava), rgba(255, 90, 31, 0));
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: .3rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: .3rem;
    padding-right: .5rem;
  }
  .nav-list::-webkit-scrollbar { display: none; }
  .nav-list a {
    white-space: nowrap;
    padding: .46rem .88rem;
    font-size: .86rem;
  }
}

@media (min-width: 1120px) {
  .nav-list { gap: .45rem; }
  .nav-list a { font-size: .9rem; padding: .5rem 1rem; }
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: auto;
  padding-block: clamp(2.75rem, 6vw, 4.5rem) 1.75rem;
  background: linear-gradient(180deg, #1a1715 0%, #12100E 64%);
  border-top: 1px solid rgba(255, 90, 31, .28);
  color: var(--paper);
}

.footer-glow {
  position: absolute;
  z-index: -1;
  left: -14%;
  bottom: -58%;
  width: min(760px, 92vw);
  height: min(760px, 92vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 31, .3), rgba(255, 90, 31, 0) 68%);
  pointer-events: none;
}

.footer-inner {
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

.footer-note {
  max-width: 42ch;
  font-size: .92rem;
  color: rgba(244, 237, 227, .72);
}

.footer-tagline {
  margin-top: .9rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  color: var(--lava);
}

.footer-nav {
  display: grid;
  gap: 1.9rem 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-col-title {
  margin-bottom: .95rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: .6rem;
}

.footer-col a {
  display: inline-block;
  color: rgba(244, 237, 227, .86);
  font-size: .92rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.footer-col a:hover {
  color: var(--flame);
  border-bottom-color: var(--flame);
  transform: translateX(3px);
}

.footer-meta {
  grid-column: 1 / -1;
  margin-top: 1rem;
  padding-top: 1.4rem;
  border-top: 1px dashed rgba(138, 129, 120, .35);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.6rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .02em;
  color: var(--ash);
}
.footer-meta p { margin: 0; }
.footer-copy { color: rgba(138, 129, 120, .8); }

@media (min-width: 640px) {
  .footer-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
    gap: 3rem;
  }
  .footer-meta { margin-top: 2rem; }
}

/* ============================================================
   通用容器与区块
   ============================================================ */
.container { width: var(--shell); margin-inline: auto; }
.container--narrow { width: min(100% - 2rem, 780px); margin-inline: auto; }

.section { padding-block: clamp(3.5rem, 9vw, 7.5rem); }
.section--ink { background: var(--ink-2); color: var(--paper); }
.section--paper { background: var(--paper); color: var(--ink); }
.section--glass {
  background: rgba(244, 237, 227, .055);
  border-block: 1px solid rgba(244, 237, 227, .1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-mono);
  font-size: .71rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--lava);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--lava), rgba(255, 90, 31, 0));
}
.section--paper .eyebrow { color: #C63A0B; }

.display {
  font-size: clamp(2.1rem, 6.2vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.04;
}
.display em { font-style: normal; color: var(--lava); }
.section--paper .display em { color: #C63A0B; }

.lede {
  max-width: 62ch;
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  line-height: 1.85;
  color: rgba(244, 237, 227, .78);
}
.section--paper .lede { color: rgba(28, 25, 23, .78); }

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

.divider {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, rgba(255, 90, 31, .62), rgba(244, 237, 227, .08) 42%, transparent);
}

.stack { display: flex; flex-direction: column; gap: var(--stack-gap, 1rem); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }

/* ============================================================
   按钮
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .82rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn--primary {
  background: linear-gradient(120deg, var(--lava), var(--flame));
  color: #12100E;
  box-shadow: var(--glow-lava);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 22px 48px -18px rgba(255, 90, 31, 1); }
.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(244, 237, 227, .36);
}
.btn--ghost:hover { color: var(--ice); border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.btn--cyan {
  background: transparent;
  color: var(--cyan);
  border-color: rgba(53, 208, 224, .55);
}
.btn--cyan:hover { background: rgba(53, 208, 224, .12); box-shadow: var(--glow-cyan); }
.section--paper .btn--ghost { color: var(--ink); border-color: rgba(28, 25, 23, .28); }
.section--paper .btn--ghost:hover { color: #0d7f8b; border-color: #0d7f8b; }

/* ============================================================
   卡片 / 标签
   ============================================================ */
.card {
  position: relative;
  padding: clamp(1.15rem, 2.6vw, 1.75rem);
  border-radius: var(--radius-m);
  border: 1px solid rgba(244, 237, 227, .12);
  background: rgba(244, 237, 227, .05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.card--paper {
  background: var(--white);
  color: var(--ink);
  border-color: rgba(28, 25, 23, .1);
  box-shadow: 0 26px 56px -36px rgba(0, 0, 0, .8);
}
.card--accent {
  box-shadow: inset 3px 0 0 0 var(--lava);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .26rem .6rem;
  border-radius: 6px;
  border: 1px solid rgba(53, 208, 224, .35);
  background: rgba(53, 208, 224, .14);
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
}
.tag--hot {
  border-color: rgba(255, 90, 31, .42);
  background: rgba(255, 90, 31, .16);
  color: var(--flame);
}
.section--paper .tag { color: #0d7f8b; border-color: rgba(13, 127, 139, .35); background: rgba(13, 127, 139, .1); }

/* ============================================================
   网格
   ============================================================ */
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); }
.grid--rail { grid-template-columns: 1fr; }

@media (min-width: 1024px) {
  .grid--rail { grid-template-columns: 220px minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
}

/* ============================================================
   图片容器（页面阶段放置 <img> 用）
   ============================================================ */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-m);
  border: 1px solid rgba(244, 237, 227, .12);
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(140deg, rgba(255, 90, 31, .22), rgba(53, 208, 224, .14) 60%, rgba(18, 16, 14, .1)),
    linear-gradient(180deg, #1C1917, #12100E);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--screen { aspect-ratio: 9 / 16; max-width: 320px; }

/* ============================================================
   数据表
   ============================================================ */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-m);
}

.data-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: .9rem;
}
.data-table th, .data-table td {
  padding: .72rem .85rem;
  text-align: left;
  border-bottom: 1px solid rgba(244, 237, 227, .12);
}
.data-table th {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan);
}
.data-table td.num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.data-table tbody tr { transition: background .2s var(--ease); }
.data-table tbody tr:hover { background: rgba(244, 237, 227, .05); }

.section--paper .data-table th { color: #0d7f8b; }
.section--paper .data-table th,
.section--paper .data-table td { border-bottom-color: rgba(28, 25, 23, .12); }
.section--paper .data-table tbody tr:hover { background: rgba(28, 25, 23, .045); }

/* ============================================================
   面包屑
   ============================================================ */
.breadcrumbs {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .06em;
  color: var(--ash);
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: .4rem; }
.breadcrumbs li::after { content: "/"; color: rgba(138, 129, 120, .55); }
.breadcrumbs li:last-child::after { content: none; }
.breadcrumbs a { color: var(--ash); text-decoration: none; transition: color .2s var(--ease); }
.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs [aria-current="page"] { color: var(--paper); }
.section--paper .breadcrumbs [aria-current="page"] { color: var(--ink); }

/* ============================================================
   长文
   ============================================================ */
.prose { max-width: 70ch; }
.prose p { margin: 0 0 1.1em; line-height: 1.9; }
.prose h2 { margin: 2.2em 0 .6em; font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
.prose h3 { margin: 1.8em 0 .5em; font-size: 1.1rem; color: var(--lava); }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.section--paper .prose a { color: #0d7f8b; }

/* ============================================================
   小屏版密度切换（data-view-toggle 控制）
   ============================================================ */
body[data-view="compact"] .section { padding-block: clamp(2.1rem, 5vw, 4rem); }
body[data-view="compact"] .grid { gap: clamp(.6rem, 1.6vw, 1rem); }
body[data-view="compact"] .card { padding: .9rem 1.05rem; }
body[data-view="compact"] .display { font-size: clamp(1.7rem, 5vw, 3rem); }
body[data-view="compact"] .lede { font-size: .96rem; line-height: 1.68; }

/* ============================================================
   动效降级
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .primary-nav { transition: none !important; }
}
