/* product-optional.css */

.product-optional-page .hero-section {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 8 / 3;
    min-height: 0;
    max-height: 720px;
    overflow: hidden;
    background: #ffffff;
}

body.csisp-product-pending .product-optional-page .hero-section .hero-bg,
body.csisp-product-pending .product-optional-page .hero-section .hero-content {
    opacity: 0;
    visibility: hidden;
}

body:not(.csisp-product-pending) .product-optional-page .hero-section .hero-bg,
body:not(.csisp-product-pending) .product-optional-page .hero-section .hero-content {
    opacity: 1;
    transition: opacity 180ms ease;
}

.product-optional-page .hero-section .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.product-optional-page .hero-section .bg-graphic {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

.product-optional-page .hero-section .mobile-bg {
    display: none;
}

.product-optional-page .hero-section .hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 0 2.04rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.product-optional-page .hero-title {
    font-size: 0.64rem;
    font-family: 'PangMenZhengDaoBiaoTiTiMianFeiBan-4', sans-serif;
    max-width: min(11.6rem, calc(100vw - 4.08rem));
    line-height: 1.18;
    letter-spacing: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}

.product-optional-page .hero-title .hero-title-highlight {
    display: inline;
    padding: 0 0.08rem;
    background: #0037c3;
    color: #fff;
    line-height: 1.18;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.product-optional-page .mobile-title {
    display: none;
}

.optional-video-section {
    background: #ffffff;
    overflow: hidden;
    padding: 0.96rem 0 0.8rem;
}

.optional-video-section .video-container {
    aspect-ratio: 16 / 9;
    height: auto;
    max-height: 8.28rem;
}

/* 选配设备列表区域 */
.equipment-list-section {
    padding: 0.8rem 0;
    background: #ffffff;
    padding-bottom: 2rem;
}

.equipment-container {
    padding: 0 2.04rem;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.24rem;
}

.equipment-card {
    background: #F5F5F5;
    border-radius: 0.36rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-img-wrapper {
    width: 100%;
    height: 3.66rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 0 20px 0;
}

.card-content {
    padding: 0.36rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    font-size: 0.24rem;
    font-weight: 700;
    color: #000000;
    line-height: 1.4;
    margin-bottom: 0.24rem;
}

.card-divider {
    width: 100%;
    height: 1px;
    background: #0037C3;
    margin-bottom: 0.24rem;
}

.card-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.24rem 0.16rem;
}

.spec-col {
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
}

.spec-label {
    font-size: 0.18rem;
    font-weight: 700;
    color: #000000;
    line-height: 1.6;
}

.spec-value {
    font-size: 0.18rem;
    font-weight: 400;
    color: #505050;
    line-height: 1.6;
}

/* ==========================================================================
   移动端响应式 (<= 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .product-optional-page .hero-section {
        height: auto;
        aspect-ratio: 25 / 32;
        min-height: 0;
        max-height: none;
    }
    .product-optional-page .hero-section .pc-bg {
        display: none;
    }
    .product-optional-page .hero-section .mobile-bg {
        display: block;
    }
    .product-optional-page .hero-section .hero-content {
        align-items: center;
        text-align: center;
    }
    .product-optional-page .pc-title {
        display: none;
    }
    .product-optional-page .mobile-title {
        display: block;
    }

    .optional-video-section {
        padding: 0.64rem 0 0.4rem;
    }

    .equipment-grid {
        grid-template-columns: 1fr;
        gap: 0.24rem;
    }

    .equipment-card {
        border-radius: 0.24rem;
    }

    .card-img-wrapper {
        height: 4rem;
    }
    
    .card-content {
        padding: 16px;
    }
    
    .card-title {
        font-size: .28rem;
        margin-bottom: 0.12rem;
    }

    .card-divider {
        margin-bottom: 0.12rem;
    }

    .card-specs {
        gap: 0.16rem 0.12rem;
    }

    .spec-label {
        font-size: .24rem;
    }

    .spec-value {
        font-size: .24rem;
    }
}
@media (max-width: 768px) {
    .product-optional-page .hero-section .hero-content {
        padding-left: 16px;
        padding-right: 16px;
    }
    .equipment-container {
        padding-left: 16px;
        padding-right: 16px;
    }
}
