html,
body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* #wrapper { */
/* position: absolute;
            top: 44px;
            left: 0; */
/* overflow: hidden; */
/* height: 677px; */
/* height: calc(100% - 44px);
} */

#wrapper {
    position: absolute;
    display: flex;
    height: calc(100% - 85px);
    width: 100%;
    overflow: hidden; /* 防止内容溢出 */
}

#wrapper .loading-img {
    width: 100px;
    height: 100px;
    margin-left: 50%;
    margin-top: 15%;
    /* background: url(../images/spinner.gif) center center no-repeat; */
    /* background-size: 100px 100px; */
}

#wrapper .loader {
    z-index: 99999;
    background: rgb(233, 233, 233);
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.6);
}

#wrapper .ng-hide {
    display: none !important;
}

#sidebar-wrapper {
    height: 100%;
    width: 30rem;
    /* min-height: 90vh; */
    /* width: 25%; */
    margin-left: -30rem;
    /* margin-left: 0rem; */
    transition: margin 0.25s ease-out;
}

#page-content-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    /* float: right; */
    transition: margin 0.25ms ease-out;
}

#leaft-map {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.legend_sld {
    position: absolute;
    font-size: 1.1em;
    color: #222;
    bottom: 30px;
    right: 20px;
    left: auto;
    z-index: 12;
    background: #fff;
    /* Fall-back for browsers that don't support rgba */
    background: rgba(255, 255, 255, .5);
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.date_layer {
    /* Start of Selection */
    position: absolute;
    font-size: 1.1em;
    color: #222;
    bottom: 0px;
    right: 300px;
    left: auto;
    z-index: 12
    /* End of Selection */
}

;

/* .modal_chart {
    position:fixed!important;
    top:50px!important;
    left:50px!important;
    width:calc(100% - 450px)!important
} */

.spatial-button {
    position: fixed;
    left: 160px;
    top: 40px;
    z-index: 12
        /* float: left; */
}

#charts {
    position: absolute;
    /* overflow-x: auto; */
    width: calc(100%);
    height: 500px;
    /* clear: both; */
    float: left
}

.fixed-dialog {
    position: absolute !important;
    top: 50px !important;
    left: 10rem !important;
    width: calc(100% - 30rem) !important;
    /* clear: both; */
    /* width:100%!important; */
}

/* #map_di_opacity { */
/* position:absolute; */
/* bottom:10px; */
/* left:140px; */
/* color:red; */
/* z-index:12; */
/* width: 40px;
    height:40px; */
/* } */

.header {
    position: relative;
    width: 100%;
    height: 85px;
    background: linear-gradient(135deg, #4CAF50, #2196F3);
    border: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header .logo {
    position: absolute;
    top: 15px;
    left: 40px;
    width: 950px;
    height: 55px;
    color: white;
    display: flex;
    align-items: center;
    /* background-color:skyblue; */
}

.header .logo img {
    float: left;
    top:5px;
    height: 60px;
    width: 60px;
    margin-right: 15px;
    padding: 2px;
    border: 1px solid white;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    transform-origin: center center;

}

.header .logo img:hover {
    transform: scale(1.1);
    border-color: #FFC107;
    z-index: 10;
}

.header .logo .title-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 55px;
}

.header .logo h2 {
    line-height: 1.2;
    font-size: 1.5em;
    white-space: nowrap;
    margin: 0;
    margin-bottom: 2px;
}

.header .logo h3 {
    line-height: 1.1;
    font-size: 1.2em;
    white-space: nowrap;
    margin: 0;
    font-weight: 400;
    opacity: 0.9;
}

.header .institute {
    position: absolute;
    top: 15px;
    right: -18px;
    /* width: 450; */
    height: 45px;
}

.header .institute img {
    float: left;
    /* width: 265px; */
    height: 42px;
    margin-right: -5px;
}

.header .institute .nav {
    width: 440px;
    height: 30px;

}

.header .nav {
    position: absolute;
    bottom: 5px;
    right: 30px;

}

.header .nav ul {
    margin-top: 0;
    margin-bottom: 0;
}

.header .nav ul li {
    float: left;
    padding: 10px 10px 0px 10px;
}

.header .nav ul li a {
    color: white;
    /* color:#07ffee; */
    font-size: 18px;
    transition: color 0.3s ease;
}

.header .nav ul li a:hover {
    color: #FFC107;
}

/* 国家界线样式 */
.country-border {
    stroke-width: 2px;
    stroke: #FF5722;
    stroke-opacity: 0.8;
}

/* 北非地区边界样式 */
.north-africa-border {
    stroke-width: 3px;
    stroke: #2196F3;
    stroke-opacity: 0.9;
    stroke-dasharray: 5,5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    animation: dash 5s linear infinite;
}

/* 侧边栏切换按钮 */
.sidebar-toggle {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1002;
    transition: all 0.3s ease;
}

.toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn i {
    color: #2196F3;
    font-size: 20px;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    background: #f8f9fa;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transform: scale(1.05);
}

/* 侧边栏展开时的按钮样式 */
body.sidebar-active .sidebar-toggle {
    left: 300px; /* 侧边栏宽度-按钮一半宽度 */
}

body.sidebar-active .toggle-btn {
    background: linear-gradient(90deg, #4CAF50, #2196F3);
}

body.sidebar-active .toggle-btn i {
    color: white;
    transform: rotate(180deg);
}

/* 按钮悬停效果 */
body.sidebar-active .toggle-btn:hover {
    background: linear-gradient(90deg, #45a049, #1e88e5);
}

/* 侧边栏基础样式 */
:root {
    --sidebar-width: 300px;
}

.sidebar {
    position: fixed;
    left: calc(-1 * var(--sidebar-width));
    top: 85px;
    width: var(--sidebar-width);
    height: calc(100% - 85px);
    background: linear-gradient(180deg, #4CAF50 0%, #2196F3 100%);
    box-shadow: 2px 0 10px rgba(0,0,0,0.15);
    z-index: 1002;
    transition: left 0.3s, width 0.3s;
    overflow-y: auto;
}

.sidebar:not(.active) {
    left: calc(-1 * var(--sidebar-width));
    /* width 不变 */
}
.sidebar.active {
    left: 0;
    transform: none;
}

/* 移除原来的标题栏样式 */
.sidebar-header {
    display: none;
}

/* 内容区域 */
.sidebar-content {
    padding: 15px;
}

/* 功能区块样式 */
.sidebar-section {
    background: rgba(255, 255, 255, 0.25); /* 增加背景不透明度 */
    margin-bottom: 15px;
    border-radius: 6px;
    backdrop-filter: blur(12px); /* 增加模糊效果 */
    border: 1px solid rgba(255, 255, 255, 0.3); /* 增加边框可见度 */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* 区块悬浮效果 */
.sidebar-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.3); /* 悬浮时略微增加不透明度 */
}

/* 区块标题 */
.section-header {
    background: linear-gradient(90deg, 
        rgba(76, 175, 80, 0.4), 
        rgba(33, 150, 243, 0.4)
    ); /* 增加标题背景不透明度 */
    padding: 10px 15px;
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* 添加文字阴影 */
}

/* 区块内容 */
.section-content {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05); /* 添加微弱的内容区背景 */
}

/* 表单元素样式 */
.input-group {
    margin-bottom: 12px;
}

.input-group-text {
    background-color: rgba(0, 0, 0, 0.15); /* 增加标签背景不透明度 */
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 14px;
    min-width: 90px;
    font-weight: 500;
}

.form-select,
.form-control {
    background-color: rgba(255, 255, 255, 0.95); /* 增加输入框不透明度 */
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 500;
}

.form-select:focus,
.form-control:focus {
    background-color: white;
    border-color: rgba(33, 150, 243, 0.5);
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}

/* Draw工具按钮组样式 */
.draw-tools-group {
    display: flex;
    gap: 10px; /* 按钮之间的间距 */
    margin-bottom: 12px;
}

.draw-tools-group .input-group-text {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

/* Draw按钮容器 */
.draw-buttons {
    display: flex;
    flex: 1;
    gap: 10px;
    justify-content: flex-start;
}

/* 统一的按钮基础样式 */
.draw-point,
.draw-rectangle,
.draw-polygon,
.draw-clear {
    flex: 0 0 38px;
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #1a1a1a;
    border-radius: 4px;
    transition: all 0.2s ease;
}

/* 清除按钮特殊样式 */
.draw-clear {
    color: #dc3545; /* 使用红色表示删除 */
}

/* 按钮悬停效果 */
.draw-point:hover,
.draw-rectangle:hover,
.draw-polygon:hover,
.draw-clear:hover {
    background: white;
    border-color: rgba(33, 150, 243, 0.5);
    transform: translateY(-1px);
}

.draw-clear:hover {
    border-color: rgba(220, 53, 69, 0.5); /* 红色边框 */
}

/* 活跃状态 */
.draw-point.active,
.draw-rectangle.active,
.draw-polygon.active,
.draw-clear.active {
    background: white;
    color: #2196F3;
    border-color: #2196F3;
    box-shadow: 0 2px 6px rgba(33, 150, 243, 0.2);
}

.draw-clear.active {
    color: #dc3545;
    border-color: #dc3545;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.2);
}

/* Analysis按钮组 */
.btn-group .analysis-btn {
    font-size: 14px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.95); /* 增加按钮不透明度 */
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #1a1a1a;
    font-weight: 500;
}

.analysis-btn:hover {
    background: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.analysis-btn.active {
    background: white;
    color: #2196F3;
    border-color: #2196F3;
    font-weight: 600;
}

/* Run按钮 */
.btn-primary {
    background: rgba(255, 255, 255, 0.98); /* 增加Run按钮不透明度 */
    border: none;
    color: #2196F3;
    padding: 10px;
    width: 100%;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 日期选择器特殊样式 */
input[type="date"] {
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a1a;
    font-weight: 500;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.8);
}

/* 下拉框特殊样式 */
.form-select {
    background-color: rgba(255, 255, 255, 0.9);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

/* 滚动条样式 */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Chart Container Styles */
.chart-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 400px;
    width: 100%;
    max-width: 100%;
    z-index: 1001;
    display: none;
    overflow: hidden;
    box-sizing: border-box;
    /* 科技感渐变背景，水蓝/深蓝/青色，带有微弱网格感 */
    background: linear-gradient(135deg, #183b56 60%, #1e90ff 100%),
                repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 40px),
                repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 40px);
    /* 霓虹蓝色发光边框 */
    border-top: 2.5px solid #00d8ff;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 0 24px 0 #00eaff80, 0 -4px 32px 0 #1e90ff33;
    outline: 2px solid #42e0f5;
    outline-offset: -4px;
    /* 玻璃拟态效果 */
    backdrop-filter: blur(10px) saturate(140%);
    /* 动画 */
    transition: left 0.3s, width 0.3s, box-shadow 0.3s, background 0.4s;
    /* 轻微内阴影增加科技感 */
    box-shadow: 0 0 24px 0 #00eaff80, 0 -4px 32px 0 #1e90ff33, inset 0 2px 24px 0 #0a2236cc;
}

.chart-container.show {
    display: block !important;
}

.chart-header {
    padding: 0rem 1.5rem;
    border-bottom: 1px solid #1976d2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(26, 115, 232, 0.12);
    width: 100%;
    color: #fff;
    font-weight: 600;
    letter-spacing: 1px;
}

.chart-header h5 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
    width: auto;
}

.close-chart {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #90caf9;
    transition: color 0.2s;
    width: auto;
    font-size: 1.5rem;
}

.close-chart:hover {
    color: #fff;
}

.chart-content {
    height: calc(100% - 56px);
    padding: 0.5rem 1.5rem 1rem 1.5rem;
    overflow: hidden;
    width: 100%;
    background: transparent;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    position: relative;
}

#chart-area {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 250px;
    background: transparent;
}

#chart-area > [data-zr-dom-id] {
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    left: 0 !important;
    top: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    box-sizing: border-box !important;
}

/* 侧边栏展开时地图和图表都向右压缩 */
.sidebar-active #leaft-map {
    left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width)) !important;
    transition: left 0.3s, width 0.3s;
}
.sidebar-active .chart-container {
    left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width)) !important;
    transition: left 0.3s, width 0.3s;
}

/* 确保地图容器始终充满可用空间 */
.d-md-flex {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* 当侧边栏激活时，地图容器向右移动并压缩 */
body.sidebar-active #leaft-map {
    left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width)) !important;
    transition: left 0.3s, width 0.3s;
}

/* 确保图表容器不会影响地图的大小 */
.chart-container.show ~ #leaft-map {
    height: calc(100% - 350px);
}
.chart-content, #chart-area {
    width: 100% !important;
    height: 100% !important;
    min-height: 200px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* 左侧固定位置元素跟随移动 */
#spatial-button,
#user-select-subnation,
#user-select-continenal {
    transition: transform 0.3s ease;
}

body.sidebar-active #spatial-button {
    transform: translateX(var(--sidebar-width));
}

body.sidebar-active #user-select-subnation,
body.sidebar-active #user-select-continenal {
    transform: translateX(var(--sidebar-width));
}

/* 右侧元素保持原位 */
#map_di_opacity {
    position: absolute;
    right: 200px;
    top: 40px;
    z-index: 12;
}

@keyframes dash {
  to {
    stroke-dashoffset: -100;
  }
}

/* 活跃状态的按钮 */
.draw-point.active,
.draw-polygon.active,
.draw-rectangle.active,
.analysis-btn.active {
    background: white;
    border-color: rgba(33, 150, 243, 0.5);
    box-shadow: 0 2px 6px rgba(33, 150, 243, 0.2);
}

/* 右侧控件容器布局 */
.leaflet-top.leaflet-right {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin: 12px 12px 0 0 !important;
}

/* 重置控件基础样式 */
.leaflet-control {
    clear: none !important;
}

/* 图层控件基础样式 */
.leaflet-control-layers {
    border: none !important;
    margin: 0 !important;
    background: none !important;
    box-shadow: none !important;  /* 移除外边框阴影 */
}

/* 图层控件按钮 */
.leaflet-control-layers-toggle {
    width: 35px !important;
    height: 35px !important;
    background-color: #fff !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    /* 使用稳定的图标（图层叠加形状） */
    background-image: url('data:image/svg+xml;utf8,<svg width="256" height="256" viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg"><g fill="%232196F3"><path d="M128 18L16 74l112 56 112-56z"/><path d="M16 128l112 56 112-56-24-12-88 44-88-44z"/><path d="M16 170l112 56 112-56-24-12-88 44-88-44z"/></g></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: 50% 50% !important;
    background-size: 24px 24px !important; /* 图标尺寸 */
    /* 移除会干扰背景图渲染的布局属性 */
    display: block !important;
    line-height: 0 !important;
    text-indent: -999em !important;
    overflow: hidden !important;
}

/* 触摸设备更大的触控面积 */
.leaflet-touch .leaflet-control .leaflet-control-layers-toggle {
    width: 36px !important;
    height: 36px !important;
    background-size: 26px 26px !important;
}

/* 悬停与按下交互保持一致 */
.leaflet-control .leaflet-control-layers-toggle:hover {
    background-color: #f8f9fa !important;
}
.leaflet-control .leaflet-control-layers-toggle:active {
    background-color: #e3f2fd !important;
}

/* 展开面板位置维持不变（如已有则无需调整，这里仅保证存在时样式不冲突） */
.leaflet-control-layers.leaflet-control-layers-expanded .leaflet-control-layers-list {
    right: 46px !important;
    top: 0 !important;
    background: white !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    padding: 10px !important;
    min-width: 180px !important;
}

/* 绘图工具栏样式 */
.leaflet-pm-toolbar {
    margin: 0 !important;
    background: none !important;
    box-shadow: none !important;  /* 移除外边框阴影 */
    border: none !important;
}

/* 绘图工具按钮 */
.leaflet-pm-toolbar .leaflet-pm-action {
    width: 36px !important;
    height: 36px !important;
    margin-bottom: 8px !important;
    background-color: white !important;
    color: #2196F3 !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 缩放控件按钮 */
.leaflet-control-zoom a {
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    background-color: white !important;
    color: #2196F3 !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
}

/* 绘图工具图标 */
.leaflet-pm-toolbar .leaflet-pm-icon {
    width: 20px !important;
    height: 20px !important;
    filter: invert(48%) sepia(57%) saturate(2744%) hue-rotate(190deg) brightness(97%) contrast(95%) !important;
}

/* 图层控件展开面板 */
.leaflet-control-layers.leaflet-control-layers-expanded .leaflet-control-layers-list {
    position: absolute !important;
    right: 46px !important;
    top: 0 !important;
    background: white !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    padding: 10px !important;
    min-width: 180px !important;
}

/* 统一悬停效果 */
.leaflet-control-zoom a:hover,
.leaflet-control-layers-toggle:hover,
.leaflet-pm-toolbar .leaflet-pm-action:hover {
    background-color: #f8f9fa !important;
    color: #1976D2 !important;
}

/* 统一激活状态 */
.leaflet-control-zoom a:active,
.leaflet-control-layers-toggle:active,
.leaflet-pm-toolbar .leaflet-pm-action.active {
    background-color: #e3f2fd !important;
    color: #1976D2 !important;
}

.legend-item {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.color-box {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 2px;
}

.legend-item span {
    font-size: 12px;
    color: #333;
}

/* Location 分页切换样式 */
.location-btn {
    font-size: 14px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #1a1a1a;
    font-weight: 500;
    transition: all 0.2s ease;
}

.location-btn:hover {
    background: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.location-btn.active {
    background: white;
    color: #2196F3;
    border-color: #2196F3;
    font-weight: 600;
}

.location-content {
    padding: 10px 0;
}

/* Draw 按钮组样式 */
.draw-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.draw-point,
.draw-rectangle,
.draw-polygon {
    flex: 0 0 38px;
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #1a1a1a;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.draw-point:hover,
.draw-rectangle:hover,
.draw-polygon:hover {
    background: white;
    border-color: rgba(33, 150, 243, 0.5);
    transform: translateY(-1px);
}

.draw-point.active,
.draw-rectangle.active,
.draw-polygon.active {
    background: white;
    color: #2196F3;
    border-color: #2196F3;
    box-shadow: 0 2px 6px rgba(33, 150, 243, 0.2);
}

/* 输入组样式 */
.location-content .input-group {
    margin-bottom: 0;
}

.location-content .input-group-text {
    background-color: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 14px;
    min-width: 90px;
    font-weight: 500;
}

.location-content .form-select {
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 500;
}

.location-content .form-select:focus {
    background-color: white;
    border-color: rgba(33, 150, 243, 0.5);
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}

/* 清除按钮样式 */
.clear-button-container {
    display: none;
}



/* Resolution按钮组 - 与Analysis按钮保持一致 */
.resolution-btn {
    font-size: 14px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.95); /* 与analysis-btn一致 */
    border: 1px solid rgba(255, 255, 255, 0.3); /* 与analysis-btn一致 */
    color: #1a1a1a; /* 与analysis-btn一致 */
    font-weight: 500; /* 与analysis-btn一致 */
    transition: all 0.2s ease; /* 添加过渡效果 */
}

.resolution-btn:hover {
    background: white; /* 与analysis-btn一致 */
    border-color: rgba(255, 255, 255, 0.5); /* 与analysis-btn一致 */
    color: #1a1a1a; /* 保持文字颜色 */
}

.btn-check:checked + .resolution-btn {
    background: white; /* 与analysis-btn.active一致 */
    color: #2196F3; /* 与analysis-btn.active一致 */
    border-color: #2196F3; /* 与analysis-btn.active一致 */
    font-weight: 600; /* 与analysis-btn.active一致 */
    font-size: 14px;
}

.feature-info-popup-container {
    position: absolute;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.95) 0%, rgba(76, 175, 80, 0.95) 100%);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.2);
    z-index: 1000;
    max-width: 250px;
    color: #fff;
    font-family: 'Arial', sans-serif;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: popupFadeIn 0.3s ease-out;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-info-popup {
    font-size: 14px;
    position: relative;
    color: #fff;
}

.feature-info-popup h6 {
    margin-bottom: 15px;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 8px;
}

.feature-info-popup table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0 5px;
}

.feature-info-popup table td {
    padding: 8px 12px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.3s ease;
}

.feature-info-popup table td:first-child {
    color: #fff;
    font-weight: 500;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    width: 40%;
}

.feature-info-popup table td:last-child {
    width: 60%;
    text-align: right;
    color: #fff;
}

.feature-info-popup table tr:hover td {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.feature-info-popup .close-popup {
    position: absolute;
    top: 8px;
    right: 8px;
    cursor: pointer;
    color: #fff;
    font-size: 16px;
    opacity: 0.7;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    line-height: 1;
}

.feature-info-popup .close-popup:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.leaflet-popup-content-wrapper {
    background: rgba(255, 255, 255, 0.95);
    color: #2c3e50;
    font-family: 'Arial', sans-serif;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(44, 62, 80, 0.1);
    padding: 0;
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 0;
    color: #2c3e50;
    font-size: 14px;
    line-height: 1.5;
}

.leaflet-popup-content h6 {
    color: #2c3e50;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.5px;
    font-size: 14px;
    margin: 0;
    padding: 12px 15px;
    background: rgba(44, 62, 80, 0.03);
    border-bottom: 1px solid rgba(44, 62, 80, 0.1);
}

.leaflet-popup-content table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.leaflet-popup-content table td {
    padding: 10px 15px;
    border: none;
    background: transparent;
    color: #2c3e50;
    transition: all 0.2s ease;
}

.leaflet-popup-content table td:first-child {
    color: #7f8c8d;
    font-weight: 500;
    border-right: 1px solid rgba(44, 62, 80, 0.1);
    text-transform: none;
    font-size: 13px;
    letter-spacing: 0;
    width: 40%;
}

.leaflet-popup-content table td:last-child {
    width: 60%;
    text-align: right;
    color: #2c3e50;
    font-weight: 500;
}

.leaflet-popup-content table tr:hover td {
    background: rgba(44, 62, 80, 0.02);
}

.leaflet-popup-close-button {
    color: #7f8c8d;
    opacity: 0.6;
    transition: all 0.2s ease;
    font-size: 18px;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background: rgba(44, 62, 80, 0.03);
    border-radius: 50%;
    margin: 8px;
}

.leaflet-popup-close-button:hover {
    opacity: 1;
    background: rgba(44, 62, 80, 0.08);
    transform: rotate(90deg);
}

.leaflet-popup-tip {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(44, 62, 80, 0.1);
}

.popupPointInfo table td:first-child {
    color: #7f8c8d;
    font-weight: 500;
    border-right: 1px solid rgba(44, 62, 80, 0.1);
    text-transform: none;
    font-size: 13px;
    letter-spacing: 0;
    width: 70%;
}

.popupPointInfo table td:last-child {
    width: 30%;
    text-align: right;
    color: #2c3e50;
    font-weight: 500;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: white;
    margin-top: 15px;
    font-size: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
