/* 地图样式 */
.leaflet-bottom.leaflet-right .leaflet-control-attribution {
  display: none !important;
}

.leaflet-container {
  height: 300px !important;
  width: 100% !important;
  border-radius: 8px;
  z-index: 1;
}

.leaflet-control-zoom {
  border: none !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24) !important;
}

.leaflet-control-zoom a {
  background-color: white !important;
  border: 1px solid #ccc !important;
  color: #333 !important;
}

.leaflet-control-zoom a:hover {
  background-color: #f4f4f4 !important;
}

.leaflet-popup-content-wrapper {
  border-radius: 8px !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

.leaflet-popup-tip {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.leaflet-container .leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.8) !important;
  font-size: 10px !important;
}

/* 动画效果 */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* 标签页样式 */
.tab-button.active {
  background-color: white;
  color: #1f2937;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tab-button:not(.active) {
  color: #6b7280;
}

.tab-button:not(.active):hover {
  color: #374151;
  background-color: rgba(255, 255, 255, 0.5);
}

/* 截图按钮样式 */
#screenshot-btn {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#screenshot-btn:hover {
  transform: translateY(-1px);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .fixed.top-4.right-4 {
    top: 1rem;
    right: 1rem;
  }

  #screenshot-btn {
    padding: 0.5rem;
  }

  #screenshot-btn svg {
    width: 1.25rem;
    height: 1.25rem;
  }
}

/* 加载状态样式 */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-content {
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* 渐变背景增强 */
.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

/* 卡片悬停效果 */
.hover\:shadow-xl:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* 通知样式 */
.notification-enter {
  transform: translateX(100%);
}

.notification-enter-active {
  transform: translateX(0);
  transition: transform 300ms ease-out;
}

.notification-exit {
  transform: translateX(0);
}

.notification-exit-active {
  transform: translateX(100%);
  transition: transform 300ms ease-in;
}