:root {
  color-scheme: light;
  --guide-blue: #2563eb;
  --guide-blue-dark: #1e40af;
  --guide-ink: #172033;
  --guide-muted: #526075;
  --guide-surface: #f5f8ff;
  --guide-line: #dce5f3;
  --guide-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; color: var(--guide-ink); background: #fff; font: 16px/1.8 var(--guide-font); -webkit-font-smoothing: antialiased; }
a { color: var(--guide-blue-dark); text-underline-offset: 4px; }
a:hover { color: var(--guide-blue); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--guide-blue); outline-offset: 5px; border-radius: 4px; }
img { display: block; max-width: 100%; }
.skip-link { position: absolute; left: 20px; top: -80px; z-index: 20; padding: 10px 16px; background: #fff; border: 2px solid var(--guide-blue); }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--guide-line); }
.header-inner, .page-shell { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; gap: 10px; color: var(--guide-ink); text-decoration: none; flex-shrink: 0; }
.brand img { width: 32px; height: 32px; object-fit: contain; }
.brand span { font-size: 20px; font-weight: 700; letter-spacing: -.5px; }
.brand small { font-size: 15px; font-weight: 500; margin-left: 5px; }
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav a { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; text-decoration: none; }
.site-nav .button { color: #fff; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 20px; border-radius: 8px; background: var(--guide-blue); color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; transition: background .15s, transform .15s; }
.button:hover { background: var(--guide-blue-dark); color: #fff; transform: translateY(-1px); }
.button:active { transform: translateY(1px); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 28px 0 34px; color: var(--guide-muted); font-size: 13px; }
.breadcrumbs a { color: inherit; text-decoration: none; }
.article-head { display: grid; grid-template-columns: minmax(0, 1fr) 272px; gap: 56px; align-items: center; padding-bottom: 44px; border-bottom: 1px solid var(--guide-line); }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--guide-blue-dark); font-size: 13px; font-weight: 700; margin: 0 0 18px; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--guide-blue); }
h1 { font-family: "Songti SC", "Noto Serif CJK SC", "SimSun", Georgia, serif; font-size: clamp(31px, 4vw, 46px); line-height: 1.4; font-weight: 700; letter-spacing: -.035em; margin: 0 0 22px; text-wrap: balance; }
.lead { max-width: 660px; margin: 0; color: var(--guide-muted); font-size: 17px; line-height: 1.9; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 22px; color: var(--guide-muted); font-size: 12px; }
.outcome { padding: 22px 24px; border-left: 3px solid var(--guide-blue); background: var(--guide-surface); }
.outcome p { margin: 0 0 12px; font-size: 13px; font-weight: 700; }
.outcome ul { padding-left: 18px; margin: 0; color: var(--guide-muted); font-size: 14px; }
.outcome li + li { margin-top: 9px; }
.reading-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 64px; align-items: start; padding-top: 40px; }
.toc { position: sticky; top: 106px; padding-right: 16px; }
.toc-title { margin: 0 0 12px; color: var(--guide-ink); font-size: 13px; font-weight: 700; }
.toc a { display: block; min-height: 44px; padding: 9px 0; color: var(--guide-muted); font-size: 13px; text-decoration: none; line-height: 1.6; }
.toc a:hover { color: var(--guide-blue); }
.toc .toc-bottom { border-top: 1px solid var(--guide-line); margin-top: 16px; padding-top: 16px; }
.article-body { min-width: 0; max-width: 790px; font-size: 16px; line-height: 1.95; padding-bottom: 32px; }
.article-body > section { scroll-margin-top: 110px; }
.article-body h2 { font-size: 25px; line-height: 1.55; margin: 0 0 18px; letter-spacing: -.025em; }
.article-body > section + section { margin-top: 52px; }
.article-body h3 { font-size: 18px; line-height: 1.65; margin: 26px 0 10px; }
.article-body p { margin: 0 0 17px; }
.article-body ul, .article-body ol { padding-left: 23px; margin: 14px 0 22px; }
.article-body li + li { margin-top: 9px; }
.article-body strong { font-weight: 650; }
.callout { margin: 24px 0; padding: 18px 22px; border-left: 3px solid var(--guide-blue); background: var(--guide-surface); font-size: 14px; }
.callout p:last-child { margin-bottom: 0; }
.callout-title { display: block; margin-bottom: 5px; color: var(--guide-blue-dark); font-weight: 700; }
code { border-radius: 4px; background: #eef2f8; padding: 2px 5px; font: .88em/1.7 Consolas, "SFMono-Regular", monospace; overflow-wrap: anywhere; }
pre { margin: 0; padding: 24px; overflow-x: auto; border-radius: 8px; background: #172033; color: #e2ebfa; white-space: pre-wrap; overflow-wrap: anywhere; font: 14px/1.9 Consolas, "SFMono-Regular", var(--guide-font); }
pre code { padding: 0; color: inherit; background: transparent; font: inherit; }
figure { margin: 26px 0; }
figcaption { margin-top: 10px; color: var(--guide-muted); font-size: 12px; line-height: 1.8; }
.flow { display: flex; align-items: center; gap: 12px; margin: 0; padding: 24px; background: var(--guide-surface); border: 1px solid var(--guide-line); border-radius: 10px; }
.flow-node { flex: 1; text-align: center; padding: 16px 10px; border-radius: 7px; border: 1px solid var(--guide-line); background: #fff; font-size: 14px; font-weight: 600; }
.flow-node small { display: block; margin-top: 5px; color: var(--guide-muted); font-size: 12px; font-weight: 400; }
.flow-arrow { color: var(--guide-blue); font-size: 20px; }
.table-scroll { overflow-x: auto; margin: 24px 0; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; line-height: 1.8; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--guide-line); vertical-align: top; }
th { background: var(--guide-surface); font-weight: 600; }
.map-demo { padding: 24px; background: var(--guide-surface); border: 1px solid var(--guide-line); border-radius: 10px; }
.map-root { display: inline-block; margin-bottom: 12px; padding: 8px 16px; border-radius: 7px; background: var(--guide-blue); color: #fff; font-weight: 600; }
.article-body .map-branches { margin: 0 0 0 18px; padding-left: 24px; border-left: 2px solid #b7ccf3; list-style: none; }
.article-body .map-branches > li { position: relative; margin: 14px 0; }
.map-branches > li::before { content: ""; position: absolute; width: 22px; height: 2px; left: -24px; top: 17px; background: #b7ccf3; }
.map-branches strong { display: inline-block; padding: 3px 12px; background: #fff; border: 1px solid var(--guide-line); border-radius: 5px; font-size: 14px; }
.map-branches span { display: block; margin: 5px 0 0 12px; color: var(--guide-muted); font-size: 13px; }
.faq { padding: 18px 0; border-bottom: 1px solid var(--guide-line); }
.faq summary { cursor: pointer; min-height: 44px; display: list-item; padding: 7px 0; font-weight: 600; font-size: 15px; }
.faq p { margin: 12px 0 0; color: var(--guide-muted); font-size: 14px; }
.next-action { margin-top: 46px; padding: 28px; background: var(--guide-surface); border-radius: 10px; }
.next-action h2 { font-size: 22px; margin-bottom: 10px; }
.next-action p { color: var(--guide-muted); font-size: 14px; }
.related { margin-top: 38px; padding-top: 30px; border-top: 1px solid var(--guide-line); }
.related h2 { font-size: 18px; }
.related-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.related-links a { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px; border: 1px solid var(--guide-line); border-radius: 8px; font-size: 14px; line-height: 1.75; text-decoration: none; }
.related-links a:hover { background: var(--guide-surface); border-color: #a8bfe9; }
.related-links span { flex-shrink: 0; }
.site-footer { margin-top: 30px; padding: 28px 0; border-top: 1px solid var(--guide-line); color: var(--guide-muted); font-size: 12px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { padding-block: 12px; color: inherit; text-decoration: none; }
@media (max-width: 960px) {
  .article-head { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .outcome { max-width: none; }
  .outcome ul { display: flex; gap: 16px 34px; flex-wrap: wrap; }
  .outcome li + li { margin-top: 0; }
  .reading-layout { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .toc { position: static; padding: 0 0 20px; border-bottom: 1px solid var(--guide-line); }
  .toc-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
  .toc .toc-bottom { border: 0; margin: 0; padding: 0; }
  .article-body { max-width: none; }
}
@media (max-width: 600px) {
  .header-inner, .page-shell { width: calc(100% - 36px); }
  .header-inner { min-height: 68px; gap: 10px; }
  .brand span { font-size: 19px; }
  .brand small { display: none; }
  .brand img { width: 28px; height: 28px; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 13px; }
  .site-nav .nav-install { display: none; }
  .site-nav .button { padding-inline: 12px; }
  .breadcrumbs { margin-top: 22px; margin-bottom: 28px; font-size: 12px; }
  .breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; }
  .article-head { padding-bottom: 30px; }
  .lead { font-size: 15px; }
  .outcome { padding: 18px 20px; }
  .outcome ul { display: block; }
  .outcome li + li { margin-top: 6px; }
  .reading-layout { padding-top: 26px; }
  .article-body { font-size: 15px; }
  .article-body h2 { font-size: 22px; }
  .article-body > section + section { margin-top: 40px; }
  .callout, .map-demo { padding: 17px; }
  .flow { flex-direction: column; padding: 18px; gap: 8px; }
  .flow-node { width: 100%; }
  .flow-arrow { transform: rotate(90deg); }
  pre { padding: 18px; font-size: 12px; }
  th, td { padding: 12px 10px; }
  .related-links { grid-template-columns: minmax(0, 1fr); }
  .next-action { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
