/* 地图页面样式 */
@font-face {
  font-family: "times";
  src: url("/global/mlgz_mobile/js/times.ttf");
}
@font-face {
  font-family: "kait";
  src: url("/global/mlgz_mobile/js/kaiti.ttf");
}
/* 空气质量卡片 */
.air-quality-card {
  background: url(/global/mlgz_mobile/imags/map-bg.png);
  background-size: 100% 100%;
  padding: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.block {
  border-color: #ef4848;
  -webkit-box-shadow: inset 0 0.25rem 0 0 #ef4848;
  box-shadow: inset -1px 1px 3px 1px #ef4848;
  margin-bottom: 10px;
  border-radius: 10px;
  height: 50px;
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 60px;
}
.block:nth-child(2) {
  border-color: #f8d75f;
  -webkit-box-shadow: inset 0 0.25rem 0 0 #f8d75f;
  box-shadow: inset -1px 1px 3px 1px #f8d75f;
}
.block:nth-child(3) {
  border-color: #52b1fc;
  -webkit-box-shadow: inset 0 0.25rem 0 0 #52b1fc;
  box-shadow: inset -1px 1px 3px 1px #52b1fc;
}

.block img {
  width: 40px;
  height: 45px;
  position: absolute;
  left: 10px;
  top: 0px;
}
.block .name {
  width: 80px;
  margin-left: 10px;
  margin-right: 10px;
  font-weight: 700;
}
.block:nth-child(1) .name {
  font-size: 24px;
}
.block:nth-child(2) .name {
  font-size: 22px;
}
.block:nth-child(3) .name {
  font-size: 20px;
}
.block:nth-child(1) .num {
  font-family: "kait";
  margin-right: 10px;
  font-weight: 700;
  font-size: 30px;
}
.block:nth-child(2) .num {
  font-family: "kait";
  margin-right: 10px;
  font-weight: 700;
  font-size: 24px;
}
.block:nth-child(3) .num {
  font-family: "kait";
  margin-right: 10px;
  font-weight: 700;
  font-size: 20px;
}
.block .nuit {
 position: absolute;
 left: 200px;
}
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom,
.leaflet-container.leaflet-touch-zoom {
  background-color: transparent;
  transform: scale(1.6);
}
.leaflet-marker-icon {
  font-size: 7px;
}
.leaflet-container {
  background: transparent !important;
}

.legendc {
  position: absolute;
  right: 0px;
  bottom: 20px;
  z-index: 999;
  display: flex;
  align-items: center;
}

.legendc .legend {
  margin-top: 4px;
  width: 15px;
  height: 100%;
  border: 1px solid #e1e1e2ab;
  border-left: none;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  margin: 0 2px;
}
.legendc .number div {
  line-height: 30px;
  font-family: 'times';
}
.legendc .unit {
  position: absolute;
  right: 0;
  bottom: -20px;
  font-size: 10px;
}

.legendc .legend > div {
  height: 30px;
  width: 15px;
  border-left: 1px solid #e1e1e2ab;
}

.legendc .legend .grean {
  background: #7dfe80;
}

.legendc .legend .yellow {
  background: #fdff6b;
}

.legendc .legend .orange {
  background: #ffa500;
}

.legendc .legend .red {
  background: #ff0000;
}

.legendc .legend .purple {
  background: #c71585;
}

.legendc .legend .brown {
  background: #731425;
}

.legendc .legend .number {
  margin-top: 0.125rem;
  line-height: 30px;
  display: flex;
}

.legendc .legend .number > div {
  height: 100%;
  width: 15%;
  line-height: 30px;
  font-size: 12px;
  font-family: "times";
}

.legendc .legend .unit {
  margin-top: 8%;
  font-size: 14px;
}
.bot-title{
  width: 100%;
  font-size: 12px;
  text-align: left;
  padding-left: 10px;
}
.my-div-icon {
  /* transform: scale(0.8)!important; */
}
/* PM指示器 */
.pm-indicator {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.pm-circle {
  width: 60px;
  height: 60px;
  background: -webkit-gradient(linear, left top, left bottom, from(#30c075), to(#30c0ac));
  background: linear-gradient(180deg, #30c075, #30c0ac);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: #333;
  font-weight: bold;
}
.pm-num {
  font-size: 30px;
  font-family: "kait";
}

.pm-label {
  font-size: 18px;
  font-family: "times";
}

.pm-data {
  flex: 1;
}

.pm-value {
  display: flex;
  align-items: baseline;
  margin-bottom: 5px;
  font-family: "times";
}

.current-value {
  font-size: 28px;

  color: #333;
  margin-right: 8px;
  margin-left: 10px;
}
.current-value .aqi {
  font-size: 30px;
  font-weight: bold;
  font-family: "times";
}

.unit {
  font-size: 20px;
  color: #333;
  font-family: "kait";
}

.pm-standard {
  font-size: 12px;
  color: #333;
  background: rgb(242, 242, 242);
  padding: 2px;
  font-family: "kait";
}

/* 污染等级指示器 */
.pollution-levels {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.level-item {
  flex: 1;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.level-item.active {
  border-color: #ff7e00;
  background: #fff3e0;
}

.level-item.level-good.active {
  border-color: #4caf50;
  background: #e8f5e8;
}

.level-item.level-moderate.active {
  border-color: #ffeb3b;
  background: #fffde7;
}

.level-item.level-unhealthy.active {
  border-color: #ff7e00;
  background: #fff3e0;
}

.level-icon {
  display: block;
  font-size: 20px;
  margin-bottom: 5px;
}

.level-text {
  display: block;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 2px;
}

.level-desc {
  display: block;
  font-size: 10px;
  color: #666;
}

/* 提示信息 */
.tip-info {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #666;
  font-family: "kait";
}

.tip-icon {
  margin-right: 5px;
}
.tip-text {
  font-family: "kait";
}

/* 地图容器 */
.map-container {
  border-radius: 12px;
  overflow: hidden;
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
  position: relative;
}
.leaflet-control-container {
  display: none;
}

.air-map {
  height: 520px;
  width: 100%;
}

/* 地图标题 */
.map-title {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(255, 255, 255, 0.95);
  padding: 10px 15px;
  border-radius: 8px;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-title h3 {
  margin: 0;
  font-size: 16px;
  color: #333;
  font-weight: 600;
}

.map-unit {
  font-size: 12px;
  color: #666;
  margin-top: 2px;
}

/* 图例 */
.map-legend {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.95);
  padding: 12px;
  border-radius: 8px;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  min-width: 120px;
}

.legend-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  text-align: center;
}

.legend-items {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.legend-value {
  font-size: 10px;
  color: #666;
  min-width: 20px;
}

.legend-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}

.legend-label {
  font-size: 9px;
  padding: 2px 4px;
  border-radius: 3px;
  color: #fff;
  text-align: center;
}

.legend-label.good {
  background: #4caf50;
}

.legend-label.moderate {
  background: #ffeb3b;
  color: #333;
}

.legend-label.unhealthy-sensitive {
  background: #ff7e00;
}

.legend-label.unhealthy {
  background: #ff0000;
}

.legend-label.very-unhealthy {
  background: #8f3f97;
}

.legend-label.hazardous {
  background: #7e0023;
}
.bot-block {
  width: 100%;
  display: flex;
}
.bot-block1 {
  width: calc(100% / 3);
  background: #31c07f;
  text-align: center;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bot-block .bot-block1:nth-child(1),
.bot-block .bot-block1:nth-child(1) {
  border-right: 1px solid #e6e6e6;
}
.bot-block2 .bot-block1 {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bot-block2 .bot-block1:nth-child(1) {
  font-size: 20px;
}
