/* 文章中心：列表页与详情页 */

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

.article-hero,
.article-detail,
.article-empty-state {
    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);
}

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

.article-hero::after,
.article-detail::after,
.article-empty-state::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;
}

.article-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;
}

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

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

.article-hero-summary,
.article-detail-summary,
.article-empty-text {
    color: #4d5b70;
    font-size: 17px;
    line-height: 1.8;
    font-weight: 400;
}

.article-hero-summary {
    max-width: 760px;
    margin: 14px 0 0;
}

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

.article-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;
}

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

.article-index-card-date,
.article-detail-date {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
    color: #6a7a90;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 600;
}

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

.article-index-card-summary {
    display: block;
    margin-bottom: 16px;
    color: #4d5b70;
    font-size: 15px;
    line-height: 1.8;
}

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

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

.article-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 26px;
    padding: 18px 20px;
    border: 1px solid #dbe6f4;
    border-radius: 16px;
    background: #ffffff;
}

.article-pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #eaf3ff;
    color: #0d63ce;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.article-pagination-link:hover,
.article-pagination-link:focus {
    color: #094eaa;
    text-decoration: none;
}

.article-pagination-link--disabled {
    background: #f1f4f8;
    color: #8a97aa;
}

.article-pagination-status {
    color: #4d5b70;
    font-size: 14px;
    font-weight: 600;
}

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

.article-detail-header,
.article-detail-content,
.article-detail-footer {
    position: relative;
    z-index: 1;
}

.article-detail-header {
    margin-bottom: 22px;
}

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

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

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

.article-detail-title {
    font-size: 38px;
    margin-bottom: 14px;
}

.article-detail-summary {
    margin: 0;
    max-width: 760px;
}

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

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

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

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

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

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

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

.article-detail-pre {
    padding: 18px 20px;
    border: 1px solid #d8e4f0;
    border-radius: 14px;
    background: #ffffff;
    color: #1f2a3d;
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-word;
}

.article-detail-footer {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #d8e4f0;
}

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

.article-empty-state {
    padding: 28px 30px;
}

.article-empty-title {
    font-size: 28px;
    margin-bottom: 12px;
}

.article-empty-text {
    margin: 0;
}

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

    .article-hero,
    .article-detail,
    .article-empty-state {
        padding-left: 20px;
        padding-right: 20px;
    }

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

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

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

    .article-hero-summary,
    .article-detail-summary,
    .article-empty-text {
        font-size: 15px;
    }

    .article-index-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .article-pagination {
        flex-direction: column;
        align-items: stretch;
    }

    .article-pagination-status {
        text-align: center;
    }
}
