/* ==========================================================================
   使用文档（/guide）样式 —— 文档站布局
   左侧分组目录 + 中间正文 + 右侧本页内容；配色沿用控制台浅色/深色主题
   （accent #ed4855 取自 market.css，保持与产品界面一致）
   ========================================================================== */

.doc-page {
  --doc-bg: #f5f6f8;
  --doc-panel: #ffffff;
  --doc-ink: #24262b;
  --doc-ink-soft: #3d4047;
  --doc-muted: #73767f;
  --doc-faint: #92959e;
  --doc-line: #e6e8ec;
  --doc-line-soft: #eff0f3;
  --doc-accent: #ed4855;
  --doc-accent-soft: #fff0f1;
  --doc-accent-line: #ffd9dc;
  --doc-code-bg: #f2f3f6;
  --doc-figure-bg: linear-gradient(180deg, #fbfbfc 0%, #f1f3f7 100%);
  --doc-shadow-sm: 0 1px 2px rgba(24, 24, 28, .04);
  --doc-shadow-md: 0 10px 30px rgba(24, 24, 28, .10);
  --doc-topbar-h: 58px;
  --doc-side-w: 244px;
  --doc-toc-w: 224px;

  margin: 0;
  background: var(--doc-bg);
  color: var(--doc-ink);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
}

html[data-theme="dark"] .doc-page {
  --doc-bg: #141414;
  --doc-panel: #1f1f1f;
  --doc-ink: #eeeeef;
  --doc-ink-soft: #d4d4d8;
  --doc-muted: #a5a5ad;
  --doc-faint: #82828c;
  --doc-line: #303033;
  --doc-line-soft: #292929;
  --doc-accent: #ff6975;
  --doc-accent-soft: #38252a;
  --doc-accent-line: #5a3036;
  --doc-code-bg: #2a2a2d;
  --doc-figure-bg: linear-gradient(180deg, #232323 0%, #1b1b1b 100%);
  --doc-shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --doc-shadow-md: 0 12px 34px rgba(0, 0, 0, .45);
}

/* app.css 给 body 设了 overflow-y: hidden，会让 body 变成不滚动的滚动容器，
   sticky 的吸附边界被它接管，左右两栏一滚就走。
   clip 不生成滚动容器，横向溢出照样兜住。 */
body.doc-page {
  overflow-x: clip;
  overflow-y: visible;
}

.doc-page a { color: inherit; text-decoration: none; }
.doc-page svg { display: block; }

/* ------------------------------------------------------------- Top bar */
.doc-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--doc-topbar-h);
  border-bottom: 1px solid var(--doc-line);
  background: color-mix(in srgb, var(--doc-panel) 92%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
}
.doc-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 22px;
}
.doc-brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.doc-brand img { width: 24px; height: 24px; border-radius: 6px; }
.doc-brand-name { color: var(--doc-ink); font-size: 15px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.doc-brand-name b { font-weight: 800; }
.doc-brand-divider { width: 1px; height: 16px; background: var(--doc-line); }
.doc-brand-doc { color: var(--doc-ink); font-size: 14px; font-weight: 700; white-space: nowrap; }

.doc-topbar-actions { display: flex; align-items: center; gap: 10px; }
.doc-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 236px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--doc-line);
  border-radius: 8px;
  background: var(--doc-bg);
  transition: border-color .16s ease, background .16s ease;
}
.doc-search:focus-within { border-color: var(--doc-accent); background: var(--doc-panel); }
.doc-search svg { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--doc-faint); stroke-width: 2; stroke-linecap: round; }
.doc-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--doc-ink);
  font-size: 12.5px;
  outline: none;
}
.doc-search input::placeholder { color: var(--doc-faint); }
.doc-search input::-webkit-search-cancel-button { display: none; }
.doc-search kbd {
  flex: none;
  padding: 1px 5px;
  border: 1px solid var(--doc-line);
  border-radius: 4px;
  color: var(--doc-faint);
  font-family: inherit;
  font-size: 10.5px;
  line-height: 1.5;
}
.doc-icon-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--doc-muted);
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}
.doc-icon-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.doc-icon-btn:hover { background: var(--doc-bg); color: var(--doc-ink); }
.doc-console {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--doc-line);
  border-radius: 7px;
  color: var(--doc-ink-soft);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color .16s ease, color .16s ease;
}
.doc-console svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.doc-console:hover { border-color: var(--doc-accent); color: var(--doc-accent); }

/* --------------------------------------------------------------- Shell */
.doc-shell {
  display: grid;
  grid-template-columns: var(--doc-side-w) minmax(0, 1fr) var(--doc-toc-w);
  align-items: start;
  max-width: 1440px;
  margin: 0 auto;
}

/* ------------------------------------------------------------- Sidebar */
.doc-sidebar {
  position: sticky;
  top: var(--doc-topbar-h);
  height: calc(100vh - var(--doc-topbar-h));
  padding: 20px 14px 18px;
  border-right: 1px solid var(--doc-line);
  background: var(--doc-panel);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--doc-line) transparent;
  display: flex;
  flex-direction: column;
}
.doc-sidebar::-webkit-scrollbar { width: 6px; }
.doc-sidebar::-webkit-scrollbar-thumb { border-radius: 999px; background: var(--doc-line); }

.doc-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 12px;
  color: var(--doc-ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
}
.doc-nav-badge {
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--doc-accent-soft);
  color: var(--doc-accent);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}
.doc-nav { display: flex; flex-direction: column; gap: 1px; }
.doc-nav-group {
  margin: 14px 10px 6px;
  color: var(--doc-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
}
.doc-nav-group:first-child { margin-top: 2px; }
.doc-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px 8px 12px;
  border-radius: 6px;
  color: var(--doc-ink-soft);
  font-size: 13px;
  line-height: 1.4;
  transition: background .14s ease, color .14s ease;
}
.doc-nav-item svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .82; }
.doc-nav-item span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-nav-item:hover { background: var(--doc-bg); color: var(--doc-ink); }
.doc-nav-item.active { background: var(--doc-accent-soft); color: var(--doc-accent); font-weight: 700; }
.doc-nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--doc-accent);
}
.doc-nav-empty { margin: 10px; color: var(--doc-faint); font-size: 12.5px; }

.doc-nav-foot {
  margin-top: auto;
  padding: 18px 10px 0;
  border-top: 1px solid var(--doc-line-soft);
  color: var(--doc-faint);
  font-size: 11.5px;
  line-height: 1.7;
}
.doc-nav-foot p { margin: 0; font-weight: 700; color: var(--doc-muted); }
.doc-nav-foot span { display: block; }

/* ---------------------------------------------------------------- Main */
.doc-main {
  min-width: 0;
  max-width: 860px;
  padding: 26px 48px 88px;
  background: var(--doc-bg);
}

.doc-crumb {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--doc-faint);
  font-size: 12px;
}
.doc-crumb svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.doc-crumb span:last-child { color: var(--doc-muted); }

.doc-meta {
  margin: 14px 0 0;
  color: var(--doc-faint);
  font-size: 12px;
  letter-spacing: .01em;
}
.doc-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 8px 0 0;
  color: var(--doc-ink);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.02em;
}
.doc-title-no {
  color: var(--doc-faint);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .02em;
}
.doc-lead {
  margin: 14px 0 0;
  color: var(--doc-ink-soft);
  font-size: 14px;
  line-height: 1.95;
}

/* 30 秒上手 */
.doc-quick {
  margin: 24px 0 8px;
  padding: 16px 18px;
  border: 1px solid var(--doc-line);
  border-radius: 8px;
  background: var(--doc-panel);
}
.doc-quick-title {
  margin: 0 0 10px;
  color: var(--doc-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}
.doc-quick ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.doc-quick li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  color: var(--doc-muted);
  font-size: 12.5px;
  line-height: 1.75;
}
.doc-quick li span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--doc-accent-soft);
  color: var(--doc-accent);
  font-size: 11px;
  font-weight: 800;
}
.doc-quick strong { color: var(--doc-ink); font-weight: 700; }

/* ------------------------------------------------------------ Sections */
.doc-section { padding-top: 26px; scroll-margin-top: calc(var(--doc-topbar-h) + 10px); }
.doc-section h2, .doc-section h3 { scroll-margin-top: calc(var(--doc-topbar-h) + 12px); }
.doc-section h2 {
  margin: 34px 0 12px;
  padding-top: 4px;
  color: var(--doc-ink);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.4;
}
.doc-section > h2:first-child { margin-top: 0; }
.doc-section h2::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 15px;
  margin-right: 9px;
  border-radius: 2px;
  background: var(--doc-accent);
  vertical-align: -2px;
}
.doc-section h3 {
  margin: 26px 0 10px;
  color: var(--doc-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}
.doc-section p { margin: 0 0 14px; color: var(--doc-ink-soft); font-size: 14px; line-height: 1.95; }
.doc-section strong { color: var(--doc-ink); font-weight: 700; }
.doc-section code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--doc-code-bg);
  color: var(--doc-ink);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 12.5px;
}

.doc-list { margin: 12px 0 16px; padding-left: 20px; color: var(--doc-ink-soft); font-size: 14px; line-height: 1.95; }
.doc-list li { margin: 4px 0; }

/* --------------------------------------------------------------- Figure */
.doc-figure {
  margin: 16px 0 20px;
  padding: 16px;
  border: 1px solid var(--doc-line);
  border-radius: 10px;
  background: var(--doc-figure-bg);
}
.doc-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--doc-line-soft);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(24, 24, 28, .08);
  cursor: zoom-in;
  transition: box-shadow .2s ease, transform .2s ease;
}
.doc-figure img:hover { box-shadow: 0 12px 30px rgba(24, 24, 28, .16); transform: translateY(-1px); }
.doc-figure figcaption {
  margin-top: 10px;
  color: var(--doc-muted);
  font-size: 12.5px;
  line-height: 1.75;
}
.doc-figure.is-panel { padding: 14px; }
.doc-figure.is-panel img { width: auto; max-width: 100%; margin: 0 auto; }
html[data-theme="dark"] .doc-figure img { background: #1f1f1f; }

/* ---------------------------------------------------------------- Steps */
.doc-steps { margin: 14px 0 18px; padding: 0; list-style: none; display: grid; gap: 8px; counter-reset: dstep; }
.doc-steps li {
  position: relative;
  padding: 12px 16px 12px 46px;
  border: 1px solid var(--doc-line);
  border-radius: 8px;
  background: var(--doc-panel);
  counter-increment: dstep;
}
.doc-steps li::before {
  content: counter(dstep);
  position: absolute;
  left: 15px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--doc-accent-soft);
  color: var(--doc-accent);
  font-size: 11px;
  font-weight: 800;
}
.doc-steps b { display: block; margin-bottom: 3px; color: var(--doc-ink); font-size: 13.5px; }
.doc-steps span { display: block; color: var(--doc-muted); font-size: 13px; line-height: 1.85; }
.doc-steps strong { color: var(--doc-ink); }

/* ----------------------------------------------------------------- Grid */
.doc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 0 18px; }
.doc-card {
  padding: 14px 16px;
  border: 1px solid var(--doc-line);
  border-radius: 8px;
  background: var(--doc-panel);
}
.doc-card h3 { margin: 0 0 6px; color: var(--doc-ink); font-size: 13.5px; font-weight: 700; }
.doc-card p { margin: 0; color: var(--doc-muted); font-size: 13px; line-height: 1.85; }

/* -------------------------------------------------------------- Callout */
.doc-callout {
  margin: 16px 0 20px;
  padding: 12px 16px;
  border: 1px solid var(--doc-line);
  border-left: 3px solid var(--doc-accent);
  border-radius: 8px;
  background: var(--doc-accent-soft);
}
.doc-callout > strong {
  display: block;
  margin-bottom: 4px;
  color: var(--doc-accent);
  font-size: 13px;
  font-weight: 800;
}
.doc-callout p { margin: 0; color: var(--doc-ink-soft); font-size: 13px; line-height: 1.9; }
.doc-callout.warn { border-left-color: #d19b2f; background: rgba(209, 155, 47, .10); }
.doc-callout.warn > strong { color: #a97a15; }
.doc-callout.danger { border-left-color: var(--doc-accent); background: var(--doc-accent-soft); }
html[data-theme="dark"] .doc-callout.warn { background: rgba(209, 155, 47, .12); }
html[data-theme="dark"] .doc-callout.warn > strong { color: #e8b45c; }

/* ---------------------------------------------------------------- Table */
.doc-table {
  width: 100%;
  margin: 14px 0 18px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--doc-line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--doc-panel);
  font-size: 13px;
}
.doc-table th {
  padding: 10px 14px;
  background: var(--doc-bg);
  color: var(--doc-muted);
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}
.doc-table td {
  padding: 10px 14px;
  border-top: 1px solid var(--doc-line-soft);
  color: var(--doc-ink-soft);
  line-height: 1.75;
  vertical-align: top;
}
.doc-table td strong { color: var(--doc-ink); }

/* --------------------------------------------------------------- Icons */
.doc-icons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 12px 0 18px;
  padding: 14px 16px;
  border: 1px dashed var(--doc-line);
  border-radius: 8px;
  list-style: none;
}
.doc-icons li { display: flex; align-items: flex-start; gap: 8px; color: var(--doc-muted); font-size: 12.5px; line-height: 1.7; }
.doc-icons strong { display: block; color: var(--doc-ink); font-size: 12.5px; }
.doc-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border: 1px solid var(--doc-line);
  border-radius: 6px;
  background: var(--doc-panel);
  color: var(--doc-accent);
  font-size: 12px;
  line-height: 1;
}
.doc-ico.danger { color: var(--doc-accent); }

/* ----------------------------------------------------------------- FAQ */
.doc-faq { display: grid; gap: 8px; margin: 14px 0 18px; }
.doc-faq details {
  border: 1px solid var(--doc-line);
  border-radius: 8px;
  background: var(--doc-panel);
  overflow: hidden;
}
.doc-faq summary {
  position: relative;
  padding: 12px 42px 12px 16px;
  color: var(--doc-ink);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.7;
  cursor: pointer;
  list-style: none;
}
.doc-faq summary::-webkit-details-marker { display: none; }
.doc-faq summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--doc-faint);
  font-size: 16px;
  font-weight: 400;
  transition: transform .18s ease, color .18s ease;
}
.doc-faq details[open] summary { border-bottom: 1px solid var(--doc-line-soft); }
.doc-faq details[open] summary::after { content: "−"; color: var(--doc-accent); }
.doc-faq details p { margin: 0; padding: 12px 16px 14px; color: var(--doc-muted); font-size: 13px; line-height: 1.9; }

/* -------------------------------------------------------------- Footer */
.doc-footer {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--doc-line);
  color: var(--doc-faint);
  font-size: 12px;
  line-height: 1.85;
}
.doc-footer p { margin: 0 0 6px; }
.doc-footer strong { color: var(--doc-muted); font-weight: 700; }

/* --------------------------------------------------------- Right rail */
.doc-page-toc {
  position: sticky;
  top: var(--doc-topbar-h);
  height: calc(100vh - var(--doc-topbar-h));
  padding: 26px 18px 20px 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}
.doc-page-toc:hover { scrollbar-color: var(--doc-line) transparent; }
.doc-page-toc::-webkit-scrollbar { width: 6px; }
.doc-page-toc::-webkit-scrollbar-thumb { border-radius: 999px; background: transparent; }
.doc-page-toc:hover::-webkit-scrollbar-thumb { background: var(--doc-line); }

.doc-toc-title {
  margin: 0 0 10px;
  padding-left: 10px;
  color: var(--doc-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
}
.doc-toc-list { position: relative; }
.doc-toc-group { padding-bottom: 2px; }
.doc-toc-link {
  display: block;
  padding: 5px 10px;
  border-left: 2px solid transparent;
  color: var(--doc-muted);
  font-size: 12.5px;
  line-height: 1.5;
  transition: color .14s ease, border-color .14s ease;
}
.doc-toc-link:hover { color: var(--doc-ink); }
.doc-toc-link.lv2.active { border-left-color: var(--doc-accent); color: var(--doc-accent); font-weight: 700; }
.doc-toc-subs { display: none; padding: 2px 0 6px; }
.doc-toc-subs.open { display: block; }
.doc-toc-link.lv3 { padding: 3px 10px 3px 18px; color: var(--doc-faint); font-size: 12px; }
.doc-toc-link.lv3.active { color: var(--doc-accent); border-left-color: transparent; }
.doc-toc-link.lv3:hover { color: var(--doc-ink-soft); }

.doc-top-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 14px 0 0 10px;
  color: var(--doc-muted);
  font-size: 12px;
}
.doc-top-link svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.doc-top-link:hover { color: var(--doc-accent); }

.doc-progress {
  margin: 14px 0 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--doc-faint);
  font-size: 11.5px;
}
.doc-progress b { color: var(--doc-muted); font-weight: 700; }
.doc-progress i {
  display: block;
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: var(--doc-line);
  overflow: hidden;
}
.doc-progress em { display: block; width: 0; height: 100%; border-radius: 999px; background: var(--doc-accent); transition: width .12s linear; }

/* ------------------------------------------------------------ Lightbox */
.doc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 30px;
  background: rgba(10, 10, 12, .84);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
}
.doc-lightbox[hidden] { display: none; }
.doc-lightbox img {
  max-width: min(1560px, 96vw);
  max-height: 90vh;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  cursor: default;
}
.doc-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.doc-lightbox-close:hover { background: rgba(255, 255, 255, .22); }
body.doc-lightbox-open { overflow: hidden; }

/* ---------------------------------------------------------- Responsive */
@media (max-width: 1280px) {
  .doc-page { --doc-side-w: 228px; --doc-toc-w: 200px; }
  .doc-main { padding: 24px 34px 72px; }
}

@media (max-width: 1120px) {
  .doc-shell { grid-template-columns: var(--doc-side-w) minmax(0, 1fr); }
  .doc-page-toc { display: none; }
  .doc-main { max-width: none; }
}

@media (max-width: 900px) {
  .doc-page { --doc-topbar-h: 54px; }
  .doc-search { display: none; }
  .doc-shell { grid-template-columns: minmax(0, 1fr); }
  .doc-sidebar {
    position: sticky;
    top: var(--doc-topbar-h);
    z-index: 30;
    height: auto;
    padding: 10px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--doc-line);
    overflow: visible;
  }
  .doc-nav-head, .doc-nav-foot { display: none; }
  .doc-nav {
    flex-direction: row;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .doc-nav::-webkit-scrollbar { display: none; }
  .doc-nav-group { display: none; }
  .doc-nav-item {
    flex: none;
    padding: 6px 10px;
    border: 1px solid var(--doc-line);
    border-radius: 999px;
    font-size: 12.5px;
  }
  .doc-nav-item.active { border-color: var(--doc-accent-line); }
  .doc-nav-item.active::before { display: none; }
  .doc-nav-item svg { display: none; }
  /* 移动端顶栏下面还有一条吸顶的胶囊导航，锚点要留出它的高度 */
  .doc-section, .doc-section h2, .doc-section h3 { scroll-margin-top: calc(var(--doc-topbar-h) + 62px); }
  .doc-main { padding: 20px 18px 64px; }
  .doc-title { font-size: 24px; }
  .doc-quick ol { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .doc-grid, .doc-icons { grid-template-columns: minmax(0, 1fr); }
  .doc-table { display: block; overflow-x: auto; white-space: nowrap; }
}

@media (max-width: 560px) {
  .doc-brand-divider, .doc-brand-doc { display: none; }
  .doc-console span { display: none; }
  .doc-console { padding: 0 8px; }
  .doc-figure { padding: 10px; }
  .doc-steps li { padding: 11px 14px 11px 42px; }
}

/* --------------------------------------------------------------- Print */
@media print {
  .doc-page { background: #fff; }
  .doc-topbar, .doc-sidebar, .doc-page-toc, .doc-lightbox { display: none !important; }
  .doc-shell { display: block; max-width: none; }
  .doc-main { max-width: none; padding: 0; }
  .doc-section { page-break-inside: auto; }
  .doc-figure, .doc-table, .doc-steps li, .doc-card, .doc-callout { page-break-inside: avoid; }
  .doc-faq details:not([open]) p { display: block; }
  .doc-figure img { box-shadow: none; }
  a[href^="#"] { color: inherit; text-decoration: none; }
}
