/* 文档站独立布局：使用本地 Element UI 图标，保持长文与接口表格可读。 */
:root {
    --docs-ink: #243449;
    --docs-muted: #708096;
    --docs-accent: #127f76;
    --docs-line: #e6ecf1;
    --docs-header: 76px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.docs-page {
    margin: 0;
    color: var(--docs-ink);
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 1.75;
}
.docs-page a { color: inherit; text-decoration: none; }
.docs-page button, .docs-page input { font: inherit; }
.docs-page [hidden] { display: none !important; }
.docs-page :focus-visible { outline: 3px solid #68c8bc; outline-offset: 3px; }
.docs-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 32px;
    min-height: var(--docs-header);
    padding: 0 32px;
    background: #fff;
    border-bottom: 1px solid var(--docs-line);
}
.docs-brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.docs-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: #fff;
    background: var(--docs-accent);
    font-size: 21px;
    font-weight: 800;
}
.docs-brand strong { font-size: 20px; letter-spacing: -.5px; }
.docs-brand-label { margin-left: 4px; color: var(--docs-muted); font-size: 12px; }
.docs-tabs { display: flex; align-self: stretch; gap: 26px; margin-left: 26px; }
.docs-tabs a { display: flex; align-items: center; border-bottom: 3px solid transparent; padding-top: 3px; font-weight: 600; }
.docs-tabs a.is-active { color: var(--docs-accent); border-bottom-color: var(--docs-accent); }
.docs-header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.docs-console { font-size: 13px; color: var(--docs-muted) !important; white-space: nowrap; }
.docs-menu-button { display: none; }
.docs-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr) 190px; max-width: 1540px; margin: 0 auto; }
.docs-sidebar {
    position: sticky;
    top: var(--docs-header);
    height: calc(100vh - var(--docs-header));
    overflow-y: auto;
    padding: 30px 20px 30px 24px;
    border-right: 1px solid var(--docs-line);
    background: #fbfcfe;
    scrollbar-width: thin;
}
.docs-search { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid #dfe7ed; border-radius: 8px; background: #fff; color: var(--docs-muted); }
.docs-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 12px; color: var(--docs-ink); }
.docs-search:focus-within { outline: 2px solid #68c8bc; }
.docs-nav-group { margin-top: 27px; }
.docs-nav-group h2 { margin: 0 10px 9px; font-size: 11px; letter-spacing: 1px; color: var(--docs-muted); font-weight: 600; }
.docs-nav-link { display: flex; align-items: flex-start; gap: 8px; padding: 9px 10px; margin: 3px 0; border-radius: 7px; font-size: 13px; line-height: 1.65; transition: background-color .15s, color .15s; }
.docs-nav-link:hover { background: #edf2f6; }
.docs-nav-link.is-active { color: #116d65; background: #e6f4f0; font-weight: 600; }
.docs-method-mini { margin-top: 3px; min-width: 28px; font-size: 9px; font-weight: 700; }
.docs-schema-link { display: flex; align-items: center; gap: 8px; margin-top: 32px; padding: 12px 10px; border: 1px solid var(--docs-line); border-radius: 8px; font-size: 12px; }
.docs-sidebar-note { color: var(--docs-muted); font-size: 11px; padding: 0 10px; }
.docs-empty { color: var(--docs-muted); padding: 20px 6px; font-size: 13px; }
.docs-main { min-width: 0; max-width: 100%; padding: 37px clamp(24px, 4vw, 62px) 30px; }
.docs-breadcrumb { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--docs-muted); }
.docs-article-header { padding: 28px 0 20px; border-bottom: 1px solid var(--docs-line); margin-bottom: 32px; }
.docs-eyebrow { display: inline-block; padding: 3px 9px; color: var(--docs-accent); background: #eaf7f3; border-radius: 5px; font-size: 11px; font-weight: 600; }
.docs-main h1 { margin: 13px 0 12px; font-size: clamp(27px, 3vw, 38px); line-height: 1.35; letter-spacing: -.6px; overflow-wrap: anywhere; }
.docs-description { color: var(--docs-muted); margin: 0; overflow-wrap: anywhere; }
.docs-section { margin: 34px 0; scroll-margin-top: 100px; }
.docs-section h2 { margin: 0 0 16px; font-size: 21px; line-height: 1.5; }
.docs-section h2 a span { color: #b4c2cd; font-size: 16px; }
.docs-section p { margin: 12px 0; overflow-wrap: anywhere; }
.docs-section li { margin: 9px 0; padding-left: 3px; }
.docs-section ul { padding-left: 22px; }
.docs-section li::marker { color: #42a99b; }
.docs-table-wrap { margin: 18px 0; overflow-x: auto; border: 1px solid var(--docs-line); border-radius: 9px; }
.docs-table-wrap table { width: 100%; min-width: 420px; border-collapse: collapse; font-size: 13px; }
.docs-table-wrap th { text-align: left; padding: 11px 15px; background: #f6f8fa; color: #57677c; font-weight: 600; }
.docs-table-wrap td { padding: 12px 15px; vertical-align: top; border-top: 1px solid var(--docs-line); overflow-wrap: anywhere; }
.docs-table-wrap td:first-child { min-width: 105px; font-weight: 500; }
.docs-code { margin: 20px 0; border: 1px solid #233849; border-radius: 10px; overflow: hidden; color: #e2edf3; background: #142534; }
.docs-code-header { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; border-bottom: 1px solid #2a3d4b; font-size: 11px; color: #aac1cf; }
.docs-code pre { overflow: auto; margin: 0; padding: 20px; tab-size: 4; }
.docs-code code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 12px; line-height: 1.85; }
.docs-copy { border: 0; border-radius: 5px; background: transparent; color: inherit; cursor: pointer; padding: 3px 7px; font-size: 11px !important; white-space: nowrap; }
.docs-copy:hover { background: #ffffff17; }
.docs-endpoint { display: flex; align-items: center; gap: 12px; padding: 15px; margin-top: 22px; border-radius: 9px; background: #f4f8fa; border: 1px solid var(--docs-line); }
.docs-endpoint code { overflow-wrap: anywhere; min-width: 0; font-size: 13px; }
.docs-endpoint .docs-copy { margin-left: auto; color: var(--docs-muted); }
.docs-method { flex-shrink: 0; font-size: 11px; font-weight: 700; }
.method-get { color: #09856f; }
.method-post { color: #bb7414; }
.method-put { color: #3d69c7; }
.method-delete { color: #c34b54; }
.docs-toc { position: sticky; top: var(--docs-header); align-self: start; max-height: calc(100vh - var(--docs-header)); overflow-y: auto; padding: 44px 18px 30px 0; font-size: 12px; }
.docs-toc h2 { font-size: 12px; margin: 0 0 16px; }
.docs-toc a { display: block; color: var(--docs-muted); border-left: 2px solid #e9edf2; padding: 7px 0 7px 14px; line-height: 1.5; }
.docs-toc a.is-active { color: var(--docs-accent); border-color: var(--docs-accent); }
.docs-toc a.docs-top { margin-top: 25px; border: 0; }
.docs-neighbors { display: flex; gap: 16px; margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--docs-line); }
.docs-neighbors a { flex: 1; border: 1px solid var(--docs-line); border-radius: 10px; padding: 14px 18px; min-width: 0; }
.docs-neighbors a:hover { border-color: #74b8ab; }
.docs-neighbors span { display: block; color: var(--docs-muted); font-size: 11px; }
.docs-neighbors strong { display: block; margin-top: 5px; font-size: 13px; font-weight: 500; }
.docs-next { text-align: right; }
.docs-footer { margin-top: 32px; font-size: 11px; color: var(--docs-muted); }
.docs-toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); padding: 10px 20px; border-radius: 8px; background: #163d35; color: #fff; z-index: 80; box-shadow: 0 4px 20px #152f3326; font-size: 13px; }
.docs-skip { position: fixed; top: -80px; left: 20px; z-index: 100; padding: 12px; background: #fff; color: var(--docs-accent) !important; }
.docs-skip:focus { top: 10px; }
#docs-content { scroll-margin-top: 90px; }
@media (max-width: 1180px) {
    .docs-layout { grid-template-columns: 240px minmax(0, 1fr); }
    .docs-toc { display: none; }
    .docs-brand-label { display: none; }
}
@media (max-width: 760px) {
    :root { --docs-header: 110px; }
    .docs-header { flex-wrap: wrap; gap: 0 16px; padding: 12px 18px 0; }
    .docs-brand strong { font-size: 18px; }
    .docs-brand .docs-mark { width: 30px; height: 30px; }
    .docs-header-actions { gap: 10px; }
    .docs-console { font-size: 12px; }
    .docs-menu-button { display: inline-block; margin: 0; }
    .docs-tabs { order: 3; width: 100%; height: 45px; margin: 8px 0 0; }
    .docs-tabs a { font-size: 13px; }
    .docs-layout { display: block; }
    .docs-sidebar { display: none; position: fixed; z-index: 60; left: 0; top: var(--docs-header); bottom: 0; width: min(310px, 88vw); height: auto; }
    .docs-menu-open .docs-sidebar { display: block; }
    .docs-overlay { position: fixed; z-index: 50; inset: var(--docs-header) 0 0; border: 0; background: #122a3b55; }
    .docs-menu-open { overflow: hidden; }
    .docs-main { padding: 25px 20px; }
    .docs-article-header { padding-top: 22px; }
    .docs-code pre { padding: 15px; }
    .docs-endpoint { gap: 8px; flex-wrap: wrap; }
    .docs-section { scroll-margin-top: 135px; }
    .docs-neighbors { flex-direction: column; }
    .docs-next { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .docs-nav-link { transition: none; }
}
@media print {
    .docs-header, .docs-sidebar, .docs-toc, .docs-neighbors, .docs-copy, .docs-toast { display: none !important; }
    .docs-layout { display: block; }
    .docs-main { padding: 0; }
    .docs-code { color: #000; background: #fff; border-color: #ddd; }
    .docs-code pre { white-space: pre-wrap; }
}
