.hero-weather {
  width: min(470px, 42vw);
  min-height: 185px;
  margin: 0 0 3px auto;
  padding: 20px 22px 18px;
  border: 1px solid rgba(20, 108, 97, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 15%, rgba(156, 200, 209, 0.32), transparent 42%),
    rgba(255, 253, 248, 0.78);
  box-shadow: 0 22px 52px rgba(30, 61, 54, 0.1);
  backdrop-filter: blur(18px);
  animation: weatherV7In 0.42s ease both;
}

.hero-weather-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #146c61;
}

.hero-weather-head > span {
  flex: none;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.12em;
}

.hero-weather-head small {
  min-width: 0;
  overflow: hidden;
  color: #72827d;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-weather-main {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 21px;
}

.hero-weather-main > i {
  display: grid;
  flex: none;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 18px;
  background: #dcefeb;
  color: #0c5049;
  font-size: 35px;
}

.hero-weather-main strong {
  display: block;
  color: #15332e;
  font-family: "Songti SC", SimSun, serif;
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -0.04em;
}

.hero-weather-main span {
  display: block;
  margin-top: 5px;
  color: #72827d;
  font-size: 10px;
}

.hero-weather-facts {
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.9fr;
  gap: 7px;
  margin-top: 17px;
}

.hero-weather-facts span {
  min-width: 0;
  padding: 8px 9px;
  border-radius: 9px;
  background: rgba(228, 238, 234, 0.72);
  color: #72827d;
  font-size: 9px;
  white-space: nowrap;
}

.hero-weather-facts b {
  color: #294a43;
  font-weight: 700;
}

.hero-weather.danger {
  border-color: rgba(160, 91, 67, 0.27);
  background:
    radial-gradient(circle at 88% 15%, rgba(214, 159, 132, 0.22), transparent 42%),
    rgba(255, 250, 244, 0.84);
}

.hero-weather.danger .hero-weather-main > i {
  background: #f3e3d9;
  color: #985b45;
}

.hero-weather-message {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 105px;
  color: #536b65;
}

.hero-weather-message span {
  display: block;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9cc8d1;
  box-shadow: 0 0 0 7px rgba(156, 200, 209, 0.18);
}

.hero-weather-message p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}

.hero-weather.loading .hero-weather-message span {
  animation: weatherV7Pulse 1s ease-in-out infinite alternate;
}

.hero-weather.error .hero-weather-message span {
  background: #a36b54;
  box-shadow: 0 0 0 7px rgba(163, 107, 84, 0.12);
}

@keyframes weatherV7In {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes weatherV7Pulse {
  to { opacity: 0.36; transform: scale(0.78); }
}

@media (width <= 1000px) {
  .hero-weather {
    width: min(100%, 520px);
    margin: 0;
  }
}

@media (width <= 640px) {
  .hero-weather {
    width: 100%;
    min-height: 174px;
    padding: 17px 16px 15px;
    border-radius: 18px;
  }

  .hero-weather-main {
    margin-top: 17px;
  }

  .hero-weather-main > i {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    font-size: 31px;
  }

  .hero-weather-main strong {
    font-size: 22px;
  }

  .hero-weather-facts {
    grid-template-columns: 1.25fr 1fr 0.9fr;
    gap: 5px;
    margin-top: 14px;
  }

  .hero-weather-facts span {
    padding: 7px 6px;
    font-size: 8px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-weather,
  .hero-weather-message span {
    animation: none !important;
  }
}
