* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-tap-highlight-color: transparent;
}

body {
    height: 100%;
    width: 100%;
    background: #fff;
    overflow-x: hidden;
    font-size: 14px;
}

.bg-fixed {
    display: block;
    position: fixed;
    top: 0.9rem;
    width: 100%;
    height: 100%;
    background-image: url(../image/main-bg.png);
    background-position: center;
    background-size: cover;
    padding-top: 100px;
    background-repeat: no-repeat;
    z-index: -1;
}

.main-wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    box-sizing: border-box;
}

.header-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background-color: rgb(255 65 66);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 13px;
    min-height: 50px;
}

.logo {
    width: 30vw;
    max-width: 110px;
    min-width: 70px;
    margin-right: 8px;
    flex-shrink: 0;
}

.logo img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

/* Marquee text style start */
.marquee {
    /* width: 68vw; */
    width: 450px;
    line-height: 20px;
    background-color: #fff;
    color: rgb(84, 0, 0);
    white-space: nowrap;
    overflow: hidden;
    box-sizing: border-box;
    border-radius: 12px;
    padding: 4px 8px;
}

.marquee p {
    display: inline-block;
    padding-left: 2%;
    font-size: 0.75rem;
    line-height: 20px;
    margin: 0;
    animation: marquee 15s 3s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-100%, 0);
    }
}

/* Marquee text style End */
.main-content {
    padding-top: calc(8vw + 12px);
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
}

.banner-wrap {
    padding: 0 15px;
    margin-bottom: 0;
    min-height: 0;
    display: none;
    width: 100%;
    box-sizing: border-box;
}

.banner-wrap.show {
    display: block;
    min-height: 120px;
    margin-bottom: 15px;
}

.banner {
    border-radius: 10px;
    margin: 0 auto;
    overflow: hidden;
    width: 100%;
    height: auto !important;
}

.banner img {
    width: 100%;
    height: auto !important;
    border-radius: 10px;
    display: block;
    max-height: none !important;
}

.list-tabs .list-tabs-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    display: none;
}

.list-tabs {
    position: relative;
    margin-top: 0;
    margin-bottom: 0;
}



.swiper-container .swiper-slide {
    height: auto !important;
    min-height: 0;
}

.swiper-container .swiper-slide-active {
    height: auto !important;
}

.list-tabs .list-tabs-header .list-tabs-item {
    flex: 1;
    text-align: center;
    background: none;
    color: rgb(31, 31, 31);
    height: auto;
    padding: 10px 0;
    font-size: 1.2rem;
    font-weight: bold;
    position: relative;
    white-space: nowrap;
    outline: none;
    opacity: 1;
}

.list-tabs .list-tabs-slider {
    position: absolute;
    top: 2.5rem;
    left: 0;
    width: calc(100% / 4);
    height: 0.6rem;
    display: flex;
    justify-content: center;
}

.list-tabs .list-tabs-slider .slider {
    display: block;
    width: 1rem;
    height: 0.2rem;
    background-color: rgb(243, 55, 71);
}

.list-tabs .list-tabs-header .list-tabs-item.swiper-pagination-bullet-active {
    color: rgb(243, 55, 71);
}

/*.list-tabs .list-tabs-header .list-tabs-item.swiper-pagination-bullet-active::after {*/
/*    content: "";*/
/*    position: absolute;*/
/*    width: 40px;*/
/*    height: 5px;*/
/*    background-color: rgb(243, 55, 71);*/
/*    top: 40px;*/
/*    left: 50%;*/
/*    margin-left: -20px;*/
/*    border-radius: 10px;*/
/*    z-index: 2;*/
/*}*/

.swiper-container {
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
    list-style: none;
    z-index: 1;
    width: 100%;
    max-width: 100%;
}

.list-block {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

.app-first-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    text-align: center;
    padding: 10px 8px 8px 8px;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
}

.list-item {
    width: 20%;
    min-width: 0;
    max-width: none;
    padding: 0 3px;
    box-sizing: border-box;
    text-align: center;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.list-item:nth-child(5n) {
    padding-right: 0;
}

.list-item:nth-child(5n+1) {
    padding-left: 0;
}


.app-icon {
    border-radius: 15px;
    text-align: center;
    display: block;
    margin: 0 auto 8px;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f5f5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.app-icon img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    border-radius: 15px;
    display: block;
    object-fit: cover;
}

.app-name {
    margin-top: 8px;
    padding: 0 5px;
}

.app-name p {
    font-size: 0.7rem;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    margin: 0;
    color: #333;
    line-height: 1.4;
    font-weight: 500;
}

.list-item .download-btn {
    width: 3.5rem;
    margin: 10px auto;
}

.download-btn img {
    width: 100%;
}

.bottom-content {
    max-width: 650px;
    margin: 0 auto;
    padding: 0;
}

.add-banner-wrap {
    margin-top: 8px;
    margin-bottom: 20px;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

.add-banner-wrap .banner {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto;
    padding: 0 8px;
    box-sizing: border-box;
    height: auto !important;
}

.add-banner-wrap .banner img {
    width: 100%;
    height: auto !important;
    display: block;
    border-radius: 10px;
    max-height: none !important;
}

.add-banner-wrap .swiper-slide {
    width: 100% !important;
    height: auto !important;
}

.bottom-content .banner h2 {
    font-size: 1.5rem;
    margin: 20px 0;
}

/* Bottom content list row style start */
.item-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
    margin-bottom: 1rem;
    padding: 0;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
    width: 100%;
}

.img-wrap {
    background-color: rgb(179 179 179);
    border-radius: 15px;
    height: 100px;
    width: 6rem;
}

.img-wrap img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    border-radius: 15px;
    object-fit: cover;
    display: block;
}

.content {
    display: flex;
    flex: 1;
}

.app-content-details {
    flex: 1;
    margin: 0 15px;
}

/*#app-list .swiper-slide {*/
/*    height: 0;*/
/*}*/

.play-title {
    margin: 1.5rem 0 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    text-align: left;
    padding: 0;
    padding-left: 15px;
    padding-right: 15px;
}

.list-row {
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

.app-title h2 {
    font-size: 1rem;
    font-weight: bold;
}

.app-slogan h3 {
    font-size: 0.8rem;
    margin-top: 0.3rem;
    word-break: break-all;
    color: #696666;
}

.app-download-btn {
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-download-btn img {
    width: 105px;
    height: auto;
    display: block;
    border: none;
    outline: none;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.app-download-btn img:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.app-download-btn img:active {
    transform: scale(0.98);
}

.line2 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.download-btn-text {
    display: block;
    background: linear-gradient(to right, rgba(118,64,229,0.8),rgba(255,65,66,0.8));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
    pointer-events: none;
}

.download-btn {
    background: linear-gradient(to right, rgba(118,64,229,0.8),rgba(255,65,66,0.8));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
}

.rating span {
    font-size: .88rem;
    color: rgb(153 153 153);
    margin-left: 6px;
}

.rating img {
    width: 0.75rem;
}

hr {
    margin: 20px auto;
    border-bottom: 1px solid rgb(230 230 230);
    opacity: 0.2;
}

/* Bottom content list row style End */
.notice {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.notice .image-container {
    width: 305px;
    height: 340px;

}

.notice .mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.notice .notice-img-div {
    width: 81%;
    max-width:300px;
    position: relative;
    z-index: 21;
    pointer-events: auto;
}

.notice .notice-img-div a {
    display: flex;
    flex-direction: column;
    z-index: 11;
}

.notice .notice-img-div img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    z-index: 11;
    vertical-align: top;
    display: block;
}

.notice .ad-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.notice .notice-img-div .p-subwrap .close-modal{
    margin:  0 auto;
    border-radius: 35px;
    padding: 0.5rem 1.5rem;
    color: white;
    background-color: #F87323;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    user-select: none;
    transition: background-color 0.3s;
}

.notice .notice-img-div .p-subwrap .close-modal:hover {
    background-color: #e65a1a;
}

.notice .p-subwrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: white;
    padding: 1rem;
    border-bottom-right-radius: 25px;
    border-bottom-left-radius: 25px;
}

.notice .notice-text {
    width: 100%;
    z-index: 12;
    padding: 0.3rem;
    box-sizing: border-box;
    white-space: pre-line;
    font-size: 1rem;
    margin-bottom:1rem;
}

.notice .notice-text::-webkit-scrollbar {
    display: none;
}

.notice .notice-text {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.notice .close-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 25px;
    background: #F87323;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    user-select: none;
    line-height: 1;
}
.notice.ad-item .p-subwrap {
    border-radius: 10px;
}

/*.notice .ad-image {*/
/*    max-width: 70%;*/
/*    height: auto;*/
/*}*/

.bottom-fixed-app {
    position: fixed;
    left: 50%;
    bottom: 0;
    right: 0;
    z-index: 10;
    transform: translate(-50%, 0);
    -webkit-transform: translate(-50%, 0);
    width: 100%;
    max-width: 650px;
    padding: 13px;
    box-sizing: border-box;
    background: linear-gradient(to right, rgba(118,64,229,0.8),rgba(255,65,66,0.8));
    backdrop-filter: blur(3px);
    display: none;
    flex-direction: row;
    align-items: center;
}
.bottom-fixed-app .logo {
    width: 3.5rem;
    height: 3.5rem;
    margin-right: 0;
}
.bottom-fixed-app .logo img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    border-radius: 15px;
    object-fit: cover;
    display: block;
}
.bottom-fixed-app .app-content{
    display: block;
    flex: 1;
    color: white;
    padding: 0 13px;
    box-sizing: border-box;
}
.bottom-fixed-app .app-content h2 {
    font-size: 1rem;
    margin-bottom: 3px;
}
.bottom-fixed-app .app-content p {
    font-size: 0.6rem;
}
.bottom-fixed-app .download-button{
    display: block;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 35px;
    color: rgb(255,65,66);
    background-color: white;
}

@media screen and (max-width: 768px) {
    .bg-fixed {
        background-image: none !important;
    }
    
    .header-wrap {
        padding: 6px 10px;
        min-height: 45px;
    }
    
    .logo {
        width: 28vw;
        max-width: 100px;
        min-width: 65px;
        margin-right: 6px;
    }
    
    .marquee {
        width: calc(100% - 28vw - 20px);
        line-height: 18px;
        padding: 3px 6px;
        border-radius: 10px;
    }
    
    .marquee p {
        font-size: 0.7rem;
        line-height: 18px;
    }
    
    .main-content {
        padding-top: calc(8vw + 20px);
    }

    
    .img-wrap {
        width: 5rem;
        height: 5rem;
        min-width: 5rem;
    }

    .list-tabs .list-tabs-header .list-tabs-item {
        font-size: 1rem;
    }

    .app-name p {
        font-size: 0.7rem;
    }

    .app-icon {
        width: 100%;
        max-width: 100%;
    }

    .app-icon img {
        max-width: 100%;
        height: auto;
    }

    .notice .notice-img-div {
        width: 90%;
        max-width: 300px;
    }

    .notice .image-container {
        width: 100%;
        max-width: 100%;
    }

    .add-banner-wrap {
        margin-top: 15px;
        margin-bottom: 20px;
        padding: 0;
    }
    
    .add-banner-wrap .banner {
        padding: 0 10px;
    }
    
    .play-title {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .item-wrap {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .banner-wrap.show {
        margin-bottom: 15px;
    }

    
    .app-download-btn img {
        width: 80px;
    }
}

@media screen and (max-width: 414px) {
    .header-wrap {
        padding: 4px 8px;
        min-height: 38px;
    }
    
    .logo {
        width: 24vw;
        max-width: 85px;
        min-width: 55px;
        margin-right: 5px;
    }
    
    .marquee {
        width: calc(100% - 24vw - 16px);
        line-height: 15px;
        padding: 2px 4px;
        border-radius: 8px;
    }
    
    .marquee p {
        font-size: .55rem;
        line-height: 15px;
    }
    
    .main-content {
        padding-top: calc(8vw + 8px);
    }

    .bg-fixed {
        background-image: none !important;
    }

    .app-first-row {
        padding: 8px 6px 6px 6px;
    }
    
    .list-item {
        padding: 0 2px;
        margin-bottom: 10px;
    }
    
    .app-icon {
        border-radius: 12px;
        margin-bottom: 4px;
    }
    
    .app-icon img {
        border-radius: 12px;
    }

    .app-name p {
        font-size: 0.6rem;
    }
    
    .add-banner-wrap {
        margin-top: 6px;
        margin-bottom: 15px;
    }
    
    .play-title {
        font-size: 1rem;
        margin: 1rem 0 0.8rem;
    }
    
    .img-wrap {
        width: 4.5rem;
        height: 4.5rem;
        min-width: 4.5rem;
    }
    
    .app-download-btn img {
        width: 70px;
    }
    
    .bottom-fixed-app .logo {
        width: 2.8rem;
        height: 2.8rem;
        min-width: 2.8rem;
    }
}

@media screen and (min-width: 960px) {
    .header-wrap {
        padding: 10px 15px;
        min-height: 55px;
    }
    
    .logo {
        width: 32vw;
        max-width: 120px;
        min-width: 75px;
        margin-right: 10px;
    }
    
    .marquee {
        width: 500px;
        line-height: 22px;
        padding: 5px 10px;
    }
    
    .marquee p {
        font-size: 0.8rem;
        line-height: 22px;
    }
    
    .main-content {
        padding-top: 68px !important;
        width: 100%;
        box-sizing: border-box;
        max-width: 650px;
        margin: 0 auto;
    }
    
    .notice .notice-text {
        font-size: 1rem;
        line-height: 1.5rem;
    }

    .banner {
        margin-top: 10px;
    }
    
    /* PC端：顶部横幅与图标区域的间距 */
    .banner-wrap.show {
        margin-bottom: 8px !important;
    }

    /* PC端：图标区域内边距 */
    .app-first-row {
        padding: 8px 8px 5px 8px !important;
        gap: 0 !important;
        justify-content: flex-start !important;
    }

    .list-item {
        width: 20% !important;
        min-width: 0 !important;
        max-width: none !important;
        padding: 0 6px !important;
        margin-bottom: 15px !important;
        box-sizing: border-box !important;
    }
    
    .list-item:nth-child(5n) {
        padding-right: 0 !important;
    }
    
    .list-item:nth-child(5n+1) {
        padding-left: 0 !important;
    }
    
    .list-item:not(:nth-child(5n)):not(:nth-child(5n+1)) {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }
    
    .app-icon {
        border-radius: 15px !important;
        margin-bottom: 6px !important;
    }
    
    .app-name {
        margin-top: 6px !important;
        padding: 0 2px !important;
    }
    
    .app-name p {
        font-size: 0.7rem !important;
    }
    
    /* PC端：中间横幅的上下间距 */
    .add-banner-wrap {
        margin-top: 5px !important;
        margin-bottom: 12px !important;
    }
    
    .add-banner-wrap .banner {
        padding: 0 8px !important;
    }
    
    /* PC端："大家都在玩"标题的上下间距 */
    .play-title {
        margin: 0.8rem 0 0.6rem !important;
    }
    
    .app-download-btn img {
        width: 110px;
    }
}
