:root {
  --primary: var(--accent, #3248f2);
  --primary-dark: color-mix(in srgb, var(--primary) 72%, #111827);
  --primary-soft: color-mix(in srgb, var(--primary) 9%, transparent);
  --surface: var(--card, #ffffff);
  --surface-soft: var(--bg-soft, #f6f7fb);
  --max-width: 1728px;
  --chrome-width: 1440px;
  --font-sans: "PingFang SC", "MiSans", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  --font-display: "PingFang SC", "MiSans", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; color: var(--fg); background: var(--bg); font: 16px/1.65 var(--font-sans); -webkit-font-smoothing: antialiased; }
body.page-home { background: linear-gradient(180deg, #fcfcfe 0, #fff 58%); }
html.dark body.page-home { background: linear-gradient(180deg, #11151d 0, #0f1218 60%); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
[hidden] { display: none !important; }
.container { width: min(calc(100% - 48px), var(--max-width)); margin-inline: auto; }
.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; }
.skip-link { position: absolute; z-index: 100; top: -48px; left: 24px; padding: 8px 14px; border-radius: 4px; background: var(--primary); color: #fff; }
.skip-link:focus { top: 12px; }
.page-shell { min-height: 100vh; }

.site-header { position: fixed; z-index: 50; inset: 0 0 auto; height: 57px; border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent); background: color-mix(in srgb, var(--bg) 96%, transparent); }
.header-inner { display: flex; align-items: center; gap: 24px; width: min(calc(100% - 48px), var(--chrome-width)); min-height: 56px; }
.site-brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; min-width: 0; }
.brand-logo-image { display: block; width: auto; height: 30px; max-width: 154px; object-fit: contain; }
.brand-logo-image-mark { width: 30px; height: 30px; }
.site-brand-title { overflow: hidden; color: var(--title); font-size: 1rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.site-nav { display: flex; flex: 1 1 auto; align-items: center; justify-content: flex-end; gap: 28px; min-width: 0; }
.site-nav a { display: inline-flex; align-items: center; min-height: 56px; color: var(--fg); font-size: .875rem; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--primary); }
.header-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.header-search-trigger, .theme-toggle, .mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 10px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); color: var(--fg); cursor: pointer; }
.header-search-trigger { gap: 16px; min-width: 132px; justify-content: space-between; }
.header-search-trigger-main { display: inline-flex; align-items: center; gap: 8px; }
.header-search-trigger-icon, .header-search-trigger-icon svg { width: 17px; height: 17px; }
.header-search-trigger-icon svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.header-search-trigger-label { font-size: .82rem; }
.header-search-trigger-shortcut { padding: 1px 4px; border: 1px solid var(--border); border-radius: 3px; color: var(--muted); font: 10px/1.5 var(--font-sans); }
.theme-toggle { width: 36px; padding: 0; }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle-icon, .theme-toggle-icon svg { display: inline-flex; width: 17px; height: 17px; }
.mobile-menu-toggle { display: none; width: 36px; padding: 0; }
.mobile-menu-icon { display: grid; gap: 4px; width: 16px; }
.mobile-menu-icon span { display: block; height: 1.5px; background: currentColor; }
.mobile-nav { position: absolute; top: 56px; right: 12px; left: 12px; z-index: 55; display: grid; gap: 2px; padding: 8px; border: 1px solid var(--border); border-radius: 5px; background: var(--card); box-shadow: 0 12px 32px rgb(15 23 42 / 12%); }
.mobile-nav a, .mobile-nav button { display: block; padding: 10px 12px; border: 0; border-radius: 3px; background: transparent; color: var(--fg); text-align: left; }
.mobile-nav a:hover, .mobile-nav button:hover { background: var(--accent-soft); }
.mobile-theme-toggle { display: flex !important; align-items: center; gap: 8px; width: 100%; }
.mobile-theme-toggle svg { width: 17px; height: 17px; }
.page-main { min-height: calc(100vh - 70px); }

.hero { position: relative; padding: 154px 0 118px; overflow: hidden; }
.hero-inner { position: relative; z-index: 1; max-width: 58rem; margin: 0 auto; text-align: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; margin: 0; padding: 0 10px; border: 1px solid color-mix(in srgb, var(--primary) 16%, transparent); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: .84rem; line-height: 1.5rem; box-shadow: 0 12px 30px rgb(129 139 192 / 8%); }
.hero-badge a { color: var(--primary); font-weight: 600; }
.hero h1 { max-width: 50rem; margin: 26px auto 0; color: var(--text-strong, var(--title)); font-family: var(--font-display); font-size: 3.75rem; font-weight: 700; line-height: 1.01; }
.hero-highlight { position: relative; display: block; width: fit-content; max-width: 100%; margin: .06em auto 0; color: var(--primary); white-space: normal; }
.hero-highlight svg { position: absolute; z-index: -1; top: 69%; left: 0; width: 100%; height: .54em; fill: color-mix(in srgb, var(--primary) 30%, #c7d2fe); }
.hero-highlight-text { position: relative; }
.hero-text { max-width: 46rem; margin: 24px auto 0; color: var(--muted); font-size: 1.125rem; line-height: 2rem; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 24px; width: max-content; max-width: 100%; margin: 40px auto 0; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border: 1px solid transparent; border-radius: 5px; font-size: .9rem; font-weight: 600; transition: background-color .18s ease, border-color .18s ease, color .18s ease; }
.hero-action-button--primary { background: var(--primary); color: #fff; box-shadow: 0 8px 18px color-mix(in srgb, var(--primary) 22%, transparent); }
.hero-action-button--primary:hover { background: var(--primary-dark); }
.hero-action-button--secondary { border-color: var(--border); background: var(--surface); color: var(--title); }
.hero-action-button--secondary:hover { border-color: color-mix(in srgb, var(--primary) 32%, var(--border)); color: var(--primary); }
.home-features-section { width: min(calc(100% - 48px), 1440px); margin: 20px auto 60px; }
.home-feature-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.home-feature-item { display: block; min-width: 0; padding: 24px; color: var(--text-strong, var(--title)); text-align: center; }
.home-feature-title { display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 0 0 8px; font-size: 18px; font-weight: 600; line-height: 1.4; }
.home-feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 8px; background: color-mix(in srgb, var(--feature-color, var(--primary)) 12%, transparent); color: var(--feature-color, var(--primary)); }
.home-feature-icon svg { width: 24px; height: 24px; }
.home-feature-text { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

.search-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: start center; padding: min(15vh, 8rem) 16px 16px; background: rgb(18 24 40 / 42%); backdrop-filter: blur(4px); }
.search-dialog { width: min(100%, 680px); overflow: hidden; border: 1px solid var(--border); border-radius: 7px; background: var(--card); box-shadow: 0 24px 72px rgb(15 23 42 / 24%); }
.search-dialog-form { display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.search-dialog-form > svg { flex: 0 0 auto; color: var(--muted); }
.search-dialog-form input { flex: 1 1 auto; width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--title); font: inherit; font-size: 1rem; }
.search-dialog-form button { padding: 3px 6px; border: 1px solid var(--border); border-radius: 3px; background: transparent; color: var(--muted); cursor: pointer; }
.search-dialog-form kbd { font: 11px var(--font-sans); }
.search-live-results { max-height: min(62vh, 470px); overflow: auto; padding: 6px; }
.search-live-results[hidden] { display: none; }
.search-live-result { display: grid; gap: 3px; padding: 10px; border-radius: 4px; color: var(--title); }
.search-live-result:hover, .search-live-result[aria-selected="true"] { background: var(--accent-soft); }
.search-live-result strong { font-size: .9rem; font-weight: 600; }
.search-live-result span { overflow: hidden; color: var(--muted); font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.search-live-result .search-live-category { width: fit-content; color: var(--primary); font-size: .7rem; }
.search-dialog-foot { display: flex; justify-content: space-between; gap: 12px; padding: 8px 14px; border-top: 1px solid var(--border); color: var(--muted); font-size: .72rem; }

.page-footer { border-top: 1px solid var(--border); background: var(--bg); }
.footer-main { display: grid; grid-template-columns: minmax(210px, 280px) 1fr; gap: 48px; padding: 38px 0 30px; }
.footer-brand-col { display: grid; align-content: start; gap: 10px; }
.footer-brand-lockup { display: flex; align-items: center; gap: 11px; min-height: 38px; }
.footer-brand-lockup img { width: auto; max-width: 136px; max-height: 36px; object-fit: contain; }
.footer-brand-lockup img.footer-brand-mark { width: 38px; height: 38px; }
.footer-brand-name { color: var(--title); font-size: .98rem; font-weight: 650; }
.footer-brand-desc { max-width: 40ch; margin: 0; color: var(--muted); font-size: .87rem; line-height: 1.7; }
.footer-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.footer-socials a, .footer-socials span { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 9px; border: 1px solid var(--border); border-radius: 999px; color: var(--fg); font-size: .78rem; }
.footer-socials img { width: 16px; height: 16px; object-fit: contain; }
.footer-link-groups { display: grid; grid-template-columns: repeat(3, minmax(100px, 1fr)); gap: 24px 36px; }
.footer-link-group h2 { margin: 0 0 11px; color: var(--text-soft, var(--fg)); font-size: .8rem; font-weight: 650; }
.footer-link-group ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer-link-group a { color: var(--muted); font-size: .86rem; }
.footer-link-group a:hover { color: var(--primary); }
.footer-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; padding: 0 0 20px; color: var(--muted); font-size: .8rem; line-height: 1.6; text-align: center; }
.dochub-backtop { position: fixed; right: 20px; bottom: 20px; z-index: 45; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 6px; background: var(--card); color: var(--fg); box-shadow: 0 6px 20px rgb(15 23 42 / 12%); cursor: pointer; }
.dochub-backtop svg { width: 18px; height: 18px; }

.page-main > .container { padding-top: 86px; padding-bottom: 56px; }
.page-main .listing-head { margin-bottom: 18px; padding: 8px 0 20px; border-bottom: 1px solid var(--border); background: transparent; }
.page-main .listing-title { margin: 0; color: var(--title); font-size: 1.8rem; line-height: 1.3; }
.page-main .listing-count, .page-main .listing-desc { color: var(--muted); font-size: .9rem; }
.chongciya-search-form { display: flex; gap: 8px; max-width: 680px; margin-top: 18px; }
.chongciya-search-form input { flex: 1 1 auto; min-width: 0; min-height: 42px; padding: 0 12px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); color: var(--fg); }
.chongciya-search-form button { min-width: 84px; border: 0; border-radius: 4px; background: var(--primary); color: #fff; cursor: pointer; }
.chongciya-search-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chongciya-search-filter { padding: 4px 8px; border: 1px solid var(--border); border-radius: 4px; background: transparent; color: var(--muted); font-size: .78rem; cursor: pointer; }
.chongciya-search-filter.is-active, .chongciya-search-filter:hover { border-color: var(--primary); background: var(--accent-soft); color: var(--primary-dark); }
.chongciya-result-mark { padding: 0 .12em; border-radius: 2px; background: var(--accent-soft); color: var(--primary-dark); font-weight: 650; }
.page-main .post-list { border: 0; }
.page-main .post-card { margin: 0; padding: 16px 2px; border-bottom: 1px solid var(--border); background: transparent; box-shadow: none; }
.page-main .post-card-title { margin: 0; color: var(--title); font-size: 1.08rem; }
.page-main .post-card-title a:hover { color: var(--primary); }
.page-main .post-card-excerpt { margin: 7px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.65; }
.page-main .post-card .eyebrow { margin: 0 0 6px; color: var(--muted); font-size: .76rem; }
.page-main .pagination { margin-top: 22px; }

.post-page.has-doc-catalog { display: grid; grid-template-columns: minmax(190px, var(--doc-catalog-width)) minmax(0, 1fr) 190px; align-items: start; gap: 24px; }
.post-page.is-doc-catalog-hidden { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 24px; }
.post-page > .breadcrumb, .post-page > .post-head, .post-page > .post-cover, .post-page > .md-content, .post-page > .doc-search-locator, .post-page > .post-reactions, .post-page > .post-reactions-status, .post-page > .post-tags, .post-page > .post-pager, .post-page > .comment-section, .post-page > .password-gate, .post-page > .doc-quickbar { grid-column: 2; min-width: 0; }
.post-page.is-doc-catalog-hidden > .breadcrumb, .post-page.is-doc-catalog-hidden > .post-head, .post-page.is-doc-catalog-hidden > .post-cover, .post-page.is-doc-catalog-hidden > .md-content, .post-page.is-doc-catalog-hidden > .doc-search-locator, .post-page.is-doc-catalog-hidden > .post-reactions, .post-page.is-doc-catalog-hidden > .post-reactions-status, .post-page.is-doc-catalog-hidden > .post-tags, .post-page.is-doc-catalog-hidden > .post-pager, .post-page.is-doc-catalog-hidden > .comment-section, .post-page.is-doc-catalog-hidden > .password-gate, .post-page.is-doc-catalog-hidden > .doc-quickbar { grid-column: 1; }
.post-page > .breadcrumb { grid-row: 1; min-width: 0; margin-bottom: 4px; color: var(--muted); font-size: .8rem; }
.doc-catalog { grid-column: 1; grid-row: 2 / span 40; position: sticky; top: 74px; align-self: start; max-height: calc(100vh - 90px); overflow: auto; padding-right: 4px; }
.doc-outline { grid-column: 3; grid-row: 2 / span 40; position: sticky; top: 74px; max-height: calc(100vh - 90px); overflow: auto; }
.post-page.is-doc-catalog-hidden > .doc-outline { grid-column: 2; }
.doc-catalog-title, .doc-outline-title { margin: 0 0 9px; color: var(--title); font-size: .82rem; font-weight: 650; }
.doc-catalog-group { margin-left: calc(var(--catalog-depth) * 8px); }
.doc-catalog-group summary { padding: 6px; color: var(--fg); font-size: .8rem; cursor: pointer; }
.doc-catalog-group.is-current > summary { color: var(--primary); font-weight: 650; }
.doc-catalog-group ul, .doc-outline ol { margin: 0; padding: 0; list-style: none; }
.doc-catalog-group li a { display: block; padding: 5px 6px 5px 10px; border-left: 1px solid var(--border); color: var(--muted); font-size: .78rem; line-height: 1.45; }
.doc-catalog-group li a:hover, .doc-catalog-group li a.is-current { border-color: var(--primary); color: var(--primary-dark); }
.doc-outline li { margin: 5px 0; }
.doc-outline li.is-level-3 { padding-left: 10px; }
.doc-outline a { color: var(--muted); font-size: .77rem; line-height: 1.5; }
.doc-outline a:hover, .doc-outline a.is-active { color: var(--primary); }
.doc-outline-empty { color: var(--muted); font-size: .8rem; }
.doc-quickbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0; border-block: 1px solid var(--border); }
.doc-quickbar a { padding: 3px 7px; border: 1px solid var(--border); border-radius: 4px; color: var(--muted); font-size: .75rem; }
.doc-quickbar a[aria-current="page"] { border-color: var(--primary); background: var(--accent-soft); color: var(--primary-dark); }
.post-page > .post-head { grid-row: 2; padding: 12px 0 18px; border-bottom: 1px solid var(--border); }
.post-page.has-doc-quickbar > .doc-quickbar { grid-row: 2; }
.post-page.has-doc-quickbar > .post-head { grid-row: 3; }
.post-page.has-doc-catalog:not(.has-doc-quickbar) > .doc-catalog ~ .post-head { grid-row: 2; }
.post-page.has-doc-cover > .post-cover { grid-row: 3; }
.post-page.has-doc-quickbar.has-doc-cover > .post-cover { grid-row: 4; }
.post-page:not(.has-doc-cover) > .md-content { grid-row: 4; }
.post-page.has-doc-quickbar:not(.has-doc-cover) > .md-content { grid-row: 5; }
.post-page.has-doc-cover:not(.has-doc-quickbar) > .md-content { grid-row: 4; }
.post-page.has-doc-cover.has-doc-quickbar > .md-content { grid-row: 5; }
.post-page > .post-head .post-title { margin: 0; color: var(--title); font-size: 2rem; line-height: 1.25; }
.post-page > .md-content { padding: 16px 0; }
.post-page > .md-content h2, .post-page > .md-content h3 { scroll-margin-top: 72px; }
.post-page > .post-head .post-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 8px; color: var(--muted); font-size: .86rem; }
.post-page > .post-head .post-meta-item { display: inline-flex; align-items: center; gap: 5px; }
.post-page > .post-head .post-meta-item svg { width: 15px; height: 15px; }
.post-page > .post-lead { grid-column: 2; grid-row: 3; display: flex; gap: 12px; margin: 14px 0 0; padding: 12px 14px; border-left: 2px solid var(--primary); background: var(--surface-soft); color: var(--muted); }
.post-page > .post-lead p { margin: 0; line-height: 1.7; }
.post-page.is-doc-catalog-hidden > .post-lead { grid-column: 1; }
.post-page.has-doc-quickbar > .post-lead, .post-page.has-doc-cover > .post-lead { grid-row: 4; }
.post-page.has-doc-quickbar.has-doc-cover > .post-lead { grid-row: 5; }
.post-page > .md-content { grid-row: 3 !important; }
.post-page.has-doc-excerpt > .md-content { grid-row: 4 !important; }
.post-page.has-doc-quickbar > .md-content { grid-row: 4 !important; }
.post-page.has-doc-quickbar.has-doc-excerpt > .md-content { grid-row: 5 !important; }
.post-page.has-doc-cover > .md-content { grid-row: 4 !important; }
.post-page.has-doc-cover.has-doc-excerpt > .md-content { grid-row: 5 !important; }
.post-page.has-doc-quickbar.has-doc-cover > .md-content { grid-row: 5 !important; }
.post-page.has-doc-quickbar.has-doc-cover.has-doc-excerpt > .md-content { grid-row: 6 !important; }
.post-content-body > * { max-width: 100%; min-width: 0; }
.post-content-body > :first-child { margin-top: 0; }
.post-content-body h1, .post-content-body h2, .post-content-body h3, .post-content-body h4 { color: var(--title); line-height: 1.35; scroll-margin-top: 76px; }
.post-content-body h2 { margin: 1.8em 0 .75em; padding-bottom: .35em; border-bottom: 1px solid var(--border); font-size: 1.55rem; }
.post-content-body h3 { margin: 1.55em 0 .65em; font-size: 1.25rem; }
.post-content-body p, .post-content-body li { color: var(--fg); line-height: 1.85; }
.post-content-body a { color: var(--primary); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--primary) 32%, transparent); text-underline-offset: 3px; }
.post-content-body blockquote { margin: 1.25em 0; padding: 8px 16px; border-left: 2px solid var(--border); color: var(--muted); }
.post-content-body pre { max-width: 100%; margin: 1.25em 0; padding: 16px; overflow: auto; border: 1px solid var(--border); border-radius: 5px; background: var(--surface-soft); color: var(--fg); line-height: 1.7; tab-size: 2; }
.post-content-body pre code { display: block; min-width: max-content; padding: 0; border: 0; background: transparent; color: inherit; font: .86rem/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; }
.post-content-body :not(pre) > code { padding: .12em .35em; border: 1px solid var(--border); border-radius: 3px; background: var(--surface-soft); font: .88em ui-monospace, SFMono-Regular, Consolas, monospace; }
.post-content-body .doc-table-scroll { max-width: 100%; margin: 1.2em 0; overflow-x: auto; border: 1px solid var(--border); border-radius: 4px; }
.post-content-body table { width: 100%; border-collapse: collapse; }
.post-content-body th, .post-content-body td { min-width: 100px; padding: 9px 12px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.post-content-body th { background: var(--surface-soft); color: var(--title); font-weight: 650; }
.post-content-body img { max-width: 100%; height: auto; }
.post-content-body .doc-lightbox-link { display: block; width: fit-content; max-width: 100%; margin: 1.25em auto; cursor: zoom-in; }
.post-content-body .doc-image-caption { display: block; margin: -1em auto 1.2em; color: var(--muted); font-size: .82rem; text-align: center; }
.post-content-body .doc-code-block { position: relative; margin: 1.25em 0; }
.post-content-body .doc-code-block pre { margin: 0; }
.post-content-body .doc-code-copy { position: absolute; top: 7px; right: 7px; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); color: var(--muted); cursor: pointer; }
.post-content-body .doc-code-copy:hover, .post-content-body .doc-code-copy:focus-visible { border-color: var(--primary); color: var(--primary); }
.post-content-body .doc-code-copy svg { width: 16px; height: 16px; }
.post-page > .post-reactions { display: flex; justify-content: flex-start !important; gap: 8px; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.post-page .post-action { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 11px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); color: var(--fg); font-size: .86rem; cursor: pointer; }
.post-page .post-action:hover, .post-page .post-action[aria-pressed="true"] { border-color: var(--primary); color: var(--primary); }
.post-page .post-action svg { width: 17px; height: 17px; }
.post-page .post-tags { display: flex; flex-wrap: wrap; justify-content: flex-start !important; gap: 6px; }
.post-page .post-tag { padding: 3px 8px; border: 1px solid var(--border); border-radius: 4px; color: var(--muted); font-size: .78rem; }
.post-page .post-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px 0; }
.post-page .post-pager-link { display: grid; gap: 5px; min-width: 0; padding: 12px; border: 1px solid var(--border); border-radius: 5px; color: var(--title); }
.post-page .post-pager-link:hover { border-color: var(--primary); }
.post-page .post-pager-icon { color: var(--primary); }
.post-page .comment-section { max-width: none; }
.post-page .comment-form { border-radius: 5px; background: var(--surface-soft); }
.post-page .comment-textarea { min-height: 96px; border-radius: 4px; }
.post-page .comment-submit { border-radius: 4px; }
.doc-mobile-bars { display: none; }
.doc-search-locator { position: fixed; z-index: 40; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 5px; padding: 5px 7px; border: 1px solid var(--border); border-radius: 6px; background: var(--card); color: var(--muted); font-size: .75rem; box-shadow: 0 6px 24px rgb(15 23 42 / 12%); }
.doc-search-locator button, .doc-search-locator a { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 4px; background: var(--surface-soft); color: var(--fg); font: inherit; cursor: pointer; }
.doc-search-mark { padding: 0 .08em; border-radius: 2px; background: var(--accent-soft); color: var(--primary-dark); }
.doc-search-mark.is-current { background: var(--primary); color: #fff; }
.img-zoom { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgb(0 0 0 / 85%); backdrop-filter: blur(4px); cursor: zoom-out; }
.img-zoom img { max-width: 100%; max-height: 100%; border-radius: 5px; object-fit: contain; cursor: default; }
.post-page > .comment-section { padding-top: 20px; border-top: 1px solid var(--border); }
.post-page > .comment-section > .comment-heading { font-size: 0; }
.post-page > .comment-section > .comment-heading::before { content: "文档讨论与反馈"; color: var(--title); font-size: 1.05rem; font-weight: 650; }
.post-page > .comment-section > .comment-heading .comment-total { margin-left: 7px; color: var(--muted); font-size: .8rem; font-weight: 500; }
.comment-heading { color: var(--title); font-size: 1.15rem; }
.comment-form { gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface-soft); }
.comment-textarea { min-height: 90px; border-radius: 4px; background: var(--surface); }
.comment-fields { gap: 8px; }
.comment-fields .input { min-height: 40px; border-radius: 4px; }
.comment-submit { border-radius: 4px; }
.comment-empty { padding: 14px 0; background: transparent; text-align: left; }
.comment-list { gap: 22px; }
.comment-children { border-radius: 4px; }
.post-page .post-reactions, .post-page .post-tags { justify-content: center; }

@media (max-width: 1100px) {
  .post-page.has-doc-catalog { grid-template-columns: minmax(175px, var(--doc-catalog-width)) minmax(0, 1fr); gap: 18px; }
  .post-page.is-doc-catalog-hidden { grid-template-columns: minmax(0, 1fr); }
  .post-page.has-doc-catalog > .doc-outline, .post-page.is-doc-catalog-hidden > .doc-outline { display: none; }
  .post-page.is-doc-catalog-hidden > .breadcrumb, .post-page.is-doc-catalog-hidden > .post-head, .post-page.is-doc-catalog-hidden > .post-cover, .post-page.is-doc-catalog-hidden > .md-content, .post-page.is-doc-catalog-hidden > .post-reactions, .post-page.is-doc-catalog-hidden > .post-reactions-status, .post-page.is-doc-catalog-hidden > .post-tags, .post-page.is-doc-catalog-hidden > .post-pager, .post-page.is-doc-catalog-hidden > .comment-section, .post-page.is-doc-catalog-hidden > .password-gate, .post-page.is-doc-catalog-hidden > .doc-quickbar { grid-column: 1; }
}
@media (max-width: 860px) {
  .site-nav { display: none; }
  .header-inner { min-height: 52px; gap: 10px; }
  .site-header { height: 53px; }
  .header-search-trigger { width: 36px; min-width: 36px; padding: 0; }
  .header-search-trigger-label, .header-search-trigger-shortcut { display: none; }
  .mobile-menu-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .container { width: min(calc(100% - 32px), var(--max-width)); }
  .hero { padding: 124px 0 80px; }
  .hero-inner { max-width: 100%; }
  .hero h1 { max-width: 10.8em; font-size: clamp(2.68rem, 9vw, 3.3rem); line-height: .98; }
  .hero-text { max-width: 29rem; margin-top: 18px; font-size: 1rem; line-height: 1.78; }
  .hero-actions { flex-wrap: wrap; gap: 14px; margin-top: 28px; }
  .home-feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; }
  .post-page.has-doc-catalog, .post-page.is-doc-catalog-hidden { display: block; }
  .post-page.has-doc-catalog > .doc-catalog, .post-page.has-doc-catalog > .doc-outline { position: static; max-height: 13rem; margin: 0 0 10px; padding: 10px; border: 1px solid var(--border); border-radius: 5px; }
  .post-page.has-doc-catalog > .doc-outline { display: block; }
  .post-page.has-doc-catalog > .doc-mobile-bars { display: flex; gap: 8px; margin: 0 0 12px; }
  .doc-mobile-bars button { flex: 1 1 0; min-height: 40px; padding: 0 11px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); color: var(--fg); text-align: left; cursor: pointer; }
  .post-page.has-doc-catalog > .doc-catalog:not([data-mobile-open]), .post-page.has-doc-catalog > .doc-outline:not([data-mobile-open]) { display: none; }
  .post-page.has-doc-catalog > .doc-catalog[data-mobile-open], .post-page.has-doc-catalog > .doc-outline[data-mobile-open] { display: block; }
  .post-page > .doc-mobile-bars, .post-page > .breadcrumb, .post-page > .post-head, .post-page > .post-cover, .post-page > .post-lead, .post-page > .md-content, .post-page > .doc-search-locator, .post-page > .post-reactions, .post-page > .post-reactions-status, .post-page > .post-tags, .post-page > .post-pager, .post-page > .comment-section, .post-page > .password-gate, .post-page > .doc-quickbar { grid-column: auto; grid-row: auto !important; }
  .post-page > .breadcrumb, .post-page > .post-head, .post-page > .post-cover, .post-page > .md-content, .post-page > .doc-search-locator, .post-page > .post-reactions, .post-page > .post-reactions-status, .post-page > .post-tags, .post-page > .post-pager, .post-page > .comment-section, .post-page > .password-gate, .post-page > .doc-quickbar { grid-column: auto; }
}
@media (max-width: 560px) {
  .container { width: min(calc(100% - 24px), var(--max-width)); }
  .hero { padding: 112px 0 64px; }
  .hero h1 { max-width: 9.6em; font-size: clamp(2.45rem, 10vw, 3rem); line-height: .98; }
  .hero-text { max-width: 21rem; margin-top: 18px; font-size: .96rem; line-height: 1.75; }
  .hero-actions { gap: 10px; margin-top: 24px; }
  .button { min-height: 42px; padding-inline: 15px; font-size: .84rem; }
  .home-features-section { width: min(calc(100% - 24px), 100%); margin-top: 8px; }
  .home-feature-list { grid-template-columns: 1fr; gap: 6px; }
  .home-feature-item { padding: 18px 10px; }
  .home-feature-title { gap: 10px; font-size: 1rem; }
  .home-feature-icon { width: 40px; height: 40px; }
  .footer-link-groups { grid-template-columns: repeat(2, minmax(100px, 1fr)); gap: 20px; }
  .page-main > .container { padding-top: 72px; }
  .post-page > .post-head .post-title { font-size: 1.65rem; }
  .chongciya-search-form { flex-wrap: wrap; }
  .chongciya-search-form input { flex-basis: 100%; }
  .comment-fields { grid-template-columns: 1fr; }
  .post-page .post-pager { grid-template-columns: 1fr; }
}
