/*
* 地图页面css
*/
html,
body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  overflow: hidden;
  font-family: "Helvetica Neue", Helvetica, Tahoma, Arial, "Microsoft Yahei", "Hiragino Sans GB", "WenQuanYi Micro Hei", sans-serif;
  font-size: 14px;
  color: #ffffff;
  background: #000;
  -webkit-overflow-scrolling: touch;
}

body {
  position: relative;
  overflow-x: hidden;
  overflow-y: hidden;
}

input,
button,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

a {
  text-decoration: none;
  color: #ffffff;
  text-decoration: none;
  margin-top: 1px;
  margin-right: 2px;
}

a:hover,
a:focus {
  color: #89bceb;
  text-decoration: underline;
}

a:focus {
  outline: thin dotted;
  outline: 5px auto -webkit-focus-ring-color;
  outline: none;
  outline-offset: -2px;
}

ul,
li {
  list-style: none;
}

:focus-visible {
  outline: none;
}

#centerDiv3D {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  left: 0;
  top: 0;
  border: none;
  overflow: hidden;
  position: relative;
}

/*用于测试非全屏地图*/
/* #centerDiv3D {
  height: calc(100% - 200px);
  width: calc(100% - 400px);
  left: 200px;
  right: 200px;
  top: 100px;
  bottom: 100px;
} */


/*dark样式*/
.dark {
  color: #ffffff;
}

.dark a {
  color: #ffffff;
  text-decoration: none;
  margin-top: 1px;
  margin-right: 2px;
}

.dark a:hover {
  color: #cc3300;
  text-decoration: underline;
}

.dark .content {
  overflow: auto;
  position: relative;
  background: transparent;
  height: 400px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.dark .form-control,
.dark .input-group-addon,
.dark .btn-default,
.dark .dropdown-menu {
  color: #ffffff;
  background-color: rgba(63, 72, 84, 0.7);
  border: none;
}

.dark input {
  color: #ffffff;
  background-color: rgba(63, 72, 84, 0.7);
  border-width: 1px;
}

.dark .btn-info {
  background-color: rgba(119, 214, 225, 0.2);
}

.dark .btn-primary {
  background-color: rgba(32, 160, 255, 0.2);
}

.dark .btn-danger {
  background-color: rgba(255, 109, 109, 0.2);
}

.dark .btn-warning {
  background-color: rgba(244, 176, 102, 0.2);
}

.dark .table-hover > tbody > tr:hover {
  background-color: rgba(63, 72, 84, 1);
}

.dark .dropdown-menu > li > a {
  color: #ffffff;
}

.dark .dropdown-menu > li > a:hover,
.dark .dropdown-menu > li > a:focus {
  background-color: #4db3ff;
}

.dark .slider-selection {
  background-image: linear-gradient(to bottom, #86b9e6 0, #86b9e6 100%);
}

.dark .mars3d-popup-color {
  color: #ffffff;
}

/**弹窗背景*/
.dark .mars3d-popup-background {
  background: rgba(63, 72, 84, 0.7);
}

/**infoview浮动面板*/
.infoview {
  position: absolute;
  top: 1vh;
  right: 1vw;
  padding: 10px 15px;
  border-radius: 4px;
  border: 1px solid rgba(128, 128, 128, 0.5);
  color: #ffffff;
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 3px 14px rgba(128, 128, 128, 0.5);
  z-index: 19870101;
  max-width: 90vw;
}
.infoview-left {
   right: auto;
   left: 10px;
}

.infoview input,
.infoview select,
.infoview textarea {
  color: #ffffff;
  background-color: rgba(32, 160, 255, 0.2);
  border: 1px solid #e4eaec;
  font-size: 14px;
}

.infoview > div {
  margin-top: 5px;
}

.info-tips {
  margin: 5px 10px 20px 10px;
}

.rightbottom {
  top: auto;
  bottom: 60px;
  left: auto;
  right: 10px;
}


.mars-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin-top: 5px;
  margin-bottom: 5px;
}

.mars-table tr td {
  padding: 5px 10px;
  text-align: left;
  white-space: nowrap;
}

.mars-table tr td:first-child {
  border-left: none;
}

.mars-table .nametd {
  padding: 5px 20px 5px 10px;
}

.tb-border {
  border: #cde1de 1px solid;
}

.tb-border tr td {
  border: #cde1de 1px solid;
}

/*滚动条*/
body,
html {
  scrollbar-base-color: #f4f7fc;
  scrollbar-track-color: #f4f7fc;
  scrollbar-face-color: #797979;
  scrollbar-arrow-color: #f4f7fc;
  scrollbar-shadow-color: #f4f7fc;
  scrollbar-3dlight-color: #f4f7fc;
  scrollbar-highlight-color: #f4f7fc;
  scrollbar-darkshadow-color: #f4f7fc;
}

::-webkit-scrollbar-button {
  height: 0;
  width: 0;
  display: none;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-track,
::-webkit-scrollbar-thumb {
  border: 0;
}

::-webkit-scrollbar {
  height: 10px;
  width: 10px;
  background: transparent;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  padding-top: 100px;
  -webkit-box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.1), inset -1px -1px 0 rgba(0, 0, 0, 0.07);
  background-color: #797979;
  min-height: 28px;
  border-radius: 4px;
  background-clip: padding-box;
}

::-webkit-scrollbar-track,
::-webkit-scrollbar-thumb {
  border: 0;
}

::-webkit-scrollbar-thumb:hover {
  -webkit-box-shadow: inset 1px 1px 1px rgba(0, 0, 0, 0.25);
  background-color: rgba(0, 0, 0, 0.4);
}

::-webkit-scrollbar-thumb:active {
  -webkit-box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.35);
  background-color: rgba(0, 0, 0, 0.5);
}



/**cesium 工具按钮栏* 左下按钮**/

.cesium-viewer-toolbar {
  top: auto;
  bottom: 3vh;
  left: 1vw;
  right: auto;
  display: none;
}

.cesium-toolbar-button img {
  width:22px;
}
.cesium-toolbar-button:hover img {
  width:28px;
}
.cesium-svgPath-svg{
  scale: 0.8;
}
.cesium-svgPath-svg:hover{
  scale: 1.0;
}


.cesium-button .cesium-baseLayerPicker-selected {
  width: 100%;
}

.cesium-button:hover .cesium-baseLayerPicker-selected {
  width: 100%;
}

.cesium-viewer-toolbar>.cesium-toolbar-button,
.cesium-navigationHelpButton-wrapper,
.cesium-viewer-geocoderContainer {
  margin-bottom: 5px;
  float: left;
  clear: both;
  text-align: center;
}

.cesium-viewer-geocoderContainer form .cesium-geocoder-input{
  border-width: 1px;
  border-image: url("/img/svg/border.svg") 1 round stretch;
}

.cesium-button {
  background-color: rgba(39, 44, 54, 0.8);

  border-radius: 2px;
  border-width: 1px;
  border-image: url("/img/svg/border.svg") 1 round stretch;

  color: #ffffff;
  fill: #e6e6e6;
  line-height: 38px;
}

.cesium-button:hover {
  background-color: rgba(51, 133, 255, 1);
  box-shadow: none;
  border: none;
}

/**cesium 底图切换面板*/
.cesium-baseLayerPicker-dropDown {
  bottom: 0;
  left: 40px;
  max-height: 700px;
  margin-bottom: 5px;
  background-color: rgba(39, 44, 54, 0.8);
}

/**cesium 帮助面板*/
.cesium-navigation-help {
  top: auto;
  bottom: 0;
  left: 40px;
  transform-origin: left bottom;
}

.cesium-navigation-help-instructions,
.cesium-navigation-button {
  background-color: rgba(23, 49, 71, 0.8);
}

.cesium-navigation-button-selected,
.cesium-navigation-button-unselected:hover {
  background-color: rgba(1, 35, 22, 1);
}

/**cesium 二维三维切换*/
.cesium-sceneModePicker-wrapper {
  width: auto;
}

.cesium-sceneModePicker-wrapper .cesium-sceneModePicker-dropDown-icon {
  float: right;
  margin: 0 3px;
}

/**cesium POI查询输入框*/
.cesium-viewer-geocoderContainer .search-results {
  left: 0;
  right: 40px;
  width: auto;
  z-index: 9999;
}

.cesium-geocoder-searchButton {
  width:38px;
  height:38px;
  background-color: rgba(39, 44, 54, 0.8);
  border-radius: 2px;
  border-width: 1px;
  border-image: url("./img/svg/border.svg") 1 round stretch;
  fill: #e6e6e6;
}

.cesium-viewer-geocoderContainer .cesium-geocoder-input {
  height:40px;
  width:40px;
  background-color: rgba(63, 72, 84, 0.7);
}

.cesium-viewer-geocoderContainer .cesium-geocoder-input:focus {
  background-color: rgba(63, 72, 84, 0.9);
}

.cesium-viewer-geocoderContainer .search-results {
  background-color: rgba(23, 49, 71, 0.8);
}

/**cesium info信息框*/
.cesium-infoBox {
  top: 50px;
  background: rgba(63, 72, 84, 0.9);
}

.cesium-infoBox-title {
  background-color: rgba(23, 49, 71, 0.8);
}

/**cesium 任务栏的FPS信息*/
.cesium-performanceDisplay-defaultContainer {
  top: auto;
  bottom: 3vh;
  right: 3vw;
}

.cesium-performanceDisplay-ms,
.cesium-performanceDisplay-fps {
  color: #fff;
}

/**cesium tileset调试信息面板*/
.cesium-viewer-cesiumInspectorContainer {
  top: 10px;
  left: 10px;
  right: auto;
}

.cesium-cesiumInspector {
  background-color: rgba(23, 49, 71, 0.8);
}


/**覆盖mars3d内部控件的颜色等样式*/
.mars3d-compass {
  display: none !important;  /* 隐藏导航球 */
}

.mars3d-compass .mars3d-compass-outer {
  fill: rgba(39, 44, 54, 0.8);
}
.mars3d-compass .mars3d-compass-inner {
  background: rgba(39, 44, 54, 0.8);
  fill: #fff;
}

/**      导航球       */

.mars3d-contextmenu-ul,
.mars3d-sub-menu {
  background-color: rgba(23, 49, 71, 0.8);
}
.mars3d-contextmenu-ul > li > a:hover,
.mars3d-sub-menu > li > a:hover,
.mars3d-contextmenu-ul > li > a:focus,
.mars3d-sub-menu > li > a:focus,
.mars3d-contextmenu-ul > li > .active,
.mars3d-sub-menu > li > .active {
  background-color: #3ea6ff;
}
.mars3d-contextmenu-ul > .active > a,
.mars3d-sub-menu > .active > a,
.mars3d-contextmenu-ul > .active > a:hover,
.mars3d-sub-menu > .active > a:hover,
.mars3d-contextmenu-ul > .active > a:focus,
.mars3d-sub-menu > .active > a:focus {
  background-color: #3ea6ff;
}
/*Mars3D 弹窗：去除标题与行高亮 改*/
.mars3d-popup .mars3d-template-title {
  background: #000 !important;
  color: #fff !important;
  border-bottom: 1px solid #333 !important;
}

.mars3d-popup .mars3d-popup-content table tr:nth-child(even),
.mars3d-popup .mars3d-popup-content table tr:nth-child(odd),
.mars3d-popup .mars3d-popup-content table tr:hover td {
  background: transparent !important;  /* 移除斑马纹与 hover 高亮 */
}
.mars3d-popup .mars3d-popup-tip {
  background: #000 !important;
}
.mars3d-tooltip {
  background: rgba(23, 49, 71, 0.8);
  border: 1px solid rgba(23, 49, 71, 0.8);
}
.mars3d-tooltip-top:before {
  border-top-color: rgba(23, 49, 71, 0.8);
}
.mars3d-tooltip-bottom:before {
  border-bottom-color: rgba(23, 49, 71, 0.8);
}
.mars3d-tooltip-left:before {
  border-left-color: rgba(23, 49, 71, 0.8);
}
.mars3d-tooltip-right:before {
  border-right-color: rgba(23, 49, 71, 0.8);
}

.mars3d-template-content label {
  padding-right: 6px;
}
.mars3d-template-titile {
  border-bottom: 1px solid #3ea6ff;
}
.mars3d-template-titile a {
  font-size: 16px;
}
.mars3d-popup-btn-custom {
  padding: 3px 10px;
  border: 1px solid #209ffd;
  background: #209ffd1c;
  color: #ffffff;
}
.mars3d-popup-content {
  margin: 15px;
}
.mars3d-divGraphic:hover {
  z-index: 999 !important;
}
/*弹窗宽度限制*/
.bootstrap-table  {
  max-width: 400px !important;
}

.closeBtn {
  float: right;
  color: white;
  cursor: pointer;
}

/* 地图容器 */
#mars3dContainer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;  /* 确保地图在最底层 */
}

/* 监测人员容器 */
.monitor-container {
  position: absolute;
  /* 保持原有的位置属性 */
  z-index: 2;  /* 确保在地图之上 */
  background-color: rgba(0, 0, 0, 0.8);  /* 半透明黑色背景 */
  backdrop-filter: blur(5px);  /* 可选：添加毛玻璃效果 */
}

/* 预警信息容器 */
.zuoxia-container {
  position: absolute;
  /* 保持原有的位置属性 */
  z-index: 2;  /* 确保在地图之上 */
  background-color: rgba(0, 0, 0, 0.6);  /* 半透明黑色背景 */
  backdrop-filter: blur(5px);  /* 可选：添加毛玻璃效果 */
}

/* 顶部导航栏 */
#dingbu {
  position: absolute;
  /* 保持原有的位置属性 */
  z-index: 3;  /* 确保在最上层 */
}

/* 响应式媒体查询 */
@media (max-width: 768px) {
  .infoview {
    top: 2vh;
    right: 2vw;
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .cesium-viewer-toolbar {
    bottom: 5vh;
    left: 2vw;
  }
  
  .cesium-performanceDisplay-defaultContainer {
    bottom: 5vh;
    right: 5vw;
  }
  
  .cesium-toolbar-button img {
    width: 18px;
  }
  
  .cesium-toolbar-button:hover img {
    width: 22px;
  }
}

@media (max-width: 480px) {
  .infoview {
    top: 3vh;
    right: 3vw;
    left: 3vw;
    padding: 6px 10px;
    font-size: 11px;
  }
  
  .cesium-viewer-toolbar {
    bottom: 8vh;
    left: 3vw;
  }
  
  .cesium-performanceDisplay-defaultContainer {
    bottom: 8vh;
    right: 8vw;
  }
  
  .cesium-toolbar-button img {
    width: 16px;
  }
  
  .cesium-toolbar-button:hover img {
    width: 20px;
  }
}

/* 多视频弹窗：拉大内容区、让媒体铺满 */
/* 弹窗自适应：宽度不超过视口（缩小、相对响应） */
.mars3d-popup.video-popup .mars3d-popup-content-wrapper {
  max-width: clamp(480px, 56vw, 820px) !important;
}
.mars3d-popup.video-popup .mars3d-popup-content {
  width: 100% !important;
  padding: 8px !important;
  max-height: clamp(360px, 60vh, 650px);
  overflow-y: auto;
}

/* 固定 2 列网格（桌面端），更紧凑间距 */
.mars3d-popup.video-popup .video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  justify-content: center;
}

/* 统一 16:9 容器，缩小预览高度，媒体自适应不裁剪 */
.mars3d-popup.video-popup .video-item {
  aspect-ratio: 16 / 9;
  height: clamp(100px, 16vh, 180px);
  background: #000;
  border: 1px solid #444;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.mars3d-popup.video-popup .video-item video,
.mars3d-popup.video-popup .video-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* 视频底部居中注释 */
.mars3d-popup.video-popup .video-caption {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 6px;
  padding: 3px 8px;
  color: #fff;
  background: rgba(0,0,0, 0.1);   /* 颜色 */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  max-width: 92%;
  text-align: center;
  pointer-events: none;
  line-height: 1.3;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
}
.mars3d-popup.video-popup .video-caption.caption--md { font-size: 14px; }
.mars3d-popup.video-popup .video-caption.caption--sm { font-size: 13px; }
.mars3d-popup.video-popup .video-caption.caption--xs { font-size: 12px; }

@media (max-width: 768px) {
  .mars3d-popup.video-popup .video-caption {
    bottom: 4px;
    padding: 2px 6px;
  }
}

/* 小屏：单列 + 适中预览高度 */
@media (max-width: 768px) {
  .mars3d-popup.video-popup .video-grid {
    grid-template-columns: 1fr;
  }
  .mars3d-popup.video-popup .mars3d-popup-content-wrapper {
    max-width: calc(95vw - 24px) !important;
  }
  .mars3d-popup .mars3d-popup-content-wrapper {
    max-width: calc(95vw - 24px) !important;
  }
  .mars3d-popup .mars3d-popup-content {
    width: 100% !important;
    max-height: 80vh;
    overflow: auto;          /* 纵横向都可滚动 */
  }
  
  /* 弹窗内表格：默认去网格化（隐藏边线与底色） */
  .mars3d-popup .mars3d-popup-content table {
    width: 100% !important;
    table-layout: auto !important;
    border: 0 !important;
    background: transparent !important;
    border-collapse: separate !important; /* 与去网格化语义一致 */
  }
  .mars3d-popup .mars3d-popup-content table th,
  .mars3d-popup .mars3d-popup-content table td,
  .mars3d-popup .tb-border,
  .mars3d-popup .tb-border tr th,
  .mars3d-popup .tb-border tr td {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  
  /* 可选：需要显示边线时，对该表格加类 popup-table--bordered 即可 */
  .mars3d-popup .popup-table--bordered th,
  .mars3d-popup .popup-table--bordered td {
    border: 1px solid #333 !important;  /* 示例边线，可按需改色 */
  }
  .mars3d-popup .video-item {
    height: clamp(140px, 28vh, 220px);
  }


}
/* 弹窗文本：允许自动换行并断长词 */
.mars3d-popup .mars3d-popup-content,
.mars3d-popup .mars3d-popup-content p,
.mars3d-popup .mars3d-popup-content span,
.mars3d-popup .mars3d-popup-content a,
.mars3d-popup .mars3d-popup-content label,
.mars3d-popup .mars3d-popup-content th,
.mars3d-popup .mars3d-popup-content td {
  white-space: normal !important;
  overflow-wrap: anywhere;   /* 长连续英文/数字可断行 */
  word-break: break-word;    /* 兼容性补充 */
}

/* 长 URL 专用：更积极断行，避免越界 */
.mars3d-popup .mars3d-popup-content a {
  word-break: break-all;
}

/* 覆盖弹窗内 mars-table 的 nowrap，确保可换行 */
.mars3d-popup .mars-table tr td,
.mars3d-popup .mars-table tr th {
  white-space: normal !important;
}

/* 表格固定布局，避免被长词撑破列宽 */
.mars3d-popup .mars3d-popup-content table {
  table-layout: auto !important; /* 用内容决定列宽 */
  width: 100%;
}

.mars3d-popup .mars3d-popup-content table tr > th:first-child,
.mars3d-popup .mars3d-popup-content table tr > td:first-child {
  width: 1% !important;           /* 关键：尽可能小 */
  white-space: nowrap !important; /* 标签不换行，宽度=文本宽度 */
  padding-right: 8px;
}

.mars3d-popup .mars3d-popup-content table tr > *:not(:first-child) {
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.mars3d-popup .mars3d-popup-tip {
  background: #000 !important;
}
.mars3d-tooltip {
  background: rgba(23, 49, 71, 0.8);
  border: 1px solid rgba(23, 49, 71, 0.8);
}
.mars3d-tooltip-top:before {
  border-top-color: rgba(23, 49, 71, 0.8);
}
.mars3d-tooltip-bottom:before {
  border-bottom-color: rgba(23, 49, 71, 0.8);
}
.mars3d-tooltip-left:before {
  border-left-color: rgba(23, 49, 71, 0.8);
}
.mars3d-tooltip-right:before {
  border-right-color: rgba(23, 49, 71, 0.8);
}

.mars3d-template-content label {
  padding-right: 6px;
}
.mars3d-template-titile {
  border-bottom: 1px solid #3ea6ff;
}
.mars3d-template-titile a {
  font-size: 16px;
}
.mars3d-popup-btn-custom {
  padding: 3px 10px;
  border: 1px solid #209ffd;
  background: #209ffd1c;
  color: #ffffff;
}
.mars3d-popup-content {
  margin: 15px;
}
.mars3d-divGraphic:hover {
  z-index: 999 !important;
}
/*弹窗宽度限制*/
.bootstrap-table  {
  max-width: 400px !important;
}

.closeBtn {
  float: right;
  color: white;
  cursor: pointer;
}

/* 地图容器 */
#mars3dContainer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;  /* 确保地图在最底层 */
}

/* 监测人员容器 */
.monitor-container {
  position: absolute;
  /* 保持原有的位置属性 */
  z-index: 2;  /* 确保在地图之上 */
  background-color: rgba(0, 0, 0, 0.8);  /* 半透明黑色背景 */
  backdrop-filter: blur(5px);  /* 可选：添加毛玻璃效果 */
}

/* 预警信息容器 */
.zuoxia-container {
  position: absolute;
  /* 保持原有的位置属性 */
  z-index: 2;  /* 确保在地图之上 */
  background-color: rgba(0, 0, 0, 0.6);  /* 半透明黑色背景 */
  backdrop-filter: blur(5px);  /* 可选：添加毛玻璃效果 */
}

/* 顶部导航栏 */
#dingbu {
  position: absolute;
  /* 保持原有的位置属性 */
  z-index: 3;  /* 确保在最上层 */
}

/* 响应式媒体查询 */
@media (max-width: 768px) {
  .infoview {
    top: 2vh;
    right: 2vw;
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .cesium-viewer-toolbar {
    bottom: 5vh;
    left: 2vw;
  }
  
  .cesium-performanceDisplay-defaultContainer {
    bottom: 5vh;
    right: 5vw;
  }
  
  .cesium-toolbar-button img {
    width: 18px;
  }
  
  .cesium-toolbar-button:hover img {
    width: 22px;
  }
}

@media (max-width: 480px) {
  .infoview {
    top: 3vh;
    right: 3vw;
    left: 3vw;
    padding: 6px 10px;
    font-size: 11px;
  }
  
  .cesium-viewer-toolbar {
    bottom: 8vh;
    left: 3vw;
  }
  
  .cesium-performanceDisplay-defaultContainer {
    bottom: 8vh;
    right: 8vw;
  }
  
  .cesium-toolbar-button img {
    width: 16px;
  }
  
  .cesium-toolbar-button:hover img {
    width: 20px;
  }
}

/* 多视频弹窗：拉大内容区、让媒体铺满 */
/* 弹窗自适应：宽度不超过视口（缩小、相对响应） */
.mars3d-popup.video-popup .mars3d-popup-content-wrapper {
  max-width: clamp(480px, 56vw, 820px) !important;
}
.mars3d-popup.video-popup .mars3d-popup-content {
  width: 100% !important;
  padding: 8px !important;
  max-height: clamp(360px, 60vh, 650px);
  overflow-y: auto;
}

/* 固定 2 列网格（桌面端），更紧凑间距 */
.mars3d-popup.video-popup .video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  justify-content: center;
}

/* 统一 16:9 容器，缩小预览高度，媒体自适应不裁剪 */
.mars3d-popup.video-popup .video-item {
  aspect-ratio: 16 / 9;
  height: clamp(100px, 16vh, 180px);
  background: #000;
  border: 1px solid #444;
  border-radius: 4px;
  overflow: hidden;
}
.mars3d-popup.video-popup .video-item video,
.mars3d-popup.video-popup .video-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* 小屏：单列 + 适中预览高度 */
@media (max-width: 768px) {
  .mars3d-popup.video-popup .video-grid {
    grid-template-columns: 1fr;
  }
  .mars3d-popup.video-popup .mars3d-popup-content-wrapper {
    max-width: calc(95vw - 24px) !important;
  }
  .mars3d-popup .mars3d-popup-content-wrapper {
    max-width: calc(95vw - 24px) !important;
  }
  .mars3d-popup .mars3d-popup-content {
    width: 100% !important;
    max-height: 80vh;
    overflow: auto;          /* 纵横向都可滚动 */
  }
  
  /* 弹窗内表格：默认去网格化（隐藏边线与底色） */
  .mars3d-popup .mars3d-popup-content table {
    width: 100% !important;
    table-layout: auto !important;
    border: 0 !important;
    background: transparent !important;
    border-collapse: separate !important; /* 与去网格化语义一致 */
  }
  .mars3d-popup .mars3d-popup-content table th,
  .mars3d-popup .mars3d-popup-content table td,
  .mars3d-popup .tb-border,
  .mars3d-popup .tb-border tr th,
  .mars3d-popup .tb-border tr td {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  
  /* 可选：需要显示边线时，对该表格加类 popup-table--bordered 即可 */
  .mars3d-popup .popup-table--bordered th,
  .mars3d-popup .popup-table--bordered td {
    border: 1px solid #333 !important;  /* 示例边线，可按需改色 */
  }
  .mars3d-popup .video-item {
    height: clamp(140px, 28vh, 220px);
  }
}
/* 弹窗文本：允许自动换行并断长词 */
.mars3d-popup .mars3d-popup-content,
.mars3d-popup .mars3d-popup-content p,
.mars3d-popup .mars3d-popup-content span,
.mars3d-popup .mars3d-popup-content a,
.mars3d-popup .mars3d-popup-content label,
.mars3d-popup .mars3d-popup-content th,
.mars3d-popup .mars3d-popup-content td {
  white-space: normal !important;
  overflow-wrap: anywhere;   /* 长连续英文/数字可断行 */
  word-break: break-word;    /* 兼容性补充 */
}

/* 长 URL 专用：更积极断行，避免越界 */
.mars3d-popup .mars3d-popup-content a {
  word-break: break-all;
}

/* 覆盖弹窗内 mars-table 的 nowrap，确保可换行 */
.mars3d-popup .mars-table tr td,
.mars3d-popup .mars-table tr th {
  white-space: normal !important;
}

/* 表格固定布局，避免被长词撑破列宽 */
.mars3d-popup .mars3d-popup-content table {
  table-layout: auto !important; /* 用内容决定列宽 */
  width: 100%;
}

.mars3d-popup .mars3d-popup-content table tr > th:first-child,
.mars3d-popup .mars3d-popup-content table tr > td:first-child {
  width: 1% !important;           /* 关键：尽可能小 */
  white-space: nowrap !important; /* 标签不换行，宽度=文本宽度 */
  padding-right: 8px;
}

.mars3d-popup .mars3d-popup-content table tr > *:not(:first-child) {
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.mars3d-popup .mars3d-popup-tip {
  background: #000 !important;
}
.mars3d-tooltip {
  background: rgba(23, 49, 71, 0.8);
  border: 1px solid rgba(23, 49, 71, 0.8);
}
.mars3d-tooltip-top:before {
  border-top-color: rgba(23, 49, 71, 0.8);
}
.mars3d-tooltip-bottom:before {
  border-bottom-color: rgba(23, 49, 71, 0.8);
}
.mars3d-tooltip-left:before {
  border-left-color: rgba(23, 49, 71, 0.8);
}
.mars3d-tooltip-right:before {
  border-right-color: rgba(23, 49, 71, 0.8);
}

.mars3d-template-content label {
  padding-right: 6px;
}
.mars3d-template-titile {
  border-bottom: 1px solid #3ea6ff;
}
.mars3d-template-titile a {
  font-size: 16px;
}
.mars3d-popup-btn-custom {
  padding: 3px 10px;
  border: 1px solid #209ffd;
  background: #209ffd1c;
  color: #ffffff;
}
.mars3d-popup-content {
  margin: 15px;
}
.mars3d-divGraphic:hover {
  z-index: 999 !important;
}
/*弹窗宽度限制*/
.bootstrap-table  {
  max-width: 400px !important;
}

.closeBtn {
  float: right;
  color: white;
  cursor: pointer;
}

/* 地图容器 */
#mars3dContainer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;  /* 确保地图在最底层 */
}

/* 监测人员容器 */
.monitor-container {
  position: absolute;
  /* 保持原有的位置属性 */
  z-index: 2;  /* 确保在地图之上 */
  background-color: rgba(0, 0, 0, 0.8);  /* 半透明黑色背景 */
  backdrop-filter: blur(5px);  /* 可选：添加毛玻璃效果 */
}

/* 预警信息容器 */
.zuoxia-container {
  position: absolute;
  /* 保持原有的位置属性 */
  z-index: 2;  /* 确保在地图之上 */
  background-color: rgba(0, 0, 0, 0.6);  /* 半透明黑色背景 */
  backdrop-filter: blur(5px);  /* 可选：添加毛玻璃效果 */
}

/* 顶部导航栏 */
#dingbu {
  position: absolute;
  /* 保持原有的位置属性 */
  z-index: 3;  /* 确保在最上层 */
}

/* 响应式媒体查询 */
@media (max-width: 768px) {
  .infoview {
    top: 2vh;
    right: 2vw;
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .cesium-viewer-toolbar {
    bottom: 5vh;
    left: 2vw;
  }
  
  .cesium-performanceDisplay-defaultContainer {
    bottom: 5vh;
    right: 5vw;
  }
  
  .cesium-toolbar-button img {
    width: 18px;
  }
  
  .cesium-toolbar-button:hover img {
    width: 22px;
  }
}

@media (max-width: 480px) {
  .infoview {
    top: 3vh;
    right: 3vw;
    left: 3vw;
    padding: 6px 10px;
    font-size: 11px;
  }
  
  .cesium-viewer-toolbar {
    bottom: 8vh;
    left: 3vw;
  }
  
  .cesium-performanceDisplay-defaultContainer {
    bottom: 8vh;
    right: 8vw;
  }
  
  .cesium-toolbar-button img {
    width: 16px;
  }
  
  .cesium-toolbar-button:hover img {
    width: 20px;
  }
}

/* 多视频弹窗：拉大内容区、让媒体铺满 */
/* 弹窗自适应：宽度不超过视口（缩小、相对响应） */
.mars3d-popup.video-popup .mars3d-popup-content-wrapper {
  max-width: clamp(480px, 56vw, 820px) !important;
}
.mars3d-popup.video-popup .mars3d-popup-content {
  width: 100% !important;
  padding: 8px !important;
  max-height: clamp(360px, 60vh, 650px);
  overflow-y: auto;
}

/* 固定 2 列网格（桌面端），更紧凑间距 */
.mars3d-popup.video-popup .video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  justify-content: center;
}

/* 统一 16:9 容器，缩小预览高度，媒体自适应不裁剪 */
.mars3d-popup.video-popup .video-item {
  aspect-ratio: 16 / 9;
  height: clamp(100px, 16vh, 180px);
  background: #000;
  border: 1px solid #444;
  border-radius: 4px;
  overflow: hidden;
}
.mars3d-popup.video-popup .video-item video,
.mars3d-popup.video-popup .video-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* 小屏：单列 + 适中预览高度 */
@media (max-width: 768px) {
  .mars3d-popup.video-popup .video-grid {
    grid-template-columns: 1fr;
  }
  .mars3d-popup.video-popup .mars3d-popup-content-wrapper {
    max-width: calc(95vw - 24px) !important;
  }
  .mars3d-popup .mars3d-popup-content-wrapper {
    max-width: calc(95vw - 24px) !important;
  }
  .mars3d-popup .mars3d-popup-content {
    width: 100% !important;
    max-height: 80vh;
    overflow: auto;          /* 纵横向都可滚动 */
  }
  
  /* 弹窗内表格：默认去网格化（隐藏边线与底色） */
  .mars3d-popup .mars3d-popup-content table {
    width: 100% !important;
    table-layout: auto !important;
    border: 0 !important;
    background: transparent !important;
    border-collapse: separate !important; /* 与去网格化语义一致 */
  }
  .mars3d-popup .mars3d-popup-content table th,
  .mars3d-popup .mars3d-popup-content table td,
  .mars3d-popup .tb-border,
  .mars3d-popup .tb-border tr th,
  .mars3d-popup .tb-border tr td {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  
  /* 可选：需要显示边线时，对该表格加类 popup-table--bordered 即可 */
  .mars3d-popup .popup-table--bordered th,
  .mars3d-popup .popup-table--bordered td {
    border: 1px solid #333 !important;  /* 示例边线，可按需改色 */
  }
  .mars3d-popup .video-item {
    height: clamp(140px, 28vh, 220px);
  }
}
/* 弹窗文本：允许自动换行并断长词 */
.mars3d-popup .mars3d-popup-content,
.mars3d-popup .mars3d-popup-content p,
.mars3d-popup .mars3d-popup-content span,
.mars3d-popup .mars3d-popup-content a,
.mars3d-popup .mars3d-popup-content label,
.mars3d-popup .mars3d-popup-content th,
.mars3d-popup .mars3d-popup-content td {
  white-space: normal !important;
  overflow-wrap: anywhere;   /* 长连续英文/数字可断行 */
  word-break: break-word;    /* 兼容性补充 */
}

/* 长 URL 专用：更积极断行，避免越界 */
.mars3d-popup .mars3d-popup-content a {
  word-break: break-all;
}

/* 覆盖弹窗内 mars-table 的 nowrap，确保可换行 */
.mars3d-popup .mars-table tr td,
.mars3d-popup .mars-table tr th {
  white-space: normal !important;
}

/* 表格固定布局，避免被长词撑破列宽 */
.mars3d-popup .mars3d-popup-content table {
  table-layout: auto !important; /* 用内容决定列宽 */
  width: 100%;
}

.mars3d-popup .mars3d-popup-content table tr > th:first-child,
.mars3d-popup .mars3d-popup-content table tr > td:first-child {
  width: 1% !important;           /* 关键：尽可能小 */
  white-space: nowrap !important; /* 标签不换行，宽度=文本宽度 */
  padding-right: 8px;
}

.mars3d-popup .mars3d-popup-content table tr > *:not(:first-child) {
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.mars3d-popup .mars3d-popup-tip {
  background: #000 !important;
}
.mars3d-tooltip {
  background: rgba(23, 49, 71, 0.8);
  border: 1px solid rgba(23, 49, 71, 0.8);
}
.mars3d-tooltip-top:before {
  border-top-color: rgba(23, 49, 71, 0.8);
}
.mars3d-tooltip-bottom:before {
  border-bottom-color: rgba(23, 49, 71, 0.8);
}
.mars3d-tooltip-left:before {
  border-left-color: rgba(23, 49, 71, 0.8);
}
.mars3d-tooltip-right:before {
  border-right-color: rgba(23, 49, 71, 0.8);
}

.mars3d-template-content label {
  padding-right: 6px;
}
.mars3d-template-titile {
  border-bottom: 1px solid #3ea6ff;
}
.mars3d-template-titile a {
  font-size: 16px;
}
.mars3d-popup-btn-custom {
  padding: 3px 10px;
  border: 1px solid #209ffd;
  background: #209ffd1c;
  color: #ffffff;
}
.mars3d-popup-content {
  margin: 15px;
}
.mars3d-divGraphic:hover {
  z-index: 999 !important;
}
/*弹窗宽度限制*/
.bootstrap-table  {
  max-width: 400px !important;
}

.closeBtn {
  float: right;
  color: white;
  cursor: pointer;
}

/* 地图容器 */
#mars3dContainer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;  /* 确保地图在最底层 */
}

/* 监测人员容器 */
.monitor-container {
  position: absolute;
  /* 保持原有的位置属性 */
  z-index: 2;  /* 确保在地图之上 */
  background-color: rgba(0, 0, 0, 0.8);  /* 半透明黑色背景 */
  backdrop-filter: blur(5px);  /* 可选：添加毛玻璃效果 */
}

/* 预警信息容器 */
.zuoxia-container {
  position: absolute;
  /* 保持原有的位置属性 */
  z-index: 2;  /* 确保在地图之上 */
  background-color: rgba(0, 0, 0, 0.6);  /* 半透明黑色背景 */
  backdrop-filter: blur(5px);  /* 可选：添加毛玻璃效果 */
}

/* 顶部导航栏 */
#dingbu {
  position: absolute;
  /* 保持原有的位置属性 */
  z-index: 3;  /* 确保在最上层 */
}

/* 响应式媒体查询 */
@media (max-width: 768px) {
  .infoview {
    top: 2vh;
    right: 2vw;
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .cesium-viewer-toolbar {
    bottom: 5vh;
    left: 2vw;
  }
  
  .cesium-performanceDisplay-defaultContainer {
    bottom: 5vh;
    right: 5vw;
  }
  
  .cesium-toolbar-button img {
    width: 18px;
  }
  
  .cesium-toolbar-button:hover img {
    width: 22px;
  }
}

@media (max-width: 480px) {
  .infoview {
    top: 3vh;
    right: 3vw;
    left: 3vw;
    padding: 6px 10px;
    font-size: 11px;
  }
  
  .cesium-viewer-toolbar {
    bottom: 8vh;
    left: 3vw;
  }
  
  .cesium-performanceDisplay-defaultContainer {
    bottom: 8vh;
    right: 8vw;
  }
  
  .cesium-toolbar-button img {
    width: 16px;
  }
  
  .cesium-toolbar-button:hover img {
    width: 20px;
  }
}

/* 多视频弹窗：拉大内容区、让媒体铺满 */
/* 弹窗自适应：宽度不超过视口（缩小、相对响应） */
.mars3d-popup.video-popup .mars3d-popup-content-wrapper {
  max-width: clamp(480px, 56vw, 820px) !important;
}
.mars3d-popup.video-popup .mars3d-popup-content {
  width: 100% !important;
  padding: 8px !important;
  max-height: clamp(360px, 60vh, 650px);
  overflow-y: auto;
}

/* 固定 2 列网格（桌面端），更紧凑间距 */
.mars3d-popup.video-popup .video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  justify-content: center;
}

/* 统一 16:9 容器，缩小预览高度，媒体自适应不裁剪 */
.mars3d-popup.video-popup .video-item {
  aspect-ratio: 16 / 9;
  height: clamp(100px, 16vh, 180px);
  background: #000;
  border: 1px solid #444;
  border-radius: 4px;
  overflow: hidden;
}
.mars3d-popup.video-popup .video-item video,
.mars3d-popup.video-popup .video-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* 小屏：单列 + 适中预览高度 */
@media (max-width: 768px) {
  .mars3d-popup.video-popup .video-grid {
    grid-template-columns: 1fr;
  }
  .mars3d-popup.video-popup .mars3d-popup-content-wrapper {
    max-width: calc(95vw - 24px) !important;
  }
  .mars3d-popup .mars3d-popup-content-wrapper {
    max-width: calc(95vw - 24px) !important;
  }
  .mars3d-popup .mars3d-popup-content {
    width: 100% !important;
    max-height: 80vh;
    overflow: auto;          /* 纵横向都可滚动 */
  }
  
  /* 弹窗内表格：默认去网格化（隐藏边线与底色） */
  .mars3d-popup .mars3d-popup-content table {
    width: 100% !important;
    table-layout: auto !important;
    border: 0 !important;
    background: transparent !important;
    border-collapse: separate !important; /* 与去网格化语义一致 */
  }
  .mars3d-popup .mars3d-popup-content table th,
  .mars3d-popup .mars3d-popup-content table td,
  .mars3d-popup .tb-border,
  .mars3d-popup .tb-border tr th,
  .mars3d-popup .tb-border tr td {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  
  /* 可选：需要显示边线时，对该表格加类 popup-table--bordered 即可 */
  .mars3d-popup .popup-table--bordered th,
  .mars3d-popup .popup-table--bordered td {
    border: 1px solid #333 !important;  /* 示例边线，可按需改色 */
  }
  .mars3d-popup .video-item {
    height: clamp(140px, 28vh, 220px);
  }
}
