.toast-root {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.toast-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.toast-item {
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 24rpx 32rpx;
  border-radius: 100rpx;
  max-width: 500rpx;
  min-width: 200rpx;
  text-align: center;
  margin: 10rpx 0;
  font-size: 40rpx;
  font-weight: bold;
  line-height: 1.5;
  animation: toast-enter 0.3s ease, toast-exit 0.3s ease forwards;
  animation-delay: 0s, calc(var(--duration, 2000ms) - 300ms);
  pointer-events: none;
  box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.3);
  word-break: break-word;
}

@keyframes toast-enter {
  from {
    opacity: 0;
    transform: translateY(-20rpx);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toast-exit {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-20rpx);
  }
}