* {
    margin: 0;
    padding: 0;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

body {
    background-image: url("../../../images/theme/game-zwhite/hands_holding_shapes.svg");
    overflow-x: hidden;
    /* 防止横向滚动 */
}

/* header_start */
.z_header {
    max-width: 769px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background-position: 20px;
    height: 70px;
}

.z_main_header {
    max-width: 769px;
    width: 100%;
    display: flex;
    align-items: center;
    height: auto;
    border-bottom: 1px solid #f3f4f4;
    justify-content: flex-start;
    /* 修改为左对齐 */
    padding: 14px 12px 14px 16px;
    background-image: url("../../../images/theme/game-zwhite/hands_holding_shapes.svg");
    background-size: cover;

}

.drawer-toggle.persistent {
    margin-right: 5px;
    /* 添加右侧间距 */
}

.z_header_btn {
    cursor: pointer;
    color: #fff;
    margin-left: auto;
    /* 保持在右侧 */
    background: linear-gradient(270deg, #ee4623, #fb5f14);
    padding: 8px 14px;
    cursor: pointer;
    border-radius: 40px;
    font-weight: 600;
    white-space: nowrap;
    line-height: 25px;
}

/* header_end */

/* header_start */
.z_Search {
    max-width: 769px;
    margin: 0 auto;
    width: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.z_Search_content {
    max-width: 769px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;

}

.z_Search_game {
    width: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 6px 8px;
    background: #ffffff;
    border: 1px solid #e5e5ea;
    border-radius: 5px;
    /* margin-right: 9px; */
    position: relative;
    /* box-sizing: border-box */
}

.z_Search_game img {
    /* position: absolute; */
    /* height: 25px;
    width: 25px;
    line-height: 25px; */
    /* bottom: calc(50% - 12px); */
    /* left: 100px; */
}

.z_Search_ipt {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #f3f4f4;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    line-height: 25px;
}

.z_Search_icon {
    position: absolute;
    bottom: calc(50% - 12px);
    right: 10px;
}

/* header_end */

/* navigate_start */
.z_navigate_sp {
    font-size: 30px;
}

.z_navigate_ul {
    width: 100%;
    height: 100%;
    list-style-type: none;
}

.z_navigate_ul li {
    cursor: pointer;
    display: list-item;
    text-align: -webkit-match-parent;
    unicode-bidi: isolate;
}

/* navigate_end */

/* 轮播图样式 */
.carousel-container {
    position: relative;
    width: 90%;
    max-width: 768px;
    margin: 15px auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* .carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    transform: translateY(100%);

    transition: transform 0.3s ease-in-out;
} */
 .carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    /* 修改transform属性使标题可见 */
    transform: translateY(0);
    transition: transform 0.3s ease-in-out;
}
/* 可选：添加活动状态动画效果 */
.carousel-slide.active .carousel-caption {
    transform: translateY(0);
    opacity: 1;
}
/* 可选：非活动状态隐藏 */
.carousel-slide:not(.active) .carousel-caption {
    transform: translateY(100%);
    opacity: 0;
}

.carousel-caption h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #fff;
}

.carousel-caption p {
    font-size: 14px;
    opacity: 0.9;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 400px;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px;
}

.slide-content h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.slide-content p {
    margin-bottom: 15px;
    font-size: 1rem;
}

.slide-content a {
    display: inline-block;
    background-color: #4a6cf7;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.slide-content a:hover {
    background-color: #3b5be3;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    /* padding: 0 20px; */
}

.carousel-btn {
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
}

.carousel-btn:hover {
    background-color: rgba(255, 255, 255, 1);
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
}

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

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

@media (max-width: 768px) {
    .carousel {
        height: 300px;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .carousel {
        height: 250px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .slide-content h3 {
        font-size: 1.2rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }
}

/* carousel_end */


/* main _start */
main {
    max-width: 769px;
    margin: 0 auto;
    padding: 0 15px;
}

/* .game-container {
    max-width: 769px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 10px 0;
} */

.game-container {
    max-width: 769px;
    display: flex;
    justify-content: flex-start; /* 将center改为flex-start实现靠左对齐 */
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 10px 0;
}

.game-card {
    width: calc(25% - 15px);
    box-sizing: border-box;
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.game-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .game-card {
        width: calc(50% - 15px);
        min-width: unset;
        /* 移除最小宽度限制 */
    }


}

/* 添加更小屏幕的单列布局 */
@media (max-width: 320px) {
    .game-card {
        width: 100%;
        /* 小屏下单列显示 */
        margin-left: 0;
        margin-right: 0;
    }
}

/* main_end */



/* navigate_start */
.z_navigate_sp {
    line-height: 40px;
    height: 40px;
    /* margin-top: 20px; */
    font-size: 25px;
    color: #fb5f14;
    padding: 10px 15px;
    border-bottom: 1px solid #f3f4f4;
}

.z_navigate_ul {
    width: 100%;
    height: 100%;
    list-style-type: none;
    background-color: #fff;
    padding: 10px 0;
}

.z_navigate_ul li {
    cursor: pointer;
    display: list-item;
    text-align: -webkit-match-parent;
    unicode-bidi: isolate;
}

.z_navigate_ul li a {
    display: block;
    padding: 12px 20px;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.z_navigate_ul li a:hover {
    background-color: #fff8f5;
    color: #fb5f14;
    border-left-color: #fb5f14;
    transform: translateX(5px);
}

.drawer-close {
    line-height: 40px;
    height: 40px;
}

/* navigate_start */

/* About Us section styles */
.about-content {
    max-width: 769px;
    margin: 0 auto;
    padding: 25px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.about-content h2 {
    color: #333;
    font-size: 28px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #fb5f14;
    display: inline-block;
}

.about-content p {
    color: #666;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .about-content {
        /* padding: 15px;
        margin: 20px 15px; */
        width: 90%;
        margin: 0 auto;

    }

    .about-content h2 {
        font-size: 24px;
    }
}

/* 弹出层 */
/* 按钮样式 */
.menu-button {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
}

/* 菜单容器样式 */
.dropdown {
    position: relative;
    display: inline-block;
}

/* 菜单内容样式，默认隐藏 */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* 菜单项样式 */
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

/* 鼠标悬停在菜单项上的样式 */
.dropdown-content a:hover {
    background-color: #f1f1f1
}

/* 遮罩层样式 */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    transform: translateY(-100%);
    /* 初始位置在屏幕顶部外 */
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    /* 添加transform过渡 */
}


.overlay.show {
    opacity: 1;
    transform: translateY(0)
}


/* 全屏菜单样式 */
.fullscreen-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background-color: white;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}



.fullscreen-menu.show {
    opacity: 1;
    transform: translateX(0);
}

/* 关闭按钮样式 */
.close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px 10px;
    transition: transform 0.2s ease-in-out;
}

.close-button:hover {
    transform: rotate(90deg);
}

/* 全屏菜单项样式 */
.fullscreen-menu-content {
    margin-top: 60px;
}

.fullscreen-menu-content a {
    display: block;
    padding: 12px 15px;
    color: #333;
    border-radius: 5px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.fullscreen-menu-content li {
    margin: 8px 0;
}

.fullscreen-menu-content a:hover {
    background-color: #fff8f5;
    color: #fb5f14;
    transform: translateX(5px);
    border-left-color: #fb5f14;
}

/* 弹出层 -end*/

.footer {
    max-width: 769px;
    margin: 0 auto;
    padding: 0 15px;
}


/* 广告区域样式 */
.ad-banner {
    color: wheat;
    max-width: 768px;
    width: 90%;
    text-align: center;
    margin-bottom: 30px;
    margin-top: 30px;
    /* height: 300px; */
    background-color: #333;
    margin: 0 auto;
    margin-top: 15px;
    margin-bottom: 15px;
}
.ad-banner-isheight{
    min-height: 300px;
}

.ad-banner img {
    width: 100%;
    max-width: 768px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ... existing code ... */
/* 添加图片加载旋转动画 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.lazy-img {
    position: relative;
    min-height: 180px; /* 确保动画容器高度与图片一致 */
}

.lazy-img::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
}

/* 图片加载完成后隐藏动画 */
.lazy-img.loaded::before {
    display: none;
}
/* ... existing code ... */

@media screen and (max-width: 768px) {
    .ad-banner {
        width: 90%;
        margin: 0 auto;
        margin-bottom: 30px;
        margin-top: 30px;
        padding: 0 10px;
    }

    .ad-banner img {
        border-radius: 4px;
    }

}

@media screen and (max-width: 480px) {
    .ad-banner {
        width: 90%;
        margin: 0 auto;
        margin-bottom: 15px;
        margin-top: 15px;
        /* padding: 0 5px; */
    }
}