.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 0.8rem 1.2rem;
  border-radius: 6px;
  font-size: 0.9rem;
  opacity: 0;
  z-index: 9999;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* 显示时动画 */
.toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* 隐藏时动画 */
.toast.hide {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
}
