/* 重置浏览器默认样式 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

#menu li:nth-child(3) a {
    color: #51f0c1;
}

#menu li:nth-child(3)::before {
    bottom: 0px;
}

.container {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    height: 100%;
}

@media (min-width: 768px) {
    .container {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -webkit-flex-direction: row;
        -ms-flex-direction: row;
        flex-direction: row;
    }
}

.controls,
#map {
    background: white;
    padding: 20px;
    margin: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    height: 90vh;
    /* z-index: 1; */
	margin-top: 60px;
}

#map {
    width: 100%;
}

@media (min-width: 768px) {
    .controls {
        width: 300px;
    }
}

.header {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #2ecc71;
    text-align: center;
}

.field {
    margin-bottom: 15px;
    width: 100%;
    overflow: hidden;
    /* background-color: blue; */
}

.field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.field input {
    width: 95%;
    padding: 8px;
    font-size: 1em;
    border: 1px solid gray;
    border-radius: 4px;
    margin: auto;
    -webkit-appearance: none; /* 去除 iOS 设备上的默认样式 */
    -moz-appearance: none;
    appearance: none;
}

.modes {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin: 10px 0 15px;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 10px;
}

.mode-btn {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 45%;
    -ms-flex: 1 1 45%;
    flex: 1 1 45%;
    padding: 10px;
    font-size: 0.95em;
    text-align: center;
    border: 2px solid #2ecc71;
    background: white;
    color: #2ecc71;
    border-radius: 6px;
    cursor: pointer;
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}

.mode-btn.active,
.mode-btn:hover {
    background: #2ecc71;
    color: white;
}

.btn-search {
    width: 100%;
    padding: 12px;
    font-size: 1em;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    -webkit-appearance: none; /* 去除 iOS 设备上的默认样式 */
    -moz-appearance: none;
    appearance: none;
}

.btn-search:hover {
    background: #27ae60;
}

#routeInfo,
#weatherInfo {
    margin-top: 15px;
    font-size: 0.95em;
    color: #555;
    line-height: 1.6;
}