/* 设计稿 750；H5 1rem = 100vw / 7.5；PC >=961 按 1920 折算 */
* { box-sizing: border-box; }

html, body, div, section, header, footer, aside, ul, ol, li,
table, tr, th, td, button, input, textarea, select,
h1, h2, h3, h4, h5, h6, em, i, strong, p, span, blockquote, a {
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6, th, i, input, textarea, button, select {
    font-weight: normal;
    font-style: normal;
}

ul, ol { list-style: none; }

img, a img { border: none; vertical-align: top; }

a { text-decoration: none; color: inherit; }

html {
    height: 100%;
    font-size: 13.33333vw;
}

@media (min-width: 751px) and (max-width: 960px) {
    html { font-size: 100px; }
}

@media (min-width: 961px) {
    html { font-size: 5.20833vw; }
}

body {
    background: #171823;
    width: 100%;
    position: relative;
    font-size: 0.14rem;
    overflow-x: hidden;
    min-height: 100%;
    margin: 0 auto;
    font-family: "PingFang SC", "Microsoft YaHei", "SF Pro SC", "SF Pro Text",
        "SF Pro Icons", "Avenir Neue", Helvetica, Arial, sans-serif !important;
}

/* ========== 布局切换：H5 / PC ========== */
.page-h5 { display: flex; }
.page-pc { display: none; }

@media (min-width: 961px) {
    .page-h5 { display: none; }
    .page-pc { display: flex; }
}

.page-h5,
.page-pc {
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    flex-direction: column;
    overflow: hidden;
}

.page-pc {
    max-width: 7.5rem;
    margin: 0 auto;
}

/* ========== 顶栏 ========== */
.h-box {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 0.24rem 0.2rem;
    border-radius: 0 0 0.2rem 0.2rem;
    flex-shrink: 0;
    z-index: 10;
}

.logo {
    width: 3.73rem;
    height: auto;
}

.r-box {
    display: flex;
    align-items: center;
    gap: 0.12rem;
}

.tg-img {
    width: 1rem;
    height: auto;
    display: block;
}

@media (min-width: 961px) {
    .page-pc .tg-img {
        width: 0.8rem;
        margin-right: 0.12rem;
    }
}

/* ========== 主内容区（可滚动，可在此追加模块） ========== */
.main-box {
    flex: 1;
    background-color: #171823;
    overflow-y: auto;
    overflow-x: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.main-box::-webkit-scrollbar { display: none; }

.main-inner {
    display: block;
    color: inherit;
}

.section {
    width: 100%;
    display: flex;
    justify-content: center;
}

.section-banner { padding: 0.2rem 0.24rem 0.1rem; }
.section-nav { padding: 0 0.24rem; }
.section-feed { padding: 0.2rem 0 0.3rem; }

.banner-img {
    width: 7.02rem;
    height: auto;
    display: block;
    border-radius: 0.12rem;
}

.nav-img {
    width: 7.02rem;
    height: auto;
    display: block;
}

.feed-img {
    width: 7.5rem;
    max-width: 100%;
    height: auto;
    display: block;
}

.banner-swiper {
    width: 7.02rem;
    border-radius: 0.12rem;
    overflow: hidden;
}

.banner-swiper .swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.banner-swiper .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
}

.banner-swiper .swiper-pagination-bullet-active {
    background: #f42c54;
    opacity: 1;
}

/* 可替换的真实内容卡片区（默认隐藏，按需打开） */
.content-slots { display: none; }

.content-slots.is-on {
    display: block;
    padding: 0 0.24rem 0.3rem;
}

.slot-title {
    color: #fff;
    font-size: 0.28rem;
    margin: 0.2rem 0 0.16rem;
}

.card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.12rem;
}

.card-grid img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.08rem;
}

/* ========== 底栏 ========== */
.f-box {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    background-color: #2f3039;
    padding: 0.2rem 0.32rem;
    padding-bottom: calc(0.4rem + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    z-index: 99;
    flex-shrink: 0;
}

.page-h5 .f-box {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    max-width: 7.5rem;
}

.down-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.24rem;
    box-sizing: border-box;
}

.ios-dl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    padding: 0.18rem 0.32rem;
    border-radius: 999px;
    background: #f42c54;
    color: #fff;
    font-size: 0.26rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    border: none;
    box-sizing: border-box;
}

.down-btn.ios-count-1 .ios-dl-btn { min-width: 4.4rem; }
.down-btn.ios-count-2 .ios-dl-btn { min-width: 2.8rem; }
.down-btn.ios-count-3 { gap: 0.14rem; }
.down-btn.ios-count-3 .ios-dl-btn {
    min-width: 2rem;
    padding: 0.18rem;
    font-size: 0.24rem;
}

.android-btn-wrap {
    position: relative;
    display: inline-block;
    line-height: 0;
}

.f-btn {
    width: 3.4rem;
    height: auto;
    display: block;
}

.android-ver-dot {
    position: absolute;
    right: 0.16rem;
    top: 50%;
    width: 0.14rem;
    height: 0.14rem;
    margin-top: -0.07rem;
    border-radius: 50%;
    background: #000;
}

.bot-text {
    color: #fff;
    font-size: 0.25rem;
    border-bottom: 0.01rem solid #585858;
    padding-top: 0.1rem;
    text-align: center;
    cursor: pointer;
}

.btn-ios { display: none; }
.btn-android { display: none; }

.is-ios .btn-ios { display: block; }
.is-android .btn-android { display: block; }
.is-ios .down-btn { justify-content: space-between; }

/* PC 底栏二维码 */
.code-box {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
}

.qr-wrap {
    width: 2.06rem;
    height: 2.06rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    position: relative;
    padding: 0.08rem;
}

.qr-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.down-img {
    width: 3.26rem;
    height: auto;
    display: block;
}

/* ========== 安卓安装引导页 ========== */
.android-modal {
    display: none;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 7.5rem;
    max-width: 100%;
    min-height: 100%;
    z-index: 200;
    background: #fff;
}

.android-modal.is-open { display: block; }

.android-modal .header {
    width: 100%;
    display: flex;
    align-items: center;
    color: #000;
    padding: 0.1rem 0.2rem;
    box-shadow: 0 0.03rem 0.05rem rgba(57, 63, 72, 0.1);
    justify-content: space-between;
    position: sticky;
    top: 0;
    left: 0;
    height: 0.9rem;
    background: #fff;
    z-index: 2;
}

.android-modal .header .android-modal-arrow {
    width: 0.5rem;
    height: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.android-modal .header .android-modal-arrow img {
    width: 0.25rem;
}

.android-modal .header .title {
    font-size: 0.25rem;
    color: #000;
}

.android-modal .content { padding: 0.55rem 0.2rem; }

.android-modal .content .platform-item {
    margin-bottom: 0.2rem;
    cursor: pointer;
}

.android-modal .content .platform-item img,
.android-modal .content .pic img {
    width: 100%;
    height: auto;
    display: block;
}

.android-modal .contentAnser { display: none; }
.android-modal .contentAnser.is-open { display: block; }

/* ========== 右下角浮动广告 ========== */
.ad-float-box {
    position: fixed;
    bottom: 125px;
    right: 14px;
    width: 88px;
    height: 88px;
    z-index: 999;
}

@media (min-width: 961px) {
    .ad-float-box { display: none !important; }
}

.ad-float-box .swiper,
.ad-float-box .swiper-slide,
.ad-float-box img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 4px;
    object-fit: cover;
}

.ad-close {
    position: absolute;
    top: -6px;
    right: 2px;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    padding: 2px 6px;
    text-shadow: 0 0 2px #000;
}

/* 让主内容不被固定底栏挡住 */
.page-h5 .main-box {
    height: auto;
    flex: 1;
    padding-bottom: 2rem;
}

.page-pc .main-box {
    height: calc(100vh - 4rem);
}
