body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: Arial, sans-serif;
}

.container {
  display: flex;
  width: 100%;
  height: 100vh;
  position: relative;
}

#windy {
  flex: 1;
  height: 100vh;
}

#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #f5f5f5;
  z-index: 9999;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #ddd;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 菜单栏样式 */
/* .sidebar {
  position: absolute;
  top: calc(50% - 200px);
  right: 3.125rem;
  width: 180px;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 15px 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.sidebar-title {
  text-align: center;
  margin-bottom: 15px;
  padding: 0 10px;
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

.layer-btn {
  padding: 12px 15px;
  margin: 5px 10px;
  background-color: #f0f0f0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s;
  color: #333;
}

.layer-btn:hover {
  background-color: #e0e0e0;
}

.layer-btn.active {
  background-color: #3498db;
  color: white;
} */

/* 响应式设计 */
/* @media (max-width: 768px) {
  .container {
    flex-direction: column-reverse;
  }

  .sidebar {
    width: 100%;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 10px;
    justify-content: center;
  }

  .sidebar-title {
    width: 100%;
    margin-bottom: 10px;
  }

  .layer-btn {
    margin: 5px;
    padding: 8px 12px;
    flex: 0 0 calc(33.333% - 10px);
    font-size: 12px;
    text-align: center;
  }

  #windy {
    height: calc(100vh - 130px);
  }
}

@media (max-width: 480px) {
  .layer-btn {
    flex: 0 0 calc(50% - 10px);
  }
} */

/* 新的菜单栏样式 */
.rhpane__overlays-levels {
  position: absolute;
  top: calc(22% - 200px);
  right: 0.625rem;
  width: 200px;
  /* background-color: rgba(255, 255, 255, 0.95); */
  box-sizing: border-box;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 10px 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

.sidebar-title {
  text-align: center;
  margin: 5px 0 15px;
  padding: 0 10px;
  font-size: 18px;
  font-weight: bold;
  background-color: rgba(0, 0, 0, 0.18);
  text-shadow: 0px 0px 4px black;
  color: #ffffff;
}

.rhitem {
  display: flex;
  padding: 8px 15px;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  background-color: rgba(0, 0, 0, 0.18);
  color: #ffffff;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.rhitem:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.rhitem.selected {
  background-color: #4d4d4d;
  border-left: 3px solid #3498db;
}

.rhitem__name {
  flex: 1;
  font-size: 14px;
  text-shadow: 0px 0px 4px black;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rhitem__icon {
  width: 36px;
  height: 24px;
  background-size: cover;
  background-position: center;
  border-radius: 3px;
  margin-left: 10px;
}

.rhitem__more-layers {
  margin-top: 15px;
  color: #3498db;
}

.rhitem__levels {
  margin-top: 5px;
  border-top: 1px solid #eee;
  padding-top: 10px;
}

.rhitem__level-desc {
  font-size: 13px;
  margin-bottom: 5px;
  color: #ffffff;
  text-shadow: 0px 0px 4px black;
}

.rhitem__level-selector {
  width: 100%;
  margin-top: 5px;
}

/* 为海拔高度控制添加的样式 */
.rhitem__levels {
  margin-top: 15px;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

.level-value {
  height: 18px;
  font-size: 12px;
  color: #ffffff;
  text-shadow: 0px 0px 4px black;
  text-align: center;
  margin-top: 4px;
}

/* 添加到您的CSS文件中 */
.temp-marker {
  background: none;
  border: none;
}

.temp-label {
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 3px;
  padding: 2px 4px;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  color: #d35400; /* 橙色，表示温度 */
  white-space: nowrap;
}

.rhitem__icon[data-icon="Q"] {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 24px;
  text-shadow: 0px 0px 4px black;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .container {
    flex-direction: column-reverse;
  }

  .rhpane__overlays-levels {
    width: 100%;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 10px;
    justify-content: flex-start;
  }

  .sidebar-title {
    width: 100%;
    margin-bottom: 10px;
  }

  .rhitem {
    width: calc(33.333% - 10px);
    margin: 5px;
    padding: 8px;
    border-left: none;
    border-bottom: 3px solid transparent;
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
  }

  .rhitem.selected {
    border-left: none;
    border-bottom: 3px solid #3498db;
  }

  .rhitem__name {
    font-size: 12px;
    text-align: center;
    margin-top: 5px;
  }

  .rhitem__icon {
    width: 40px;
    height: 30px;
    margin-left: 0;
  }

  .rhitem__more-layers,
  .rhitem__levels {
    width: 100%;
    margin-top: 10px;
    text-align: center;
  }

  #windy {
    height: calc(100vh - 180px);
  }
}

@media (max-width: 480px) {
  .rhitem {
    width: calc(50% - 10px);
  }
}
