/* === EXACT 51fuli1.com CSS REPLICA === */
* {
    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;
}

html {
    overflow-x: hidden;
}

.bg-fixed {
    display: block;
    position: fixed;
    top: 0.9rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 650px;
    height: 100%;
    background-image: url(../images/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;
}

.header-wrap {
    position: fixed;
    top: 0;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 100%;
    max-width: 650px;
    z-index: 10;
    background-color: rgb(255 65 66);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 13px;
}

.logo {
    width: 35vw;
    max-width: 129px;
    margin-right: 10px;
}

.logo img {
    width: 100%;
}

/* Marquee */
.marquee {
    flex: 1;
    min-width: 0;
    line-height: 25px;
    background-color: #fff;
    color: rgb(84, 0, 0);
    white-space: nowrap;
    overflow: hidden;
    box-sizing: border-box;
    border-radius: 14.8px;
}

.marquee p {
    display: inline-block;
    padding-left: 2%;
    font-size: .833rem;
    animation: marquee 10s 1s linear infinite;
}

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

.main-content {
    padding-top: calc(min(10.62vw, 69px) + 30px);
}

.banner-wrap {
    padding: 0 15px;
}

.banner {
    border-radius: 10px;
    margin: 0 auto;
    overflow: hidden;
}

.banner img {
    width: 100%;
    border-radius: 10px;
}

/* Tab Header */
.list-tabs .list-tabs-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.list-tabs {
    position: relative;
}

.swiper-container .swiper-slide {
    height: 0;
}

.swiper-container .swiper-slide-active {
    height: 100%;
}

.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-header .list-tabs-item.swiper-pagination-bullet-active {
    color: rgb(243, 55, 71);
}

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

/* App Grid */
.list-block {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0 5px;
    flex-wrap: wrap;
}

.app-first-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    text-align: center;
    padding: 0 1.8rem;
}

.list-item {
    width: calc(20% - 0.48rem);
    padding: 0 0.03rem;
    box-sizing: border-box;
    text-align: center;
    margin-bottom: 0.3rem;
}

.list-item:not(:nth-child(5n)) {
    margin-right: 0.6rem;
}

.app-icon {
    border-radius: 20px;
    text-align: center;
    display: block;
    margin: 5px auto;
}

.app-icon img {
    width: 100%;
    height: 100%;
    border-radius: 15px;
}

.app-name p {
    font-size: .7rem;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

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

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

/* Bottom Content */
.bottom-content {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    padding: 0 15px;
}

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

/* Item Wrap (大家都在玩) */
.item-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
    margin-bottom: 1rem;
}

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

.img-wrap img {
    width: 100%;
    height: 100%;
    border-radius: 15px;
}

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

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

.play-title {
    margin: 1rem 0;
}

.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: 5rem;
}

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

.app-download-btn img {
    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;
}

/* Notice & Popup Modals */
.notice {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 20;
}

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

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

.notice .notice-img-div {
    width: 81%;
    max-width: 300px;
    position: relative;
    z-index: 20;
}

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

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

.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;
}

.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;
    scrollbar-width: none;
}

.notice .close-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 25px;
}

.notice.ad-item .p-subwrap {
    border-radius: 10px;
}

/* Bottom Fixed Bar */
.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%;
    border-radius: 15px;
}

.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;
}

/* === Responsive === */
@media screen and (max-width: 768px) {
    .bg-fixed { background-image: none !important; }
    .img-wrap { width: 5rem; height: 5rem; }
    .list-tabs .list-tabs-header .list-tabs-item { font-size: 1rem; }
    .app-first-row { padding: 0 0.6rem; }
    .list-item { width: calc(20% - 0.48rem); }
    .app-name p { font-size: 0.8rem; }
}

@media screen and (max-width: 414px) {
    .bg-fixed { background-image: none !important; }
    .app-name p { font-size: .7rem; display: inline-block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; }
    .list-tabs .list-tabs-header .list-tabs-item.swiper-pagination-bullet-active::after { width: 2rem; height: 4px; margin-left: -1rem; border-radius: 30px; }
    .rating span { font-size: .75rem; }
    .app-slogan h3 { font-size: 0.8rem; }
    .app-download-btn { width: 4rem; }
}

/* === 强制手机版：PC访问也只显示居中650px手机竖版，无电脑版 === */
@media screen and (min-width: 651px) {
    body { background: #ededed; }
    .bg-fixed { box-shadow: 0 0 14px rgba(0, 0, 0, 0.15); }
    .header-wrap { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); }
}

/* Fix for no-Swiper carousel */
.swiper-wrapper{display:flex!important}
#topBn .swiper-slide,#botBn .swiper-slide{flex:0 0 100%;min-width:100%}
#tabPages .swiper-slide{display:none}
#tabPages .swiper-slide:first-child{display:block}
#topBn .swiper-slide,#botBn .swiper-slide,#tabPages .swiper-slide{height:auto!important}
.banner img{width:100%}
.bottom-fixed-app{display:flex!important}

/* === Additional fixes for layout without Swiper JS === */
#tabPages .swiper-slide{height:auto!important;overflow:visible!important}
.list-tabs .swiper-container{overflow:visible!important}
#topBn .swiper-wrapper,#botBn .swiper-wrapper{display:flex!important}
#topBn .swiper-slide,#botBn .swiper-slide{height:auto!important}
#topBn,#botBn{overflow:hidden}
.list-tabs-header{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch}
.list-tabs-header::-webkit-scrollbar{display:none}
.list-tabs-item{flex-shrink:0}

/* Download button align right */
a.item-wrap{display:flex!important;justify-content:space-between!important;align-items:center!important;width:100%}
a.item-wrap .app-download-btn{margin-left:auto;flex-shrink:0}

/* Fix all banner swipers - height and visibility */
#tc .swiper-slide,#bc .swiper-slide,#tc .swiper-wrapper,#bc .swiper-wrapper{height:auto!important}
#tc .swiper-slide,#bc .swiper-slide{flex:0 0 100%;min-width:100%}
#tc,#bc{overflow:hidden}
.banner .swiper-slide{height:auto!important}
.banner .swiper-slide-active{height:auto!important}
