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

.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 0;
}

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

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

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

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

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

/* ============ 主体 ============ */
.main {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1vh 3vw 3vh;
}

/* ============ 卡片 ============ */
.card {
    position: relative;
    width: 88vw;
    max-width: 1500px;
    z-index: 1;
}

.zhezhao {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* 爱心装饰，左上角 */
.aixin {
    position: absolute;
    top: 6%;
    left: 5%;
    width: 8%;
    max-width: 110px;
    height: auto;
    object-fit: contain;
    transform: rotate(-12deg);
    z-index: 2;
    pointer-events: none;
}

/* 卡片内部内容（标题/提示/底部行） */
.card-inner {
    position: absolute;
    inset: 0;
    z-index: 1;
    padding: 6% 32% 6% 7%;
    display: flex;
    flex-direction: column;
}

.title-img {
    width: 68%;
    max-width: 580px;
    height: auto;
    object-fit: contain;
}

/* title 下面的内容栅格：tip / btn / qr-col 都直接是这个盒子的子元素 */
.content-grid {
    margin-top: 3%;
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr auto 15vw;
    grid-template-rows: auto 1fr;
    column-gap: 1.5vw;
    row-gap: 2vh;
}

.tip-img {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    max-width: 460px;
    height: auto;
    object-fit: contain;
}

.action-btn {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
    width: 100%;
    max-width: 480px;
    height: auto;
    object-fit: contain;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

.qr-col {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: end;
    justify-self: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6vh;
}

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

.qrcode-box {
    width: clamp(95px, 7vw, 130px);
    height: clamp(95px, 7vw, 130px);
    background: #fff;
    padding: clamp(5px, 0.4vw, 8px);
    border-radius: clamp(5px, 0.4vw, 8px);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.saoma {
    width: 100%;
    max-width: 160px;
    height: auto;
    object-fit: contain;
}

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

/* ============ 人物，超出卡片上下边框 ============ */
.renwu {
    position: absolute;
    right: 24%;
    bottom: -10%;
    height: 135%;
    width: auto;
    object-fit: contain;
    z-index: 2;
    pointer-events: none;
}

/* ============ 响应式 ============ */
@media (max-width: 1366px) {
    .card {
        width: 92vw;
        max-width: none;
    }

    .card-inner {
        padding: 5% 30% 5% 6%;
    }

    .title-img {
        width: 85%;
    }
}

@media (max-width: 1024px) {
    .logo {
        height: clamp(44px, 6vh, 78px);
    }

    .nav-btn {
        height: clamp(34px, 4vh, 52px);
    }

    .contact {
        gap: 0.6vw;
    }

    .card-inner {
        padding: 5% 28% 5% 5%;
    }

    .qrcode-box {
        width: clamp(78px, 7vw, 110px);
        height: clamp(78px, 7vw, 110px);
    }

    .saoma {
        max-width: 130px;
    }

    .qr-tip {
        font-size: clamp(10px, 0.85vw, 12px);
    }

    .content-grid {
        grid-template-columns: 1fr auto 8vw;
    }
}

@media (max-height: 800px) {
    .top {
        padding: 0;
    }

    .main {
        padding: 1vh 3vw 1.5vh;
    }

    .card-inner {
        padding: 5% 30% 5% 6%;
    }

    .renwu {
        height: 125%;
        bottom: -6%;
    }
}

@media (max-height: 680px) {
    .logo {
        height: clamp(40px, 6.5vh, 70px);
    }

    .nav-btn {
        height: clamp(32px, 4.5vh, 48px);
    }

    .card-inner {
        padding: 4% 28% 4% 5%;
    }

    .qrcode-box {
        width: clamp(72px, 9vh, 100px);
        height: clamp(72px, 9vh, 100px);
    }

    .saoma {
        max-width: 120px;
    }

    .renwu {
        height: 118%;
        bottom: -4%;
    }
}