/* 数隅 DataNous · 站点样式
   令牌取自项目 DESIGN.md：植物绿、浅绿灰、白色工作面、细边界、扁平 */

:root {
  --green: #184f3e;
  --green-dark: #0d392c;
  --green-ink: #14372a;
  --ink: #263c34;
  --muted: #5d705f;
  --muted-text: #66735f;
  --line: #dfe5dd;
  --line-strong: #cbd6c9;
  --surface: #fff;
  --canvas: #f6f7f3;
  --paper: #fbfbf8;
  --row-hover: #f7f9f3;
  --good-bg: #ecf3e9;
  --good-text: #3e6639;
  --warm-bg: #f5f0df;
  --warm-text: #806328;
  --focus: #ac7a32;
  --mono: "SFMono-Regular", ui-monospace, Consolas, "Liberation Mono", monospace;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 78px; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* ---------- 页头 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 247, 243, 0.94);
  backdrop-filter: saturate(150%) blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  height: 62px;
}

.brand { display: inline-flex; align-items: center; gap: 9px; flex: none; }

.brand-mark {
  width: 25px; height: 25px;
  border-radius: 8px 8px 8px 2px;
  background: var(--green);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 7px; right: 7px; top: 8px;
  height: 2px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 0 rgba(255, 255, 255, 0.4);
}

.brand-text {
  display: flex; flex-direction: column;
  font-size: 14px; font-weight: 650; line-height: 1.1; letter-spacing: 0.4px;
}

.brand-text em {
  font-style: normal; font-family: var(--mono);
  font-size: 9px; font-weight: 400; letter-spacing: 1.5px;
  color: var(--muted); text-transform: uppercase; margin-top: 3px;
}

.site-nav {
  display: flex; align-items: center; gap: 24px;
  margin-left: auto; font-size: 13px; color: var(--muted);
}

.site-nav a { transition: color 0.15s; }
.site-nav a:hover { color: var(--green-ink); }
.site-nav a.current { color: var(--green-ink); }
.site-nav a.nav-cta { color: var(--green); font-weight: 550; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  padding: 0;
  width: 44px;
  height: 38px;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  color: var(--ink);
}

.nav-bars,
.nav-bars::before,
.nav-bars::after {
  display: block;
  width: 19px;
  height: 2px;
  background: currentColor;
}
.nav-bars { position: relative; }
.nav-bars::before,
.nav-bars::after { content: ""; position: absolute; left: 0; }
.nav-bars::before { top: -6px; }
.nav-bars::after { top: 6px; }

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

.hero { border-bottom: 1px solid var(--line); background: var(--canvas); }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 56px;
  align-items: center;
  padding: 64px 0 58px;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.6px;
  color: var(--muted-text);
}

.hero-tag span.dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #7a9a83; display: inline-block;
}

.hero h1 {
  margin-top: 18px;
  font-size: 40px;
  line-height: 1.34;
  letter-spacing: -0.9px;
  font-weight: 600;
  color: var(--green-ink);
}

.hero-lead {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.95;
  color: var(--muted);
  max-width: 34em;
}

.hero-lead strong { color: var(--ink); font-weight: 550; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 15px;
  border-radius: 5px;
  font-size: 13px; font-weight: 550;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}

.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }

.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: #f1f4ec; }

.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.1); }

.btn-light { background: #fff; color: var(--green-ink); }
.btn-light:hover { background: #eef3ea; }

.hero-facts {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-facts div {
  padding: 12px 16px 0 0;
  border-right: 1px solid var(--line);
}

.hero-facts div + div { padding-left: 16px; }
.hero-facts div:last-child { border-right: 0; padding-right: 0; }

.hero-facts dt {
  font-size: 11px; color: var(--muted-text);
  font-family: var(--mono); letter-spacing: 0.4px;
}

.hero-facts dd { margin: 3px 0 0; font-size: 12.5px; color: var(--ink); line-height: 1.7; }

/* 首屏截图 */

.shot { border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); overflow: hidden; }
.shot img { display: block; width: 100%; height: auto; }

.shot-cap {
  margin-top: 9px;
  font-size: 11.5px;
  color: var(--muted-text);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* ---------- 版块：左标签 + 右内容 ---------- */

.sec { border-bottom: 1px solid var(--line); padding: 56px 0 60px; }
.sec-paper { background: var(--paper); }

.sec-inner { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 48px; align-items: start; }

.sec-label {
  position: sticky;
  top: 86px;
  font-size: 12px;
  color: var(--muted-text);
  line-height: 1.7;
}

.sec-label b {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  color: #93a795;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.sec-body h2 {
  font-size: 24px;
  line-height: 1.5;
  letter-spacing: -0.4px;
  font-weight: 600;
  color: var(--green-ink);
}

.sec-body > p.intro {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--muted);
  max-width: 62em;
}

/* ---------- 规格表 ---------- */

.spec {
  margin-top: 26px;
  border-top: 1px solid var(--line);
}

.spec-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.spec-row dt { color: var(--muted-text); }
.spec-row dd { margin: 0; color: var(--ink); line-height: 1.8; }
.spec-row code, .mono-inline {
  font-family: var(--mono); font-size: 11.5px;
  color: #2c4a3c; background: #eef2ea;
  border-radius: 3px; padding: 1px 4px;
}

/* ---------- 数据表 ---------- */

.table-wrap { margin-top: 24px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); overflow-x: auto; }

table.grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 620px;
}

table.grid th {
  text-align: left;
  font-weight: 550;
  font-size: 11.5px;
  letter-spacing: 0.3px;
  color: var(--muted-text);
  padding: 10px 16px;
  background: #f4f6f0;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}

table.grid td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.8;
}

table.grid tr:last-child td { border-bottom: 0; }
table.grid tbody tr:hover { background: var(--row-hover); }

table.grid td:first-child { color: var(--green-ink); font-weight: 550; white-space: nowrap; }
table.grid td.num { font-family: var(--mono); font-size: 12px; color: var(--muted); width: 34px; }

table.grid .sub { color: var(--muted); font-weight: 400; }

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

.figs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 26px;
}

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

/* ---------- 文档索引 ---------- */

.doclist { margin-top: 22px; border-top: 1px solid var(--line); }

.doclist-group + .doclist-group { margin-top: 30px; }

.doclist-head {
  display: flex; align-items: baseline; gap: 12px;
  padding: 14px 0 10px;
}

.doclist-head h3 { font-size: 13px; font-weight: 600; color: var(--green-ink); }
.doclist-head span { font-size: 11.5px; color: var(--muted-text); font-family: var(--mono); }

.docrow {
  display: grid;
  grid-template-columns: minmax(0, 15em) minmax(0, 1fr) 18px;
  gap: 18px;
  align-items: baseline;
  padding: 11px 10px 11px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.12s;
}

.docrow:hover { background: var(--row-hover); }

.docrow .t { font-size: 13.5px; color: var(--green-ink); font-weight: 550; }
.docrow .d { font-size: 12.5px; color: var(--muted); line-height: 1.75; }
.docrow .a { color: var(--line-strong); text-align: right; font-size: 13px; }
.docrow:hover .a { color: var(--green); }

/* ---------- 收尾 ---------- */

.cta {
  background: var(--green);
  color: #fff;
  padding: 44px 0;
}

.cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}

.cta h2 { font-size: 21px; font-weight: 600; letter-spacing: -0.2px; line-height: 1.5; }
.cta p { margin-top: 6px; font-size: 13px; color: rgba(255, 255, 255, 0.74); }

.site-footer { padding: 34px 0 42px; font-size: 12.5px; color: var(--muted); }

.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { max-width: 380px; }
.footer-brand p { margin-top: 10px; line-height: 1.85; }
.footer-operator { color: var(--muted-text); }

.footer-links { display: flex; gap: 56px; flex-wrap: wrap; }

.footer-links h4 {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 1px;
  font-weight: 400; color: var(--muted-text);
}

.footer-links ul { margin: 8px 0 0; padding: 0; list-style: none; }
.footer-links li { line-height: 2; }
.footer-links a:hover { color: var(--green); }

.footer-legal {
  margin-top: 26px; padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--muted-text);
}
.footer-legal a { text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a:hover { color: var(--green); }

/* ---------- 隐私说明 ---------- */

.legal-page { padding: 86px 0 110px; }
.legal-page .container { max-width: 820px; }
.legal-page h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 650; letter-spacing: -0.03em; line-height: 1.1; }
.legal-page .legal-meta { margin-top: 16px; font-size: 13px; color: var(--muted-text); }
.legal-page .legal-lead { margin-top: 34px; font-size: 19px; line-height: 1.8; color: var(--ink); }
.legal-page section { margin-top: 44px; }
.legal-page h2 { font-size: 21px; font-weight: 650; }
.legal-page section p { margin-top: 12px; font-size: 16px; line-height: 1.85; color: var(--ink); }
.legal-page .legal-contact { margin: 14px 0 0; padding-left: 20px; font-size: 16px; line-height: 2; color: var(--ink); }
.legal-page .legal-contact a { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 720px) {
  .legal-page { padding: 52px 0 74px; }
  .legal-page .legal-lead { font-size: 17px; }
  .legal-page section { margin-top: 34px; }
}

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

.docs-shell {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 52px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 30px 32px 84px;
  align-items: start;
}

.docs-nav {
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 108px);
  overflow-y: auto;
  padding-right: 8px;
}

.docs-nav-title {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.2px;
  color: var(--muted-text); padding-bottom: 10px;
}

.docs-nav-group { margin-bottom: 20px; }

.docs-nav-group > p {
  font-size: 11.5px; font-weight: 600; color: var(--green-ink);
  margin-bottom: 4px; padding-left: 10px;
}

.docs-nav a {
  display: block;
  padding: 5px 10px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  border-radius: 4px;
  border-left: 2px solid transparent;
}

.docs-nav a:hover { background: #eef2e9; color: var(--green-ink); }

.docs-nav a.active {
  background: #e7eee2;
  color: var(--green-ink);
  font-weight: 600;
  border-left-color: var(--green);
}

.docs-nav .back-link { display: inline-block; margin-bottom: 16px; font-size: 12px; color: var(--green); padding-left: 0; }

.docs-main { min-width: 0; }

.doc-crumb {
  display: flex; align-items: center; gap: 7px;
  font-size: 11.5px; color: var(--muted-text);
}

.doc-crumb a:hover { color: var(--green); }

.doc-head { padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }

.doc-head h1 {
  margin-top: 10px;
  font-size: 29px; line-height: 1.4;
  letter-spacing: -0.7px; font-weight: 650;
  color: var(--green-ink);
}

.doc-head .doc-desc {
  margin-top: 10px;
  font-size: 13.5px; line-height: 1.9;
  color: var(--muted); max-width: 66ch;
}

.doc-meta {
  margin-top: 14px;
  display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center;
  font-family: var(--mono); font-size: 10.5px; color: var(--muted-text);
}

.doc-meta .chip {
  font-family: var(--sans); font-size: 10.5px;
  background: var(--good-bg); color: var(--good-text);
  padding: 2px 7px; border-radius: 3px;
}

/* 正文 */

.prose { max-width: 780px; font-size: 14px; line-height: 1.95; color: var(--ink); }

.prose h2 {
  margin: 40px 0 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 20px; font-weight: 650;
  letter-spacing: -0.2px; line-height: 1.5;
  color: var(--green-ink);
}

.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.prose h3 { margin: 26px 0 8px; font-size: 15.5px; font-weight: 620; line-height: 1.6; color: var(--green-ink); }
.prose h4 { margin: 22px 0 6px; font-size: 14px; font-weight: 620; }

.prose p { margin: 11px 0; }
.prose ul, .prose ol { margin: 10px 0; padding-left: 21px; }
.prose li { margin: 4px 0; line-height: 1.9; }
.prose strong { font-weight: 620; color: var(--green-ink); }

.prose a { color: var(--green); border-bottom: 1px solid #c3d6c9; }
.prose a:hover { border-color: var(--green); }

.prose code {
  font-family: var(--mono); font-size: 12px;
  background: #eef2ea; border-radius: 3px;
  padding: 1px 4px; color: #2c4a3c;
  word-break: break-word;
}

.prose pre {
  margin: 14px 0; padding: 14px 16px;
  background: #fbfbf8;
  border: 1px solid var(--line);
  border-left: 2px solid #b9cdbd;
  border-radius: 4px;
  overflow-x: auto;
  line-height: 1.7;
}

.prose pre code { background: transparent; padding: 0; font-size: 11.8px; color: #33473d; }

.prose table {
  width: 100%; margin: 16px 0;
  border-collapse: collapse;
  font-size: 12.6px;
  background: var(--surface);
  display: block; overflow-x: auto;
}

.prose thead th {
  background: #f4f6f0; text-align: left;
  font-weight: 620; font-size: 12px; color: var(--green-ink);
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}

.prose th, .prose td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid #eff2ea;
  vertical-align: top; line-height: 1.75;
}

.prose tr:last-child td { border-bottom: 0; }
.prose blockquote {
  margin: 14px 0; padding: 10px 16px;
  background: var(--warm-bg); border-left: 2px solid #d8c79a;
  border-radius: 0 4px 4px 0; color: #6b5730; font-size: 13px;
}

.prose hr { margin: 28px 0; border: 0; border-top: 1px solid var(--line); }

.prose img {
  display: block; margin: 18px 0;
  border: 1px solid var(--line-strong); border-radius: 5px; background: #fff;
}

.doc-foot {
  margin-top: 40px; padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: var(--muted-text);
}

.doc-foot a { color: var(--green); }

.doc-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }

.doc-pager a {
  border: 1px solid var(--line); border-radius: 5px;
  padding: 12px 14px; background: var(--surface);
  font-size: 12.8px; transition: border-color 0.15s;
}

.doc-pager a:hover { border-color: var(--line-strong); }

.doc-pager a span {
  display: block; font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.6px; color: var(--muted-text); margin-bottom: 3px;
}

.doc-pager .next { text-align: right; }

.mobile-docs-toggle {
  display: none; margin: 0 0 16px;
  border: 1px solid var(--line-strong); background: var(--surface);
  border-radius: 5px; padding: 8px 12px; font-size: 12.5px; color: var(--ink);
}

/* ---------- 文档中心 ---------- */

.docgroup { margin-top: 40px; }
.docgroup:first-of-type { margin-top: 30px; }

.docgroup-head {
  display: flex; align-items: baseline; gap: 12px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line-strong);
}

.docgroup-head h2 { font-size: 16px; font-weight: 620; color: var(--green-ink); }
.docgroup-head p { font-size: 12px; color: var(--muted-text); }

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

@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; padding: 48px 0 46px; }
  .hero h1 { font-size: 34px; }
  .sec-inner { grid-template-columns: 1fr; gap: 18px; }
  .sec-label { position: static; display: flex; align-items: baseline; gap: 10px; }
  .sec-label b { margin: 0; }
  .figs.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs-shell { grid-template-columns: 1fr; gap: 20px; }
  .docs-nav { position: static; max-height: none; display: none; padding: 0 0 16px; border-bottom: 1px solid var(--line); }
  .docs-nav.open { display: block; }
  .mobile-docs-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    padding: 6px 20px 16px;
    background: #fff;
    box-shadow: none;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { display: block; padding: 12px 0; }
  .site-nav a + a { border-top: 1px solid var(--line); }
  .site-nav a.nav-cta { font-weight: 550; }
  .nav-toggle { display: inline-flex; }
  .nav-toggle .nav-bars,
  .nav-toggle .nav-bars::before,
  .nav-toggle .nav-bars::after { background: var(--ink); }
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .hero h1 { font-size: 28px; letter-spacing: -0.4px; }
  .hero-lead { font-size: 14px; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts div { border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 0; }
  .hero-facts div + div { padding-left: 0; }
  .sec { padding: 40px 0 44px; }
  .sec-body h2 { font-size: 20px; }
  .spec-row { grid-template-columns: 1fr; gap: 2px; }
  .figs, .figs.three { grid-template-columns: 1fr; }
  .docrow { grid-template-columns: 1fr; gap: 2px; padding: 12px 0; }
  .docrow .a { display: none; }
  .docs-shell { padding: 20px 20px 60px; }
  .doc-head h1 { font-size: 23px; }
  .prose { font-size: 13.5px; }
  .prose h2 { font-size: 18px; }
  .doc-pager { grid-template-columns: 1fr; }
  .doc-pager .next { text-align: left; }
  .cta h2 { font-size: 18px; }
  .footer-links { gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* 首图跨两列 */
.figs .fig-wide { grid-column: span 2; }

/* 首图跨两列 */
.figs .fig-wide { grid-column: span 2; }

/* 单列大图 */
.figs.stack { grid-template-columns: minmax(0, 1fr); gap: 26px; }

/* 单列大图 */
.figs.stack { grid-template-columns: minmax(0, 1fr); gap: 26px; }

/* 表格列宽 */
table.grid.flow th:nth-child(2) { width: 116px; }
table.grid.flow th:nth-child(3) { width: 168px; }
table.grid.modules th:first-child { width: 158px; }
table.grid.modules th:nth-child(2) { width: 44%; }
table.grid.kv th:first-child { width: 200px; }

/* 文档索引：收窄并紧凑 */
.doclist { max-width: 980px; }
.docrow { grid-template-columns: 13.5em minmax(0, 1fr) 14px; gap: 20px; }
.doclist-head span {
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

/* ---------- 首页：对比 / 场景 / 三步 / 功能 ---------- */

.compare {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
}

.compare-col { padding: 22px 24px 24px; }
.compare-col.old { background: #fbfaf6; border-right: 1px solid var(--line); }
.compare-col.new { background: #f5faf2; }

.compare-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1.2px;
  color: var(--muted-text);
}

.compare-col ul { margin: 14px 0 0; padding-left: 18px; }
.compare-col li { font-size: 13px; line-height: 1.95; color: var(--muted); }
.compare-col.new li { color: var(--ink); }
.compare-col.new li::marker { color: #7a9a83; }

.compare-foot {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted-text);
}

.compare-col.new .compare-foot { color: #3f5f49; }

.scenarios {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 46px;
}

.scenario { padding: 18px 0 20px; border-bottom: 1px solid var(--line); }
.scenario h3 { font-size: 14.5px; font-weight: 600; color: var(--green-ink); }
.scenario p { margin-top: 6px; font-size: 12.8px; line-height: 1.85; color: var(--muted); }

.sec-note { margin-top: 14px; font-size: 11.5px; color: var(--muted-text); }

.steps {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.step-top { display: flex; align-items: baseline; gap: 9px; }

.step .n { font-family: var(--mono); font-size: 11px; letter-spacing: 1px; color: #93a795; }

.step h3 { font-size: 14.5px; font-weight: 600; line-height: 1.5; color: var(--green-ink); }

.step p { margin-top: 8px; font-size: 12.6px; line-height: 1.85; color: var(--muted); }

.step .shot { margin-top: 14px; }

.step .step-cap {
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted-text);
  padding-left: 2px;
}

.features {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 46px;
}

.feature { padding: 15px 0; border-bottom: 1px solid var(--line); }

.feature h3 { font-size: 14px; font-weight: 600; color: var(--green-ink); }
.feature p { margin-top: 4px; font-size: 12.8px; line-height: 1.8; color: var(--muted); }

table.grid.roles th:nth-child(2) { width: 104px; }
.mono-cell {
  font-family: var(--mono);
  font-size: 11.5px !important;
  color: var(--muted-text) !important;
  font-weight: 400 !important;
}

@media (max-width: 1080px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 22px; }
  .compare { grid-template-columns: 1fr; }
  .compare-col.old { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 720px) {
  .steps, .features, .scenarios { grid-template-columns: 1fr; }
  .scenario { padding: 14px 0 16px; }
}

/* 三步：行式，图更大 */
.step-rows { margin-top: 26px; border-top: 1px solid var(--line); }

.step-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 420px;
  gap: 30px;
  align-items: start;
  padding: 26px 0 28px;
  border-bottom: 1px solid var(--line);
}

.step-no {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: #93a795;
  padding-top: 3px;
}

.step-text h3 { font-size: 15.5px; font-weight: 600; color: var(--green-ink); line-height: 1.5; }

.step-text p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.95;
  color: var(--muted);
  max-width: 34em;
}

.step-shot .shot { background: var(--surface); }
.step-cap { margin-top: 7px; font-size: 11px; color: var(--muted-text); }

@media (max-width: 1080px) {
  .step-row { grid-template-columns: 34px minmax(0, 1fr); gap: 18px; }
  .step-shot { grid-column: 2; margin-top: 14px; }
}

/* ---------- 三痛点 ---------- */

.pains {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.pain { border-top: 2px solid var(--line-strong); padding-top: 14px; }

.pain h3 { font-size: 17px; font-weight: 600; color: var(--green-ink); letter-spacing: 0.5px; }

.pain-what { margin-top: 8px; font-size: 12.8px; line-height: 1.85; color: var(--muted); }

.pain-how {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 12.8px;
  line-height: 1.85;
  color: #3f5f49;
}

.pain-how::before {
  content: "数隅的做法";
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: #93a795;
  margin-bottom: 5px;
}

/* ---------- 架构 ---------- */

.arch {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr auto 1.3fr auto 1fr;
  gap: 12px;
  align-items: stretch;
}

.arch-node {
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.arch-node.space { background: #eef4ea; border-color: #b9cdbd; }

.arch-name { font-size: 13.5px; font-weight: 600; color: var(--green-ink); }
.arch-desc { margin-top: 6px; font-size: 11.6px; line-height: 1.75; color: var(--muted); }

.arch-badge {
  margin-top: 10px;
  align-self: flex-start;
  font-size: 10.5px;
  background: var(--good-bg);
  color: var(--good-text);
  padding: 2px 7px;
  border-radius: 3px;
}

.arch-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 84px;
}

.arch-flow {
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--muted-text);
  text-align: center;
  max-width: 108px;
}

.arch-arrow { color: #9db3a1; font-size: 15px; }

.arch-points {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 44px;
}

.arch-point { padding: 12px 0; border-bottom: 1px solid var(--line); }
.arch-point h3 { font-size: 13px; font-weight: 600; color: var(--green-ink); }
.arch-point p { margin-top: 4px; font-size: 12.4px; line-height: 1.8; color: var(--muted); }

/* ---------- 能力六组 ---------- */

.cap2-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 46px;
}

.cap2 { padding: 16px 0 18px; border-bottom: 1px solid var(--line); }
.cap2 h3 { font-size: 14px; font-weight: 600; color: var(--green-ink); }
.cap2 ul { margin: 8px 0 0; padding-left: 16px; }
.cap2 li { font-size: 12.6px; line-height: 1.85; color: var(--muted); }
.cap2 li::marker { color: #9db3a1; }

table.grid.scenes th:first-child { width: 168px; }
table.grid.scenes th:nth-child(3) { width: 38%; }

@media (max-width: 1080px) {
  .arch { grid-template-columns: 1fr; }
  .arch-link { flex-direction: row; min-width: 0; padding: 4px 0; gap: 10px; }
  .arch-flow { max-width: none; }
  .arch-arrow { transform: rotate(90deg); }
}

@media (max-width: 720px) {
  .pains { grid-template-columns: 1fr; gap: 20px; }
  .cap2-grid, .arch-points { grid-template-columns: 1fr; }
}

/* ---------- 文档内章节导航 ---------- */

.docs-subnav {
  margin: 2px 0 8px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.docs-subnav a {
  font-size: 11.5px;
  padding: 3px 8px;
  color: var(--muted-text);
  border-left: 0;
  border-radius: 3px;
  line-height: 1.55;
}

.docs-subnav a.on { color: var(--green); font-weight: 550; background: transparent; }

/* ---------- 文档搜索 ---------- */

.doc-search { margin-top: 24px; max-width: 460px; }

.doc-search input {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 5px;
}

.doc-search input::placeholder { color: #8b9a8b; }
.doc-search input:focus { outline: 2px solid var(--focus); outline-offset: 2px; }

.doc-search-empty { margin-top: 22px; font-size: 13px; color: var(--muted); }

/* ---------- 文档中心首页 ---------- */

.docs-index { padding-top: 44px; padding-bottom: 70px; }
.docs-head { max-width: 660px; }
.docs-head h1 { font-size: 26px; font-weight: 650; letter-spacing: -0.5px; color: var(--green-ink); }
.docs-head p { margin-top: 10px; font-size: 13.5px; line-height: 1.95; color: var(--muted); }

.docs-start, .docs-all { margin-top: 38px; }
.docs-start h2, .docs-all h2 {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted-text);
}

.docs-paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 980px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
}
.docs-path { padding: 18px 26px 4px 0; }
.docs-path + .docs-path { padding-left: 26px; border-left: 1px solid var(--line); }
.docs-path .who { font-size: 14px; font-weight: 600; color: var(--green-ink); }
.docs-path .what { margin-top: 6px; font-size: 12.5px; line-height: 1.85; color: var(--muted); }
.docs-path ul { margin: 12px 0 0; padding: 0; list-style: none; }
.docs-path li { font-size: 12.5px; line-height: 1.95; }
.docs-path a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.docs-path a:hover { color: var(--green-ink); }

.docs-all .doc-search { margin-top: 16px; }
.docs-all .doclist { margin-top: 20px; }

@media (max-width: 900px) {
  .docs-paths { grid-template-columns: 1fr; }
  .docs-path { padding: 16px 0; }
  .docs-path + .docs-path { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .docs-index { padding-top: 32px; padding-bottom: 56px; }
}

/* ---------- 返回顶部 ---------- */

.back-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--green);
  font-size: 15px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s, background 0.15s;
  z-index: 45;
}

.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { background: #f1f4ec; }

/* 打印文档：只留正文 */
@media print {
  .site-header, .site-footer, .docs-nav, .mobile-docs-toggle,
  .back-top, .doc-pager, .doc-foot, .doc-search { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .docs-shell { display: block; padding: 0; max-width: none; }
  .prose { max-width: none; }
  .prose h2 { break-after: avoid; }
  .prose pre, .prose table, .prose img { break-inside: avoid; }
}

/* 主导航按客户任务组织；中等屏幕提前收起，避免菜单挤压。 */
.site-nav a { white-space: nowrap; }
@media (max-width: 1080px) {
  .site-header .container { position: relative; }
  .site-header .nav-toggle { display: inline-flex; }
  .site-header .site-nav, .home .site-header .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    margin: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 20px 16px; background: var(--surface, #f6f7f3);
    max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px);
    overflow-y: auto; overscroll-behavior: contain;
    border-bottom: 1px solid var(--line);
  }
  .site-header .site-nav.open, .home .site-header .site-nav.open { display: flex; }
  .site-header .site-nav a, .home .site-header .site-nav a { padding: 13px 4px; min-height: 44px; }
  .home .site-header .site-nav { background: #0e3529; }
  .home .site-header .site-nav a { color: #f2f4ea; }
  .home .site-header .site-nav .nav-cta { color: #0e3529; text-align: center; margin-top: 8px; }
}
