
/* region 充值弹窗 */
#common .pay-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 70vh;
    aspect-ratio: 1000 / 827;
    width: auto;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
#common .pay-window .pay-window-close {
    height: 5vh;
    position: relative;
    right: -50%;
    top: -50%;
    aspect-ratio: 26 / 26;
    width: auto;
    z-index: 201;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url("../../images/pay-window-close.png");
}
/* 移动端特殊处理（如果需要） */
@media (max-width: 768px) and (orientation: portrait) {
    #common .pay-window {
        height: 30%;
    }
}
@media (max-width: 1024px) and (orientation: landscape) {
    #common .pay-window {
        height: 80%;
        top: 70%;
    }
}
/* region 充值弹窗结束 */

/* region 首屏和二屏统一样式 */
#common .first-screen {
    width: 100vw;
    height: 100vh;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover; /* 统一使用cover，适应所有屏幕 */
    position: relative;
    display: flex;
    align-items: end;
    justify-content: center;
    overflow: hidden;
}

#common .second-screen {
    height: 7.6rem;
    aspect-ratio: 1920 / 799;
    width: auto;
    max-width: 100vw;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
#common .third-screen {
    height: 8.52rem;
    aspect-ratio: 1920 / 852;
    width: auto;
    max-width: 100vw;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/* 首屏背景 */
#common .first-screen {
    min-height: 9.8rem;
    /*background-image: url("./images/main-bg-pc.png");*/
}

/* 二屏背景 */
#common .second-screen {
    /*height: 150vh;*/
    min-height: 7.99rem;
    /*background-image: url("./images/main-bg2-pc.png");*/
}

/* 三屏背景 */
#common .third-screen {
    /*height: 150vh;*/
    min-height: 8.52rem;
    /*background-image: url("./images/main-bg2-pc.png");*/
}

#common .first-screen-content {
    width: 70%;
    height: 100%;
    margin: 0  auto;
    display: flex;
    flex-direction: column-reverse;
}
#common .third-screen .second-screen-content {
    display: block;
    width: 80%;
    height: 100%;
}

#common .first-screen-content .first-screen-content-top {
    height: 0.97rem;
    aspect-ratio: 101 / 97;
    width: auto;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url("../../images/play-video.png");
    margin-left: auto;
    margin-right: 25%;
    margin-bottom: 5%;
}

#common .first-screen-content .first-screen-content-bottom {
    height: 1.7rem;
    aspect-ratio: 980 / 170;
    width: 75%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url("../../images/dow-bg.png");
    margin: 0   auto;
    margin-bottom: 3%;
}
#common .first-screen-content .first-screen-content-bottom .first-screen-content-bottom-dow {
    padding: 1% 0;
    width: 96%;
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap; /* 允许换行 */
    align-items: center;
    gap: 2.36%;
}

#common .first-screen-content .first-screen-content-bottom .first-screen-content-bottom-dow .dow,
#common .first-screen-content .first-screen-content-bottom .first-screen-content-bottom-dow .gift-apk {
    flex: 0 0 21%;
    height: 100%;
}
#common .first-screen-content .first-screen-content-bottom .first-screen-content-bottom-dow .qr-code {
    flex: 0 0 16%;
    height: 100%;
}
#common .first-screen-content .first-screen-content-bottom .first-screen-content-bottom-dow .recharge {
    flex: 0 0 33%;
    height: 100%;
}

#common .first-screen-content .btn-apple {
    background-image: url("../../images/btn-apple-dow.png");
}

#common .first-screen-content .btn-google {
    background-image: url("../../images/btn-google-dow.png");
}

#common .first-screen-content .btn-gift {
    background-image: url("../../images/btn-gift.png");
}

#common .first-screen-content .btn-apk {
    background-image: url("../../images/btn-apk-dow.png");
}

#common .first-screen-content .qr-code {
    aspect-ratio: 100 / 100;
    width: auto;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

#common .first-screen-content .btn-recharge {
    background-image: url("../../images/btn-recharge.png");
    aspect-ratio: 280 / 133;
    width: auto;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

#common .second-screen-content {
    width: 80%;
    height: 100%;
    margin: 0  auto;
    display: flex;
    flex-direction: column;
}

#common .second-screen-content .news {
    width: 80%;
    height: 100%;
    margin: 0   auto;
}

#common .second-screen-content .news .nav {
    display: flex;
    align-items: center;
    width: 50%;
    justify-content: space-between;
    margin: 0 auto;
    font-size: 0.25rem;
    margin-top: 20%;
    align-items: center;
}

#common .second-screen-content .news-nav-btn {
    position: relative;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #404040;
    font-weight: 500;
    background: none;
    border: none;
    outline: none;
    transition: color 0.2s;
    cursor: pointer;
}

#common .second-screen-content .news-nav-btn.selected,
#common .second-screen-content .news-nav-btn:hover {
    color: #188dac;
}

/* 横线span一直存在，只是初始收缩且透明 */
#common .second-screen-content .news-nav-btn span:last-child {
    position: absolute;
    left: -40%;
    right: -40%;
    bottom: 0.05rem;
    height: 0.1rem;
    background: #cceaf1;
    border-radius: 1rem;
    opacity: 0;
    transform: scaleX(0.4);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s;
    pointer-events: none;
    z-index: 0;
    display: block;
}

#common .second-screen-content .news-nav-btn span:first-child {
    position: relative;
    z-index: 1;
}

#common .second-screen-content .news-nav-btn.selected span:last-child,
#common .second-screen-content .news-nav-btn:hover span:last-child {
    opacity: 0.85;
    transform: scaleX(1);
}

#common .second-screen-content .news .nav .enter-selected {
    width: 0.25rem;
    height: 0.25rem;
    background-color: #428BA9; /* 背景色 */
    position: relative; /* 用于绝对定位 */
    transform: rotate(45deg); /* 旋转 45 度 */
    display: flex; /* 使用 flexbox 布局 */
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    transition: transform 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.22s;
    cursor: pointer;
}

#common .second-screen-content .news .nav .enter-selected .plus-sign {
    width: 90%; /* 加号的宽度为容器的 50% */
    height: 90%; /* 加号的高度为容器的 50% */
    position: relative; /* 用于绝对定位伪元素 */
    transform: rotate(-45deg); /* 反向旋转 45 度 */
}

#common .second-screen-content .news .nav .enter-selected .plus-sign::before,
#common .second-screen-content .news .nav .enter-selected .plus-sign::after {
    content: ''; /* 伪元素必须有 content 属性 */
    position: absolute;
    background-color: white; /* 加号的颜色 */
}

#common .second-screen-content .news .nav .enter-selected .plus-sign::before {
    width: 100%;
    height: 10%;
    top: 50%; /* 横线的垂直居中 */
    left: 0; /* 横线的水平起始位置 */
    transform: translateY(-50%); /* 精确垂直居中 */
}

#common .second-screen-content .news .nav .enter-selected .plus-sign::after {
    width: 10%;
    height: 100%;
    top: 0; /* 竖线的垂直起始位置 */
    left: 50%; /* 竖线的水平居中 */
    transform: translateX(-50%); /* 精确水平居中 */
}


#common .second-screen-content .news .nav .enter-selected:hover,
#common .second-screen-content .news .nav .enter-selected:focus {
    transform: rotate(45deg) scale(1.2);
    box-shadow: 0 6px 16px rgba(10, 160, 176, 0.13);
}

#common .news .nav-content {
    width: 90.5%;
    margin: 0 auto;
    margin-top: 5%;
    margin-bottom: 18%;
}

#common .news .nav-content .news-nav-content {
    display: none;
    width: 100%;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 0.2rem;
    justify-content: flex-start;
}

#common .news .nav-content .news-nav-content.selected {
    display: flex;
}

/*!!!*/
#common .news .nav-content .news-nav-content .item {
    height: 1.7rem;
    aspect-ratio: 580 / 170;
    width: 49%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 0.2rem;
    transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.25s;
    cursor: pointer;
    position: relative;
    z-index: 1;
    user-select: none; /* 禁止选择文字 */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
}
#common .news .nav-content .news-nav-content .item:hover,
#common .news .nav-content .news-nav-content .item:focus {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.13);
    z-index: 2;
}

#common .news .nav-content .news-nav-content .item .image {
    width: 45%;
    height: 80%;
    flex: 0 0 45%;
}

#common .news .nav-content .news-nav-content .item .content {
    flex: 0 0 55%;
    width: 55%;
    height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.25rem;
    padding: 0 0.2rem;
    justify-content: space-between;
    color: #08909e;
}

#common .news .nav-content .news-nav-content .item .content .title {
    width: 100%;
    height: 0.8rem;
    margin-top: unset;
    background-image: unset;
}

#common .news .nav-content .news-nav-content .item .content .date {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #404040;
}

#common .news .nav-content .news-nav-content .item .content .date .right {
    background-image: url("../../images/main-news-right-pc.png");
    aspect-ratio: 23 / 19;
    width: auto;
    height: 0.19rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}


#common .games {
    width: 90%;
    margin: 0 auto;
    overflow: hidden;
}

#common .games .carousel-image {
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    margin-top: 14%;
    justify-content: space-between;
}

#common .games .carousel-image .swiper-left,
#common .games .carousel-image .swiper-right {
    width: 8.2%;
    aspect-ratio: 100 / 72;
    height: 0.72rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

#common .games .carousel-image .swiper-right {
    transform: rotate(180deg);
}

#common .games .carousel-image .swiper-content {
    aspect-ratio: 996 / 588;
    height: 5.88rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    overflow: hidden;
    width: 72%;
}

#common .games .carousel-image .swiper-content .swiper-content-wrapper {
    margin-top: 0.16rem;
    margin-left: 0.15rem;
    height: 91.5%;
    width: 96.9%;
    overflow: hidden;
}

#common .games .carousel-image .swiper-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#common .games .carousel-image .swiper-wrapper .swiper-slide {
    aspect-ratio: 972 / 547;
    height: 5.47rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/*#common .games .carousel-image .swiper-wrapper .swiper-slide1 {*/
/*    background-image: url("../images/main-banner-1.png");*/
/*}*/
/*#common .games .carousel-image .swiper-wrapper .swiper-slide2 {*/
/*    background-image: url("../images/main-banner-2.png");*/
/*}*/
/*#common .games .carousel-image .swiper-wrapper .swiper-slide3 {*/
/*    background-image: url("../images/main-banner-3.png");*/
/*}*/
/*#common .games .carousel-image .swiper-wrapper .swiper-slide4 {*/
/*    background-image: url("../images/main-banner-4.png");*/
/*}*/
/*#common .games .carousel-image .swiper-wrapper .swiper-slide5 {*/
/*    background-image: url("../images/main-banner-5.png");*/
/*}*/



/* 移动端特殊处理（如果需要） */
@media (max-width: 768px) and (orientation: portrait) {
    #common .second-screen-content .news .nav {
        font-size: 0.14rem;
    }
    /* 移动端竖屏时的特殊处理 */
    #common .first-screen,
    #common .second-screen {
        min-height: 8rem;
        background-attachment: scroll; /* 移动端禁用固定背景 */
    }
    #common .first-screen-content {
        width: 100%;
    }
    #common .first-screen-content .first-screen-content-bottom {
        width: 100%;
        background-size: auto 100%;
        margin-bottom: unset;
    }
    #common .first-screen-content .first-screen-content-bottom .first-screen-content-bottom-dow {
        width: 100%;
        height: 100%;
        gap: 2.5%;
        justify-content: center;
    }
    #common .first-screen-content .first-screen-content-bottom .first-screen-content-bottom-dow .dow, #common .first-screen-content .first-screen-content-bottom .first-screen-content-bottom-dow .gift-apk {
        flex: 0 0 36.5%;
        height: 49%;
    }
    #common .btn-standard {
        background-size: 100% 100%;
        height: 45%;
        /*display: none;*/
    }
    #common .first-screen-content .first-screen-content-bottom .first-screen-content-bottom-dow .qr-code {
        background-size: auto 100%;
        height: 49%;
        margin-right: 5%;
        flex: 0 0 23%;
    }
    #common .first-screen-content .first-screen-content-bottom .first-screen-content-bottom-dow .recharge {
        background-size: 100% 100%;
        height: 49%;
        flex: 0 0 45%;
    }

    #common .second-screen-content {
        width: 100%;
    }
    #common .second-screen-content .news {
        width: 100%;
    }
    #common .second-screen-content .news .nav {
        width: 100%;
        margin-top: 55%;
    }
    #common .second-screen-content .news-nav-btn span:last-child {
        left: -10%;
        right: -10%;
    }
    #common .news .nav-content {
        width: 90%;
        margin-top: 15%;
        margin-bottom: unset;
    }
    #common .news .nav-content .news-nav-content .item {
        width: 100%;
        height: 100%;
        padding: 0 0.1rem;
    }
    #common .news .nav-content .news-nav-content .item .image {
        width: 50%;
        height: 80%;
    }
    #common .news .nav-content .news-nav-content .item .content {
        font-size: 0.16rem;
        width: 100%;
        padding: 0 0.1rem;
    }
    #common .news .nav-content .news-nav-content .item .content .title {
        height: 0.5rem;
    }
    #common .news .nav-content .news-nav-content .item .content .date {
    }
    #common .games {
        width: 100%;
    }
    #common .games .carousel-image {
        margin-top: 40%;
    }
    #common .games .carousel-image .swiper-left,
    #common .games .carousel-image .swiper-right {
        display: none;
    }
    #common .games .carousel-image .swiper-content {
        width: 100%;
        height: 50%;
    }
    #common .games .carousel-image .swiper-content .swiper-content-wrapper {
        margin-top: 1.5%;
        margin-left: 1.5%;
        height: 92%;
        width: 96.9%;
    }
    #common .games .carousel-image .swiper-wrapper .swiper-slide {
        height: 100%;
    }
    #common .third-screen {
        aspect-ratio: auto;
        min-height: unset;
        height: 3.5rem;
        background-size: auto 243%;
        background-position: top;
    }
    #common .third-screen .second-screen-content {
        width: 90%;
    }
}
@media (max-width: 1024px) and (orientation: landscape) {
    #common .second-screen-content .news .nav {
        font-size: 0.16rem;
    }
    /* 移动端竖屏时的特殊处理 */
    #common .first-screen,
    #common .second-screen {
        min-height: unset;
        background-attachment: scroll; /* 移动端禁用固定背景 */
    }
    #common .first-screen-content {
        width: 100%;
    }
    #common .first-screen-content .first-screen-content-bottom {
        width: 90%;
        background-size: auto 100%;
        margin-bottom: unset;
        height: 35vh;
    }
    #common .first-screen-content .first-screen-content-bottom .first-screen-content-bottom-dow {
        width: 75%;
        height: 100%;
        /*gap: 7.5%;*/
        justify-content: center;
        flex-wrap: unset;
    }
    #common .first-screen-content .first-screen-content-bottom .first-screen-content-bottom-dow .dow, #common .first-screen-content .first-screen-content-bottom .first-screen-content-bottom-dow .gift-apk {
        flex: 0 0 20%;
        height: 80%;
    }
    #common .btn-standard {
        background-size: 100% 100%;
        height: 40%;
        /*display: none;*/
    }
    #common .first-screen-content .first-screen-content-bottom .first-screen-content-bottom-dow .qr-code {
        background-size: auto 100%;
        height: 80%;
        margin-right: unset;
        flex: 0 0 10%;
    }
    #common .first-screen-content .first-screen-content-bottom .first-screen-content-bottom-dow .recharge {
        background-size: 100% 100%;
        height: 80%;
        flex: 0 0 30%;
    }
    #common .second-screen,
    #common .third-screen {
        height: 100%;
    }

    #common .second-screen-content {
        width: 100%;
    }
    #common .second-screen-content .news {
        width: 100%;
    }
    #common .second-screen-content .news .nav {
        width: 70%;
        margin-top: 10%;
        font-size: .12rem;
    }
    #common .second-screen-content .news-nav-btn span:last-child {
        left: -25%;
        right: -25%;
        height: 2vh;
    }
    #common .news .nav-content {
        width: 90%;
        margin-top: unset;
        margin-bottom: unset;
    }
    #common .second-screen-content .news .nav .enter-selected {
        width: 0.1rem;
        height: 0.1rem;
    }
    #common .news .nav-content .news-nav-content {
        gap: 0.1rem;
    }
    #common .news .nav-content .news-nav-content .item {
        width: 45%;
        height: 100%;
        padding: 0 0.1rem;
    }
    #common .news .nav-content .news-nav-content .item .image {
        width: 50%;
        height: 80%;
    }
    #common .news .nav-content .news-nav-content .item .content {
        font-size: 0.08rem;
        width: 100%;
        padding: 0 0.1rem;
    }
    #common .news .nav-content .news-nav-content .item .content .title {
        height: 0.3rem;
        font-size: 0.1rem;
    }
    #common .news .nav-content .news-nav-content .item .content .date {
        font-size: 0.08rem;
    }
    #common .news .nav-content .news-nav-content .item .content .date .right {
        height: 0.08rem;
    }

    #common .third-screen {
        min-height: unset;
        height: 100%;
        background-size: contain;
    }
    #common .games {
        width: 100%;
    }
    #common .games .carousel-image {
        margin-top: 7.5%;
    }
    #common .games .carousel-image .swiper-left,
    #common .games .carousel-image .swiper-right {
        display: none;
    }
    #common .games .carousel-image .swiper-content {
        width: 60%;
        height: 50%;
        margin: 0 auto;
    }
    #common .games .carousel-image .swiper-left, #common .games .carousel-image .swiper-right {
        display: block;
    }
    #common .games .carousel-image .swiper-content .swiper-content-wrapper {
        margin-top: 1.5%;
        margin-left: 1.5%;
        height: 92%;
        width: 96.9%;
    }
    #common .games .carousel-image .swiper-wrapper .swiper-slide {
        height: 100%;
    }
    #common .third-screen .second-screen-content {
        width: 90%;
    }
    #common .pay-window .pay-window-close {
        height: 15vh;
    }
}

/* endregion 首屏和二屏统一样式结束 */
