/* 文档使用独立的阅读样式，避免后台行内 code 的底色影响整段代码。 */
.documentation-page {
  --docs-header-height: 80px;
  background: #fff;
  color: #27342e;
}
.documentation-page .public-header { background: #ffffffed; }
.documentation-page .docs-layout {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  gap: 54px;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 28px;
}
.docs-sidebar {
  position: sticky;
  top: var(--docs-header-height);
  align-self: start;
  max-height: calc(100dvh - var(--docs-header-height));
  overflow-y: auto;
  border-right: 1px solid #e5eae7;
  padding: 28px 22px 20px 0;
}
.docs-sidebar-title { margin: 0 0 18px; color: #233c30; font-size: 16px; font-weight: 650; }
.documentation-page .docs-toc { position: static; display: block; }
.docs-nav-group { margin: 18px 0 6px 12px; color: #7a8580; font-size: 12px; font-weight: 600; }
.docs-nav-group:first-child { margin-top: 0; }
.documentation-page .docs-toc a {
  display: block;
  margin: 3px 0;
  padding: 9px 12px;
  border: 0;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.4;
  color: #54645b;
}
.documentation-page .docs-toc a:hover { color: #235a43; background: #f3f6f4; }
.documentation-page .docs-toc a[aria-current="page"] { background: #edf4ef; color: #235a43; font-weight: 650; }
.docs-sidebar-links { display: grid; gap: 10px; border-top: 1px solid #e5eae7; margin-top: 20px; padding: 18px 12px 0; font-size: 13px; color: #566c5f; }
.documentation-page .docs-body { min-width: 0; max-width: 830px; padding: 36px 0 54px; font-size: 15px; line-height: 1.85; }
.docs-breadcrumb { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; font-size: 12px; color: #7b8780; }
.docs-breadcrumb span:last-child { color: #476151; }
.documentation-page .docs-topic { scroll-margin-top: calc(var(--docs-header-height) + 20px); }
.docs-topic[hidden], .documentation-page [hidden] { display: none !important; }
.documentation-page .docs-topic h1 { margin: 0 0 16px; font-size: 34px; line-height: 1.35; letter-spacing: -.5px; font-weight: 660; color: #203b2c; }
.documentation-page .docs-topic h2 { font-size: 21px; font-weight: 650; line-height: 1.5; color: #24392d; margin: 38px 0 14px; }
.documentation-page .docs-topic h3 { font-size: 17px; line-height: 1.5; margin: 26px 0 12px; }
.documentation-page .docs-topic p { margin: 12px 0; }
.documentation-page .docs-topic .docs-intro { color: #637268; font-size: 16px; line-height: 1.9; margin: 0 0 28px; max-width: 740px; }
.documentation-page .docs-topic a, .docs-bottom-link a { color: #235a43; text-decoration: underline; text-underline-offset: 3px; }
.documentation-page .docs-topic .button { text-decoration: none; }
.documentation-page code { color: #385546; background: #f0f4f1; border-radius: 4px; padding: 2px 5px; font: .9em/1.5 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; overflow-wrap: anywhere; }
.docs-definitions { margin: 20px 0 28px; }
.docs-definitions > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 24px; padding: 18px 0; border-bottom: 1px solid #e9edea; }
.docs-definitions dt { font-weight: 650; color: #294736; }
.docs-definitions dd { margin: 0; color: #526358; }
.docs-note { margin: 24px 0; background: #f4f8f4; padding: 18px 22px; border-left: 3px solid #739b7f; border-radius: 0 6px 6px 0; }
.docs-note > strong { font-size: 14px; color: #2d523b; }
.documentation-page .docs-note p { margin: 6px 0 0; font-size: 14px; color: #516458; }
.docs-list { padding-left: 24px; margin: 18px 0; }
.docs-list li { padding-left: 7px; margin: 12px 0; }
.documentation-page .table-scroll { border: 1px solid #e2e8e4; border-radius: 8px; margin: 20px 0; overflow-x: auto; }
.documentation-page table { min-width: 540px; display: table; width: 100%; font-size: 14px; line-height: 1.7; }
.documentation-page th { font-weight: 600; color: #53675a; background: #f7f9f7; }
.documentation-page td, .documentation-page th { padding: 14px 17px; vertical-align: top; }
.documentation-page tbody tr:last-child td { border-bottom: 0; }
.documentation-page td:first-child { color: #304d3b; }
.docs-details { margin: 24px 0; border: 1px solid #e2e8e4; border-radius: 8px; padding: 0 20px; }
.docs-details summary { cursor: pointer; padding: 15px 0; font-size: 14px; font-weight: 600; color: #395841; }
.docs-details[open] { padding-bottom: 15px; }
.docs-platform { display: flex; align-items: center; gap: 16px; margin: 18px 0; font-size: 13px; color: #627468; }
.docs-platform select { border: 1px solid #d8e3db; background: #fff; border-radius: 6px; padding: 8px 12px; color: #35553f; font: inherit; }
.docs-parameters > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 18px; padding: 14px 0; border-bottom: 1px solid #e9edea; }
.docs-parameters dd { margin: 0; font-size: 14px; }
.documentation-page .code-block {
  padding: 0;
  margin: 20px 0 24px;
  border: 1px solid #dfe6e2;
  border-radius: 8px;
  background: #f7f9f8;
  white-space: normal;
  overflow-wrap: normal;
  overflow: hidden;
}
.documentation-page .code-toolbar { min-height: 48px; padding: 9px 16px; background: #f0f4f1; color: #5c6e61; border-bottom: 1px solid #e0e7e2; font-size: 12px; line-height: 1.5; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.code-actions { display: flex; gap: 8px; flex-shrink: 0; }
.documentation-page .code-toolbar button { padding: 6px 10px; min-height: 32px; border: 1px solid #d2ddd5; background: #fff; color: #3e5a47; font-size: 12px; border-radius: 5px; white-space: nowrap; cursor: pointer; }
.documentation-page .code-toolbar button:hover { background: #e8f0ea; }
.documentation-page .code-toolbar button[aria-pressed="true"] { color: #fff; background: #235a43; border-color: #235a43; }
.documentation-page .code-block pre { display: block; margin: 0; padding: 22px; max-height: none; overflow-x: auto; overflow-y: hidden; color: #283b30; background: transparent; font: 14px/1.8 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; tab-size: 4; white-space: pre; overflow-wrap: normal; }
.documentation-page .code-block pre code { display: block; color: inherit; background: transparent; padding: 0; border: 0; border-radius: 0; font: inherit; white-space: inherit; overflow-wrap: inherit; }
.documentation-page .code-block.wrap-code pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.code-keyword { color: #784b9b; }
.code-string { color: #226f50; }
.code-comment { color: #637669; }
.code-number { color: #9b5828; }
.documentation-page .code-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0 14px; }
.documentation-page .code-tabs button { font-size: 13px; min-height: 38px; padding: 8px 15px; border: 1px solid #dce5df; border-radius: 6px; cursor: pointer; }
.documentation-page .code-tabs button[aria-pressed="true"] { background: #235a43; color: #fff; border-color: #235a43; }
.documentation-page .code-mode { gap: 22px; margin-top: 20px; }
.documentation-page .code-mode label { font-size: 14px; cursor: pointer; }
.documentation-page .code-mode input { accent-color: #235a43; }
.documentation-page .sdk-meta { border-bottom: 1px solid #e9eeeb; padding-bottom: 14px; margin-bottom: 18px; }
.documentation-page .sdk-meta p { font-size: 13px; margin: 0; color: #687b6d; }
.documentation-page .docs-code-explanation { font-size: 14px; color: #647469; }
.documentation-page .http-method { color: #236644; background: #edf5ee; border-radius: 4px; padding: 5px 8px; font: 600 12px/1.4 ui-monospace, Consolas, monospace; margin-right: 7px; }
.docs-pagination { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 1px solid #e2e8e4; margin: 48px 0 24px; padding-top: 24px; }
.docs-pagination a { display: flex; flex-direction: column; gap: 4px; border: 1px solid #e1e8e3; border-radius: 7px; padding: 14px 18px; color: #34553e; font-size: 14px; }
.docs-pagination a:hover { background: #f4f8f4; border-color: #c8d9cd; }
.docs-pagination a span { font-size: 12px; color: #7b8a7f; }
#docs-next { grid-column: 2; text-align: right; }
.docs-bottom-link { color: #7b8880; font-size: 12px; }
.docs-mobile-menu { display: none; }
.docs-start-steps { list-style: none; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; padding: 0; margin: 24px 0 30px; counter-reset: start; }
.docs-start-steps li { padding: 16px; border: 1px solid #dce5df; border-radius: 8px; background: #f7f9f7; counter-increment: start; }
.docs-start-steps strong::before { content: counter(start) ". "; color: #6e8c77; }
.docs-start-steps strong { display: block; color: #284f37; font-size: 14px; }
.docs-start-steps span { color: #647669; font-size: 12px; }
.docs-inline-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin: 18px 0; color: #506557; font-size: 13px; }
.docs-inline-controls select { min-height: 40px; border: 1px solid #d8e3db; padding: 8px 12px; border-radius: 6px; color: #35553f; background: #fff; font: inherit; }
.docs-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 15px 18px; border: 1px solid #dce5df; border-radius: 8px; color: #35553f; font-size: 13px; background: #f7f9f7; }
.docs-flow b { color: #8b9f91; }
.documentation-page .docs-api-panel h2 { font-size: 18px; margin-top: 26px; }
.documentation-page .docs-api-panel h3 { margin-top: 30px; }
.docs-api-next { padding: 16px 18px; border-left: 3px solid #739b7f; background: #f4f8f4; font-size: 14px; }
.docs-api-io { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; align-items: start; }
.docs-api-io > div { min-width: 0; }
.documentation-page .docs-api-io .code-block pre { padding: 16px; font-size: 12px; }
.documentation-page .docs-api-io .code-toolbar { padding: 9px 12px; }
.docs-field-table td:first-child { width: 28%; }
.docs-field-table td:nth-child(2) { width: 22%; }
.docs-field-type { font: 12px/1.6 ui-monospace,Consolas,monospace; color: #637268; overflow-wrap: anywhere; }
.docs-field-table small { display: block; font-size: 12px; line-height: 1.7; margin-top: 6px; color: #758078; }
.docs-skip { position: fixed; top: -60px; left: 20px; background: #235a43; padding: 12px 18px; color: #fff; border-radius: 5px; z-index: 40; }
.docs-skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.documentation-page a:focus-visible, .documentation-page button:focus-visible, .documentation-page select:focus-visible, .documentation-page summary:focus-visible, .documentation-page pre:focus-visible { outline: 2px solid #235a43; outline-offset: 3px; }
.docs-body:focus, .docs-topic h1:focus { outline: none; }
@media (max-width: 1080px) {
  .documentation-page .docs-layout { grid-template-columns: 185px minmax(0, 1fr); gap: 30px; }
  .docs-sidebar { padding-right: 16px; }
}
@media (max-width: 760px) {
  .docs-api-io { grid-template-columns: minmax(0,1fr); gap: 0; }
  .docs-start-steps { gap: 8px; }
  .docs-start-steps li { padding: 12px 9px; }
  .docs-start-steps strong { font-size: 12px; }
  .docs-start-steps span { display: none; }
  .documentation-page .docs-field-table table { display: block; min-width: 0; }
  .docs-field-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .docs-field-table tbody, .docs-field-table tr { display: block; }
  .docs-field-table tr { padding: 12px 15px; border-bottom: 1px solid #e2e8e4; }
  .docs-field-table td, .docs-field-table td:first-child, .docs-field-table td:nth-child(2) { display: block; width: auto; padding: 3px 0; border: 0; }
  .docs-field-table tr:last-child { border: 0; }
  .documentation-page { --docs-header-height: 120px; }
  .documentation-page .public-header .primary-nav > a:first-child { display: block; }
  .documentation-page .docs-layout { display: block; padding: 0 20px; }
  .docs-sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid #e5eae7; padding: 20px 0; overflow: visible; }
  .docs-sidebar-title, .documentation-page .docs-toc, .docs-sidebar-links { display: none; }
  .docs-mobile-menu { display: flex; align-items: center; justify-content: space-between; gap: 18px; font-size: 13px; color: #69786d; }
  .docs-mobile-menu select { flex: 1; max-width: 330px; border: 1px solid #d8e3db; background: #fff; padding: 10px 12px; border-radius: 6px; font-family: inherit; font-size: 14px; line-height: 1.5; color: #2d513b; }
  .documentation-page .docs-body { padding-top: 24px; font-size: 15px; }
  .documentation-page .docs-topic h1 { font-size: 29px; }
  .documentation-page .docs-topic h2 { font-size: 20px; margin-top: 32px; }
  .docs-breadcrumb { margin-bottom: 14px; }
  .documentation-page .docs-topic .docs-intro { font-size: 15px; }
  .docs-definitions > div { grid-template-columns: 1fr; gap: 6px; }
  .docs-parameters > div { grid-template-columns: 1fr; gap: 7px; }
  .documentation-page .code-block pre { padding: 17px; font-size: 14px; }
  .documentation-page .code-toolbar { padding: 9px 12px; gap: 8px; }
  .documentation-page .code-tabs { gap: 7px; }
  .documentation-page .code-tabs button { padding: 7px 12px; }
  .docs-note { padding: 15px 17px; }
}
@media (max-width: 440px) {
  .documentation-page .docs-layout { padding: 0 16px; }
  .documentation-page .code-toolbar { align-items: flex-start; flex-wrap: wrap; }
  .documentation-page .code-toolbar .code-actions { margin-left: auto; }
  .docs-pagination { gap: 10px; }
  .docs-pagination a { padding: 12px; font-size: 13px; }
}
