/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

body {
    background-color: #f0f2f5;
    color: #333;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
header {
    background-color: #4a148c;
    color: white;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* 游戏列表样式 */
.games-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.game-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    width: 220px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.game-icon {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    overflow: hidden;
}

.game-icon img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.game-info {
    padding: 15px;
    text-align: center;
}

.game-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: #333;
}

.game-info p {
    font-size: 0.9rem;
    color: #666;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 50px;
    color: #666;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .games-container {
        gap: 20px;
    }
    
    .game-card {
        width: 160px;
    }
    
    .game-icon {
        height: 120px;
    }
    
    .game-icon img {
        width: 80px;
        height: 80px;
    }
    
    .game-info h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .games-container {
        gap: 15px;
    }
    
    .game-card {
        width: 140px;
    }
    
    .game-icon {
        height: 100px;
    }
    
    .game-info {
        padding: 10px;
    }
}
