/* 文档中心：目录页与详情页 */

.doc-page {
    max-width: 980px;
    margin: 0 auto;
}

.doc-hero,
.doc-article {
    position: relative;
    overflow: hidden;
    border: 1px solid #e3ebf5;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 18px 48px rgba(28, 61, 109, 0.08);
}

.doc-hero {
    padding: 36px 36px 30px;
    margin-bottom: 28px;
}

.doc-hero::after,
.doc-article::after {
    content: "";
    position: absolute;
    inset: auto -60px -120px auto;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(0, 123, 252, 0.14) 0%, rgba(0, 123, 252, 0) 72%);
    pointer-events: none;
}

.doc-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: #eaf3ff;
    color: #0d63ce;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.doc-hero-title,
.doc-article-title {
    margin: 0;
    color: #1f2a3d;
    line-height: 1.2;
    font-weight: 700;
}

.doc-hero-title {
    font-size: 38px;
}

.doc-hero-summary {
    max-width: 720px;
    margin: 14px 0 0;
    color: #4d5b70;
    font-size: 17px;
    line-height: 1.8;
    font-weight: 400;
}

.doc-index-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.doc-index-card {
    display: block;
    height: 100%;
    padding: 22px 22px 20px;
    border: 1px solid #dbe6f4;
    border-radius: 16px;
    background: #ffffff;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.doc-index-card:hover,
.doc-index-card:focus {
    transform: translateY(-2px);
    border-color: #96c2ff;
    box-shadow: 0 14px 32px rgba(0, 84, 184, 0.12);
    text-decoration: none;
}

.doc-index-card-title {
    display: block;
    margin: 0 0 10px;
    color: #1f2a3d;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 700;
}

.doc-index-card-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0d63ce;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
}

.doc-index-card-meta::after {
    content: "->";
    font-size: 13px;
}

.doc-article {
    padding: 32px 36px 34px;
}

.doc-backlink {
    display: inline-flex;
    align-items: center;
    margin-bottom: 18px;
    color: #0d63ce;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.doc-backlink:hover,
.doc-backlink:focus {
    color: #094eaa;
    text-decoration: none;
}

.doc-backlink::before {
    content: "<";
    margin-right: 8px;
    font-size: 13px;
}

.doc-header {
    position: relative;
    z-index: 1;
    margin-bottom: 22px;
}

.doc-content {
    position: relative;
    z-index: 1;
}

.doc-content p,
.doc-content li {
    font-size: 16px;
    line-height: 1.95;
    font-weight: 400;
}

.doc-content p {
    margin-bottom: 18px;
}

.doc-content h2,
.doc-content h3 {
    margin-top: 30px;
    margin-bottom: 14px;
    color: #1f2a3d;
    line-height: 1.45;
    font-weight: 700;
}

.doc-content h2 {
    font-size: 26px;
}

.doc-content h3 {
    font-size: 20px;
}

.doc-content a {
    color: #0d63ce;
    text-decoration: none;
    border-bottom: 1px solid rgba(13, 99, 206, 0.22);
}

.doc-content a:hover,
.doc-content a:focus {
    color: #094eaa;
    border-bottom-color: rgba(9, 78, 170, 0.42);
    text-decoration: none;
}

.doc-image {
    margin: 18px 0 26px;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.doc-image img {
    display: inline-block;
    max-width: 100%;
    height: auto;
    border: 1px solid #d8e4f0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(35, 64, 104, 0.12);
}

.doc-divider {
    margin: 34px 0 30px;
    border: 0;
    border-top: 1px solid #d8e4f0;
}

.doc-article-footer {
    position: relative;
    z-index: 1;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #d8e4f0;
}

.doc-article-footer .doc-backlink {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .doc-hero,
    .doc-article {
        border-radius: 14px;
    }

    .doc-hero,
    .doc-article {
        padding-left: 20px;
        padding-right: 20px;
    }

    .doc-hero {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .doc-article {
        padding-top: 22px;
        padding-bottom: 24px;
    }

    .doc-hero-title,
    .doc-article-title {
        font-size: 28px;
    }

    .doc-hero-summary {
        font-size: 15px;
    }

    .doc-index-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .doc-index-card {
        padding: 18px;
    }

    .doc-index-card-title {
        font-size: 18px;
    }

    .doc-content h2 {
        font-size: 22px;
    }

    .doc-content h3 {
        font-size: 18px;
    }

    .doc-content p,
    .doc-content li {
        font-size: 15px;
        line-height: 1.85;
    }
}
