/* 分类页面样式 */
.category-page {
    padding: 32px 0;
}

.page-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
    border-radius: var(--radius);
    text-align: center;
}

.page-header h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

/* 筛选栏 */
.filter-bar {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-label {
    font-weight: 600;
    color: var(--dark);
    white-space: nowrap;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid var(--gray-light);
    background: var(--white);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    color: var(--dark);
    white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.sort-select {
    padding: 8px 16px;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
    font-size: 14px;
    color: var(--dark);
    margin-left: auto;
}

/* 漫画列表 */
.comic-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.result-count {
    color: var(--gray);
    font-size: 14px;
}

.view-toggle {
    display: flex;
    gap: 8px;
}

.view-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--gray-light);
    background: var(--white);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.view-btn.active {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

/* 列表视图 */
.comic-list-view {
    display: none;
}

.comic-list-view.active {
    display: block;
}

.list-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 24px;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.list-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-lg);
}

.list-item-cover {
    width: 120px;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg);
}

.list-item-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-item-content {
    flex: 1;
}

.list-item-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

.list-item-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--gray);
}

.list-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.list-tag {
    padding: 4px 12px;
    background: var(--bg);
    border-radius: 20px;
    font-size: 12px;
    color: var(--dark);
}

.list-item-desc {
    color: var(--gray);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.list-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-item-stats {
    display: flex;
    gap: 24px;
    font-size: 13px;
    color: var(--gray);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.pagination-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 16px;
    border: 2px solid var(--gray-light);
    background: var(--white);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover,
.pagination-btn.active {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 响应式 */
@media (max-width: 768px) {
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-buttons {
        width: 100%;
    }

    .sort-select {
        margin-left: 0;
        width: 100%;
    }

    .list-item {
        flex-direction: column;
    }

    .list-item-cover {
        width: 100%;
        height: 200px;
    }
}
