/* 使用指南 · 文档模式 */
html { scroll-behavior: smooth; }
body.guide-page { margin: 0; background: #fff; color: #111827; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.doc-header {
  position: sticky; top: 0; z-index: 70; height: 58px; display: flex; align-items: center;
  justify-content: space-between; gap: 20px; padding: 0 22px; background: rgba(255,255,255,.96);
  border-bottom: 1px solid #e7eaf0; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.doc-brand { display: inline-flex; align-items: center; gap: 9px; color: #111827; font-family: var(--font-display); }
.doc-brand img { border-radius: 7px; }
.doc-brand b { font-size: 14px; font-weight: 800; letter-spacing: -.02em; }
.doc-brand i { padding-left: 9px; border-left: 1px solid #dfe4ec; color: #7b879b; font-size: 11.5px; font-style: normal; }
.doc-header__actions { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.doc-header__actions a { padding: 7px 10px; border-radius: 6px; color: #5b6577; font-weight: 600; }
.doc-header__actions a:hover { background: #f4f6fa; color: #111827; }
.doc-header__actions .doc-header__primary { background: #1f5eff; color: #fff; }
.doc-header__actions .doc-header__primary:hover { background: #174bd8; color: #fff; }
.doc-shell { display: grid; grid-template-columns: 254px minmax(0, 1fr); min-height: calc(100vh - 58px); }
.doc-side {
  position: sticky; top: 58px; align-self: start; height: calc(100vh - 58px); overflow-y: auto;
  padding: 20px 14px 28px; background: #fbfcfe; border-right: 1px solid #e7eaf0; scrollbar-width: thin;
}
.doc-side__head { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 12px; }
.doc-side__head span { color: #7b879b; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; }
.doc-side__head b { display: grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: #eef4ff; color: #1f5eff; font-size: 10px; }
.doc-search { display: block; margin: 0 4px 10px; }
.doc-search input {
  width: 100%; height: 34px; padding: 0 10px; border: 1px solid #dfe4ec; border-radius: 7px;
  background: #fff; color: #111827; font: inherit; font-size: 12px;
}
.doc-search input:focus { outline: none; border-color: #1f5eff; box-shadow: 0 0 0 3px rgba(31,94,255,.1); }
.doc-nav { display: grid; gap: 2px; }
.doc-nav a {
  position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 7px;
  min-height: 34px; padding: 6px 9px; border-radius: 6px; color: #5b6577; font-size: 12.5px; font-weight: 600;
}
.doc-nav a span { color: #a1aab8; font-family: var(--font-display); font-size: 9.5px; letter-spacing: .04em; }
.doc-nav a:hover { background: #f3f6fb; color: #111827; }
.doc-nav a.is-active { background: #eef4ff; color: #1f5eff; }
.doc-nav a.is-active span { color: #1f5eff; }
.doc-nav a.is-active::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: #1f5eff; }
.doc-side__empty { margin: 12px 8px; color: #9aa4b2; font-size: 11.5px; }
.doc-main { min-width: 0; background: #fff; }
.doc-main__inner { width: min(100%, 880px); margin: 0 auto; padding: 38px 46px 78px; }
.doc-crumb { display: flex; align-items: center; gap: 7px; margin-bottom: 28px; color: #8a94a6; font-size: 11.5px; }
.doc-crumb span { color: #c2c9d3; }
.doc-crumb b { color: #4b5563; font-weight: 600; }
.doc-article { display: none; }
.doc-article.is-active { display: block; animation: docFade .18s ease; }
@keyframes docFade { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.doc-kicker { margin: 0 0 8px; color: #1f5eff; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.doc-article h1 { margin: 0 0 10px; color: #111827; font-family: var(--font-display); font-size: 30px; line-height: 1.25; letter-spacing: -.04em; }
.doc-lead { margin: 0 0 28px; color: #5b6577; font-size: 13px; line-height: 1.85; }
.doc-article h2 { margin: 28px 0 12px; padding-top: 3px; color: #111827; font-size: 17px; line-height: 1.4; }
.doc-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: docstep; }
.doc-steps li { position: relative; padding: 0 0 0 34px; color: #4b5563; font-size: 12.5px; line-height: 1.8; counter-increment: docstep; }
.doc-steps li::before {
  content: counter(docstep, decimal-leading-zero); position: absolute; left: 0; top: 2px;
  width: 23px; height: 23px; display: grid; place-items: center; border-radius: 6px;
  background: #eef4ff; color: #1f5eff; font-size: 9px; font-weight: 800;
}
.doc-notes { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.doc-notes li { position: relative; padding-left: 14px; color: #5b6577; font-size: 12.5px; line-height: 1.8; }
.doc-notes li::before { content: ''; position: absolute; left: 1px; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: #a8b4c6; }
.doc-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; padding-top: 16px; border-top: 1px solid #eef1f5; }
.doc-links b { width: 100%; margin-bottom: 2px; color: #7b879b; font-size: 10.5px; }
.doc-links a { display: inline-flex; align-items: center; padding: 6px 10px; border: 1px solid #dfe4ec; border-radius: 6px; color: #1f5eff; font-size: 11.5px; font-weight: 600; }
.doc-links a:hover { background: #f5f8ff; border-color: #b9c9e8; }
.doc-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 46px; padding-top: 18px; border-top: 1px solid #e7eaf0; color: #9aa4b2; font-size: 10.5px; }
.doc-footer span:last-child { display: flex; gap: 12px; flex-wrap: wrap; }
.doc-footer a { color: #7b879b; }
.doc-footer a:hover { color: #1f5eff; }
@media (max-width: 900px) {
  .doc-header { padding: 0 14px; }
  .doc-brand i { display: none; }
  .doc-shell { grid-template-columns: minmax(0, 1fr); }
  .doc-side { position: static; height: auto; padding: 14px; border-right: 0; border-bottom: 1px solid #e7eaf0; }
  .doc-side__head { padding-bottom: 8px; }
  .doc-search { margin-bottom: 8px; }
  .doc-nav { display: flex; gap: 5px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
  .doc-nav a { flex: none; min-height: 32px; grid-template-columns: 20px auto; padding: 5px 9px; font-size: 11.5px; }
  .doc-main__inner { padding: 26px 20px 56px; }
  .doc-crumb { margin-bottom: 20px; }
}
@media (max-width: 520px) {
  .doc-header__actions a:first-child { display: none; }
  .doc-brand b { font-size: 13px; }
  .doc-article h1 { font-size: 25px; }
  .doc-lead { font-size: 12.5px; }
  .doc-article h2 { font-size: 16px; }
  .doc-footer { align-items: flex-start; flex-direction: column; }
}
