/* 基本样式 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 4px 2px -2px gray;
}

header .logo h1 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.game-banner {
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-top: 20px;
}

.game-banner .banner-slide {
    display: flex;
    transition: transform 1s ease-in-out;
}

.game-banner img {
    width: 100%;
    height: auto;
}

.game-features {
    padding: 40px;
    text-align: center;
    background-color: #fff;
}

.game-features h2 {
    margin-bottom: 20px;
}

.features {
    display: flex;
    justify-content: space-around;
}

.feature {
    width: 23%;
    padding: 10px;
    background-color: #f4f4f4;
    border-radius: 5px;
    text-align: center;
}

.feature h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

footer {
    padding: 40px;
    background-color: #333;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

footer .contact, footer .latest-games {
    width: 45%;
}

footer h3 {
    margin-bottom: 20px;
}

footer p {
    margin: 5px 0;
}

footer .latest-games .game img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-bottom: 10px;
}

footer .latest-games .game p {
    text-align: center;
}

/* 游戏部分样式 */
.game {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.game img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-bottom: 10px;
}

.game p {
    font-size: 16px;
    margin: 5px 0;
}

/* 游戏图标列表（横向排列，左对齐） */
.game-icon-list {
    list-style-type: none;  /* 去掉默认的圆点 */
    padding: 0;
    margin: 0;
    display: flex;  /* 横向排列 */
    gap: 20px;  /* 每个图标之间的间隔 */
    align-items: center;  /* 确保图片和文字垂直居中 */
}

.game-icon-list li {
    text-align: left;  /* 确保左对齐 */
}

.game-icon-list img {
    width: 50px;  /* 图标大小 */
    height: 50px;
    object-fit: cover;
    margin-right: 10px;  /* 图标和文字之间的间距 */
}

/* 游戏展示横幅 */
.game-banner {
    width: 1440px;  /* 设置宽度为1280px */
    height: auto;  /* 设置固定高度 */
    margin: 0 auto;  /* 水平居中 */
    overflow: hidden;
    margin-top: 20px;
    display: flex;
    justify-content: center;  /* 水平居中图片 */
    align-items: center;  /* 垂直居中图片 */
}

.game-banner .banner-slide {
    display: flex;
    transition: transform 1s ease-in-out;
    width: 100%;
}

.game-banner img {
    width: 720px;  /* 图片自适应宽度 */
    height: 480px;  /* 图片自适应高度 */
    object-fit: contain;  /* 保持图片完整，适应容器 */
    object-position: center;  /* 保证图片居中显示 */
}

/* 使页面在移动设备上响应良好 */
@media (max-width: 768px) {
    .game-banner .banner-slide {
        flex-direction: column;
    }

    .features {
        flex-direction: column;
    }

    footer {
        flex-direction: column;
        align-items: center;
    }
}
