/* ==========================================================================
   产品页面样式
   ========================================================================== */

   .products-hero {
    padding-top: 90px;
    min-height: 40vh;
    background: linear-gradient(
        135deg,
        var(--color-primary) 0%,
        var(--color-primary-light) 100%
    );
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.products-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><path fill="%23FFFFFF10" d="M 0,100 C 0,30 30,0 100,0 S 200,30 200,100 170,200 100,200 0,170 0,100"/></svg>');
    background-size: 40px 40px;
    opacity: 0.1;
}

.products-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
}

.products-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: fadeInDown 1s ease-out;
}

.products-hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 0.3s forwards;
    opacity: 0.9;
}

/* 产品分类部分 */
.category-section {
    padding: 4rem 0;
    background: var(--color-background);
}

.category-section:nth-child(even) {
    background: var(--color-white);
}

.category-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-border);
}

.category-title {
    font-size: 1.875rem;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--color-background);
    border-radius: 0.5rem;
}

.category-desc {
    color: var(--color-text-secondary);
    max-width: 600px;
    margin-bottom: 2rem;
}

/* 产品网格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* 产品卡片 */
.product-card {
    background: var(--color-white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    height: 200px;
    background: var(--color-background);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.product-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.product-subname {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

.product-desc {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.product-meta {
    font-size: 0.875rem;
    color: var(--color-text-tertiary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

/* 查看更多按钮 */
.view-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 2rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-more-btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .products-hero h1 {
        font-size: 2.5rem;
    }
    
    .products-hero p {
        font-size: 1.1rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .product-image {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .products-hero h1 {
        font-size: 2rem;
    }
    
    .category-container {
        padding: 0 1rem;
    }
}