* {
    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%;
    background: #0c0a09;
}

/* 外层铺满视口并居中面板 */
.desktop {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0c0a09;
}

/* 单屏面板：锁定 16:9，按视口短边自适应缩放，始终完整可见（高度变小 → 整体等比缩小、不遮挡不裁切）。
   container-type:size 让所有子元素用 cqw（相对面板宽度）等比缩放，而不是相对视口宽度。 */
.hero {
    position: relative;
    width: min(98vw, 174.2222vh);
    height: min(55.125vw, 98vh);
    container-type: size;
    border-radius: 1.2cqw;
    overflow: hidden;
}

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

.bg-track {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.7s ease;
    will-change: transform;
}

.bg-track.no-transition {
    transition: none;
}

.bg-track[data-idx="0"] {
    transform: translateX(0);
}

.bg-track[data-idx="1"] {
    transform: translateX(-33.3333%);
}

.bg-track[data-idx="2"] {
    transform: translateX(-66.6666%);
}

.bg-img {
    width: 33.3333%;
    height: 100%;
    flex-shrink: 0;
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
}

/* 左侧暗化渐变，保证文案/按钮可读 */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(12, 10, 9, 0.88) 0%, rgba(12, 10, 9, 0.45) 34%, rgba(12, 10, 9, 0) 60%);
    pointer-events: none;
}

/* ============ 顶部 logo + 导航文字胶囊 ============ */
.header {
    position: absolute;
    top: 3%;
    left: 0;
    right: 0;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2.6cqw;
    gap: 2cqw;
}

.logo {
    height: 5cqw;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.contact {
    display: flex;
    align-items: center;
    gap: 1.2cqw;
}

.nav-btn {
    height: 2.8cqw;
    width: auto;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.nav-btn:active {
    transform: scale(0.97);
    opacity: 0.85;
}

/* ============ 左侧标题 / 副标题 ============ */
.hero-content {
    position: absolute;
    left: 3cqw;
    top: 18%;
    z-index: 3;
    max-width: 50cqw;
}

.title-img {
    width: 40cqw;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.6));
}

.subtitle {
    margin-top: 1.4cqw;
    color: #e7c977;
    font-size: 1.15cqw;
    line-height: 1.85;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

/* ============ 左侧操作按钮行 ============ */
.actions {
    position: absolute;
    left: 3cqw;
    top: 62%;
    z-index: 4;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1cqw;
}

.act-btn {
    height: 3.6cqw;
    width: auto;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.2s;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45));
}

.act-btn:active {
    transform: scale(0.97);
}

/* ============ 4 个特性标签（2×2 浮于人物两侧） ============ */
.feat {
    position: absolute;
    width: 13cqw;
    height: auto;
    object-fit: contain;
    z-index: 3;
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.5));
}

.feat--lt {
    left: 47%;
    top: 24%;
}

.feat--rt {
    right: 2.6cqw;
    top: 24%;
}

.feat--lb {
    left: 47%;
    top: 49%;
}

.feat--rb {
    right: 2.6cqw;
    top: 51%;
}

/* ============ 扫码下载块（右下角，金边深色外框） ============ */
.qr-block {
    position: absolute;
    right: 3cqw;
    bottom: 2.5cqw;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6cqw;
    padding: 1cqw;
    background: rgba(8, 7, 6, 0.88);
    border: 0.14cqw solid #d4af37;
    border-radius: 1.1cqw;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.qrcode-box {
    width: 7cqw;
    aspect-ratio: 1;
    background: #fff;
    padding: 0.35cqw;
    border-radius: 0.4cqw;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.qrcode-box #qrcode {
    width: 100%;
    height: 100%;
}

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

.scan-img {
    width: 8.5cqw;
    height: auto;
    object-fit: contain;
}

.scan-note {
    color: #d8d2c4;
    font-size: 0.85cqw;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* ============ 人物篇卡片（底部一排 5 张，左对齐，给右下角二维码留位） ============ */
.cards {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1.2cqw;
    z-index: 3;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    gap: 1.2cqw;
    padding: 0 3cqw;
}

.card {
    width: 14cqw;
    height: auto;
    object-fit: contain;
    border-radius: 0.5cqw;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
    transition: transform 0.25s;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-0.4cqw);
}

/* 兜底：极老浏览器不支持容器查询单位时，cqw 失效 → 退回 vw（仍按宽度缩放，至少不报错） */
@supports not (width: 1cqw) {
    .hero {
        width: 100vw;
        height: 56.25vw;
    }
}
