body {
    margin: 0;
    background-color: #4ddb60; /* 深蓝/紫背景 */
    display: flex;
    justify-content: center;
    min-height: 100vh;
    flex-direction: column;
    color: #e0e0e0; /* 浅灰文本 */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* 更改字体 */
}

.container {
    max-width: 720px;
    width: 100%;
    background-color: #4ddb60; /* 与背景同色 */
    border-top: none; /* 移除顶部边框 */
    border-bottom: none; /* 移除底部边框 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* 增加卡片阴影 */
    transition: transform 0.2s; /* 添加过渡效果 */ /* 移除阴影 */
    margin: 0 auto; /* 移除顶部和底部外边距 */
    border-radius: 5px; /* 增加圆角 */ /* 移除圆角 */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

header {
    background-color: #0f3460; /* 深蓝色背景 */
    color: c; /* 红粉色文字 */
    text-align: left;
    padding: 15px 25px; /* 调整内边距 */
    font-size: 1.5em; /* 调整字体大小 */
    border-bottom: 1px solid rgba(233, 69, 96, 0.5); /* 细分隔线 */
}

header a {
    color: #e94560; /* 红粉色链接 */
    text-decoration: none;
}

main {
    padding: 20px;
    flex-grow: 1;
}

main h1, main h2, main h3 {
    color: #e94560; /* 模块标题为红粉色 */
    border-bottom: 1px solid rgba(233, 69, 96, 0.5); /* 细分隔线 */
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.4em; /* 调整字体大小 */
}

main p {
    margin-bottom: 1em;
    line-height: 1.8; /* 调整行高 */
}

footer {
    background-color: #0f3460; /* 深蓝色背景 */
    color: #e0e0e0; /* 浅灰文字 */
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em; /* 调整字体大小 */
    border-top: 1px solid rgba(233, 69, 96, 0.5); /* 细分隔线 */
}

footer p {
    margin: 5px 0 0;
}

footer a {
    color: #533483; /* 紫色链接 */
    text-decoration: none; /* 移除下划线 */
}

footer a:hover {
    color: #e94560; /* 红粉色悬停 */
}

/* 游戏模块 */
.game-module {
    border: none; /* 移除边框 */
    padding: 0 10px 20px 10px; /* 减小上方的 padding */
    margin-bottom: 30px;
    background-color: transparent !important; /* 强制透明背景 */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); /* 增加微妙的阴影 */
}


.module-1 { box-shadow: 0 0 10px rgba(233, 69, 96, 0.3); } /* 红粉色阴影 */
.module-2 { box-shadow: 0 0 10px rgba(83, 52, 131, 0.3); } /* 紫色阴影 */
.module-3 { box-shadow: 0 0 10px rgba(255, 193, 7, 0.3); } /* 琥珀色阴影 */
.module-4 { box-shadow: 0 0 10px rgba(0, 188, 212, 0.3); } /* 青绿色阴影 */

/* Common game card styles */
.game-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

@media (max-width: 480px) {
    .game-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

.game-card {
    display: block;
    background-color: #2e2e4e; /* 稍亮的深蓝色 */
    border: none; /* 移除边框 */
    border-radius: 5px; /* 增加圆角 */
    overflow: hidden;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* 增加卡片阴影 */
.game-card:hover {
    transform: translateY(-5px); /* 悬停上浮效果 */
}
    transition: transform 0.2s; /* 添加过渡效果 */
}

.game-card img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid rgba(83, 52, 131, 0.5); /* 细分隔线 */
}

.game-card p {
    color: #e0e0e0; /* 浅灰文字 */
    padding: 10px;
    margin: 0;
    font-size: 0.95em; /* 调整字体大小 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: normal;
}
