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

html, body {
    height: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
    line-height: 1.6;
    background: #000;
}


.section-container {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
}


.game-logo {
    position: absolute;
    left: 1%;
    top: 0%;
    z-index: 10;
    width: 14.84vw;
    max-width: 285px;
    min-width: 142px;
}

.game-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}


.center-text {
    position: absolute;
    left: 50%;
    bottom: 7%;
    transform: translateX(-50%);
    z-index: 5;
    width: 38.28vw;
    max-width: 735px;
    min-width: 300px;
}

.center-text img {
    width: 100%;
    height: auto;
    object-fit: contain;
}


.download-buttons {
    position: absolute;
    left: 50%;
    bottom: 2%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    width: 90%;
    max-width: 1300px;
    justify-content: center;
}


.download-btn {
    display: block;
    transition: transform 0.3s ease;
}

.download-btn:hover {
    transform: scale(1.05);
}

.download-btn img {
    width: 100%;
    height: auto;
    object-fit: contain;
    vertical-align: bottom;
}


.download-btn.btn1 {
    width: 19.68vw;
    max-width: 378px;
}

.download-btn.btn2,
.download-btn.btn3 {
    width: 14.68vw;
    max-width: 282px;
}

.download-btn.btn4 {
    width: 14.68vw;
    max-width: 282px;
}


.nav-buttons {
    position: absolute;
    right: 15%;
    top: -2%;
    z-index: 10;
    display: flex;
    gap: 10px;
}

.nav-btn {
    width: 6.45vw;
    max-width: 124px;
    min-width: 40px;
    display: block;
    transition: transform 0.3s ease;
}

.nav-btn:hover {
    transform: scale(1.1);
}

.nav-btn img {
    width: 100%;
    height: auto;
    object-fit: contain;
}


.character-nav {
    position: absolute;
    left: 20%;
    top: 68%;
    transform: translateY(-50%);
    z-index: 10;
}

.char-nav-container {
    position: relative;
    width: 7.34vw;
    max-width: 141px;
    min-width: 70px;
    height: 32.65vw;
    max-height: 627px;
    min-height: 313px;
}


.char-nav-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.char-nav-active {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
}


.char-nav-buttons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}


.char-nav-area {
    width: 100%;
    height: 25%;
    position: absolute;
    cursor: pointer;
}


.char-nav-area[data-index="0"] {
    top: 0;
}

.char-nav-area[data-index="1"] {
    top: 25%;
}

.char-nav-area[data-index="2"] {
    top: 50%;
}

.char-nav-area[data-index="3"] {
    top: 75%;
}


.char-nav-area[data-index="0"].active ~ .char-nav-active {
    display: block;
    clip-path: inset(0 0 75% 0);
}

.char-nav-area[data-index="1"].active ~ .char-nav-active {
    display: block;
    clip-path: inset(25% 0 50% 0);
}

.char-nav-area[data-index="2"].active ~ .char-nav-active {
    display: block;
    clip-path: inset(50% 0 25% 0);
}

.char-nav-area[data-index="3"].active ~ .char-nav-active {
    display: block;
    clip-path: inset(75% 0 0 0);
}


.game-section {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}


.section1 {
    aspect-ratio: 1920/1185;
}

.section2 {
    aspect-ratio: 1920/1077;
}

.section3 {
    aspect-ratio: 1920/1246;
}

.section4 {
    aspect-ratio: 1920/289;
}


.section1, .section2, .section3, .section4 {
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    width: 100%;
}


.content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}


.section1 {
    background-image: url('https://m-cdn.xxgameos.com/website/cdn/jiakbazombie/images/top1.jpg');
}

.section2 {
    background-image: url('https://m-cdn.xxgameos.com/website/cdn/jiakbazombie/images/top2.jpg');
}

.section3 {
    background-image: url('https://m-cdn.xxgameos.com/website/cdn/jiakbazombie/images/top3.jpg');
}

.section4 {
    background-image: url('https://m-cdn.xxgameos.com/website/cdn/jiakbazombie/images/top4.jpg');
}


.character-slider {
    position: absolute;
    right: 10%;
    top: 68%;
    transform: translateY(-50%);
    z-index: 5;
    width: 61.56vw;
    max-width: 1182px;
    min-width: 300px;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 67.93%;
}

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.slider-item.active {
    opacity: 1;
    pointer-events: auto;
}


.feature-nav {
    position: absolute;
    left: 21%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.feature-nav-left {
    position: relative;
    width: 4.43vw;
    max-width: 85px;
    min-width: 40px;
}


.feature-nav-right {
    position: absolute;
    right: 21%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.feature-right-btn {
    position: relative;
    width: 4.43vw;
    max-width: 85px;
    min-width: 40px;
}

.feature-btn {
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.feature-btn:hover {
    transform: scale(1.1);
}


.feature-bottom {
    position: absolute;
    left: 50%;
    bottom: 1%;
    transform: translateX(-50%);
    z-index: 5;
    width: 48.75vw;
    max-width: 936px;
    min-width: 300px;
}


.feature-slider {
    position: absolute;
    left: 51%;
    top: 6%;
    transform: translate(-50%, -50%);
    width: 21.51vw;
    max-width: 413px;
    min-width: 200px;
    z-index: 1;
}

.feature-slider .slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 0.5s ease;
    object-fit: contain;
}

.feature-slider .slider-item.active {
    opacity: 1;
}

.bottom-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
}


.payment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.payment-modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    width: 300px;
}

.modal-title {
    font-size: 18px;
    margin-bottom: 0px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.modal-btn.ios,
.modal-btn.android {
    background: #95b300;
    color: white;
}

.modal-btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.close-modal {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}


@media screen and (max-width: 768px) {

    .game-section {
        width: 100vw;
    }

    .content {
        width: 95%;
        padding: 15px;
    }


    .game-logo {
        left: -5%;
        top: -5%;
        width: 1vw;
        min-width: 100px;
    }


    .nav-buttons {
        right: 15%;
        top: -2%;
        gap: 5px;
    }

    .nav-btn {
        width: 8vw;
        min-width: 30px;
    }


    .center-text {
        width: 60vw;
        bottom: 15%;
        min-width: 200px;
        transform: translateX(-25%);
    }


    .download-buttons {
        bottom: 5%;
        flex-wrap: wrap;
        gap: 6px;
        width: 92%;
    }

    .download-btn.btn1 {
        width: 25vw;
        min-width: 90px;
        max-width: 120px;
    }

    .download-btn.btn2,
    .download-btn.btn3,
    .download-btn.btn4 {
        width: 18vw;
        min-width: 70px;
        max-width: 90px;
    }


    .center-text img {
        width: 50%;
        height: auto;
        object-fit: contain;
    }


    .character-nav {
        left: 2%;
    }

    .char-nav-container {
        width: 10vw;
        min-width: 40px;
        height: 45vw;
        min-height: 200px;
    }

    .character-slider {
        right: 5%;
        width: 60vw;
        min-width: 200px;
        top: 50%;
        transform: translateY(-30%);
    }

    .feature-nav {
        left: 10%;
    }

    .feature-nav-left {
        width: 8vw;
        min-width: 30px;
    }

    .feature-nav-right {
        right: 10%;
    }

    .feature-right-btn {
        width: 8vw;
        min-width: 30px;
    }

    .feature-bottom {
        width: 55vw; /* 减小尺寸 */
        bottom: 1%;
        min-width: 200px;
    }

    .feature-slider {
        width: 15vw; /* 根据di.png的缩放比例调整 */
        min-width: 120px;
    }

    .modal-content {
        width: 90%;
        max-width: 300px;
    }

    /* 移动端底部链接字体更小 */
    .footer-link {
        font-size: 5px !important; /* H5下字体更小，强制生效 */
    }
    /* 移动端底部链接整体向上移动 */
    .footer-links {
        margin-top: 10px !important;
    }
}

/* 更小屏幕的额外调整 */
@media screen and (max-width: 480px) {
    .download-buttons {
        gap: 4px;
        bottom: 3%;
    }

    .download-btn.btn1 {
        width: 22vw;
        min-width: 80px;
        max-width: 100px;
    }

    .download-btn.btn2,
    .download-btn.btn3,
    .download-btn.btn4 {
        width: 16vw;
        min-width: 60px;
        max-width: 80px;
    }


    .character-nav {
        left: 20%;
    }

    .char-nav-container {
        width: 8vw;
        min-width: 30px;
        height: 35vw;
        min-height: 150px;
    }

    .character-slider {
        right: 17%;
        width: 50vw;
        min-width: 150px;
        top: 49%;
        transform: translateY(-20%);
    }

    .feature-nav {
        left: 16%;
    }

    .feature-nav-left {
        width: 6vw;
        min-width: 25px;
    }

    .feature-nav-right {
        right: 16%;
    }

    .feature-right-btn {
        width: 6vw;
        min-width: 25px;
    }

    .feature-bottom {
        width: 45vw;
        bottom: 5%;
        min-width: 150px;
    }

    .feature-slider {
        width: 12vw;
        min-width: 80px;
        left: 51%;
        top: 7%;
    }
}


@media screen and (orientation: portrait) {
    .game-section {
        width: 100vw;
    }
}

@media screen and (orientation: landscape) {
    .game-section {
        width: 100%;
    }
} 

/* 底部链接容器样式 - 控制整体位置 */
.footer-links {
    margin-top: 5%;
    margin-bottom: 1%;
    margin-left: 43%;
}

/* 底部链接样式 - 控制字体大小和样式 */
.footer-link {
    font-size: 15px; /* 字体稍微小一点 */
    color: #fff;
    text-decoration: underline;
    margin: 0 10px;
    font-family: "Microsoft JhengHei", "微軟正黑體", "PMingLiU", "新細明體", serif;
    letter-spacing: 1px;
    cursor: pointer;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #ffd700;
} 