
/* 遮罩层 */
#regionModalMask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);  /* 半透明黑色 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    display: none; /* 默认隐藏，需要时用 JS fadeIn */
}

/* 弹窗主体 */
#regionModal {
    width: 1200px;
    background: #fff;
    padding: 65px 60px;
    border-radius: 20px;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: url(/Public/Uploads/uploadfile/images/20260107/language_lightbox_bg.png) no-repeat center center;
    background-size: cover;
}

/* logo + h2 水平排列 */
.modal-header {
    width: 100%;          /* 小屏幕下换行 */
    height: auto;
    border-bottom: none;
}

.modal-header img {
    width: 173px;               /* logo 宽度，可按需调整 */
    height: auto;
    display: block;
    margin: 0px auto;
}

.modal-header h2 {
    font-size: 30px;
    font-weight: 500;
    text-align: center;
    margin-top: 30px;
}

/* 按钮样式 */
.regionModal_content{
    width: 100%;
    height: auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.region-btn{
    display: block;
    width: 20.5%;
    height: 120px;
    border: none;
    background: #fff;
    border-radius: 10px;
    padding-top: 62px;
    cursor: pointer;
    font-size: 18px;
    text-align: center;
    color: #333;
    margin-top: 100px;
    padding: 0 38px;
    transition: all 0.3s ease;
    line-height: 1.4;
}
.region-btn span{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 82px;
    height: auto;
    aspect-ratio: 1/1;
    border-radius: 50%;
    margin: 0px auto;
    background: #fff;
    box-shadow: 0px 0px 12px 0px rgba(182, 182, 182, 0.4);
    margin-top: -82px;
    margin-bottom: 20px;
}
.region-btn span img{
    width: 62px;
    height: auto;
    display: block;
}
.regionModal_close{
    width: 44px;
    height: auto;
    aspect-ratio: 1/1;
    background: #3e3e3e;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: fixed;
    top: 72px;
    right: 40px;

}
.regionModal_close img{
    display: block;
    width: 14px;
    height: auto;
}

/* 悬停效果 */
.region-btn:hover {
    background: linear-gradient(90deg, #fe7155 0%, #e80917 100%);
    color: #fff;
}

/* 按下效果 */
.region-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.regionModal_right_onlight{
    width: 54px;
    height: auto;
    position: fixed;
    z-index: 9999;
    right: 25px;
    bottom: 63px;
    display: flex;
    justify-content: center;
    align-items: center;
    display: none;

}
.regionModal_content_more{
    width: 231px;
    height: 50px;
    background: linear-gradient(-77deg, #e60313 0%, #fe7357 99%);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 25px;
    margin: 0px auto;
    margin-top: 63px;
    font-size: 18px;
    color: #fff;
    transition: all 0.3s;

}
.regionModal_content_more:hover{
    transform: scale(1.1);
}
.regionModal_right_onlight li{
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    position: relative;
}
.regionModal_right_onlight li + li{
    margin-top: 24px;
}
.regionModal_right_onlight_right{
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #fff;
    width: 100%;
    height: 100%;
    background: #fff;
    box-shadow: 0px 4px 16px 0px rgba(137, 137, 137, 0.22);
    border-radius: 50%;
    position: relative;
    z-index: 2;
}
.regionModal_right_onlight_right img{
    display: block;
    width: 42px;
    height: auto;
}
.regionModal_right_onlight_left{
    width: 0px;
    height: 50px;
    background: linear-gradient(-77deg, #e60313 0%, #fe7357 99%);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-left: 26px;
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 14px;
    overflow: hidden;
    border-top-left-radius: 33px;
    border-bottom-left-radius: 33px;
    transition: all 0.3s;
}
.regionModal_right_onlight_left img{
    flex: 0 0 22px;
    height: auto;
    display: block;
    margin-left: 18px;
    margin-right: 50px;
}
.regionModal_right_onlight li.active .regionModal_right_onlight_left
.regionModal_right_onlight li:hover .regionModal_right_onlight_left{
    background: #fff4f4;
    border-color: #e70917;
}
.regionModal_right_onlight li:hover .regionModal_right_onlight_left{
    width: 262px;
}
.regionModal_mobile_button{
    width: 12.3vw;
    height: auto;
    aspect-ratio: 1/1;
    background: linear-gradient(-77deg, #e60313 0%, #fe7357 99%);
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 21.6vw;
    right: 5.3vw;
    z-index: 9999;
    cursor: pointer;
    box-shadow: 0px 0px 27px 0px rgba(137, 137, 137, 0.4);
    border-radius: 50%;
}
.regionModal_mobile_button img{
    display: block;
    width: 6vw;
    height: auto;
}
@media(max-width1200px){
    #regionModal{width: 92%;}
}

/* 可选：移动端调整 */
@media (max-width: 480px) {
    .modal-header {
        flex-direction: column; /* 小屏幕 logo 上方，h2 下方 */
    }
}
@media(max-width: 768px){
    #regionModal{width: 89.4vw;border-radius: 2.6vw;padding: 8vw 6.7vw;}
    .ys_navph2_logo{width: 25.5vw;}
    .modal-header h2{font-size: 3.7vw;margin-top: 5.3vw;}
    .region-btn{width: 36.1vw;margin-top: 12.1vw;padding: 0 3vw;font-size: 3.2vw;height: 18.8vw;}
    .region-btn span{width: 11vw;margin-top: -10.4vw;margin-bottom: 3vw;}
    .region-btn span img{max-width: 68%;}
    .regionModal_content_more{width: 42.7vw;height: 8.9vw;border-radius: 4.5vw;font-size: 3.4vw;margin-top: 6.6vw;}
    .regionModal_close{display: none;}
    .regionModal_right_onlight{display: none !important;}
    #regionModalMask.on #regionModal{
        left: 0;
        top: auto;
        transform: none;
        bottom: 0;
        width: 100%;
        border-radius: 4vw 4vw 0 0;
        padding: 5.3vw;
    }
    #regionModalMask.on #regionModal .modal-header{
        display: none;
    }
    #regionModalMask.on #regionModal .region-btn{
        margin-top: 0;
        width: 42.7vw;
        height: 30vw;
        border-radius: 1.6vw;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-bottom: 2.6vw;
    }
    #regionModalMask.on #regionModal .region-btn span{
        width: 11.6vw;
        margin-top: 0;
    }
    #regionModalMask.on #regionModal .regionModal_content_more{
        margin-top: 2.1vw;
    }
}