ul,
ol {
  list-style: none;
}

.xt-weather-hover {
  cursor: pointer;
}
.xt-weather-relative {
  position: relative;
}
.xt-weather-absolute {
  position: absolute;
}
.xt-weather-flex {
  display: flex;
}
.xt-weather-flex-align-center {
  align-items: center;
}
.xt-weather-flex-just-center {
  justify-content: center;
}
.xt-weather-flex-just-between {
  justify-content: space-between;
}
.xt-weather-zindex100 {
  z-index: 100;
}
.xt-weather-zindex90 {
  z-index: 90;
}
.xt-weather-zindex80 {
  z-index: 80;
}
.xt-weather-filter::after {
  position: absolute;
  content: '';
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.3);
  // filter: blur(0px) contrast(0.8);
}

.xt-weather {
  position: relative;
  .xt-weather-basic {
    overflow: hidden;
    > span {
      display: inline-block;
      &:first-child {
        padding-right: 8px;
        border-right: solid 1px rgba(0, 0, 0, 0.7);
      }
    }
    img {
      width: 30px;
      height: 30px;
      margin-left: 8px;
      margin-right: 3px;
      background-size: cover;
    }
  }

  .xt-weather-container-normal {
    position: absolute;
    // display: none;
    width: 320px;
    box-sizing: border-box;
    overflow: hidden;
    z-index: 100;
    color: white;
    border-radius: 0.3em;
    padding: 0.8em;
    .xt-weather-title {
      position: relative;
      z-index: 80;
      font-size: 0.9em;
      .xt-weather-location-icon {
        width: 1.1em;
        height: 1.1em;
        background: url('./imgs/location.png') no-repeat;
        background-size: cover;
        margin-right: 0.3em;
      }
      .xt-weather-location {
        float: left;
      }
      .xt-weather-time {
        float: right;
      }
    }

    .xt-weather-real {
      position: relative;
      margin-top: 4.5em;
      z-index: 100;
      border-bottom: solid 1px rgba(255, 255, 255, 0.7);
      padding: 2em 0 1em 1em;
      .xt-weather-real-block {
        width: 30%;
        display: inline-block;
        font-size: 0.9em;
        div {
          margin-bottom: 10px;
        }
        &:first-child {
          .xt-weather-real-block-upper {
            font-size: 5em;
          }
        }
        &:nth-child(2) {
          width: 60%;
          .xt-weather-real-block-upper {
            .todayweather {
              line-height: 48px;
              span {
                color: yellow;
                font-family: 600;
                margin-right: 1em;
              }
            }
          }
        }
        &:last-child {
          text-align: center;
          .xt-weather-real-block-upper {
          }
        }
      }
    }
    .xt-weather-forecast {
      position: relative;
      z-index: 100;

      font-size: 0.8em;
      margin-top: 1em;
    }
    .xt-weather-forecast-container {
      margin-top: 1em;
      overflow: hidden;
      height: 88.2px;
      overflow: hidden;
      position: relative;
      z-index: 80;
      .xt-weather-forecast-swiper {
        width: 9999px;
        height: 100%;
        margin-block-start: 0 !important;
        margin-block-end: 0 !important;
        padding-inline-start: 0 !important;
        .xt-weather-forecast-swiper-item {
          box-sizing: border-box;
          width: 140px;
          height: 100%;
          padding: 10px;
          font-size: 10px;
          border-radius: 0.4em;
          background: rgba(255, 255, 255, 0.15);
          position: relative;
          display: inline-block;
          margin-right: 1.2em !important;
          .weather-icon {
            width: 64px;
            height: 64px;
          }
        }
      }
      .xt-weather-forecast-swiper-left {
        display: none;
        width: 32px;
        height: 32px;
        position: absolute;
        top: 0;
        background: url('./imgs/left.png') no-repeat;
        background-size: cover;
        transition: all 0.4s ease;
      }

      .xt-weather-forecast-swiper-right {
        display: none;
        width: 32px;
        height: 32px;
        position: absolute;
        top: 0;
        right: 60px;
        background: url('./imgs/right.png') no-repeat;
        background-size: cover;
        transition: all 0.4s ease;
      }
    }
    .xt-weather-realcurve {
      position: absolute;
      left: 0;
      margin-top: 0.6em;
      width: 100%;
      height: 143.8px;
      z-index: 80;
    }
    .xt-weather-datasource {
      width: 53%;
      text-align: center;
      font-size: 0.6em;
      background: rgba(0, 0, 0, 0.2);
      border-radius: 26px;
      padding: 5px 12px 5px 12px;
      margin: 0 auto;
      margin-top: calc(143.8px + 2em);
      z-index: 80;
    }
  }
}

.noshowweather {
  display: none;
}
