:root { color-scheme: light; --ink: #0b1437; --muted: #69718d; --blue: #1748ff; --line: #dfe4f1; }
* { box-sizing: border-box; }
html { scroll-padding-top: 100px; }
body { margin: 0; color: var(--ink); background: white; font: 16px/1.85 "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, summary:focus-visible, .table-scroll:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.doc-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; padding: 16px max(28px, calc((100vw - 1440px)/2)); border-bottom: 1px solid var(--line); background: rgb(255 255 255 / 96%); }
.doc-header img { display: block; object-fit: contain; }
.doc-header nav { display: flex; gap: 24px; font-size: 14px; }
.doc-layout { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 64px; max-width: 1440px; margin: 0 auto; padding: 48px 28px 80px; }
.doc-sidebar { position: sticky; top: 110px; max-height: calc(100vh - 140px); align-self: start; overflow-y: auto; padding-right: 20px; }
.doc-version { color: var(--ink); font-weight: 750; }
.doc-status { color: var(--muted); font-size: 12px; margin: 6px 0 22px; }
.doc-sidebar nav, .doc-toc { display: grid; gap: 2px; }
.doc-sidebar nav a { display: block; color: #3e4765; font-size: 14px; padding: 7px 10px; border-left: 2px solid transparent; }
.doc-sidebar a[aria-current="page"] { color: var(--blue); background: #f1f5ff; border-left-color: var(--blue); }
.doc-toc { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 20px; }
.doc-toc summary { cursor: pointer; font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.doc-toc a { display: block; color: var(--muted); font-size: 12px; padding: 5px 0; overflow-wrap: anywhere; }
.doc-toc .depth-3 { padding-left: 12px; }
main { min-width: 0; }
.doc-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 30px; font-size: 12px; color: var(--muted); }
.doc-authority { color: var(--muted); font-size: 13px; }
.translation-notice { border-left: 3px solid #a56808; background: #fff8e8; padding: 16px 20px; margin-bottom: 24px; }
.translation-notice p { margin: 8px 0 0; }
.language-link { white-space: nowrap; }
article { overflow-wrap: anywhere; }
h1, h2, h3, h4 { line-height: 1.4; letter-spacing: -0.025em; }
h1 { font-size: 36px; margin: 0 0 30px; }
h2 { font-size: 25px; border-top: 1px solid var(--line); margin-top: 50px; padding-top: 30px; }
h3 { font-size: 19px; margin-top: 32px; }
h4 { font-size: 16px; margin-top: 26px; }
p, ul, ol { margin: 16px 0; }
li { margin: 7px 0; }
code, pre { font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.88em; }
code { background: #f1f4fb; border-radius: 3px; padding: 2px 5px; }
pre { padding: 22px; overflow-x: auto; background: #f6f8fd; border: 1px solid var(--line); line-height: 1.7; }
pre code { background: transparent; padding: 0; font-size: inherit; }
.table-scroll { overflow-x: auto; margin: 22px 0; }
table { width: 100%; min-width: 550px; border-collapse: collapse; font-size: 14px; line-height: 1.75; }
th, td { border: 1px solid var(--line); text-align: left; vertical-align: top; padding: 12px 14px; }
th { background: #f5f7fc; font-weight: 700; }
td:first-child { min-width: 110px; }
blockquote { border-left: 3px solid var(--blue); margin: 24px 0; padding: 0 20px; color: #3e4765; }
.diagram-source { border: 1px solid var(--line); background: #fbfcff; padding: 18px; margin: 22px 0; }
.diagram-source summary { color: var(--muted); font-size: 13px; cursor: pointer; }
.diagram-source pre { margin-bottom: 0; }
.doc-diagram { overflow: auto; border: 1px solid var(--line); padding: 24px; margin: 22px 0; background: #fbfcff; }
.doc-diagram svg { display: block; max-width: none; margin: 0 auto; }
.doc-diagram:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.doc-footer { border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 22px; margin-top: 60px; padding-top: 28px; font-size: 12px; color: var(--muted); }
@media (max-width: 900px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 30px 20px 60px; }
  .doc-sidebar { position: static; max-height: none; padding: 0; }
  .doc-sidebar nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .doc-toc { display: none; }
  h1 { font-size: 30px; }
}
@media (max-width: 540px) {
  .doc-header { padding: 15px 20px; gap: 15px; min-height: 70px; }
  .doc-header img { width: 125px; height: auto; }
  .doc-header nav { flex-direction: column; gap: 0; font-size: 12px; }
  .doc-sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body { font-size: 15px; }
  pre { padding: 16px; }
}

.sdk-skip { position: fixed; top: -100px; left: 20px; z-index: 5; padding: 10px 16px; background: white; border: 2px solid var(--blue); }
.sdk-skip:focus { top: 10px; }
.sdk-navigation > summary { cursor: pointer; font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.sdk-navigation nav h2 { border: 0; margin: 18px 10px 6px; padding: 0; font-size: 12px; letter-spacing: 0; color: var(--muted); }
.sdk-navigation nav a { overflow-wrap: anywhere; }
.sdk-search { margin-bottom: 24px; }
.sdk-search label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.sdk-search input { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 4px; padding: 10px; font: inherit; font-size: 13px; background: white; color: var(--ink); }
.sdk-search input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.sdk-search [role="status"] { margin: 8px 0; font-size: 12px; color: var(--muted); }
.sdk-search ul { list-style: none; margin: 0; padding: 0; }
.sdk-search li { margin: 0; border-bottom: 1px solid var(--line); }
.sdk-search li a { display: block; padding: 10px 0; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.sdk-search small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.sdk-reader article details { border: 1px solid var(--line); padding: 12px 18px; margin: 22px 0; }
.sdk-reader article summary { cursor: pointer; font-size: 14px; font-weight: 600; }
.sdk-reader article a[id] { scroll-margin-top: 100px; }
.sdk-reader .doc-tools { align-items: center; }
@media (max-width: 900px) {
  .sdk-navigation nav { grid-template-columns: minmax(0, 1fr); }
  .sdk-reader .doc-toc { display: block; }
  .sdk-reader .doc-sidebar { border-bottom: 1px solid var(--line); padding-bottom: 20px; }
  .sdk-reader .doc-toc { margin-top: 18px; padding-top: 16px; }
}
