/* 9色落地页 - 手机端样式 | rem基准: 14px */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    height: 100%;
    height: -webkit-fill-available;
}

html, body {
    height: 100%;
    min-height: 100%;
    min-height: -webkit-fill-available;
    width: 100%;
    overflow-x: hidden;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #000;
    -webkit-tap-highlight-color: transparent;
}

a {
    text-decoration: none;
    color: #fff;
}

/* 加载提示 */
.spinner-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    height: -webkit-fill-available;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

img {
    display: block;
    line-height: 0;
    vertical-align: top;
    margin: 0;
    padding: 0;
    border: 0;
}

/* ========== 手机端 (max-width: 992px) 兼容扫码、微信等内嵌浏览器 ========== */
@media screen and (max-width: 992px) {
    .pc-only {
        display: none !important;
    }

    /* 手机端不显示二维码 */
    #qrcode-container,
    .qrcode-container {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    .wrap-body {
        max-width: 34.286rem;
        width: 100%;
        margin: 0 auto;
        min-height: 100vh;
        min-height: 100dvh;
        min-height: -webkit-fill-available;
        height: 100vh;
        height: 100dvh;
        height: -webkit-fill-available;
        overflow: hidden;
        position: relative;
        display: flex;
        flex-direction: column;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    .wrap-body::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        min-height: -webkit-fill-available;
        background-color: #000;
        background-image: url('../images/24@2x.png');
        background-size: 100% auto;
        background-position: top center;
        background-repeat: no-repeat;
        z-index: 0;
        pointer-events: none;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    .wrap-body > * {
        position: relative;
        z-index: 1;
    }

    .main-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        min-height: 0;
        padding-top: 2rem;
    }

    /* 头部 */
    .header {
        padding: 0.714rem 1.071rem;
        padding-top: max(0.714rem, env(safe-area-inset-top));
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        background: rgba(0, 0, 0, 0.2);
        flex-shrink: 0;
        min-height: 4.286rem;
    }

    .header-logo-box {
        display: flex;
        align-items: flex-start;
        flex-shrink: 0;
    }

    .header-logo-img {
        max-height: 3.571rem;
        width: auto;
        height: auto;
    }

    .header-center {
        flex: 1;
        margin-left: 0.857rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }

    .logo-text {
        font-size: 1.429rem;
        font-weight: bold;
        color: #fff;
        text-shadow: 0.143rem 0.143rem 0.286rem rgba(0, 0, 0, 0.5);
        margin-bottom: 0.143rem;
    }

    .slogan {
        font-size: 0.857rem;
        color: #fff;
        font-weight: 500;
    }

    .header-right {
        display: flex;
        flex-direction: row;
        gap: 0.571rem;
        align-items: center;
        flex-shrink: 0;
    }

    .header-icon-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .header-icon-btn .header-btn-img {
        max-height: 3.571rem;
        width: auto;
        height: auto;
    }

    /* 主内容区（手机端：22-2@2x、22@2x） */
    .content-area {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding: 0 0.5rem;
        min-height: 0;
        overflow: hidden;
    }

    .content-mobile {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
        align-items: stretch;
    }

    /* 22-2@2x 顶部装饰图（缩小） */
    .overlay-img {
        flex: 0 0 auto;
        width: 70%;
        max-height: 14rem;
        margin: 0 auto -8rem;
        object-fit: contain;
        object-position: top center;
        position: relative;
        z-index: 2;
        transform: translateY(-0.5rem);
        -webkit-transform: translateY(-0.5rem);
    }

    /* 22@2x 美女图（上移） */
    .content-mobile .main-img {
        flex: 1 1 0;
        width: 100%;
        min-height: 0;
        max-height: 100%;
        object-fit: cover;
        object-position: bottom center;
        transform: translateY(4rem);
        -webkit-transform: translateY(4rem);
    }

    /* 下载区域：下移 */
    .footer-area {
        flex-shrink: 0;
        width: 100%;
        max-width: 34.286rem;
        padding: 0.286rem 0.5rem 0;
        padding-bottom: max(0.143rem, env(safe-area-inset-bottom));
        z-index: 10;
        transform: translateY(-1.5rem);
        -webkit-transform: translateY(-1.5rem);
    }

    .footer-area .mobile-download-row {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.286rem;
        margin-bottom: 0.143rem;
    }

    .footer-area .mobile-download-row:last-of-type {
        margin-bottom: 0;
    }

    .download-btn {
        flex: 1;
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .download-btn .btn-img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .android-tips {
        margin-top: 0.286rem;
        text-align: center;
    }

    .android-tips .tips-title,
    .android-tips .tip-text {
        font-size: 1.071rem;
        color: #ffd700;
        text-decoration: underline;
        cursor: pointer;
        margin-bottom: 0.286rem;
    }

    .android-tips .tip-text {
        margin-bottom: 0;
    }

    /* 小屏适配 - iPhone SE、小屏安卓 */
    @media (max-width: 375px) {
        html {
            font-size: 13px;
        }
        .logo-text {
            font-size: 1.308rem;
        }
        .overlay-img {
            max-height: 12rem;
            width: 65%;
        }
        .content-mobile .main-img {
            transform: translateY(3rem);
            -webkit-transform: translateY(3rem);
        }
    }

    @media (max-width: 360px) {
        html {
            font-size: 12px;
        }
        .overlay-img {
            max-height: 11rem;
            width: 60%;
        }
        .content-mobile .main-img {
            transform: translateY(2.5rem);
            -webkit-transform: translateY(2.5rem);
        }
    }

    /* 大屏适配 - iPhone Pro Max、大屏安卓 */
    @media (min-width: 414px) and (max-width: 992px) {
        .overlay-img {
            max-height: 16rem;
            width: 75%;
        }
        .content-mobile .main-img {
            transform: translateY(5rem);
            -webkit-transform: translateY(5rem);
        }
    }

    /* 多机型长屏适配 - 800px 起用最大上移，覆盖 90 Pro 等超长屏 */
    @media (min-height: 600px) and (max-height: 699px) and (max-width: 992px) {
        .footer-area {
            transform: translateY(-2.5rem);
            -webkit-transform: translateY(-2.5rem);
        }
    }
    @media (min-height: 700px) and (max-height: 799px) and (max-width: 992px) {
        .footer-area {
            transform: translateY(-3.5rem);
            -webkit-transform: translateY(-3.5rem);
        }
    }
    @media (min-height: 800px) and (max-height: 899px) and (max-width: 992px) {
        .footer-area {
            transform: translateY(-4.5rem);
            -webkit-transform: translateY(-4.5rem);
        }
    }
    /* 90 Pro 等长屏专用 - 视口 900px+，消除留白 */
    @media (min-height: 900px) and (max-width: 992px) {
        .footer-area {
            transform: translateY(-9.5rem);
            -webkit-transform: translateY(-9.5rem);
        }
    }
    /* 超长屏 - 90 Pro Chrome 视口约 980px+，更强上移 */
    @media (min-height: 950px) and (max-width: 992px) {
        .footer-area {
            transform: translateY(-11rem);
            -webkit-transform: translateY(-11rem);
        }
    }
}
