/* ============================================================
   竞博品牌 · /assets/site.css
   共享层：reset / 变量 / 中文排版 / 页头 / 页脚 / 通用组件
   ============================================================ */

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

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

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

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

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

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

a { color: inherit; text-decoration: none; }

table { border-collapse: collapse; }

[hidden] { display: none !important; }

[id] { scroll-margin-top: 112px; }

/* ---------- 2. 变量 ---------- */
:root {
  --blue-900: #082A5E;
  --blue-700: #0F4C9A;
  --blue-500: #2E6FD6;
  --blue-100: #E8F0FB;
  --orange-500: #F26A2E;
  --orange-100: #FFE3D3;
  --mint-400: #2FE0B0;
  --paper: #F7F3EA;
  --ink: #101B2D;
  --slate: #6B7A90;

  --font-display: 'Noto Sans SC', 'Source Han Sans SC', 'PingFang SC', sans-serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;

  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --pill: 999px;

  --page-max: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-soft: 0 20px 44px -34px rgba(8, 42, 94, .5);
}

/* ---------- 3. 基础排版 ---------- */
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 12% -8%, rgba(46, 111, 214, .12), transparent 46%),
    radial-gradient(circle at 88% 4%, rgba(242, 106, 46, .10), transparent 40%),
    repeating-linear-gradient(0deg, rgba(15, 76, 154, .035) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(15, 76, 154, .035) 0 1px, transparent 1px 32px);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

::selection {
  background: var(--orange-100);
  color: var(--blue-900);
}

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

.site-footer :focus-visible {
  outline-color: var(--mint-400);
}

main { display: block; }

p + p { margin-top: .9em; }

strong, b { font-weight: 700; color: var(--blue-900); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 4. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 12px 22px;
  background: var(--blue-900);
  color: var(--paper);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 18px 40px -24px rgba(8, 42, 94, .8);
  transition: top .18s var(--ease);
}

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

/* ---------- 5. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  --progress: 0;
  background: linear-gradient(180deg, rgba(247, 243, 234, .97), rgba(247, 243, 234, .86));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 76, 154, .14);
  transition: background .25s var(--ease), border-color .25s var(--ease);
}

.site-header[data-scrolled="true"] {
  background: transparent;
  border-bottom-color: transparent;
}

.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 0 var(--pill) var(--pill) 0;
  background: linear-gradient(90deg, var(--blue-500) 0%, var(--mint-400) 62%, var(--orange-500) 100%);
  transform: scaleX(var(--progress));
  transform-origin: left center;
  transition: transform .1s linear;
  pointer-events: none;
}

.header-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 14px clamp(16px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid transparent;
  transition:
    margin .25s var(--ease),
    padding .25s var(--ease),
    background .25s var(--ease),
    border-radius .25s var(--ease),
    box-shadow .25s var(--ease),
    border-color .25s var(--ease);
}

.site-header[data-scrolled="true"] .header-inner {
  margin: 10px auto;
  padding: 8px 16px 8px 10px;
  background: rgba(255, 255, 255, .94);
  border-color: rgba(15, 76, 154, .16);
  border-radius: var(--pill);
  box-shadow: 0 18px 38px -26px rgba(8, 42, 94, .65);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  border-radius: var(--radius-sm);
}

.brand-glyph {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  background: linear-gradient(150deg, var(--blue-700), var(--blue-900) 70%);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  border-radius: 18px 6px 18px 18px;
  transition: transform .22s var(--ease);
}

.brand-mark:hover .brand-glyph { transform: rotate(-3deg) scale(1.03); }

.brand-glyph::after {
  content: "";
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mint-400);
  box-shadow: 0 0 0 3px var(--paper);
}

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

.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: .04em;
  line-height: 1.25;
  color: var(--blue-900);
}

.brand-sub {
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--slate);
  white-space: nowrap;
}

.version-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: var(--pill);
  background: var(--blue-100);
  border: 1px solid rgba(46, 111, 214, .24);
  color: var(--blue-700);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  white-space: nowrap;
}

.version-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-500);
  animation: version-pulse 2.6s ease-in-out infinite;
}

@keyframes version-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(.65); }
}

.header-nav-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.nav-link {
  position: relative;
  display: inline-block;
  padding: 9px 13px;
  border-radius: var(--pill);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--blue-900);
  white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible {
  background: var(--blue-100);
  color: var(--blue-700);
}

.nav-link[aria-current="page"] {
  background: var(--blue-900);
  color: var(--paper);
  font-weight: 700;
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange-500);
  transform: translateX(-50%);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--pill);
  background: var(--orange-500);
  color: var(--blue-900);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  box-shadow: 0 14px 26px -18px rgba(242, 106, 46, .95);
  transition: background .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}

.nav-cta::after {
  content: "→";
  font-family: var(--font-mono);
  font-size: 13px;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: #FF7D42;
  transform: translateY(-1px);
  box-shadow: 0 18px 30px -18px rgba(242, 106, 46, .95);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid rgba(15, 76, 154, .22);
  border-radius: var(--pill);
  background: #fff;
  color: var(--blue-900);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease);
}

.nav-toggle:hover { border-color: var(--blue-500); background: var(--blue-100); }

.nav-toggle-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .22s var(--ease);
}

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

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

/* ---------- 6. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 112px);
  padding: clamp(48px, 7vw, 84px) 0 0;
  overflow: hidden;
  color: var(--paper);
  background:
    radial-gradient(120% 90% at 10% 0%, #0d3a78 0%, #082A5E 56%, #061d44 100%);
}

.footer-rail {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background:
    repeating-linear-gradient(90deg, rgba(47, 224, 176, .85) 0 2px, transparent 2px 26px),
    linear-gradient(90deg, var(--orange-500) 0%, rgba(242, 106, 46, 0) 58%);
  opacity: .9;
}

.footer-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px) clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  gap: clamp(28px, 5vw, 64px);
}

.footer-lede {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 40ch;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(21px, 2.6vw, 27px);
  letter-spacing: .06em;
  color: var(--paper);
  border-radius: 8px;
}

.footer-brand::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--mint-400);
  box-shadow: 0 0 0 4px rgba(47, 224, 176, .16);
}

.footer-summary {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(247, 243, 234, .78);
}

.site-footer .chip-row { margin-top: 4px; }

.site-footer .chip {
  background: rgba(247, 243, 234, .1);
  border-color: rgba(247, 243, 234, .24);
  color: rgba(247, 243, 234, .86);
}

.site-footer .chip--mint {
  background: rgba(47, 224, 176, .16);
  border-color: rgba(47, 224, 176, .45);
  color: #8FF5D8;
}

.site-footer .chip--warm {
  background: rgba(242, 106, 46, .18);
  border-color: rgba(242, 106, 46, .45);
  color: #FFC7A8;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.footer-col--contact {
  grid-column: 1 / -1;
  padding-top: clamp(16px, 2vw, 24px);
  border-top: 1px solid rgba(247, 243, 234, .14);
}

.footer-col-title {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .28em;
  color: var(--mint-400);
  text-transform: uppercase;
}

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

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: rgba(247, 243, 234, .84);
  transition: color .18s var(--ease);
}

.footer-links a::before {
  content: "";
  width: 6px;
  height: 1px;
  background: rgba(242, 106, 46, .65);
  transition: width .18s var(--ease);
}

.footer-links a:hover,
.footer-links a:focus-visible { color: #fff; }

.footer-links a:hover::before,
.footer-links a:focus-visible::before { width: 16px; }

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

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  font-size: 14px;
  color: rgba(247, 243, 234, .84);
}

.meta-label {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: rgba(247, 243, 234, .52);
}

.meta-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums slashed-zero;
  word-break: break-all;
}

.copy-btn {
  padding: 3px 11px;
  border: 1px solid rgba(47, 224, 176, .5);
  border-radius: var(--pill);
  background: transparent;
  color: var(--mint-400);
  font-size: 11px;
  letter-spacing: .08em;
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}

.copy-btn:hover,
.copy-btn:focus-visible {
  background: rgba(47, 224, 176, .18);
}

.copy-btn[data-copied="true"] {
  background: var(--mint-400);
  border-color: var(--mint-400);
  color: #062A20;
}

.footer-note {
  max-width: 52ch;
  font-size: 12.5px;
  line-height: 1.8;
  color: rgba(247, 243, 234, .58);
}

.footer-base {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 18px clamp(16px, 4vw, 40px) 26px;
  border-top: 1px solid rgba(247, 243, 234, .14);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: rgba(247, 243, 234, .62);
}

.footer-copy { margin: 0; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-legal a {
  transition: color .18s var(--ease);
}

.footer-legal a:hover,
.footer-legal a:focus-visible { color: var(--paper); }

.footer-icp {
  padding: 3px 12px;
  border: 1px solid rgba(247, 243, 234, .22);
  border-radius: var(--pill);
  white-space: nowrap;
}

/* ---------- 7. 通用容器与章节 ---------- */
.container {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

.container--narrow { max-width: 760px; }
.container--wide { max-width: 1420px; }

.section {
  position: relative;
  padding-block: clamp(40px, 6vw, 88px);
}

.section-band {
  height: 10px;
  max-width: var(--page-max);
  margin: clamp(24px, 4vw, 48px) auto;
  border-radius: var(--pill);
  background: linear-gradient(90deg, var(--blue-700) 0%, var(--blue-100) 58%, transparent 100%);
}

.section-num {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .28em;
  color: var(--blue-500);
  text-transform: uppercase;
}

.section-num::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .28em;
  color: var(--slate);
  text-transform: uppercase;
}

.annotation {
  font-size: 12px;
  letter-spacing: .28em;
  color: var(--slate);
  text-transform: uppercase;
}

/* ---------- 8. 标题与文字 ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--blue-900);
}

.display--lg { font-size: clamp(36px, 7.4vw, 72px); }

.h-section {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3.4vw, 32px);
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--blue-900);
}

.lede {
  max-width: 62ch;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.85;
  color: #26364D;
}

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

.text-muted { color: var(--slate); }

/* ---------- 9. 面包屑 ---------- */
.breadcrumbs { padding-block: 18px; }

.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--slate);
}

.breadcrumbs-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs-item + .breadcrumbs-item::before {
  content: "/";
  color: rgba(107, 122, 144, .55);
}

.breadcrumbs-list a {
  color: var(--blue-700);
  border-radius: 4px;
}

.breadcrumbs-list a:hover,
.breadcrumbs-list a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumbs-current {
  color: var(--blue-900);
  font-weight: 700;
}

/* ---------- 10. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}

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

.btn--primary {
  background: var(--orange-500);
  color: var(--blue-900);
  box-shadow: 0 16px 30px -20px rgba(242, 106, 46, .95);
}

.btn--primary:hover,
.btn--primary:focus-visible { background: #FF7D42; }

.btn--solid {
  background: var(--blue-700);
  color: #fff;
}

.btn--solid:hover,
.btn--solid:focus-visible { background: var(--blue-500); }

.btn--ghost {
  background: #fff;
  color: var(--blue-900);
  border-color: rgba(15, 76, 154, .24);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--blue-100);
  border-color: var(--blue-500);
}

.btn--quiet {
  padding-inline: 6px;
  background: transparent;
  color: var(--blue-700);
}

.btn--quiet:hover,
.btn--quiet:focus-visible { color: var(--orange-500); }

/* ---------- 11. 标签 ---------- */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: var(--pill);
  border: 1px solid rgba(46, 111, 214, .2);
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 12.5px;
  letter-spacing: .04em;
}

.chip--warm {
  background: var(--orange-100);
  border-color: rgba(242, 106, 46, .28);
  color: #8A3410;
}

.chip--mint {
  background: rgba(47, 224, 176, .16);
  border-color: rgba(47, 224, 176, .5);
  color: #0A6B52;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint-400);
  box-shadow: 0 0 0 3px rgba(47, 224, 176, .22);
  vertical-align: middle;
}

/* ---------- 12. 网格与卡片 ---------- */
.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

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

.grid--offset {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.grid--offset > :nth-child(3n+2) { transform: translateY(28px); }

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid rgba(15, 76, 154, .12);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.card--tint {
  background: var(--blue-100);
  border-color: rgba(46, 111, 214, .18);
}

.card-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  line-height: 1.4;
  color: var(--blue-900);
}

.card-text {
  font-size: 15px;
  line-height: 1.8;
  color: #31435C;
}

.card-tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--blue-500);
}

/* ---------- 13. 图片容器 ---------- */
.figure {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 120px;
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--blue-100) 0%, #DBE7F8 46%, var(--orange-100) 100%);
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(15, 76, 154, .09) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(0deg, rgba(15, 76, 154, .09) 0 1px, transparent 1px 26px);
  opacity: .75;
}

.media-frame::after {
  content: "";
  position: absolute;
  left: 20px;
  bottom: 20px;
  width: 46px;
  height: 6px;
  border-radius: var(--pill);
  background: var(--orange-500);
}

.media-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.figure-caption {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--slate);
}

/* ---------- 14. 其他原子件 ---------- */
.divider {
  height: 1px;
  margin-block: clamp(24px, 4vw, 40px);
  border: 0;
  background: linear-gradient(90deg, rgba(15, 76, 154, .26), transparent);
}

.back-to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid rgba(15, 76, 154, .2);
  border-radius: var(--pill);
  background: rgba(255, 255, 255, .95);
  color: var(--blue-900);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
  box-shadow: 0 18px 40px -26px rgba(8, 42, 94, .8);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease), background .18s var(--ease), color .18s var(--ease);
}

.back-to-top[data-visible="true"] {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--blue-900);
  color: var(--paper);
}

/* ---------- 15. 滚动显现 / 章节激活 ---------- */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

.js-ready [data-reveal][data-revealed="true"] {
  opacity: 1;
  transform: none;
}

a[data-toc-link][data-active="true"] {
  color: var(--blue-900);
  font-weight: 700;
}

/* ---------- 16. 断点 ---------- */
@media (max-width: 1180px) {
  .version-chip { display: none; }
  .nav-link { font-size: 13.5px; padding: 8px 10px; }
  .nav-cta { padding: 9px 14px; font-size: 13px; }
}

@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }

  .primary-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
    max-height: calc(100vh - 130px);
    overflow: auto;
    background: #fff;
    border: 1px solid rgba(15, 76, 154, .16);
    border-radius: 26px;
    box-shadow: 0 34px 64px -34px rgba(8, 42, 94, .6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s linear;
  }

  .primary-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

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

  .nav-link {
    padding: 13px 16px;
    border-radius: 16px;
    font-size: 16px;
  }

  .nav-link[aria-current="page"]::after { display: none; }

  .nav-cta {
    justify-content: center;
    padding: 14px 18px;
    font-size: 15px;
  }

  .site-header[data-scrolled="true"] .header-inner {
    margin: 8px auto;
    padding: 8px 12px;
  }
}

@media (max-width: 960px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-lede { max-width: none; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--offset { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--offset > :nth-child(3n+2) { transform: none; }
  .grid--offset > :nth-child(2n) { transform: translateY(20px); }
}

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

  .brand-sub { display: none; }
  .brand-glyph { width: 40px; height: 40px; font-size: 18px; border-radius: 15px 5px 15px 15px; }
  .brand-name { font-size: 17px; }

  .nav-toggle { padding: 9px 14px; }
  .nav-toggle-label { font-size: 12px; }

  .footer-nav { grid-template-columns: minmax(0, 1fr); }
  .footer-base { justify-content: flex-start; }
  .footer-legal { gap: 6px 14px; }
}

@media (max-width: 640px) {
  .grid--2,
  .grid--3,
  .grid--offset { grid-template-columns: minmax(0, 1fr); }
  .grid--offset > :nth-child(2n) { transform: none; }
  .back-to-top { padding: 11px 15px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .version-dot { animation: none; }
  .js-ready [data-reveal] { opacity: 1; transform: none; }
  .grid--offset > :nth-child(3n+2),
  .grid--offset > :nth-child(2n) { transform: none; }
  .brand-mark:hover .brand-glyph { transform: none; }
}
