.p40gPow {
    background-color: #fff;
}
.p40gPowCon {
    width: 70.3125vw;
    margin: 0 auto;
    text-align: center;
    font-size: 1vw;
    font-weight: 400;
    line-height: 1.46vw;
    color: #000;
    padding: 3.9vw 0 1.8vw 0;
    font-family: 'Montserrat';
}
.p40gTftGrid {
    display: grid;
    gap: 1.3vw;
    padding-bottom: 2.86vw;
    background-color: #fff;
}
.p40gTft {
    display: flex;
    column-gap: 1.3vw;
    justify-content: center;
    font-size: 1.4vw;
    color: #FFF;
    font-weight: bold;
}
.p40gTftPos {
    position: relative;
    overflow: hidden;
}
.p40gTftText2 {
    position: absolute;
    top: 1.56vw;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 2;
}
.p40gTftPos img {
    transition: transform 0.3s ease;
    width: 100%;
    display: block;
}
.p40gTftPos:hover img {
    transform: scale(1.05);
}
.p40gColors {
    background: url('/wp-content/uploads/2025/03/P40G_08.webp') no-repeat;
    background-size: cover;
    background-position: center;
    text-align: center;
    color: #000;
    font-family: Helvetica;
}
.p40gDual {
    background-color: #000;
    color: #FFF;
    text-align: center;
}
.p40gDualTit {
    font-weight: bold;
    font-size: 3.75vw;
    line-height: 3.75vw;
    padding-top: 5.72vw;
}
.p40gDualSubTit {
    font-size: 1.04vw;
    font-weight: 400;
    line-height: 1.45vw;
    padding-top: 1.04vw;
    font-family: 'Montserrat';
}
.p40gBest {
    color: #FFF;
    background: #000;
    text-align: center;
}
.p40gBestTit {
    font-size: 3.75vw;
    font-weight: 600;
    line-height: 3.75vw;
    padding-top: 6.51vw;
}
.p40gBestSubTit {
    font-size: 1.04vw;
    line-height: 1.45vw;
    font-weight: 400;
    padding: 2.08vw 0 3.12vw 0;
    font-family: Montserrat;
}
.p40gBestFlex {
    display: flex;
    justify-content: center;
    gap: 0 1.56vw;
}
.p40gFlexCenter {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: left;
}
.p40gGifTit {
    font-size: 2.60vw;
    line-height: 2.08vw;
    font-weight: bold;
    padding-bottom: 0.52vw;
}
.p40gGifSubTit {
    font-size: 1.04vw;
    line-height: 1.45vw;
    font-weight: 400;
    font-family: Montserrat;
}
.p40gThree {
    background: #fff;
    text-align: center;
    color: #000;
}
.p40gThreeTit {
    font-size: 3.75vw;
    font-weight: bold;
    line-height: 3.75vw;
    padding: 3.38vw 0 2.34vw 0;
}
.p40gThreeFlex {
    display: flex;
    gap: 0 2.08vw;
    padding: 0 3vw;
}
.p40gCom {
    background: url('/wp-content/uploads/2025/03/P40G_20.webp') no-repeat;
    background-size: cover;
    background-position: center;
    color: #000;
    text-align: center;
}
.p40gComTit {
    font-size: 3.75vw;
    font-weight: bold;
    line-height: 3.75vw;
    padding-top: 6.5vw;
    padding-bottom: 41vw;
}
.videoTitle {
    font-size: 1vw;
    line-height: 1vw;
    font-weight: bold;
    padding-top: 1.5vw;
}
.p40gVideoCon {
    position: relative;
    overflow: hidden;
    width: 29.844vw;
    height: 40vw;
}
.p40gVideoCon video {
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.galGrid {
    display: flex;
    gap: 1vw;
    margin-top: 2vw;
    padding: 0 2.34vw;
}
.galFlex {
    display: flex;
    column-gap: 1vw;
}
.galSubGrid {
    display: grid;
    gap: 1vw;
}
.galImg1 {
    width: 33%;
    overflow: hidden;
    border-radius: 15px;
}
.galSubGrid .galImg1 {
    width: 100%;
}
.galImg1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
    border-radius: 15px;
}
.galImg1:hover img {
    transform: scale(1.05);
}

@media screen and (max-width: 1400px) {
    .p40gPowCon {
        width: 93%;
    }
    .p40gTftGrid {
        padding-left: 15px;
        padding-right: 15px;
    }
    .swiper-container {
        top: 24.78vw !important;
        width: 83.57vw !important;
        height: 34.28vw !important;
    }
    .swiper-wrapper {
        justify-content: space-between;
    }
}

@media screen and (max-width: 1024px) {
    .p40gColTit, .p40gDualTit, .p40gBestTit, .p40gComTit {
        font-size: 4.3vw;
        line-height: 4.5vw;
    }
    .videoTitle {
        font-size: 2vw;
        line-height: 2vw;
    }
    .galGrid {
        display: grid;
    }
    .p40gGifTit {
        font-size: 3.6vw;
        line-height: 2.08vw;
        padding-bottom: 0.52vw;
    }
    .p40gPowCon, .p40gSubColTit, .p40gDualSubTit, .p40gBestSubTit, .p40gGifSubTit {
        font-size: 1.4vw;
        line-height: 2.4vw;
    }
    .p40gBestFlex, .p40gThreeFlex {
        padding-left: 15px;
        padding-right: 15px;
    }
    .p40gVideoCon {
        width: 100%;
        height: 100%;
    }
    .p40gSubColTit {
        padding-bottom: 70vw;
    }
    .p40gColors {
        background: url('/wp-content/uploads/2025/03/mP40G_08.webp') no-repeat;
        background-size: cover;
        background-position: center;
    }
    .p40gDest {
        color: #000;
        text-align: center;
        position: relative;
        display: block !important;
    }
    .p40gColTit {
        font-size: 3.9vw !important;
    }
    .p40gSubColTit {
        font-size: 2.6vw !important;
    }
    .p40gMobile {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    .galGrid {
        display: grid;
        padding: 0;
    }
    img {
        max-width: 100%;
        height: auto;
    }
    video {
        width: 100%;
        height: auto;
    }
    .p40gTftPos img {
        border-radius: 30px;
    }
    .p40gGifTit {
        font-size: 7.5vw;
        line-height: 9.5vw;
    }
    .p40gGifSubTit {
        font-size: 2.6vw;
        line-height: 5.9vw;
        font-weight: 400;
    }
    .p40gPowCon {
        font-size: 2.6vw;
        line-height: 4.5vw;
        font-weight: 400;
    }
    
    .p40gTft {
        font-size: 3.35vw;
        flex-direction: column;
        align-items: center;
        gap: 2vw;
    }
    
    .p40gBestFlex, .p40gThreeFlex {
        flex-direction: column;
        align-items: center;
    }
    
    .p40gColTit, .p40gDualTit, .p40gBestTit, .p40gComTit {
        font-size: 3.9vw;
        line-height: 3.9vw;
    }
    .p40gSubColTit, .p40gDualSubTit, .p40gBestSubTit {
        font-size: 2.6vw;
        line-height: 5.9vw;
        font-weight: 400;
    }
    .p40gDualSubTit, .p40gBestSubTit {
        padding: 3vw;
    }
    .p40gVideoCon {
        width: 100%;
        height: 100%;
    }
    .videoTitle {
        font-size: 3vw;
        line-height: 3vw;
    }
    .p40gSubColTit {
        padding-bottom: 65vw;
    }
    .p40gColors {
        background: url('/wp-content/uploads/2025/03/mP40G_08.webp') no-repeat;
        background-size: cover;
        background-position: center;
    }
}

@media screen and (max-width: 480px) {
    .p40gColTit, .p40gDualTit, .p40gBestTit, .p40gThreeTit, .p40gComTit {
        font-size: 4.27vw;
        line-height: 4.27vw;
    }
    .p40gTftPos img {
        border-radius: 30px;
    }
    .videoTitle {
        font-size: 3.77vw;
        line-height: 3.77vw;
    }
    /* 子标题调整 */
    .p40gDualSubTit, .p40gBestSubTit {
        padding: 3vw;
    }
    .p40gVideoCon {
        width: 100%;
        height: 100%;
    }
}
    
    .p40gDest {
        display:none;
    }
    .part4 {
        position: relative;
        width: 100%;
        height: 100vh;
        overflow: hidden;
        color: #000;
    }
    
    .background-slider {
        position: absolute;
        width: 100%;
        height: 100%;
    }
    
    .slide {
        position: absolute;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: 50% 70%;
        opacity: 0;
        transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
    }
    
    .slide.active {
        opacity: 1;
    }
    
    .part4-content {
        position: relative;
        z-index: 2;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        color: #000;
        text-align: center;
        padding: 0 0 10px 0;
        box-sizing: border-box;
        margin-top: 5px;
    }
    
    .product-selector {
        display: flex;
        padding: 15px 0;
        border-radius: 50px;
        justify-content: center;
        background-color: #d3d3d3;
    }
    
    .p40gProduct {
        display: flex;
        margin: 0 15px;
        cursor: pointer;
        transition: all 0.3s;
    }

    .p40gProduct:hover {
        transform: scale(1.05);
    }

    .p40gProduct.active {
        box-shadow: 0 0 0 2px #fff;
        border-radius: 50%;
    }
    
    .p40gProduct img {
        width: 30px;
        height: 30px;
        object-fit: cover;
        border-radius: 50%;
        border: 2px solid rgba(255,255,255,0.3);
        transition: border-color 0.3s ease;
    }
    
    .p40gProduct.active img {
        border-color: rgba(255,255,255,0.8);
    }
    
    .swiper-container {
        position: absolute;
        left: 50%;
        top: 18.07vw;
        transform: translateX(-50%);
        z-index: 3;
        width: 60.93vw;
        height: 25vw;
    }
    
    .swiper-wrapper {
        display: flex;
        position: relative;
        width: 100%;
        height: 100%;
    }
    
    .swiper-slide {
        width: 12.18vw;
        height: 100%;
        cursor: pointer;
        position: relative;
        transition: all 0.3s ease;
    }
    
    .swiper-slide:hover::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(255,255,255,0.1);
    }
    
    .product-name-container {
        display: flex;
        justify-content: center;
        margin-bottom: -5px;
    }
    
    .product-name {
        padding: 5px 10px;
        font-weight: bold;
        color: #000;
        text-align: center;
        opacity: 0;
        transition: opacity 0.3s ease;
        position: absolute;
    }
    
    .product-name.active {
        opacity: 1;
        position: static;
    }
    
    .p40gColTit {
        font-size: 3.75vw;
        line-height: 4.75vw;
        padding-top: 1.90vw;
        font-weight: 600;
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        z-index: 4;
        width: 100%;
        text-align: center;
    }
    
    .p40gSubColTit {
        font-size: 1.09vw;
        position: absolute;
        top: 7vw;
        left: 50%;
        transform: translateX(-50%);
        z-index: 4;
        width: 100%;
        text-align: center;
    }
