.article-page {
    width: min(var(--container, 1220px), calc(100% - 34px));
    margin: 0 auto;
    display: grid;
    gap: 18px;
}

.folio-header {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 18px;
}

.folio-cover {
    width: 100%;
    height: 336px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(194, 175, 141, 0.7);
    box-shadow: 0 14px 24px rgba(82, 55, 20, 0.12);
}

.folio-body {
    min-width: 0;
}

.folio-title {
    margin: 0;
    font-size: clamp(30px, 4.2vw, 42px);
    line-height: 1.18;
    font-family: 'Noto Serif SC', serif;
}

.folio-meta {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #6b6357;
    font-size: 14px;
}

.folio-meta a {
    color: #0b5f51;
}

.folio-tags {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.folio-tags a {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(15, 122, 103, 0.3);
    background: rgba(15, 122, 103, 0.08);
    color: #0b5f51;
    font-size: 13px;
}

.folio-stats {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.stat-item {
    border-radius: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(194, 175, 141, 0.75);
    background: rgba(255, 255, 255, 0.74);
}

.stat-item strong {
    display: block;
    font-family: 'Noto Serif SC', serif;
    font-size: 20px;
}

.stat-item span {
    color: #6f6658;
    font-size: 12px;
}

.folio-intro {
    margin: 14px 0 0;
    color: #534d42;
    line-height: 1.9;
}

.folio-actions {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-read,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    height: 40px;
    border-radius: 10px;
    font-size: 14px;
}

.btn-read {
    color: #fff;
    background: linear-gradient(135deg, #0f7a67, #0b5f51);
}

.btn-outline {
    border: 1px solid rgba(194, 175, 141, 0.9);
    background: rgba(255, 255, 255, 0.9);
}

.excerpt-content {
    line-height: 1.95;
    color: #38342d;
}

.excerpt-content p {
    margin: 0 0 1em;
}

.excerpt-content img,
.excerpt-content video,
.excerpt-content iframe {
    max-width: 100%;
    height: auto;
}

.excerpt-footer {
    margin-top: 14px;
    display: flex;
}

.excerpt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, #d27b35, #bc6628);
    font-size: 13px;
}

.chapter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.chapter-cell {
    min-width: 0;
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid rgba(194, 175, 141, 0.75);
    background: rgba(255, 255, 255, 0.75);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
}

.chapter-cell:hover {
    border-color: rgba(15, 122, 103, 0.5);
    color: #0b5f51;
}

/* ========== Recommend Grid ========== */
.recommend-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.recommend-item {
    display: block;
    text-align: center;
    text-decoration: none;
    color: var(--text-main);
    transition: transform 0.2s;
}

.recommend-item:hover {
    transform: translateY(-3px);
}

.recommend-item img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.recommend-name {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 860px) {
    .folio-header {
        grid-template-columns: 1fr;
    }

    .folio-cover {
        width: min(240px, 62vw);
        height: auto;
        aspect-ratio: 3 / 4;
    }

    .chapter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .recommend-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .article-page {
        width: calc(100% - 24px);
    }

    .folio-stats {
        grid-template-columns: 1fr;
    }
}
