.article-page .article-detail-card,
.article-page .article-preview-card {
    padding: 28px;
}

.book-detail-header {
    display: flex;
    gap: 26px;
}

.book-cover {
    width: 232px;
    height: 312px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(217, 171, 99, 0.26);
    box-shadow: 0 14px 24px rgba(8, 15, 30, 0.24);
    flex-shrink: 0;
}

.book-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.book-title {
    font-size: clamp(28px, 4vw, 38px);
    color: #fff6e7;
    line-height: 1.24;
    text-shadow: 0 0 16px rgba(217, 171, 99, 0.24);
}

.book-meta {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-light);
}

.book-meta .author {
    color: var(--primary);
}

.book-meta .status a {
    color: #cfe8ff;
}

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

.book-tags a {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(217, 171, 99, 0.35);
    background: rgba(217, 171, 99, 0.08);
    color: var(--primary);
    font-size: 12px;
}

.book-tags a:hover {
    color: #1a1106;
    background: var(--primary);
}

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

.data-item {
    min-height: 72px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(217, 171, 99, 0.2);
    background: rgba(61, 77, 113, 0.52);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}

.data-val {
    font-family: var(--font-serif);
    color: var(--text-main);
    font-size: 20px;
}

.data-label {
    font-size: 12px;
    color: var(--text-light);
}

.book-intro {
    margin-top: 14px;
    color: var(--text-muted);
    line-height: 1.9;
    font-size: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-actions {
    margin-top: auto;
    padding-top: 18px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 22px;
    border-radius: 999px;
    font-size: 14px;
}

.btn-primary {
    color: #1f1305;
    background: linear-gradient(140deg, #f2d4a9, #d9ab63);
    box-shadow: 0 8px 16px rgba(217, 171, 99, 0.3);
}

.btn-primary:hover {
    color: #140b02;
    transform: translateY(-1px);
}

.btn-outline {
    border: 1px solid rgba(120, 199, 255, 0.4);
    background: rgba(120, 199, 255, 0.08);
    color: #ccecff;
}

.btn-outline:hover {
    color: #fff;
    border-color: rgba(120, 199, 255, 0.75);
    background: rgba(120, 199, 255, 0.16);
}

.article-preview-content {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-muted);
}

.article-preview-content p {
    margin: 0 0 1.1em;
}

.article-preview-actions {
    margin-top: 18px;
    text-align: center;
}

.article-preview-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid rgba(217, 171, 99, 0.45);
    color: var(--primary);
    background: rgba(217, 171, 99, 0.08);
}

.article-preview-btn:hover {
    color: #1c1205;
    background: var(--primary);
}

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

.chapter-item {
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 9px;
    border: 1px solid rgba(217, 171, 99, 0.2);
    background: rgba(59, 75, 111, 0.52);
    color: var(--text-muted);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chapter-item:hover {
    border-color: rgba(217, 171, 99, 0.55);
    color: var(--primary-hover);
    transform: translateY(-1px);
}

/* ========== 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: 900px) {
    .book-detail-header {
        flex-direction: column;
        align-items: center;
    }

    .book-info {
        width: 100%;
    }

    .book-title,
    .book-meta,
    .book-tags {
        text-align: center;
        justify-content: center;
    }

    .book-data {
        grid-template-columns: 1fr;
    }

    .book-actions {
        justify-content: center;
    }

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

@media (max-width: 700px) {
    .article-page .article-detail-card,
    .article-page .article-preview-card {
        padding: 16px;
    }

    .book-cover {
        width: 190px;
        height: 254px;
    }

    .chapter-list {
        grid-template-columns: 1fr;
    }
}
