/* 页面标题样式 */
.page-header {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/tupian.svg');
    background-size: cover;
    background-position: center;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    margin-top: 60px;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 筛选区域样式 */
.filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-group {
    display: flex;
    gap: 15px;
}

.category-filter,
.price-filter {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: var(--white);
    min-width: 150px;
}

.search-filter {
    display: flex;
    gap: 10px;
}

.search-filter input {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    min-width: 200px;
}

.search-filter button {
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-filter button:hover {
    background: var(--primary-dark);
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    padding: 8px 16px;
    border: 1px solid #ddd;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.pagination a:hover,
.pagination a.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        flex-direction: column;
    }

    .search-filter {
        flex-direction: column;
    }

    .search-filter input {
        width: 100%;
    }
}

/* 修改产品网格布局 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    margin-top: 30px;
}

/* 响应式布局调整 */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* 添加到现有CSS中 */
.product-card {
    transition: opacity 0.3s ease;
}

.pagination a {
    transition: all 0.3s ease;
}

.filter-group select,
.search-filter input {
    transition: border-color 0.3s ease;
}

.filter-group select:focus,
.search-filter input:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* 修改产品分类按钮容器样式 */
.products-section {
    padding-top: 30px;
}

.product-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    padding: 0 20px;
} 