/* ----------------全局---------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1e1e2f, #2a2a3f);
    color: #eee;
    min-height: 100vh;
    text-align: center;
}

/* ----------------头部---------------- */
.header { padding: 13px 20px 14px; }
.logo { width: 183px; }
.header h1 { font-size: 3rem; color: #ff9800; margin-bottom: 10px; }
.header p { font-size: 1.2rem; color: #ccc; }

/* ----------------游戏列表---------------- */
.game-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

/* 游戏卡片 */
.game-card {
    background: #2a2a3f;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}
.game-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.7);
}
.game-card img { width: 100%; height: 140px; object-fit: cover; border-bottom: 1px solid #444; }
.game-card h3 { font-size: 1.2rem; color: #fff; margin: 15px 0; flex: 1; }
.game-card a {
    display: block;
    margin: 10px auto 20px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #ff9800, #ffc107);
    color: #1e1e2f;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    width: 60%;
    transition: all 0.3s;
}
.game-card a:hover {
    background: linear-gradient(135deg, #ffc107, #ffb300);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* ----------------游戏页 iframe---------------- */
#gameFrame {
    width: 100%;
    max-width: 1200px;
    height: 600px;
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin-bottom: 30px;
}

/* 返回按钮 */
.back-button {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #ff9800, #ffc107);
    color: #1e1e2f;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s;
    margin-bottom: 50px;
}
.back-button:hover {
    background: linear-gradient(135deg, #ffc107, #ffb300);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* ----------------响应式---------------- */
@media (max-width: 600px) {
    .header h1 { font-size: 2rem; }
    .game-card img { height: 120px; }
    #gameFrame { height: 400px; }
}
#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* 背景层 */
}
