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

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #0a0a1a;
}

.desktop {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* ============ 背景切换 ============ */
.bg-stack {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.fixed-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bg-1 {
    animation: bgFade 10s infinite;
}

.bg-2 {
    animation: bgFade 10s infinite;
    animation-delay: 5s;
}

@keyframes bgFade {
    0% {
        opacity: 1;
    }

    45% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    95% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* ============ 主容器 ============ */
.content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 2vh 3vw 0;
}

/* ============ 顶部导航 ============ */
.top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.logo {
    width: 12vw;
    object-fit: contain;
}

.contact {
    display: flex;
    align-items: center;
    gap: 1vw;
}

.nav-btn {
    height: clamp(38px, 4.2vh, 60px);
    width: auto;
    object-fit: contain;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

.nav-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ============ 主体（靠左） ============ */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3vh;
    min-height: 0;
    padding: 1vh 0 7vh 5vw;
}

.title-img {
    width: auto;
    height: auto;
    max-width: 48vw;
    max-height: 30vh;
    transform: translateY(-3vw);
    object-fit: contain;
}

/* QR 卡片：左右两栏布局 */
.qr-card {
    display: flex;
    align-items: center;
    gap: 1.6vw;
    width: 52vw;
    max-width: 780px;
}

/* 左侧：qrtip 特权图 */
.qr-card-left {
    min-width: 0;
    display: flex;
}

.qr-card-bg {
    display: block;
    height: auto;
    max-height: 25vh;
    object-fit: contain;
}

/* 右侧：QR + 下载按钮 + 提示 */
.qr-card-right {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8vh;
}

.qr-box {
    width: clamp(120px, 11vw, 170px);
    height: clamp(120px, 11vw, 170px);
    background: #fff;
    padding: clamp(6px, 0.2vw, 10px);
    border-radius: clamp(6px, 0.5vw, 10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

#qrcode img,
#qrcode canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.down-btn {
    width: 100%;
    max-width: clamp(130px, 11vw, 180px);
    height: auto;
    object-fit: contain;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

.down-btn:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

.qr-tip {
    color: rgb(232, 196, 153);
    font-size: clamp(11px, 0.85vw, 14px);
    white-space: nowrap;
}

/* ============ 底部装饰 ============ */
.bottom-pic {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    z-index: 1;
    pointer-events: none;
    object-fit: contain;
}

/* ============ 响应式 ============ */
@media (max-width: 1280px) {
    .title-img {
        max-width: 52vw;
    }

    .qr-card {
        width: 56vw;
    }
}

@media (max-height: 800px) {
    .main {
        gap: 2vh;
        padding-bottom: 5vh;
    }

    .title-img {
        max-height: 24vh;
    }

    .qr-card {
        max-height: 50vh;
    }
}

@media (max-height: 700px) {
    .title-img {
        max-height: 20vh;
    }

    .qr-card {
        max-height: 44vh;
    }
}