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

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

.book-cover {
    width: 220px;
    height: 293px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

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

.book-title {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-main);
    margin-bottom: 12px;
}

.book-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
    font-size: 14px;
}

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

.book-meta .status {
    color: var(--text-light);
}

.book-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.book-tags a {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: var(--primary);
    background: rgba(240, 68, 68, 0.08);
    border: 1px solid transparent;
}

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

.book-data {
    display: flex;
    gap: 40px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.data-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.data-val {
    font-size: 18px;
    font-weight: bold;
    font-family: Arial, sans-serif;
}

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

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

.book-actions {
    display: flex;
    gap: 16px;
    margin-top: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 32px;
    border-radius: 22px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border: none;
    box-shadow: 0 4px 10px rgba(240, 68, 68, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline {
    background: #fff;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: rgba(240, 68, 68, 0.05);
}

.article-preview-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-muted);
    text-align: justify;
    padding-bottom: 10px;
}

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

.article-preview-btn {
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    padding: 8px 32px;
    border: 1px solid var(--primary);
    border-radius: 20px;
    transition: background-color 0.2s, color 0.2s;
}

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

.chapter-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.chapter-item {
    padding: 12px 16px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chapter-item:hover {
    color: var(--primary);
    background: #fafafa;
}

@media (max-width: 768px) {
    .article-detail-card,
    .article-preview-card {
        padding: 20px;
    }

    .book-detail-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

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

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

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

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

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

/* ========== 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);
    margin-bottom: 8px;
}

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

@media (max-width: 900px) {
    .recommend-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

