/* ===== 全局重置 & 字体 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 71px;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "华文楷体", serif;
    background: #2c0a0a;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
}

.wap {
    display: none !important;
}

.pc {
    display: block !important;
}

/* ===== 主容器 ===== */
.main {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
    background: #2c0a0a;
}

/* ===== 顶部导航 (wap) ===== */
.wap_top {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    height: 1.2rem;
    background: rgba(44, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.3rem;
    border-bottom: 1px solid rgba(218, 165, 32, 0.3);
}

.wap_top strong a img {
    height: 0.8rem;
    width: auto;
}

.wap_top p {
    display: flex;
    flex-direction: column;
    color: #f0e6d0;
    line-height: 1.2;
}

.wap_top p b {
    font-size: 0.32rem;
    font-weight: 700;
    color: #f5d742;
}

.wap_top p i {
    font-size: 0.18rem;
    font-style: normal;
    color: #d4b48c;
}

.wap_top span a img {
    height: 0.6rem;
    width: auto;
}

/* ===== Swiper 全屏 ===== */
.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex-direction: column
}

/* ===== 页面通用 ===== */
.page_1,
.page_2,
.page_3,
.page_4 {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 0.4rem;
}

/* ===== Page 1 ===== */
.page-bg-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.page-bg-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(44, 10, 10, 0.55);
    z-index: 1;
}

.page_1 .logo-main {
    position: relative;
    z-index: 2;
    width: 4.2rem;
    margin-top: -0.8rem;
}

.page_1 .btn_home_video {
    position: relative;
    z-index: 2;
    margin-top: 0.3rem;
    cursor: pointer;
}

.page_1 .btn_home_video span {
    display: inline-block;
    padding: 0.12rem 0.5rem;
    background: linear-gradient(135deg, #f5d742, #c79a3e);
    color: #2c0a0a;
    font-size: 0.28rem;
    font-weight: 700;
    border-radius: 0.6rem;
    box-shadow: 0 0.08rem 0.3rem rgba(245, 215, 66, 0.4);
    transition: transform 0.2s;
    cursor: pointer;
}

.page_1 .btn_home_video span:hover {
    transform: scale(1.05);
}

.page_1 .p_down {
    position: relative;
    z-index: 2;
    margin-top: 0.4rem;
    display: flex;
    gap: 0.3rem;
}

.page_1 .p_down a img {
    height: 0.9rem;
    width: auto;
    transition: transform 0.2s;
}

.page_1 .p_down a img:hover {
    transform: scale(1.05);
}

.page_1 .home_code {
    position: relative;
    z-index: 2;
    margin-top: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.page_1 .home_code #qrcode {
    position: relative;
    width: 1.6rem;
    height: 1.6rem;
    background: #fff;
    border-radius: 0.16rem;
    padding: 0.08rem;
    box-shadow: 0 0.08rem 0.4rem rgba(0, 0, 0, 0.5);
}

.page_1 .home_code #qrcode img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0.08rem;
}

.page_1 .home_code #qrcode #qrcode-icon {
    position: absolute;
    bottom: 0.06rem;
    right: 0.06rem;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
}

.page_1 .deco_left,
.page_1 .deco_right {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    opacity: 0.5;
}

.page_1 .deco_left {
    bottom: 8%;
    left: 5%;
    width: 1.8rem;
}

.page_1 .deco_right {
    top: 12%;
    right: 5%;
    width: 1.6rem;
    animation: float 4s ease-in-out infinite;
}

.page_1 .wap_btn_down {
    position: relative;
    z-index: 2;
    margin-top: 0.4rem;
}

.page_1 .wap_btn_down a img {
    height: 0.8rem;
    width: auto;
}

/* ===== 装饰轨道 ===== */
.wrap {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.wrap_con {
    position: relative;
    width: 100%;
    height: 100%;
}

.orbit {
    position: absolute;
    width: 4rem;
    height: 4rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spin 20s linear infinite;
}

.orbit .dot {
    position: absolute;
    width: 0.8rem;
    height: 0.8rem;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.orbit .dot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.orbit2 {
    position: absolute;
    width: 5rem;
    height: 5rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spin 25s linear infinite reverse;
}

.orbit2 .dot {
    position: absolute;
    width: 0.6rem;
    height: 0.6rem;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.orbit2 .dot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.orbit3 {
    position: absolute;
    width: 3rem;
    height: 3rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spin 15s linear infinite;
}

.orbit3 .dot {
    position: absolute;
    width: 0.5rem;
    height: 0.5rem;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.orbit3 .dot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.orbit-ring {
    position: absolute;
    width: 6rem;
    height: 6rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(218, 165, 32, 0.12);
    animation: spin 30s linear infinite;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-0.3rem);
    }
}

/* ===== Page 4 ===== */
.page_4 {
    display: flex;
    flex-direction: column;      /* 垂直排列 */
    width: 100%;
    height: 100vh;              /* 占满视口高度 */
    padding: 0.3rem 0.2rem 0.2rem;
    position: relative;
    box-sizing: border-box;
    background: transparent;     /* 无背景色 */
    overflow: hidden;           /* 防止内容溢出 */
}

.page_4 .tit_4_pc {
    position: relative;
    z-index: 2;
    width: 5rem;
    max-width: 80%;
    margin-top: 0.2rem;
    margin-bottom: 0.2rem;
}

.page_4 .pic_btm {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    padding-top: 100px;         /* 使用 padding 代替 margin */
    padding-bottom: 0.1rem;
}

.page_4 .pic_btm_con {
    width: 100%;
    max-width: 100%;            /* 不限制宽度，尽量放大 */
    height: 100%;               /* 占满父容器高度 */
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page_4 .pic_btm_con .swiper {
    width: 100%;
    height: 100%;
}

.page_4 .pic_btm_con .swiper-slide {
    height: 100% !important;    /* 填满高度 */
    width: 100%;
}

.page_4 .pic_btm_con .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;        /* 或 cover，根据喜好 */
    border-radius: 0.16rem;
    /* 移除 max-height 限制，让图片自由放大 */
}

.page_4 .pic_btm_con .swiper-wrapper,
.page_4 .pic_btm_con .swiper-slide {
    height: auto !important;
    /* 覆盖 Swiper 默认高度 */
}

/* 新增底部信息容器 */
.page_4_footer {
    flex: 0 0 auto;             /* 固定高度，不伸缩 */
    width: 100%;
    max-width: 20rem;
    margin: 0.1rem auto 0;
    color: #d4b48c;
    font-size: 0.14rem;
    line-height: 1.6;
    text-align: center;
    background: transparent;
    position: relative;
    z-index: 2;
    padding-bottom: 0.05rem;
}

/* ===== 视频弹窗 ===== */
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.88);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.video-overlay.active {
    display: flex;
}

.video-overlay .video-box {
    position: relative;
    width: 90%;
    max-width: 800px;
    background: #000;
    border-radius: 0.2rem;
    overflow: hidden;
    box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.8);
}

.video-overlay .video-box video {
    width: 100%;
    display: block;
    max-height: 80vh;
}

.video-overlay .video-box .close-video {
    position: absolute;
    top: 0.1rem;
    right: 0.2rem;
    font-size: 0.5rem;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    text-shadow: 0 0.04rem 0.1rem rgba(0, 0, 0, 0.8);
    transition: transform 0.2s;
    background: none;
    border: none;
    padding: 0.1rem 0.2rem;
}

.video-overlay .video-box .close-video:hover {
    transform: scale(1.2);
}

/* ===== 二维码弹窗 ===== */
.qr-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.qr-overlay.active {
    display: flex;
}

.qr-overlay .qr-box {
    background: #fff;
    border-radius: 0.24rem;
    padding: 0.4rem 0.5rem 0.5rem;
    text-align: center;
    max-width: 90%;
    box-shadow: 0 0.3rem 0.8rem rgba(0, 0, 0, 0.5);
    position: relative;
}

.qr-overlay .qr-box img {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.12rem;
    display: block;
    margin: 0 auto 0.16rem;
    object-fit: cover;
}

.qr-overlay .qr-box .qr-tip {
    color: #333;
    font-size: 0.2rem;
    font-weight: 500;
    margin-bottom: 0.16rem;
}

.qr-overlay .qr-box .qr-close {
    padding: 0.08rem 0.3rem;
    background: #1890ff;
    color: #fff;
    border: none;
    border-radius: 0.08rem;
    cursor: pointer;
    font-size: 0.16rem;
    transition: background 0.2s;
}

.qr-overlay .qr-box .qr-close:hover {
    background: #40a9ff;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    html {
        font-size: 40px;
    }

    .pc {
        display: none !important;
    }

    .wap {
        display: block !important;
    }

    .wap_top {
        display: flex !important;
        height: 1rem;
        padding: 0 0.2rem;
    }

    .wap_top strong a img {
        height: 0.6rem;
    }

    .wap_top p b {
        font-size: 0.26rem;
    }

    .wap_top p i {
        font-size: 0.16rem;
    }

    .wap_top span a img {
        height: 0.5rem;
    }

    .page_1 .logo-main {
        width: 3.2rem;
        margin-top: -0.3rem;
    }

    .page_1 .btn_home_video span {
        font-size: 0.22rem;
        padding: 0.08rem 0.35rem;
    }

    .page_1 .deco_left {
        width: 1.2rem;
        bottom: 8%;
    }

    .page_1 .deco_right {
        width: 1rem;
        top: 12%;
    }

    .page_2_con .p_mid_video span {
        font-size: 0.22rem;
        padding: 0.08rem 0.35rem;
    }

    .page_2_con .deco_lantern {
        width: 1.4rem;
        bottom: 5%;
    }

    .page_3 .btn_collect img,
    .page_3 .btn_cash img,
    .page_3 .btn_notice img {
        height: 0.7rem;
    }

    .page_3 .deco_jade1 {
        width: 1rem;
        top: 6%;
    }

    .page_3 .deco_jade2 {
        width: 0.9rem;
        bottom: 8%;
    }

    .page_3 .deco_fan {
        width: 0.8rem;
        top: 10%;
    }

    .page_4 .tit_4_pc {
        width: 3.5rem;
    }

    .page_4 .pic_btm_con {
        height: 40vh;
        max-height: 8rem;
        /* 4rem → 8rem，放大2倍 */
    }

    .video-overlay .video-box {
        width: 95%;
    }

    .page_1 .home_code #qrcode {
        width: 1.2rem;
        height: 1.2rem;
    }

    .orbit {
        width: 2.5rem;
        height: 2.5rem;
    }

    .orbit2 {
        width: 3.2rem;
        height: 3.2rem;
    }

    .orbit3 {
        width: 2rem;
        height: 2rem;
    }

    .orbit-ring {
        width: 4rem;
        height: 4rem;
    }

    .qr-overlay .qr-box img {
        width: 2rem;
        height: 2rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 32px;
    }

    .page_1 .logo-main {
        width: 2.6rem;
    }

    .page_2_con .con_2_pc {
        width: 90%;
    }

    .page_4 .pic_btm_con {
        height: 35vh;
    }
}

.video-cover {
    position: relative;
    z-index: 2;
    width: 5.6rem;
    max-width: 90%;
    border-radius: 0.24rem;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 0.12rem 0.5rem rgba(0, 0, 0, 0.6);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-top: 0.3rem;
}

.video-cover:hover {
    transform: scale(1.02);
    box-shadow: 0 0.2rem 0.7rem rgba(0, 0, 0, 0.7);
}

.video-cover img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.video-cover .play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s;
}

.video-cover:hover .play-overlay {
    background: rgba(0, 0, 0, 0.2);
}

.video-cover .play-overlay svg {
    width: 2.2rem;
    height: 2.2rem;
    fill: #fff;
    filter: drop-shadow(0 0.08rem 0.2rem rgba(0, 0, 0, 0.6));
    transition: transform 0.3s;
}

.video-cover:hover .play-overlay svg {
    transform: scale(1.1);
}

/* 三个链接 */
.footer_links {
    font-size: 0.18rem;
    margin-bottom: 0.2rem;
}
.footer_links a {
    color: #f5d742;
    text-decoration: none;
    margin: 0 0.08rem;
}
.footer_links a:hover {
    text-decoration: underline;
}
.footer_links .divider {
    color: #5a3a2a;
}
/* 健康游戏忠告 */
.footer_health {
    background: transparent;
    border-left: 0.03rem solid #f5d742;
    padding: 0.15rem 0.25rem;
    margin: 0.15rem auto;
    text-align: center;        /* 关键：整体居中 */
    max-width: 8rem;
}
.footer_health h3 {
    color: #f5d742;
    font-size: 0.18rem;
    margin-bottom: 0.05rem;
}
.footer_health p {
    margin: 0.02rem 0;
    color: #c4b08a;
    font-size: 0.2rem;
}
.health_row {
    color: #c4b08a;
    font-size: 0.14rem;
    margin: 0.02rem 0;
}
/* 或者用更简单的 inline-block */
.health_row {
    word-spacing: 0.3rem;
}
/* 公司信息 */
.footer_company {
    margin: 0.2rem 0;
    line-height: 1.8;
}
.footer_company .company_name {
    color: #f5d742;
    font-size: 0.18rem;
    font-weight: bold;
}
.footer_company p {
    margin: 0.04rem 0;
    font-size: 0.14rem;
}
/* 版权与备案 */
.footer_legal {
    margin-top: 0.2rem;
    font-size: 0.2rem;
    color: #f5d742;
    line-height: 1.8;
}
.footer_legal p {
    margin: 0.03rem 0;
}

/* ===== 响应式适配 ===== */
@media (max-width: 768px) {
    .page_4 {
        padding: 0.2rem 0.15rem 0.15rem;
    }
    .page_4_footer {
        font-size: 0.12rem;
    }
    .footer_links {
        font-size: 0.16rem;
    }
    .footer_health h3 {
        font-size: 0.16rem;
    }
    .footer_health p {
        font-size: 0.12rem;
    }
    .footer_company .company_name {
        font-size: 0.16rem;
    }
    .footer_company p {
        font-size: 0.12rem;
    }
    .footer_legal {
        font-size: 0.1rem;
    }
}
@media (max-width: 480px) {
    .page_4 {
        padding: 0.15rem 0.1rem 0.1rem;
    }
    .page_4_footer {
        font-size: 0.1rem;
    }
    .footer_links {
        font-size: 0.14rem;
    }
    .footer_health {
        padding: 0.1rem 0.15rem;
    }
    .footer_health h3 {
        font-size: 0.14rem;
    }
    .footer_health p {
        font-size: 0.1rem;
    }
    .footer_company .company_name {
        font-size: 0.14rem;
    }
}
.page_4_top_img {
    position: relative;
    z-index: 2;
    width: 60%;                /* 根据需求调整宽度 */
    max-width: 8rem;           /* 限制最大宽度 */
    height: auto;
    display: block;
    margin: 0.1rem auto 0.05rem;
    border-radius: 0.12rem;
    object-fit: contain;
    background: transparent;
}