body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background: linear-gradient(to right, #2196F3, #42A5F5); /* 绿色渐变背景 */
    display: flex;
    justify-content: center;
    min-height: 100vh;
    flex-direction: column;
}

.container {
    max-width: 960px; /* 增加最大宽度 */
    width: 100%;
    background-color: #64B5F6; /* 浅灰色背景 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* 更柔和的阴影 */
    margin: 20px auto; /* 上下边距增加，左右居中 */
    border-radius: 12px; /* 更圆润的边角 */
    overflow: hidden; /* 确保内容不溢出圆角 */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

header {
    background-color: #2196F3; /* 绿色主题 */
    color: #ffffff; /* 白色文字 */
    text-align: center; /* 标题居中 */
    padding: 20px 25px; /* 增加内边距 */
    font-size: 2.2em; /* 字体稍大 */
    font-weight: bold;
    letter-spacing: 1px; /* 增加字母间距 */
}

main {
    padding: 30px; /* 增加内边距 */
    flex-grow: 1;
    color: #333333; /* 深灰色文字 */
}

main h1, main h2, main h3 {
    color: #2196F3; /* 绿色主题 */
    text-align: center; /* 标题居中 */
    margin-bottom: 25px; /* 增加标题下边距 */
    font-weight: 600; /* 稍粗字体 */
}

main p {
    margin-bottom: 1em;
    line-height: 1.6;
}

footer {
    background-color: #2196F3; /* 绿色主题 */
    color: #ffffff; /* 白色文字 */
    text-align: center;
    padding: 18px 0; /* 调整内边距 */
    font-size: 0.95em; /* 字体稍大 */
    border-top: 1px solid #388E3C; /* 顶部细线 */
}

footer p {
    margin-bottom: 0;
}

footer a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    text-decoration: underline;
    color: #c8e6c9; /* 悬停颜色 */
}

.game-module {
    margin-bottom: 30px;
    padding: 25px; /* 增加内边距 */
    border-radius: 10px; /* 更圆润的边角 */
    background-color: #ffffff; /* 白色背景 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); /* 柔和阴影 */
}

.game-module h2 {
    color: #2196F3; /* 绿色主题 */
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0; /* 细分隔线 */
    padding-bottom: 15px; /* 增加下边距 */
    text-align: center; /* 标题居中 */
    font-size: 1.8em;
}

/* Common game card styles */
.game-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); /* 调整卡片最小宽度 */
    gap: 20px; /* 增加卡片间距 */
    justify-content: center; /* 卡片居中 */
}

@media (max-width: 480px) {
    .game-cards {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); /* 手机端调整卡片最小宽度 */
        gap: 15px;
    }
}

.game-card {
    display: block;
    background-color: #ffffff; /* 白色背景 */
    border-radius: 10px; /* 圆润边角 */
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; /* 增加阴影过渡 */
    text-align: center;
    text-decoration: none;
    border: 1px solid #e0e0e0; /* 细边框 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 柔和阴影 */
}

.game-card:hover {
    transform: translateY(-5px); /* 悬停上浮效果 */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* 悬停阴影加深 */
}

.game-card img {
    width: 100%;
    height: 120px; /* 增加图片高度 */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #e0e0e0; /* 图片底部细线 */
}

.game-card p {
    color: #333333; /* 深灰色文字 */
    padding: 12px; /* 调整内边距 */
    margin: 0;
    font-size: 1em; /* 字体稍大 */
    font-weight: 600; /* 字体加粗 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

footer {
    background-color: #2196F3; /* 绿色主题 */
    color: #ffffff; /* 白色文字 */
    text-align: center;
    padding: 18px 0; /* 调整内边距 */
    font-size: 0.95em; /* 字体稍大 */
    border-top: 1px solid #388E3C; /* 顶部细线 */
}

footer p {
    margin-bottom: 0;
}

footer a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    text-decoration: underline;
    color: #c8e6c9; /* 悬停颜色 */
}
