/* 归壹文档：系统字体、灰白层次、蓝色操作与轻质玻璃导航。 */
:root {
  --bg: #ffffff;
  --surface: #f5f5f7;
  --surface-2: #f2f6fc;
  --text: #303034;
  --heading: #1d1d1f;
  --muted: #65656b;
  --faint: #73737b;
  --border: #e8e8ed;
  --accent: #0066cc;
  --accent-hover: #0058b0;
  --accent-soft: #eef5fd;
  --nav-active: #e8f1fc;
  --code-bg: #f7f7f9;
  --header: rgba(255, 255, 255, .82);
  --shadow: 0 18px 65px rgba(0, 0, 0, .12);
  --sidebar: 246px;
  --header-height: 68px;
}
html[data-theme=dark] {
  --bg: #101012;
  --surface: #1c1c1f;
  --surface-2: #1b2230;
  --text: #e1e1e6;
  --heading: #f5f5f7;
  --muted: #b1b1ba;
  --faint: #a0a0aa;
  --border: #2e2e33;
  --accent: #6bb6ff;
  --accent-hover: #9acfff;
  --accent-soft: #15253a;
  --nav-active: #1b2d45;
  --code-bg: #19191d;
  --header: rgba(19, 19, 22, .84);
  --shadow: 0 20px 70px rgba(0, 0, 0, .38);
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  letter-spacing: -.012em;
}
::selection { background: #cce4ff; color: #16365a; }
.site-header { padding: 0 30px 0 25px; backdrop-filter: saturate(180%) blur(22px); -webkit-backdrop-filter: saturate(180%) blur(22px); }
.brand { gap: 9px; }
.brand-mark { background: #242426; width: 34px; height: 34px; border-radius: 10px; }
.brand-name { font-size: 21px; font-weight: 600; letter-spacing: -.03em; }
.brand-docs { font-size: 14px; font-weight: 400; color: var(--muted); }
.brand-separator { margin: 0 13px; }
.header-center { color: var(--faint); font-size: 11px; letter-spacing: .015em; }
.header-actions { gap: 14px; }
.search-trigger { border-radius: 9px; height: 34px; background: var(--surface); border-color: transparent; padding-left: 12px; min-width: 200px; }
.search-trigger:hover { border-color: var(--border); }
.console-link { font-size: 12px; font-weight: 500; padding: 8px 13px; border-radius: 999px; background: var(--heading); color: var(--bg); }
.console-link:hover { opacity: .8; }
.console-link .icon { width: 12px; height: 12px; }
.icon-button { border-radius: 50%; }
.theme-toggle { border-right: 0; padding: 0; width: 32px; }
.sidebar { background: color-mix(in srgb, var(--surface) 55%, var(--bg)); border-right-color: var(--border); }
.sidebar nav { padding: 28px 17px; }
.reading-routes { display: flex; gap: 3px; padding: 4px; margin: 0 1px 18px; background: color-mix(in srgb, var(--border) 55%, transparent); border-radius: 10px; }
.reading-routes a { flex: 1; text-align: center; padding: 7px 3px; border-radius: 7px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.reading-routes a.active { background: var(--bg); color: var(--heading); box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.reading-routes a:hover { color: var(--accent); }
.hero-footnote > a { display: block; width: fit-content; margin-top: 10px; font-size: 11px; color: var(--accent); }
.nav-home { padding: 11px 12px; border-radius: 9px; font-size: 13px; margin-bottom: 27px; font-weight: 500; }
.nav-group { margin-bottom: 27px; }
.nav-group h2 { margin: 0 12px 9px; font-size: 11px; font-weight: 500; color: var(--faint); letter-spacing: .025em; }
.nav-link { font-size: 12px; padding: 8px 12px; margin: 2px 0; border-radius: 8px; min-height: 35px; line-height: 1.7; }
.nav-link.active { font-weight: 500; }
.nav-home.active { font-weight: 500; }
.nav-home:hover, .nav-link:hover { background: color-mix(in srgb, var(--border) 50%, transparent); }
.nav-home.active:hover, .nav-link.active:hover { background: var(--nav-active); }
.nav-tag { font-size: 9px; font-weight: 500; letter-spacing: 0; }
.sidebar-footer { border-top-color: transparent; font-size: 10px; padding: 18px 27px; gap: 8px; }
.preview-badge { border-radius: 5px; border-color: color-mix(in srgb, var(--faint) 30%, transparent); }
.content-layout { max-width: 1240px; padding: 43px 55px 0; gap: 58px; }
.home-area .content-layout { max-width: 1280px; padding: 42px 64px 0; }
.home-content { max-width: 1010px; }
.eyebrow { color: var(--faint); font-size: 11px; gap: 10px; margin-bottom: 32px; letter-spacing: 0; }
.eyebrow-divider { width: 1px; height: 10px; background: var(--border); }
.hero { border-bottom: 0; padding: 8px 0 48px; }
.hero-kicker { font-size: 13px; font-weight: 500; letter-spacing: -.01em; margin-bottom: 15px; color: var(--accent); }
.hero h1 { font-size: clamp(39px, 4.3vw, 58px); font-weight: 650; letter-spacing: -.055em; line-height: 1.13; margin-bottom: 22px; word-break: keep-all; }
.hero h1 > span { color: var(--heading); }
.hero > p { font-size: 16px; line-height: 1.9; color: var(--muted); letter-spacing: -.015em; margin-bottom: 27px; }
.hero-actions { gap: 11px; }
.button { border-radius: 999px; padding: 11px 19px; font-size: 12px; font-weight: 400; min-height: 43px; gap: 11px; border-color: transparent; }
.button.primary { background: #0071e3; border-color: #0071e3; color: #fff; }
.button.primary:hover { background: #0077ed; border-color: #0077ed; }
.button.secondary { color: var(--accent); background: var(--surface); border-color: var(--surface); }
.button.secondary:hover { background: var(--accent-soft); border-color: var(--accent-soft); }
.hero-footnote { font-size: 10px; margin-top: 17px; color: var(--faint); }
.journey { padding: 23px 0 0; border-top: 1px solid var(--border); }
.section-heading { margin-bottom: 20px; }
.overline { font-size: 10px; letter-spacing: .025em; font-weight: 400; margin-bottom: 8px; color: var(--faint); }
.section-heading h2 { font-size: 22px; font-weight: 600; letter-spacing: -.035em; }
.text-link { font-size: 11px; font-weight: 400; }
.text-link .icon { width: 12px; height: 12px; }
.journey-grid { border: 0; border-radius: 16px; background: var(--surface); }
.journey-step { background: transparent; padding: 22px 18px; border-color: color-mix(in srgb, var(--faint) 14%, transparent); min-height: 123px; gap: 13px; }
.journey-step:hover { background: var(--accent-soft); }
.journey-number { background: transparent; border: 0; color: var(--faint); font-size: 12px; justify-content: flex-start; width: auto; height: auto; }
.journey-label strong { font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.journey-label > span { font-size: 10px; line-height: 1.7; }
.journey-step > .icon { width: 12px; height: 12px; top: 23px; right: 16px; }
.popular { padding-top: 39px; }
.card-grid { gap: 15px; }
.guide-card { border-radius: 18px; border-color: var(--border); padding: 24px 22px; background: var(--bg); transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.guide-card:hover { border-color: var(--border); background: var(--bg); box-shadow: 0 8px 26px rgba(0, 0, 0, .055); transform: translateY(-2px); }
html[data-theme=dark] .guide-card:hover { box-shadow: 0 8px 26px rgba(0, 0, 0, .2); border-color: #52525a; }
.card-icon { background: var(--surface); width: 36px; height: 36px; border-radius: 10px; justify-content: center; color: var(--heading); margin-bottom: 17px; }
.card-icon .icon { width: 20px; height: 20px; stroke-width: 1.5; }
.guide-card h3 { font-size: 13px; font-weight: 500; margin-bottom: 7px; line-height: 1.8; letter-spacing: -.02em; }
.guide-card h3 > .icon { width: 13px; height: 13px; color: var(--faint); }
.guide-card p { font-size: 11px; line-height: 1.9; color: var(--muted); }
.connection-banner { border: 0; background: var(--surface); border-radius: 20px; margin-top: 39px; }
.connection-copy { padding: 31px; }
.connection-copy h2 { font-size: 23px; line-height: 1.5; font-weight: 600; letter-spacing: -.04em; margin-bottom: 14px; }
.connection-copy p { font-size: 11px; }
.connection-fields { padding: 7px 28px; background: transparent; border-left-color: color-mix(in srgb, var(--faint) 14%, transparent); }
.connection-fields > div { padding: 16px 0; border-color: color-mix(in srgb, var(--faint) 14%, transparent); }
.connection-fields span { font-size: 10px; color: var(--muted); margin-bottom: 5px; }
.connection-fields code { font-size: 12px; letter-spacing: -.03em; }
.connection-fields strong { font-size: 11px; font-weight: 400; line-height: 1.8; }
.connection-fields button { top: 22px; }
.page-footer { margin-top: 39px; padding: 24px 0 30px; font-size: 10px; border-top-color: var(--border); }
.breadcrumb { color: var(--faint); font-size: 11px; margin-bottom: 31px; }
.article-label { font-size: 12px; font-weight: 500; letter-spacing: -.01em; }
.article-header { padding-bottom: 30px; margin-bottom: 30px; }
.article-header h1 { font-size: 37px; font-weight: 650; line-height: 1.4; letter-spacing: -.045em; }
.article-header > p { font-size: 15px; line-height: 1.9; }
.article-meta { font-size: 10px; }
.article-body { font-size: 15px; line-height: 2; }
.article-body h2 { font-size: 23px; letter-spacing: -.03em; margin-top: 39px; font-weight: 600; }
.article-body p a { text-decoration-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.article-body code { background: var(--surface); border-radius: 5px; }
.step-number { color: var(--accent); background: var(--surface); border: 0; width: 30px; height: 30px; font-size: 11px; }
.steps h3 { font-size: 15px; font-weight: 500; }
.steps p { font-size: 14px; line-height: 2; }
.steps li { gap: 18px; padding-bottom: 28px; }
.steps li:not(:last-child):before { left: 15px; }
.callout { background: var(--surface-2); border: 0; border-radius: 14px; padding: 19px 20px; gap: 13px; }
.callout strong { font-size: 13px; font-weight: 500; }
.callout p { font-size: 12px; line-height: 2; }
.callout.warning { background: #fbf5e9; border: 0; }
html[data-theme=dark] .callout.warning { background: #302719; border: 0; }
.table-scroll { border-radius: 13px; border-color: var(--border); }
.table-scroll table { font-size: 13px; }
.table-scroll th { background: var(--surface); font-weight: 500; font-size: 11px; }
.table-scroll th, .table-scroll td { padding: 14px 16px; }
.code-block { border-radius: 14px; border-color: var(--border); }
.code-block figcaption { background: var(--surface); padding: 11px 17px; font-size: 10px; }
.code-block pre { padding: 19px 21px; }
.code-block pre code { font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace; font-size: 12px; background: none; }
.copy-code { border-radius: 6px; font-size: 10px; }
.guide-image img { border-radius: 14px; }
.page-toc { width: 175px; top: 114px; }
.page-toc > span { font-weight: 500; font-size: 11px; }
.page-toc nav a { font-size: 11px; line-height: 1.8; padding: 6px 0 6px 13px; }
.article-pagination { margin-top: 43px; gap: 15px; }
.article-pagination a { border-radius: 13px; padding: 18px; }
.article-pagination strong { font-size: 12px; font-weight: 500; }
.article-pagination a:hover { border-color: var(--border); background: var(--surface); }
.search-dialog { border-radius: 20px; border-color: color-mix(in srgb, var(--border) 75%, transparent); box-shadow: var(--shadow); }
.search-dialog::backdrop { background: rgba(12, 12, 15, .2); backdrop-filter: blur(8px); }
.search-input-row { padding: 18px 21px; }
.search-results a { border-radius: 10px; padding: 14px; }
.search-status { font-size: 11px; }
.result-title { font-size: 13px; font-weight: 500; }
.result-description { font-size: 11px; }
.search-footer { background: var(--surface); }
.toast { border-radius: 999px; padding: 12px 20px; }
@media (min-width: 1650px) {
  .home-area .content-layout { padding-top: 48px; }
  .hero h1 { font-size: 61px; }
}
@media (max-width: 1250px) {
  .content-layout { padding: 35px 38px 0; gap: 34px; }
  .home-area .content-layout { padding: 36px 40px 0; }
  .page-toc { width: 145px; }
  .hero h1 { font-size: 49px; }
  .guide-card { padding: 22px 18px; }
  .guide-card h3 { font-size: 12px; }
  .connection-copy { padding: 27px 24px; }
  .connection-copy h2 { font-size: 21px; }
  .article-header h1 { font-size: 32px; }
}
@media (max-width: 1090px) {
  :root { --sidebar: 226px; }
  .page-toc { display: none; }
  .journey-step { min-height: 102px; }
  .connection-fields { border-left: 0; border-top-color: var(--border); }
}
@media (max-width: 820px) {
  :root { --sidebar: 0px; --header-height: 64px; }
  .site-header { padding: 0 20px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-name { font-size: 19px; }
  .brand-docs { font-size: 13px; }
  .header-actions { gap: 8px; }
  .search-trigger { min-width: 0; width: 33px; height: 33px; background: none; padding: 7px; }
  .sidebar { background: var(--bg); }
  .sidebar nav { padding-top: 20px; }
  .sidebar-backdrop:not([hidden]) { background: rgba(15, 15, 18, .26); backdrop-filter: blur(5px); }
  .home-area .content-layout, .content-layout { padding: 29px 32px 0; }
  .hero h1 { font-size: 48px; }
  .hero > p { font-size: 15px; }
  .journey-step { min-height: 119px; }
  .guide-card { padding: 22px 18px; }
  .guide-card h3 { font-size: 12px; }
  .connection-fields { border-top: 0; border-left: 1px solid var(--border); padding: 7px 23px; }
  .article-header h1 { font-size: 31px; }
}
@media (max-width: 620px) {
  .home-area .content-layout, .content-layout { padding: 26px 22px 0; }
  .eyebrow { font-size: 10px; margin-bottom: 29px; }
  .hero { padding: 0 0 35px; }
  .hero-kicker { font-size: 11px; margin-bottom: 15px; }
  .hero h1 { font-size: 40px; line-height: 1.18; margin-bottom: 19px; }
  .hero > p { font-size: 13px; line-height: 1.95; margin-bottom: 24px; }
  .hero-actions { gap: 9px; }
  .hero-actions .button { font-size: 11px; padding: 10px 14px; gap: 6px; min-height: 42px; }
  .hero-footnote { font-size: 9px; margin-top: 15px; }
  .journey { padding-top: 25px; }
  .section-heading { margin-bottom: 17px; }
  .section-heading h2 { font-size: 19px; }
  .overline { font-size: 9px; margin-bottom: 8px; }
  .text-link { font-size: 9px; gap: 3px; }
  .journey-grid { border-radius: 15px; }
  .journey-step { min-height: 96px; padding: 20px 14px; gap: 10px; }
  .journey-label strong { font-size: 12px; }
  .journey-label > span { font-size: 9px; line-height: 1.9; }
  .journey-number { width: 18px; height: auto; font-size: 10px; }
  .popular { padding-top: 32px; }
  .home-cards { grid-template-columns: 1fr; gap: 12px; }
  .guide-card { padding: 22px; border-radius: 18px; }
  .card-icon { width: 34px; height: 34px; margin-bottom: 14px; }
  .guide-card h3 { font-size: 14px; margin-bottom: 6px; }
  .guide-card p { font-size: 12px; }
  .connection-banner { margin-top: 31px; border-radius: 18px; }
  .connection-copy { padding: 25px 23px; }
  .connection-copy h2 { font-size: 23px; }
  .connection-copy p { font-size: 11px; }
  .connection-fields { border-left: 0; border-top: 1px solid var(--border); padding: 6px 23px; }
  .connection-fields code { font-size: 12px; }
  .connection-fields strong { font-size: 11px; }
  .connection-fields span { font-size: 10px; }
  .page-footer { font-size: 9px; padding: 24px 0; margin-top: 30px; }
  .breadcrumb { font-size: 10px; margin-bottom: 24px; }
  .article-label { font-size: 11px; }
  .article-header h1 { font-size: 28px; }
  .article-header > p { font-size: 13px; }
  .article-header { padding-bottom: 25px; margin-bottom: 25px; }
  .article-body { font-size: 14px; line-height: 2; }
  .article-body h2 { font-size: 20px; margin-top: 31px; }
  .steps h3 { font-size: 14px; }
  .steps p { font-size: 13px; }
  .steps li { gap: 13px; }
  .callout { border-radius: 12px; padding: 17px 15px; }
  .callout strong { font-size: 12px; }
  .callout p { font-size: 11px; }
  .table-scroll table { font-size: 12px; }
  .table-scroll th, .table-scroll td { padding: 12px; }
  .code-block pre code { font-size: 11px; }
  .article-pagination { gap: 11px; }
  .article-pagination a { padding: 14px; }
  .search-dialog { border-radius: 17px; }
  .result-title { font-size: 12px; }
  .result-description { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .guide-card, .guide-card:hover { transition: none; transform: none; }
}
