/* ==========================================================================
   小恐龙公文排版助手 · gw.xkonglong.com
   静态站点样式表
   ========================================================================== */

:root {
  --brand: #b3262c;
  --brand-deep: #8d1c21;
  --brand-soft: #f4e5e4;
  --gold: #b9905b;
  --bg: #faf8f4;
  --bg-alt: #f3efe7;
  --surface: #ffffff;
  --surface-soft: #fbfaf7;
  --ink: #1d1f24;
  --ink-soft: #585e68;
  --ink-mute: #8a9098;
  --line: #e7e1d5;
  --line-strong: #d8d0c0;
  --shadow-sm: 0 1px 2px rgba(29, 31, 36, 0.05);
  --shadow-md: 0 10px 30px -12px rgba(29, 31, 36, 0.16);
  --shadow-lg: 0 30px 60px -30px rgba(29, 31, 36, 0.28);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 66px;
  --serif: "Songti SC", "STSong", "STZhongsong", "Source Han Serif SC", "Noto Serif SC", "SimSun", Georgia, serif;
  --sans: "Inter", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  color-scheme: light;
}

[data-theme="dark"] {
  --brand: #e2605f;
  --brand-deep: #ef7a79;
  --brand-soft: #3a2323;
  --gold: #c8a374;
  --bg: #121417;
  --bg-alt: #171a1f;
  --surface: #1b1e24;
  --surface-soft: #191c22;
  --ink: #eae7e0;
  --ink-soft: #aeb4bd;
  --ink-mute: #7d838c;
  --line: #2a2e36;
  --line-strong: #383d47;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

img { max-width: 100%; }

::selection { background: var(--brand); color: #fff; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}
.container-narrow { max-width: 900px; }

/* ---------- 顶部导航 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand) 22%, transparent 60%);
  opacity: .85;
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }

.brand-seal {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45), var(--shadow-sm);
  transition: transform .25s ease;
}
.brand:hover .brand-seal { transform: rotate(-4deg) scale(1.03); }

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: .5px;
  font-weight: 600;
}
.brand-sub {
  font-size: 10.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav a {
  color: var(--ink-soft);
  font-size: 14.5px;
  padding: 7px 12px;
  border-radius: 8px;
  transition: color .18s, background .18s;
}
.nav a:hover { color: var(--ink); background: var(--bg-alt); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--brand); font-weight: 600; }

.nav-tools { display: flex; align-items: center; gap: 6px; margin-left: 10px; }

.icon-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color .18s, color .18s, transform .18s;
}
.icon-btn:hover { border-color: var(--line-strong); color: var(--ink); }
.icon-btn svg { width: 17px; height: 17px; display: block; }

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 15px;
  border-radius: 9px;
  background: var(--brand);
  color: #fff !important;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: background .18s, transform .18s;
}
.btn-nav:hover { background: var(--brand-deep); text-decoration: none; transform: translateY(-1px); }
.btn-nav svg { width: 14px; height: 14px; flex-shrink: 0; }

.burger { display: none; }

/* ---------- 通用区块 ---------- */

.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 720px; margin-bottom: 44px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--brand);
  opacity: .7;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.35;
  letter-spacing: .5px;
  margin: 0 0 12px;
  font-weight: 600;
}
.section-desc { color: var(--ink-soft); margin: 0; font-size: 15.5px; }

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 90px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(1100px 460px at 78% -10%, color-mix(in srgb, var(--brand) 9%, transparent), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(820px 520px at 50% 0%, #000 10%, transparent 75%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.hero-badge b {
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 999px;
  padding: 1px 9px;
  font-size: 11.5px;
  letter-spacing: .4px;
  font-weight: 600;
}
.hero-badge i {
  font-style: normal;
  width: 1px;
  height: 12px;
  background: var(--line-strong);
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.2vw, 47px);
  line-height: 1.25;
  letter-spacing: 1px;
  margin: 0 0 8px;
  font-weight: 600;
}
.hero h1 em {
  font-style: normal;
  color: var(--brand);
}
.hero-sub-en {
  font-size: 13px;
  letter-spacing: 3.4px;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 20px;
}
.hero-lead {
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0 0 30px;
  max-width: 490px;
}
.hero-lead strong { color: var(--ink); font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, background .18s, border-color .18s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 24px -14px color-mix(in srgb, var(--brand) 80%, transparent);
}
.btn-primary:hover { background: var(--brand-deep); }
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn svg { width: 16px; height: 16px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 13px;
  color: var(--ink-mute);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 14px; height: 14px; color: var(--brand); opacity: .85; }

/* 首屏截图 */
.hero-visual { position: relative; }

.window {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); display: block; }
.dots i:nth-child(1) { background: #d9776f; }
.dots i:nth-child(2) { background: #dcb765; }
.dots i:nth-child(3) { background: #7aa87b; }
.window-title {
  font-size: 11.5px;
  color: var(--ink-mute);
  letter-spacing: .4px;
  margin: 0 auto;
  padding-right: 26px;
}
.window img { display: block; width: 100%; height: auto; }

.hero-stamp {
  position: absolute;
  right: -18px;
  bottom: -26px;
  width: 78px;
  height: 78px;
  border-radius: 12px;
  border: 2px solid color-mix(in srgb, var(--brand) 55%, transparent);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.15;
  text-align: center;
  letter-spacing: 1px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  transform: rotate(-8deg);
  opacity: .9;
  backdrop-filter: blur(2px);
}

/* 数据条 */
.fact-bar {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.fact {
  padding: 26px 8px 26px 0;
  border-right: 1px solid var(--line);
  padding-left: 26px;
}
.fact:last-child { border-right: 0; }
.fact strong {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: .5px;
  color: var(--ink);
}
.fact span { font-size: 12.5px; color: var(--ink-mute); letter-spacing: .5px; }

/* ---------- 功能卡片 ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 30px;
  transition: transform .25s cubic-bezier(.2, .8, .3, 1), box-shadow .25s, border-color .25s;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.card:hover .card-icon { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  margin-bottom: 18px;
  transition: color .25s, border-color .25s;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 {
  font-family: var(--serif);
  font-size: 18px;
  margin: 0 0 8px;
  letter-spacing: .5px;
  font-weight: 600;
}
.card p { margin: 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.7; }

/* ---------- 截图 ---------- */

.shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.shot {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
  margin: 0;
  display: block;
}
.shot:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.shot-img {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  height: 340px;
  display: grid;
  place-items: center;
  padding: 14px;
  overflow: hidden;
}
.shot-img img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 6px 18px -10px rgba(0, 0, 0, .3);
}
.shot-meta { padding: 16px 20px 18px; }
.shot-meta h4 { margin: 0 0 4px; font-size: 15px; letter-spacing: .5px; font-family: var(--serif); font-weight: 600; }
.shot-meta p { margin: 0; font-size: 13px; color: var(--ink-mute); }

/* ---------- 快速上手 ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.step { padding: 30px 28px; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
.step-num {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--brand);
  margin-bottom: 12px;
  display: block;
}
.step h4 { margin: 0 0 8px; font-size: 16.5px; font-family: var(--serif); font-weight: 600; letter-spacing: .5px; }
.step p { margin: 0; font-size: 14px; color: var(--ink-soft); }

.notice {
  display: flex;
  gap: 14px;
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  background: var(--surface);
  font-size: 14px;
  color: var(--ink-soft);
}
.notice svg { width: 18px; height: 18px; color: var(--brand); flex-shrink: 0; margin-top: 3px; }
.notice div p { margin: 0; }
.notice div p + p { margin-top: 4px; }

/* ---------- 下载 ---------- */

.downloads {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.dl {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.dl:hover {
  text-decoration: none;
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.dl-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bg-alt);
  display: grid;
  place-items: center;
  color: var(--brand);
  flex-shrink: 0;
}
.dl-icon svg { width: 20px; height: 20px; }
.dl-body { flex: 1; min-width: 0; }
.dl-body strong { display: block; font-size: 15.5px; font-weight: 600; letter-spacing: .3px; }
.dl-body span { font-size: 12.5px; color: var(--ink-mute); }
.dl-arrow { color: var(--ink-mute); transition: transform .2s, color .2s; }
.dl-arrow svg { width: 16px; height: 16px; display: block; }
.dl:hover .dl-arrow { color: var(--brand); transform: translateX(3px); }

/* ---------- 文档卡片 ---------- */

.doc-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.doc-card {
  display: flex;
  flex-direction: column;
  padding: 24px 24px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.doc-card:hover { text-decoration: none; border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.doc-card .tag {
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}
.doc-card h4 { margin: 0 0 6px; font-family: var(--serif); font-size: 17px; font-weight: 600; letter-spacing: .5px; }
.doc-card p { margin: 0 0 16px; font-size: 13.5px; color: var(--ink-soft); flex: 1; }
.doc-card .more { font-size: 13px; color: var(--ink-mute); display: inline-flex; align-items: center; gap: 5px; }
.doc-card .more svg { width: 14px; height: 14px; }

/* ---------- 赞赏 ---------- */

.donate {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 44px;
  align-items: center;
  padding: 40px 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 200px at 90% 0%, color-mix(in srgb, var(--brand) 7%, transparent), transparent 70%),
    var(--surface);
}
.donate h3 { font-family: var(--serif); font-size: 24px; margin: 0 0 10px; font-weight: 600; letter-spacing: .5px; }
.donate p { margin: 0 0 8px; color: var(--ink-soft); font-size: 14.5px; }
.donate small { color: var(--ink-mute); font-size: 12.5px; }
.donate-qr { text-align: center; }
.donate-qr img {
  width: 100%;
  max-width: 210px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px;
}
.donate-qr span { display: block; font-size: 12px; color: var(--ink-mute); margin-top: 8px; letter-spacing: 1px; }

/* ---------- 页脚 ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 54px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { margin: 0 0 6px; font-size: 13.5px; color: var(--ink-soft); max-width: 330px; }
.footer-col h5 {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 14px;
  font-weight: 600;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: var(--ink-soft); font-size: 13.5px; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--ink-mute);
}
.footer-bottom span { letter-spacing: .3px; }
.footer-bottom a {
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-strong);
}
.footer-bottom a:hover {
  color: var(--brand);
  border-bottom-color: var(--brand);
  text-decoration: none;
}

/* ---------- 文档页 ---------- */

.doc-layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 56px;
  padding: 52px 0 90px;
}

.doc-aside { position: relative; }
.doc-aside-inner {
  position: sticky;
  top: calc(var(--header-h) + 26px);
  max-height: calc(100vh - var(--header-h) - 52px);
  overflow-y: auto;
  padding-right: 8px;
}
.doc-aside-inner::-webkit-scrollbar { width: 6px; }
.doc-aside-inner::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }

.aside-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 12px;
  padding-left: 12px;
}
.aside-nav { list-style: none; margin: 0 0 26px; padding: 0; border-left: 1px solid var(--line); }
.aside-nav li { margin: 0; }
.aside-nav a {
  display: block;
  padding: 7px 0 7px 14px;
  font-size: 13.5px;
  color: var(--ink-soft);
  border-left: 2px solid transparent;
  margin-left: -1px;
  transition: color .15s, border-color .15s;
  line-height: 1.5;
}
.aside-nav a:hover { color: var(--ink); text-decoration: none; }
.aside-nav a.active { color: var(--brand); border-left-color: var(--brand); font-weight: 600; }

.aside-links { padding-left: 12px; display: flex; flex-direction: column; gap: 8px; }
.aside-links a { font-size: 13px; color: var(--ink-mute); display: inline-flex; align-items: center; gap: 6px; }
.aside-links a:hover { color: var(--brand); }

.doc-main { min-width: 0; max-width: 820px; }

.doc-head { margin-bottom: 34px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.doc-head .eyebrow { margin-bottom: 10px; }
.doc-head h1 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.35;
  margin: 0 0 10px;
  letter-spacing: 1px;
  font-weight: 600;
}
.doc-head p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.prose { font-size: 16px; line-height: 1.85; color: var(--ink); }
.prose h2 {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: .8px;
  font-weight: 600;
  margin: 48px 0 16px;
  padding-top: 8px;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.prose h2:first-child { margin-top: 0; }
.prose h2::before {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  background: var(--brand);
  opacity: .75;
  margin-bottom: 14px;
}
.prose h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .5px;
  margin: 32px 0 10px;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.prose h4 { font-size: 16.5px; margin: 24px 0 8px; font-weight: 600; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 1.3em; }
.prose li { margin: 0 0 7px; }
.prose li::marker { color: var(--brand); }
.prose a { color: var(--brand); border-bottom: 1px solid color-mix(in srgb, var(--brand) 28%, transparent); }
.prose a:hover { text-decoration: none; border-bottom-color: var(--brand); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 22px auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.prose code {
  font-family: var(--mono);
  font-size: .88em;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
}
.prose pre {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  overflow-x: auto;
  margin: 0 0 20px;
}
.prose pre code { border: 0; background: none; padding: 0; }
.prose kbd {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  padding: 0 7px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
  margin: 0 2px;
}
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.prose blockquote {
  margin: 0 0 18px;
  padding: 12px 18px;
  border-left: 3px solid var(--line-strong);
  background: var(--surface-soft);
  color: var(--ink-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.note {
  display: block;
  margin: 22px 0;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 14.5px;
  color: var(--ink-soft);
}
.note p { margin: 0; }

/* 上一篇 / 下一篇 */
.doc-foot {
  margin-top: 60px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.doc-foot a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  min-width: 200px;
  color: var(--ink);
  transition: border-color .2s, transform .2s;
}
.doc-foot a:hover { text-decoration: none; border-color: var(--brand); transform: translateY(-2px); }
.doc-foot a small { font-size: 11.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink-mute); }
.doc-foot a strong { font-size: 14.5px; font-weight: 600; }
.doc-foot .next { text-align: right; margin-left: auto; }

/* ---------- 常见问题 ---------- */

.qa-search {
  position: relative;
  margin: 0 0 30px;
}
.qa-search svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--ink-mute);
}
.qa-search input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 44px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14.5px;
  font-family: var(--sans);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.qa-search input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent);
}
.qa-search input::placeholder { color: var(--ink-mute); }

.qa-group { margin-bottom: 12px; scroll-margin-top: calc(var(--header-h) + 24px); }
.qa-group h2 {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: .6px;
  margin: 44px 0 14px;
  font-weight: 600;
}
.qa-group h2::before {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  background: var(--brand);
  opacity: .75;
  margin-bottom: 13px;
}
.qa-intro { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 14px; }

details.qa {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  margin-bottom: 10px;
  transition: border-color .2s, box-shadow .2s;
}
details.qa[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
details.qa summary {
  list-style: none;
  cursor: pointer;
  padding: 15px 46px 15px 18px;
  position: relative;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.6;
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--ink-mute);
  border-bottom: 2px solid var(--ink-mute);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .25s;
}
details.qa[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details.qa .qa-body {
  padding: 2px 18px 18px;
  border-top: 1px solid var(--line);
  margin-top: 2px;
  padding-top: 14px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
details.qa .qa-body p { margin: 0 0 10px; }
details.qa .qa-body p:last-child { margin-bottom: 0; }
details.qa .qa-body img { margin: 14px auto; max-width: 100%; }
details.qa .qa-body a { color: var(--brand); }
details.qa .qa-body ul, details.qa .qa-body ol { margin: 0 0 10px; padding-left: 1.3em; }
details.qa .qa-body li { margin-bottom: 6px; }
details.qa .qa-body code { font-family: var(--mono); font-size: .88em; background: var(--bg-alt); border-radius: 4px; padding: 1px 5px; }
details.qa.is-hidden { display: none; }
.qa-empty { color: var(--ink-mute); font-size: 14px; padding: 14px 0; display: none; }

/* ---------- 更新日志 ---------- */

.log-layout { padding: 52px 0 90px; }
.log-head { max-width: 760px; margin-bottom: 40px; }
.log-head h1 { font-family: var(--serif); font-size: clamp(26px, 3.2vw, 34px); margin: 0 0 10px; letter-spacing: 1px; font-weight: 600; }
.log-head p { margin: 0; color: var(--ink-soft); }

.log-item {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 34px;
  padding: 26px 0 26px;
  border-top: 1px solid var(--line);
}
.log-item:first-of-type { border-top: 2px solid var(--brand); }
.log-meta { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; }
.log-version {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .3px;
  color: var(--ink);
  display: block;
}
.log-date { font-size: 12.5px; color: var(--ink-mute); margin-top: 4px; letter-spacing: .4px; }
.log-latest {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 1px;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 999px;
  padding: 2px 9px;
  font-weight: 600;
}
.log-body { font-size: 14.8px; line-height: 1.8; color: var(--ink-soft); }
.log-body ul { margin: 0; padding-left: 1.2em; }
.log-body li { margin-bottom: 5px; }
.log-body li::marker { color: var(--brand); }
.log-body p { margin: 0 0 8px; }
.log-body a { color: var(--brand); }
.log-body strong { color: var(--ink); }

/* ---------- 文档页响应式 / 滚动 ---------- */

.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-soft);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 40;
  box-shadow: var(--shadow-md);
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { color: var(--brand); }
.to-top svg { width: 16px; height: 16px; }

/* ---------- 响应式 ---------- */

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 46px; }
  .hero-stamp { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .fact-grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2n) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .doc-layout { grid-template-columns: 1fr; gap: 0; }
  .doc-aside { display: none; }
  .log-item { grid-template-columns: 1fr; gap: 10px; }
  .log-meta { position: static; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
  .donate { grid-template-columns: 1fr; padding: 32px; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .container { padding: 0 20px; }
  .nav { display: none; }
  .burger { display: grid; }
  .nav-tools { margin-left: auto; }
  .btn-nav { display: none; }
  .section { padding: 60px 0; }
  .hero { padding: 48px 0 60px; }
  .cards, .shots, .downloads, .doc-cards, .steps, .footer-grid { grid-template-columns: 1fr; }
  .shot-img { height: 260px; }
  .steps .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .steps .step:last-child { border-bottom: 0; }
  .fact-grid { grid-template-columns: 1fr 1fr; }
  .fact { padding: 18px 12px; text-align: center; }
  .fact strong { font-size: 17px; letter-spacing: .2px; }
  .fact span { font-size: 11.5px; }
  .hero h1 { font-size: 30px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .doc-layout { padding: 30px 0 60px; }
  .donate-qr img { max-width: 160px; }
  .to-top { right: 16px; bottom: 16px; }
}

/* 移动端抽屉 */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 55;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: 10px 20px 18px;
  display: none;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 11px 4px;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu a:hover { text-decoration: none; color: var(--brand); }

@media print {
  .site-header, .site-footer, .to-top, .doc-aside { display: none !important; }
  body { background: #fff; }
}
