/* 产品页面特定样式 */

/* 页面标题区域 */
.page-header {
    background: linear-gradient(120deg, rgba(37, 99, 235, 0.9), rgba(59, 130, 246, 0.8));
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    list-style: none;
}

.breadcrumb li {
    margin: 0 0.5rem;
}

.breadcrumb li:not(:last-child)::after {
    content: ">";
    margin-left: 1rem;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
}

/* 产品展示部分 */
.products {
    padding: 5rem 0;
}

/* 平板/手机：自适应列数，与首页产品区一致 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
}
/* 电脑模式：固定每行 3 个，列宽 280px～450px，仅用 gap 控制间距，与首页一致 */
@media (min-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(3, minmax(280px, 450px));
        gap: 2.5rem;
        justify-content: center;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .products-grid {
        gap: 3rem;
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    .products-grid {
        gap: 3rem;
    }
}

/* 产品分类筛选 */
.product-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-load-more {
    display: block;
    margin: 3rem auto 0;
    background-color: var(--primary);
    min-width: 180px;
}

.btn-load-more:hover {
    background-color: var(--primary-dark);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .products-grid {
        gap: 3rem;
    }
    
    .product-content {
        padding: 1rem;
    }
    
    .product-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .product-content p {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .product-cta {
        margin-top: auto;
        padding-top: 0.4rem;
    }
    
    /* 在移动设备上禁用hover效果 */
    .product-card:hover {
        transform: none;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    }
    
    .product-card:hover .product-img img {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
        box-shadow: none;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .product-card {
        max-width: 100%;
    }
    
    .product-content {
        padding: 0.9rem;
    }
    
    .product-content h3 {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }
    
    .product-content p {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .product-cta {
        margin-top: auto;
        padding-top: 0.3rem;
    }
    
    .product-cta .btn {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }
}

@media (max-width: 400px) {
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
        gap: 3rem;
    }
    
    .product-card {
        max-width: 100%;
    }
}

/* 大屏幕优化 */
@media (min-width: 1400px) {
    .products-grid {
        gap: 3rem;
    }
    
    .product-content {
        padding: 1.8rem;
    }
    
    .product-content h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .product-content p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .product-cta {
        margin-top: auto;
        padding-top: 1.2rem;
    }
    
    .product-cta .btn {
        font-size: 1rem;
        padding: 0.7rem 1.8rem;
    }
}
