/* 产品页面样式 */

/* 产品页面头部 */
.products-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 120px 0 60px;
    text-align: center;
}

.products-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.products-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* 产品分类部分 */
.products-section {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.product-category {
    margin-bottom: 60px;
}

.product-category h2 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
}
.product-category h2:after {
    content: '';
    display: none;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
    margin-top: 10px;
}

/* 产品网格布局 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* 产品卡片样式 */
.product-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.product-card h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.product-card p {
    margin-bottom: 20px;
    flex-grow: 1;
    color: var(--text-color);
    line-height: 1.6;
}

.learn-more {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-block;
    transition: transform 0.2s ease;
}

.product-card:hover .learn-more {
    transform: translateX(5px);
}

/* 活动导航链接 */
.nav-links a.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .products-header {
        padding: 100px 0 40px;
    }
    
    .products-header h1 {
        font-size: 2rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
    
    .product-category {
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .products-header {
        padding: 90px 0 30px;
    }
    
    .products-header h1 {
        font-size: 1.8rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card {
        padding: 20px;
    }
}