/* 基本样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%; /* 确保body占满整个视口高度 */
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: "Arial", "微软雅黑", sans-serif;
    line-height: 1.6;
}

/* 响应式布局 */
.container {
    width: 90%;
    margin: 0 auto;
}

header, main, footer {
    /* padding: 20px 0; */
    text-align: center;
}

hr {
    border: 0;
    height: 3px;
    background: #5d8ace;
    margin: 20px 0;
}

/* .slides img {
    width: 80%;
    height: auto;
} */

.features, .download {
    margin-top: 20px;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin: 5px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }

    .button {
        display: block;
        margin: 5px auto;
    }
}
.content {
    flex: 1; /* 占据剩余空间 */
    /* 可以添加其他样式来美化内容区域 */
}
footer {
    margin-top: auto; /* 自动推到容器底部 */
    background-color: #9aa3bc;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}




/* 样式调整 */
.tab {
    overflow: hidden;
    border-bottom: 1px solid #e08e8e;
    background-color: #9aa3bc;
  }
  
  /* 按钮风格 */
  .tab button {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
    font-size: 17px;
  }
  
  /* 改变背景颜色 */
  .tab button:hover {
    background-color: #ddd;
  }
  
  /* 激活tab的按钮风格 */
  .tab button.active {
    background-color: #4f80c9;
  }
  
  /* 隐藏内容 */
  .tabcontent {
    display: none;
    padding: 6px 12px;
    border-top: none;
  }
  






.slider-wrapper {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.slider {
    display: flex;
    will-change: transform; /* 优化性能 */
    width: 100%;
    transition: transform 0.5s ease-in-out;
    /* 初始化动画 */
    /* animation: scroll 21s infinite linear; */
}

.slide {
    border: 1px solid rgb(158, 172, 83);
    min-width: 100%;
    box-sizing: border-box;
    /* flex-shrink: 0; */
}

.slide img {
    width: 100%;
    display: block;
}

/* 动画定义 */
@keyframes scroll {
    0% { transform: translateX(0); }
    /* 33.33% { transform: translateX(-100%); } */
    50% { transform: translateX(-100%); }
    100% { transform: translateX(0); } /* 回到起点以实现循环 */
}

/* 注意：CSS中没有真正的'pause-animation'属性，这是为了说明而加入的。
   实际中，我们需要通过JavaScript来控制动画的暂停和恢复。 */



   .game-intro {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.game-intro h1 {
    margin-top: 0;
    font-size: 24px;
    color: #333;
}
.game-intro p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #666;
}
.game-intro img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px;
}
.game-features {
    list-style-type: none;
    padding: 0;
}
.game-features li {
    background-color: #f0f0f0;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    color: #333;
}


.carousel-caption {
    /* position: absolute; */
    bottom: 20px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-align: left;
}

.carousel-caption h2 {
    margin: 0;
    font-size: 24px;
}

.carousel-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ff6347;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    margin-top: 10px;
}