/* ---- 天气卡片与城市设置模块样式 ---- */
.weather {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(16, 20, 26, 0.22);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 14px 22px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.12);
}

.weather .icon {
  font-size: 1.9rem;
  line-height: 1;
}

.weather .info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.weather .temp {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.3rem;
  font-weight: 600;
}

.weather .place {
  font-size: .8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.weather .desc {
  font-size: .78rem;
  color: var(--muted);
}

#weatherEditBtn {
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  width: 28px;
  height: 28px;
  border-radius: 7px;
  cursor: pointer;
  margin-left: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s ease, color .2s ease;
}

#weatherEditBtn:hover {
  border-color: var(--amber);
  color: var(--amber);
}

#weatherEditBtn svg {
  width: 14px;
  height: 14px;
}

.city-pop {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  translate: -50% 0;
  width: 260px;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  display: none;
  flex-direction: column;
  gap: 10px;
  z-index: 20;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .4);
}

.city-pop.open {
  display: flex;
}

.city-pop input {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 9px 11px;
  border-radius: 7px;
  font-size: .85rem;
}

.city-pop input:focus {
  outline: 1px solid var(--amber);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  font-size: .74rem;
  padding: 5px 10px;
  border-radius: 20px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: none;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}

.chip:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.geo-btn {
  font-size: .76rem;
  color: var(--amber);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 2px 0;
  opacity: .9;
}

@media (max-height: 620px) {
  .weather {
    padding: 10px 16px;
  }
}

@media (max-width: 768px) {
  .weather {
    margin-top: auto;
    margin-bottom: clamp(2px, 1vh, 8px);
    padding: 10px 18px;
    z-index: 2;
    background: rgba(16, 20, 26, 0.22);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.12);
  }
}
