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

/* 游戏页面特定样式，不影响公共头部和底部 */
.game-container {
    font-family: Arial, sans-serif;
    background-color: #111;
    color: #fff;
    text-align: center;
    margin: 20px auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    max-width: 850px;
}

/* 游戏详情页底部广告 */
.game-bottom-ad {
    margin-top: 40px;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.game-header h1 {
    color: #00ff00;
    font-size: 24px;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}

.score {
    color: #00ff00;
    font-size: 20px;
    font-weight: bold;
}

#gameCanvas {
    border: 2px solid #00ff00;
    background-color: #000;
    display: block;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.game-controls {
    margin-top: 10px;
}

.game-controls p {
    margin-bottom: 10px;
    color: #aaa;
}

button {
    background-color: #00ff00;
    color: #000;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    margin: 0 5px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

button:hover {
    background-color: #00cc00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.8);
}

.game-over {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.9);
    padding: 30px;
    border: 2px solid #ff0000;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.8);
    z-index: 1000;
}

.game-over h2 {
    color: #ff0000;
    font-size: 32px;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
}

.game-over p {
    font-size: 24px;
    margin-bottom: 20px;
}

.game-over button {
    background-color: #ff0000;
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.game-over button:hover {
    background-color: #cc0000;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.8);
}