.toast-container {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  max-width: 80%;
  min-width: 200px;
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.toast-top {
  top: 40px;
}

.toast-bottom {
  bottom: 20px;
}

.toast-center {
  top: 50%;
  transform: translate(-50%, -50%);
}

.toast-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.toast-icon {
  font-size: 18px;
  font-weight: bold;
  min-width: 20px;
  text-align: center;
}

.toast-message {
  font-size: 14px;
  color: #333;
  line-height: 1.4;
  text-align: center;
}

.toast-show {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.toast-hide {
  opacity: 0;
  transform: translateX(-50%) scale(0.9);
}

/* 加载动画 */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.toast-icon.rotating {
  animation: rotate 1s linear infinite;
}
