.desktop {
    color: #fff;
    width: 100%;
    height: 100%;
    font-size: 0px;
    overflow: hidden;
}

* {
    -webkit-user-drag: none;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.desktop .fixed-bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    object-fit: cover;
}

.logo {
    width: 15vw;
}

.desktop .fixed-bg * {
    object-fit: cover;
}

.content {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.top {
    padding: 40px 100px 0 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.desktop .contact {
    display: flex;
    cursor: pointer;
}

.desktop .contact img {
    margin-top: 5vh;
    width: 8vw;
    object-fit: contain;
    margin-left: 2vw;
}


.slg {
    position: relative;
    display: block;
    transform: translateY(-10vh);
    /* 随高度收缩，避免溢出 */
    height: auto;
    width: auto;
    max-width: 80%;
    max-height: 70vh;
    object-fit: contain;
}

.bottom {
    flex: 1;
    display: flex;
    justify-content: space-around;
    align-items: center;
    overflow: visible;
    /* 允许内容溢出显示 */
}

/* 底部二维码与框的叠加布局 */
.bottom-bar .qrwrap {
    position: relative;
    display: inline-block;
}

.bottom-bar .qrbox {
    display: block;
    position: relative;
    z-index: 1;
    width: 200px;
    /* 与 qrcode-box 同宽，确保覆盖对齐 */
    height: auto;
}

.bottom-bar .qrwrap .qrcode-box {
    position: absolute;
    left: 59%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    /* 与内部二维码宽度+padding匹配 */
    height: 160px;
    border: none;
    /* 使用图片作为外框，去掉额外边框 */
    box-shadow: none;
    background: transparent;
    z-index: 2;
}

.bottom-bar .qrwrap .qrcode-box .inside {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background: #fff;
}

/* 右侧说明文字图片，与二维码水平居中叠加 */
.bottom-bar .qrwrap .ucdr {
    position: absolute;
    top: 50%;
    left: calc(50% + 95px);
    /* 右移约半个二维码宽度+余量 */
    transform: translateY(-50%);
    height: 80px;
    /* 与生成的二维码高度一致 */
    z-index: 3;
    pointer-events: none;
}

.downloadArea {
    display: flex;
    position: absolute;
    right: 20vw;
    bottom: 12vw;
}

.main-left {
    height: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.slg-area {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    /* 垂直居中 */
    justify-content: center;
    /* 水平居中 */
    overflow: visible;
}

/* 小屏高度优化：随屏幕高度调整位移与最大高度 */
@media (max-height: 820px) {
    .slg {
        transform: translateY(-6vh);
        max-height: 60vh;
    }
}

@media (max-height: 700px) {
    .slg {
        transform: translateY(-4vh);
        max-height: 52vh;
    }
}

.slg-area .tittle {
    position: absolute;
    left: 50%;
    top: 58%;
    transform: translate(-50%, -50%);
    z-index: 2;
    max-width: 60%;
    max-height: 70%;
    object-fit: contain;
    pointer-events: none;
}

.slg-wrap {
    position: relative;
    height: 100%;
}



.content .qrcode-box {
    font-size: 0;
    display: inline-block;
    width: 160px;
    height: 160px;
    box-sizing: border-box;
    border-radius: 10px;
    border: 2px solid black;
}

.inside {
    border-radius: 10px;
    background: #fff;
    height: 100%;
}


.btn-right {
    margin-left: 2vw;
}

.qrcode_tip {
    font-size: 1vw;
    font-weight: 100;
    position: fixed;
    bottom: 1vw;
    margin-left: .5vw;
}

#qrcode img {
    visibility: visible !important;
}

.btn-box {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-around;
}

.btn-box .btn {
    display: inline-block;
    border: none;
    outline: none;
    cursor: pointer;
    transition: all .3s ease;
    background: transparent;
    font-size: 24px;
}

.btn-box img {
    width: 100%;
}

.right {
    position: relative;
    top: -10vw;
    right: 3vw;
    width: 15vw;
    height: 100%;
    object-fit: contain
}

/* 底部横条：按钮与二维码同排 */
.bottom-bar {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 4vw;
    z-index: 10;
}

/* ===== 横屏（桌面） ===== */
@media screen and (orientation: landscape) {
    .right {
        position: relative;
        object-fit: contain;
        animation: blink 3s infinite;

        /* ✅ 用高度自适应，而不是固定宽度 */
        height: 55vh;
        /* 图片高度占屏幕高度的 55% */
        width: auto;
        /* 按比例自适应宽度 */
        max-width: 20vw;
        /* 防止太宽 */
        top: -4vw;
        right: 3vw;
    }
}

/* ===== 竖屏（手机或竖屏显示器） ===== */
@media screen and (orientation: portrait) {
    .right {
        position: relative;
        object-fit: contain;
        animation: blink 3s infinite;

        height: 35vh;
        /* ✅ 高度随屏幕高度变化 */
        width: auto;
        /* 自动保持比例 */
        max-width: 70vw;
        /* 防止横向撑满 */

        margin-top: 5vw;
        margin-bottom: 5vh;
    }
}