/* 文档正文保留原文，阅读界面沿用全站的绿色、白色和浅灰。 */
.docs-hero { background: linear-gradient(118deg, #f4faf5, #fff 76%); border-bottom: 1px solid var(--line); }
.docs-hero h1 { font-size: clamp(31px, 3.4vw, 45px); line-height: 1.45; letter-spacing: -1.2px; }
.docs-hero .page-description { color: #6c7c70; margin: 20px 0 27px; font-size: 14px; }
.docs-search-form { max-width: 780px; }
.doc-meta-tags { display: flex; flex-wrap: wrap; gap: 13px 20px; align-items: center; color: #7a887e; font-size: 11px; margin-top: 21px; }
.docs-library { margin-top: 25px; }
.docs-library .doc-card { display: flex; flex-direction: column; }
.docs-library .doc-card > p { flex: 1; min-height: 47px; }
.docs-library .button-doc { width: fit-content; padding: 8px 13px; min-height: 38px; border-color: #e1e9e3; color: #36734a; background: #f7fbf8; font-size: 12px; margin-bottom: 23px; gap: 17px; }
.docs-library .button-doc:hover { background: #edf7f0; border-color: #a8c9b2; }
.docs-library .button-doc .icon { width: 15px; height: 15px; }
.overview-card { display: flex; align-items: center; gap: 24px; padding: 29px 31px; background: linear-gradient(100deg, #f5faf6, #fff); transition: border-color .15s; }
.overview-card:hover { border-color: #9dc8a9; }
.overview-card > div { flex: 1; min-width: 0; }
.overview-card .eyebrow { font-size: 11px; display: block; margin-bottom: 7px; }
.overview-card h2 { font-size: 22px; letter-spacing: -.5px; }
.overview-card p { color: #728077; font-size: 12px; margin: 9px 0 0; line-height: 1.9; }
.overview-card > .icon { width: 22px; height: 22px; color: #689575; }
.overview-icon { display: grid; place-items: center; height: 54px; width: 54px; border: 1px solid #deebe2; border-radius: 13px; color: #548862; background: #edf7ef; flex-shrink: 0; }
.overview-icon .icon { height: 27px; width: 27px; }
.ai-docs-card { display: flex; gap: 36px; align-items: center; padding: 32px; margin-top: 30px; background: #f7faf7; }
.ai-docs-copy { flex: 1; min-width: 0; }
.ai-docs-copy > .eyebrow { font-size: 11px; }
.ai-docs-copy h2 { font-size: 23px; letter-spacing: -.5px; }
.ai-docs-copy > p { font-size: 12px; line-height: 1.95; color: #6c7d71; max-width: 750px; margin: 14px 0 23px; }
.ai-docs-copy .button { font-size: 11px; padding: 9px 14px; min-height: 40px; gap: 9px; }
.ai-docs-copy .button .icon { width: 15px; height: 15px; }
.ai-docs-copy .text-link { font-size: 11px; }
.ai-docs-side { display: flex; align-items: center; gap: 16px; color: #75917d; font-size: 11px; line-height: 2.05; padding-left: 32px; border-left: 1px solid #e0e9e2; flex-shrink: 0; }
.ai-docs-side > .icon { width: 35px; height: 35px; }
.search-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-bottom: 36px; }
.search-result { padding: 23px 25px; min-width: 0; transition: border-color .15s; }
.search-result:hover { border-color: #9fc3aa; }
.search-result .badge { font-size: 11px; }
.search-result h3 { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 15px; margin: 14px 0 9px; }
.search-result h3 .icon { color: #5f8b6b; width: 16px; height: 16px; }
.search-result > p { color: #738178; font-size: 12px; line-height: 1.9; margin: 0; overflow-wrap: anywhere; }
.search-results .empty-state { grid-column: 1 / -1; padding: 38px; text-align: center; color: #6f8275; }
.search-results .empty-state > .icon { width: 30px; height: 30px; margin-bottom: 13px; }
.search-results .empty-state h3 { font-size: 17px; color: #405849; }
.search-results .empty-state p { font-size: 12px; }

html:has(body.document-page) { scroll-behavior: auto; scroll-padding-top: 0; }
.document-page { background: #fff; }
.toc-link.toc-level-4 { padding-left: 29px; font-size: 11px; }
.doc-mobile-bar { display: none; }
.doc-reader-layout { width: min(1536px, 100%); margin-inline: auto; display: grid; grid-template-columns: 236px minmax(0, 1fr) 226px; align-items: start; }
.doc-sidebar { position: sticky; top: 80px; height: calc(100dvh - 80px); padding: 33px 18px 29px 24px; border-right: 1px solid var(--line); overflow-y: auto; background: #fbfcfb; scrollbar-width: thin; }
.doc-home { display: flex; align-items: center; gap: 9px; font-size: 12px; color: #5b7966; margin-bottom: 24px; }
.doc-home .icon { width: 14px; height: 14px; }
.doc-sidebar-heading { display: flex; align-items: flex-start; justify-content: space-between; }
.doc-sidebar-close { display: none; margin-top: -9px; }
.doc-edition { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; font-size: 11px; color: #849088; padding-inline: 9px; margin-bottom: 21px; }
.doc-edition .badge { font-size: 11px; }
.doc-search-button { width: 100%; display: flex; align-items: center; gap: 7px; background: #fff; color: #7a887e; border: 1px solid #e1e8e3; border-radius: 7px; padding: 9px 10px; font-size: 11px; text-align: left; }
.doc-search-button .icon { width: 13px; height: 13px; }
.doc-search-button kbd { margin-left: auto; font-size: 11px; white-space: nowrap; }
.sidebar-label { display: block; color: #9ba69e; font-size: 11px; letter-spacing: .8px; padding: 26px 10px 11px; }
.doc-nav-link { display: flex; align-items: center; gap: 9px; padding: 10px 10px; margin-block: 2px; border-radius: 6px; color: #697c70; font-size: 12px; line-height: 1.7; }
.doc-nav-link .icon { width: 15px; height: 15px; color: #81988a; }
.doc-nav-link:hover { background: #f0f5f1; color: #34754b; }
.doc-nav-link.active { background: #eaf5ed; color: #2d7c47; font-weight: 550; }
.doc-nav-link.active .icon { color: #4d9363; }
.doc-sidebar-note { border-top: 1px solid #e8eee9; margin: 23px 9px 0; padding-top: 17px; font-size: 11px; line-height: 1.95; color: #8b978e; }
.document-main { min-width: 0; padding: 28px 42px 48px; }
.document-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 25px; }
.breadcrumbs { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #88978c; min-width: 0; }
.breadcrumbs > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 190px; }
.breadcrumbs a:hover { color: #34774a; }
.breadcrumbs .icon { height: 9px; width: 9px; color: #adb8b0; }
.document-tools { display: flex; gap: 14px; flex-shrink: 0; }
.document-tools button, .document-tools a { display: flex; align-items: center; justify-content: center; gap: 5px; background: none; border: 0; padding: 4px 0; font-size: 11px; color: #73867a; white-space: nowrap; }
.document-tools a:hover, .document-tools button:hover { color: #34774a; }
.document-tools .icon { width: 13px; height: 13px; }
.document-version-note { display: flex; align-items: flex-start; gap: 8px; color: #63806b; font-size: 11px; padding: 11px 13px; background: #f3f8f4; border: 1px solid #e7efe9; border-radius: 6px; margin-bottom: 28px; }
.document-version-note .icon { width: 13px; height: 13px; margin-top: 2px; }
.doc-prose { font-size: 15px; line-height: 1.95; color: #485c4f; overflow-wrap: anywhere; }
.doc-prose h1 { font-size: 29px; letter-spacing: -.7px; color: #233d2b; line-height: 1.5; margin: 0 0 25px; font-weight: 650; }
.doc-prose h2 { font-size: 22px; letter-spacing: -.5px; margin: 42px 0 22px; padding-top: 28px; border-top: 1px solid #e9eeea; color: #2d4735; line-height: 1.6; }
.doc-prose h3 { font-size: 17px; margin: 32px 0 17px; color: #345740; line-height: 1.7; }
.doc-prose h4 { font-size: 14px; margin: 27px 0 13px; color: #41664d; }
.doc-prose h5, .doc-prose h6 { font-size: 13px; margin: 24px 0 12px; color: #476851; }
.doc-prose :is(h1,h2,h3,h4,h5,h6,a[id]) { scroll-margin-top: 102px; }
.doc-prose p { margin: 15px 0; }
.doc-prose > :first-child { margin-top: 0; }
.doc-prose ul, .doc-prose ol { padding-left: 23px; margin: 16px 0; }
.doc-prose li { margin: 6px 0; }
.doc-prose li > ul, .doc-prose li > ol { margin-block: 7px; }
.doc-prose li > p { margin-block: 7px; }
.doc-prose strong { color: #294b35; font-weight: 600; }
.doc-prose a[href] { color: #16804b; text-decoration: underline; text-decoration-color: #bed9c7; text-underline-offset: 3px; }
.doc-prose a[href]:hover { text-decoration-color: #16804b; }
.doc-prose code { font-family: Consolas, "SFMono-Regular", "Microsoft YaHei", monospace; font-size: .9em; border-radius: 4px; background: #f0f5f1; color: #406b4e; padding: 2px 5px; overflow-wrap: anywhere; }
.doc-prose pre { position: relative; border: 1px solid #e1e8e3; border-radius: 8px; background: #f7f9f7; overflow: hidden; padding: 0; margin: 21px 0; }
.doc-prose pre > code { display: block; font-size: 12px; line-height: 1.9; font-family: Consolas, "SFMono-Regular", monospace; color: #4b6352; padding: 17px 19px; white-space: pre; overflow: auto; background: transparent; border-radius: 0; }
.doc-prose pre > code.hljs { background: #f7f9f7; }
.code-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 11px var(--font); color: #829188; padding: 8px 13px 8px 17px; border-bottom: 1px solid #e6ece7; background: #f0f5f1; }
.code-copy { display: inline-flex; gap: 5px; align-items: center; padding: 3px 5px; background: none; color: #6c8474; border: 0; border-radius: 3px; font-size: 11px; }
.code-copy:hover { color: #237040; background: #e8f1ea; }
.code-copy .icon { height: 12px; width: 12px; }
.doc-prose table { display: block; border-collapse: collapse; max-width: 100%; overflow-x: auto; font-size: 12px; line-height: 1.8; margin: 23px 0; border: 1px solid #e3eae5; border-radius: 7px; scrollbar-width: thin; }
.doc-prose th { text-align: left; font-weight: 550; color: #3e634b; background: #f1f6f2; white-space: nowrap; }
.doc-prose th, .doc-prose td { padding: 11px 13px; border-right: 1px solid #e3eae5; border-bottom: 1px solid #e3eae5; min-width: 95px; vertical-align: top; }
.doc-prose tr > :last-child { border-right: 0; }
.doc-prose tbody > tr:last-child > td { border-bottom: 0; }
.doc-prose tbody > tr:nth-child(even) { background: #fbfdfb; }
.doc-prose td code { white-space: normal; }
.doc-prose blockquote { border-left: 3px solid #a6cbb1; padding: 3px 19px; margin: 21px 0; background: #f4f8f5; color: #6a8172; border-radius: 0 5px 5px 0; }
.doc-prose blockquote > p { margin-block: 11px; }
.doc-prose hr { border: 0; border-top: 1px solid #e5ece7; margin: 32px 0; }
.doc-prose details { background: #f8fbf8; border: 1px solid #e1eae4; border-radius: 7px; padding: 14px 18px; margin: 20px 0; }
.doc-prose summary { cursor: pointer; color: #3d6b4b; font-weight: 550; }
.unavailable-reference { color: #829087; border-bottom: 1px dashed #b5c2b9; }
.reference-status { display: inline-block; color: #9e8565; font-size: 11px; margin-left: 3px; }
.document-end { display: flex; gap: 19px; align-items: center; justify-content: space-between; border-top: 1px solid #e1e9e3; padding-top: 26px; margin-top: 43px; color: #829487; font-size: 11px; }
.document-end > span { display: inline-flex; align-items: center; gap: 7px; }
.document-end > span > .icon { width: 15px; height: 15px; }
.document-end .text-link { font-size: 11px; }
.doc-toc { position: sticky; top: 80px; height: calc(100dvh - 80px); padding: 34px 21px 29px 5px; overflow-y: auto; scrollbar-width: thin; background: #fff; }
.toc-heading { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #52765e; font-weight: 550; margin: 0 0 16px; }
.toc-close { display: none; }
#toc-filter { display: block; width: 100%; border: 1px solid #e1e8e2; border-radius: 5px; color: #597463; padding: 8px 10px; background: #fbfdfb; font-size: 11px; outline-offset: 3px; margin-bottom: 14px; }
#toc-filter::placeholder { color: #97a39a; }
.doc-toc nav { border-left: 1px solid #e5ece7; padding-left: 0; }
.toc-link { display: block; position: relative; font-size: 12px; color: #839187; padding: 7px 4px 7px 15px; line-height: 1.8; overflow-wrap: anywhere; }
.toc-link.toc-level-3 { padding-left: 24px; font-size: 11px; }
.toc-link:hover { color: #3e7a51; }
.toc-link.active { color: #268149; background: #f4f9f5; }
.toc-link.active::before { content: ""; position: absolute; top: 8px; bottom: 8px; left: -1px; width: 2px; border-radius: 2px; background: #53a76d; }
#toc-empty { font-size: 11px; padding-left: 10px; }
.back-to-top { position: fixed; right: 24px; bottom: 25px; z-index: 19; height: 36px; width: 36px; display: grid; place-items: center; background: #fff; border: 1px solid #dce7df; color: #659373; border-radius: 8px; box-shadow: 0 3px 12px #1934210c; }
.back-to-top .icon { height: 16px; width: 16px; }
.doc-panel-backdrop { position: fixed; inset: 0; background: #1634234d; z-index: 30; border: 0; padding: 0; backdrop-filter: blur(2px); cursor: default; }
.error-page { text-align: center; padding-block: 45px 85px; }
.error-code { display: block; font-size: 70px; font-weight: 650; line-height: 1.2; color: #d5e7d9; margin-bottom: 22px; }
.error-page h1 { font-size: 30px; letter-spacing: -.7px; }
.error-page p { font-size: 13px; color: #7d8e83; margin: 20px 0 28px; }
.error-page .inline-actions { justify-content: center; }

@media (min-width: 1537px) { .doc-sidebar { border-left: 1px solid var(--line); } }
@media (max-width: 1200px) {
  .doc-reader-layout { grid-template-columns: 208px minmax(0, 1fr) 195px; }
  .document-main { padding-inline: 28px; }
  .doc-sidebar { padding-inline: 13px; }
  .doc-toc { padding-right: 15px; }
  .document-tools { gap: 10px; }
  .document-tools button span, .document-tools a span { display: none; }
  .ai-docs-side { display: none; }
}
@media (max-width: 1050px) {
  .doc-reader-layout { grid-template-columns: 208px minmax(0, 1fr); }
  .doc-toc { position: fixed; z-index: 31; top: 0; right: 0; bottom: 0; height: 100dvh; width: min(340px, 88vw); padding: 25px 24px; visibility: hidden; transform: translateX(102%); transition: transform .18s, visibility .18s; box-shadow: -8px 0 30px #17362212; }
  .doc-toc.doc-panel-open { transform: none; visibility: visible; }
  .toc-link { font-size: 12px; padding-block: 9px; }
  .toc-link.toc-level-3 { font-size: 11px; }
  .toc-heading { font-size: 13px; }
  .toc-close { display: grid; }
  #toc-filter { padding: 10px 12px; font-size: 12px; }
  .doc-mobile-bar { display: flex; position: sticky; top: 80px; z-index: 19; justify-content: flex-end; gap: 20px; border-bottom: 1px solid #e6ece8; padding: 11px 25px; background: #f9fcfa; }
  .doc-mobile-bar .text-link { font-size: 11px; }
  .doc-mobile-bar [data-doc-sidebar-toggle] { display: none; }
  .document-main { padding-inline: 34px; }
  .doc-sidebar { top: 124px; height: calc(100dvh - 124px); }
  .doc-prose :is(h1,h2,h3,h4,h5,h6,a[id]) { scroll-margin-top: 142px; }
}
@media (max-width: 760px) {
  .doc-reader-layout { display: block; }
  .doc-sidebar { position: fixed; z-index: 31; top: 0; bottom: 0; left: 0; height: 100dvh; width: min(295px, 86vw); padding: 25px 21px; visibility: hidden; transform: translateX(-102%); transition: transform .18s, visibility .18s; box-shadow: 8px 0 30px #17362212; }
  .doc-sidebar.doc-panel-open { transform: none; visibility: visible; }
  .doc-sidebar-close { display: inline-flex; }
  .doc-home { font-size: 13px; }
  .doc-nav-link { font-size: 12px; padding-block: 12px; }
  .doc-sidebar-note { font-size: 11px; }
  .doc-search-button { font-size: 12px; padding-block: 11px; }
  .doc-edition { font-size: 11px; }
  .doc-mobile-bar { justify-content: space-between; padding-inline: 22px; }
  .doc-mobile-bar [data-doc-sidebar-toggle] { display: inline-flex; }
  .document-main { padding: 25px 24px 37px; }
  .document-toolbar { gap: 10px; margin-bottom: 19px; }
  .breadcrumbs { gap: 5px; font-size: 11px; }
  .breadcrumbs > span:last-child { max-width: 145px; }
  .document-tools { gap: 12px; }
  .document-tools button, .document-tools a { padding: 7px 1px; }
  .document-version-note { font-size: 11px; margin-bottom: 24px; }
  .doc-prose { font-size: 14px; line-height: 1.95; }
  .doc-prose h1 { font-size: 25px; margin-bottom: 21px; }
  .doc-prose h2 { font-size: 20px; margin-top: 34px; padding-top: 24px; }
  .doc-prose h3 { font-size: 16px; margin-top: 26px; }
  .doc-prose h4 { font-size: 13px; }
  .doc-prose pre > code { font-size: 12px; padding: 13px 14px; }
  .doc-prose th, .doc-prose td { padding: 9px 10px; }
  .doc-prose table { font-size: 12px; }
  .document-end { flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 32px; }
  .back-to-top { right: 17px; bottom: 18px; }
  .search-results { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .doc-mobile-bar { top: 65px; }
  .doc-prose :is(h1,h2,h3,h4,h5,h6,a[id]) { scroll-margin-top: 128px; }
  .docs-hero h1 { font-size: 29px; line-height: 1.5; }
  .docs-hero .page-description { font-size: 12px; margin-block: 16px 23px; }
  .doc-meta-tags { font-size: 11px; gap: 10px; }
  .docs-library .doc-card > p { min-height: 0; }
  .overview-card { padding: 23px 20px; gap: 15px; }
  .overview-icon { width: 39px; height: 39px; border-radius: 10px; }
  .overview-icon .icon { width: 20px; height: 20px; }
  .overview-card h2 { font-size: 17px; }
  .overview-card p { font-size: 11px; }
  .overview-card .eyebrow { font-size: 11px; }
  .overview-card > .icon { width: 15px; height: 15px; }
  .ai-docs-card { padding: 24px 21px; }
  .ai-docs-copy h2 { font-size: 20px; }
  .ai-docs-copy > p { font-size: 11px; }
  .ai-docs-copy .button { font-size: 11px; padding-inline: 12px; gap: 7px; }
  .ai-docs-copy .text-link { margin-top: 6px; }
  .search-result { padding: 21px; }
  .search-result h3 { font-size: 14px; }
  .search-result > p { font-size: 11px; }
  .document-page .site-footer { margin-top: 0; }
}
@media (max-width: 360px) {
  .document-main { padding-inline: 17px; }
  .breadcrumbs > span:last-child { max-width: 110px; }
  .document-tools { gap: 8px; }
  .doc-prose h1 { font-size: 23px; }
  .overview-card { padding-inline: 16px; gap: 12px; }
  .overview-card h2 { font-size: 15px; }
  .overview-card > .icon { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .doc-sidebar, .doc-toc { transition: none; }
}
