* {
    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: #0a0408;
}

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

/* ============ 背景轮播 ============ */
.bg-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.bg-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.bg-slide.is-active {
    opacity: 1;
}

/* 左侧 + 底部加深，保证标题 / 二维码区可读 */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(8, 4, 12, 0.78) 0%, rgba(8, 4, 12, 0.32) 38%, rgba(8, 4, 12, 0) 60%),
        linear-gradient(0deg, rgba(8, 4, 12, 0.7) 0%, rgba(8, 4, 12, 0) 26%);
    pointer-events: none;
}

/* ============ 顶部紫色渐变带（从上到下：上紫 → 下透明，全宽） ============ */
.top-grad {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    height: 18vh;
    pointer-events: none;
    background: linear-gradient(180deg,
            rgba(116, 52, 124, 0.92) 0%,
            rgba(116, 52, 124, 0.4) 48%,
            rgba(116, 52, 124, 0) 100%);
}

/* ============ 顶部导航 ============ */
.header {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 20;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.8vh 3vw;
}

.logo {
    height: 8.6vh;
    max-height: 96px;
    width: auto;
    object-fit: contain;
}

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

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

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

/* ============ 左侧标题（轮播堆叠） ============ */
.hero-content {
    position: absolute;
    z-index: 10;
    left: 4.5vw;
    top: 17vh;
    width: 58vw;
}

.title-stack {
    position: relative;
    width: 54vw;
    aspect-ratio: 1117 / 414;
}

.title-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
    opacity: 0;
    transition: opacity 0.9s ease-in-out;
    filter: drop-shadow(0 6px 20px rgba(230, 60, 200, 0.45));
}

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

/* ============ 右侧标签竖排 ============ */
.tag-col {
    position: absolute;
    z-index: 10;
    right: 1.6vw;
    top: 16vh;
    height: 48vh;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.5));
}

/* ============ 左下：扫码下载块 ============ */
.qr-block {
    position: absolute;
    z-index: 10;
    left: 4.5vw;
    bottom: 6vh;
    display: flex;
    align-items: center;
    gap: clamp(16px, 1.4vw, 28px);
}

.qrcode-box {
    width: clamp(170px, 12vw, 240px);
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    background: #fff;
    padding: clamp(6px, 0.6vw, 10px);
    border-radius: clamp(8px, 0.8vw, 12px);
    border: 2px solid #c63ad9;
    box-shadow:
        0 0 0 1px rgba(255, 120, 220, 0.35),
        0 0 16px rgba(198, 58, 217, 0.55),
        0 6px 18px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

#qrcode {
    width: 100%;
    height: 100%;
}

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

/* tip 图自带安装提示文字 + 扫码下载按钮，整图展示 */
.scan-btn {
    height: clamp(170px, 22vh, 260px);
    width: auto;
    object-fit: contain;
    cursor: pointer;
    filter: drop-shadow(0 6px 16px rgba(220, 60, 200, 0.4));
}

/* ============ 底部中右：卡片轮播 ============ */
.cards {
    position: absolute;
    z-index: 9;
    right: 2vw;
    bottom: 5vh;
    width: 47vw;
    aspect-ratio: 850 / 330;
}

.card-img {
    position: absolute;
    inset: 0;
    width: 85%;
    height: 100%;
    object-fit: contain;
    object-position: right bottom;
    opacity: 0;
    transition: opacity 0.9s ease-in-out;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.5));
}

.card-img.is-active {
    opacity: 1;
}

/* ============ 矮屏 / 窄屏微调 ============ */
@media (max-height: 840px) {
    .hero-content {
        top: 13vh;
    }

    .title-stack {
        width: 50vw;
    }

    .tag-col {
        height: 50vh;
    }
}

@media (max-width: 1366px) {
    .title-stack {
        width: 57vw;
    }

    .cards {
        width: 50vw;
    }
}