
html, body, #map, #cesiumContainer {
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 0px;
    padding: 0px;
    color: white;
}

/*工具条样式*/
.toolbar {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 9999;
    background: rgba(0, 43, 113, 0.9);
    border-radius: 8px;
    padding: 5px;
    display: flex;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.toolbar-btn {
    width: 40px;
    height: 40px;
    margin: 0 3px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: none;
    background: rgba(255, 255, 255, 0.1);
}

.toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.toolbar-btn.active {
    background: rgba(33, 150, 243, 0.6);
    box-shadow: 0 0 5px rgba(33, 150, 243, 0.5);
}

.toolbar-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/*坐标信息框样式*/
.coordinate-info {
    position: absolute;
    bottom: 145px;
    right: 10px;
    z-index: 9999;
    background: rgba(0, 43, 113, 0.9);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    color: white;
    display: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.coordinate-info div {
    margin: 2px 0;
}

.coordinate-info span {
    color: #4CAF50;
    font-weight: bold;
}

/*属性信息框样式*/
.feature-info {
    position: absolute;
    bottom: 10px;
    right: 100px;
    z-index: 9999;
    background: rgba(0, 43, 113, 0.95);
    border-radius: 8px;
    padding: 10px;
    min-width: 200px;
    max-width: 300px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.feature-info-title {
    font-size: 14px;
    font-weight: bold;
    color: #4CAF50;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 8px;
    margin-bottom: 8px;
}

#feature-content {
    font-size: 12px;
    line-height: 1.8;
}

#feature-content div {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

#feature-content div span:first-child {
    color: #90CAF9;
}

#feature-content div span:last-child {
    color: #E1BEE7;
    font-weight: 500;
}

.head {
    color: white;
    font-style: italic;
    background: url("/data/image/icon/nav-big.png") no-repeat;
    background-size: 100% 100%;
    display: flex;
    justify-content: space-around;
    justify-items: center;
    position: absolute;
    z-index: 11;
    top: 0;
    right: 0;
    left: 50%;
    transform: translate(-50%, 0%);
    height: 10vh;
    width: 100vw;
}

.head-title {
    width: 40vw;
    text-align: center;
}

.head-title-top {
    font-family: YouSheBiaoTiHei;
    color: #fff;
    font-size: 2.21vw;
    font-weight: 600;
    letter-spacing: 15px;
    background: linear-gradient(0deg, #E7ECF1, #D4E4F1, #B5D4F3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 6vh;
}

.head-title-top::before {
    content: "驾驶舱";
    position: absolute;
    z-index: -1;
    text-shadow: 0 0 4px #00000082;
    top: 5px;
}

.title-time {
    position: absolute;
    top: 1vh;
    right: 1.2vw;
    height: 3vh;
    line-height: 3vh;
    font-size: 1vw;
    z-index: 9999;
}

ul.ztree {
    margin-top: 10px;
    border: unset;
    background: unset;
    width: calc(100% - 30px);
    height: unset;
    overflow-y: unset;
    overflow-x: unset;
    color: white;
}

.ztree li a {
    color: #fff;
}


.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.checkbox-child {
    margin-left: 10px;
}

#info {
    position: absolute;
    bottom: 10px;
    right: 100px;
    border-radius: 4px;
    background: rgba(12, 12, 45, 0.5);
    color: white;
    line-height: 30px;
    padding: 5px;
}

#picker-panel {
    position: absolute;
    display: none;
    top: 80px;
    right: 10px;
    border-radius: 4px;
    background: rgba(12, 12, 45, 0.5);
    color: white;
    line-height: 30px;
    padding: 5px;
}

.rotate-btn img:hover {
    cursor: pointer;
}

.btn {
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 4px;
}

.user-tool {
    padding: 5px 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    overflow: auto;
}

.btn:focus,
.btn:active:focus,
.btn.active:focus,
.btn.focus,
.btn:active.focus,
.btn.active.focus {
    outline: 5px auto -webkit-focus-ring-color;
    outline-offset: -2px;
}

.btn:hover,
.btn:focus,
.btn.focus {
    color: #333;
    text-decoration: none;
}

.btn:active,
.btn.active {
    background-image: none;
    outline: 0;
    -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
}

.btn-success {
    color: #fff;
    background-color: #5cb85c;
    border-color: #4cae4c;
}

.colpick {
    position: absolute !important;
    right: 9px !important;
    top: 50px !important;
    left: unset !important;
}

#camera {
    position: absolute;
    right: 10px;
    top: 100px;
    background: #384597cc;
    padding: 10px;
    border-radius: 4px;
}

#camera div {
    line-height: 30px;
}

#camera div label {

}

#button-group {
    position: absolute;
    right: 10px;
    top: 100px;
}

#button-group button {
    background: #384597cc;
    border-radius: 4px;
    color: #ffffff;
}

#fly {
    position: absolute;
    right: 10px;
    top: 100px;
    background: #384597cc;
    padding: 10px;
    border-radius: 4px;
}

#map-switch-container {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 999;
    display: flex;
    align-items: center;
}

#map-switch-container:hover #map-switch-id {
    transform: translateX(0);
    opacity: 1;
}

#map-switch-id {
    display: flex;
    gap: 8px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    margin-right: -10px;
}

.map-switch-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    background: rgba(0, 43, 113, 0.9);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.map-switch-item:hover {
    background: rgba(0, 158, 247, 0.6);
}

.map-switch-item img {
    width: 36px;
    height: 36px;
    border-radius: 4px;
}

.map-switch-name {
    font-size: 11px;
    color: #fff;
    margin-top: 4px;
    white-space: nowrap;
}

#map-switch-current {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    background: rgba(0, 43, 113, 0.95);
    border-radius: 6px;
    border: 2px solid rgba(0, 158, 247, 0.8);
    cursor: pointer;
    transition: all 0.3s;
}

#map-switch-current:hover {
    background: rgba(0, 158, 247, 0.6);
    transform: scale(1.05);
}

#current-map-img {
    width: 36px;
    height: 36px;
    border-radius: 4px;
}

#current-map-name {
    font-size: 11px;
    color: #fff;
    margin-top: 4px;
    white-space: nowrap;
    font-weight: bold;
}

#login-id {
    width: 500px;
    height: 350px;
    position: absolute;
    left: calc(50% - 260px);
    top: calc(50% - 185px);
    background: #384597cc;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

#login-id div {
    line-height: 60px;
    padding: 5px;
    text-align: center;
}

#login-id div input {
    height: 40px;
    width: 80%;
    border-radius: 4px;
}

#login-id div button {
    height: 40px;
    width: 80%;
    border-radius: 4px;
    margin-top: 10px;

}

#fly-id {
    position: absolute;
    right: 10px;
    top: 100px;
    background: #384597cc;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

#fly-id div {
    line-height: 30px;
}

#fly-id div:hover {
    cursor: pointer;
}

.fly-line {
    position: absolute;
    left: calc(20% + 40px);
    top: 10vh;
    width: 10%;
    background: rgba(0, 43, 113, 0.8);
    box-shadow: inset 2px 4px 20px rgba(0, 158, 247, 0.6);
    box-sizing: border-box;
    padding: 12px 10px;
    font-size: 18px;
    display: none;
}

.fly-line-item {
    line-height: 30px;
}

.fly-line-item:hover {
    cursor: pointer;
}

.search-panel {
    position: absolute;
    top: 120px;
    right: 10px;
    width: 280px;
    max-height: 500px;
    background: rgba(0, 43, 113, 0.95);
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    display: none;
    overflow: hidden;
}

.search-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(0, 158, 247, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.search-panel-title {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
}

.search-panel-close {
    font-size: 20px;
    color: #fff;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.search-panel-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.search-panel-controls {
    display: flex;
    gap: 15px;
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-panel-control {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 12px;
}

.search-panel-control input[type="checkbox"] {
    margin-right: 5px;
}

.search-panel-search {
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-panel-search input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 13px;
    box-sizing: border-box;
}

.search-panel-search input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-panel-search input:focus {
    outline: none;
    border-color: rgba(0, 158, 247, 0.6);
    background: rgba(255, 255, 255, 0.15);
}

.search-panel-results {
    max-height: 300px;
    overflow-y: auto;
    padding: 5px 0;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: rgba(0, 158, 247, 0.3);
}

.search-result-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    margin-right: 10px;
    background: rgba(0, 158, 247, 0.5);
    color: #fff;
}

.search-result-name {
    color: #fff;
    font-size: 13px;
}

.search-no-results {
    padding: 20px 15px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

/* 绘制面板样式 */
.draw-panel {
    position: absolute;
    top: 120px;
    right: 10px;
    width: 280px;
    background: rgba(0, 43, 113, 0.95);
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    display: none;
    overflow: hidden;
}

.draw-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(0, 158, 247, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.draw-panel-title {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
}

.draw-panel-close {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 16px;
}

.draw-panel-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.draw-panel-content {
    padding: 15px;
}

.draw-tool {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.draw-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
}

.draw-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.draw-btn.active {
    background: rgba(33, 150, 243, 0.6);
    box-shadow: 0 0 5px rgba(33, 150, 243, 0.5);
}

.draw-info {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

/* 旋转面板样式 */
.rotate-panel {
    position: absolute;
    top: 120px;
    right: 10px;
    width: 220px;
    background: rgba(0, 43, 113, 0.95);
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    display: none;
    overflow: hidden;
}

.rotate-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(0, 158, 247, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.rotate-panel-title {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
}

.rotate-panel-close {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 16px;
}

.rotate-panel-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.rotate-panel-content {
    padding: 15px;
}

.rotate-tool {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.rotate-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.rotate-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.rotate-btn.reset-btn {
    background: rgba(244, 67, 54, 0.5);
}

.rotate-btn.reset-btn:hover {
    background: rgba(244, 67, 54, 0.7);
}

.rotate-info {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    text-align: center;
}

#rotate-angle {
    color: #ffd700;
    font-weight: bold;
}
