* {
    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;
}

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

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

.content {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 2vh 3vw;
}

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

.logo {
    height: 5vh;
    width: auto;
    object-fit: contain;
}

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

.nav-btn {
    /* 设计 146x44 ≈ 10vw */
    height: clamp(36px, 3.3vh, 52px);
    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: row;
    align-items: stretch;
    min-height: 0;
    padding-top: 2vh;
    gap: 2vw;
}

/* 左列：标题 + 扫码 + 下载 + 提示 */
.left-col {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    padding-left: 2vw;
    padding-bottom: 3vh;
}

/* 标题轮播（淡入淡出） */
.title-carousel {
    position: relative;
    width: 100%;
    height: 38vh;
    min-height: 240px;
    margin-top: 5vh;
}

.title-img {
    position: absolute;
    margin-top: 3vw;
    inset: 0;
    max-width: 92%;
    max-height: 100%;
    object-fit: contain;
    object-position: left top;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.title-img.active {
    opacity: 1;
}

/* 底部区：扫码 + 下载按钮 + 提示 */
.bottom-area {
    display: flex;
    align-items: flex-start;
    gap: 2vw;
    flex-shrink: 0;
}

.qr-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2vh;
    flex-shrink: 0;
}

/* QR 码：金色发光外框 */
.qrcode-box {
    width: clamp(120px, 9vw, 170px);
    height: clamp(120px, 9vw, 170px);
    background: #fff;
    padding: clamp(6px, 0.5vw, 10px);
    border-radius: clamp(8px, 0.6vw, 12px);
    border: 2px solid #FFCF40;
    box-shadow:
        0 0 12px rgba(255, 207, 64, 0.85),
        0 0 28px rgba(255, 207, 64, 0.55),
        inset 0 0 6px rgba(255, 207, 64, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.qr-label {
    font-family: 'MiSans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: clamp(14px, 1.05vw, 20px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
    color: #FFCF40;
    white-space: nowrap;
}

.dl-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.6vh;
    min-width: 0;
    padding-top: 0.5vh;
}

.download-btns {
    display: flex;
    gap: 1.2vw;
    flex-wrap: wrap;
    align-items: center;
}

.dl-btn {
    height: clamp(55px, 4.5vh, 64px);
    cursor: pointer;
    object-fit: contain;
    transition: transform 0.2s;
}

.dl-btn:hover {
    transform: translateY(-2px);
}

.install-tip {
    color: #FFCF40;
    font-size: clamp(11px, 0.85vw, 15px);
    line-height: 1.7;
    margin: 0;
    max-width: 100%;
}

/* 右列：Hero 图 */
.right-col {
    position: relative;
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

/* hero-img-wrap：严格按 hero 图原生比例 (596:660)
   高度由 视口宽/高 双重约束，宽度随比例计算 —— wrap 尺寸始终等于图片实际显示尺寸 */
.hero-img-wrap {
    position: relative;
    aspect-ratio: 596 / 660;
    /* 高度：min(88vh, 按宽度算出的高度) */
    height: min(88vh, calc(45vw * 660 / 596));
    width: auto;
    /* 由 aspect-ratio 自动算 */
    max-width: 45vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 观看人数气泡：尺寸和位置都相对 hero-img-wrap 百分比
   → wrap 随屏高变小时，气泡同步变小 */
.viewer-bubble {
    position: absolute;
    top: 14%;
    left: -4%;
    width: 28%;
    /* 相对 wrap 宽度：wrap 变小 → 气泡同步缩小 */
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: contain;
    z-index: 3;
    animation: viewer-pulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes viewer-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* 轮播指示点 */
.pagination {
    position: absolute;
    right: 1vw;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1vh;
    z-index: 5;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: #f5c966;
    box-shadow: 0 0 8px rgba(245, 201, 102, 0.8);
    transform: scale(1.3);
}

/* ============ 响应式适配 ============ */
@media (max-width: 1280px) {
    .contact {
        gap: 0.8vw;
    }

    .qrcode-box {
        width: 100px;
        height: 100px;
    }

    .title-carousel {
        height: 32vh;
    }
}

@media (max-width: 1024px) {
    .main {
        flex-direction: column;
        gap: 1vh;
    }

    .left-col,
    .right-col {
        flex: none;
        width: 100%;
    }

    .right-col {
        order: -1;
        justify-content: center;
        height: 50vh;
    }

    .title-carousel {
        height: 18vh;
    }

    .bottom-area {
        flex-wrap: wrap;
    }
}

@media (max-height: 720px) {
    .title-carousel {
        height: 30vh;
    }

    .hero-img {
        max-height: 70vh;
    }

    .install-tip {
        font-size: 10px;
    }
}