/* 分类书籍页面样式 */
.category-container {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 70vh;
}

.category-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
}

.category-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #333;
}

.category-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* 分类页面专用网格样式 - 一排7本 */
.books-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
    padding: 10px 0;
    margin-bottom: 40px;
}

.book-card {
    position: relative;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.book-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    text-decoration: none;
    color: inherit;
}

.book-image {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.book-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(102, 126, 234, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.author-info {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 6px 8px;
    border-radius: 4px;
    backdrop-filter: blur(10px);
}

.author-name {
    font-size: 0.75rem;
    margin: 0;
}

.book-details {
    padding: 12px;
}

.book-details h3 {
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-genre {
    color: #666;
    font-size: 0.8rem;
    margin: 0;
}

.no-books {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-books i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-btn {
    padding: 10px 15px;
    background: white;
    border: 1px solid #dee2e6;
    color: #6c757d;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background: #f8f9fa;
    text-decoration: none;
    color: #495057;
}

.page-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .books-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 1200px) {
    .books-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 992px) {
    .books-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .category-container {
        padding: 20px 15px;
    }

    .category-header {
        padding: 10px 0;
        margin-bottom: 30px;
    }

    .category-header h1 {
        font-size: 2rem;
    }

    .category-header p {
        font-size: 1rem;
    }

    .books-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
}
