/* 分类页筛选栏 */
.filter-bar {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
    padding: 18px 20px;
    margin-bottom: 20px;
}
.filter-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}
.filter-row:last-child {
    margin-bottom: 0;
}
.filter-label {
    font-size: 13px;
    color: #999;
    width: 70px;
    flex-shrink: 0;
    line-height: 30px;
}
.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.filter-options a {
    display: inline-block;
    padding: 4px 14px;
    font-size: 13px;
    color: #666;
    border-radius: 4px;
    transition: all 0.3s;
}
.filter-options a:hover,
.filter-options a.active {
    background: #2d8cf0;
    color: #fff;
}
/* 排序栏 */
.sort-bar {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
    padding: 12px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sort-bar .sort-links {
    display: flex;
    gap: 5px;
}
.sort-bar .sort-links a {
    padding: 5px 15px;
    font-size: 13px;
    color: #666;
    border-radius: 4px;
    transition: all 0.3s;
}
.sort-bar .sort-links a:hover,
.sort-bar .sort-links a.active {
    background: #2d8cf0;
    color: #fff;
}
.sort-bar .total {
    font-size: 13px;
    color: #999;
}
.sort-bar .total em {
    color: #2d8cf0;
    font-style: normal;
    font-weight: 600;
}
/* 列表/网格切换 */
.view-toggle {
    display: flex;
    gap: 5px;
}
.view-toggle a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    color: #999;
    background: #f5f7fa;
    transition: all 0.3s;
}
.view-toggle a:hover,
.view-toggle a.active {
    background: #2d8cf0;
    color: #fff;
}

/* 分类页响应式 */
@media (max-width: 768px) {
    .filter-bar {
        padding: 12px 15px;
    }
    .filter-row {
        flex-direction: column;
        gap: 8px;
    }
    .filter-label {
        width: auto;
        line-height: 1.4;
    }
    .filter-options {
        gap: 6px;
    }
    .filter-options a {
        padding: 3px 10px;
        font-size: 12px;
    }
    .sort-bar {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 15px;
    }
    .sort-bar .sort-links {
        flex-wrap: wrap;
        gap: 4px;
    }
    .sort-bar .sort-links a {
        padding: 4px 10px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .filter-options a {
        padding: 2px 8px;
        font-size: 11px;
    }
    .sort-bar .sort-links a {
        padding: 3px 8px;
        font-size: 11px;
    }
    .sort-bar .total {
        font-size: 11px;
    }
}