body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f0f0f0;
    touch-action: manipulation; /* 防止浏览器的默认触摸行为 */
}

.container {
    text-align: center;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #333;
    margin-bottom: 20px;
}

.controls {
    margin-bottom: 20px;
}

button {
    padding: 10px 15px;
    margin: 0 5px;
    border: none;
    border-radius: 5px;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

#resetBtn {
    background-color: #2196F3;
}

#resetBtn:hover {
    background-color: #0b7dda;
}

#autoChangeBtn {
    background-color: #FF9800;
}

#autoChangeBtn:hover {
    background-color: #F57C00;
}

#saveBtn {
    background-color: #9C27B0;
}

#saveBtn:hover {
    background-color: #7B1FA2;
}

#loadBtn {
    background-color: #FF5722;
}

#loadBtn:hover {
    background-color: #E64A19;
}

label {
    margin-left: 10px;
    font-weight: bold;
}

select {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: white;
    font-size: 16px;
    margin: 0 5px;
}

#status {
    display: inline-block;
    margin-left: 10px;
    padding: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    font-weight: bold;
}

#mazeCanvas {
    border: 2px solid #333;
    background-color: #fff;
}

.instructions {
    margin-top: 20px;
    color: #666;
}

.progress-container {
    width: 100%;
    background-color: #f0f0f0;
    border-radius: 5px;
    margin: 10px 0;
    display: none;
}

.progress-bar {
    width: 0%;
    height: 20px;
    background-color: #4CAF50;
    border-radius: 5px;
    transition: width 0.3s;
}