body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #660066;
    /* 超出部分填充黑色 */
    display: flex;
    justify-content: center;
    min-height: 100vh;
    flex-direction: column;
}

.container {
    max-width: 720px;
    width: 100%;
    background-color: #333;
    /* 主体深灰色 */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    margin: 0 auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

header {
    background-color: #ff69b4;
    color: white;
    text-align: left;
    padding: 15px 25px;
    font-size: 2em;
    font-weight: bold;
}

main {
    padding: 20px;
    flex-grow: 1;
    color: white;
}

main h1, main h2, main h3 {
    color: white;
}

main p {
    margin-bottom: 1em;
    line-height: 1.6;
}

footer {
    background-color: #ff69b4;
    /* 蓝色 */
    color: white;
    text-align: center;
    padding: 15px 0;
    font-size: 0.9em;
}

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: #8b008b;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
    text-align: center;
    text-decoration: none;
}

.game-card img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}

.game-card p {
    color: white;
    padding: 10px;
    margin: 0;
    font-size: 0.9em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

