/* 页面顶部横幅 */
.page-banner {
    background: linear-gradient(135deg, #e4f8d7 0%, #c2e7a5 100%);
    padding: 60px 0;
    text-align: center;
}

.page-banner h1 {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.page-banner p {
    font-size: 18px;
    color: var(--light-text);
    max-width: 600px;
    margin: 0 auto;
}

/* 筛选区域 */
.filter-section {
    padding: 30px 0;
    background-color: var(--white);
    border-bottom: 1px solid #eee;
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 20px;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.filter-group h3 i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.filter-group h3.expanded i {
    transform: rotate(180deg);
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.filter-options li a {
    display: inline-block;
    padding: 6px 12px;
    background-color: #f5f5f5;
    border-radius: var(--border-radius);
    color: var(--light-text);
    font-size: 14px;
    transition: var(--transition);
}

.filter-options li a:hover, .filter-options li a.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.sort-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-top: 15px;
    border-top: 1px dashed #eee;
}

.sort-container span {
    margin-right: 10px;
    color: var(--light-text);
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    background-color: var(--white);
    color: var(--text-color);
    outline: none;
    cursor: pointer;
}

/* 商品列表 */
.product-list {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.products-grid {
    position: relative;
    min-height: 200px;
}

.products-grid.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 10;
}

.products-grid.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    border: 4px solid var(--primary-color);
    border-top: 4px solid transparent;
    border-radius: 50%;
    z-index: 11;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.product-card {
    position: relative;
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 10px;
    border-radius: var(--border-radius);
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
}

.product-badge.new {
    background-color: #4caf50;
    color: white;
}

.product-badge.hot {
    background-color: #ff5722;
    color: white;
}

.product-badge.discount {
    background-color: #ff9800;
    color: white;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--light-text);
}

.rating {
    display: flex;
    align-items: center;
}

.rating i {
    color: #ffb400;
    font-size: 12px;
    margin-right: 2px;
}

.rating span {
    margin-left: 5px;
}

.original-price {
    text-decoration: line-through;
    color: var(--light-text);
    margin-right: 8px;
    font-size: 16px;
}

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

/* 响应式样式 */
@media (max-width: 992px) {
    .filter-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-group h3 {
        padding: 10px;
        background-color: #f5f5f5;
        border-radius: var(--border-radius);
    }
    
    .filter-options {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        padding-left: 10px;
    }
    
    .filter-options.show-options {
        max-height: 300px;
        opacity: 1;
        margin: 10px 0;
    }
    
    .sort-container {
        justify-content: flex-start;
    }
}

@media (max-width: 576px) {
    .page-banner h1 {
        font-size: 28px;
    }
    
    .page-banner p {
        font-size: 16px;
    }
    
    .filter-options {
        flex-wrap: wrap;
    }
    
    .pagination a {
        width: 35px;
        height: 35px;
    }
} 