:root {
  --brand: #1f6feb;
  --brand-dark: #0d4ea6;
  --bg: #f5f7fa;
  --card-bg: #ffffff;
  --text: #1f2430;
  --text-muted: #6b7280;
  --border: #e5e9f0;
  --warn-bg: #fff7e6;
  --warn-border: #ffcf7a;
  --danger-bg: #fdecec;
  --danger-border: #f5a3a3;
  --ok-bg: #eafaf0;
  --ok-border: #9fe0bb;
  --sidebar-w: 280px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

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

.layout {
  display: flex;
  min-height: 100vh;
}

/* ---------- 侧边栏 ---------- */
.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: #101828;
  color: #cbd5e1;
  padding: 24px 0 60px;
}

.sidebar .brand {
  padding: 0 20px 20px;
  border-bottom: 1px solid #1e293b;
  margin-bottom: 12px;
}

.sidebar .brand a { color: #fff; font-size: 18px; font-weight: 700; }
.sidebar .brand .sub { color: #94a3b8; font-size: 12px; margin-top: 4px; }

.sidebar nav a {
  display: block;
  padding: 10px 20px;
  color: #cbd5e1;
  font-size: 14px;
  border-left: 3px solid transparent;
}

.sidebar nav a:hover { background: #1e293b; text-decoration: none; }
.sidebar nav a.active {
  background: #16233d;
  color: #fff;
  border-left-color: var(--brand);
  font-weight: 600;
}

.sidebar .back-link {
  display: block;
  margin: 0 20px 16px;
  font-size: 13px;
  color: #94a3b8;
}

/* ---------- 主内容 ---------- */
.content {
  flex: 1;
  padding: 40px 56px 80px;
  max-width: 980px;
}

.content h1 {
  font-size: 28px;
  margin-bottom: 4px;
}

.chapter-meta {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 28px;
}

.content h2 {
  font-size: 20px;
  margin-top: 40px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.content h3 {
  font-size: 16px;
  margin-top: 26px;
  color: var(--brand-dark);
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 16px 0;
}

.purpose-box {
  background: #eef4ff;
  border: 1px solid #c9dcff;
  border-left: 4px solid var(--brand);
  border-radius: 6px;
  padding: 14px 18px;
  margin: 14px 0;
}
.purpose-box .label { font-weight: 700; color: var(--brand-dark); margin-bottom: 4px; display:block;}

.warn-box {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-left: 4px solid #e8a94a;
  border-radius: 6px;
  padding: 14px 18px;
  margin: 14px 0;
}
.warn-box .label { font-weight: 700; color: #8a5a00; margin-bottom: 4px; display:block;}

.danger-box {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  border-left: 4px solid #d64545;
  border-radius: 6px;
  padding: 14px 18px;
  margin: 14px 0;
}
.danger-box .label { font-weight: 700; color: #b02a2a; margin-bottom: 4px; display:block;}

.ok-box {
  background: var(--ok-bg);
  border: 1px solid var(--ok-border);
  border-left: 4px solid #2fa563;
  border-radius: 6px;
  padding: 14px 18px;
  margin: 14px 0;
}
.ok-box .label { font-weight: 700; color: #1c7a47; margin-bottom: 4px; display:block;}

.step {
  display: flex;
  gap: 16px;
  margin: 22px 0;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--border);
}
.step:last-child { border-bottom: none; }

.step-num {
  flex: 0 0 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.step-body { flex: 1; }
.step-body h4 { margin: 2px 0 6px; font-size: 15.5px; }
.step-body .op-detail { margin: 8px 0; }
.step-body .why { font-size: 13.5px; color: var(--text-muted); margin-top: 6px; }
.step-body .why b { color: var(--text); }

.screenshot-placeholder {
  margin: 12px 0;
  border: 2px dashed #b9c4d6;
  background: #fbfcfe;
  border-radius: 8px;
  padding: 34px 16px;
  text-align: center;
  color: #8593a8;
  font-size: 13px;
}
.screenshot-placeholder .icon { font-size: 26px; display:block; margin-bottom:6px; }
.screenshot-placeholder code {
  background: #eef1f6;
  padding: 1px 6px;
  border-radius: 4px;
  color: #445;
}

table.compare {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 14px;
}
table.compare th, table.compare td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
table.compare th { background: #f0f4fa; }
table.compare tr:nth-child(even) td { background: #fafbfd; }

.field-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13.5px; }
.field-table th, .field-table td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
.field-table th { background: #f0f4fa; width: 22%; }

.chapter-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}

.tag {
  display: inline-block;
  font-size: 12px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--brand-dark);
  margin-left: 8px;
}

.faq-item { margin-bottom: 18px; }
.faq-item .q { font-weight: 700; }
.faq-item .a { color: #333; margin-top: 4px; }

.toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.toc-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  transition: box-shadow .15s, transform .15s;
}
.toc-card:hover { box-shadow: 0 6px 18px rgba(20,40,80,.08); transform: translateY(-2px); }
.toc-card .num { color: var(--brand); font-weight: 700; font-size: 13px; }
.toc-card h3 { margin: 6px 0 6px; font-size: 16px; color: var(--text); }
.toc-card p { margin: 0; font-size: 13px; color: var(--text-muted); }

.landing {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 24px;
  text-align: center;
}
.landing h1 { font-size: 32px; }
.landing .choices {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}
.landing .choice {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  width: 320px;
  text-align: left;
  box-shadow: 0 6px 20px rgba(20,40,80,.06);
}
.landing .choice h2 { margin-top: 0; }
.landing .choice a.btn {
  display: inline-block;
  margin-top: 14px;
  background: var(--brand);
  color: #fff;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 14px;
}
.landing .choice a.btn:hover { background: var(--brand-dark); text-decoration: none; }

code.inline { background:#eef1f6; padding:1px 6px; border-radius:4px; font-size: 13px; }

@media (max-width: 900px) {
  .layout { flex-direction: column; }
  .sidebar { width: 100%; flex-basis: auto; }
  .content { padding: 24px; }
}

/* 2026-08-04：深度帮助文档新增结构化菜单、字段表、截图和搜索。 */
.nav-group-title {
  padding: 14px 20px 5px;
  color: #7dd3fc;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}
.route-card {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 12px 0 24px;
}
.route-card code { overflow-wrap: anywhere; }
.manual-image {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}
figure { margin: 16px 0; }
figcaption { color: var(--text-muted); font-size: 13px; margin-top: 8px; }
.table-scroll { overflow-x: auto; }
.field-detail { min-width: 1280px; }
.field-detail th { width: auto; white-space: nowrap; }
.steps-list li { margin: 8px 0; }
.help-search { display: flex; align-items: center; gap: 12px; margin: 22px 0; }
.help-search input {
  flex: 1;
  max-width: 620px;
  border: 1px solid #b9c4d6;
  border-radius: 8px;
  padding: 11px 14px;
  font: inherit;
  background: #fff;
}
.help-search span { color: var(--text-muted); font-size: 13px; }
.no-results { color: var(--text-muted); padding: 24px 0; }
.toc-group { color: #64748b; font-size: 12px; margin-top: 4px; }
.toc-card[hidden] { display: none; }

@media (max-width: 700px) {
  .content { padding: 20px 16px 56px; }
  .content h1 { font-size: 24px; }
  .field-detail { min-width: 1080px; }
}
