﻿/* 产品中心页 products.html */

.page-products {
    background: #fff;
}

/* 顶栏当前项：白下划线（产品中心稿） */
.page-products .main-nav li.active a::after {
    width: 48px;
    height: 3px;
    bottom: 18px;
    border-radius: 2px;
    background: #fff;
}

/* 首屏：img_banner 平铺作底；文案区无底色，与下方 .products-filter-inner 同宽与左右留白对齐 */
.products-hero {
    margin-top: 80px;
    background-color: transparent;
    background-image: url(https://bucket.tzgj333.cn/gwtp/cpzx/img_banner.png);
    background-repeat: repeat;
    overflow: hidden;
}

.products-hero-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(40px, 7vw, 88px) 40px clamp(40px, 7vw, 72px);
    box-sizing: border-box;
    min-height: 400px;
    display: block;
}

.products-hero-text {
    background: transparent;
    margin: 0;
    padding: 0;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

@media (min-width: 993px) {
    .products-hero-inner {
        min-height: 460px;
        padding-top: 163px;
        padding-bottom: 56px;
        padding-left: 40px;
        padding-right: 40px;
    }

    .products-hero-text {
        justify-content: flex-start;
    }
}

.products-hero-cn {
    margin: 0 0 16px;
    max-width: 520px;
    font-size: clamp(22px, 3vw, 32px);
    font-weight: bold;
    color: #374151;
    letter-spacing: 2px;
    line-height: 1.45;
}

.products-hero-en {
    margin: 0;
    max-width: 480px;
    font-size: clamp(12px, 1.25vw, 15px);
    color: #4b5563;
    line-height: 1.65;
    letter-spacing: 0.02em;
}

/* 深蓝分类条：当前项为白底圆角药丸 + 深蓝字（稿） */
.products-filter {
    background: linear-gradient(90deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
    box-shadow: 0 4px 16px rgba(30, 58, 138, 0.2);
}

.products-filter-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 40px 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px 20px;
}

/* 锚点滚动时避开固定顶栏 */
.page-products .product-card[id] {
    scroll-margin-top: 96px;
}

.products-filter-inner a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 1px;
    white-space: nowrap;
    padding: 8px 18px;
    border-radius: 999px;
    background: transparent;
    border: 1px solid transparent;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.products-filter-inner a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.products-filter-inner a.is-active {
    color: #1e3a8a;
    font-weight: bold;
    background: #fff;
    border-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

/* 使命和价值观 + 九宫格（复用 common 中 .product-card 等） */
.products-mission {
    background: #f5f7fa;
    padding-bottom: 56px;
}

.products-mission .section-head {
    padding-top: 48px;
}

.products-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 48px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

/* 分页 */
.products-pagination {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8px 40px 64px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.products-pagination a,
.products-pagination span {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #64748b;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #fff;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.products-pagination a:hover {
    color: #1e3a8a;
    border-color: #93c5fd;
    background: #eff6ff;
}

.products-pagination a.is-current {
    background: #1e3a8a;
    color: #fff;
    border-color: #1e3a8a;
    font-weight: bold;
}

.products-pagination .products-page-ellipsis {
    border: none;
    background: transparent;
    min-width: auto;
    padding: 0 4px;
}

@media (max-width: 992px) {
    .products-hero {
        margin-top: 64px;
    }

    .products-hero-inner {
        min-height: 0;
        padding: 36px 20px 32px;
    }

    .products-filter-inner {
        padding: 12px 20px;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        gap: 20px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        padding: 0 20px 40px;
        gap: 22px;
    }

    .products-pagination {
        padding: 8px 20px 48px;
    }
}
