/* ============================================================
   bogou-app-entry.com.cn — /assets/site.css
   共享层：reset、变量、排版、头部、页脚、通用按钮与组件
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 18px);
  scroll-behavior: smooth;
}

body, h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font-family: inherit; }
table { border-collapse: collapse; }

:root {
  --ink: #070B0E;
  --panel: #0C1418;
  --panel-raised: #121D22;
  --line: #26363D;
  --line-strong: #34505A;
  --text: #EAF7F3;
  --text-soft: #C9DDD9;
  --text-muted: #9FB4B2;
  --mint: #35F2C4;
  --mint-bright: #A8FFE6;
  --amber: #FFB13B;
  --amber-soft: #FFD89B;

  --font-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "Cascadia Mono", "Cascadia Code",
    Consolas, "Liberation Mono", monospace;

  --shell: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 112px;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  background-color: var(--ink);
  background-image:
    radial-gradient(circle at 82% -8%, rgba(53, 242, 196, 0.10), transparent 48%),
    radial-gradient(circle at 4% 24%, rgba(255, 177, 59, 0.055), transparent 44%),
    repeating-linear-gradient(0deg, rgba(38, 54, 61, 0.34) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(90deg, rgba(38, 54, 61, 0.34) 0 1px, transparent 1px 72px);
  background-attachment: fixed, fixed, scroll, scroll;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(53, 242, 196, 0.28); color: #04120E; }

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

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

.mono,
code, kbd, samp, pre {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* ---------------- Shell ---------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.page-wrap { padding-block: clamp(28px, 4.5vw, 56px); }

/* ---------------- Skip link ---------------- */
.skip-link {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 999;
  transform: translate(-50%, -160%);
  padding: 10px 22px;
  border-radius: 0 0 10px 10px;
  background: var(--mint);
  color: #04120E;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 200ms ease;
}
.skip-link:focus,
.skip-link:focus-visible { transform: translate(-50%, 0); outline: none; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: linear-gradient(180deg, rgba(12, 20, 24, 0.97) 0%, rgba(7, 11, 14, 0.95) 100%);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* --- 上层：品牌说明 --- */
.header-upper { border-bottom: 1px solid rgba(38, 54, 61, 0.65); }

.header-upper-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding-block: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}

.brand-mark {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(140deg, var(--mint) 0%, #0F6F5B 78%);
  box-shadow:
    0 0 0 1px rgba(53, 242, 196, 0.45),
    0 0 18px rgba(53, 242, 196, 0.22);
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1.5px solid #04120E;
  border-radius: 2px;
  transform: rotate(45deg);
}

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

.brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

.brand-tagline {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18, 29, 34, 0.66);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  white-space: nowrap;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px rgba(53, 242, 196, 0.85);
  animation: pulse-dot 2.6s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.32; }
}

.version-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border: 1px solid rgba(255, 177, 59, 0.36);
  border-radius: 6px;
  background: rgba(255, 177, 59, 0.10);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--amber-soft);
  white-space: nowrap;
}

/* --- 下层：栏目导航 --- */
.header-lower { position: relative; }

.header-lower-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
}

.site-nav { display: block; }

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

.nav-item { display: flex; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 3px;
  height: 1px;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms ease;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(53, 242, 196, 0.06);
  border-color: rgba(53, 242, 196, 0.18);
}
.nav-link:hover::after { transform: scaleX(1); }

.nav-link[aria-current="page"] {
  color: var(--mint);
  background: rgba(53, 242, 196, 0.09);
  border-color: rgba(53, 242, 196, 0.30);
}
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

/* --- 移动导航按钮 --- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border: 1px solid rgba(53, 242, 196, 0.32);
  border-radius: 7px;
  background: rgba(53, 242, 196, 0.07);
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease;
}
.nav-toggle:hover { background: rgba(53, 242, 196, 0.15); border-color: var(--mint); }

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 200ms ease, top 200ms ease;
}
.nav-toggle-bars::before { top: 1px; }
.nav-toggle-bars::after { top: auto; bottom: 1px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%) rotate(-45deg);
}

.nav-toggle-label { line-height: 1; }

/* --- 阅读进度 --- */
.read-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}
.read-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--mint), var(--mint-bright));
  box-shadow: 0 0 10px rgba(53, 242, 196, 0.6);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(40px, 6vw, 84px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(12, 20, 24, 0.82) 0%, rgba(7, 11, 14, 1) 100%);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(53, 242, 196, 0.55), transparent);
  pointer-events: none;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.6fr);
  gap: clamp(28px, 5vw, 72px);
  padding-block: clamp(36px, 6vw, 68px) clamp(28px, 4vw, 52px);
}

.footer-brand {
  display: grid;
  gap: 14px;
  align-content: start;
}

.footer-mark {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(140deg, var(--mint) 0%, #0F6F5B 80%);
  box-shadow:
    0 0 0 1px rgba(53, 242, 196, 0.42),
    0 0 16px rgba(53, 242, 196, 0.18);
}

.footer-brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

.footer-brand-text {
  max-width: 34ch;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-muted);
}

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

.footer-col {
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
}

.footer-col-title {
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text);
}

.footer-list { display: grid; gap: 1px; }

.footer-link {
  display: inline-block;
  padding: 5px 0;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}
.footer-link:hover { color: var(--mint); transform: translateX(2px); }

.contact-list { display: grid; gap: 11px; }

.contact-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.contact-value {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text);
  word-break: break-word;
  min-width: 0;
}

.copy-btn {
  appearance: none;
  padding: 3px 9px;
  border: 1px solid rgba(53, 242, 196, 0.30);
  border-radius: 5px;
  background: rgba(53, 242, 196, 0.08);
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.6;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
.copy-btn:hover { background: rgba(53, 242, 196, 0.18); border-color: var(--mint); }
.copy-btn.is-done {
  background: var(--mint);
  border-color: var(--mint);
  color: #04120E;
}

.contact-note {
  margin-top: 4px;
  padding-left: 11px;
  border-left: 1px solid var(--line-strong);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-muted);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  padding-block: 18px 26px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
}

.icp { font-family: var(--font-mono); letter-spacing: 0.04em; }
.copyright { color: var(--text-muted); }

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.legal-links .footer-link { font-size: 12.5px; padding: 2px 0; }

/* ============================================================
   SHARED COMPONENTS
   ============================================================ */

/* --- 面包屑 --- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line-strong);
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color 180ms ease; }
.breadcrumb a:hover { color: var(--mint); }
.breadcrumb [aria-current="page"] { color: var(--text); }

/* --- 章节标题组 --- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--mint);
}

.section-head {
  display: grid;
  gap: 10px;
  max-width: 64ch;
  margin-bottom: clamp(18px, 2.6vw, 30px);
}

.section-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-desc {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted);
}

.divider {
  height: 1px;
  border: 0;
  margin: clamp(22px, 3.5vw, 38px) 0;
  background: linear-gradient(90deg, var(--line), transparent 82%);
}

/* --- 面板 --- */
.panel {
  position: relative;
  padding: clamp(18px, 2.8vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 29, 34, 0.86), rgba(12, 20, 24, 0.94));
  box-shadow:
    0 1px 0 rgba(168, 255, 230, 0.05) inset,
    0 22px 48px -36px rgba(0, 0, 0, 1);
}
.panel + .panel { margin-top: clamp(16px, 2.5vw, 28px); }

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.panel-index {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--mint);
}
.panel-index::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--mint);
}

.panel-title {
  font-size: clamp(19px, 2.2vw, 23px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text);
}

.panel-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted);
}
.panel-body p + p { margin-top: 0.9em; }

/* --- 网格 --- */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--aside {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}

.stack { display: grid; gap: clamp(14px, 2vw, 22px); align-content: start; }

/* --- 按钮 --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease,
    border-color 180ms ease, transform 180ms ease;
}

.btn--primary {
  background: var(--mint);
  color: #04120E;
  box-shadow: 0 8px 22px -12px rgba(53, 242, 196, 0.9);
}
.btn--primary:hover { background: var(--mint-bright); transform: translateY(-1px); }

.btn--ghost {
  background: rgba(53, 242, 196, 0.06);
  border-color: rgba(53, 242, 196, 0.36);
  color: var(--mint);
}
.btn--ghost:hover {
  background: rgba(53, 242, 196, 0.14);
  border-color: var(--mint);
  transform: translateY(-1px);
}

.btn--amber {
  background: rgba(255, 177, 59, 0.12);
  border-color: rgba(255, 177, 59, 0.40);
  color: var(--amber-soft);
}
.btn--amber:hover {
  background: rgba(255, 177, 59, 0.20);
  border-color: var(--amber);
  transform: translateY(-1px);
}

/* --- 标签 --- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid rgba(53, 242, 196, 0.34);
  border-radius: 999px;
  background: rgba(53, 242, 196, 0.08);
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  line-height: 1.7;
  white-space: nowrap;
}
.tag--amber {
  border-color: rgba(255, 177, 59, 0.42);
  background: rgba(255, 177, 59, 0.11);
  color: var(--amber-soft);
}

/* --- 更多链接 --- */
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(53, 242, 196, 0.35);
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease;
}
.link-more:hover { color: var(--mint-bright); border-bottom-color: var(--mint-bright); }

/* --- 旁注 --- */
.note {
  padding: 10px 0 10px 16px;
  border-left: 2px solid var(--amber);
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.78;
}

/* --- 图片容器基础规则 --- */
.figure-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(53, 242, 196, 0.08), transparent 56%),
    linear-gradient(180deg, var(--panel-raised), var(--panel));
}
.figure-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(38, 54, 61, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 54, 61, 0.55) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.30;
  pointer-events: none;
}
.figure-frame > img,
.figure-frame > svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.figure-frame--wide { aspect-ratio: 21 / 9; }
.figure-frame--square { aspect-ratio: 1 / 1; }

/* --- 固定目录 --- */
.toc {
  position: sticky;
  top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 29, 34, 0.9), rgba(12, 20, 24, 0.94));
}

.toc-title {
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.toc-list { display: grid; gap: 2px; }

.toc-list a {
  display: block;
  padding: 7px 10px;
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}
.toc-list a:hover { color: var(--text); background: rgba(53, 242, 196, 0.05); }
.toc-list a.is-active,
.toc-list a[aria-current="true"] {
  color: var(--mint);
  border-left-color: var(--mint);
  background: rgba(53, 242, 196, 0.08);
}

/* --- 表格 --- */
.table {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14.5px;
  line-height: 1.6;
}
.table th,
.table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.table th {
  background: var(--panel-raised);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.table tbody tr { transition: background-color 160ms ease; }
.table tbody tr:hover { background: rgba(53, 242, 196, 0.05); }
.table tbody tr:last-child td { border-bottom: 0; }

/* --- 正文 --- */
.prose {
  max-width: 70ch;
  font-size: 17px;
  line-height: 1.82;
  color: var(--text-soft);
}
.prose > * + * { margin-top: 1.05em; }
.prose h2 {
  margin-top: 1.9em;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text);
}
.prose h3 {
  margin-top: 1.6em;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}
.prose p { color: var(--text-soft); }
.prose ul { padding-left: 1.25em; list-style: disc; }
.prose ol { padding-left: 1.25em; list-style: decimal; }
.prose li + li { margin-top: 0.45em; }
.prose a {
  color: var(--mint);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.prose a:hover { color: var(--mint-bright); }
.prose strong { color: var(--text); font-weight: 600; }
.prose blockquote {
  padding: 12px 0 12px 18px;
  border-left: 2px solid var(--amber);
  color: var(--text-muted);
  font-size: 16px;
}
.prose code {
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel-raised);
  font-size: 0.92em;
  color: var(--amber-soft);
}

/* --- 进视口渐显 --- */
html[data-js="on"] [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 300ms ease, transform 300ms ease;
}
html[data-js="on"] [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-brand-text { max-width: 56ch; }
  .status-pill { display: none; }
}

@media (max-width: 960px) {
  :root { --header-h: 104px; }

  .header-upper-inner { min-height: 56px; padding-block: 9px; }
  .header-lower-inner { min-height: 48px; }

  .nav-toggle { display: inline-flex; margin-left: auto; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    padding: 10px var(--gutter) 20px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #0C1418 0%, #070B0E 100%);
    box-shadow: 0 26px 44px -26px rgba(0, 0, 0, 0.95);
  }
  .site-nav[data-open] { display: block; }

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

  .nav-link {
    padding: 12px 12px;
    font-size: 16px;
    border-radius: 8px;
  }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] {
    border-left: 2px solid var(--mint);
    border-radius: 0 8px 8px 0;
  }

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

  .toc { position: static; top: auto; }

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

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

  .brand-tagline { display: none; }
  .version-badge { font-size: 11px; padding: 5px 9px; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .contact-row { grid-template-columns: 30px minmax(0, 1fr) auto; }

  .figure-frame--wide { aspect-ratio: 16 / 10; }

  .table { font-size: 13.5px; }
  .table th, .table td { padding: 9px 11px; }
}

@media (max-width: 440px) {
  .header-meta { gap: 6px; }
  .btn { width: 100%; }
}

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

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

  .status-dot { animation: none; }

  html[data-js="on"] [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .footer-link:hover,
  .btn:hover { transform: none; }
}

@media (prefers-contrast: more) {
  :root {
    --line: #3E5A66;
    --text-muted: #C4D6D3;
  }
}
