.download-app-dialog-mask {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    padding: 24px;
    box-sizing: border-box;
}

.download-app-dialog-mask.is-open {
    display: flex;
}

.download-app-dialog-card--h5 {
    display: none;
}

.download-app-dialog-card--pc {
    width: 760px;
    height: 500px;
    position: relative;
    background: linear-gradient(90deg, #2B1233 0%, #101F41 100%);
    box-shadow: 0px 24px 50px rgba(0, 0, 0, 0.55);
    overflow: hidden;
    border-radius: 24px;
    outline: 1px rgba(255, 255, 255, 0.14) solid;
    outline-offset: -1px;
    flex-shrink: 0;
}

.download-app-dialog-title {
    left: 28px;
    top: 22px;
    position: absolute;
    color: white;
    font-size: 24px;
    font-family: PingFang SC;
    font-weight: 400;
    line-height: 30px;
    word-wrap: break-word;
}

.download-app-dialog-subtitle {
    left: 28px;
    top: 60px;
    position: absolute;
    color: #A49DB4;
    font-size: 14px;
    font-family: PingFang SC;
    font-weight: 400;
    line-height: 20px;
    word-wrap: break-word;
}

.download-app-dialog-divider {
    width: 760px;
    height: 1px;
    left: 0;
    top: 92px;
    position: absolute;
    background: rgba(255, 255, 255, 0.12);
}

.download-app-dialog-close {
    width: 36px;
    height: 36px;
    left: 700px;
    top: 24px;
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    border-radius: 18px;
    outline: 1px rgba(255, 255, 255, 0.18) solid;
    outline-offset: -1px;
    justify-content: center;
    align-items: center;
    display: inline-flex;
    border: none;
    cursor: pointer;
    color: #BCB7C8;
    font-size: 20px;
    font-family: PingFang SC;
    font-weight: 400;
    line-height: 26px;
    padding: 0;
}

.download-app-dialog-feature {
    width: 440px;
    height: 102px;
    left: 28px;
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
    border-radius: 16px;
    outline: 1px rgba(255, 255, 255, 0.12) solid;
    outline-offset: -1px;
}

.download-app-dialog-feature--1 {
    top: 116px;
}

.download-app-dialog-feature--2 {
    top: 232px;
}

.download-app-dialog-feature--3 {
    top: 348px;
}

.download-app-dialog-feature-title {
    left: 18px;
    top: 15px;
    position: absolute;
    color: white;
    font-size: 18px;
    font-family: PingFang SC;
    font-weight: 400;
    line-height: 24px;
    word-wrap: break-word;
}

.download-app-dialog-feature-desc {
    left: 18px;
    top: 50px;
    right: 18px;
    position: absolute;
    color: #A6A0B5;
    font-size: 14px;
    font-family: PingFang SC;
    font-weight: 400;
    line-height: 20px;
    word-wrap: break-word;
}

.download-app-dialog-qr-panel {
    width: 236px;
    height: 334px;
    left: 492px;
    top: 116px;
    position: absolute;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
    border-radius: 18px;
    outline: 1px rgba(255, 255, 255, 0.14) solid;
    outline-offset: -1px;
}

.download-app-dialog-platform-tabs {
    left: 18px;
    top: 16px;
    position: absolute;
    display: flex;
    gap: 8px;
}

.download-app-dialog-platform {
    height: 30px;
    min-width: 56px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.07);
    overflow: hidden;
    border-radius: 15px;
    outline: 1px rgba(255, 255, 255, 0.16) solid;
    outline-offset: -1px;
    justify-content: center;
    align-items: center;
    display: inline-flex;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 12px;
    font-family: PingFang SC;
    font-weight: 400;
    line-height: 18px;
    box-sizing: border-box;
}

.download-app-dialog-platform.is-active {
    background: #F12B9E;
    outline: none;
}

.download-app-dialog-qr-box {
    width: 184px;
    height: 184px;
    left: 26px;
    top: 58px;
    position: absolute;
    background: white;
    overflow: hidden;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 10px;
}

.download-app-dialog-qr-box > img,
.download-app-dialog-qr-box > canvas {
    width: 164px;
    height: 164px;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
    background: #fff;
}

.download-app-dialog-copy {
    width: 204px;
    height: 42px;
    left: 16px;
    top: 254px;
    position: absolute;
    background: #F12B9E;
    overflow: hidden;
    border-radius: 21px;
    justify-content: center;
    align-items: center;
    display: inline-flex;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 14px;
    font-family: PingFang SC;
    font-weight: 400;
    line-height: 20px;
    padding: 0;
}

.download-app-dialog-copy.is-copied {
    background: #9C26F4;
}

.download-app-dialog-qr-hint {
    left: 16px;
    right: 16px;
    top: 306px;
    position: absolute;
    color: #918A9E;
    font-size: 12px;
    font-family: PingFang SC;
    font-weight: 400;
    line-height: 18px;
    word-wrap: break-word;
    text-align: center;
}

/* —— H5 简洁弹窗 —— */
@media (max-width: 767px) {
    .download-app-dialog-mask {
        padding: 16px;
    }

    .download-app-dialog-card--pc {
        display: none;
    }

    .download-app-dialog-card--h5 {
        width: 320px;
        max-width: 100%;
        padding: 24px;
        background: #121118;
        box-shadow: 0px 14px 32px rgba(0, 0, 0, 0.45);
        overflow: hidden;
        border-radius: 18px;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 18px;
        display: inline-flex;
        position: relative;
        box-sizing: border-box;
    }

    .download-app-dialog-close--h5 {
        left: auto;
        right: 12px;
        top: 12px;
        width: 28px;
        height: 28px;
        background: transparent;
        outline: none;
        color: #8E889C;
        font-size: 22px;
        line-height: 1;
        z-index: 1;
    }

    .download-app-dialog-h5-brand {
        overflow: hidden;
        justify-content: flex-start;
        align-items: center;
        gap: 10px;
        display: inline-flex;
    }

    .download-app-dialog-h5-logo {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        object-fit: cover;
        display: block;
    }

    .download-app-dialog-h5-name {
        color: white;
        font-size: 22px;
        font-family: PingFang SC;
        font-weight: 400;
        line-height: 28px;
        word-wrap: break-word;
    }

    .download-app-dialog-h5-title {
        color: #BEB9CB;
        font-size: 14px;
        font-family: PingFang SC;
        font-weight: 400;
        line-height: 20px;
        word-wrap: break-word;
        text-align: center;
    }

    .download-app-dialog-h5-desc {
        color: #8E889C;
        font-size: 12px;
        font-family: PingFang SC;
        font-weight: 400;
        line-height: 18px;
        word-wrap: break-word;
        text-align: center;
    }

    .download-app-dialog-h5-qr-box {
        width: 180px;
        height: 180px;
        position: relative;
        background: white;
        overflow: hidden;
        border-radius: 10px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        padding: 8px;
    }

    .download-app-dialog-h5-qr-box > img,
    .download-app-dialog-h5-qr-box > canvas {
        width: 164px;
        height: 164px;
        display: block;
        flex-shrink: 0;
        object-fit: contain;
        background: #fff;
    }

    .download-app-dialog-h5-url {
        color: #F12B9E;
        font-size: 12px;
        font-family: PingFang SC;
        font-weight: 400;
        line-height: 18px;
        word-wrap: break-word;
        text-align: center;
        text-decoration: none;
    }
}
