/* 产品列表页专用样式 */

/* 页面头部区域 */
.page-header-section {
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    padding: 80px 0 60px;
    color: white;
    text-align: center;
}

.page-header-content {
    max-width: 800px;
    margin: 0 auto;
}

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

/* .title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
} */
/* 
.decoration-line {
    width: 60px;
    height: 2px;
    background: rgba(255,255,255,0.8);
    margin: 0 15px;
} */

.title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
    gap: 12px;
}

.decoration-line {
    width: 40px;
    height: 1px;
    background: #ccc;
}

.title-decoration i {
    color: #999;
    font-size: 14px;
}


.page-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 0;
}

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

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

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.search-box .search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 16px;
}

/* 产品侧边栏 */
.product-sidebar {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.sidebar-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    margin-bottom: 5px;
}

.category-link {
    display: block;
    padding: 12px 15px;
    color: #555;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
    position: relative;
}

.category-link:hover {
    background: #f8f9fa;
    color: #007bff;
    transform: translateX(5px);
}

.category-link.active {
    background: #007bff;
    color: white;
}

.category-link.active::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid #007bff;
}

.subcategory-list {
    list-style: none;
    padding-left: 20px;
    margin-top: 10px;
    display: none;
}

.subcategory-list.show {
    display: block;
}

.subcategory-link {
    display: block;
    padding: 8px 12px;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 13px;
}

.subcategory-link:hover {
    background: #f1f3f4;
    color: #007bff;
}

.subcategory-link.active {
    background: #e3f2fd;
    color: #007bff;
    font-weight: 500;
}

/* 产品网格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-image::before {
    opacity: 1;
}

.product-type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.product-type-badge span {
    background: rgba(0,123,255,0.9);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 500;
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    color: #666;
    font-size: 13px;
    margin-bottom: 15px;
}

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

.view-detail-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: #007bff;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
}

.product-card:hover .view-detail-btn {
    opacity: 1;
    transform: translateY(0);
}

.view-detail-btn:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
}

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

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
}

.page-item {
    margin: 0;
}

.page-link {
    display: block;
    padding: 10px 15px;
    color: #007bff;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.page-link:hover {
    background: #e9ecef;
    border-color: #007bff;
    color: #007bff;
}

.page-item.active .page-link {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

.page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background: #f8f9fa;
    border-color: #dee2e6;
}

/* 无产品提示 */
.no-products {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-products i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.no-products h4 {
    color: #999;
    margin-bottom: 10px;
}

.no-products p {
    color: #aaa;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .filter-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        min-width: auto;
    }
    
    .product-sidebar {
        position: static;
        margin-bottom: 30px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .page-header-section {
        padding: 60px 0 40px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .products-filter-section {
        padding: 20px 0;
    }
    
    .product-sidebar {
        padding: 20px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 15px;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-info {
        padding: 15px;
    }
    
    /* .product-title {
        font-size: 1rem;
    }
     */
    .view-detail-btn {
        padding: 4px 10px;
        font-size: 11px;
        bottom: 12px;
        right: 12px;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 1.8rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .product-card {
        margin-bottom: 0;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-title {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 8px;
    }
    
    .product-description {
        font-size: 13px;
        line-height: 1.4;
        margin-bottom: 12px;
    }
    
    .view-detail-btn {
        padding: 8px 12px;
        font-size: 12px;
        border-radius: 20px;
        bottom: 10px;
        right: 10px;
    }
    
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
    
    .page-link {
        padding: 8px 12px;
        font-size: 14px;
        border-radius: 6px;
    }
    
    .search-box input {
        padding: 10px 12px;
        font-size: 14px;
        border-radius: 8px;
    }
    
    .category-link {
        padding: 10px 12px;
        font-size: 14px;
        border-radius: 8px;
    }
} 