@media (max-width: 1600px) {
    .home-banner a.z-banner {
        width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 1200px) {

    .home-popular .pop_list .pop_item {
        flex: 0 0 calc((100% - 5 * 20px) / 6);
        margin-right: 20px;
    }
}

@media (max-width: 1024px) {
    .home-banner .pc_banner {
        display: none;
    }

    .home-banner .mobile_banner {
        display: block;
    }

    .home_banner_popular_games_container {
        margin-top: 0;
    }

    .home-banner .swiper-slide {
        padding: 0 12px;
    }

    .home-banner .banner_pagination {
        top: inherit;
        bottom: 0;
    }

    .ws-home>.z-page-container {
        padding: 0 12px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }

    .home_banner_popular_games_container .pop_item .pop_item_bg {
        width: 100%;
        background-size: cover;
        height: 120px;
        align-items: center;
        padding-top: 0;
    }

    .home_banner_popular_games_container .home-popular .pop_list {
        padding: 0 12px;
    }

    .home_banner_popular_games_container .home-popular .pop_list .pop_item .item_info .template {
        display: none;
    }

    .home-banner .z-banner img {
        height: auto;
    }

    .home-banner {
        margin-top: 0;
        padding: 10px 0 25px;
    }

    .home-banner .swiper-container-horizontal .swiper-pagination-bullets,
    .home-banner .swiper-pagination-custom,
    .swiper-pagination-fraction {
        bottom: 30px;
        padding-left: 25px;
    }

    .swiper-pagination-bullet {
        width: 24px;
        height: 3px;
    }

    .gameOther_wrap {
        padding: 40px 12px;
    }

    .gameOther_wrap .home-popular .pop_list .pop_item {
        margin-right: 0;
    }

    .home-popular {
        margin-bottom: 30px;
    }

    .home-popular .arrow {
        display: none;
    }

    .home-popular .pop_title h2 {
        font-size: 16px;
    }

    .home-popular .pop_title h2 span {
        margin: 0 6px;
    }

    .home-popular .moreGames {
        display: flex;
        margin-top: 16px;
    }

    .home-popular .moreGames p {
        height: 31px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 3px 3px 3px 3px;
        padding: 0 12px;
    }

    .home-popular .moreGames p.less {
        display: none;
    }

    .home-popular.mobile_show .moreGames p.less {
        display: flex;
    }

    .home-popular.mobile_show .moreGames p.less i {
        transform: rotate(180deg);
    }

    .home-popular.mobile_show .moreGames p.more {
        display: none;
    }

    .home-popular .moreGames p span {
        margin-right: 4px;
    }

    .home-popular .pop_list {
        margin-top: 10px;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .home-popular .pop_list .pop_item {
        width: auto;
        margin: 0;
    }

    /* 前6个显示 */
    .popular-games .pop_list .pop_item:nth-child(n+7) {
        display: none;
    }

    .popular-topup .pop_list .pop_item:nth-child(n+5),
    .popular-giftcard .pop_list .pop_item:nth-child(n+5) {
        display: none;
    }

    .home-popular.mobile_show .pop_list .pop_item {
        display: block;
    }



    .whychooseus .chooseus_left .title h2 {
        font-size: 20px;
    }

    .home_affiliate {
        padding: 0 20px;
    }

    .home_affiliate .aff_left p {
        font-size: 16px;
    }

    .home_affiliate .aff_right a {
        white-space: nowrap;
        padding: 0 10px;
        font-size: 16px;
    }

    .home_banner_popular_games_container .home-popular .pop_list .pop_item .item_info p i.allgame_icon {
        font-size: 25px;

    }

    .home_banner_popular_games_container .home-popular .pop_list .pop_item .item_info {
        width: 78%;
    }

    .home_banner_popular_games_container .pop_item .pop_item_bg,
    .home_banner_popular_games_container .pop_item:active .pop_item_bg,
    .home_banner_popular_games_container .pop_item:focus .pop_item_bg {
        height: 120px !important;
        /* 与已有移动端高度一致 */
        min-height: 120px !important;
        max-height: 120px !important;
        background-size: cover !important;
        /* 保持背景填充，不做动画缩放 */
        transform: none !important;
        /* 取消任何父级或伪类的 transform */
        transition: none !important;
        /* 点击时取消过渡，避免抖动 */
        -webkit-tap-highlight-color: transparent;
        /* 避免点击高亮影响 */
        box-sizing: border-box;
    }

    .home_banner_popular_games_container .pop_item:hover .pop_item_bg {
        background-size: cover;
        transform: none;
    }


}


@media (max-width: 768px) {

    .home-popular .pop_list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }


    .ws-news {
        padding-top: 40px;
    }


}

@media (max-width: 600px) {
    .home_affiliate {
        padding: 23px 15px 45px;
        background: url(/images/homeaffiliate_m.webp) no-repeat;
        background-size: 100% 100%;
        height: 250px;
        margin: 30px 0;
        display: flex;
        flex-direction: column;
        align-items: space-between;
    }

    .home_affiliate .aff_left span {
        margin-top: 8px;
    }

    .home_affiliate .aff_right {
        width: 100%;
        justify-content: flex-end;
    }

    .home_affiliate .aff_right a {
        height: 30px;
        font-size: 14px;
        border-radius: 5px;
    }
}

@media (max-width: 500px) {
    .home-popular .pop_list {
        margin-top: 10px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 11px;
    }

    .home-popular .pop_list .pop_item {
        margin-right: 0;
    }




    .home-popular .pop_list .pop_item .item_info p {
        font-size: 16px;
    }

    .home-popular .pop_list .pop_item .item_info {
        padding: 8px;
    }

}

@media (max-width: 450px) {}

@media (max-width: 375px) {}