/* 分类页面布局 */
.category-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    padding: 20px 0;
}

/* 侧边栏样式 */
.category-sidebar {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.category-sidebar h2 {
    color: #8B4513;
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #8B4513;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    display: block;
    padding: 10px;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.category-list a:hover,
.category-list a.active {
    background: rgba(139, 69, 19, 0.1);
    color: #8B4513;
}

/* 内容区域样式 */
.book-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 筛选栏样式 */
.filter-bar {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sort-options span {
    color: #666;
}

.sort-options a {
    color: #666;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s;
}

.sort-options a:hover,
.sort-options a.active {
    background: #8B4513;
    color: white;
}

/* 书籍网格样式 */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.pagination button {
    padding: 8px 15px;
    background: #8B4513;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.pagination button:hover {
    background: #A0522D;
}

.pagination button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.page-info {
    color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .category-container {
        grid-template-columns: 1fr;
    }

    .category-sidebar {
        margin-bottom: 20px;
    }

    .sort-options {
        flex-wrap: wrap;
    }

    .book-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
} 