body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
}

a{
    color: #fff;
    text-decoration: none;
}

main {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 0;
}

#welcome {
    text-align: center;
    padding: 4rem 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    position: relative;
}

#welcome img{
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;        /* 充满父级宽度 */
    height: 100%;       /* 充满父级高度 */
    object-fit: cover;
}

#welcome h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color:  #a777e3;
}

#welcome p {
    font-size: 1.2rem;
    color: #aaa;
    max-width: 600px;
    margin: 0 auto;
}

#stats {
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-card {
    background-color: rgba(26, 26, 26, 0.8);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 1.5rem;
    color: #6e8efb;
    font-weight: bold;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.game-card {
    background-color: rgba(26, 26, 26, 0.8);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(110, 142, 251, 0.3);
    border-color: #6e8efb;
}

.game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.game-card h3 {
    margin: 1rem 0 0.5rem;
    padding: 0 1rem;
    font-size: 1.2rem;
}

.game-card p {
    padding: 0 1rem 1rem;
    color: #aaa;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .game-grid {
        grid-template-columns: 1fr;
    }
}
