body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    text-align: center;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #333;
    margin-top: 0;
}

.game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.moves {
    font-size: 18px;
    font-weight: bold;
    color: #555;
}

#reset-btn {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#reset-btn:hover {
    background-color: #45a049;
}

.puzzle-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 5px;
    width: 400px;
    height: 400px;
    margin: 0 auto;
    background-color: #ddd;
    border: 2px solid #999;
    border-radius: 5px;
    padding: 5px;
}

.tile {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    background-color: #4CAF50;
    color: white;
    border: 1px solid #45a049;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
    user-select: none;
}

.tile:hover {
    background-color: #45a049;
}

.empty {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    cursor: default;
}

.empty:hover {
    background-color: #f0f0f0;
}

.win-message {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    color: #155724;
}

.win-message p {
    margin: 10px 0;
    font-size: 18px;
}

#play-again-btn {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#play-again-btn:hover {
    background-color: #0069d9;
}

/* 响应式设计 */
@media (max-width: 500px) {
    .puzzle-board {
        width: 300px;
        height: 300px;
    }
    
    .tile {
        font-size: 20px;
    }
}