/* main.css */
html,
body {
  position: relative;
  background-color: #242424;
  font-family: H-M, sans-serif;
  height: 100%;
  width: 100%;
  margin: 0;
  -webkit-overflow-scrolling: touch
}

.map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  float: left;
}

/* 弹窗样式 */
.popup {
    position: absolute;
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    min-width: 280px;
    max-width: 400px;
    z-index: 1000;
    font-family: 'Arial', sans-serif;
    border: 1px solid #e0e0e0;
    overflow: visible;
}

/* 弹窗标题样式 */
.popup h3 {
    margin-top: 0;
    color: #333;
    font-size: 18px;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

/* 弹窗内容样式 */
.popup p {
    margin: 8px 0;
    color: #666;
    font-size: 14px;
}

/* 弹窗三角指示器样式 */
.popup:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px;
    border-style: solid;
    border-color: white transparent transparent;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 弹窗内容容器样式 */
#popup-content {
    overflow: visible;
}

/* 鼠标悬停效果 */
.map:hover {
    cursor: default;
}

/* 地图点标记样式 */
.station-point {
    fill: #47ff93;
    stroke: white;
    stroke-width: 2;
}

/* 数据面板容器样式 */
.data-panel-container {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000;
}

/* 选择栏样式 */
.data-selector {
    padding: 5px;
    border-radius: 3px;
    border: 1px solid #ccc;
    margin-bottom: 10px;
}

/* 数据面板样式 */
.data-panel {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    max-width: 300px;
    font-family: 'Arial', sans-serif;
    border: 1px solid #e0e0e0;
}

.data-panel h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
}

.data-panel p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

/* 开关按钮容器样式 */
.toggle-container {
    position: absolute;
    top: 10px;
    left: 120px;
    z-index: 1001;
}

/* 开关按钮样式 */
.toggle-button {
    background-color: #4a90e2;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}

.toggle-button:hover {
    background-color: #357abd;
}

/* 新增仪器标记样式 */
.instrument-point {
    fill: #FFA500;
    stroke: white;
    stroke-width: 4;
}

/* 弹窗新增样式 */
.popup h4 {
    margin: 12px 0 8px;
    color: #444;
    font-size: 16px;
}

.popup hr {
    border: 0;
    height: 1px;
    background: #e0e0e0;
    margin: 10px 0;
}

/* 台风输入框容器样式 */
.typhoon-input-container {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
}

/* 输入框样式 */
#typhoon-input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin-right: 5px;
    width: 80px;
}

/* 查询按钮样式 */
#search-typhoon {
    background-color: #4a90e2;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 3px;
    cursor: pointer;
}

#search-typhoon:hover {
    background-color: #357abd;
}

/* AQI标记文本样式 */
.aqi-label {
    font-family: 'Arial', sans-serif;
    text-align: center;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}