/* 锐淏 SSO 在线接入文档 */
.docs-body { background: #fff; color: var(--text); }
.docs-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 64px;
    background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--line);
    backdrop-filter: saturate(180%) blur(16px);
}
.docs-header-inner { max-width: 1440px; height: 64px; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; gap: 14px; }
.docs-header .brand { gap: 9px; }
.docs-header .brand-mark { width: 34px; height: 34px; }
.docs-header .brand-text strong { font-size: 14px; }
.docs-header .brand-text small { font-size: 8px; letter-spacing: 2.2px; }
.docs-header-divider { width: 1px; height: 22px; background: var(--line); margin: 0 2px; }
.docs-header-title { font-size: 13px; font-weight: 650; color: var(--text-2); }
.docs-header-links { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 12px; }
.docs-header-links a { color: var(--muted); }
.docs-header-links a:hover { color: var(--navy); }
.docs-header-links .docs-login { background: var(--navy); color: #fff; padding: 7px 14px; border-radius: 8px; }
.docs-header-links .docs-login:hover { background: var(--navy-2); color: #fff; }
.docs-menu-button { display: none; margin-left: auto; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 7px 11px; font-size: 12px; color: var(--text-2); }

.docs-shell { display: grid; grid-template-columns: 258px minmax(0, 1fr); padding-top: 64px; min-height: 100vh; }
.docs-sidebar { border-right: 1px solid var(--line); background: #fbfcfe; }
.docs-sidebar-inner { position: sticky; top: 64px; max-height: calc(100vh - 64px); overflow-y: auto; padding: 24px 18px 30px; }
.docs-version { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; color: var(--muted); background: #fff; border: 1px solid var(--line); padding: 4px 8px; border-radius: 999px; margin: 0 8px 18px; }
.docs-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }
.docs-nav { display: flex; flex-direction: column; gap: 1px; }
.docs-nav > span { font-size: 9px; letter-spacing: 1.4px; font-weight: 800; text-transform: uppercase; color: var(--muted-2); padding: 16px 10px 6px; }
.docs-nav a { font-size: 12px; color: var(--text-2); padding: 6px 10px; border-radius: 7px; border-left: 2px solid transparent; }
.docs-nav a:hover { background: #fff; color: var(--navy); }
.docs-nav a.is-active { color: var(--teal-dark); background: var(--mint); border-left-color: var(--teal); font-weight: 650; }
.docs-sidebar-card { margin: 24px 8px 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.docs-sidebar-card strong { font-size: 12px; color: var(--navy); }
.docs-sidebar-card p { font-size: 10.5px; color: var(--muted); line-height: 1.6; margin: 4px 0 8px; }
.docs-sidebar-card a { display: block; font-size: 10.5px; color: var(--teal-dark); padding: 1px 0; }
.docs-main { min-width: 0; background: #fff; }
.docs-content { max-width: 940px; margin: 0 auto; padding: 38px 46px 60px; }
.docs-hero { background: radial-gradient(100% 140% at 0% 0%, #123c5a, #0b1f3a 62%, #071426); color: #fff; border-radius: 20px; padding: 38px 38px 34px; margin-bottom: 12px; position: relative; overflow: hidden; }
.docs-hero::after { content: ""; position: absolute; right: -100px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(45,212,191,.22), transparent 66%); }
.docs-hero > * { position: relative; z-index: 1; }
.docs-eyebrow { font-size: 9.5px; letter-spacing: 2px; font-weight: 800; color: var(--teal-2); }
.docs-hero h1 { font-size: 38px; letter-spacing: -1px; line-height: 1.2; margin: 10px 0 12px; }
.docs-hero p { font-size: 13px; line-height: 1.85; color: rgba(255,255,255,.62); max-width: 680px; }
.docs-hero-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.docs-hero-badges span { font-size: 9.5px; color: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); border-radius: 999px; padding: 3px 8px; }
.docs-hero-actions { display: flex; gap: 9px; margin-top: 24px; }
.docs-hero .btn-primary { box-shadow: 0 10px 28px rgba(20,184,166,.3); }
.docs-hero .btn-ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }
.docs-hero .btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
.docs-section { padding: 34px 0 6px; border-bottom: 1px solid var(--line-2); }
.docs-section:last-of-type { border-bottom: 0; }
.docs-section h2 { font-size: 24px; letter-spacing: -.5px; color: var(--navy); margin-bottom: 12px; }
.docs-section h3 { font-size: 15px; color: var(--text-2); margin: 22px 0 8px; }
.docs-section p, .docs-section li { font-size: 13px; line-height: 1.9; color: #4b5b74; }
.docs-section p { margin-bottom: 10px; }
.docs-section a { text-decoration: underline; text-underline-offset: 2px; }
.docs-section > code, .docs-section p code, .docs-section li code, .docs-table code { background: var(--line-2); color: var(--text-2); padding: 1px 5px; border-radius: 4px; font-size: .9em; }
.docs-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0 18px; }
.docs-steps > div { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fbfcfe; }
.docs-steps span { font-size: 9px; color: var(--teal-dark); font-weight: 800; letter-spacing: 1px; }
.docs-steps strong { display: block; font-size: 12px; color: var(--navy); margin: 4px 0; }
.docs-steps p { font-size: 10.5px; line-height: 1.65; color: var(--muted); margin: 0; }
.docs-callout { background: var(--blue-bg); border: 1px solid #d7e8fb; border-left: 3px solid var(--blue); border-radius: 8px; padding: 12px 14px; font-size: 12px; line-height: 1.75; color: #17517e; margin: 14px 0; }
.docs-callout-warn { background: var(--amber-bg); border-color: #f2dfb8; border-left-color: var(--amber); color: #8a3d08; }
.docs-code { margin: 14px 0 18px; border-radius: 11px; overflow: hidden; background: #0d1b2e; border: 1px solid #1c304a; }
.docs-code-head { display: flex; justify-content: space-between; align-items: center; background: #10243b; padding: 7px 12px; border-bottom: 1px solid #1c304a; }
.docs-code-head span { font-size: 9.5px; color: #7f9ab8; letter-spacing: .7px; text-transform: uppercase; font-family: var(--mono); }
.docs-code-head button { border: 0; background: rgba(255,255,255,.08); color: #b8ccdf; font-size: 9.5px; border-radius: 4px; padding: 3px 7px; cursor: pointer; }
.docs-code-head button:hover { background: rgba(255,255,255,.15); color: #fff; }
.docs-code pre { margin: 0; padding: 15px 17px; overflow-x: auto; color: #d6e4f4; font-size: 11.5px; line-height: 1.75; }
.docs-code pre code { background: transparent; color: inherit; padding: 0; font-size: inherit; }
.docs-table { width: 100%; border-collapse: collapse; margin: 14px 0 18px; font-size: 12px; }
.docs-table th { text-align: left; font-size: 10px; letter-spacing: .4px; text-transform: uppercase; color: var(--muted-2); background: #fafcff; border-bottom: 1px solid var(--line); padding: 8px 10px; }
.docs-table td { border-bottom: 1px solid var(--line-2); padding: 9px 10px; color: #4b5b74; vertical-align: top; line-height: 1.7; }
.docs-table tr:last-child td { border-bottom: 0; }
.docs-list { padding-left: 20px; margin: 8px 0 12px; }
.docs-list li { margin-bottom: 4px; }
.docs-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.docs-security-item { border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; background: #fbfcfe; }
.docs-security-item strong { font-size: 12px; color: var(--navy); }
.docs-security-item p { font-size: 10.5px; line-height: 1.65; color: var(--muted); margin: 4px 0 0; }
.docs-faq { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; background: #fff; }
.docs-faq summary { cursor: pointer; padding: 12px 14px; font-size: 12.5px; font-weight: 650; color: var(--text-2); }
.docs-faq[open] summary { border-bottom: 1px solid var(--line-2); }
.docs-faq p { padding: 10px 14px 12px; margin: 0; font-size: 12px; color: var(--muted); }
.docs-checklist { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.docs-checklist label { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: #4b5b74; line-height: 1.6; cursor: pointer; }
.docs-checklist input { margin-top: 3px; accent-color: var(--teal); }
.docs-footer { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 20px; text-align: center; }
.docs-footer p { font-size: 10.5px; color: var(--muted-2); line-height: 1.8; margin: 2px 0; }
.docs-footer a { color: var(--muted); text-decoration: none; }
.docs-footer a:hover { color: var(--teal-dark); }
.docs-footer img { display: inline-block; vertical-align: -2px; margin-right: 3px; }
.docs-backdrop { display: none; }
.docs-print-cover { display: none; }

@media (max-width: 980px) {
    .docs-shell { grid-template-columns: 1fr; }
    .docs-sidebar { position: fixed; top: 64px; bottom: 0; left: 0; width: 270px; z-index: 90; transform: translateX(-100%); transition: transform .2s ease; box-shadow: 12px 0 40px rgba(11,31,58,.12); }
    .docs-sidebar.is-open { transform: translateX(0); }
    .docs-sidebar-inner { max-height: none; height: 100%; }
    .docs-menu-button { display: inline-flex; }
    .docs-header-title, .docs-header-divider { display: none; }
    .docs-backdrop.is-open { display: block; position: fixed; inset: 64px 0 0; background: rgba(11,31,58,.35); z-index: 85; }
}
@media (max-width: 720px) {
    .docs-header-inner { padding: 0 16px; }
    .docs-header-links a:not(.docs-login) { display: none; }
    .docs-content { padding: 22px 18px 40px; }
    .docs-hero { padding: 28px 22px; border-radius: 16px; }
    .docs-hero h1 { font-size: 30px; }
    .docs-hero p { font-size: 12px; }
    .docs-steps { grid-template-columns: 1fr 1fr; }
    .docs-grid-2 { grid-template-columns: 1fr; }
    .docs-section h2 { font-size: 21px; }
    .docs-table { display: block; overflow-x: auto; white-space: nowrap; }
    .docs-code pre { font-size: 10.5px; }
}

@media print {
    @page { margin: 14mm 12mm; }
    .docs-header, .docs-sidebar, .docs-menu-button, .docs-backdrop, .skip-link { display: none !important; }
    .docs-shell { display: block; padding-top: 0; }
    .docs-main, .docs-content { max-width: none; width: 100%; margin: 0; padding: 0; }
    .docs-body { background: #fff; }
    .docs-print-cover {
        display: flex; flex-direction: column; justify-content: center; min-height: 245mm;
        padding: 12mm 8mm; page-break-after: always; border-bottom: 0;
    }
    .docs-print-cover img { border-radius: 16px; margin-bottom: 26px; }
    .docs-print-kicker { font-size: 9px; letter-spacing: 2.4px; font-weight: 800; color: #0b6b5e; }
    .docs-print-cover h1 { font-size: 38px; line-height: 1.3; letter-spacing: -1px; color: #0b1f3a; margin: 16px 0 10px; }
    .docs-print-cover > p { font-size: 13px; color: #6b7890; margin-bottom: 34px; }
    .docs-print-cover dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 30px; margin: 0 0 42px; }
    .docs-print-cover dl div { border-top: 1px solid #e1e8f2; padding-top: 8px; }
    .docs-print-cover dt { font-size: 9px; letter-spacing: .8px; color: #8b97ab; }
    .docs-print-cover dd { font-size: 12px; color: #34445f; margin: 3px 0 0; }
    .docs-print-company { display: flex; flex-direction: column; gap: 4px; border-top: 2px solid #0b1f3a; padding-top: 14px; }
    .docs-print-company strong { font-size: 13px; color: #0b1f3a; }
    .docs-print-company span { font-size: 10px; color: #6b7890; }
    .docs-hero { border-radius: 10px; padding: 22px; margin: 0 0 10px; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
    .docs-hero h1 { font-size: 28px; }
    .docs-section { padding: 20px 0 2px; }
    .docs-section h2 { font-size: 20px; }
    .docs-code, .docs-table, .docs-callout, .docs-steps > div, .docs-faq { break-inside: avoid; page-break-inside: avoid; }
    .docs-code pre { font-size: 9.5px; }
    .docs-footer { break-before: avoid; }
    a { color: #0b6b5e !important; }
}
