/* ===================================
   产品列表页面样式
   参考: psodesign.com 产品展示布局
   =================================== */

/* 产品列表容器 */
.product-list-container {
    width: 100%;
    background: #fff;
}

/* Banner区域 */
.product-banner {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-top: 0; /* 与导航栏融合 */
}

.product-banner .banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-banner .banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    padding-top: 80px; /* 为导航栏留出空间 */
}

.product-banner .banner-content {
    text-align: center;
    color: #fff;
}

.product-banner .banner-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.product-banner .banner-breadcrumb {
    font-size: 16px;
    opacity: 0.9;
}

.product-banner .banner-breadcrumb a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.product-banner .banner-breadcrumb a:hover {
    opacity: 0.7;
}

.product-banner .banner-breadcrumb .separator {
    margin: 0 10px;
}

/* 产品分类导航 */
.product-categories {
    background: #f8f9fa;
    padding: 30px 0;
    border-bottom: 1px solid #e0e0e0;
}

.product-categories .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.product-categories .category-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.product-categories .category-item {
    margin: 0;
}

.product-categories .category-link {
    display: block;
    padding: 12px 24px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.product-categories .category-link:hover {
    border-color: #333;
    background: #333;
    color: #fff;
    transform: translateY(-2px);
}

.product-categories .category-item.active .category-link {
    border-color: #333;
    background: #333;
    color: #fff;
}

/* 产品网格区域 */
.product-grid-section {
    padding: 60px 0;
    background: #fff;
}

.product-grid-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* 产品卡片 */
.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #f5f5f5;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.view-details {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 30px;
    border: 2px solid #fff;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.product-card:hover .view-details {
    background: #fff;
    color: #333;
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
    line-height: 1.4;
}

.product-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 分页样式 */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination-wrapper .pagination {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-wrapper .pagination a,
.pagination-wrapper .pagination span {
    display: block;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-wrapper .pagination a:hover {
    background: #333;
    color: #fff;
    border-color: #333;
}

.pagination-wrapper .pagination .active span {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* 无产品提示 */
.no-products {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-banner {
        height: 250px;
        margin-top: 60px; /* 移动端导航栏较小 */
    }
    
    .product-banner .banner-title {
        font-size: 32px;
    }
    
    .product-banner .banner-breadcrumb {
        font-size: 14px;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .product-image-wrapper {
        height: 200px;
    }
    
    .product-categories .category-list {
        gap: 10px;
    }
    
    .product-categories .category-link {
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .product-banner {
        height: 200px;
    }
    
    .product-banner .banner-title {
        font-size: 24px;
    }
}

