:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #667085;
  --line: #dce4ef;
  --surface: #ffffff;
  --soft: #f5f7fa;
  --brand: #155eef;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--ink); }
a { color: var(--brand); text-decoration: none; }
.site-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; min-height: 64px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .96); padding: 10px 32px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 36px; height: 36px; }
.brand div { display: grid; gap: 2px; }
.brand strong { font-size: 15px; }
.brand span { color: var(--muted); font-size: 12px; }
.spec-link { border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; font-size: 13px; font-weight: 700; }
.docs-layout { display: grid; grid-template-columns: 240px minmax(0, 880px); justify-content: center; gap: 48px; padding: 36px 32px 80px; }
.docs-nav { position: sticky; top: 100px; align-self: start; display: grid; gap: 4px; border-right: 1px solid var(--line); padding-right: 24px; }
.docs-nav strong { margin-bottom: 10px; font-size: 13px; }
.docs-nav a { border-radius: 5px; color: var(--muted); padding: 8px 10px; font-size: 13px; }
.docs-nav a:hover { background: var(--soft); color: var(--ink); }
.docs-content { min-width: 0; }
.docs-content section { scroll-margin-top: 88px; border-bottom: 1px solid var(--line); padding: 0 0 38px; margin-bottom: 38px; }
.docs-content section:last-child { border-bottom: 0; }
.eyebrow { color: var(--brand); font-size: 13px; font-weight: 800; }
h1 { margin: 8px 0 14px; font-size: 36px; letter-spacing: 0; }
h2 { margin: 0 0 14px; font-size: 22px; letter-spacing: 0; }
p, li { color: #475467; font-size: 14px; line-height: 1.8; }
li + li { margin-top: 6px; }
.notice { display: grid; gap: 6px; margin-top: 18px; border-left: 3px solid var(--brand); background: var(--soft); padding: 13px 15px; }
.notice span { color: var(--muted); font-size: 13px; line-height: 1.7; }
.endpoint { display: grid; grid-template-columns: 60px minmax(0, 1fr); align-items: center; gap: 10px; margin: 10px 0; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; }
.endpoint span { color: #067647; font-size: 12px; font-weight: 800; }
code { overflow-wrap: anywhere; font-family: "SFMono-Regular", Consolas, monospace; font-size: 13px; }
pre { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: #111827; color: #e5e7eb; padding: 16px; line-height: 1.7; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0; }
.flow span { border: 1px solid var(--line); border-radius: 5px; background: var(--soft); padding: 8px 10px; font-size: 13px; }
.flow b { color: #98a2b3; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { border-bottom: 1px solid var(--line); padding: 11px 10px; text-align: left; vertical-align: top; }
th { background: var(--soft); color: #344054; }
td { color: var(--muted); }

@media (max-width: 800px) {
  .site-header { padding: 10px 16px; }
  .brand span { display: none; }
  .docs-layout { grid-template-columns: 1fr; gap: 20px; padding: 24px 18px 60px; }
  .docs-nav { position: static; display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 10px; }
  .docs-nav strong { display: none; }
  .docs-nav a { flex: 0 0 auto; }
  h1 { font-size: 30px; }
}
