/* 提示框样式 */
.toast-container {
  position: fixed;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  max-width: 400px;
  width: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.toast {
  padding: 14px 18px;
  border-radius: 6px;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  width: 100%;
  /* 延长显示时间：5秒淡入，5秒后淡出 */
  animation: fadeIn 0.5s, fadeOut 0.5s 5.5s;
  animation-fill-mode: forwards;
  opacity: 0;
}

.toast-info {
  background-color: #e3f2fd;
  border-left: 4px solid #2196f3;
  color: #0d47a1;
}

.toast-warning {
  background-color: #fff8e1;
  border-left: 4px solid #ffc107;
  color: #ff6f00;
}

.toast-error {
  background-color: #ffebee;
  border-left: 4px solid #f44336;
  color: #b71c1c;
}

.toast-content {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
}

.toast-close {
  cursor: pointer;
  margin-left: 10px;
  font-size: 18px;
  color: #999;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

/* 确认对话框样式 */
.confirm-dialog-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.confirm-dialog {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  width: 300px;
  max-width: 90%;
  transform: translateY(-20px);
  transition: transform 0.3s;
}

.confirm-dialog-header {
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
}

.confirm-dialog-header h3 {
  margin: 0;
  font-size: 18px;
  color: #333;
}

.confirm-dialog-body {
  padding: 20px;
  color: #555;
  font-size: 14px;
}

.confirm-dialog-footer {
  padding: 12px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid #eee;
}

.confirm-dialog-btn {
  padding: 8px 16px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

.confirm-dialog-btn-cancel {
  background-color: #f5f5f5;
  color: #333;
}

.confirm-dialog-btn-cancel:hover {
  background-color: #e0e0e0;
}

.confirm-dialog-btn-confirm {
  background-color: #2196f3;
  color: white;
}

.confirm-dialog-btn-confirm:hover {
  background-color: #1976d2;
}

.confirm-dialog-show {
  opacity: 1;
}

.confirm-dialog-show .confirm-dialog {
  transform: translateY(0);
}
