:root { color-scheme: light; --ink:#26364a; --muted:#6b7b90; --line:#e5eaf0; --accent:#397fe5; --canvas:#f4f6f9; --soft:#f6f8fb; }
* { box-sizing:border-box; }
html,body { margin:0; min-height:100%; font:14px/1.65 Inter,-apple-system,BlinkMacSystemFont,'Segoe UI','Microsoft YaHei',sans-serif; color:var(--ink); background:#fff; }
a { color:inherit; text-decoration:none; }
.topbar { height:58px; position:sticky; top:0; z-index:5; display:flex; align-items:center; gap:38px; padding:0 28px; border-bottom:1px solid var(--line); background:#fff; }
.brand { font-size:17px; font-weight:700; }
.topbar nav { display:flex; height:100%; gap:26px; align-items:center; color:var(--muted); }
.topbar nav a { height:100%; display:grid; place-items:center; border-bottom:2px solid transparent; }
.topbar nav a.active { color:var(--accent); border-bottom-color:var(--accent); }
.back-link { margin-left:auto; color:var(--muted); font-size:13px; }
.layout { display:grid; grid-template-columns:250px minmax(520px,1fr) 220px; gap:36px; max-width:1560px; min-height:calc(100vh - 58px); margin:0 auto; padding:0 28px; }
.api-nav { position:sticky; top:58px; align-self:start; height:calc(100vh - 58px); overflow:auto; padding:26px 0 32px; border-right:1px solid var(--line); }
.nav-title,.toc-title { margin:0 20px 14px 0; color:#96a2b1; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; }
.api-group { margin:18px 18px 0 0; }
.api-group-button { width:100%; border:0; background:none; padding:6px 10px; display:flex; justify-content:space-between; gap:12px; text-align:left; color:var(--ink); font:inherit; font-weight:650; cursor:pointer; }
.api-group-button small { color:#9aa6b5; font-weight:500; }
.api-group-desc { margin:0 10px 7px; color:var(--muted); font-size:11px; line-height:1.45; }
.api-nav-link { display:block; margin:2px 12px 2px 0; border-radius:5px; padding:6px 10px; color:var(--muted); font-size:12px; line-height:1.4; overflow-wrap:anywhere; }
.api-nav-link:hover,.api-nav-link.active { background:#eef5ff; color:#2670d8; }
.api-nav-link .method { display:inline-block; min-width:34px; margin-right:5px; font:700 9px/18px ui-monospace,monospace; color:#29704b; background:#e8f6ed; text-align:center; border-radius:3px; }
.content { min-width:0; padding:40px 0 90px; }
.intro { padding-bottom:28px; border-bottom:1px solid var(--line); margin-bottom:26px; }
.eyebrow { color:var(--accent); font-size:10px; font-weight:700; letter-spacing:.1em; }
h1 { margin:8px 0; font-size:28px; line-height:1.3; letter-spacing:0; }
.intro p,.api-description { max-width:760px; color:var(--muted); margin:0; }
.api-section { scroll-margin-top:80px; margin:36px 0 0; }
.api-section h2 { margin:0 0 5px; font-size:20px; line-height:1.4; }
.api-section .section-desc { color:var(--muted); margin:0 0 18px; }
.endpoint { scroll-margin-top:76px; border:1px solid var(--line); border-radius:7px; margin:12px 0; background:#fff; }
.endpoint summary { list-style:none; cursor:pointer; display:flex; align-items:center; gap:12px; padding:13px 16px; }
.endpoint summary::-webkit-details-marker { display:none; }
.endpoint summary::after { content:'+'; margin-left:auto; color:#93a0b0; font-size:18px; }
.endpoint[open] summary::after { content:'−'; }
.method-badge { min-width:54px; padding:2px 7px; color:#256c49; background:#e9f7ef; border-radius:4px; text-align:center; font:700 10px/18px ui-monospace,monospace; }
.endpoint-path { font:600 13px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace; overflow-wrap:anywhere; }
.endpoint-summary { color:var(--muted); font-size:12px; }
.endpoint-body { padding:0 16px 18px; border-top:1px solid var(--line); }
.endpoint-body p { color:var(--muted); }
.meta-line { display:flex; gap:8px; align-items:center; margin:14px 0 8px; font-size:12px; font-weight:650; }
.pill { padding:2px 7px; border-radius:4px; background:#f1f4f8; color:#6d7a8b; font-size:10px; font-weight:500; }
.param-table { width:100%; border-collapse:collapse; font-size:12px; }
.param-table th,.param-table td { padding:8px 9px; border-bottom:1px solid #edf0f4; text-align:left; vertical-align:top; }
.param-table th { color:#8b99aa; font-size:11px; font-weight:600; }
.param-example { margin-top:3px; color:#95a1b0; font-size:10px; }
.response-example { margin:10px 0 16px; }
.response-example .meta-line { margin-bottom:6px; }
.param-table code,.schema code { font:11px ui-monospace,SFMono-Regular,Consolas,monospace; }
.required { color:#d75b65; font-size:10px; }
.schema { padding:12px; background:#f7f9fb; border-radius:5px; font:12px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace; white-space:pre-wrap; overflow-wrap:anywhere; }
.security-note,.empty-note,.error { padding:12px 14px; border-radius:5px; background:#f6f8fb; color:var(--muted); font-size:12px; }
.api-console-link { margin-top:16px; text-align:right; font-size:12px; font-weight:600; }
.api-console-link a { color:var(--accent); }
.api-console-link a:hover { text-decoration:underline; }
.error { background:#fff1f0; color:#a93232; }
.toc { position:sticky; top:58px; align-self:start; height:calc(100vh - 58px); overflow:auto; padding:26px 0 32px; }
.toc-link { display:block; padding:5px 8px; border-left:1px solid var(--line); color:var(--muted); font-size:11px; line-height:1.4; overflow-wrap:anywhere; }
.toc-link:hover { color:var(--accent); border-left-color:var(--accent); }
.loading { padding:8px 10px; color:#98a4b3; font-size:12px; }
@media(max-width:1120px) { .layout { grid-template-columns:220px minmax(0,1fr); gap:28px; } .toc { display:none; } }
@media(max-width:700px) { .topbar { height:52px; padding:0 14px; gap:18px; } .topbar nav { gap:14px; font-size:12px; } .layout { display:block; padding:0 16px; } .api-nav { position:static; height:auto; max-height:240px; border-right:0; border-bottom:1px solid var(--line); padding:14px 0; } .api-group { margin-top:7px; } .content { padding-top:24px; } h1 { font-size:24px; } }
