/* 列表页面专用样式 */

/* 页面标题区域 */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 0.8;
}

.breadcrumb .separator {
    margin: 0 10px;
    opacity: 0.7;
}

.breadcrumb .current {
    opacity: 0.8;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* 筛选和搜索区域 */
.filter-section {
    background: #f8f9fa;
    padding: 30px 0;
    border-bottom: 1px solid #e9ecef;
}

.filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-left {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.category-filter,
.sort-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-filter label,
.sort-filter label {
    font-weight: 500;
    color: #495057;
    white-space: nowrap;
}

.filter-select {
    padding: 8px 15px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    color: #495057;
    min-width: 150px;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-container {
    display: flex;
    position: relative;
    max-width: 300px;
    width: 100%;
}

.search-input {
    flex: 1;
    padding: 10px 45px 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #667eea;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: #5a6fd8;
    transform: translateY(-50%) scale(1.05);
}

/* 产品列表区域 */
.products-list {
    padding: 40px 0;
    background: white;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.result-count {
    color: #6c757d;
    font-size: 14px;
}

.result-count strong {
    color: #495057;
    font-weight: 600;
}

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

.view-btn {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    background: white;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.view-btn:hover {
    background: #f8f9fa;
    color: #495057;
}

.view-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* 产品网格布局 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* 产品卡片 */
.product-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f1f3f4;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    color: white;
    background: #ff6b6b;
}

.product-badge.new {
    background: #51cf66;
}

.product-content {
    padding: 25px;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 12px;
    line-height: 1.4;
}

.product-description {
    color: #718096;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.feature-tag {
    padding: 4px 10px;
    background: #f7fafc;
    color: #4a5568;
    font-size: 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid #f1f3f4;
}

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

.rating i {
    color: #ffd700;
    font-size: 14px;
}

.rating-text {
    font-size: 14px;
    color: #6c757d;
    margin-left: 5px;
}

.price {
    display: flex;
    align-items: center;
    gap: 5px;
}

.price-label {
    font-size: 12px;
    color: #6c757d;
}

.price-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #667eea;
}

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

.btn-secondary {
    flex: 1;
    padding: 10px 20px;
    border: 1px solid #667eea;
    background: transparent;
    color: #667eea;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

.btn-primary {
    flex: 1;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 列表视图样式 */
.products-grid.list-view {
    grid-template-columns: 1fr;
}

.products-grid.list-view .product-item {
    display: flex;
    align-items: center;
}

.products-grid.list-view .product-image {
    width: 200px;
    height: 150px;
    flex-shrink: 0;
}

.products-grid.list-view .product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 150px;
    padding: 20px 25px;
}

.products-grid.list-view .product-meta {
    margin-bottom: 10px;
    padding-top: 10px;
}

.products-grid.list-view .product-actions {
    margin-top: auto;
}

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


/* 响应式设计 */
@media (max-width: 768px) {
    .page-header {
        padding: 140px 0 60px;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .filter-container {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    .filter-left {
        flex-direction: column;
        gap: 15px;
    }
    
    .category-filter,
    .sort-filter {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .filter-select {
        min-width: auto;
    }
    
    .search-container {
        max-width: none;
    }
    
    .list-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .products-grid.list-view .product-item {
        flex-direction: column;
    }
    
    .products-grid.list-view .product-image {
        width: 100%;
        height: 200px;
    }
    
    .products-grid.list-view .product-content {
        height: auto;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .page-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .page-number {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 120px 0 40px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .filter-section {
        padding: 20px 0;
    }
    
    .product-content {
        padding: 20px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .pagination {
        margin-top: 30px;
    }
    
    .page-numbers {
        flex-wrap: wrap;
    }
}