* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
}

.container {
    display: flex;
    gap: 20px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.game-info {
    width: 200px;
    padding: 15px;
    background-color: #f8f8f8;
    border-radius: 8px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

h1 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.score-container, .level-container {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.score-label, .level-label, .next-label {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

#score, #level {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    color: #333;
}

.next-piece-container {
    margin-bottom: 20px;
    padding: 10px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#next-piece {
    height: 100px;
    margin-top: 10px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

button {
    flex: 1;
    padding: 10px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#start-button {
    background-color: #4caf50;
    color: white;
}

#start-button:hover {
    background-color: #45a049;
}

#pause-button {
    background-color: #2196F3;
    color: white;
}

#pause-button:hover {
    background-color: #0b7dda;
}

.instructions {
    background-color: #fff;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.instructions h3 {
    font-size: 16px;
    margin-bottom: 10px;
    text-align: center;
}

.instructions p {
    font-size: 14px;
    margin-bottom: 5px;
}

.game-board-container {
    position: relative;
}

#game-board {
    background-color: #111;
    border: 2px solid #333;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .game-info {
        width: 100%;
        order: 2;
    }

    .game-board-container {
        order: 1;
        margin-bottom: 20px;
    }

    #game-board {
        width: 100%;
        height: auto;
    }
}