/* 重置默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    /* background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d); */
    background-image: url('../cdn/image/1.jpg');
    background-size: cover;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
}

.game-container {
    position: relative;
    width: 800px;
    height: 600px;
    /* background: #000; */
        /* background-image: url('../cdn/image/1.jpg'); */
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

#gameCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../cdn/image/1.jpg');
    background-size: cover;
}

.game-ui {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 24px;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.8);
}

.start-screen,
.end-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* background: rgba(0, 0, 20, 0.85); */
    z-index: 20;
    color: white;
    text-align: center;
    padding: 30px;
}

.end-screen {
    display: none;
}

h1 {
    font-size: 42px;
    margin-bottom: 20px;
    color: #FFD700;
    text-shadow: 0 0 15px #FFD700;
}

p {
    font-size: 18px;
    margin: 10px 0;
    line-height: 1.6;
    max-width: 80%;
}

.highlight {
    color: #FF5252;
    font-weight: bold;
}

.controls {
    display: flex;
    margin: 25px 0;
    gap: 40px;
}

.control-key {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #00FFFF;
    border-radius: 8px;
    padding: 15px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.control-key kbd {
    font-size: 32px;
    margin-bottom: 10px;
    padding: 8px 20px;
    background: rgba(0, 200, 200, 0.3);
    border-radius: 5px;
}

button {
    background: linear-gradient(to right, #FF8C00, #FFD700);
    color: #222;
    border: none;
    border-radius: 50px;
    padding: 15px 45px;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.8);
}

.final-score {
    font-size: 36px;
    margin: 20px 0;
    color: #FFD700;
}