/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* 容器样式 */
.container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* 页面样式 */
.page {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    transition: transform 0.5s ease-in-out;
}

/* 页面内容动画 */
.page .content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.page.active .content {
    opacity: 1;
    transform: translateY(0);
}

/* 初始页面位置设置 */
#page1 {
    transform: translateY(0);
}

#page2 {
    transform: translateY(100%);
}

#page3 {
    transform: translateY(200%);
}

#page4 {
    transform: translateY(300%);
}

#page5 {
    transform: translateY(400%);
}

/* 背景图片样式 */
.background {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 背景遮罩 */
.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

/* 内容区域样式 */
.content {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* 矩形元素样式 */
.rectangle {
    position: absolute;
    width: 100%;
    height: 31.5%;
    /* 768px / 2436px ≈ 31.5% */
    bottom: 0;
    left: 0;
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    background-image: url('https://cdn.cjlfx.net/imgs/group3.png');
}

/* 组1样式 */
.group1 {
    position: absolute;
    width: 83.7%;
    /* 942px / 1125px ≈ 83.7% */
    height: 6.9%;
    /* 168px / 2436px ≈ 6.9% */
    bottom: 30%;
    /* 调整位置 */
    left: 50%;
    transform: translateX(-50%);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* 组2样式 */
.group2 {
    position: absolute;
    width: 6.9%;
    /* 78px / 1125px ≈ 6.9% */
    height: 3.6%;
    /* 87px / 2436px ≈ 3.6% */
    bottom: 14%;
    /* 调整位置 */
    left: 50%;
    transform: translateX(-50%);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* 下载按钮样式 */
.download-button {
    position: absolute;
    bottom: 64px;
    width: 942px;
    height: 168px;
    background: url('https://cdn.cjlfx.net/imgs/group1.png') no-repeat center;
    z-index: 2;
    cursor: pointer;
    border: none;
}

.download-btn {
    position: absolute;
    bottom: 3.5%;
    left: 14%;
    width: 72%;
    height: 56px;
    background: url('https://cdn.cjlfx.net/imgs/group1.png') no-repeat center;
    background-position: center;
    background-size: contain;
    z-index: 2;
    cursor: pointer;
    border: none;
}

/* 脉冲动画效果 */
@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 分页指示器样式 */
.pagination {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: white;
    transform: scale(1.2);
}

/* 微信提示样式 */
.wechat-tip {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 60%;
    background: url('https://cdn.cjlfx.net/imgs/group5.png') no-repeat right top;
    background-size: contain;
    z-index: 10;
    display: none;
}

/* 响应式设计 */
/* 平板设备 */
@media (max-width: 1024px) {
    .group1 {
        width: 85%;
        bottom: 30%;
    }

    .group2 {
        width: 8%;
        bottom: 15%;
    }

    .download-btn {
        bottom: 6%;
        width: 70%;
    }

    .download-arrow {
        bottom: 25%;
        font-size: 22px;
    }
}

/* 中等尺寸设备 */
@media (max-width: 768px) {
    .group1 {
        width: 90%;
        bottom: 30%;
    }

    .group2 {
        width: 10%;
        bottom: 15%;
    }

    .pagination {
        right: 10px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .download-arrow {
        bottom: 25%;
        font-size: 20px;
    }

    .download-btn {
        padding: 10px 16px;
        font-size: 15px;
        left: 10%;
        bottom: 6%;
        width: 80%;
    }
}

/* 小型设备 */
@media (max-width: 480px) {
    .group1 {
        width: 95%;
        bottom: 30%;
    }

    .group2 {
        width: 12%;
        bottom: 18%;
    }

    .rectangle {
        height: 33%;
    }

    .download-arrow {
        bottom: 25%;
        font-size: 18px;
    }

    .download-btn {
        bottom: 6%;
        width: 85%;
        left: 16%;
        max-width: 280px;
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* iPhone X/11/12/13 */
@media screen and (max-width: 414px) and (min-height: 800px) and (max-height: 896px) {
    .rectangle {
        height: 35%;
    }

    .group1 {
        bottom: 30%;
    }

    .group2 {
        bottom: 16%;
    }

    .download-btn {
        bottom: 6%;
        width: 85%;
    }

    .download-arrow {
        bottom: 25%;
        font-size: 18px;
    }
}

/* iPhone 12/13 Pro Max, 11 Pro Max, XS Max */
@media screen and (max-width: 428px) and (min-height: 926px) {
    .rectangle {
        height: 32%;
    }

    .group1 {
        bottom: 28%;
    }

    .group2 {
        bottom: 5%;
    }

    .download-btn {
        bottom: 6%;
    }

    .download-arrow {
        bottom: 23%;
    }
}

/* 华为设备 */
@media screen and (max-width: 412px) and (min-height: 869px) and (max-height: 915px) {
    .rectangle {
        height: 34%;
    }

    .group1 {
        bottom: 29%;
    }
}

/* 小米设备 */
@media screen and (max-width: 393px) and (min-height: 830px) and (max-height: 851px) {
    .rectangle {
        height: 33%;
    }

    .group1 {
        bottom: 28%;
    }
}

/* 横屏模式 */
@media (orientation: landscape) {
    .rectangle {
        height: 40%;
    }

    .group1 {
        width: 60%;
        height: 10%;
        bottom: 35%;
    }

    .group2 {
        width: 5%;
        height: 8%;
        bottom: 5%;
    }

    .download-btn {
        width: 50%;
        bottom: 20%;
    }

    .download-arrow {
        bottom: 30%;
    }

    .pagination {
        right: 10px;
    }
}