* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(145deg, #1f0a47, #371e7a, #6c3483);
    /* 深邃宝石紫渐变 */
    color: #f0f0f0;
    /* 浅色文字 */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: rgba(0, 0, 0, 0.4);
    /* 半透明黑色背景 */
    padding: 30px 20px;
    text-align: center;
    color: #e0d2f7;
    /* 淡紫色文字 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

header h1 {
    margin: 0;
    font-size: 2.8em;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 2px 2px 5px rgba(100, 50, 200, 0.7);
    /* 紫色光晕 */
}

header p {
    margin-top: 10px;
    font-size: 1.2em;
    color: #c5b3e6;
    /* 稍深的淡紫色 */
}

main.games-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* 响应式网格布局 */
    gap: 30px;
    padding: 40px;
    flex-grow: 1;
    /* 占据剩余空间 */
}

.game-card {
    background: rgba(255, 255, 255, 0.1);
    /* 轻微白色透明背景 */
    border-radius: 15px;
    overflow: hidden;
    /* 隐藏溢出的内容 */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    /* 更深的阴影 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* 平滑过渡 */
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-10px);
    /* 悬停时轻微上移 */
    box-shadow: 0 12px 25px rgba(100, 50, 200, 0.5);
    /* 悬停时紫色光晕 */
}

.game-card img {
    width: 100%;
    height: 200px;
    /* 固定图片高度 */
    object-fit: cover;
    /* 保持图片比例并填充 */
    display: block;
    border-bottom: 3px solid #8a2be2;
    /* 紫色边框 */
}

.game-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /* 占据剩余空间 */
}

.game-info h2 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #f0e68c;
    /* 金色标题 */
    font-size: 1.6em;
}

.game-info p {
    color: #dcdcdc;
    /* 亮灰色描述文字 */
    font-size: 1em;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
    /* 使描述占据空间 */
}

.play-button {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(45deg, #8a2be2, #ff69b4);
    /* 紫色到粉色渐变 */
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    text-align: center;
    transition: background 0.3s ease, transform 0.2s ease;
    align-self: center;
    /* 按钮居中 */
}

.play-button:hover {
    background: linear-gradient(45deg, #ff69b4, #8a2be2);
    /* 反转渐变 */
    transform: scale(1.05);
    /* 轻微放大 */
}

footer {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    text-align: center;
    color: #aaa;
    margin-top: auto;
    /* 推到底部 */
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2.2em;
    }
    header p {
        font-size: 1em;
    }
    main.games-container {
        padding: 20px;
        gap: 20px;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .game-card img {
        height: 180px;
    }
    .game-info {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8em;
    }
    header p {
        font-size: 0.9em;
    }
    main.games-container {
        padding: 15px;
        gap: 15px;
        grid-template-columns: 1fr;
        /* 单列显示 */
    }
    .game-card img {
        height: 150px;
    }
    .game-info h2 {
        font-size: 1.4em;
    }
    .play-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}