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

html {
    font-size: 14px;
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #000;
}

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

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

.spinner {
    width: 3.571rem;
    height: 3.571rem;
    border: 0.286rem solid rgba(255, 255, 255, 0.3);
    border-top-color: #ff6b6b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

/* ========== PC端 (min-width: 993px) ========== */
@media screen and (min-width: 993px) {
    .mobile-only {
        display: none !important;
    }

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

    .wrap-body {
        max-width: 85.714rem;
        width: 100%;
        margin: 0 auto;
        min-height: 100vh;
        height: 100vh;
        overflow-x: hidden;
        overflow-y: auto;
        position: relative;
        display: flex;
        flex-direction: column;
        background: transparent;
    }

    .wrap-body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: #000;
        background-image: url('../images/24@2x.png');
        background-size: 100% auto;
        background-position: center top;
        background-repeat: no-repeat;
        z-index: 0;
        pointer-events: none;
    }

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

    .wrap-body > .spinner-container {
        z-index: 9999;
    }

    .main-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: visible;
        min-height: min-content;
    }

    /* 头部 */
    .header {
        padding: 1.429rem 2.143rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: transparent;
        flex-shrink: 0;
        z-index: 10;
    }

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

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

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

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

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

    .header-right {
        display: flex;
        flex-direction: row;
        gap: 0.857rem;
        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:hover {
        transform: translateY(-0.143rem);
        opacity: 0.9;
    }

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

    /* 主内容区 - 左右布局，左侧内容向右靠近美女图 */
    .content-area {
        flex: 1;
        display: flex;
        flex-direction: row;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0.714rem;
        padding: 1rem 1.5rem;
        overflow: visible;
        min-height: min-content;
    }

    /* 左侧 - 加宽向右靠近美女图 */
    .content-left {
        flex: 0 1 50%;
        max-width: 50%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        min-width: 0;
        overflow: visible;
    }

    .content-left-top-img {
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: contain;
        object-position: center center;
        flex-shrink: 1;
        align-self: flex-start;
    }

    /* 二维码与下载按钮等高并排，适度间距，二维码与左侧留距 */
    .content-left-bottom {
        width: fit-content;
        max-width: 100%;
        display: flex;
        flex-direction: row;
        align-items: stretch;
        gap: 0.5rem;
        padding: 0.5rem 0 0.5rem 0;
        margin-left: 2rem;
        align-self: flex-start;
    }

    .qrcode-container {
        flex: 0 0 10rem;
        width: 10rem;
        height: 10rem;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #fff;
        border-radius: 0.5rem;
        padding: 0.5rem;
        margin: 0;
        border: 2px solid #e63946;
        box-sizing: border-box;
    }

    .qrcode-img, .qrcode-container canvas {
        max-width: 100%;
        max-height: 100%;
        width: auto !important;
        height: auto !important;
    }

    .download-buttons-left {
        flex: 0 0 15rem;
        width: 15rem;
        height: 10rem;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 0.357rem;
        justify-content: space-between;
        box-sizing: border-box;
        background: transparent;
    }

    .download-btn-left {
        display: block;
        flex: 1;
        min-height: 0;
        transition: all 0.3s ease;
        border-radius: 0.5rem;
        overflow: hidden;
        background: transparent;
    }

    .download-btn-left:hover {
        transform: translateY(-0.143rem);
        opacity: 0.95;
    }

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

    /* 二维码下方文字与二维码左对齐 */
    .content-left-tips {
        width: 100%;
        padding: 0;
        margin-top: 0.5rem;
        margin-left: 2rem;
        align-self: stretch;
    }

    .content-left-tips .tips-text {
        font-size: 0.857rem;
        color: rgba(255, 255, 255, 0.85);
        line-height: 1.5;
    }

    /* 右侧 - 美女图向左调整，与右侧边框拉大距离 */
    .content-right {
        flex: 1 1 55%;
        min-width: 0;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 0.714rem;
        position: relative;
        z-index: 2;
        overflow: visible;
        margin-right: 1rem;
    }

    .content-right .content-right-img {
        flex: 1;
        width: 100%;
        height: 100%;
        max-height: 100%;
        object-fit: contain;
        object-position: center center;
        min-width: 0;
    }

    /* 小屏PC适配 - 减少尺寸避免遮挡 */
    @media (max-width: 1024px) {
        .header {
            padding: 1rem 1.429rem;
        }
        .header-logo-img {
            max-height: 3.214rem;
        }
        .logo-text {
            font-size: 1.5rem;
        }
        .slogan {
            font-size: 1rem;
        }
        .content-area {
            padding: 1rem 1.429rem;
            gap: 0.714rem;
        }
        .content-left {
            flex: 0 1 48%;
            max-width: 48%;
        }
        .content-right {
            flex: 1 1 60%;
        }
        .qrcode-container {
            flex: 0 0 8rem;
            width: 8rem;
            height: 8rem;
        }
        .download-buttons-left {
            flex: 0 0 12rem;
            width: 12rem;
            height: 8rem;
        }
        .content-left-tips .tips-text {
            font-size: 0.786rem;
        }
    }

    /* 大屏适配 */
    @media (min-width: 1200px) {
        .wrap-body {
            max-width: 100rem;
        }
        .content-area {
            padding: 1.714rem 2.5rem;
            gap: 0.714rem;
        }
        .qrcode-container {
            flex: 0 0 11rem;
            width: 11rem;
            height: 11rem;
        }
        .download-buttons-left {
            flex: 0 0 16rem;
            width: 16rem;
            height: 11rem;
        }
    }

    @media (min-width: 1400px) {
        .wrap-body {
            max-width: 110rem;
        }
        .content-area {
            padding: 2rem 2.857rem;
            gap: 2rem;
            align-items: center;
        }
        .content-left {
            justify-content: flex-start;
        }
        .content-left-bottom {
            margin-top: 2rem;
        }
    }

    @media (min-width: 1600px) {
        .content-left-bottom {
            margin-top: 2.5rem;
        }
    }

    @media (min-width: 1920px) {
        html {
            font-size: 15px;
        }
        .content-area {
            align-items: center;
        }
        .content-left {
            justify-content: center;
        }
        .content-left-bottom {
            margin-top: 3rem;
        }
    }
}
