body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: #0d0d0d; /* 更深的背景色 */
    display: flex;
    justify-content: center;
    min-height: 100vh;
    flex-direction: column;
}

.container {
    max-width: 1024px; /* 进一步增加最大宽度 */
    width: 100%;
    background-color: #404e9a; /* 与body背景色更协调的深色 */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8); /* 更明显的阴影效果 */
    margin: 0 auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    border-radius: 12px; /* 增大圆角 */
    overflow: hidden;
    border: 1px solid #333; /* 添加边框 */
}

header {
    background-color: #364e81; /* 更深沉的蓝色 */
    color: white;
    text-align: center;
    padding: 25px 30px; /* 增加内边距 */
    font-size: 2.5em; /* 进一步增大字体 */
    font-weight: 800; /* 字体更粗 */
    border-bottom: 5px solid #0b4b7f; /* 更明显的底部边框 */
    text-transform: uppercase; /* 文本大写 */
    letter-spacing: 2px; /* 增加字母间距 */
}

main {
    padding: 25px; /* 增加内边距 */
    flex-grow: 1;
    color: #e0e0e0; /* 浅灰色文字，与深色背景形成对比 */
    line-height: 1.8; /* 增加行高，提高可读性 */
}

main h1, main h2, main h3 {
    color: #ffffff;
    margin-bottom: 20px; /* 增加标题下边距 */
    padding-bottom: 8px; /* 下划线与文字的距离 */
}

main p {
    margin-bottom: 1em;
    line-height: 1.6;
}

footer {
    background-color: #404e9a; /* 与header颜色保持一致 */
    color: white;
    text-align: center;
    padding: 25px 0; /* 增加内边距 */
    font-size: 1em; /* 进一步增大字体 */
    border-top: 5px solid #002b5e; /* 更明显的顶部边框 */
}

footer p {
    /* 移除p标签的默认边距 */
    margin-bottom: 0;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Common game card styles */
.game-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

@media (max-width: 480px) {
    .game-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

.game-card {
    display: block;
    background-color: #535679; /* 恢复为深色卡片背景 */
    border-radius: 12px; /* 进一步增大圆角 */
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; /* 增加边框颜色动画 */
    text-align: center;
    text-decoration: none;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5); /* 更明显的阴影 */
    border: 1px solid #333; /* 添加边框 */
}

.game-card:hover {
    transform: translateY(-7px) scale(1.03); /* 更明显的悬停效果 */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.7);
    border-color: #007bff; /* 悬停时边框颜色变化 */
}


.game-card img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}

.game-card p {
    color: #f0f0f0; /* 浅色文字 */
    padding: 12px 10px; /* 调整内边距 */
    margin: 0;
    font-size: 1em; /* 增大字体 */
    font-weight: 500; /* 字体加粗 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 游戏模块样式 */
.game-module {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 8px;
    /* 添加斜向条纹背景 */
    background: repeating-linear-gradient(
        -45deg,
        #2a2a2a,
        #2a2a2a 5px,
        #333 5px,
        #333 10px
    );
}

.game-module h2 {
    color: white;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

