:root { color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif; color: #0f172a; background: #f8fafc; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar { display: flex; align-items: center; gap: 24px; padding: 14px 28px; background: #fff; border-bottom: 1px solid #e2e8f0; position: sticky; top: 0; z-index: 2; }
.brand { font-weight: 800; font-size: 18px; color: #0f172a; }
.topbar nav { display: flex; gap: 18px; font-size: 14px; }
.topbar nav a.active { color: #0f172a; font-weight: 700; }
.sidebar { position: fixed; top: 57px; bottom: 0; width: 210px; padding: 22px 18px; background: #fff; border-right: 1px solid #e2e8f0; overflow: auto; }
.sidebar-title { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #64748b; margin-bottom: 10px; }
.sidebar a { display: block; padding: 7px 8px; border-radius: 8px; color: #334155; font-size: 14px; }
.sidebar a.active { background: #eff6ff; color: #1d4ed8; font-weight: 700; }
.content { margin-left: 210px; max-width: 980px; padding: 36px 40px 80px; }
h1 { font-size: 34px; margin: 0 0 10px; }
h2 { font-size: 24px; margin: 34px 0 12px; }
h3 { font-size: 18px; margin: 0 0 8px; }
h4 { margin: 18px 0 6px; }
.lead { color: #475569; font-size: 17px; line-height: 1.6; }
.meta, .muted { color: #64748b; font-size: 13px; }
.breadcrumb { color: #64748b; font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 22px 0; }
.card { display: block; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 18px; color: inherit; }
.card:hover { border-color: #93c5fd; text-decoration: none; }
.card p { color: #475569; font-size: 14px; line-height: 1.55; }
pre { background: #0f172a; color: #e2e8f0; padding: 14px 16px; border-radius: 10px; overflow: auto; font-size: 13px; line-height: 1.55; }
code { background: #eef2ff; padding: 1px 5px; border-radius: 5px; font-size: 0.92em; }
pre code { background: transparent; padding: 0; }
blockquote { border-left: 3px solid #cbd5e1; margin: 16px 0; padding: 2px 16px; color: #475569; }
hr { border: 0; border-top: 1px solid #e2e8f0; margin: 28px 0; }
ul, ol { line-height: 1.75; }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #e2e8f0; font-size: 14px; vertical-align: top; }
th { background: #f1f5f9; }
.endpoint { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 18px; margin: 16px 0; }
.endpoint-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.method { font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px; color: #fff; }
.method.get { background: #2563eb; } .method.post { background: #059669; } .method.patch { background: #d97706; } .method.delete { background: #dc2626; }
.badge.danger { background: #fee2e2; color: #b91c1c; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.missing { color: #b91c1c; font-size: 14px; }
.callout.warning { background: #fffbeb; border: 1px solid #f59e0b; color: #92400e; padding: 10px 14px; border-radius: 10px; }
.stale-banner { background: #fffbeb; border: 1px solid #f59e0b; color: #92400e; padding: 10px 14px; border-radius: 10px; margin-bottom: 18px; font-weight: 600; }
.results { display: grid; gap: 10px; margin-top: 18px; }
.result { display: grid; gap: 4px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px 14px; color: inherit; }
.result span { color: #64748b; font-size: 13px; }
input[type="search"] { width: 100%; max-width: 520px; padding: 11px 12px; border: 1px solid #cbd5e1; border-radius: 9px; font: inherit; }
.footer { margin-left: 210px; padding: 24px 40px; color: #64748b; font-size: 13px; border-top: 1px solid #e2e8f0; }
@media (max-width: 900px) { .sidebar { position: static; width: auto; border-right: 0; border-bottom: 1px solid #e2e8f0; } .content, .footer { margin-left: 0; padding-left: 20px; padding-right: 20px; } }
