.toast {
  padding: 12px 20px;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  max-width: 380px;
}
.toast.info {
  background-color: #1e40af;
}
.toast.error {
  background-color: #ef4444;
}
.toast.success {
  background-color: #10b981;
}
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pulseCta {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
  }
  50% {
    box-shadow: 0 0 0 18px rgba(239, 68, 68, 0);
  }
}
.pulse-cta {
  animation: pulseCta 2s infinite;
}
@keyframes breatheGlow {
  0%, 100% {
    box-shadow: 0 0 8px rgba(249, 115, 22, 0.6);
  }
  50% {
    box-shadow: 0 0 22px rgba(249, 115, 22, 0.95), 0 0 35px rgba(249, 115, 22, 0.4);
  }
}
.breathe-glow {
  animation: breatheGlow 2.2s ease-in-out infinite;
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.animate-in {
  animation: modalIn 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.sticky-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 48;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.sticky-bottom-bar.visible {
  transform: translateY(0);
}
.sticky-bottom-bar.modal-open {
  transform: translateY(100%) !important;
  z-index: 40 !important;
}
.input-err {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
  background-color: #fef2f2 !important;
}
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 45;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}
.mobile-nav-container {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  background: white;
  z-index: 50;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}
.mobile-nav-container.open {
  transform: translateX(0);
}
.mobile-nav-link {
  display: block;
  padding: 16px 24px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav-link:hover {
  background: #f8fafc;
  color: #1e40af;
}
.city-switch-inline a {
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}
.city-switch-inline a:hover {
  color: #1d4ed8;
}
.modal-overlay {
  z-index: 60 !important;
}
.floating-btns {
  z-index: 49;
}
.floating-btns.modal-open {
  z-index: 40 !important;
}

@media (min-width: 768px) {
  .mobile-nav-container {
    position: static !important;
    transform: none !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    flex-direction: row !important;
    z-index: auto !important;
  }
  .mobile-nav-link {
    display: inline-block !important;
    padding: 0 !important;
    border-bottom: none !important;
    font-size: 15px !important;
    color: #475569 !important;
  }
  .mobile-nav-link:hover {
    background: transparent !important;
    color: #1e40af !important;
  }
}

@media (max-width: 640px) {
  .city-switch-inline {
    overflow-x: auto;
    max-width: 160px;
  }
  .city-switch-inline::-webkit-scrollbar {
    display: none;
  }
}

/* ========== 新增：移动端隐藏其他浮动按钮，仅留返回顶部 ========== */
@media (max-width: 768px) {
  #floating-btns > *:not(#btn-back-to-top) {
    display: none !important;
  }
}