:root {
  --bg: #07121d;
  --bg-elevated: #0b1a28;
  --panel: #0d2030;
  --panel-hover: #10283a;
  --line: rgba(149, 198, 220, 0.15);
  --line-strong: rgba(85, 214, 231, 0.38);
  --text: #edf7fa;
  --muted: #8ca6b3;
  --cyan: #55d6e7;
  --cyan-deep: #143c4a;
  --lime: #b9e46b;
  --amber: #f3c46a;
  --font-ui: "Source Han Sans SC", "Noto Sans CJK SC", "思源黑体", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-display: "Source Han Serif SC", "Noto Serif CJK SC", "思源宋体", "STSong", "Songti SC", serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; background: var(--bg); }
body { min-width: 320px; margin: 0; color: var(--text); background: var(--bg); font-family: var(--font-ui); font-size: 15px; line-height: 1.68; }
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .28; background-image: linear-gradient(rgba(106, 172, 192, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(106, 172, 192, .05) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to bottom, black, transparent 68%); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
code { color: #d5f7fb; font-size: .9em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.docs-shell { position: relative; z-index: 1; min-height: 100vh; }
.docs-topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; min-height: 72px; padding: 0 max(24px, calc((100vw - 1480px) / 2)); border-bottom: 1px solid var(--line); background: rgba(7, 18, 29, .91); backdrop-filter: blur(18px); }
.docs-brand { display: inline-flex; align-items: center; gap: 10px; min-width: 260px; }
.docs-brand img { display: block; }
.docs-brand span { display: grid; gap: 0; }
.docs-brand strong { font-size: 17px; letter-spacing: .02em; }
.docs-brand small { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 9px; letter-spacing: .15em; }
.topbar-actions { display: flex; align-items: center; gap: 17px; margin-left: auto; }
.docs-search { position: relative; width: 260px; }
.docs-search input { width: 100%; height: 36px; padding: 0 14px; border: 1px solid var(--line); outline: none; color: var(--text); background: rgba(15, 32, 48, .8); transition: border-color .2s ease, background .2s ease; }
.docs-search input::placeholder { color: var(--muted); }
.docs-search input:focus { border-color: var(--cyan); background: var(--bg-elevated); }
.search-results { position: absolute; top: calc(100% + 8px); right: 0; left: 0; overflow: hidden; border: 1px solid var(--line-strong); background: #0b1a28; box-shadow: 0 18px 44px rgba(0, 0, 0, .32); }
.search-result { display: grid; width: 100%; padding: 10px 13px; border: 0; color: var(--text); text-align: left; background: transparent; }
.search-result:hover, .search-result:focus-visible { background: var(--panel-hover); outline: none; }
.search-result span { color: var(--muted); font-size: 12px; }
.search-empty { display: block; padding: 12px 13px; color: var(--muted); font-size: 13px; }
.topbar-link { color: var(--muted); font-size: 14px; font-weight: 650; white-space: nowrap; }
.topbar-link:hover { color: var(--cyan); }
.topbar-button, .primary-action { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 38px; padding: 0 14px; border: 1px solid var(--cyan); color: #06131d; background: var(--cyan); font-size: 14px; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease; white-space: nowrap; }
.topbar-button:hover, .primary-action:hover { box-shadow: 0 8px 22px rgba(85, 214, 231, .2); transform: translateY(-1px); }

.docs-layout { display: grid; grid-template-columns: 250px minmax(0, 790px) 180px; justify-content: center; gap: 56px; width: min(1432px, calc(100% - 48px)); margin: 0 auto; }
.docs-sidebar { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 116px); padding: 22px 0; overflow: auto; scrollbar-width: thin; }
.sidebar-toggle { display: none; }
.docs-nav { display: grid; gap: 2px; }
.nav-group-label { margin: 20px 0 7px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.nav-group-label:first-child { margin-top: 0; }
.nav-item { display: block; padding: 6px 10px; border-left: 2px solid transparent; color: var(--muted); font-size: 14px; transition: color .18s ease, border-color .18s ease, background .18s ease; }
.nav-item:hover { color: var(--text); background: rgba(255, 255, 255, .025); }
.nav-item.is-active { border-left-color: var(--cyan); color: var(--cyan); background: rgba(85, 214, 231, .07); }
.sidebar-note { display: flex; gap: 9px; align-items: flex-start; margin-top: 30px; padding: 14px 12px; border: 1px solid var(--line); background: rgba(15, 32, 48, .52); }
.sidebar-note strong, .sidebar-note small { display: block; }
.sidebar-note strong { font-size: 13px; }
.sidebar-note small { color: var(--muted); font-size: 11px; }
.status-dot { display: inline-block; width: 7px; height: 7px; flex: 0 0 auto; margin-top: .42em; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(185, 228, 107, .11), 0 0 14px rgba(185, 228, 107, .45); }

.docs-content { min-width: 0; padding: 62px 0 88px; }
.docs-intro { padding-bottom: 56px; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.eyebrow, .section-heading > p { margin: 0 0 14px; color: var(--cyan); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; font-weight: 700; letter-spacing: .13em; }
.eyebrow .status-dot { margin-right: 9px; vertical-align: 1px; }
h1, h2 { margin: 0; font-family: var(--font-display); font-weight: 500; letter-spacing: 0; }
h1 { max-width: 720px; font-size: clamp(38px, 5vw, 58px); line-height: 1.13; }
h2 { font-size: 30px; line-height: 1.28; }
.lead { max-width: 690px; margin: 20px 0 0; color: var(--muted); font-size: 17px; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.primary-action { min-height: 44px; padding: 0 18px; }
.quiet-action { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line-strong); color: var(--text); font-size: 14px; font-weight: 750; }
.quiet-action:hover { border-color: var(--cyan); color: var(--cyan); }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 48px; border: 1px solid var(--line); background: var(--line); }
.quick-step { min-height: 156px; padding: 21px; background: var(--bg-elevated); }
.quick-step span { color: var(--cyan); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; font-weight: 700; }
.quick-step h2 { margin-top: 18px; font-family: var(--font-ui); font-size: 16px; font-weight: 750; }
.quick-step p { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.doc-section { padding: 58px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.doc-section > p { margin: 17px 0 0; color: #c1d2d8; }
.doc-section > p a, .inline-link { color: var(--cyan); font-weight: 700; }
.doc-section > p a:hover, .inline-link:hover { text-decoration: underline; }
.section-heading-row { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; }
.section-heading > p { margin-bottom: 8px; color: var(--muted); font-size: 10px; }
.method-chip { display: inline-grid; min-width: 51px; place-items: center; padding: 4px 8px; color: var(--cyan); border: 1px solid rgba(85, 214, 231, .3); background: rgba(85, 214, 231, .08); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; font-weight: 800; }
.method-get { color: var(--lime); border-color: rgba(185, 228, 107, .3); background: rgba(185, 228, 107, .08); }
.callout { margin-top: 24px; padding: 16px 18px; border-left: 2px solid var(--amber); background: rgba(243, 196, 106, .06); }
.callout-cyan { border-left-color: var(--cyan); background: rgba(85, 214, 231, .06); }
.callout strong { color: var(--text); font-size: 14px; }
.callout p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.endpoint-block { display: flex; overflow: hidden; align-items: stretch; min-height: 54px; margin-top: 21px; border: 1px solid var(--line-strong); background: #091a28; }
.endpoint-block code { display: flex; align-items: center; flex: 1; min-width: 0; padding: 0 16px; overflow: auto; color: var(--cyan); font-size: 15px; white-space: nowrap; }
.copy-button { align-self: center; padding: 5px 10px; border: 1px solid var(--line-strong); color: #cce8ed; background: rgba(255, 255, 255, .03); font-size: 12px; font-weight: 700; transition: color .18s ease, border-color .18s ease, background .18s ease; }
.copy-button:hover { border-color: var(--cyan); color: #06131d; background: var(--cyan); }
.endpoint-block .copy-button { margin-right: 9px; }
.inline-code { margin: 11px 0 0; padding: 12px 14px; border: 1px solid var(--line); background: rgba(15, 32, 48, .7); overflow-x: auto; }
.inline-code code { color: #d6f3f8; }

.code-example { overflow: hidden; margin-top: 22px; border: 1px solid var(--line-strong); background: #081825; }
.code-toolbar { display: flex; align-items: center; min-height: 45px; padding: 0 10px; border-bottom: 1px solid var(--line); background: rgba(15, 32, 48, .88); }
.code-toolbar > span { padding: 0 8px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.code-tab { height: 45px; padding: 0 10px; border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; font-size: 12px; font-weight: 700; }
.code-tab:hover { color: var(--text); }
.code-tab.is-active { border-bottom-color: var(--cyan); color: var(--cyan); }
.code-copy { margin-left: auto; }
.code-example pre { margin: 0; padding: 20px; overflow: auto; color: #d9edf2; font-size: 13px; line-height: 1.75; tab-size: 2; }
.code-example pre code { color: inherit; font-size: inherit; }
.compact-code pre { padding-top: 17px; padding-bottom: 17px; }
.parameter-table-wrap { overflow-x: auto; margin-top: 26px; border: 1px solid var(--line); }
.parameter-table { width: 100%; border-collapse: collapse; text-align: left; }
.parameter-table th, .parameter-table td { padding: 13px 15px; border-bottom: 1px solid var(--line); vertical-align: top; }
.parameter-table th { color: var(--muted); background: rgba(15, 32, 48, .67); font-size: 12px; font-weight: 700; }
.parameter-table td { color: #c3d5da; font-size: 13px; }
.parameter-table tbody tr:last-child td { border-bottom: 0; }
.parameter-table code { font-size: 12px; }
.inline-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; }
.support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 24px; border: 1px solid var(--line); background: var(--line); }
.support-grid div { padding: 18px; background: var(--bg-elevated); }
.support-grid strong, .support-grid span { display: block; }
.support-grid strong { font-size: 14px; }
.support-grid span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.usage-flow { display: flex; align-items: center; gap: 12px; margin-top: 25px; padding: 17px 0; color: var(--muted); font-size: 13px; white-space: nowrap; overflow-x: auto; }
.usage-flow span { padding: 8px 11px; border: 1px solid var(--line); background: var(--bg-elevated); }
.usage-flow i { display: block; width: 19px; height: 1px; flex: 0 0 auto; background: var(--cyan); }
.security-list { display: grid; gap: 11px; margin: 23px 0 0; padding: 0; list-style: none; }
.security-list li { position: relative; padding-left: 21px; color: #c5d5da; }
.security-list li::before { content: ""; position: absolute; top: .72em; left: 1px; width: 7px; height: 7px; border: 1px solid var(--lime); border-radius: 50%; box-shadow: 0 0 10px rgba(185, 228, 107, .45); }
.docs-cta { margin-top: 58px; padding: 35px; border: 1px solid var(--line-strong); background: linear-gradient(120deg, rgba(85, 214, 231, .1), rgba(15, 32, 48, .72) 58%); }
.docs-cta p { margin: 0 0 7px; color: var(--cyan); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; font-weight: 700; letter-spacing: .13em; }
.docs-cta h2 { max-width: 530px; font-size: 30px; }
.docs-cta .primary-action { margin-top: 23px; }

.on-page-nav { position: sticky; top: 104px; align-self: start; padding-top: 65px; }
.on-page-nav p { margin: 0 0 10px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.on-page-nav a { display: block; padding: 4px 0; color: var(--muted); font-size: 12px; }
.on-page-nav a:hover { color: var(--cyan); }
.copy-status { position: fixed; right: 24px; bottom: 24px; z-index: 30; padding: 9px 13px; border: 1px solid var(--line-strong); color: #06131d; background: var(--cyan); font-size: 13px; font-weight: 750; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; }
.copy-status.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1180px) {
  .docs-layout { grid-template-columns: 220px minmax(0, 760px); gap: 38px; width: min(1050px, calc(100% - 40px)); }
  .on-page-nav { display: none; }
  .docs-brand { min-width: 230px; }
}

@media (max-width: 800px) {
  .docs-topbar { min-height: 64px; padding: 0 16px; }
  .docs-brand { min-width: auto; }
  .docs-brand small, .topbar-link { display: none; }
  .docs-search { width: min(190px, 39vw); }
  .topbar-actions { gap: 9px; }
  .topbar-button { min-height: 34px; padding: 0 10px; font-size: 12px; }
  .docs-layout { display: block; width: min(100% - 32px, 760px); }
  .docs-sidebar { position: relative; top: auto; max-height: none; padding: 12px 0 0; overflow: visible; }
  .sidebar-toggle { display: inline-flex; align-items: center; min-height: 35px; padding: 0 11px; border: 1px solid var(--line-strong); color: var(--text); background: var(--bg-elevated); font-size: 13px; font-weight: 700; }
  .docs-nav { display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 15px 0; }
  .docs-sidebar.is-open .docs-nav { display: grid; }
  .nav-group-label { grid-column: 1 / -1; margin-top: 15px; }
  .sidebar-note { display: none; }
  .docs-content { padding-top: 38px; }
  .docs-intro { padding-bottom: 42px; }
  .quick-grid { grid-template-columns: 1fr; }
  .quick-step { min-height: 0; }
}

@media (max-width: 530px) {
  body { font-size: 14px; }
  .docs-topbar { gap: 10px; }
  .docs-brand strong { font-size: 15px; }
  .docs-brand img { width: 30px; height: 30px; }
  .docs-search { width: 132px; }
  .docs-search input { height: 34px; padding: 0 10px; font-size: 12px; }
  .topbar-button { font-size: 0; gap: 0; }
  .topbar-button span { font-size: 16px; }
  .docs-layout { width: calc(100% - 24px); }
  h1 { font-size: 36px; }
  h2 { font-size: 26px; }
  .lead { font-size: 15px; }
  .section-heading-row { align-items: flex-start; }
  .doc-section { padding: 43px 0; }
  .endpoint-block code { padding-right: 8px; padding-left: 12px; font-size: 12px; }
  .code-example pre { padding: 16px; font-size: 11.5px; }
  .support-grid { grid-template-columns: 1fr; }
  .parameter-table th, .parameter-table td { min-width: 105px; padding: 11px; }
  .usage-flow { gap: 8px; }
  .usage-flow span { padding: 7px 8px; font-size: 11px; }
  .docs-cta { padding: 25px 20px; }
  .docs-cta h2 { font-size: 26px; }
}
