.geo-book {
    --geo-book-surface: #fff;
    --geo-book-muted: #f6f8fb;
    --geo-book-border: #dfe6ee;
    --geo-book-heading: #152b46;
    --geo-book-text: #44546f;
    --geo-book-accent: #185abd;
    --geo-book-anchor-offset: 112px;
    color: var(--geo-book-text);
    background: var(--geo-book-surface);
    font-family: "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

[data-bs-theme="dark"] .geo-book {
    --geo-book-surface: #182335;
    --geo-book-muted: #202e43;
    --geo-book-border: #39495e;
    --geo-book-heading: #f1f5fa;
    --geo-book-text: #c8d2e1;
    --geo-book-accent: #9cc4ff;
}

.geo-book-container { max-width: 1320px; margin: 0 auto; padding: 0 40px; }
.geo-book a { color: var(--geo-book-accent); text-underline-offset: 3px; }
.geo-book a:hover { text-decoration: underline; }
.geo-book :is(a, button, summary, [tabindex]):focus-visible { outline: 2px solid var(--geo-book-accent); outline-offset: 4px; }
.geo-book-hero { padding: 42px 0 36px; border-bottom: 1px solid var(--geo-book-border); }
.geo-book-breadcrumb { display: flex; gap: 12px; align-items: center; font-size: 13px; margin-bottom: 28px; }
.geo-book-breadcrumb span { color: var(--geo-book-text); }
.geo-book-hero-body { display: grid; grid-template-columns: minmax(0, 1fr) 238px; gap: 64px; align-items: center; }
.geo-book-hero h1 { color: var(--geo-book-heading); font-size: clamp(34px, 3.2vw, 46px); font-weight: 650; line-height: 1.22; letter-spacing: -.035em; margin: 0 0 12px; }
.geo-book-subtitle { color: var(--geo-book-heading); font-size: 22px; line-height: 1.6; font-weight: 500; margin: 0 0 16px; }
.geo-book-intro { font-size: 16px; line-height: 1.9; max-width: 70ch; margin: 0; }
.geo-book-meta { border-left: 1px solid var(--geo-book-border); padding-left: 28px; margin: 0; font-size: 13px; }
.geo-book-meta div { margin-bottom: 15px; }
.geo-book-meta div:last-child { margin-bottom: 0; }
.geo-book-meta dt { color: var(--geo-book-text); font-weight: 400; margin-bottom: 4px; }
.geo-book-meta dd { color: var(--geo-book-heading); line-height: 1.7; margin: 0; }
.geo-book-start { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.geo-book-start a { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 20px; row-gap: 4px; padding: 17px 20px; border: 1px solid var(--geo-book-border); border-radius: 8px; text-decoration: none; }
.geo-book-start a:hover { background: var(--geo-book-muted); text-decoration: none; border-color: var(--geo-book-accent); }
.geo-book-start strong { color: var(--geo-book-accent); font-size: 15px; font-weight: 600; }
.geo-book-start span { font-size: 13px; color: var(--geo-book-text); }
.geo-book-version-note { margin: 18px 0 0; font-size: 12px; line-height: 1.8; max-width: 100ch; }
.geo-book-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; align-items: start; padding: 38px 0 72px; }
.geo-book-sidebar { position: sticky; top: 88px; max-height: calc(100dvh - 116px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--geo-book-border) transparent; padding: 0 12px 12px 0; }
.geo-book-toc-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.geo-book-toc-heading p { color: var(--geo-book-heading); font-size: 14px; font-weight: 600; margin: 0; }
.geo-book-toc-tools { display: flex; gap: 16px; margin: 0 0 15px; }
.geo-book-toc-tools button { padding: 2px 0; border: 0; color: var(--geo-book-text); background: transparent; font-size: 12px; cursor: pointer; }
.geo-book-toc-tools button:hover { color: var(--geo-book-accent); }
.geo-book-toc, .geo-book-toc-children { list-style: none; padding: 0; margin: 0; }
.geo-book-toc > li { margin: 3px 0; }
.geo-book-toc-row { display: flex; align-items: center; border-radius: 5px; }
.geo-book .geo-book-toc-link { display: block; min-width: 0; flex: 1; padding: 9px 8px; font-size: 13px; line-height: 1.55; color: var(--geo-book-text); text-decoration: none; }
.geo-book-toc-row:hover { background: var(--geo-book-muted); }
.geo-book .geo-book-toc-link:hover { text-decoration: none; }
.geo-book-toc-group.is-active > .geo-book-toc-row > .geo-book-toc-link { color: var(--geo-book-accent); font-weight: 600; }
.geo-book-toc-toggle { flex: 0 0 30px; width: 30px; height: 32px; padding: 8px; border: 0; border-radius: 4px; background: transparent; color: var(--geo-book-text); cursor: pointer; }
.geo-book-toc-toggle svg, .geo-book-mobile-toggle svg { display: block; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; transition: transform .15s; }
.geo-book-toc-toggle[aria-expanded="false"] svg { transform: rotate(-90deg); }
.geo-book-toc-children { margin: 3px 0 10px 12px; border-left: 1px solid var(--geo-book-border); }
.geo-book-toc-children a { display: block; padding: 7px 8px 7px 14px; border-left: 2px solid transparent; margin-left: -1px; color: var(--geo-book-text); font-size: 12px; line-height: 1.65; text-decoration: none; }
.geo-book-toc-children a:hover { color: var(--geo-book-accent); background: var(--geo-book-muted); text-decoration: none; }
.geo-book-toc-children a.is-current { border-left-color: var(--geo-book-accent); color: var(--geo-book-accent); background: var(--geo-book-muted); font-weight: 500; }
.geo-book-toc-row > a.is-current { color: var(--geo-book-accent); background: var(--geo-book-muted); border-radius: 5px; font-weight: 600; }
.geo-book [hidden] { display: none !important; }
.geo-book-mobile-toggle { display: none; }
.geo-book-main { min-width: 0; max-width: 900px; }
.geo-book-section { padding: 0 0 44px; margin-bottom: 42px; border-bottom: 1px solid var(--geo-book-border); scroll-margin-top: var(--geo-book-anchor-offset); min-width: 0; }
.geo-book-section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.geo-book-section h2 { color: var(--geo-book-heading); font-size: 26px; line-height: 1.5; font-weight: 600; letter-spacing: -.025em; margin: 0 0 20px; }
.geo-book-section h3 { color: var(--geo-book-heading); font-size: 19px; line-height: 1.7; font-weight: 600; margin: 32px 0 12px; scroll-margin-top: var(--geo-book-anchor-offset); }
.geo-book-section h4 { color: var(--geo-book-heading); font-size: 16px; line-height: 1.7; font-weight: 600; margin: 0 0 9px; }
.geo-book-section p, .geo-book-section li { color: var(--geo-book-text); font-size: 15px; line-height: 1.95; }
.geo-book-section p { max-width: 82ch; margin: 0 0 16px; }
.geo-book-section > :is(ul, ol) { padding-left: 22px; margin-bottom: 20px; }
.geo-book-section li + li { margin-top: 6px; }
.geo-book-section strong { color: var(--geo-book-heading); font-weight: 600; }
.geo-book-section-lead { font-size: 16px !important; }
.geo-book-deliverable { display: flex; align-items: baseline; gap: 16px; border-left: 3px solid var(--geo-book-accent); background: var(--geo-book-muted); padding: 14px 17px; margin: 22px 0; font-size: 13px; line-height: 1.9; }
.geo-book-deliverable strong { white-space: nowrap; }
.geo-book-note { border-left: 3px solid var(--geo-book-accent); background: var(--geo-book-muted); border-radius: 0 6px 6px 0; padding: 16px 18px; margin: 22px 0; font-size: 14px; line-height: 1.95; }
.geo-book-note strong { margin-right: 8px; }
.geo-book-note li, .geo-book-note p { font-size: 14px; }
.geo-book-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; row-gap: 20px; margin: 24px 0 4px; }
.geo-book-card { border-top: 2px solid var(--geo-book-border); padding-top: 14px; }
.geo-book-card h3 { margin: 0 0 8px; font-size: 16px; }
.geo-book-card p { font-size: 14px; margin: 0; }
.geo-book-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 22px 0; }
.geo-book-comparison > div { border-top: 2px solid var(--geo-book-border); padding-top: 15px; }
.geo-book-comparison > div:last-child { border-color: var(--geo-book-accent); }
.geo-book-comparison p { font-size: 14px; margin: 0; }
.geo-book-definition-list { margin: 22px 0; border-top: 1px solid var(--geo-book-border); }
.geo-book-definition-list > div { display: grid; grid-template-columns: 126px minmax(0, 1fr); gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--geo-book-border); }
.geo-book-definition-list dt { color: var(--geo-book-heading); font-size: 14px; line-height: 1.9; font-weight: 600; }
.geo-book-definition-list dd { font-size: 14px; line-height: 1.9; margin: 0; }
.geo-book-steps { list-style: decimal; }
.geo-book-steps li { padding-left: 4px; margin-bottom: 14px; }
.geo-book-steps strong { display: block; }
.geo-book-steps span { display: block; }
.geo-book-section .table-responsive { border: 1px solid var(--geo-book-border); border-radius: 7px; margin: 22px 0; }
.geo-book-section .table { --bs-table-color: var(--geo-book-text); --bs-table-bg: var(--geo-book-surface); --bs-table-border-color: var(--geo-book-border); --bs-table-striped-bg: var(--geo-book-muted); color: var(--geo-book-text); min-width: 540px; margin: 0; font-size: 13px; line-height: 1.85; border: 0; }
.geo-book-section .table > :not(caption) > * > * { padding: 13px 15px; border: 0; border-bottom: 1px solid var(--geo-book-border); vertical-align: top; }
.geo-book-section .table > tbody > tr:last-child > * { border-bottom: 0; }
.geo-book-section .table > thead > tr > * { color: var(--geo-book-heading); background: var(--geo-book-muted); font-size: 13px; font-weight: 600; }
.geo-book-section .table > tbody > tr > th { font-weight: 500; color: var(--geo-book-heading); }
.geo-book-section caption { caption-side: top; padding: 12px 15px; border-bottom: 1px solid var(--geo-book-border); color: var(--geo-book-text); font-size: 12px; line-height: 1.8; }
.geo-book-check-table { min-width: 670px !important; }
.geo-book-check-table th:first-child { width: 120px; }
.geo-book-check-table > tbody > tr > th[colspan] { width: auto; background: var(--geo-book-muted); font-weight: 600; }
.geo-book-section code { font-family: "SFMono-Regular", Consolas, monospace; font-size: .88em; color: var(--geo-book-accent); overflow-wrap: anywhere; }
.geo-book-code { padding: 20px 22px; background: var(--geo-book-muted); border: 1px solid var(--geo-book-border); border-radius: 7px; white-space: pre; overflow: auto; line-height: 1.9; font-size: 13px; }
.geo-book-code code { color: var(--geo-book-text); font-size: inherit; }
.geo-book-page-example { padding: 22px 24px; margin: 22px 0; border: 1px solid var(--geo-book-border); border-left: 3px solid var(--geo-book-accent); border-radius: 0 6px 6px 0; }
.geo-book-page-example h4 { margin-bottom: 16px; }
.geo-book-page-example h5 { margin: 22px 0 10px; color: var(--geo-book-heading); font-size: 15px; line-height: 1.8; font-weight: 600; }
.geo-book-page-example > :last-child { margin-bottom: 0; }
.geo-book-page-example > ol { padding-left: 22px; }
.geo-book-example-details { margin: 22px 0; padding: 15px 18px; border: 1px solid var(--geo-book-border); border-radius: 6px; }
.geo-book-example-details summary { color: var(--geo-book-heading); font-size: 14px; line-height: 1.9; font-weight: 600; cursor: pointer; }
.geo-book-example-details[open] summary { margin-bottom: 16px; }
.geo-book-example-details > :last-child { margin-bottom: 0; }
.geo-book-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style-position: inside; padding: 0 !important; margin: 22px 0 !important; }
.geo-book-flow li { padding: 12px; border-bottom: 2px solid var(--geo-book-border); font-size: 13px; margin: 0; background: var(--geo-book-muted); }
.geo-book-source-note { font-size: 12px !important; line-height: 1.85 !important; }
.geo-book-reference li { scroll-margin-top: var(--geo-book-anchor-offset); font-size: 13px; overflow-wrap: anywhere; }
.geo-book-faq + .geo-book-faq { border-top: 1px solid var(--geo-book-border); padding-top: 4px; margin-top: 24px; }
.geo-book-section a.btn { color: var(--bs-btn-color); font-size: 14px; text-decoration: none; }
.geo-book-section .btn { border-radius: 6px; }
[data-bs-theme="dark"] .geo-book .btn-outline-dark { --bs-btn-color: #e2e8f0; --bs-btn-border-color: #718096; --bs-btn-hover-color: #152b46; --bs-btn-hover-bg: #e2e8f0; }

@media (min-width: 1600px) {
    .geo-book-container { max-width: 1400px; }
    .geo-book-layout { column-gap: 88px; grid-template-columns: 250px minmax(0, 1fr); }
}

@media (max-width: 1100px) and (min-width: 992px) {
    .geo-book-container { padding: 0 28px; }
    .geo-book-layout { grid-template-columns: 215px minmax(0, 1fr); gap: 32px; }
    .geo-book-hero-body { gap: 32px; }
}

@media (max-width: 991.98px) {
    .geo-book { --geo-book-anchor-offset: 124px; }
    .geo-book-container { padding: 0 28px; }
    .geo-book-hero { padding: 30px 0 28px; }
    .geo-book-hero-body { grid-template-columns: 1fr; gap: 22px; }
    .geo-book-meta { display: flex; flex-wrap: wrap; gap: 20px 36px; padding: 0; border: 0; }
    .geo-book-meta div { margin: 0; }
    .geo-book-layout { grid-template-columns: 1fr; gap: 26px; padding-top: 24px; }
    .geo-book-sidebar { position: static; max-height: none; overflow: visible; padding: 0 0 16px; border-bottom: 1px solid var(--geo-book-border); }
    .geo-book-mobile-toggle { display: flex; gap: 9px; align-items: center; border: 1px solid var(--geo-book-border); border-radius: 5px; padding: 7px 10px; color: var(--geo-book-accent); background: var(--geo-book-surface); font-size: 12px; }
    .geo-book-mobile-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
    .geo-book-toc-heading { margin: 0; }
    .geo-book.is-enhanced [data-toc-panel]:not(.is-mobile-open) { display: none; }
    .geo-book.is-enhanced [data-toc-panel].is-mobile-open { max-height: 60dvh; overflow: auto; margin-top: 18px; overscroll-behavior: contain; }
    .geo-book:not(.is-enhanced) [data-toc-panel] { margin-top: 15px; }
    .geo-book-main { max-width: none; }
}

@media (max-width: 575.98px) {
    .geo-book-container { padding: 0 22px; }
    .geo-book-breadcrumb { margin-bottom: 22px; }
    .geo-book-hero h1 { font-size: 34px; }
    .geo-book-subtitle { font-size: 19px; }
    .geo-book-intro { font-size: 14px; }
    .geo-book-meta { column-gap: 24px; font-size: 12px; }
    .geo-book-start { grid-template-columns: 1fr; gap: 10px; margin-top: 24px; }
    .geo-book-start a { padding: 13px 15px; }
    .geo-book-start strong { font-size: 14px; }
    .geo-book-start span { font-size: 12px; }
    .geo-book-section { margin-bottom: 30px; padding-bottom: 30px; }
    .geo-book-section h2 { font-size: 23px; margin-bottom: 16px; }
    .geo-book-section h3 { font-size: 18px; margin-top: 28px; }
    .geo-book-section p, .geo-book-section li { font-size: 14px; }
    .geo-book-section-lead { font-size: 15px !important; }
    .geo-book-deliverable { display: block; padding: 13px 15px; }
    .geo-book-deliverable strong { display: block; margin-bottom: 3px; }
    .geo-book-comparison, .geo-book-grid { grid-template-columns: 1fr; gap: 18px; }
    .geo-book-definition-list > div { grid-template-columns: 1fr; gap: 4px; padding: 13px 0; }
    .geo-book-flow { grid-template-columns: 1fr; gap: 6px; }
    .geo-book-section .table > :not(caption) > * > * { padding: 11px 13px; }
    .geo-book-code { padding: 16px; font-size: 12px; }
    .geo-book-page-example { padding: 17px 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .geo-book *, .geo-book *::before, .geo-book *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
    .geo-book-sidebar, .geo-book-start { display: none; }
    .geo-book-container { padding: 0; }
    .geo-book-layout { display: block; }
    .geo-book-main { max-width: none; }
    .geo-book-section .table-responsive { overflow: visible; }
    .geo-book-section .table { min-width: 0 !important; }
    .geo-book-section h2, .geo-book-section h3 { break-after: avoid; }
}
