:root { color-scheme: light; --blue: #1769e8; --ink: #14243e; --muted: #60718a; --line: #dfe7f2; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: #f5f8fd; color: var(--ink); font: 15px/1.8 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, .button { font: inherit; cursor: pointer; border: 1px solid #cbdcf6; border-radius: 8px; padding: 7px 13px; background: #fff; color: var(--blue); white-space: nowrap; }
button:hover, .button:hover { background: #eef5ff; text-decoration: none; }
:focus-visible { outline: 3px solid #82b1ff; outline-offset: 3px; }
.docs-header { min-height: 76px; position: sticky; top: 0; z-index: 5; background: #ffffffed; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px max(24px, calc((100vw - 1220px)/2)); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand strong { font-size: 20px; white-space: nowrap; }
.brand span { border-left: 1px solid var(--line); padding-left: 12px; color: var(--muted); font-size: 14px; }
.docs-shell { display: grid; grid-template-columns: 210px minmax(0,1fr); max-width: 1268px; margin: 0 auto; padding: 32px 24px; gap: 32px; }
.docs-nav { align-self: start; position: sticky; top: 108px; display: flex; flex-direction: column; gap: 8px; }
.docs-nav a { color: #41526d; padding: 8px 12px; border-radius: 8px; }
.docs-nav a:hover { color: var(--blue); background: #e7f0ff; text-decoration: none; }
.nav-label { font-size: 12px; letter-spacing: 1px; color: var(--muted); padding: 0 12px 8px; }
.docs-nav .button { margin: 20px 12px 0; }
main { min-width: 0; }
section { padding: 32px; margin-bottom: 22px; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow-wrap: anywhere; }
.hero { background: linear-gradient(135deg, #fff 40%, #edf4ff); border-top: 4px solid var(--blue); }
.eyebrow { color: var(--blue); font-weight: 700; font-size: 12px; letter-spacing: 2px; }
h1 { font-size: clamp(26px, 3vw, 34px); line-height: 1.4; margin: 12px 0; }
h2 { font-size: 23px; line-height: 1.5; margin: 0 0 18px; }
p { margin: 14px 0; }
.lead { font-size: 17px; color: var(--muted); }
.flow { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin: 28px 0; }
.flow div { padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.flow b { display: block; color: var(--blue); font-size: 23px; }
.flow strong, .flow span { display: block; }
.flow span { margin-top: 5px; font-size: 12px; color: var(--muted); }
.note { border-left: 3px solid var(--blue); padding: 14px 18px; background: #eff5ff; border-radius: 0 8px 8px 0; color: #314866; }
ol { padding-left: 24px; }
li { margin: 10px 0; padding-left: 4px; }
code { font-family: Consolas, "SFMono-Regular", monospace; font-size: .91em; }
p code, li code, td code, .note code { background: #eef3fb; padding: 2px 5px; border-radius: 4px; color: #285699; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; margin: 18px 0; }
table { width: 100%; border-collapse: collapse; text-align: left; min-width: 570px; font-size: 14px; }
th { background: #f3f7fc; font-weight: 600; }
th, td { padding: 12px 16px; vertical-align: top; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
td:first-child { min-width: 150px; }
.endpoint { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; border: 1px solid #c9dbf7; background: #f2f7ff; padding: 16px; border-radius: 10px; }
.endpoint span { background: var(--blue); color: white; font-size: 12px; font-weight: 700; border-radius: 5px; padding: 3px 9px; }
.endpoint code { flex: 1; min-width: 180px; }
.code-heading, .example-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; margin: 18px 0 8px; color: var(--muted); }
.example-tools { margin: 10px 0; flex-wrap: wrap; }
.example-tools div { display: flex; align-items: center; gap: 18px; }
pre { max-width: 100%; overflow: auto; background: #14243e; color: #e5edfb; border-radius: 10px; padding: 20px; font-size: 13px; line-height: 1.8; tab-size: 4; margin: 8px 0 18px; }
pre code { font-size: inherit; white-space: pre; }
details { border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin: 18px 0; }
summary { cursor: pointer; font-weight: 600; color: #244c85; }
details pre:last-child { margin-bottom: 0; }
footer { color: var(--muted); font-size: 13px; padding: 8px 0 32px; display: flex; justify-content: space-between; gap: 15px; }
.copy-status { display: none; position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); background: #14243e; color: #fff; padding: 10px 22px; border-radius: 10px; z-index: 10; max-width: 90vw; }
.copy-status.visible { display: block; }
@media (max-width: 900px) { .docs-shell { grid-template-columns: 1fr; gap: 20px; } .docs-nav { position: static; display: flex; flex-direction: row; flex-wrap: wrap; gap: 4px; } .nav-label { width: 100%; padding-bottom: 0; } .docs-nav .button { margin: 0 8px; } }
@media (max-width: 600px) { .docs-header { padding: 12px 16px; gap: 10px; } .brand { gap: 8px; } .brand img { width: 32px; height: 32px; } .brand strong { font-size: 17px; } .brand span { display: none; } .docs-header .button { font-size: 12px; padding: 6px 9px; } .docs-shell { padding: 18px 12px; } .docs-nav { font-size: 13px; } .docs-nav a { padding: 5px 8px; } section { padding: 22px 18px; border-radius: 12px; } .flow { grid-template-columns: 1fr; gap: 8px; } .flow div { padding: 12px 16px; } .flow b { float: left; margin-right: 16px; } h2 { font-size: 21px; } .endpoint { padding: 12px; } .code-heading { align-items: start; } pre { padding: 14px; font-size: 12px; } details { padding: 12px; } footer { flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
