/* 页面标题样式 */
.page-header {
    background: linear-gradient(180deg, rgba(10, 16, 28, 0.30), rgba(10, 16, 28, 0.50)), url('/assets/Other/products-header.jpg') center center / cover no-repeat;
    color: var(--white);
    padding: 120px 0 80px;
    text-align: center;
    margin-top: 0;
}

/* 强制白色标题：覆盖全局 body :not(.navbar) 黑字规则 */
.page-header .container h1,
.page-header .container p {
    color: #ffffff !important;
}

/* 产品导航样式 */
.nav-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    width: min(100%, 900px);
    margin: 30px auto 0;
}

.nav-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    font-weight: 600;
    padding: 12px 28px;
    min-height: 48px;
    border-radius: 30px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
    text-align: center;
    white-space: nowrap;
}

.nav-tabs a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-tabs a.active {
    color: #667eea;
    background: var(--white);
    border-color: var(--white);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
    letter-spacing: 3px;
}

/* 产品介绍样式 */
.products-intro {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    padding: 60px 0;
}

.products-intro .intro-content {
    text-align: center;
}

.products-intro h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.products-intro p {
    font-size: 18px;
    line-height: 1.8;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

/* 产品分类样式 */
.product-category {
    padding: 80px 0;
}

.product-category:nth-child(even) {
    background-color: var(--gray-light);
}

.category-header {
    text-align: center;
    margin-bottom: 60px;
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.category-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
}

.category-header p {
    font-size: 16px;
    color: var(--text-light);
}

/* 产品列表样式 */
.products-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.products-list > a.product-item {
    text-decoration: none;
    color: inherit;
}

.product-item {
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.product-img {
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-item:hover .product-img img {
    transform: scale(1.1);
}

.product-info {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

.product-info p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.product-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    margin-top: auto;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.2);
}

.product-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.product-link i {
    font-size: 16px;
}

.product-info ul {
    list-style: none;
    margin-bottom: 25px;
}

.product-info li {
    color: var(--text-light);
    line-height: 2;
    display: flex;
    align-items: center;
}

.product-info li i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 1100px) {
    .page-header {
        padding: 110px 0 64px;
    }

    .nav-tabs {
        gap: 12px;
        padding: 0 16px;
    }

    .nav-tabs a {
        flex: 1 1 calc(50% - 12px);
        min-width: 132px;
        padding: 12px 18px;
        font-size: 15px;
    }

    .products-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-img {
        height: 200px;
    }

    .product-info {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .nav-tabs {
        margin-top: 24px;
    }

    .products-list {
        grid-template-columns: 1fr;
    }
    
    .products-intro h2 {
        font-size: 28px;
    }
    
    .products-intro p {
        font-size: 16px;
    }
    
    .category-header h2 {
        font-size: 24px;
    }
    
    .product-info h3 {
        font-size: 18px;
    }

    .product-img {
        height: 200px;
    }

    .product-link {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .nav-tabs {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .nav-tabs a {
        width: 100%;
        min-width: 0;
        border-radius: 16px;
    }
}
