/* 悬浮提示窗样式 */
.toast-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #fff;
  color: #333;
  padding: 15px 20px;
  border-radius: 5px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  z-index: 9999;
  display: flex;
  align-items: center;
  min-width: 250px;
  max-width: 350px;
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.5s ease;
}
.toast-notification.show {
  transform: translateX(0);
  opacity: 1;
}
.toast-icon {
  margin-right: 15px;
  width: 24px;
  height: 24px;
  position: relative;
}
.toast-success .toast-icon:before,
.toast-success .toast-icon:after {
  content: '';
  position: absolute;
  background-color: #4CAF50;
}
.toast-success .toast-icon:before {
  width: 3px;
  height: 9px;
  left: 6px;
  top: 10px;
  transform: rotate(45deg);
  animation: successAnimBefore 0.6s ease;
}
.toast-success .toast-icon:after {
  width: 3px;
  height: 15px;
  left: 12px;
  top: 5px;
  transform: rotate(-45deg);
  animation: successAnimAfter 0.6s ease;
}
.toast-error .toast-icon {
  border: 2px solid #F44336;
  border-radius: 50%;
}
.toast-error .toast-icon:before,
.toast-error .toast-icon:after {
  content: '';
  position: absolute;
  width: 3px;
  height: 14px;
  background-color: #F44336;
  top: 5px;
  left: 10px;
}
.toast-error .toast-icon:before {
  transform: rotate(45deg);
  animation: errorAnimBefore 0.3s ease;
}
.toast-error .toast-icon:after {
  transform: rotate(-45deg);
  animation: errorAnimAfter 0.3s ease;
}
@keyframes successAnimBefore {
  0% { height: 0; }
  100% { height: 9px; }
}
@keyframes successAnimAfter {
  0% { height: 0; }
  100% { height: 15px; }
}
@keyframes errorAnimBefore {
  0% { height: 0; }
  100% { height: 14px; }
}
@keyframes errorAnimAfter {
  0% { height: 0; }
  100% { height: 14px; }
}
.toast-content {
  flex-grow: 1;
}
.toast-message {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

/* 左上角划入样式（用于特定提示） */
.toast-left {
  left: 20px;
  right: auto;
  transform: translateX(-400px);
}
.toast-left.show {
  transform: translateX(0);
}

.toast-warning {
  background-color: #FEE2E2;
  color: #991B1B;
  border-left: 4px solid #EF4444;
}
.toast-warning .toast-icon svg {
  color: #EF4444;
}
