@font-face {
  font-family: 'icomoon';
  src: url('../fonts/icomoon.eot?7kkyc2');
  src: url('../fonts/icomoon.eot?7kkyc2#iefix') format('embedded-opentype'),
    url('../fonts/icomoon.ttf?7kkyc2') format('truetype'),
    url('../fonts/icomoon.woff?7kkyc2') format('woff'),
    url('../fonts/icomoon.svg?7kkyc2#icomoon') format('svg');
  font-weight: normal;
  font-style: normal;
}

body {
  margin: 0;
  background-color: #fff;

}

p {
  margin: 0;
}

/* 内容模块 */
.content {
  width: 100%;
  height: 100%;
  background-image: url(../img/bg.jpg);
  background-size: cover;
}

.map-top {
  position: relative;
  width: 100%;
  height: 130px;
  background-image: url(../img/maptop.png );
  background-size: cover;
}

.map-top .title {
  width: 380px;
  height: 40px;
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  line-height: 2.5rem;
  font-size: 30px;
  font-weight: 500;
  color: #fff;
}

.map-top .time {
  width: 120px;
  height: 25px;
  color: #fff;
  position: absolute;
  top: 5%;
  left: 5%;
  text-align: center;
  line-height: 25px;
  font-size: 14px;
  font-weight: 500;
}


.return-i {
  display: flex;
  justify-content: space-between;
  width: 85px;
  height: 25px;
  position: absolute;
  top: 75%;
  left: 5%;
  text-align: center;
  line-height: 25px;
  font-size: 14px;
  font-weight: 500;

  .icon-arrow-left2 {
    font-family: 'icomoon';
    color: #fff;
  }

  a {
    color: #fff;
    text-decoration: none;
  }

  a:hover {
    color: #0a9ce7;
  }
}

.map-container {
  display: flex;
  flex-direction: row;
  gap: 3.125rem;
  width: 97%;
  height: 860px;
  margin: 0 auto;

  .m-l {
    width: 25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  .m-l .data {
    position: relative;
    width: 100%;
    height: 200px;
    border: 2px solid #08143F;
    position: relative;
    overflow: hidden;
  }

  .m-l .data::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    border-left: 2px solid #02a6b5;
    border-top: 2px solid #02a6b5;
  }

  .m-l .data::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-right: 2px solid #02a6b5;
    border-top: 2px solid #02a6b5;
  }

  .m-l .data .data-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
  }

  .m-l .data .data-footer::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 10px;
    height: 10px;
    border-left: 2px solid #02a6b5;
    border-bottom: 2px solid #02a6b5;
  }

  .m-l .data .data-footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-right: 2px solid #02a6b5;
    border-bottom: 2px solid #02a6b5;
  }

  .m-l .d-t {
    width: 100%;
    height: 40px;
    line-height: 40px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    text-align: center;
    border-bottom: 2px solid #2A2F58;
  }

  .m-l .d-c {
    width: 100%;
    height: auto;
    min-height: 150px;
    line-height: 40px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    text-align: center;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
    gap: 5px;
    justify-items: stretch;
    align-items: stretch;
  }

  .m-l .d-item {
    width: 100%;
    height: auto;
    line-height: 40px;
    font-weight: 500;
    text-align: center;
    padding: 5px 0;
  }

  .m-l .d-item h5 {
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    text-align: center;
    margin: 5px auto;
    line-height: 1.2;
  }

  .m-l .d-item p {
    margin: 0 auto;
    width: auto;
    height: auto;
    line-height: 1.5;
    font-size: 1.125rem;
    color: #C3CBFD;
  }

  .m-l .d-item:hover {
    transform: translateY(-5px);
  }

  .m-l .contribution {
    width: 100%;
    height: 320px;
  }

  .m-l .contribution .icon-stats-bars {
    font-family: 'icomoon';
    font-size: 24px;
    color: #fff;
    margin-left: 1.5625rem;
  }

  .m-l .contribution .c-t {
    display: flex;
    flex-direction: row;
    justify-content: start;
    gap: .625rem;
    align-items: center;
    height: 40px;
    text-align: center;
    border-radius: 20px;
    background-image: linear-gradient(to right, #72B2FF 0%, #06264A 100%);
  }

  .m-l .contribution .c-t p {
    margin-bottom: 0;
    color: #fff;
  }

  .m-l .contribution .c-t-t {
    width: 350px;
    height: 25px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: .625rem;
    align-items: center;
  }

  .m-l .contribution .c-t-t .total {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: .125rem;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
  }

  .m-l .contribution .c-t-t .total p {
    width: .625rem;
    height: .9375rem;
    background-image: linear-gradient(to bottom, #052321 0%, #076A65 100%);
    margin-bottom: 0;
    text-align: center;
    line-height: .9375rem;
    color: #34D5C6;
  }

  .m-l .contribution .c-t-t .up {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: .125rem;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
  }

  .m-l .contribution .c-t-t .up .n {
    font-size: 14px;
    font-weight: 500;
    color: #FF8E03;
  }

  .m-l .contribution .c-t-t .up .n .icon-arrow-up {
    font-family: 'icomoon';
    font-size: 14px;
    color: #FF8E03;
  }

  .m-l .contribution .c-d {
    width: 350px;
    height: 245px;
    margin: 10px auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 5px;
    border-radius: 5px;
  }

  .m-l .contribution .c-d::-webkit-scrollbar {
    display: none;
  }

  .m-l .contribution .c-d .d1 {
    width: 100%;
    height: 35px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: .625rem;
    font-size: 14px;
    font-weight: 500;
    background-image: linear-gradient(to right, #72B2FF 0%, #06264A 100%);
    border-radius: 10px;
    margin-bottom: .625rem;
  }

  .m-l .contribution .c-d .d1 .head {
    width: 1.5625rem;
    height: 1.5625rem;
    border-radius: 50%;
    background-color: #fff;
    text-align: center;
    line-height: 1.5625rem;
  }

  .m-l .contribution .c-d .d1 .head .icon-user {
    font-family: 'icomoon';
    font-size: 1.125rem;
    color: #929292;
  }

  .m-l .contribution .c-d .d1 .icon-trophy {
    font-family: 'icomoon';
    font-size: 1.125rem;
    color: #FF8E03;
    margin: auto .9375rem;
  }

  .m-l .contribution .c-d .d1 .name {
    width: auto;
    margin: 0 0 0 .625rem;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
  }

  .m-l .type {
    width: 100%;
    height: 300px;
  }

  .m-l .type .icon-headphones {
    font-family: 'icomoon';
    font-size: 24px;
    color: #fff;
    margin-left: 1.5625rem;
  }

  .m-l .type .t-t {
    display: flex;
    flex-direction: row;
    justify-content: start;
    gap: .625rem;
    align-items: center;
    height: 40px;
    text-align: center;
    border-radius: 20px;
    background-image: linear-gradient(to right, #72B2FF 0%, #06264A 100%);
  }

  .m-l .type .t-t p {
    margin-bottom: 0;
    color: #fff;
  }

  .m-l .type .t-chart {
    width: 100%;
    height: 250px;
    /* background-color: #0a9ce7; */
  }
}

.map {
  width: 50rem;
  height: 100%;
  /* background-color: pink; */
  overflow: visible;
}

.map .map-t {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  height: 50px;
  overflow: visible;
}

.map .map-t .icon-search {
  font-family: 'icomoon';
  font-size: 16px;
  color: #929292;
  margin-left: .9375rem;
}

.map .map-t .icon-location2 {
  font-family: 'icomoon';
  font-size: 14px;
  color: #fff;
  margin-left: .9375rem;
}

.map .map-t .icon-arrow-left2 {
  font-family: 'icomoon';
  font-size: 14px;
  color: #fff;
}

.map .map-t .prereturn {
  position: absolute;
  top: 50%;
  left: 0;
  display: none;
  flex-direction: row;
  align-items: center;
  gap: .125rem;
  width: 100px;
  height: 20px;
}

.map .map-t .prereturn .prereturn-btn {
  width: 100px;
  height: 20px;
  border-radius: 10px;
  background-image: linear-gradient(to top, #093262 0%, #0074FF 100%);
  color: #fff;
  border: none;
  outline: none;
  font-size: .75rem;
}

.map .map-t .search {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: .625rem;
  width: 300px;
  height: 35px;
  border-radius: 15px;
  background-color: #fff;
  overflow: visible;
  z-index: 1000;
}

.map .map-t .search .search-input {
  width: 200px;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: #000;
  /* 修改为黑色文字，确保在白色背景上可见 */
  font-size: 14px;
  padding: 0 5px;
  box-sizing: border-box;
  caret-color: #929292;
  cursor: text;
  z-index: 10;
  position: relative;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.map .map-t .search .search-input:focus {
  outline: none;
}

.map .map-t .search .search-input::placeholder {
  color: rgba(0, 0, 0, 0.7);
  /* 修改为黑色占位符，确保在白色背景上可见 */
}

.map .map-t .search .search-btn {
  width: 60px;
  height: 25px;
  border-radius: 15px;
  background-color: #0a9ce7;
  color: #fff;
  border: none;
  outline: none;
  margin-right: .625rem;
}

.map .map-t .position {
  position: absolute;
  top: 50%;
  right: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: .125rem;
  width: 100px;
  height: 20px;
}

.map .map-t .position .position-btn {
  width: 60px;
  height: 20px;
  border-radius: 10px;
  background-image: linear-gradient(to top, #093262 0%, #0074FF 100%);
  color: #fff;
  border: none;
  outline: none;
  font-size: .75rem;
}

.map .map-c {
  width: 770px;
  height: 810px;
  /* background-color: #f0f0f0; */
}

.map #map {
  width: 100%;
  height: 50px;
}

.m-r {
  width: 25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5625rem;
}

.m-r .c-t {
  display: flex;
  flex-direction: row;
  justify-content: end;
  gap: .625rem;
  align-items: center;
  height: 40px;
  text-align: center;
  border-radius: 20px;
  background-image: linear-gradient(to right, #72B2FF 0%, #06264A 100%);
}

.m-r .c-t p {
  margin-bottom: 0;
  color: #fff;
}

.m-r .icon-office,
.m-r .icon-heart {
  font-family: 'icomoon';
  font-size: 22px;
  color: #fff;
  margin-right: 1.5625rem;
}

.m-r .c-t-t {
  width: 350px;
  height: 25px;
  margin: 5px auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: .625rem;
  align-items: center;
}

.m-r .c-t-t .total {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: .125rem;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}

.m-r .c-t-t .total p {
  width: .625rem;
  height: .9375rem;
  margin-bottom: 0;
  text-align: center;
  line-height: .9375rem;
  color: #fff;
}

.m-r .c-t-t .up {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: .125rem;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}

.m-r .c-t-t .up .n {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: .125rem;
}

.m-r .c-t-t .up p {
  width: .625rem;
  height: .9375rem;
  margin-bottom: 0;
  text-align: center;
  line-height: .9375rem;
  color: #fff;
}

.m-r .c-t-t .icon-fire {
  font-family: 'icomoon';
  font-size: 14px;
  color: #EC5050;
}

.m-r .city {
  width: 100%;
  height: 360px;
}

.m-r .city .total p {
  background-image: linear-gradient(to bottom, #5A5A5A 0%, #FF7777 100%);
}

.m-r .city .up p {
  background-image: linear-gradient(to bottom, #5A5A5A 0%, #FF7777 100%);
}

.m-r .city .city-chart {
  width: 100%;
  height: 295px;
  margin: 10px 0 0 0;
  /* background-color: #34D5C6; */
  border-radius: 5px;
}

.m-r .health {
  width: 100%;
  height: 470px;
  margin-top: 10px;
  /* background-color: #72B2FF; */
}

.m-r .health .total p {
  background-image: linear-gradient(to bottom, #5A5A5A 0%, #FF7777 100%);
}

.m-r .health .up p {
  background-image: linear-gradient(to bottom, #5A5A5A 0%, #FF7777 100%);
}

.m-r .health .h-chart {
  width: 100%;
  height: 385px;
  margin: 10px 0 0 0;
  /* background-color: #34D5C6; */
  z-index: 1;
}

/* 全局样式 - 确保高德地图搜索提示框可见 */
.amap-sug-result {
  z-index: 2000 !important;
  position: absolute !important;
  width: 300px !important;
  margin-top: 5px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background-color: white !important;
  border-radius: 5px !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1) !important;
  border: 1px solid #ccc !important;
  overflow: hidden !important;
}

/* 响应式设计 */
/* 大屏响应式 (max-width: 1400px) */
@media (max-width: 1400px) {
  .map-container {
    gap: 1.5rem;
    width: 98%;
    height: 750px;
  }

  .map-container .m-l,
  .map-container .m-r {
    width: 20rem;
  }

  .map {
    width: 42rem;
  }

  .map .map-c {
    width: 100%;
    height: 690px;
  }

  .m-l .contribution .c-t-t,
  .m-l .contribution .c-d {
    width: 100%;
  }

  .m-r .c-t-t {
    width: 100%;
  }
}

/* 中屏响应式 (max-width: 1200px) */
@media (max-width: 1200px) {
  .map-container {
    gap: 1rem;
    width: 99%;
    height: 650px;
  }

  .map-container .m-l,
  .map-container .m-r {
    width: 17rem;
  }

  .map {
    width: 35rem;
  }

  .map .map-c {
    width: 100%;
    height: 590px;
  }

  .m-l .data {
    height: 180px;
  }

  .m-l .contribution {
    height: 280px;
  }

  .m-l .type {
    height: 250px;
  }

  .m-l .type .t-chart {
    height: 200px;
  }

  .m-r .city {
    height: 300px;
  }

  .m-r .city .city-chart {
    height: 235px;
  }

  .m-r .health {
    height: 400px;
  }

  .m-r .health .h-chart {
    height: 325px;
  }
}

/* 平板响应式 (max-width: 1024px) */
@media (max-width: 1024px) {
  .map-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
      "map map"
      "left right";
    height: auto;
    min-height: 100vh;
    padding-bottom: 20px;
    gap: 1.5rem;
  }

  .map-container .m-l,
  .map-container .m-r {
    width: 100%;
    flex-direction: column;
    gap: 1rem;
  }

  .m-l .data,
  .m-l .contribution,
  .m-l .type {
    width: 100%;
    height: auto;
    min-height: 200px;
  }

  .m-r .city,
  .m-r .health {
    width: 100%;
    height: auto;
    min-height: 250px;
  }

  .map {
    width: 100%;
    grid-area: map;
  }

  .map-container .m-l {
    grid-area: left;
  }

  .map-container .m-r {
    grid-area: right;
  }

  .map .map-c {
    width: 100%;
    height: 500px;
  }

  .map-top .title {
    font-size: 24px;
    width: 280px;
  }

  .m-l .contribution .c-t-t,
  .m-l .contribution .c-d,
  .m-r .c-t-t {
    width: 100%;
  }
}

/* 小屏平板响应式 (max-width: 768px) */
@media (max-width: 768px) {
  .map-top {
    height: 100px;
  }

  .map-top .title {
    font-size: 20px;
    width: 220px;
    top: 50%;
  }

  .map-top .time {
    font-size: 12px;
    width: 100px;
  }

  .return-i {
    font-size: 12px;
    width: 70px;
    top: 70%;
  }

  .map-container {
    grid-template-columns: 1fr;
    grid-template-areas:
      "map"
      "left"
      "right";
  }

  .map-container .m-l,
  .map-container .m-r {
    flex-direction: column;
  }

  .m-l .data,
  .m-l .contribution,
  .m-l .type,
  .m-r .city,
  .m-r .health {
    width: 100%;
    min-width: auto;
  }

  .m-l .d-c {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, auto);
  }

  .m-l .contribution .c-d {
    max-height: 150px;
  }

  .map .map-c {
    height: 400px;
  }

  .map .map-t {
    flex-wrap: wrap;
    gap: 10px;
    height: auto;
    padding: 10px 0;
  }

  .map .map-t .prereturn,
  .map .map-t .position {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
  }

  .map .map-t .position {
    margin-left: auto;
  }
}

/* 手机响应式 (max-width: 576px) */
@media (max-width: 576px) {
  body {
    font-size: 14px;
  }

  .content {
    min-height: 100vh;
  }

  .map-top {
    height: 80px;
  }

  .map-top .title {
    font-size: 18px;
    width: 180px;
    line-height: 1.8rem;
  }

  .map-top .time {
    display: none;
  }

  .return-i {
    top: 50%;
    left: 3%;
    transform: translateY(-50%);
  }

  .map-container {
    padding: 0 10px;
    gap: 0.5rem;
  }

  .m-l .data {
    height: auto;
    min-height: 150px;
  }

  .m-l .d-t {
    font-size: 12px;
    height: 30px;
    line-height: 30px;
  }

  .m-l .d-item h5 {
    font-size: 0.8rem;
  }

  .m-l .d-item p {
    font-size: 1rem;
  }

  .m-l .contribution,
  .m-l .type {
    height: auto;
    min-height: 180px;
  }

  .m-l .contribution .c-t,
  .m-l .type .t-t,
  .m-r .c-t {
    height: 35px;
    font-size: 12px;
  }

  .m-l .contribution .c-t .icon-stats-bars,
  .m-l .type .t-t .icon-headphones {
    font-size: 18px;
    margin-left: 0.8rem;
  }

  .m-r .city,
  .m-r .health {
    height: auto;
    min-height: 200px;
  }

  .m-r .city .city-chart {
    height: 180px;
  }

  .m-r .health .h-chart {
    height: 250px;
  }

  .map .map-c {
    height: 350px;
  }

  .map .map-t .prereturn-btn,
  .map .map-t .position-btn {
    font-size: 0.65rem;
    padding: 0 10px;
  }

  .m-l .contribution .c-d .d1 {
    height: 30px;
    font-size: 12px;
  }

  .m-l .contribution .c-d .d1 .head {
    width: 1.25rem;
    height: 1.25rem;
    line-height: 1.25rem;
  }

  .m-l .contribution .c-d .d1 .head .icon-user {
    font-size: 0.9rem;
  }

  .m-l .contribution .c-d .d1 .icon-trophy {
    font-size: 0.9rem;
    margin: auto 0.5rem;
  }
}