:root {
  color-scheme: dark;
  --bg: #10121a;
  --panel: #171a24;
  --panel-strong: #1d202d;
  --sidebar: #13151e;
  --text: #f5f4fa;
  --muted: #b4b6c8;
  --quiet: #989bb1;
  --border: #2c3041;
  --accent: #ffbd99;
  --accent-ink: #261522;
  --selection: #302634;
  --code: #10131d;
  --bar: 69px;
  --rail: 246px;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fafafe;
  --panel: #fff;
  --panel-strong: #f0f0f8;
  --sidebar: #f6f6fb;
  --text: #232335;
  --muted: #54576e;
  --quiet: #666981;
  --border: #dedfeb;
  --accent: #9c462e;
  --accent-ink: #2b1922;
  --selection: #f8e6df;
  --code: #f6f5fb;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: calc(var(--bar) + 1.5rem); }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Geist, Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}
a { color: var(--accent); text-underline-offset: .25em; }
a:hover { text-decoration-thickness: .12em; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
svg { width: 1.15rem; height: 1.15rem; flex: none; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: fixed; top: 8px; left: 8px; z-index: 10; background: var(--panel); padding: 8px; }
.topbar {
  height: var(--bar);
  z-index: 5;
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0 2rem 0 1.55rem;
  border-bottom: 1px solid var(--border);
  background: var(--sidebar);
}
.brand { display: inline-flex; align-items: center; gap: .65rem; white-space: nowrap; color: var(--text); text-decoration: none; font-weight: 740; font-size: 1.08rem; }
.brand img { display: block; }
.brand small { margin-left: .35rem; font-size: .88rem; color: var(--quiet); font-weight: 500; }
.top-actions, .search-trigger, .icon-button { display: flex; align-items: center; }
.top-actions { gap: .85rem; }
.search-trigger, .icon-button {
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 9px;
}
.search-trigger { gap: .6rem; min-width: 222px; padding: .43rem .63rem; font-size: .875rem; text-align: left; }
.search-trigger kbd { margin-left: auto; border: 1px solid var(--border); border-radius: 5px; padding: .03rem .35rem; color: var(--quiet); font: .78rem/1.45 ui-monospace, monospace; }
.icon-button { width: 39px; height: 39px; justify-content: center; padding: 0; }
.icon-button:hover, .search-trigger:hover { background: var(--panel-strong); color: var(--text); }
.console-link { padding: .38rem .72rem; color: var(--text); text-decoration: none; font-size: .9rem; white-space: nowrap; }
.console-link:hover { color: var(--accent); }
.nav-toggle { display: none; }
.shell { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: calc(100vh - var(--bar)); }
.sidebar {
  align-self: start;
  position: sticky;
  top: var(--bar);
  height: calc(100dvh - var(--bar));
  border-right: 1px solid var(--border);
  background: var(--sidebar);
  overflow: auto;
  padding: 1.2rem .95rem 2rem;
}
.nav-group { padding: .55rem 0 .65rem; }
.nav-group > p { margin: .25rem .7rem .45rem; color: var(--quiet); font-size: .83rem; font-weight: 600; letter-spacing: .025em; }
.nav-group > a { display: flex; align-items: center; gap: .62rem; color: var(--muted); padding: .42rem .68rem; border: 1px solid transparent; border-radius: 8px; text-decoration: none; font-size: .94rem; }
.nav-group a svg { width: 17px; height: 17px; opacity: .86; }
.nav-group a:hover { color: var(--text); background: var(--panel-strong); }
.nav-group a[aria-current="page"] { color: var(--accent); background: var(--selection); border-color: color-mix(in srgb, var(--accent) 14%, var(--border)); font-weight: 620; }
.content { min-width: 0; display: flex; flex-direction: column; max-width: 1450px; width: 100%; margin: 0 auto; padding: 2.6rem clamp(1.5rem, 4.6vw, 5rem) 0; }
.landing { padding-top: 3.1rem; }
.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  position: relative;
  border-radius: 21px;
  border: 1px solid #46384c;
  min-height: 350px;
  background: radial-gradient(ellipse at 86% 23%, #6b4657 0%, #342741 43%, transparent 71%), linear-gradient(145deg, #201d31, #251e32 68%, #292036);
  color: #fff8fa;
  padding: clamp(2rem, 3.8vw, 3.5rem);
}
.hero-copy { position: relative; z-index: 1; }
.hero-label { display: inline-flex; gap: .55rem; align-items: center; font-size: .9rem; font-weight: 650; color: #ffd2bc; }
.hero-label > span { height: 9px; width: 9px; border-radius: 3px; background: #ffbe9d; }
.hero h1 { margin: .6rem 0 .87rem; font-size: clamp(2.55rem, 5.4vw, 5.3rem); letter-spacing: -.043em; line-height: 1.09; font-weight: 780; }
.hero h1 em { color: #ffc3a3; font-style: normal; }
.hero-copy > p { color: #e2d9e8; max-width: 32ch; margin: 0 0 1.55rem; font-size: 1.02rem; }
.hero-buttons { display: flex; gap: .68rem; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; gap: .42rem; border: 1px solid transparent; border-radius: 8px; padding: .55rem .9rem; text-decoration: none; color: #f8ecf3; font-size: .93rem; font-weight: 650; }
.button.primary { background: #ffc0a0; color: #291725; }
.button.primary:hover { background: #ffd1b7; }
.button.secondary { border-color: #866b86; background: #2d2338; }
.button.secondary:hover { background: #413048; }
.hero-art { position: relative; width: min(100%, 383px); height: 278px; justify-self: end; margin-left: auto; }
.orbit { position: absolute; inset: 8% 8%; border: 1px dashed #ae849d7c; border-radius: 50%; rotate: -16deg; }
.orbit-small { inset: 22% 21%; rotate: 20deg; border-style: solid; }
.brand-core { position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 145px; height: 145px; border-radius: 28px; background: radial-gradient(circle at 27% 10%, #7d586b, #422d4a); border: 1px solid #aa8095; display: grid; place-items: center; box-shadow: 0 18px 55px #21152d98; rotate: -5deg; }
.brand-core img { rotate: 5deg; filter: drop-shadow(0 5px 7px #26152f66); }
.art-tag { position: absolute; display: flex; align-items: center; gap: .38rem; padding: .4rem .7rem; border-radius: 8px; color: #ffe8df; background: #3d3047; border: 1px solid #8c6a88; font-weight: 600; font-size: .9rem; box-shadow: 0 7px 16px #27152c5c; }
.art-tag.claude { top: 13%; right: 5%; }
.art-tag.openai { bottom: 17%; left: 0; }
.art-tag svg { color: #ffbd99; }
.art-endpoint { position: absolute; bottom: 3%; right: 5%; color: #e1c8db; font: .82rem ui-monospace, monospace; }
.signal { position: absolute; border-radius: 50%; width: 6px; height: 6px; background: #ffc3aa; box-shadow: 0 0 8px #ffa99d; }
.signal-one { top: 20%; left: 24%; }.signal-two { right: 13%; bottom: 27%; }.signal-three { top: 46%; left: 9%; opacity: .74; }
.overview { margin-top: 2.35rem; }
.section-title { display: flex; align-items: baseline; gap: 1rem; justify-content: space-between; margin-bottom: .8rem; }
.section-title h2 { font-size: 1.38rem; margin: 0; }
.section-title a { font-size: .9rem; }
.card-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2,minmax(0,1fr)); }
.doc-card { text-decoration: none; color: var(--text); display: block; padding: 1.25rem; border-radius: 13px; border: 1px solid var(--border); background: var(--panel); }
.doc-card:hover { border-color: var(--accent); background: var(--panel-strong); }
.card-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: var(--selection); color: var(--accent); }
.accent-openai .card-icon { background: #26364a; color: #b8dcfd; }
:root[data-theme="light"] .accent-openai .card-icon { background: #e7eefb; color: #284c74; }
.doc-card h3 { margin: .5rem 0 .15rem; font-size: 1.17rem; }
.doc-card p { margin: 0 0 .72rem; color: var(--muted); font-size: .94rem; }
.doc-card code { display: inline-block; padding: .22rem .43rem; background: var(--code); border: 1px solid var(--border); color: var(--muted); border-radius: 5px; font: .81rem ui-monospace, monospace; max-width: 100%; overflow-wrap: anywhere; }
.client-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .85rem; }
.client-grid a { display: flex; align-items: center; gap: .65rem; min-width: 0; color: var(--text); border: 1px solid var(--border); border-radius: 10px; text-decoration: none; padding: .75rem .68rem; }
.client-grid a:hover { background: var(--panel-strong); border-color: var(--accent); }
.client-grid a svg { color: var(--quiet); }
.client-grid strong { display: block; font-size: .92rem; }
.client-grid small { display: block; color: var(--quiet); font-size: .8rem; }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) 11rem; gap: clamp(1.25rem, 3.5vw, 3rem); justify-content: center; }
.crumbs { display: flex; gap: .5rem; color: var(--quiet); font-size: .9rem; align-items: center; }
.crumbs a { color: var(--muted); }
.article-header { border-bottom: 1px solid var(--border); padding: .45rem 0 1.25rem; }
.article h1 { font-size: clamp(2.15rem, 4.5vw, 3.4rem); margin: .3rem 0 .1rem; letter-spacing: -.035em; line-height: 1.2; }
.article-header > p { color: var(--muted); margin: .65rem 0 0; }
.article section { padding-top: 1.68rem; }
.article h2 { margin: 0 0 .6rem; font-size: 1.34rem; }
.article section > p, .article li { color: var(--muted); }
.article section > p { margin: .35rem 0 .85rem; }
.article :not(pre) > code { background: var(--code); border-radius: 4px; padding: .12em .28em; color: var(--text); font-size: .87em; overflow-wrap: anywhere; }
.toc { align-self: start; position: sticky; top: calc(var(--bar) + 2.1rem); border-left: 1px solid var(--border); padding-left: 1rem; }
.toc p { margin: 0 0 .5rem; font-size: .9rem; font-weight: 650; }
.toc a { display: block; text-decoration: none; color: var(--muted); font-size: .875rem; margin: .4rem 0; }
.toc a:hover { color: var(--accent); }
.codebox, .facts, .table-scroll { border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.codebox { margin: .7rem 0; background: var(--code); }
.codebar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .3rem .7rem .3rem .9rem; border-bottom: 1px solid var(--border); font-size: .87rem; color: var(--quiet); background: var(--panel); }
.copy { display: inline-flex; align-items: center; gap: .3rem; border: 1px solid transparent; color: var(--muted); background: transparent; padding: .2rem .36rem; font-size: .83rem; border-radius: 5px; }
.copy svg { width: .9rem; height: .9rem; }
.copy:hover { background: var(--panel-strong); color: var(--text); }
pre { margin: 0; padding: 1rem; overflow: auto; }
pre code { font: .85rem/1.75 ui-monospace, "Cascadia Code", monospace; }
.tabs { display: flex; gap: .3rem; }
.tabs button { border: 1px solid transparent; border-radius: 7px; padding: .31rem .58rem; font-size: .86rem; color: var(--muted); background: transparent; }
.tabs button[aria-selected="true"] { background: var(--selection); color: var(--accent); border-color: var(--border); }
.facts { margin: .25rem 0 .6rem; }
.facts div { display: grid; grid-template-columns: minmax(105px,.75fr) 2fr; gap: .7rem; padding: .62rem .85rem; }
.facts div + div { border-top: 1px solid var(--border); }
.facts dt { color: var(--quiet); }
.facts dd { margin: 0; min-width: 0; }
.table-scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .56rem .75rem; }
th { background: var(--panel); }
tr + tr td { border-top: 1px solid var(--border); }
.pagination { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 1.15rem; margin-top: 2.25rem; }
.pagination a { text-decoration: none; background: var(--panel); border: 1px solid var(--border); color: var(--text); padding: .5rem .7rem; border-radius: 7px; }
.pagination a:hover { color: var(--accent); border-color: var(--accent); }
.site-footer { margin-top: 2.55rem; display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--border); padding: 1.15rem 0 1.65rem; font-size: .87rem; color: var(--quiet); }
.site-footer a { color: var(--muted); }
dialog { border: 1px solid var(--border); border-radius: 13px; background: var(--panel); color: var(--text); width: min(560px, calc(100vw - 2rem)); padding: 0; margin: min(15dvh, 9rem) auto auto; }
dialog::backdrop { background: #070910b5; }
.search-head { display: flex; align-items: center; gap: .65rem; padding: .8rem; border-bottom: 1px solid var(--border); color: var(--quiet); }
.search-head input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); padding: .3rem .15rem; }
.search-results { display: grid; gap: .2rem; max-height: 55dvh; padding: .65rem; overflow: auto; }
.search-results a { display: flex; flex-direction: column; border-radius: 7px; padding: .36rem .55rem; text-decoration: none; color: var(--text); }
.search-results a:hover, .search-results a:focus-visible { background: var(--selection); }
.search-results small, .search-results p { color: var(--muted); }
.search-results p { margin: .6rem .5rem; }
@media (max-width: 1140px) {
  :root { --rail: 220px; }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .art-tag.openai { left: -3%; }
}
@media (max-width: 850px) {
  :root { --bar: 60px; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .topbar { padding: 0 .9rem; gap: .55rem; }
  .nav-toggle { display: flex; }
  .brand { margin-right: auto; gap: .35rem; }
  .brand small { display: none; }
  .sidebar { display: none; position: fixed; z-index: 4; inset: var(--bar) auto 0 0; width: min(280px, 82vw); height: auto; box-shadow: 20px 0 33px #08091449; }
  .sidebar[data-open="true"] { display: block; }
  .top-actions { gap: .4rem; }
  .search-trigger { min-width: 0; width: 39px; height: 39px; justify-content: center; padding: 0; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .content { padding: 1.35rem .9rem 0; }
}
@media (max-width: 570px) {
  .hero { grid-template-columns: 1fr; padding: 1.5rem; min-height: unset; }
  .hero-art { justify-self: center; margin: .35rem auto -0.25rem; height: 194px; max-width: 292px; }
  .brand-core { width: 96px; height: 96px; border-radius: 19px; }
  .brand-core img { width: 73px; height: 73px; }
  .art-tag.claude { right: 1%; }
  .art-tag.openai { left: 0; }
  .art-endpoint { display: none; }
  .card-grid, .client-grid { grid-template-columns: minmax(0,1fr); }
  .overview { margin-top: 1.55rem; }
  .section-title { gap: .55rem; }
  .section-title h2 { font-size: 1.18rem; }
  .console-link { padding-inline: .27rem; }
  pre { padding: .75rem; }
}
