* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

img {
    -webkit-user-drag: none;
    user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

html {
    width: 100%;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    /* 避免子元素撑出页面，右侧出现整页滚动条 */
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--pd-stage-bg, #0a0f1e);
}

body {
    max-height: 100vh;
    max-height: 100dvh;
    margin: 0;
    box-sizing: border-box;
}

body.btnText {
    background-color: var(--pd-stage-bg, #0a0f1e);
}

:root {
    --pd-font-zh: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    --pd-stage-bg: #0a0f1e;
    --pc-h-pad: clamp(32px, 4vw, 56px);
}

.desktop {
    font-family: var(--pd-font-zh);
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    min-height: 0;
    color: #fff;
    overflow: hidden;
    background: var(--pd-stage-bg, #0a0f1e);
    box-sizing: border-box;
}

/* 全屏氛围底图（不随 main 轮播切） */
.desktop>.pd-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
    pointer-events: none;
}

/* main1/2/3 仅轮播前层人物/主视觉 */
.pd-swiper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: transparent;
}

.pd-swiper .swiper-wrapper,
.pd-swiper .swiper-slide {
    background-color: transparent;
}

.pd-slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.pd-slide-main {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right center;
    z-index: 1;
    pointer-events: none;
}

/* —— 覆盖层：顶栏 + 左列文案图 + 左下二维码区 —— */
.pd-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    min-height: 0;
    pointer-events: none;
}

.pd-overlay .pd-top,
.pd-overlay .pd-qr-block,
.pd-overlay .contact .btn,
.pd-overlay .pd-qr-canvas {
    pointer-events: auto;
}

/* 左侧整条：顶栏下剩余高度，二维码 margin-top:auto 吸底 */
.pd-left-col {
    flex: 1 1 0;
    min-height: 0;
    width: min(48vw, 720px);
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    box-sizing: border-box;
    z-index: 5;
    align-self: flex-start;
}

.pd-top {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 72px;
    padding: calc(12px + env(safe-area-inset-top, 0px)) var(--pc-h-pad) 12px;
    box-sizing: border-box;
    background: linear-gradient(180deg, rgba(10, 20, 45, 0.65) 0%, rgba(10, 15, 30, 0) 100%);
    z-index: 10;
}

.pd-logo-wrap {
    line-height: 0;
}

.pd-top .pd-logo {
    display: block;
    height: clamp(40px, 4.2vw, 56px);
    width: auto;
    max-width: 28vw;
    object-fit: contain;
    object-position: left center;
}

.pd-top .contact {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(10px, 1.2vw, 18px);
    flex-wrap: wrap;
}

.pd-top .contact .btn {
    height: clamp(36px, 3.2vw, 48px);
    width: auto;
    max-width: 11vw;
    min-width: 0;
    object-fit: contain;
    cursor: pointer;
}

.pd-top .contact .btn:hover {
    filter: brightness(1.08);
}

/* 左列：一屏内展示，不滚（避免主文档与侧栏双滚动条） */
.pd-left {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    margin-left: 0;
    padding: min(0.8vh, 8px) var(--pc-h-pad) 4px;
    gap: clamp(4px, 0.5vw, 8px);
    overflow: hidden;
}

.pd-left img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: left top;
    flex-shrink: 0;
}

.pd-title-img {
    max-height: min(20vh, 240px);
}

.pd-litle-img {
    max-height: min(6vh, 80px);
}

.pd-xinxi-img {
    max-height: min(32vh, 400px);
    align-self: stretch;
    width: 100%;
    object-fit: contain;
    min-height: 0;
}

/* 左下：二维码 + 文案（非图片） */
.pd-qr-block {
    flex: 0 0 auto;
    margin-top: auto;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: clamp(10px, 1vw, 16px);
    max-width: 100%;
    padding: 8px var(--pc-h-pad) max(10px, env(safe-area-inset-bottom, 0px));
    z-index: 10;
}

.pd-qr-canvas {
    flex: 0 0 auto;
    line-height: 0;
    padding: clamp(6px, 1vw, 16px);
    background: #fff;
    border-radius: 10px;
    border: 4px solid #8ecaff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

.pd-qr-canvas .qrcode-host img {
    display: block !important;
    vertical-align: top;
    max-width: 100%;
    height: auto;
}

#qrcode canvas,
.pd-qr-canvas #qrcode canvas {
    display: none !important;
}

#qrcode img {
    visibility: visible !important;
}

.pd-qr-texts {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
    padding-bottom: 2px;
}

.pd-qr-t1 {
    font-size: clamp(16px, 1.2vw, 20px);
    font-weight: 700;
    color: #ffdd33;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.pd-qr-t2 {
    font-size: clamp(14px, 0.95vw, 16px);
    color: #ffffff;
    line-height: 1.4;
    opacity: 0.95;
}

.pd-qr-t3 {
    font-size: clamp(11px, 0.68vw, 12px);
    line-height: 1.5;
    color: rgba(230, 235, 245, 0.85);
    max-width: 36em;
    margin-top: 4px;
}

@media (max-width: 1280px) {
    .pd-left {
        width: min(50vw, 600px);
    }
}

@media (max-height: 720px) {
    .pd-xinxi-img {
        max-height: 26vh;
    }

    .pd-title-img {
        max-height: 17vh;
    }

    .pd-litle-img {
        max-height: 5vh;
    }
}

@media (max-height: 600px) {
    .pd-xinxi-img {
        max-height: 22vh;
    }

    .pd-title-img {
        max-height: 14vh;
    }

    .pd-top {
        min-height: 0;
        padding-top: 8px;
        padding-bottom: 6px;
    }
}