:root{--footer-text:#f5f5f7}
.theme-switcher{display:flex;align-items:center;gap:8px;flex-shrink:0}
.theme-switcher button{display:grid;place-items:center;width:32px;height:32px;padding:8px;border-radius:10px;color:var(--muted)}
.theme-switcher svg{display:block;width:16px;height:16px;fill:currentColor}
.theme-switcher button[aria-pressed=true]{background:#2d3342;color:#f5f5f7}
html[data-theme=light]{color-scheme:light;--bg:#fff;--panel:#f5f6f9;--border:#dce1e8;--text:#1c2535;--muted:#526078;--accent:#3154bd;--footer-text:#1c2535}
[data-theme=light] button:hover{background:#e9edf4}
[data-theme=light] .theme-switcher button[aria-pressed=true]{background:#e2e7f0;color:#17243d}
[data-theme=light] .brand img,[data-theme=light] .inline-brand{filter:invert(1)}
[data-theme=light] .footer-email img{filter:none!important}
[data-theme=light] #navigation h2{color:#59667a}
[data-theme=light] #navigation a{color:#44516a}
[data-theme=light] #navigation a:hover{background:#f0f3f8;color:#15223a}
[data-theme=light] #navigation a[aria-current]{background:#eaf0ff;color:#284bb3}
[data-theme=light] article p,[data-theme=light] article li,[data-theme=light] td{color:#344258}
[data-theme=light] article strong{color:#172238}
[data-theme=light] article code{background:#edf0f6}
[data-theme=light] article blockquote{background:#f0f4ff}
[data-theme=light] article blockquote p{color:#364e80}
[data-theme=light] th{background:#f4f6fa;color:#26344b}
[data-theme=light] .page-nav a{color:#25334c}
[data-theme=light] dialog{background:#fff;border-color:#c9d1df}
[data-theme=light] dialog header label{color:#354660}
[data-theme=light] #search-query{background:#f8f9fc;color:#17243b;border-color:#b7c3d7}
[data-theme=light] #search-results a:hover{background:#edf2fc}
[data-theme=light] #image-dialog{background:transparent;border:0}
[data-theme=light] kbd{color:#536079;border-color:#c7d0de}
@media(max-width:1050px) and (min-width:801px){.docs-label{display:none}.top-actions{gap:16px}.search-open{gap:16px}}
@media(max-width:800px){
  html{scroll-padding-top:135px}
  .topbar{height:110px;display:grid;grid-template-columns:auto 1fr auto;gap:8px 12px;padding:10px 18px}
  #menu{grid-column:1;grid-row:1;justify-self:start}
  .brand{grid-column:2/4;grid-row:1;justify-self:start}
  .top-actions{display:contents}
  .theme-switcher{grid-column:1/3;grid-row:2;justify-self:start}
  .search-open{grid-column:3;grid-row:2;justify-self:end}
  #navigation{top:110px;height:calc(100dvh - 110px)}
  .nav-open #nav-overlay{inset:110px 0 0;height:calc(100dvh - 110px)}
}

.language-selector{position:relative;flex:none;font-size:13px;line-height:1.4}
.language-selector summary{display:flex;align-items:center;gap:7px;list-style:none;cursor:pointer;padding:7px 9px;border:1px solid var(--border);border-radius:5px;background:var(--panel);color:var(--text);white-space:nowrap;min-height:32px}
.language-selector summary::-webkit-details-marker{display:none}
.language-selector summary:hover,.language-selector summary:focus-visible{background:color-mix(in srgb,var(--accent) 12%,var(--panel));outline:2px solid transparent}
.language-selector summary:focus-visible{border-color:var(--accent)}
.language-selector img{display:block;width:16px;height:12px;object-fit:contain;flex:none}
.language-chevron{width:6px;height:6px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(45deg);margin:0 2px 3px 2px;flex:none}
.language-selector[open] .language-chevron{transform:rotate(225deg);margin-top:4px;margin-bottom:0}
.language-selector nav{display:grid;gap:6px;position:absolute;right:0;top:calc(100% + 5px);min-width:132px;padding:4px;border:1px solid var(--border);border-radius:5px;background:var(--panel);box-shadow:0 8px 24px #0003;z-index:12}
.language-selector nav a{display:flex;align-items:center;gap:8px;padding:8px;color:var(--text);border-radius:3px;text-decoration:none;white-space:nowrap}
.language-selector nav a:is(:hover,:focus-visible),.language-selector nav a[aria-current]{background:color-mix(in srgb,var(--accent) 12%,var(--bg));text-decoration:none}
.language-selector nav a:focus-visible{outline:1px solid var(--accent)}
.language-check{margin-left:auto;padding-left:10px;font-size:12px}
html[lang=zh-CN]{--geist-page:"Geist Sans","Microsoft YaHei","PingFang SC","Noto Sans CJK SC",sans-serif}
html[lang=zh-CN] :is(h1,h2,h3){letter-spacing:0}
@media(max-width:800px){.top-actions{gap:8px}.language-selector summary{padding:6px 7px;gap:5px}.topbar{gap:8px}.brand img:last-child{width:94px}}
@media(max-width:800px){.topbar{display:grid;grid-template-columns:auto 1fr auto;height:110px;gap:8px 10px;padding:10px 18px}.brand{grid-column:2/4;grid-row:1}.top-actions{display:contents}.theme-switcher{grid-column:1;grid-row:2}.language-selector{grid-column:2;grid-row:2;justify-self:end}.search-open{grid-column:3;grid-row:2;justify-self:end}.search-open kbd{display:none}#navigation{top:110px;height:calc(100dvh - 110px)}.nav-open #nav-overlay{inset:110px 0 0;height:calc(100dvh - 110px)}}
@media(max-width:360px){.topbar{padding-inline:10px;column-gap:6px}.theme-switcher{gap:2px}.theme-switcher button{width:28px;height:28px;padding:6px}.language-selector summary{padding-inline:6px}.search-open{padding-inline:6px}}
