/* ═══════════════════════════════════════════════════════
   BY/default - migrated from HX-046/A
   PC 1920×1080 / H5 750×1624（设计稿 rem = px/100）
   ═══════════════════════════════════════════════════════ */

html, body { margin: 0; padding: 0; }
body { background: #000; }

@media (min-width: 961px) {
    html { font-size: min(5.20833vw, 9.25926vh) !important; }
}
@media (max-width: 960px) {
    html { font-size: min(13.33333vw, 5.83771vh) !important; }
}

.device-desktop .pc-main { display: block; }
.device-mobile .h5-main { display: block; }

.h5-main img, .pc-main img { display: block; max-width: none; }

/* ───────── 轮播 slide 图层 ───────── */
.slide-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}
.slide-context {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    user-select: none;
}
.slide-main {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

/* ═══════════════════════════════════════════════════════
   PC
   ═══════════════════════════════════════════════════════ */
.pc-main {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.pc-slide-swiper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.pc-slide-swiper .swiper-slide {
    width: 100%;
    height: 100%;
}

.pc-main .slide-context {
    height: auto;
}

/* PC 文案图按设计稿原图尺寸（1920 画布） */
.pc-main .slide-context-1 {
    left: 0.52rem;
    top: 1.72rem;
    width: 7.1rem;
}
.pc-main .slide-context-2 {
    left: 0.52rem;
    top: 1.72rem;
    width: 7.03rem;
}
.pc-main .slide-context-3 {
    left: 0.48rem;
    top: 1.38rem;
    width: 7.95rem;
}

/* PC 人像主图按设计稿原图尺寸 */
.pc-main .slide-main {
    right: 0;
    bottom: 0;
    height: auto;
    object-fit: contain;
    object-position: bottom right;
}
.pc-main .slide-main-1 {
    width: 9.47rem;
    max-height: 100%;
}
.pc-main .slide-main-2 {
    width: 11.31rem;
    max-height: 100%;
}
.pc-main .slide-main-3 {
    width: 8.52rem;
    max-height: 100%;
}

.pc-header {
    position: absolute;
    top: 0.32rem;
    left: 0.5rem;
    right: 0.5rem;
    z-index: 10;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    pointer-events: none;
}
.pc-header > * { pointer-events: auto; }

.pc-logo {
    width: 2.4rem;
    height: auto;
}

.pc-header-actions {
    display: flex;
    align-items: center;
    gap: 0.16rem;
}
.pc-header-actions button {
    display: block;
    transition: opacity 0.2s, transform 0.2s;
    border: 0;
    padding: 0;
    cursor: pointer;
}
.pc-header-actions button:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}
.pc-header-actions button:disabled {
    cursor: default;
}
.pc-header-actions button:disabled:hover {
    opacity: 1;
    transform: none;
}
.pc-header-actions img {
    height: 0.74rem;
    width: auto;
}

/* 左下扫码区：轮播1/2 距底 70px，轮播3 距底 22px（1920 画布） */
.pc-scan-wrap {
    position: absolute;
    left: 0.52rem;
    bottom: 0.7rem;
    z-index: 10;
    width: 6.67rem;
    transition: bottom 0.35s ease;
}
.pc-scan-wrap.is-slide-3 {
    bottom: 0.22rem;
}
.pc-scan-img {
    width: 100%;
    height: auto;
    display: block;
}
.pc-scan-wrap .con-code {
    position: absolute;
    left: 1.35%;
    top: 50%;
    transform: translateY(-50%);
    width: 26.2%;
    aspect-ratio: 1;
    height: auto;
    max-height: 88%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
    padding: 0.02rem;
}
.pc-scan-wrap .con-code canvas,
.pc-scan-wrap .con-code img {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* PC 短屏适配 */
@media (min-width: 961px) and (max-height: 900px) {
    .pc-main .slide-context-1 { top: 1.45rem; width: 6.2rem; }
    .pc-main .slide-context-2 { top: 1.45rem; width: 6.15rem; }
    .pc-main .slide-context-3 { top: 1.22rem; width: 6.9rem; }
    .pc-main .slide-main-1 { width: 8.2rem; }
    .pc-main .slide-main-2 { width: 9.8rem; }
    .pc-main .slide-main-3 { width: 7.4rem; }
    .pc-header {
        top: 0.24rem;
        left: 0.4rem;
        right: 0.4rem;
    }
    .pc-logo { width: 2rem; }
    .pc-header-actions img { height: 0.44rem; }
    .pc-scan-wrap {
        bottom: 0.56rem;
        width: 5.6rem;
    }
    .pc-scan-wrap.is-slide-3 {
        bottom: 0.18rem;
    }
}

@media (min-width: 961px) and (max-height: 760px) {
    .pc-main .slide-context-1 { top: 1.28rem; width: 5.5rem; }
    .pc-main .slide-context-2 { top: 1.28rem; width: 5.45rem; }
    .pc-main .slide-context-3 { top: 1.08rem; width: 6.1rem; }
    .pc-main .slide-main-1 { width: 7.2rem; }
    .pc-main .slide-main-2 { width: 8.6rem; }
    .pc-main .slide-main-3 { width: 6.5rem; }
    .pc-scan-wrap {
        bottom: 0.44rem;
        width: 4.9rem;
    }
    .pc-scan-wrap.is-slide-3 {
        bottom: 0.14rem;
    }
}

/* ═══════════════════════════════════════════════════════
   H5
   ═══════════════════════════════════════════════════════ */
.h5-main {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    background: #000;
}

.h5-slide-swiper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.h5-slide-swiper .swiper-slide {
    width: 100%;
    height: 100%;
}

.h5-main .slide-context {
    height: auto;
}

/* H5 文案图按设计稿原图尺寸（750 画布） */
.h5-main .slide-context-1 {
    left: 0.24rem;
    top: 1.45rem;
    width: 4.23rem;
}
.h5-main .slide-context-2 {
    left: 0.24rem;
    top: 1.45rem;
    width: 5.24rem;
}
.h5-main .slide-context-3 {
    left: 0.24rem;
    top: 1.45rem;
    width: 4.27rem;
}

/* 人像主图叠在底部，下载按钮浮于其上 */
.h5-main .slide-main {
    position: absolute;
    z-index: 1;
    height: auto;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    bottom: 0;
}

/* 图1: 648×1048 */
.h5-main .slide-main-1 {
    right: 0;
    width: 6.48rem;
    max-width: 100%;
    object-position: bottom right;
}

/* 图2: 750×836，设计合成宽约 869，略放大铺满避免右侧露黑 */
.h5-main .slide-main-2 {
    left: 50%;
    transform: translateX(-50%);
    width: 8.69rem;
    min-width: 100%;
    max-width: none;
    object-position: center bottom;
}

/* 图3: 739×1094 */
.h5-main .slide-main-3 {
    right: 0;
    width: 7.39rem;
    max-width: 100%;
    object-position: bottom right;
}

.h5-header {
    position: absolute;
    top: 0.2rem;
    left: 0.24rem;
    right: 0.24rem;
    z-index: 10;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    pointer-events: none;
}
.h5-header > * { pointer-events: auto; }

.h5-logo {
    width: 2rem;
    height: auto;
}

.h5-header-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.12rem;
}
.h5-header-actions button {
    display: block;
    border: 0;
    padding: 0;
}
.h5-header-actions button:disabled {
    cursor: default;
}
.h5-header-actions img {
    height: 0.56rem;
    width: auto;
}

/* 底部下载区：透明浮层叠在 main 图上 */
.h5-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.2rem;
    z-index: 15;
    padding: 0 0.4rem calc(0.14rem + env(safe-area-inset-bottom, 0));
    background: none;
    pointer-events: none;
}
.h5-footer > * {
    pointer-events: auto;
}

.h5-download-btns {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 0.29rem;
}
.h5-dl-btn {
    flex: 1;
    display: block;
    min-width: 0;
    border: 0;
    padding: 0;
    cursor: pointer;
}
.h5-dl-btn img {
    width: 100%;
    height: auto;
    display: block;
}

/* iOS 商店版按钮：右上角「推荐」角标 */
.h5-dl-store {
    position: relative;
}
.h5-dl-store .dl-badge {
    position: absolute;
    top: -0.12rem;
    right: -0.04rem;
    background: #ffd000;
    color: #c8302b;
    font-size: 0.2rem;
    font-weight: 700;
    line-height: 1.5;
    padding: 0 0.12rem;
    border-radius: 999px;
    z-index: 3;
    pointer-events: none;
}

.h5-bot-text {
    display: block;
    width: 100%;
    color: #fff;
    font-size: 0.22rem;
    text-align: center;
    padding: 0.1rem 0.2rem 0;
    line-height: 1.4;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
    border: 0;
    background: none;
    cursor: pointer;
}

/* 小屏 H5 适配 */
@media (max-width: 960px) and (max-height: 700px) {
    .h5-main .slide-context-1 { top: 1.2rem; width: 3.8rem; }
    .h5-main .slide-context-2 { top: 1.2rem; width: 4.7rem; }
    .h5-main .slide-context-3 { top: 1.2rem; width: 3.85rem; }
    .h5-main .slide-main-1 { width: 6.1rem; }
    .h5-main .slide-main-3 { width: 7rem; }
    .h5-logo { width: 1.7rem; }
    .h5-header-actions img { height: 0.48rem; }
}

/* ═══════════════════════════════════════════════════════
   通用：报毒弹窗 / iOS 蒙层 / 浮动广告
   ═══════════════════════════════════════════════════════ */
.ios-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.84);
    z-index: 9998;
    display: none;
    justify-content: center;
    align-items: center;
}

.ios-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 7.02rem;
    height: 9.22rem;
    background: #2f3039;
    border-radius: 12px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.3rem 0.2rem;
    box-sizing: border-box;
    z-index: 9999;
    text-align: center;
}

.modal-header p {
    font-size: 0.26rem;
    line-height: 1.5;
    margin: 5px 0;
}

.modal-header .text-danger {
    color: #ff034f;
    font-weight: bold;
}

.modal-body {
    width: 96%;
    margin: 0 auto;
}

.android-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 20;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.android-modal .header {
    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;
    right: 0;
    height: 0.9rem;
    background: #fff;
}

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

.android-modal-arrow,
.platform-item {
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    background: none;
    cursor: pointer;
}

.android-modal-arrow {
    width: 0.4rem;
}

.header-placeholder {
    width: 0.4rem;
}

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

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

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

.android-modal .contentAnser {
    display: none;
}

.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-slide {
    position: absolute;
    inset: 0;
    display: none;
    opacity: 0;
    transition: opacity 0.4s;
}

.ad-slide.active {
    display: block;
    opacity: 1;
}

.ad-slide img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 4px;
}

.ad-close {
    position: absolute;
    top: -4px;
    right: 4px;
    color: #555;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    padding: 2px 4px;
}
