html, body {
    margin: 0;
    height: 100%;
    overflow: scroll;
}
#map-container {
    width: 100%;
    height: 100%;
    cursor: grab;
    position: relative;
    overflow: hidden;
    touch-action: none; /* 禁用默认滑动行为 */
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}
.cell {
    position: absolute;
    box-sizing: border-box;
}
.cell.square {
    width: 40px;
    height: 40px;
    background-image: url('../img/unknown.png');
    background-size: cover;
    z-index: 1;
}
.cell.wall {
    background-color: #D9D9D9;
    z-index: 2;
}
.cell.wall.vertical {
    border-left: 1px solid #000;
    border-right: 1px solid #000;
    width: 11px;
    height: 40px;
}
.cell.wall.horizontal {
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    width: 40px;
    height: 11px;
}
.cell.center {
    width: 11px;
    height: 11px;
    background-color: #000;
    border: 1px solid #000;
    z-index: 3;
}

/* 下拉列表样式 */
.selector {
    position: absolute;
    background: #fff;
    border: 1px solid #ccc;
    padding: 5px;
    z-index: 1000;
    border-radius: 6px;
}
.selector button {
    width: 40px;
    margin-bottom: 1px;
    cursor: pointer;
    border: 1px solid #666;
    background: #f0f0f0;
    border-radius: 4px;
}
.selector button:hover {
    background: #ddd;
}
.option-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.option-item {
    display: flex;
    align-items: center;
    padding: 4px 6px;
    cursor: pointer;
}
.option-item:hover {
    background-color: #eee;
}
.color-box {
    width: 12px;
    height: 12px;
    margin-right: 8px;
    border: 1px solid #000;
}

/* 帮助提示框样式 */
#mode-change-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 24px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    z-index: 100;
    text-align: center;
    width: 370px;
    line-height: 1.6;
    color: #333;
}
#mode-change-alert h2 {
    margin-top: 0;
    font-size: 22px;
    color: #01b0f1;
}
#mode-change-alert p {
    margin: 10px 0;
    font-size: 16px;
    text-align: left;
}
#mode-change-alert span {
    font-size: 22px;
}
.btn-help {
    margin-top: 18px;
    padding: 10px 24px;
    font-size: 16px;
    cursor: pointer;
    background-color: #01b0f1;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}
.btn-help:hover {
    filter: brightness(90%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
/* 响应式处理：适配小屏设备 */
@media (max-width: 600px) {
    #mode-change-alert {
        padding: 20px;
        font-size: 15px;
        width: 300px;
    }
    #mode-change-alert h2 {
        font-size: 20px;
    }
    .btn-help {
        font-size: 15px;
        padding: 10px 20px;
        width: 100%;
    }
}

