/* ============================================================
   贵纸 GUIZHI · 官网样式
   设计语言沿用小程序令牌：深墨底 #14110C / 点金 #C9922E / 纸色 #F3EADA
   字体：标题用衬线（宋），正文用黑体
   ============================================================ */

:root {
  --ink: #14110c;
  --ink-2: #1e1a12;
  --ink-3: #0c0a07;
  --ink-4: #262116;
  --line: #2e281c;
  --line-soft: rgba(201, 146, 46, 0.16);
  --gold: #c9922e;
  --gold-light: #f0c45a;
  --gold-deep: #8a5a12;
  --paper: #f3eada;
  --warm-white: #faf7f0;
  --text: #f5f1e8;
  --text-sub: #a99f8c;
  --text-dim: #6e6555;
  --jade: #3f8f6b;
  --ember: #b4552b;
  --ember-text: #e8a582;
  --grad-gold: linear-gradient(135deg, #f0c45a 0%, #c9922e 45%, #8a5a12 100%);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
  --max: 1140px;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --nav-h: 68px;
}

* { box-sizing: border-box; }

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

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

/* 极淡的纸纹与金色光晕，纯 CSS，无外部图片 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1100px 600px at 78% -8%, rgba(201, 146, 46, 0.13), transparent 60%),
    radial-gradient(800px 520px at 8% 12%, rgba(243, 234, 218, 0.05), transparent 65%);
}

a {
  color: var(--gold-light);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}
a:hover { color: #ffd977; }

img, svg { max-width: 100%; }

::selection { background: rgba(201, 146, 46, 0.35); color: #fff; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 999;
  background: var(--gold);
  color: #241a05;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
}
.skip-link:focus { left: 16px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ---------------- 导航 ---------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 17, 12, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201, 146, 46, 0.14);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  flex: 0 0 auto;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #2a2317, #17130c);
  border: 1px solid rgba(201, 146, 46, 0.5);
  box-shadow: 0 0 18px rgba(201, 146, 46, 0.18);
}

.brand-mark span {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--gold-light);
  line-height: 1;
  transform: translateY(-1px);
}

.brand-name {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.16em;
}

.brand-en {
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--text-dim);
  margin-left: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  font-size: 14.5px;
}

.nav-links a {
  color: var(--text-sub);
  letter-spacing: 0.04em;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] {
  color: var(--gold-light);
  border-bottom-color: rgba(201, 146, 46, 0.6);
}

.nav-cta {
  margin-left: 8px;
  padding: 9px 18px !important;
  border: 1px solid rgba(201, 146, 46, 0.55) !important;
  border-radius: 999px;
  color: var(--gold-light) !important;
  font-size: 13.5px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.nav-cta:hover { background: rgba(201, 146, 46, 0.1); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  width: 40px;
  height: 36px;
  cursor: pointer;
}

/* ---------------- 通用排版 ---------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

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

h1 { font-size: clamp(34px, 5vw, 56px); }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: 20px; }

.lead {
  color: var(--text-sub);
  font-size: clamp(16px, 1.6vw, 18.5px);
  line-height: 1.9;
  max-width: 60ch;
}

.section {
  padding: 92px 0;
  border-top: 1px solid rgba(46, 40, 28, 0.65);
  position: relative;
}
.section.tight { padding: 64px 0; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head p { margin: 16px 0 0; }

.kicker {
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.18em;
  margin-top: 14px;
}

.gold-text {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------------- 按钮 ---------------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15px;
  letter-spacing: 0.05em;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-gold {
  background: var(--grad-gold);
  color: #241a05;
  box-shadow: 0 0 30px rgba(201, 146, 46, 0.25);
}
.btn-gold:hover {
  color: #241a05;
  transform: translateY(-2px);
  box-shadow: 0 0 42px rgba(201, 146, 46, 0.4);
}

.btn-ghost {
  position: relative;
  color: var(--paper);
  background: transparent;
}
.btn-ghost::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 0.5px solid rgba(201, 146, 46, 0.55);
  border-radius: 999px;
  pointer-events: none;
}
.btn-ghost:hover { background: rgba(201, 146, 46, 0.08); color: #fff; }

.btn-arrow { font-family: var(--sans); font-size: 13px; opacity: 0.8; }

/* ---------------- 首屏 ---------------- */
.hero {
  padding: 86px 0 76px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero h1 { margin: 0 0 22px; }

.hero .lead { margin: 0; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.badge {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--text-sub);
  border: 1px solid var(--line);
  background: rgba(30, 26, 18, 0.7);
  padding: 7px 14px;
  border-radius: 999px;
}
.badge strong { color: var(--gold-light); font-weight: 600; }

.hero-note {
  margin-top: 26px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.8;
}
.hero-note .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jade);
  margin-right: 8px;
  vertical-align: 2px;
}

/* 手机示意 */
.phone-wrap {
  display: flex;
  justify-content: center;
  position: relative;
}
.phone-wrap::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 146, 46, 0.18), transparent 65%);
  filter: blur(10px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.phone {
  width: 296px;
  border-radius: 34px;
  background: linear-gradient(170deg, #221c12, #12100a);
  border: 1px solid #3a3223;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), inset 0 0 0 6px #0b0906;
  padding: 18px 16px 20px;
  position: relative;
  z-index: 1;
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.phone-brand {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.18em;
  color: var(--gold-light);
}
.phone-sub { font-size: 10px; color: var(--text-dim); letter-spacing: 0.14em; }

.phone-quota {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.quota {
  background: #1a1610;
  border: 1px solid #2a2418;
  border-radius: 10px;
  padding: 9px 10px;
}
.quota-label { font-size: 9.5px; color: var(--text-dim); letter-spacing: 0.1em; }
.quota-num {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--paper);
  margin-top: 2px;
}
.quota-num small { font-size: 10px; color: var(--text-dim); }

.phone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cell {
  background: linear-gradient(160deg, #221d14, #191510);
  border: 1px solid #2e281c;
  border-radius: 12px;
  padding: 13px 12px 12px;
  min-height: 84px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cell-name { font-size: 13px; color: var(--paper); letter-spacing: 0.06em; }
.cell-count {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--gold-light);
  line-height: 1;
}
.cell-count small { font-size: 10px; color: var(--text-dim); margin-left: 3px; }
.cell.secret {
  border-color: rgba(201, 146, 46, 0.45);
  background: linear-gradient(160deg, rgba(201, 146, 46, 0.12), #191510);
}

.phone-caption {
  text-align: center;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 14px;
  letter-spacing: 0.06em;
}

/* ---------------- 事实条 ---------------- */
.fact-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(30, 26, 18, 0.6);
}
.fact {
  padding: 20px 22px;
  border-right: 1px solid var(--line);
}
.fact:last-child { border-right: 0; }
.fact dt {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--text-dim);
  margin: 0 0 6px;
}
.fact dd {
  margin: 0;
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}
.fact dd small { color: var(--text-sub); font-size: 12.5px; }

/* ---------------- 卡片 ---------------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: linear-gradient(165deg, rgba(34, 29, 20, 0.9), rgba(24, 20, 14, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 146, 46, 0.35), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.card:hover {
  border-color: rgba(201, 146, 46, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
}
.card:hover::before { opacity: 1; }

.card h3 { margin: 0 0 10px; font-size: 19px; }
.card p { margin: 0; color: var(--text-sub); font-size: 14.5px; line-height: 1.8; }
.card .card-meta {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

.card-num {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.14em;
  margin-bottom: 14px;
  display: block;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--gold-light);
}

/* 名单列表 */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative;
  padding: 9px 0 9px 26px;
  color: var(--text-sub);
  font-size: 14.8px;
  border-bottom: 1px dashed rgba(46, 40, 28, 0.75);
}
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
  content: "◆";
  position: absolute;
  left: 2px;
  top: 8px;
  font-size: 9px;
  color: var(--gold);
}
.check-list strong { color: var(--text); font-weight: 600; }

/* ---------------- 表格 ---------------- */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: auto;
  background: rgba(26, 22, 16, 0.6);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.2px;
  min-width: 620px;
}
caption {
  text-align: left;
  padding: 16px 20px 0;
  font-size: 12.5px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}
th, td {
  padding: 13px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(46, 40, 28, 0.8);
}
th {
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--gold);
  background: rgba(201, 146, 46, 0.06);
  white-space: nowrap;
}
td { color: var(--text-sub); }
td strong { color: var(--text); font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(201, 146, 46, 0.035); }

.tag {
  display: inline-block;
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(63, 143, 107, 0.45);
  color: #7ec4a1;
  white-space: nowrap;
}
.tag.plan {
  border-color: rgba(201, 146, 46, 0.4);
  color: var(--gold-light);
}
.tag.none {
  border-color: rgba(110, 101, 85, 0.6);
  color: var(--text-dim);
}

/* ---------------- 流程 ---------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: step;
  border-top: 1px solid var(--line);
}
.step {
  padding: 28px 24px 8px 0;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--serif);
  font-size: 34px;
  color: rgba(201, 146, 46, 0.35);
  display: block;
  margin-bottom: 12px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { margin: 0; font-size: 13.8px; color: var(--text-sub); }

/* ---------------- 安全页 ---------------- */
.pillar {
  border-left: 1px solid rgba(201, 146, 46, 0.35);
  padding: 4px 0 4px 22px;
}
.pillar h3 { font-size: 17.5px; margin-bottom: 8px; }
.pillar p { margin: 0; color: var(--text-sub); font-size: 14.5px; }

.note-box {
  border: 1px solid rgba(201, 146, 46, 0.3);
  background: rgba(201, 146, 46, 0.055);
  border-radius: var(--radius);
  padding: 22px 24px;
  font-size: 14.2px;
  color: var(--text-sub);
  line-height: 1.85;
}
.note-box strong { color: var(--gold-light); }
.note-box.warn {
  border-color: rgba(180, 85, 43, 0.45);
  background: rgba(180, 85, 43, 0.08);
}
.note-box.warn strong { color: var(--ember-text); }

/* ---------------- FAQ ---------------- */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}
.faq-item summary {
  cursor: pointer;
  padding: 18px 44px 18px 0;
  font-size: 16.5px;
  color: var(--text);
  list-style: none;
  position: relative;
  font-family: var(--serif);
  letter-spacing: 0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-52%);
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 300;
  color: var(--gold);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-body {
  padding: 0 12px 22px 0;
  color: var(--text-sub);
  font-size: 14.8px;
  line-height: 1.9;
  max-width: 78ch;
}
.faq-item .faq-body p { margin: 0 0 10px; }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* ---------------- 面包屑 ---------------- */
.breadcrumb {
  font-size: 12.5px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  padding: 26px 0 0;
}
.breadcrumb a { color: var(--text-sub); }
.breadcrumb span { margin: 0 8px; color: var(--text-dim); }

/* ---------------- 页脚 ---------------- */
.site-footer {
  border-top: 1px solid rgba(201, 146, 46, 0.18);
  padding: 56px 0 30px;
  background: var(--ink-3);
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
}
.footer-brand p {
  color: var(--text-dim);
  font-size: 13.2px;
  line-height: 1.9;
  max-width: 34ch;
  margin: 14px 0 0;
}
.footer-col h4 {
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin: 0 0 14px;
  font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: var(--text-sub); font-size: 13.6px; }
.footer-col a:hover { color: var(--gold-light); }

.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(46, 40, 28, 0.8);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: space-between;
  font-size: 12.2px;
  color: var(--text-dim);
  line-height: 1.9;
}
.footer-bottom .placeholder {
  color: #a08050;
  border-bottom: 1px dashed rgba(160, 128, 80, 0.6);
  padding-bottom: 1px;
}

/* 占位标记（备案信息等，待老板补充） */
.ph {
  display: inline-block;
  padding: 1px 8px;
  border: 1px dashed rgba(201, 146, 46, 0.55);
  border-radius: 4px;
  color: #c9a76a;
  font-size: 0.95em;
  letter-spacing: 0.04em;
  background: rgba(201, 146, 46, 0.06);
}

/* ---------------- 动效 ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .phone-wrap { order: 2; }
  .hero { padding: 56px 0 60px; }
  .fact-strip { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(1), .fact:nth-child(2) { border-bottom: 1px solid var(--line); }
  .grid-3, .grid-6 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #16130d;
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
  }
  .nav-links.open a { width: 100%; padding: 12px 0; border-bottom: 1px solid rgba(46, 40, 28, 0.6); }
  .nav-links.open .nav-cta { border: 0 !important; padding-left: 0 !important; }
}

@media (max-width: 680px) {
  .wrap { padding: 0 18px; }
  .section { padding: 64px 0; }
  .grid-3, .grid-6, .grid-2 { grid-template-columns: 1fr; }
  .fact-strip { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid var(--line); }
  .fact:last-child { border-bottom: 0; }
  .steps { grid-template-columns: 1fr; }
  .phone { width: 270px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .btn { width: 100%; justify-content: center; }
  .brand-en { display: none; }
}

/* ============================================================
   法务文档页（privacy.html / terms.html）
   长文档阅读版式：左侧粘性目录 + 右侧条款正文
   ============================================================ */

.doc-hero { padding: 28px 0 8px; }
.doc-hero h1 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.32;
  letter-spacing: 0.02em;
  margin: 10px 0 0;
  max-width: 22ch;
}

.doc-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin: 22px 0 0;
  font-size: 13.2px;
  color: var(--text-sub);
}
.doc-meta-item b {
  color: var(--text-dim);
  font-weight: 500;
  margin-right: 8px;
  letter-spacing: 0.06em;
}
.doc-meta-item a { color: var(--text-sub); border-bottom: 1px solid var(--line-soft); }
.doc-meta-item a:hover { color: var(--gold-light); }

.doc-sync {
  margin-top: 24px;
  max-width: 780px;
  font-size: 13.4px;
  line-height: 1.9;
}

.doc-section { padding: 26px 0 90px; }

.doc-shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

/* 左侧目录 */
.doc-toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  border-left: 1px solid var(--line);
  padding-left: 20px;
  max-height: calc(100vh - var(--nav-h) - 60px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.doc-toc-title {
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin: 0 0 14px;
}
.doc-toc nav { display: flex; flex-direction: column; gap: 2px; }
.doc-toc a {
  display: block;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-dim);
  padding: 6px 0;
  border-radius: 4px;
}
.doc-toc a:hover { color: var(--gold-light); }
.doc-toc a.is-current { color: var(--gold-light); }
.doc-toc-back {
  display: inline-block;
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--text-dim);
  border-top: 1px solid var(--line);
  padding-top: 14px;
  width: 100%;
}

/* 正文 */
.doc-body {
  max-width: 74ch;
  font-size: 15.4px;
  line-height: 1.95;
  color: var(--text-sub);
}
.doc-body h2 {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.4;
  color: var(--text);
  margin: 46px 0 16px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  letter-spacing: 0.02em;
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.doc-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.doc-body h3 {
  font-family: var(--sans);
  font-size: 15.6px;
  color: var(--paper);
  margin: 30px 0 12px;
  letter-spacing: 0.02em;
}
.doc-body p { margin: 0 0 15px; }
.doc-body strong { color: var(--text); font-weight: 600; }
.doc-body em { font-style: normal; color: var(--text-dim); }
.doc-body ul, .doc-body ol { margin: 0 0 16px; padding-left: 22px; }
.doc-body li { margin-bottom: 9px; }
.doc-body li::marker { color: var(--gold); }
.doc-body a { color: var(--gold-light); border-bottom: 1px solid rgba(201, 146, 46, 0.35); }
.doc-body code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: rgba(201, 146, 46, 0.1);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  padding: 1px 5px;
  color: var(--gold-light);
  word-break: break-all;
}
.doc-rule { border: 0; border-top: 1px solid var(--line); margin: 34px 0; }

/* 正文内表格：小字号、允许横向滚动 */
.doc-table { margin: 18px 0 22px; }
.doc-table table { font-size: 12.8px; }
.doc-table th { font-size: 12.2px; letter-spacing: 0.04em; }
.doc-table td { line-height: 1.75; vertical-align: top; }
.doc-table td strong { color: var(--text); }

/* 文末 */
.doc-foot {
  margin-top: 54px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 12.8px;
  color: var(--text-dim);
  line-height: 1.9;
}
.doc-foot p { margin: 0 0 8px; }
.doc-foot-links { letter-spacing: 0.02em; }
.doc-foot-links a { color: var(--text-sub); }

@media (max-width: 980px) {
  .doc-shell { grid-template-columns: 1fr; gap: 30px; }
  .doc-toc {
    position: static;
    max-height: none;
    border-left: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
  }
  .doc-toc nav { flex-direction: row; flex-wrap: wrap; gap: 6px 16px; }
  .doc-toc a { padding: 2px 0; }
  .doc-toc-back { display: none; }
  .doc-body { max-width: none; }
}

@media (max-width: 680px) {
  .doc-hero { padding-top: 12px; }
  .doc-body { font-size: 15px; }
  .doc-body h2 { font-size: 19px; margin-top: 38px; }
  .doc-table { font-size: 12.2px; }
}

/* 打印：白底黑字，隐藏导航与目录 */
@media print {
  body { background: #fff; color: #111; }
  body::before { display: none; }
  .site-nav, .doc-toc, .skip-link, .site-footer, .breadcrumb, .doc-toc-back { display: none !important; }
  .doc-hero h1, .doc-body h2, .doc-body h3, .doc-body strong { color: #111; }
  .doc-body, .doc-body p, .doc-body li, .doc-meta-row { color: #222; }
  .doc-body h2 { border-top-color: #ddd; }
  .doc-shell { display: block; }
  .doc-body { max-width: none; font-size: 11.5pt; line-height: 1.75; }
  .doc-table table { font-size: 9.5pt; }
  a { color: #111 !important; }
}

/* ============ 资料库 guide（2026-11-10 铺设层生成，只新增类不改既有选择器） ============ */
.guide-answer {
  border-left: 3px solid var(--gold);
  background: rgba(201, 146, 46, 0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  margin: 4px 0 30px;
}
.guide-answer p { margin: 8px 0 0; color: var(--text); line-height: 1.9; }
.guide-answer-tag {
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
}
.guide-cta {
  margin: 44px 0 8px;
  border: 1px solid rgba(201, 146, 46, 0.28);
  background: rgba(201, 146, 46, 0.045);
  border-radius: var(--radius);
  padding: 22px 24px;
  line-height: 1.9;
  color: var(--text-sub);
}
.guide-cta p { margin: 0; }
.guide-cta strong { color: var(--gold-light); }
.guide-cta-links { margin-top: 12px !important; font-size: 13.5px; }
.guide-cta-links span { margin: 0 8px; color: var(--text-dim); }
.guide-related {
  margin: 40px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.guide-related h2 { font-size: 17px; margin: 0 0 14px; }
.guide-related ul { list-style: none; padding: 0; margin: 0; }
.guide-related li { padding: 7px 0; font-size: 14.5px; }
.guide-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 28px;
}
.guide-list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.6px;
  line-height: 1.6;
}
.guide-count {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 400;
  margin-left: 12px;
  letter-spacing: 0.08em;
}
@media (max-width: 680px) {
  .guide-list { grid-template-columns: 1fr; }
  .guide-answer { padding: 14px 16px; }
}
/* 单列版（无目录页：正文占满，限阅读宽度） */
.doc-shell--single { grid-template-columns: minmax(0, 1fr); }
.doc-shell--single .doc-body { max-width: 820px; }
