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

html,
body {
    width: 100%;
    background-color: #000;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 大屏锁定 750px 居中，两侧留黑；小屏由 JS 等比缩放 */
.page-wrapper {
    width: 100%;
    max-width: 750px;
    position: relative;
    background-color: #000;
    overflow: hidden;
}

.canvas-container {
    width: 750px;
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: top left;
    transform: scale(var(--scale, 1));
    background-color: #050807;
    overflow: hidden;
    padding-bottom: 100px;
}

.canvas-container img {
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

/* 头部大背景：2x 1500×4156 → 750×2078，从顶部铺满整页 */
.bg-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 750px;
    z-index: 0;
    pointer-events: none;
}

.bg-header img {
    width: 750px;
    height: 2078px;
}

/* 尾部光台背景：2x 1500×1720 → 750×860，贴在画布底部 */
.bg-footer {
    position: absolute;
    left: 0;
    bottom: 60px;
    width: 750px;
    z-index: 0;
    pointer-events: none;
}

.bg-footer img {
    width: 750px;
    height: 860px;
}

.header,
.hero-section,
.feedback-section,
.vip-section {
    position: relative;
    z-index: 1;
}

.header {
    display: flex;
    justify-content: center;
}

/* 2x 切图按设计稿 1x 尺寸放置并水平居中 */
.img-header {
    width: 593px;
    height: 99px;
}

.img-hero {
    width: 750px;
    height: 734px;
    margin-top: -18px;
}

.feedback-section,
.vip-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.img-title-feedback {
    width: 597px;
    height: 68px;
    margin-top: 24px;
}

.img-cards {
    width: 692px;
    height: 200px;
    margin-top: 16px;
}

.img-title-vip {
    width: 673px;
    height: 182px;
    margin-top: 62px;
}

.img-benefits {
    width: 696px;
    height: 687px;
    margin-top: -20px;
}

/* 底部悬浮双按钮：按 750 设计稿尺寸，随 --scale 缩放 */
.float-bar {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 20;
    width: min(100vw, 750px);
    transform: translateX(-50%);
    display: flex;
    gap: calc(20px * var(--scale, 1));
    padding: calc(20px * var(--scale, 1));
}

.float-item {
    flex: 1;
    position: relative;
}

.float-tip {
    position: absolute;
    left: 50%;
    top: 0;
    z-index: 1;
    transform: translate(-50%, -50%);
    display: flex;
    padding: calc(4px * var(--scale, 1)) calc(12px * var(--scale, 1));
    justify-content: center;
    align-items: center;
    gap: calc(10px * var(--scale, 1));
    border-radius: calc(4px * var(--scale, 1));
    background: #ff3835;
    color: #fff;
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: calc(22px * var(--scale, 1));
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    white-space: nowrap;
    pointer-events: none;
}

.float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: calc(88px * var(--scale, 1));
    border: none;
    border-radius: calc(20px * var(--scale, 1));
    color: #000;
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: calc(36px * var(--scale, 1));
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    text-decoration: none;
}

.float-btn-play {
    background: #1fe8aa;
}

.float-btn-download {
    background: #ffcd05;
}
