/* 产品中心页样式 */

.page-product {
    background: #ffffff;
    /* 为固定导航预留高度，避免内容被遮挡 */
    padding-top: var(--header-height);
}

/* 产品页容器：不限制 max-width，左右固定留白 120px */
.page-product .container {
    max-width: none;
    width: 100%;
    margin: 0;
    padding-left: 120px;
    padding-right: 120px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========== 白底导航（固定顶部） ========== */
.site-header--light {
    position: fixed;
    background: #ffffff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

/* 滚动后加强阴影，与内容区分 */
.site-header--light.is-scrolled {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.site-header--light .nav-list a {
    color: #1a1a1a;
}

.site-header--light .nav-list a::after {
    background: #0162e4;
    opacity: 0;
}

.site-header--light .nav-list a:hover::after,
.site-header--light .nav-list a.is-active::after {
    opacity: 1;
}

.site-header--light .logo img {
    /* logo_white 为蓝字透明底，适配白底导航 */
    filter: none;
}

.site-header--light .header-login {
    color: #1a1a1a;
    border-color: rgba(26, 26, 26, 0.22);
    background: transparent;
}

.site-header--light .header-login:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* ========== Hero ========== */
.product-hero {
    position: relative;
    width: 100%;
    min-height: 420px;
    height: clamp(380px, 42.7vw, 820px);
    overflow: hidden;
}

.product-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

.product-hero-inner {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
    padding-top: 24px;
    padding-bottom: 48px;
}

.product-hero-copy {
    max-width: 560px;
    animation: product-fade-up 0.7s ease both;
}

.product-hero-copy h1 {
    margin: 0;
    font-size: clamp(28px, 2.6vw, 42px);
    font-weight: 700;
    line-height: 1.45;
    color: #0a2a6b;
    letter-spacing: 0.02em;
}

.product-hero-features {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.product-hero-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 500;
    color: #1a1a2e;
}

.product-hero-features img {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

/* ========== 产品分类 Tab ========== */
.product-list-section {
    padding: 48px 0 72px;
    background: #ffffff;
}

.product-tabs {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
    margin-bottom: 48px;
    border-bottom: 1px solid #e8eef6;
}

.product-tab {
    position: relative;
    box-sizing: border-box;
    width: 240px;
    height: 88px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Source Han Sans', 'Source Han Sans SC', '思源黑体',
        'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 24px;
    font-weight: normal;
    line-height: normal;
    text-align: center;
    letter-spacing: 0em;
    font-variation-settings: 'opsz' auto;
    font-feature-settings: 'kern' on;
    color: #666666;
    transition: color 0.3s ease;
}

.product-tab::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    height: 4px;
    background: #0162e4;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-tab:hover {
    color: #0162e4;
}

.product-tab.is-active {
    color: #0162e4;
    font-weight: normal;
}

.product-tab.is-active::after {
    opacity: 1;
}

.product-panel[hidden] {
    display: none;
}

.product-panel.is-active {
    animation: product-fade-up 0.45s ease both;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 60px;
}

.product-card {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    background: #ffffff;
    border: 1px solid transparent;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(1, 98, 228, 0.08);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    color: inherit;
    cursor: pointer;
}

a.product-card {
    display: block;
    text-decoration: none;
}

.product-card:hover {
    background: #ffffff;
    border: 1px solid #0162e4;
    box-shadow: 0px 10px 20px 0px rgba(176, 204, 234, 0.4);
}

.product-card-media {
    width: 100%;
    height: auto;
    aspect-ratio: 520 / 390;
    border-bottom: 1px solid #E2E2E2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 铺满容器：不拉伸变形、不裁切 */
.product-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-card-body {
    padding: 20px 28px 28px;
}

.product-card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.product-card-title h3 {
    margin: 0;
    font-family: 'Source Han Sans', 'Source Han Sans SC', '思源黑体',
        'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 30px;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0em;
    font-variation-settings: 'opsz' auto;
    font-feature-settings: 'kern' on;
    color: #222222;
    flex-shrink: 0;
}

.product-card-title p {
    margin: 0;
    font-family: 'Source Han Sans', 'Source Han Sans SC', '思源黑体',
        'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 20px;
    font-weight: normal;
    line-height: normal;
    letter-spacing: 0em;
    font-variation-settings: 'opsz' auto;
    font-feature-settings: 'kern' on;
    color: #555555;
    text-align: right;
}

.product-card-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.product-card-specs li {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.product-card-specs img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.product-card-specs span {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-card-specs em {
    font-family: 'Source Han Sans', 'Source Han Sans SC', '思源黑体',
        'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-style: normal;
    font-size: 16px;
    font-weight: normal;
    line-height: normal;
    letter-spacing: 0em;
    font-variation-settings: 'opsz' auto;
    font-feature-settings: 'kern' on;
    color: #666666;
}

.product-card-specs small {
    font-family: 'Source Han Sans', 'Source Han Sans SC', '思源黑体',
        'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0em;
    font-variation-settings: 'opsz' auto;
    font-feature-settings: 'kern' on;
    color: #0162e4;
}

/* ========== 区块标题 ========== */
.product-section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 0 0 40px;
    font-family: 'Source Han Sans', 'Source Han Sans SC', '思源黑体',
        'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 50px;
    font-weight: bold;
    line-height: 60px;
    letter-spacing: 0em;
    font-variation-settings: 'opsz' auto;
    font-feature-settings: 'kern' on;
    color: #222222;
}

.product-section-title img {
    width: 50px;
    height: 18px;
    flex-shrink: 0;
}

/* ========== 应用场景 ========== */
.product-scenes {
    padding: 24px 0 80px;
    background: #F4F9FF;
}

.scene-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 58px;
}

.scene-card {
    position: relative;
    box-sizing: border-box;
    display: flex;
    width: 100%;
    min-width: 0;
    height: auto;
    aspect-ratio: 781 / 368;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f8fc;
    box-shadow: 0 6px 20px rgba(1, 98, 228, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.scene-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(1, 98, 228, 0.12);
}

.scene-label {
    position: relative;
    z-index: 2;
    flex: 0 0 15.5%;
    width: 15.5%;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.scene-label-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scene-label-bar {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 50%;
    width: 28px;
    height: 4px;
    margin-left: -14px;
    background: #0162e4;
    border-radius: 2px;
}

.scene-label-text {
    position: relative;
    z-index: 1;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: 'Source Han Sans', 'Source Han Sans SC', '思源黑体',
        'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: clamp(18px, 2.2vw, 40px);
    font-weight: 500;
    line-height: normal;
    text-align: center;
    letter-spacing: 0em;
    font-variation-settings: 'opsz' auto;
    font-feature-settings: 'kern' on;
    color: #222222;
}

.scene-media {
    flex: 1;
    min-width: 0;
    height: 100%;
    overflow: hidden;
}

.scene-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.scene-card:hover .scene-media img {
    transform: scale(1.04);
}

/* ========== 配套服务 + CTA（共用背景） ========== */
.product-support {
    position: relative;
    padding: 72px 0 100px;
    overflow: hidden;
}

.product-support-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.product-support-inner {
    position: relative;
    z-index: 1;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.service-card {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(72px, 140px) minmax(0, 1fr);
    grid-template-areas:
        'icon title'
        'icon desc';
    align-items: center;
    column-gap: clamp(10px, 1.2vw, 20px);
    row-gap: 8px;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 190px;
    padding: clamp(14px, 1.4vw, 25px) clamp(12px, 1.5vw, 28px);
    border-radius: 16px;
    opacity: 1;
    background: #ffffff;
    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0px 0px 24px 0px rgba(1, 98, 228, 0.18);
}

.service-icon {
    grid-area: icon;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 140px;
    aspect-ratio: 1;
    margin: 0;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-card h3 {
    grid-area: title;
    align-self: end;
    margin: 0;
    font-family: 'Source Han Sans', 'Source Han Sans SC', '思源黑体',
        'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: clamp(14px, 1.6vw, 30px);
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0em;
    font-variation-settings: 'opsz' auto;
    font-feature-settings: 'kern' on;
    color: #333333;
}

.service-card p {
    grid-area: desc;
    align-self: start;
    margin: 0;
    font-family: 'Source Han Sans', 'Source Han Sans SC', '思源黑体',
        'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: clamp(12px, 1.1vw, 20px);
    font-weight: normal;
    line-height: 1.45;
    text-align: justify;
    letter-spacing: 0em;
    font-variation-settings: 'opsz' auto;
    font-feature-settings: 'kern' on;
    color: #666666;
}

/* ========== CTA ========== */
.product-cta {
    position: relative;
    margin-top: 72px;
    padding: 0;
    overflow: visible;
    text-align: center;
}

.product-cta h2 {
    margin: 0 0 16px;
    font-family: 'Source Han Sans', 'Source Han Sans SC', '思源黑体',
        'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 40px;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0em;
    font-variation-settings: 'opsz' auto;
    font-feature-settings: 'kern' on;
    color: #333333;
}

.product-cta p {
    margin: 0 0 40px;
    font-family: 'Source Han Sans', 'Source Han Sans SC', '思源黑体',
        'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 26px;
    font-weight: normal;
    line-height: normal;
    letter-spacing: 0em;
    font-variation-settings: 'opsz' auto;
    font-feature-settings: 'kern' on;
    color: #666666;
}

.product-cta-actions {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.btn-cta {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 240px;
    height: 72px;
    padding: 0;
    border-radius: 16px;
    opacity: 1;
    background: #ffffff;
    border: 2px solid #0162e4;
    font-family: 'Source Han Sans', 'Source Han Sans SC', '思源黑体',
        'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 30px;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0em;
    font-variation-settings: 'opsz' auto;
    font-feature-settings: 'kern' on;
    color: #0162e4;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease,
        border-width 0.3s ease;
}

.btn-cta:hover,
.btn-cta-outline:hover,
.btn-cta-solid:hover {
    width: 240px;
    height: 72px;
    border-radius: 16px;
    opacity: 1;
    background: #0162e4;
    border: 1px solid #0162e4;
    color: #ffffff;
}

.btn-cta-outline,
.btn-cta-solid {
    background: #ffffff;
    color: #0162e4;
    border: 2px solid #0162e4;
    box-shadow: none;
}

/* 产品页页脚独立于 fullpage，保持块级展示 */
.page-product .site-footer {
    margin-top: 0;
}

@keyframes product-fade-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== 响应式 ========== */
@media (max-width: 1200px) {
    .page-product .container {
        padding-left: 60px;
        padding-right: 60px;
    }
}

@media (max-width: 1400px) {
    .product-grid {
        gap: 28px 32px;
    }

    .product-card-body {
        padding: 16px 20px 20px;
    }

    .product-card-title {
        gap: 10px;
        margin-bottom: 14px;
    }

    .product-card-title h3 {
        font-size: clamp(18px, 1.6vw, 30px);
    }

    .product-card-title p {
        font-size: clamp(12px, 1.1vw, 20px);
    }

    .product-card-specs img {
        width: clamp(36px, 3.2vw, 60px);
        height: clamp(36px, 3.2vw, 60px);
    }

    .product-card-specs em {
        font-size: clamp(12px, 1vw, 16px);
    }

    .product-card-specs small {
        font-size: clamp(13px, 1.2vw, 20px);
    }
}

@media (max-width: 1100px) {
    .product-grid {
        gap: 20px 16px;
    }

    .service-grid {
        gap: 16px;
    }
}

@media (max-width: 1700px) {
    .scene-grid {
        gap: 24px;
    }
}

@media (max-width: 900px) {
    .product-hero {
        min-height: 320px;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .page-product .container {
        padding-left: 24px;
        padding-right: 24px;
    }

    .product-hero-copy h1 {
        font-size: 24px;
    }

    .product-hero-features li {
        font-size: 15px;
    }

    .product-tabs {
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }

    .product-tab {
        flex-shrink: 0;
        width: 180px;
        height: 64px;
        font-size: 16px;
    }

    .product-section-title {
        font-size: 32px;
        line-height: 40px;
        gap: 10px;
    }

    .scene-grid {
        gap: 16px 12px;
    }

    .scene-label {
        flex-basis: 18%;
        width: 18%;
    }

    .scene-label-bar {
        width: 18px;
        height: 3px;
        margin-left: -9px;
    }

    .service-grid {
        gap: 10px;
    }

    .service-card {
        min-height: 0;
        border-radius: 12px;
    }

    .product-support {
        padding: 48px 0 72px;
    }

    .product-cta {
        margin-top: 48px;
    }
}

@media (max-width: 640px) {
    .product-list-section {
        padding: 32px 0 48px;
    }

    .product-grid {
        gap: 12px 8px;
    }

    .product-card {
        border-radius: 8px;
    }

    .product-card-body {
        padding: 10px 8px 12px;
    }

    .product-card-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin-bottom: 10px;
    }

    .product-card-specs {
        gap: 4px;
    }

    .product-hero-features {
        gap: 10px;
        margin-top: 20px;
    }

    .scene-label-bar {
        width: 14px;
        height: 2px;
        margin-left: -7px;
    }

    .product-cta {
        margin-top: 40px;
    }

    .product-cta h2 {
        font-size: 28px;
    }

    .product-cta p {
        font-size: 18px;
        margin-bottom: 28px;
    }

    .btn-cta {
        width: 180px;
        height: 56px;
        font-size: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-hero-copy,
    .product-panel.is-active,
    .product-card,
    .scene-card,
    .service-card,
    .scene-media img,
    .btn-cta {
        animation: none;
        transition: none;
    }
}
