* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.game-container {
    max-width: 800px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.score-container {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    background-color: #f8f8f8;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.game-area {
    display: flex;
    gap: 20px;
}

.next-block-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 120px;
}

.next-block-label {
    font-weight: bold;
    color: #555;
}

#next-block {
    width: 60px;
    height: 60px;
    border: 2px solid #ddd;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 24px;
}

.board-container {
    flex-grow: 1;
}

#game-board {
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 2px;
    width: 100%;
    aspect-ratio: 4/6;
}

.cell {
    background-color: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    border-radius: 3px;
    transition: all 0.1s ease;
}

.cell.empty {
    background-color: #f0f0f0;
}

.block {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 3px;
    transition: transform 0.1s ease;
}

/* 移除所有动画类 */
.block.falling, 
.block.falling-2048, 
.block.merging-2048, 
.block.falling-merge,
.block.moving-right,
.block.merging,
.block.exploding,
.cell.chain-highlight {
    /* 保留类名但移除动画属性 */
}

.block-2 {
    background-color: #eee4da;
    color: #776e65;
}

.block-4 {
    background-color: #ede0c8;
    color: #776e65;
}

.block-8 {
    background-color: #f2b179;
    color: white;
}

.block-16 {
    background-color: #f59563;
    color: white;
}

.block-32 {
    background-color: #f67c5f;
    color: white;
}

.block-64 {
    background-color: #f65e3b;
    color: white;
}

.block-128 {
    background-color: #edcf72;
    color: white;
    font-size: 20px;
}

.block-256 {
    background-color: #edcc61;
    color: white;
    font-size: 20px;
}

.block-512 {
    background-color: #edc850;
    color: white;
    font-size: 20px;
}

.block-1024 {
    background-color: #edc53f;
    color: white;
    font-size: 18px;
}

.block-2048 {
    background-color: #edc22e;
    color: white;
    font-size: 18px;
}

.block-4096 {
    background-color: #3c3a32;
    color: white;
    font-size: 18px;
}

.block-bomb {
    background-color: #444;
    color: white;
    font-size: 20px;
}

.controls {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.controls button {
    flex: 1;
    padding: 15px;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    background-color: #2c3e50;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s;
}

.controls button:hover {
    background-color: #34495e;
}

.controls button:active {
    transform: scale(0.98);
}

.game-info {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.game-info h2 {
    margin-bottom: 10px;
    color: #333;
}

.game-info p {
    margin-bottom: 5px;
    color: #555;
    line-height: 1.5;
}

.game-info ul {
    margin-bottom: 10px;
    margin-left: 20px;
    color: #555;
}

.game-info li {
    margin-bottom: 5px;
    line-height: 1.5;
}

#game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.game-over-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 80%;
}

.game-over-content h2 {
    margin-bottom: 20px;
    color: #e74c3c;
}

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

#restart-btn {
    padding: 12px 25px;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    background-color: #2ecc71;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s;
}

#restart-btn:hover {
    background-color: #27ae60;
}

#game-win {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.game-win-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 80%;
    border: 3px solid #edc22e;
    box-shadow: 0 0 30px rgba(237, 194, 46, 0.7);
}

.game-win-content h2 {
    margin-bottom: 20px;
    color: #edc22e;
}

.game-win-content p {
    font-size: 20px;
    margin-bottom: 25px;
}

#win-restart-btn {
    padding: 12px 25px;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    background-color: #edc22e;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s;
}

#win-restart-btn:hover {
    background-color: #c9a923;
}

.hidden {
    display: none !important;
}

/* 移除所有关键帧动画定义 */

