* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #93c5fd 0%, #2563eb 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #ffffff;
  font-family: "Microsoft YaHei", Arial, sans-serif;
  overflow-x: hidden;
  transition: background 0.8s ease;
  cursor: default;
  user-select: none;
}

input,
textarea {
  cursor: text;
  user-select: text;
}

button,
.con-card,
.day-item,
.detail-item,
.info-item,
.day-focus,
.rain-hero,
.hour-item {
  cursor: pointer;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.45), transparent 22%),
    radial-gradient(circle at 78% 12%, rgba(255, 224, 138, 0.32), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02));
  animation: lightMove 10s ease-in-out infinite alternate;
}

.cursor-light {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.16;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), rgba(125, 211, 252, 0.07) 42%, transparent 72%);
  mix-blend-mode: screen;
  transition: opacity 0.25s ease;
}

.sky-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.sun-light {
  position: absolute;
  top: 8%;
  right: 12%;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 240, 172, 0.9), rgba(255, 215, 122, 0.25) 48%, transparent 70%);
  filter: blur(3px);
  animation: sunFloat 8s ease-in-out infinite;
}

.cloud {
  position: absolute;
  width: 260px;
  height: 90px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  filter: blur(1px);
  animation: cloudMove 18s linear infinite;
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}

.cloud::before {
  width: 120px;
  height: 120px;
  left: 42px;
  top: -52px;
}

.cloud::after {
  width: 150px;
  height: 150px;
  right: 34px;
  top: -74px;
}

.cloud1 {
  left: -260px;
  top: 18%;
  animation-duration: 26s;
}

.cloud2 {
  left: -320px;
  top: 42%;
  --scale: 0.75;
  animation-duration: 34s;
  animation-delay: -12s;
}

.cloud3 {
  left: -280px;
  top: 68%;
  --scale: 0.56;
  animation-duration: 40s;
  animation-delay: -22s;
}

.rain-wrap {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.rain-wrap span {
  position: absolute;
  top: -12%;
  width: 2px;
  height: 70px;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.8));
  animation: rainDrop 0.9s linear infinite;
}

.rain-wrap span:nth-child(1) { left: 8%; animation-delay: 0s; }
.rain-wrap span:nth-child(2) { left: 18%; animation-delay: 0.2s; }
.rain-wrap span:nth-child(3) { left: 29%; animation-delay: 0.4s; }
.rain-wrap span:nth-child(4) { left: 41%; animation-delay: 0.1s; }
.rain-wrap span:nth-child(5) { left: 52%; animation-delay: 0.5s; }
.rain-wrap span:nth-child(6) { left: 63%; animation-delay: 0.3s; }
.rain-wrap span:nth-child(7) { left: 72%; animation-delay: 0.65s; }
.rain-wrap span:nth-child(8) { left: 81%; animation-delay: 0.25s; }
.rain-wrap span:nth-child(9) { left: 90%; animation-delay: 0.45s; }
.rain-wrap span:nth-child(10) { left: 96%; animation-delay: 0.15s; }

body[data-weather="rain"] .rain-wrap,
body[data-weather="storm"] .rain-wrap {
  opacity: 0.8;
}

body[data-rain-level="heavy"] .rain-wrap {
  opacity: 1;
}

body[data-rain-level="heavy"] .rain-wrap span {
  width: 3px;
  filter: drop-shadow(0 0 8px rgba(224, 246, 255, 0.8));
  animation-duration: 0.46s !important;
}

body[data-rain-level="middle"] .rain-wrap {
  opacity: 0.72;
}

body[data-rain-level="middle"] .rain-wrap span {
  animation-duration: 0.7s !important;
}

body[data-weather="rain"] .mist-layer,
body[data-weather="storm"] .mist-layer {
  opacity: 1;
}

body[data-weather="rain"] .sun-light,
body[data-weather="storm"] .sun-light,
body[data-weather="cloud"] .sun-light {
  opacity: 0.35;
}

.mist-layer {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(226, 242, 255, 0.18));
  filter: blur(8px);
  transition: opacity 0.5s ease;
  animation: mistMove 6s ease-in-out infinite alternate;
}

.page-wrap {
  width: 100%;
  position: relative;
  z-index: 2;
}

.nav {
  overflow: hidden;
  min-height: 86px;
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-right: 40px;
}

.search {
  display: flex;
  align-items: center;
  width: 420px;
  height: 54px;
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 20px;
  padding: 0 18px 0 26px;
  gap: 18px;
  overflow: hidden;
  margin-left: 40px;
  box-shadow: 0 18px 40px rgba(12, 42, 84, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  animation: topIn 0.65s ease both;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.search:focus-within {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.32);
  box-shadow: 0 22px 50px rgba(12, 42, 84, 0.2), 0 0 0 4px rgba(255, 255, 255, 0.12);
}

.search_input {
  flex: 1;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 19px;
  color: #ffffff;
}

.search_input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.search_btn {
  position: relative;
  overflow: hidden;
  height: 40px;
  width: 40px;
  border: none;
  padding: 0;
  min-width: unset;
  max-width: unset;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border-radius: 14px;
  color: #ffffff;
  transition: transform 0.2s ease, background 0.2s ease;
}

.search_btn:hover {
  transform: rotate(-8deg) scale(1.08);
  background: rgba(255, 255, 255, 0.36);
}

.search_btn:disabled {
  cursor: wait;
  transform: none;
}

.message {
  display: flex;
  align-items: center;
  width: 220px;
  height: 54px;
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 20px;
  padding: 0 22px;
  gap: 20px;
  overflow: hidden;
  margin-left: 28px;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(12, 42, 84, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  animation: topIn 0.65s 0.08s ease both;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.city-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  animation: topIn 0.65s 0.16s ease both;
}

.city-tab {
  position: relative;
  overflow: hidden;
  height: 38px;
  min-width: 58px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.city-tab:hover,
.city-tab.active {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.32);
  box-shadow: 0 14px 32px rgba(12, 42, 84, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.message:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.34);
  box-shadow: 0 22px 50px rgba(12, 42, 84, 0.2);
}

.message:active {
  transform: translateY(0) scale(0.98);
}

.message::selection,
.message::-moz-selection {
  background: transparent;
  color: inherit;
}

.container {
  display: flex;
  width: 1200px;
  min-height: 410px;
  margin: 0 auto;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.conbox {
  position: relative;
  overflow: visible;
  transform-style: preserve-3d;
  height: 350px;
  width: 400px;
  background: rgba(255, 255, 255, 0.23);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 14px;
  padding: 22px;
  flex-shrink: 0;
  box-shadow: 0 16px 38px rgba(15, 44, 92, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  animation: cardIn 0.7s ease both;
  transition: transform 0.12s ease-out, opacity 0.2s ease, box-shadow 0.12s ease-out, background 0.2s ease, filter 0.2s ease;
  will-change: transform, box-shadow;
}

.conbox::before,
.con-card::before,
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle 72px at var(--mx, 50%) var(--my, 50%), rgba(4, 16, 35, 0.13), rgba(4, 16, 35, 0.04) 34%, transparent 64%),
    radial-gradient(circle 86px at calc(100% - var(--mx, 50%)) calc(100% - var(--my, 50%)), rgba(255, 255, 255, 0.14), transparent 58%);
  transition: opacity 0.18s ease;
  z-index: 3;
}

.conbox:hover::before,
.con-card:hover::before,
.panel:hover::before {
  opacity: 1;
}

.conbox:hover,
.con-card:hover {
  opacity: 0.96;
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 18px 44px rgba(15, 44, 92, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.conbox.is-pressed,
.con-card.is-pressed,
.panel.is-pressed {
  filter: saturate(1.1) contrast(1.04);
  z-index: 9;
}

.conbox2 {
  width: 750px;
  animation-delay: 0.08s;
}

.con-text {
  color: #ffffff;
  font-size: 21px;
  letter-spacing: 0;
  opacity: 0.9;
}

.con-top,
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.weather-tag,
.card-small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  white-space: nowrap;
}

.time {
  margin-top: 10px;
  font-size: 18px;
  opacity: 0.76;
  font-family: Consolas, monospace;
}

.con-conta {
  height: 106px;
  display: flex;
  align-items: center;
  margin-top: 4px;
}

.con-weather {
  height: 100px;
  width: 112px;
  font-size: 60px;
  line-height: 100px;
  text-shadow: 0 12px 28px rgba(20, 44, 78, 0.22);
  animation: iconFloat 3.2s ease-in-out infinite;
}

.con-Temperature {
  color: white;
  line-height: 100px;
  height: 100px;
  font-size: 48px;
  font-weight: 700;
  text-shadow: 0 12px 32px rgba(20, 44, 78, 0.22);
}

.weather-desc {
  margin-top: -14px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 16px;
}

.info-wrap {
  list-style: none;
  padding: 0;
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  row-gap: 18px;
}

.info-item {
  position: relative;
  overflow: visible;
  width: 23%;
  color: #fff;
  opacity: 0;
  animation: itemIn 0.45s ease forwards;
  border-radius: 10px;
  padding: 6px;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.info-item:hover {
  background: rgba(255, 255, 255, 0.12);
}

.info-title {
  font-size: 15px;
  opacity: 0.72;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
}

.info-val {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.card-title {
  margin: 0 0 18px;
  font-size: 22px;
  opacity: 0.86;
  font-weight: normal;
}

.hour-box {
  position: relative;
  height: 260px;
}

.hour-popover {
  position: absolute;
  top: 92px;
  min-width: 166px;
  padding: 12px 14px;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(17, 45, 78, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 18px 42px rgba(15, 44, 92, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(12px) scale(0.96);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 5;
}

.hour-popover.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.popover-time,
.popover-row {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.popover-main {
  margin: 7px 0;
  font-size: 24px;
  font-weight: 800;
}

.temp-svg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 150px;
  pointer-events: none;
  overflow: visible;
}

.temp-line {
  stroke: url(#tempLineColor);
  stroke-width: 5;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  filter: drop-shadow(0 8px 10px rgba(22, 70, 120, 0.22));
  animation: drawLine 1.1s ease forwards;
}

.temp-area {
  fill: rgba(255, 255, 255, 0.14);
  opacity: 0;
  animation: areaShow 0.8s 0.35s ease forwards;
}

.temp-dot {
  opacity: 0;
  transform-origin: center;
  animation: dotShow 0.42s 0.65s ease forwards;
}

.now-dot {
  animation: dotShow 0.42s 0.65s ease forwards, pulse 1.6s 1.1s ease-in-out infinite;
}

.hour-list {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.hour-item {
  position: absolute;
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: max-content;
  min-width: 54px;
  text-align: center;
  pointer-events: auto;
  animation: hourIn 0.5s ease both;
  transition: color 0.2s ease, transform 0.2s ease;
}

.hour-item.is-current {
  color: #fff7c2;
}

.hour-item:hover,
.hour-item:focus {
  color: #fff7c2;
  outline: none;
  transform: translateX(-50%) translateY(-8px);
}

.weather-icon {
  font-size: 24px;
  line-height: 1;
  filter: drop-shadow(0 8px 12px rgba(18, 41, 73, 0.18));
}

.rain-mini {
  min-width: 42px;
  padding: 2px 8px;
  border-radius: 999px;
  color: #dff7ff;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.wind-text {
  opacity: 0.82;
  font-size: 16px;
}

.time-text {
  opacity: 0.68;
  font-size: 18px;
}

.temp-dot-label {
  position: absolute;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  animation: labelIn 0.45s 0.72s ease forwards;
}

.temp-value-badge {
  background: rgba(32, 120, 196, 0.76);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 17px;
  font-weight: 700;
  padding: 4px 13px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  font-family: Consolas, monospace;
  box-shadow: 0 8px 18px rgba(15, 44, 92, 0.2);
}

.temp-dot-label.current-temp .temp-value-badge {
  background: #ffe08a;
  color: #1e293b;
  border-color: white;
}

.card {
  min-height: 205px;
  width: 1200px;
  margin: 8px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.con-card {
  position: relative;
  overflow: visible;
  transform-style: preserve-3d;
  width: 180px;
  height: 170px;
  background: rgba(255, 255, 255, 0.23);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(15, 44, 92, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  opacity: 0;
  animation: cardIn 0.55s ease forwards;
  transition: transform 0.12s ease-out, opacity 0.2s ease, box-shadow 0.12s ease-out, background 0.2s ease, filter 0.2s ease;
  will-change: transform, box-shadow;
}

.con-card div {
  font-size: 56px;
  height: 98px;
  line-height: 108px;
  text-align: center;
  filter: drop-shadow(0 10px 16px rgba(18, 41, 73, 0.18));
}

.con-card span {
  color: white;
  text-align: center;
  min-height: 50px;
  font-size: 19px;
  display: block;
  padding: 0 12px;
}

.tip-mask {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 26, 46, 0.28);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, backdrop-filter 0.25s ease;
}

.tip-mask.show {
  opacity: 1;
  pointer-events: auto;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.tip-box {
  position: relative;
  width: min(520px, 100%);
  min-height: 250px;
  display: flex;
  gap: 18px;
  padding: 26px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.28), transparent 34%),
    rgba(255, 255, 255, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.46);
  box-shadow: 0 34px 95px rgba(9, 30, 62, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.38);
  transform: translateY(18px) scale(0.96);
  transition: transform 0.25s ease;
}

.tip-mask.show .tip-box {
  transform: translateY(0) scale(1);
}

.tip-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 22px;
  line-height: 30px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.tip-close:hover {
  transform: rotate(90deg) scale(1.06);
  background: rgba(255, 255, 255, 0.28);
}

.tip-icon {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  font-size: 42px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.tip-content {
  flex: 1;
  padding-right: 26px;
}

.tip-title {
  margin: 4px 0 10px;
  font-size: 24px;
  font-weight: 800;
}

.tip-desc {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.7;
}

.tip-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tip-row {
  min-height: 66px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.tip-row span {
  display: block;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

.tip-row strong {
  display: block;
  margin-top: 7px;
  color: #ffffff;
  font-size: 18px;
}

.extra-wrap {
  width: 1200px;
  margin: 8px auto 40px;
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 22px;
  position: relative;
  z-index: 1;
}

.panel {
  position: relative;
  overflow: visible;
  transform-style: preserve-3d;
  min-height: 340px;
  background: rgba(255, 255, 255, 0.23);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 16px 38px rgba(15, 44, 92, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  animation: cardIn 0.7s ease both;
  transition: transform 0.12s ease-out, background 0.2s ease, box-shadow 0.12s ease-out, filter 0.2s ease;
  will-change: transform, box-shadow;
}

.panel:hover {
  background: rgba(255, 255, 255, 0.29);
  box-shadow: 0 18px 44px rgba(15, 44, 92, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.rain-hero {
  position: relative;
  overflow: visible;
  margin-top: 20px;
  height: 96px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-radius: 12px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.28), rgba(255, 255, 255, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.24);
  transition: background 0.2s ease;
}

.rain-num {
  font-size: 46px;
  font-weight: 800;
  text-shadow: 0 12px 28px rgba(20, 44, 78, 0.22);
}

.rain-title {
  font-size: 18px;
  font-weight: 700;
}

.rain-text {
  margin-top: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.5;
}

.rain-bars {
  height: 176px;
  margin-top: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.rain-bar-item {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  opacity: 0;
  animation: itemIn 0.45s ease forwards;
}

.rain-bar-track {
  width: 100%;
  height: 112px;
  min-width: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.rain-bar-fill {
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(180deg, #dff7ff, #60a5fa);
  box-shadow: 0 0 18px rgba(125, 211, 252, 0.55);
  animation: barGrow 0.75s ease both;
}

.rain-bar-time {
  max-width: 100%;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.76);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rain-bar-num {
  font-size: 12px;
  font-weight: 700;
}

.map-box {
  margin-top: 18px;
  height: 176px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.map-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.day-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.day-focus {
  position: relative;
  overflow: visible;
  min-height: 82px;
  margin-top: 18px;
  padding: 15px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  background:
    linear-gradient(135deg, rgba(255, 224, 138, 0.24), rgba(125, 211, 252, 0.16)),
    rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  animation: focusIn 0.35s ease both;
  transition: background 0.2s ease;
}

.day-focus-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: rgba(255, 255, 255, 0.18);
}

.day-focus-title {
  font-size: 17px;
  font-weight: 800;
}

.day-focus-info {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  line-height: 1.5;
}

.day-item {
  position: relative;
  overflow: visible;
  min-height: 46px;
  display: grid;
  grid-template-columns: 68px 38px 68px 1fr 80px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.16);
  opacity: 0;
  animation: itemIn 0.5s ease forwards;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.day-item:hover,
.day-item:focus,
.day-item.active {
  outline: none;
  transform: translateX(6px);
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.36);
  box-shadow: 0 12px 30px rgba(15, 44, 92, 0.14);
}

.day-name span,
.day-text,
.day-rain {
  font-size: 14px;
  font-weight: 700;
}

.day-name small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
}

.day-icon {
  font-size: 24px;
  text-align: center;
}

.day-text,
.day-rain {
  color: rgba(255, 255, 255, 0.8);
}

.temp-range {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}

.range-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.range-fill {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7dd3fc, #ffe08a, #ff9f68);
  box-shadow: 0 0 14px rgba(255, 224, 138, 0.45);
}

.detail-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.detail-item {
  position: relative;
  overflow: visible;
  min-height: 72px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.16);
  opacity: 0;
  animation: itemIn 0.5s ease forwards;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.detail-item:hover {
  background: rgba(255, 255, 255, 0.2);
}

.click-ripple {
  position: absolute;
  width: 12px;
  height: 12px;
  left: 0;
  top: 0;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.52);
  transform: translate(-50%, -50%) scale(0);
  animation: rippleShow 0.65s ease forwards;
}

.detail-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 20px;
}

.detail-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.68);
}

.detail-val {
  margin-top: 5px;
  font-size: 16px;
  font-weight: 800;
}

.is-loading .weather-main {
  position: relative;
  overflow: hidden;
}

.is-loading .weather-main::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.16) 42%, transparent 64%);
  transform: translateX(-100%);
  animation: loadingLight 1.1s ease infinite;
}

@keyframes lightMove {
  from { opacity: 0.75; transform: translateY(0); }
  to { opacity: 1; transform: translateY(18px); }
}

@keyframes sunFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(16px) scale(1.04); }
}

@keyframes cloudMove {
  from { transform: translateX(0) scale(var(--scale, 1)); }
  to { transform: translateX(calc(100vw + 420px)) scale(var(--scale, 1)); }
}

@keyframes rainDrop {
  from { transform: translateY(-120px) translateX(0); opacity: 0; }
  20% { opacity: 1; }
  to { transform: translateY(115vh) translateX(-70px); opacity: 0; }
}

@keyframes mistMove {
  from { transform: translateX(-2%) translateY(0); }
  to { transform: translateX(2%) translateY(16px); }
}

@keyframes topIn {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(26px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

@keyframes rippleShow {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(18);
  }
}

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

@keyframes hourIn {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes labelIn {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-8px) rotate(4deg); }
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

@keyframes areaShow {
  to { opacity: 1; }
}

@keyframes dotShow {
  from { opacity: 0; transform: scale(0.35); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(255, 224, 138, 0)); }
  50% { filter: drop-shadow(0 0 14px rgba(255, 224, 138, 0.9)); }
}

@keyframes loadingLight {
  to { transform: translateX(100%); }
}

@keyframes barGrow {
  from { transform: scaleY(0); transform-origin: bottom; }
  to { transform: scaleY(1); transform-origin: bottom; }
}

@media (max-width: 1250px) {
  .container,
  .card,
  .extra-wrap {
    width: calc(100% - 40px);
  }

  .container {
    gap: 24px;
  }

  .conbox2 {
    flex: 1;
    width: auto;
  }
}

@media (max-width: 920px) {
  .nav {
    height: auto;
    padding: 18px 20px 0;
    flex-wrap: wrap;
    gap: 14px;
  }

  .search,
  .message {
    margin-left: 0;
  }

  .search {
    width: 100%;
  }

  .message {
    width: 100%;
    justify-content: space-between;
  }

  .container {
    flex-direction: column;
    height: auto;
    min-height: unset;
    margin-top: 22px;
  }

  .conbox,
  .conbox2 {
    width: 100%;
  }

  .card {
    flex-wrap: wrap;
    margin-bottom: 24px;
  }

  .con-card {
    width: calc(50% - 9px);
  }

  .extra-wrap {
    grid-template-columns: 1fr;
  }

  .day-item {
    grid-template-columns: 62px 34px 62px 1fr;
  }

  .day-rain {
    grid-column: 4;
  }
}

@media (max-width: 520px) {
  .search_input {
    font-size: 16px;
  }

  .conbox {
    height: auto;
    min-height: 350px;
  }

  .con-Temperature {
    font-size: 42px;
  }

  .info-item {
    width: 48%;
  }

  .hour-box {
    height: 285px;
  }

  .weather-icon {
    font-size: 22px;
  }

  .wind-text {
    font-size: 13px;
  }

  .time-text {
    font-size: 14px;
  }

  .temp-value-badge {
    font-size: 14px;
    padding: 4px 10px;
  }

  .con-card {
    width: 100%;
  }

  .rain-bars {
    gap: 5px;
  }

  .rain-bar-num {
    display: none;
  }

  .day-item {
    grid-template-columns: 52px 30px 1fr;
  }

  .day-text {
    display: none;
  }

  .temp-range,
  .day-rain {
    grid-column: 1 / -1;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .tip-box {
    flex-direction: column;
  }

  .tip-content {
    padding-right: 0;
  }

  .tip-grid {
    grid-template-columns: 1fr;
  }
}

/* Cyber dashboard polish */
:root {
  --cyber-bg: #050914;
  --cyber-card: rgba(8, 15, 30, 0.72);
  --cyber-border: rgba(125, 211, 252, 0.18);
  --cyber-text: rgba(244, 250, 255, 0.94);
  --cyber-muted: rgba(201, 224, 238, 0.68);
  --cyber-faint: rgba(166, 190, 210, 0.46);
  --cyber-cyan: #67e8f9;
  --cyber-green: #86efac;
  --cyber-violet: #a78bfa;
  --cyber-shadow: 0 22px 54px rgba(0, 0, 0, 0.26);
  --cyber-shadow-hover: 0 26px 58px rgba(0, 0, 0, 0.32);
}

body {
  background: linear-gradient(135deg, #050914, #0a1a2f 48%, #11162f);
  color: var(--cyber-text);
  text-shadow: none;
}

body,
body *:not(input):not(textarea) {
  cursor: default;
  user-select: none;
}

button,
.search_btn,
.city-tab,
.conbox,
.con-card,
.panel,
.day-focus,
.rain-hero,
.hour-item,
.info-item,
.day-item,
.detail-item {
  cursor: pointer;
}

body::before {
  background:
    linear-gradient(rgba(125, 211, 252, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 18% 16%, rgba(103, 232, 249, 0.16), transparent 26%),
    radial-gradient(circle at 80% 8%, rgba(167, 139, 250, 0.13), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 34%);
  background-size: 46px 46px, 46px 46px, auto, auto, auto;
  opacity: 0.9;
  animation: cyberGrid 18s linear infinite;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(105deg, transparent 0 42%, rgba(103, 232, 249, 0.09) 49%, transparent 56%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 9px);
  mix-blend-mode: screen;
  opacity: 0.55;
  animation: scanSweep 8s ease-in-out infinite;
}

.cursor-light {
  width: 34px;
  height: 34px;
  opacity: 0.12;
  background: radial-gradient(circle, rgba(103, 232, 249, 0.26), rgba(103, 232, 249, 0.08) 42%, transparent 70%);
  filter: blur(1px);
}

.sky-bg::before,
.sky-bg::after {
  content: "";
  position: absolute;
  inset: -15%;
  opacity: 0.42;
  background-image:
    radial-gradient(circle, rgba(103, 232, 249, 0.54) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(167, 139, 250, 0.45) 0 1px, transparent 2px);
  background-size: 120px 120px, 170px 170px;
  animation: particleDrift 24s linear infinite;
}

.sky-bg::after {
  opacity: 0;
  background:
    linear-gradient(115deg, transparent 0 44%, rgba(255, 255, 255, 0.11) 48%, transparent 53%),
    linear-gradient(180deg, transparent, rgba(148, 163, 184, 0.08));
  filter: blur(10px);
  animation: mistBreath 9s ease-in-out infinite alternate;
}

body[data-weather="cloud"] .sky-bg::after,
body[data-weather="snow"] .sky-bg::after {
  opacity: 0.6;
}

.sun-light {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(103, 232, 249, 0.32), rgba(134, 239, 172, 0.12) 44%, transparent 70%);
  filter: blur(10px);
  opacity: 0.72;
}

.cloud {
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(226, 232, 240, 0.07);
  filter: blur(8px);
  opacity: 0.55;
}

.rain-wrap span {
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(125, 211, 252, 0.78));
  box-shadow: 0 0 8px rgba(103, 232, 249, 0.34);
}

.mist-layer {
  background: linear-gradient(180deg, transparent, rgba(125, 211, 252, 0.1), rgba(15, 23, 42, 0.2));
  filter: blur(14px);
}

.search,
.message,
.city-tab,
.conbox,
.con-card,
.panel,
.tip-box {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    var(--cyber-card);
  border: 1px solid var(--cyber-border);
  box-shadow: var(--cyber-shadow);
  backdrop-filter: blur(20px) saturate(1.15);
}

.conbox,
.con-card,
.panel {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  animation: cyberRise 0.72s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.conbox::before,
.con-card::before,
.panel::before {
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(103, 232, 249, 0.12), transparent 23%),
    linear-gradient(115deg, transparent 0 34%, rgba(255, 255, 255, 0.13) 48%, transparent 62%);
  opacity: 0;
}

.conbox::after,
.con-card::after,
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  border: 1px solid rgba(103, 232, 249, 0.16);
  opacity: 0.62;
}

.conbox:hover,
.con-card:hover,
.panel:hover {
  box-shadow: var(--cyber-shadow-hover);
}

.conbox.is-pressed,
.con-card.is-pressed,
.panel.is-pressed {
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

.container .conbox:nth-child(1) { animation-delay: 0.06s; }
.container .conbox:nth-child(2) { animation-delay: 0.16s; }
.card .con-card:nth-child(1) { animation-delay: 0.23s; }
.card .con-card:nth-child(2) { animation-delay: 0.29s; }
.card .con-card:nth-child(3) { animation-delay: 0.35s; }
.card .con-card:nth-child(4) { animation-delay: 0.41s; }
.card .con-card:nth-child(5) { animation-delay: 0.47s; }
.card .con-card:nth-child(6) { animation-delay: 0.53s; }
.extra-wrap .panel:nth-child(1) { animation-delay: 0.26s; }
.extra-wrap .panel:nth-child(2) { animation-delay: 0.34s; }
.extra-wrap .panel:nth-child(3) { animation-delay: 0.42s; }

.search_input,
.con-text,
.card-title,
.tip-title,
.con-Temperature,
.info-val,
.detail-value,
.day-temp {
  color: var(--cyber-text);
}

.weather-desc,
.time,
.card-small,
.info-title,
.wind-text,
.time-text,
.rain-text,
.tip-desc,
.tip-row span,
.detail-label,
.day-meta {
  color: var(--cyber-muted);
}

.search_input::placeholder {
  color: var(--cyber-faint);
}

.weather-tag,
.rain-state,
.city-tab.active {
  color: #06111a;
  background: linear-gradient(135deg, var(--cyber-cyan), var(--cyber-green));
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 18px rgba(103, 232, 249, 0.24);
}

.city-tab:not(.active):hover,
.info-item:hover,
.detail-item:hover,
.day-item:hover,
.rain-hero:hover,
.hour-item:hover {
  background: rgba(103, 232, 249, 0.075);
  border-color: rgba(103, 232, 249, 0.2);
  transform: none;
  box-shadow: none;
}

.info-item,
.detail-item,
.day-item,
.day-focus,
.rain-hero,
.hour-popover,
.tip-row {
  background: rgba(3, 10, 24, 0.42);
  border: 1px solid rgba(125, 211, 252, 0.12);
  box-shadow: none;
}

.day-item.active {
  background: rgba(103, 232, 249, 0.12);
  border-color: rgba(103, 232, 249, 0.34);
  transform: none;
}

.con-weather,
.weather-icon,
.cardicon,
.tip-icon,
.detail-icon,
.rain-num {
  display: grid;
  place-items: center;
  color: var(--cyber-cyan);
  text-shadow: 0 0 18px rgba(103, 232, 249, 0.38);
}

.con-weather .wx-icon {
  width: 78px;
  height: 78px;
}

.weather-icon .wx-icon {
  width: 28px;
  height: 28px;
}

.cardicon .line-icon,
.tip-icon .line-icon,
.detail-icon .line-icon,
.rain-num .line-icon {
  width: 40px;
  height: 40px;
}

.wx-icon,
.line-icon,
.ui-icon {
  display: inline-block;
  position: relative;
  width: 1em;
  height: 1em;
  color: currentColor;
}

.wx-sun {
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 0 0 9px rgba(103, 232, 249, 0.08), 0 0 28px rgba(103, 232, 249, 0.42);
}

.wx-sun::before,
.wx-sun::after {
  content: "";
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  border: 1px dashed currentColor;
  opacity: 0.45;
  animation: iconSpin 12s linear infinite;
}

.wx-sun::after {
  inset: 22%;
  border-style: solid;
  opacity: 0.5;
  animation: none;
}

.wx-cloud,
.wx-partly,
.wx-rain,
.wx-storm,
.wx-snow,
.wx-fog {
  border-bottom: 2px solid currentColor;
}

.wx-cloud::before,
.wx-partly::before,
.wx-rain::before,
.wx-storm::before,
.wx-snow::before,
.wx-fog::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 10%;
  bottom: 28%;
  height: 42%;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}

.wx-partly::after {
  content: "";
  position: absolute;
  right: -3%;
  top: 4%;
  width: 34%;
  height: 34%;
  border: 2px solid currentColor;
  border-radius: 50%;
  opacity: 0.75;
}

.wx-rain::after,
.wx-storm::after,
.wx-snow::after,
.wx-fog::after {
  content: "";
  position: absolute;
  left: 25%;
  right: 22%;
  bottom: -10%;
  height: 38%;
  background:
    linear-gradient(115deg, transparent 0 35%, currentColor 36% 41%, transparent 42% 100%),
    linear-gradient(115deg, transparent 0 57%, currentColor 58% 63%, transparent 64% 100%);
  opacity: 0.78;
}

.wx-storm::after {
  clip-path: polygon(42% 0, 66% 0, 54% 34%, 76% 34%, 36% 100%, 47% 48%, 30% 48%);
  background: currentColor;
}

.wx-snow::after {
  background:
    radial-gradient(circle at 25% 34%, currentColor 0 2px, transparent 3px),
    radial-gradient(circle at 52% 70%, currentColor 0 2px, transparent 3px),
    radial-gradient(circle at 78% 38%, currentColor 0 2px, transparent 3px);
}

.wx-fog::after {
  height: 32%;
  bottom: -4%;
  background:
    linear-gradient(currentColor, currentColor) 0 20% / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 70% / 84% 2px no-repeat;
}

.line-icon {
  border: 2px solid currentColor;
  border-radius: 12px;
  box-shadow: inset 0 0 16px rgba(103, 232, 249, 0.08);
}

.line-icon::before,
.line-icon::after,
.ui-icon::before,
.ui-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 999px;
}

.line-sun { border-radius: 50%; }
.line-sun::before { inset: 44% -22%; height: 2px; }
.line-sun::after { inset: -22% 44%; width: 2px; }
.line-pin { border-radius: 50% 50% 50% 8px; transform: rotate(-45deg); }
.line-pin::before { width: 28%; height: 28%; left: 36%; top: 36%; background: transparent; border: 2px solid currentColor; }
.line-shirt::before, .line-coat::before, .line-warm::before { width: 44%; height: 2px; left: 28%; top: 32%; }
.line-run::before, .line-indoor::before { width: 46%; height: 2px; left: 22%; top: 54%; transform: rotate(-28deg); }
.line-car::before, .line-wash::before { width: 58%; height: 2px; left: 21%; top: 60%; }
.line-umbrella::before, .line-clear::before { width: 62%; height: 28%; left: 19%; top: 18%; border: 2px solid currentColor; border-bottom: 0; background: transparent; border-radius: 999px 999px 0 0; }
.line-comfort::before, .line-cold::before { width: 34%; height: 34%; left: 33%; top: 22%; background: transparent; border: 2px solid currentColor; border-radius: 50%; }
.line-compass::before { width: 2px; height: 56%; left: 49%; top: 22%; transform: rotate(38deg); }
.line-drop { border-radius: 50% 50% 50% 8px; transform: rotate(-45deg); }
.line-thermo::before { width: 18%; height: 56%; left: 41%; top: 17%; }
.line-map::before { width: 2px; height: 70%; left: 33%; top: 15%; box-shadow: 10px 0 0 currentColor; }
.line-code::before { width: 54%; height: 2px; left: 23%; top: 34%; box-shadow: 0 10px 0 currentColor; }
.line-clock { border-radius: 50%; }
.line-clock::before { width: 2px; height: 28%; left: 49%; top: 24%; }
.line-clock::after { width: 26%; height: 2px; left: 48%; top: 50%; transform: rotate(32deg); transform-origin: left center; }
.line-hot::before { width: 28%; height: 58%; left: 36%; top: 20%; border-radius: 50% 50% 45% 45%; }
.line-wind::before { width: 66%; height: 2px; left: 18%; top: 36%; box-shadow: 8px 9px 0 currentColor, -4px 18px 0 currentColor; }
.line-moon { border-radius: 50%; box-shadow: inset -10px 0 0 rgba(5, 9, 20, 0.95); }
.line-chart::before { width: 62%; height: 2px; left: 20%; top: 58%; transform: rotate(-28deg); }
.line-calendar::before { width: 58%; height: 2px; left: 21%; top: 32%; }

.ui-search {
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.ui-search::after {
  width: 9px;
  height: 2px;
  right: -6px;
  bottom: 0;
  transform: rotate(45deg);
}

.ui-loading {
  display: inline-block;
  min-width: 24px;
  color: var(--cyber-cyan);
  letter-spacing: 2px;
}

.temp-line {
  stroke: url(#tempLineColor);
  stroke-width: 3;
  filter: drop-shadow(0 0 5px rgba(103, 232, 249, 0.72)) drop-shadow(0 0 14px rgba(134, 239, 172, 0.28));
}

.temp-area {
  opacity: 0.34;
}

.temp-dot,
.now-dot {
  filter: drop-shadow(0 0 8px rgba(103, 232, 249, 0.72));
}

.map-box {
  background: rgba(3, 10, 24, 0.62);
  border-color: rgba(103, 232, 249, 0.2);
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.26);
}

.map-img {
  filter: saturate(0.72) contrast(1.04) brightness(0.72) hue-rotate(172deg);
}

.tip-mask {
  backdrop-filter: blur(14px);
}

.click-ripple {
  background: radial-gradient(circle, rgba(103, 232, 249, 0.42), transparent 62%);
}

@keyframes cyberGrid {
  from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; }
  to { background-position: 46px 46px, 46px 46px, 0 0, 0 0, 0 0; }
}

@keyframes scanSweep {
  0%, 100% { transform: translateX(-14%); opacity: 0.35; }
  50% { transform: translateX(14%); opacity: 0.62; }
}

@keyframes particleDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-80px, 70px, 0); }
}

@keyframes mistBreath {
  from { transform: translateX(-4%) scale(1); }
  to { transform: translateX(4%) scale(1.05); }
}

@keyframes cyberRise {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes iconSpin {
  to { transform: rotate(360deg); }
}

/* Responsive layout and portfolio entry */
.back-home {
  position: fixed;
  left: clamp(16px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 30px);
  z-index: 30;
  min-height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--cyber-text, #fff);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  background: rgba(8, 15, 30, 0.78);
  border: 1px solid rgba(125, 211, 252, 0.28);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.back-home:hover {
  background: rgba(103, 232, 249, 0.16);
  border-color: rgba(103, 232, 249, 0.48);
}

@media (min-width: 1400px) {
  .container,
  .card,
  .extra-wrap {
    max-width: 1320px;
  }

  .conbox {
    flex: 0 0 420px;
  }

  .conbox2 {
    min-width: 0;
  }
}

@media (max-width: 1100px) {
  .nav {
    padding: 18px 24px 0;
  }

  .container,
  .card,
  .extra-wrap {
    width: calc(100% - 32px);
  }

  .container {
    flex-direction: column;
    height: auto;
    gap: 18px;
  }

  .conbox,
  .conbox2 {
    width: 100%;
  }

  .card {
    flex-wrap: wrap;
  }

  .con-card {
    width: calc(33.333% - 12px);
    min-width: 180px;
    flex: 1 1 180px;
  }

  .extra-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav {
    padding: 14px 14px 0;
  }

  .search {
    width: 100%;
    height: 50px;
    border-radius: 16px;
    padding-inline: 16px 12px;
  }

  .message,
  .city-tabs {
    width: 100%;
  }

  .city-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .city-tab {
    flex: 0 0 auto;
  }

  .container,
  .card,
  .extra-wrap {
    width: calc(100% - 24px);
  }

  .conbox {
    min-height: 330px;
    padding: 18px;
  }

  .con-conta {
    gap: 14px;
  }

  .con-Temperature {
    font-size: clamp(38px, 14vw, 56px);
  }

  .info-wrap {
    gap: 8px;
  }

  .info-item,
  .con-card {
    width: 100%;
  }

  .hour-box {
    overflow-x: auto;
    min-width: 0;
  }

  .hour-list,
  .temp-label-container,
  .temp-svg {
    min-width: 720px;
  }

  .day-item {
    grid-template-columns: 52px 32px minmax(0, 1fr);
    gap: 10px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .back-home {
    left: 12px;
    bottom: 12px;
    min-height: 38px;
    padding: 0 13px;
  }
}

/* Wide trend chart correction */
@media (min-width: 921px) {
  .container {
    width: min(92vw, 1500px);
    gap: clamp(24px, 3vw, 48px);
    align-items: stretch;
  }

  .conbox {
    flex: 0 0 clamp(360px, 28vw, 430px);
    height: auto;
    min-height: 380px;
  }

  .conbox2 {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    min-height: 380px;
  }

  .hour-box {
    height: clamp(270px, 22vw, 330px);
  }

  .temp-svg {
    height: clamp(150px, 12vw, 185px);
  }

  .hour-item {
    width: clamp(58px, 6.2vw, 88px);
  }

  .time-text,
  .wind-text {
    white-space: normal;
    text-align: center;
    line-height: 1.25;
  }
}

/* Phone-first weather polish */
@media (max-width: 640px) {
  body {
    min-width: 0;
  }

  .nav {
    min-height: 0;
    gap: 10px;
  }

  .search {
    height: 48px;
  }

  .search_input {
    min-width: 0;
  }

  .message {
    min-height: 48px;
    padding-inline: 16px;
  }

  .container {
    margin-top: 16px;
    gap: 12px;
  }

  .conbox,
  .conbox2,
  .panel {
    border-radius: 12px;
  }

  .conbox {
    min-height: 0;
  }

  .con-top,
  .card-head {
    align-items: flex-start;
  }

  .con-conta {
    height: auto;
    margin-top: 12px;
  }

  .con-weather {
    width: 78px;
    height: 78px;
    line-height: 78px;
  }

  .con-weather .wx-icon {
    width: 58px;
    height: 58px;
  }

  .info-wrap {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-item {
    width: auto;
  }

  .card-title {
    font-size: 20px;
  }

  .card-small {
    font-size: 12px;
    padding: 5px 8px;
  }

  .hour-box {
    height: 300px;
    padding-bottom: 4px;
  }

  .hour-list,
  .temp-label-container,
  .temp-svg {
    min-width: 760px;
  }

  .card {
    gap: 10px;
  }

  .day-list,
  .detail-grid {
    gap: 10px;
  }

  .back-home {
    z-index: 40;
  }
}

/* Align mobile weather chart layers */
.temp-label-container {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 150px;
  pointer-events: none;
}

@media (max-width: 760px) {
  .hour-box {
    overflow-x: auto;
    overflow-y: hidden;
  }

  .temp-svg,
  .temp-label-container,
  .hour-list {
    width: 760px !important;
    min-width: 760px !important;
    max-width: none;
  }

  .temp-label-container {
    height: 150px;
  }
}

/* Mobile performance: reduce rain and background animation cost */
@media (max-width: 760px), (pointer: coarse) {
  body::before,
  body::after,
  .sky-bg::before,
  .sky-bg::after,
  .cloud,
  .sun-light,
  .mist-layer {
    animation: none !important;
  }

  .rain-wrap {
    opacity: 0.45 !important;
  }

  .rain-wrap span {
    height: 42px;
    width: 1px;
    animation-duration: 1.2s !important;
    filter: none !important;
    box-shadow: none !important;
  }

  body[data-rain-level="heavy"] .rain-wrap span,
  body[data-rain-level="middle"] .rain-wrap span {
    animation-duration: 1s !important;
  }
}
