/* 产品列表页样式 */

/* 页面横幅 */
.page-banner {
    background-color: #f9f9f9;
    color: #000;
    padding: 40px 0;
    text-align: center;
}

.page-banner h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.page-banner .breadcrumb {
    display: flex;
    justify-content: center;
    color: #aaa;
    font-size: 14px;
}

.page-banner .breadcrumb a {
    color: #3050FF;
    margin-right: 5px;
}

.page-banner .breadcrumb span {
    margin-left: 5px;
}

/* 筛选区域 */
.product-filter {
    padding: 30px 0;
    background-color: #f9f9f9;
}

.filter-wrapper {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
}

.filter-option {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 10px 10px 0;
    background-color: #f5f5f5;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
}

.filter-option:hover,
.filter-option.active {
    background-color: #3050FF;
    color: #fff;
}

.search-sort {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-search {
    position: relative;
    flex: 1;
    margin-right: 20px;
}

.product-search input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.product-search button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
}

.product-sort {
    display: flex;
    align-items: center;
}

.product-sort span {
    margin-right: 10px;
    font-size: 14px;
    color: #666;
}

.sort-option {
    display: inline-block;
    padding: 6px 12px;
    margin-left: 5px;
    background-color: #f5f5f5;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
}

.sort-option:hover,
.sort-option.active {
    background-color: #3050FF;
    color: #fff;
}

.sort-option i {
    margin-left: 5px;
}

/* 产品列表 */
.product-list {
    padding: 40px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 10px;
    background-color: #FF3A50;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    z-index: 1;
}

.product-badge.special {
    background-color: #FF9500;
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.product-rating {
    color: #FFB400;
    font-size: 14px;
}

.product-rating span {
    color: #999;
    margin-left: 5px;
}

.product-price {
    font-weight: 600;
}

.price-value {
    font-size: 18px;
    color: #FF3A50;
}

.price-unit {
    font-size: 14px;
    color: #999;
}

.price-original {
    margin-left: 5px;
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.product-features span {
    background-color: #f5f5f5;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
    margin-right: 8px;
    margin-bottom: 8px;
}

.product-features span i {
    margin-right: 5px;
    color: #3050FF;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.product-actions .btn {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 14px;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid #3050FF;
    color: #3050FF;
}

.btn-outline:hover {
    background-color: #f0f4ff;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
}


/* 响应式布局 */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .search-sort {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .product-search {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-options,
    .product-sort {
        flex-wrap: wrap;
    }
}

/* 导航部分激活状态 */
nav ul li a.active {
    color: #3050FF;
} 