/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

/* 游戏容器 */
.game-container {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
    border: 2px solid rgba(0, 255, 255, 0.5);
}

/* 游戏头部 */
.game-header {
    text-align: center;
    margin-bottom: 20px;
}

.game-header h1 {
    font-size: 2.5em;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    margin-bottom: 15px;
    font-weight: bold;
}

.game-info {
    display: flex;
    justify-content: space-around;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.game-info div {
    font-size: 1.1em;
    font-weight: bold;
}

.score { color: #00ff00; }
.lives { color: #ff6b6b; }
.level { color: #4ecdc4; }

/* Canvas样式 */
#gameCanvas {
    display: block;
    margin: 0 auto;
    border: 3px solid #00ffff;
    border-radius: 10px;
    background: linear-gradient(to bottom, #000033 0%, #000066 100%);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

/* 游戏控制区域 */
.game-controls {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.instructions {
    flex: 1;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.instructions h3 {
    color: #00ffff;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.instructions p {
    margin: 5px 0;
    font-size: 0.9em;
    color: #cccccc;
}

/* 按钮样式 */
.buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn {
    padding: 12px 24px;
    font-size: 1em;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(45deg, #00ffff, #0080ff);
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 255, 0.5);
    background: linear-gradient(45deg, #00cccc, #0066cc);
}

.btn:disabled {
    background: #666666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* 游戏结束界面 */
.game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.game-over-content {
    background: rgba(0, 0, 0, 0.9);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid #ff6b6b;
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.5);
}

.game-over-content h2 {
    color: #ff6b6b;
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.game-over-content p {
    font-size: 1.3em;
    margin: 10px 0;
    color: #ffffff;
}

#finalScore {
    color: #00ff00;
    font-weight: bold;
    font-size: 1.5em;
}

#gameOverMessage {
    color: #ffd700;
    font-style: italic;
}

/* 隐藏类 */
.hidden {
    display: none !important;
}

/* 响应式设计 */
@media (max-width: 900px) {
    .game-container {
        padding: 15px;
        margin: 10px;
    }
    
    #gameCanvas {
        width: 100%;
        max-width: 600px;
        height: auto;
    }
    
    .game-controls {
        flex-direction: column;
        gap: 20px;
    }
    
    .buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .game-header h1 {
        font-size: 2em;
    }
    
    .game-info {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 600px) {
    .game-container {
        padding: 10px;
    }
    
    .game-header h1 {
        font-size: 1.5em;
    }
    
    .game-over-content {
        padding: 20px;
        margin: 20px;
    }
    
    .game-over-content h2 {
        font-size: 2em;
    }
} 