* {
    margin: 0;
    padding: 0;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}
body{
    overflow-x: hidden; /* 防止横向滚动 */
    background-image: url('../images/dynamic_background.svg');
    background-repeat: repeat;
    background-attachment: fixed;
    background-size: cover;
}

/* header_start */
.z_header {
    max-width: 769px;
    width: 100%;
    margin: 8px auto 0;
    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/game_background_new.svg");
    background-size: cover;
    border-radius: 10px;
}

.z_main_header > a {
    margin-left: 10px;
    color: #fff !important;
}

.z_main_header h1 {
    margin: 0;
    font-size: 40px;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.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: 14px auto 0;
    width: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.z_Search_game {
    width: 84px;
    flex: 0 0 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 6px 8px;
    background: #ffffff;
    border: 1px solid #e5e5ea;
    border-radius: 5px;
    position: relative;
}

.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;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
}

.z_Search_content form {
    position: relative;
    flex: 1;
}

@media (max-width: 768px) {
    .z_main_header h1 {
        font-size: 32px;
    }

    .z_Search_game {
        width: 72px;
        flex: 0 0 72px;
    }
}

/* 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_start */
.carousel-container {
    position: relative;
    max-width: 769px;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;

    
}

.carousel {

    max-width: 769px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    height: 400px;
}

 .carousel-slide {
    position: relative;
    max-width: 769px;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    display: none;
}
.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
}
.carousel-caption h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #fff;
}
.carousel-caption p {
    font-size: 14px;
    opacity: 0.92;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.carousel-slide.active {
    display: block;
}

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

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

.carousel-btn {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 18px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.indicator.active {
    background: white;
}

/* 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-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; /* 移除最小宽度限制 */
    }
    

.carousel {
    width: 90%;
}
    
}
/* 添加更小屏幕的单列布局 */
@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 {
  max-width: 768px;
  width: 90%;
  text-align: center;
  margin-bottom: 30px;
  margin-top: 30px;
  height: 300px;
  background-color: #333;
  margin: 0 auto;
  margin-top: 30px;
  margin-bottom: 30px;
}

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

@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: 30px;
    margin-top: 30px;
    padding: 0 5px;
  }
}
