.docs-main {
    padding: 100px 0 60px;
    background: #f8fafc;
}

.docs-breadcrumb {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 1.5rem;
}

.docs-breadcrumb a {
    color: #005AAC;
    text-decoration: none;
}

.docs-breadcrumb a:hover {
    text-decoration: underline;
}

.docs-header {
    margin-bottom: 3rem;
}

.docs-header h1 {
    font-size: 2rem;
    color: #2d3748;
    margin-bottom: 1rem;
}

.docs-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4a5568;
    max-width: none;
    width: 100%;
}

.docs-main section {
    margin-bottom: 3rem;
}

.docs-main h2 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #005AAC;
}

.docs-main h3 {
    font-size: 1.15rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.docs-steps {
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 1rem;
    padding-left: 1.25rem;
}

.docs-code {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.25rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0 1.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.docs-code-block {
    position: relative;
    margin: 1rem 0 1.5rem;
}

.docs-code-block > .docs-code {
    margin: 0;
    padding-top: 2.75rem;
}

.docs-code-copy {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    z-index: 1;
    padding: 0.28rem 0.65rem;
    border: 1px solid rgba(226, 232, 240, 0.35);
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.72);
    color: #e2e8f0;
    font-size: 0.75rem;
    line-height: 1.4;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.docs-code-copy:hover {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(226, 232, 240, 0.55);
}

.docs-code-copy:focus-visible {
    outline: 2px solid #63b3ed;
    outline-offset: 2px;
}

.docs-code-copy.is-copied {
    background: #276749;
    border-color: #48bb78;
    color: #f0fff4;
}

.docs-code-copy.is-failed {
    background: #742a2a;
    border-color: #fc8181;
    color: #fff5f5;
}

.docs-code code {
    font-family: 'Consolas', 'Monaco', monospace;
    white-space: pre-wrap;
}

.docs-api-table {
    display: grid;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.docs-api-table article {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #005AAC;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.docs-api-table p {
    color: #718096;
    line-height: 1.6;
    margin: 0;
}

.docs-cta {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
}

.docs-cta .btn {
    margin: 0.25rem;
}

.docs-cta h2 {
    border: none;
    padding: 0;
}

.docs-topics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin: 1.5rem 0 2rem;
}

.docs-topic-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.docs-topic-card--hot {
    border-color: #feb2b2;
    background: linear-gradient(180deg, #fffaf8 0%, #fff 40%);
}

.docs-topic-card--hot:hover {
    border-color: #e53e3e;
    box-shadow: 0 4px 16px rgba(229, 62, 62, 0.12);
}

.docs-topic-hot-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #e53e3e 0%, #f56500 100%);
    color: #fff;
    padding: 0.3rem 0.65rem;
    border-radius: 0 12px 0 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.docs-topic-card:hover {
    border-color: #005AAC;
    box-shadow: 0 4px 16px rgba(0, 90, 172, 0.1);
}

.docs-topic-card h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #2d3748;
}

.docs-topic-card p {
    margin: 0;
    color: #718096;
    line-height: 1.6;
    font-size: 0.95rem;
    flex: 1;
}

.docs-topic-card a {
    color: #005AAC;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

.docs-topic-card-link {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    text-decoration: none;
    color: inherit;
    min-height: 100%;
}

.docs-topic-card-link:hover h3 {
    color: #005AAC;
}

.docs-topic-readmore {
    color: #005AAC;
    font-weight: 600;
    font-size: 0.9rem;
}

.docs-topic-card-link:hover .docs-topic-readmore {
    text-decoration: underline;
}

.docs-topics-subtitle {
    font-size: 1.1rem;
    color: #4a5568;
    margin: 0 0 1rem;
    font-weight: 600;
    border: none;
    padding: 0;
}

.docs-topics-subtitle--cases {
    margin-top: 1.75rem;
}

.docs-topics-nav-sentinel {
    height: 1px;
    margin: 0;
    pointer-events: none;
    visibility: hidden;
}

.docs-topics-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.65rem;
    margin: 0 0 1.75rem;
    padding: 0.65rem 0.85rem;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    position: sticky;
    top: 64px;
    z-index: 20;
    box-shadow: none;
    transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.docs-topics-nav.is-stuck {
    background: rgba(255, 255, 255, 0.94);
    border-color: #c3daf0;
    box-shadow:
        0 1px 2px rgba(0, 90, 172, 0.06),
        0 8px 20px rgba(0, 45, 90, 0.1),
        0 16px 40px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.docs-topics-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #005AAC;
    background: #fff;
    border: 1px solid #cbd5e0;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.docs-topics-nav-badge {
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ebf8ff 0%, #e6fffa 100%);
    color: #2b6cb0;
    border: 1px solid #90cdf4;
    letter-spacing: 0.06em;
    line-height: 1.3;
    flex-shrink: 0;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 90, 172, 0.1);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

/* 进阶配置：锚点按钮独立配色（技术向，区别于默认蓝） */
.docs-topics-nav-link--tech {
    color: #0f766e;
    background: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 55%, #f0f9ff 100%);
    border-color: #2dd4bf;
    box-shadow: 0 1px 4px rgba(13, 148, 136, 0.14);
}

.docs-topics-nav-link--tech:hover {
    background: linear-gradient(135deg, #ccfbf1 0%, #cffafe 100%);
    border-color: #0d9488;
    color: #115e59;
}

.docs-topics-nav-link--tech .docs-topics-nav-badge {
    background: linear-gradient(135deg, #0d9488 0%, #0891b2 100%);
    color: #fff;
    border-color: #0f766e;
    box-shadow: 0 1px 4px rgba(13, 148, 136, 0.35);
}

.docs-topics-nav-link--tech:hover .docs-topics-nav-badge {
    background: linear-gradient(135deg, #0f766e 0%, #0e7490 100%);
    border-color: #134e4a;
    color: #fff;
    box-shadow: 0 2px 6px rgba(13, 148, 136, 0.28);
}

.docs-topics-group--tech {
    padding: 1.15rem 1.15rem 0.35rem;
    margin-bottom: 2.5rem;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(240, 253, 250, 0.72) 0%, rgba(240, 253, 250, 0) 88%);
    border-left: 4px solid #14b8a6;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.docs-topics-subtitle-row--tech {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem 0.65rem;
    margin-bottom: 1rem;
}

.docs-topics-subtitle-row--tech .docs-topics-subtitle {
    margin-bottom: 0;
}

.docs-topics-section-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #0d9488 0%, #0891b2 100%);
    color: #fff;
    border: 1px solid #0f766e;
    letter-spacing: 0.06em;
    line-height: 1.3;
    box-shadow: 0 1px 4px rgba(13, 148, 136, 0.28);
}

.docs-topics-optional-block {
    margin-top: 0.25rem;
    padding-top: 1.35rem;
    border-top: 1px dashed #cbd5e1;
}

.docs-topics-subtitle--optional {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.docs-topics-optional-note {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-bottom: 0.75rem;
}

.docs-topics-grid--optional {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    gap: 1rem;
}

.docs-topic-card--optional {
    padding: 1rem 1.15rem;
    background: #f8fafc;
    border-color: #e2e8f0;
    border-style: dashed;
}

.docs-topic-card--optional:hover {
    border-color: #94a3b8;
    box-shadow: none;
    background: #f1f5f9;
}

.docs-topic-card--optional h3 {
    font-size: 1rem;
    color: #475569;
}

.docs-topic-card--optional p {
    font-size: 0.875rem;
    color: #94a3b8;
}

.docs-topic-optional-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #e2e8f0;
    color: #64748b;
    padding: 0.28rem 0.6rem;
    border-radius: 0 12px 0 12px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.docs-topics-nav a:not(.docs-topics-nav-link--tech):hover {
    background: #ebf8ff;
    border-color: #005AAC;
}

.docs-topics-group {
    margin-bottom: 2.25rem;
    scroll-margin-top: 7rem;
}

.docs-topics-cases {
    margin-top: 0.5rem;
}

.docs-api-framework-hint {
    margin-top: 1rem;
    color: #4a5568;
    font-size: 0.95rem;
}

.docs-demos-feature {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.35rem 1.6rem;
    margin: 0;
    background: linear-gradient(135deg, #005AAC 0%, #004080 55%, #003366 100%);
    border-radius: 14px;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(0, 90, 172, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.docs-demos-feature:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0, 90, 172, 0.34);
    color: #fff;
}

.docs-demos-feature-body {
    flex: 1;
    min-width: 0;
}

.docs-demos-feature-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 0.15rem 0.55rem;
    border-radius: 100px;
    margin-bottom: 0.45rem;
}

.docs-demos-feature h3 {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
    color: #fff;
    border: none;
    padding: 0;
}

.docs-demos-feature p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
    max-width: 640px;
}

.btn-demos-feature {
    flex-shrink: 0;
    background: #fff !important;
    color: #005AAC !important;
    font-weight: 700;
    border: none;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    pointer-events: none;
}

.docs-related {
    color: #718096;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.docs-related a {
    color: #005AAC;
}

.deploy-cases-section {
    margin-bottom: 3rem;
}

.deploy-cases-note {
    color: #718096;
    font-size: 0.95rem;
    margin: -0.5rem 0 1.5rem;
    max-width: none;
    width: 100%;
}

.deploy-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.deploy-case-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.deploy-case-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #005AAC;
    background: #eff6ff;
    padding: 0.2rem 0.65rem;
    border-radius: 100px;
    margin-bottom: 0.75rem;
}

.deploy-case-card h3 {
    font-size: 1.1rem;
    color: #2d3748;
    margin: 0 0 0.5rem;
    line-height: 1.35;
}

.deploy-case-summary {
    color: #4a5568;
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0 0 0.75rem;
}

.deploy-case-card ul {
    margin: 0;
    padding-left: 1.1rem;
    color: #718096;
    font-size: 0.88rem;
    line-height: 1.65;
}

.deploy-case-card li {
    margin-bottom: 0.35rem;
}

.deploy-case-link {
    display: inline-block;
    margin-top: 0.85rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #005AAC;
    text-decoration: none;
}

.deploy-case-link:hover {
    text-decoration: underline;
}

.deploy-case-link:hover {
    text-decoration: underline;
}

.docs-callout {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin: 1rem 0 1.5rem;
    color: #1e40af;
    font-size: 0.92rem;
    line-height: 1.65;
}

.docs-callout code {
    background: rgba(255, 255, 255, 0.7);
    padding: 0.1em 0.35em;
    border-radius: 4px;
}

.docs-paperformat-defaults ul {
    margin: 0.65rem 0 0;
    padding-left: 1.25rem;
}

.docs-paperformat-defaults li {
    margin: 0.35rem 0;
}

.docs-paperformat-defaults li:last-child {
    margin-bottom: 0;
}

.docs-kv-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem;
    font-size: 0.9rem;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.docs-kv-table th,
.docs-kv-table td {
    border: 1px solid #e2e8f0;
    padding: 0.65rem 0.85rem;
    text-align: left;
    vertical-align: top;
}

.docs-kv-table th {
    background: #f8fafc;
    color: #2d3748;
    font-weight: 600;
    width: 28%;
}

.docs-kv-table td code {
    font-size: 0.85em;
}

.docs-compare-table th:nth-child(2),
.docs-compare-table th:nth-child(3),
.docs-compare-table td:nth-child(2),
.docs-compare-table td:nth-child(3) {
    width: 22%;
}

.docs-compare-table td:nth-child(4) {
    color: #92400e;
    background: #fffbeb;
}

.docs-callout-warn {
    background: #fffbeb;
    border-color: #fcd34d;
    color: #92400e;
}

.docs-flow-steps {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem;
    counter-reset: flow;
}

.docs-flow-steps li {
    position: relative;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    margin-bottom: 0.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    line-height: 1.6;
    color: #4a5568;
    font-size: 0.92rem;
}

.docs-flow-steps li::before {
    counter-increment: flow;
    content: counter(flow);
    position: absolute;
    left: 0.85rem;
    top: 0.75rem;
    width: 1.5rem;
    height: 1.5rem;
    line-height: 1.5rem;
    text-align: center;
    background: #005AAC;
    color: #fff;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
}

/* 文档专题 · 方案 Tab */
.docs-solution-tabs {
    margin-top: 0.5rem;
}

.docs-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.25rem;
}

.docs-tab-btn {
    appearance: none;
    border: 1px solid #cbd5e0;
    border-radius: 8px 8px 0 0;
    background: #f7fafc;
    color: #4a5568;
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: -1px;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.docs-tab-btn:hover {
    background: #edf2f7;
    color: #2d3748;
}

.docs-tab-btn.is-active,
.docs-tab-btn[aria-selected="true"] {
    background: #fff;
    color: #005AAC;
    border-color: #005AAC;
    border-bottom-color: #fff;
    font-weight: 600;
}

.docs-tabs-panels {
    border: 1px solid #e2e8f0;
    border-radius: 0 10px 10px 10px;
    padding: 1rem 1.15rem 1.25rem;
    background: #fff;
}

.docs-tab-panel[hidden] {
    display: none !important;
}

.docs-tab-panel h3 {
    margin: 1rem 0 0.5rem;
    font-size: 1rem;
}

.docs-tab-panel h3:first-child {
    margin-top: 0;
}

.docs-subsection {
    margin-top: 1.5rem;
}

.docs-subsection h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .docs-main {
        padding: 90px 0 40px;
    }

    .docs-header h1 {
        font-size: 1.5rem;
    }

    .docs-intro {
        font-size: 1rem;
    }

    .docs-code {
        font-size: 0.8rem;
        padding: 1rem;
        -webkit-overflow-scrolling: touch;
    }

    .docs-api-table article {
        padding: 1.25rem;
    }

    .docs-cta .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0 !important;
    }

    .docs-breadcrumb {
        font-size: 0.85rem;
        word-break: break-all;
    }

    .docs-topics-grid,
    .deploy-cases-grid {
        grid-template-columns: 1fr;
    }

    .docs-demos-feature {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }

    .btn-demos-feature {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .docs-main h2 {
        font-size: 1.25rem;
    }

    .docs-header h1 {
        font-size: 1.35rem;
    }
}

.docs-quick-paths {
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
    line-height: 1.6;
}
.docs-quick-paths a {
    color: var(--primary-color, #2563eb);
    text-decoration: none;
}
.docs-quick-paths a:hover {
    text-decoration: underline;
}
