/* PC端容器 */
#TOAST_PC {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  pointer-events: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* PC端 Toast 项 */
#TOAST_PC .toast-item {
  background: rgba(0, 0, 0, 0.9);
  border: solid 1px rgba(255, 255, 255, 0.65);
  padding: 10px 16px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  line-height: 1.5;
  pointer-events: auto;
  animation: toast-slide-in 0.3s ease;
  min-width: 200px;
  max-width: 400px;
}

#TOAST_PC .toast-item-success {
  color: #fff;
}

#TOAST_PC .toast-item-warn {
  color: #fff;
}

#TOAST_PC .toast-item-loading {
  color: #fff;
}

#TOAST_PC .toast-icon {
  margin-right: 8px;
  font-size: 16px;
  flex-shrink: 0;
}

#TOAST_PC .toast-loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid;
  border-color: currentColor transparent transparent transparent;
  border-radius: 50%;
  animation: toast-spin 1s linear infinite;
}

@keyframes toast-slide-in {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#TOAST_PC .toast-fade-out {
  animation: toast-fade-out 0.3s ease forwards;
}

@keyframes toast-fade-out {
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

/* 移动端容器 (viewport=750) */
#TOAST_MOBILE {
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  pointer-events: none;
}

/* 移动端 Toast 项 (viewport=750) */
#TOAST_MOBILE .toast-item {
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 30px;
  border-radius: 16px;
  line-height: 1.5;
  pointer-events: auto;
  animation: toast-zoom-in 0.3s ease;
  max-width: 600px;
  min-width: 140px;
  min-height: 140px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#TOAST_MOBILE .toast-icon {
  font-size: 32px;
  margin-bottom: 20px;
}

#TOAST_MOBILE .toast-loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid;
  border-color: currentColor transparent transparent transparent;
  border-radius: 50%;
  animation: toast-spin 1s linear infinite;
}

@keyframes toast-zoom-in {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

#TOAST_MOBILE .toast-fade-out {
  animation: toast-zoom-out 0.3s ease forwards;
}

@keyframes toast-zoom-out {
  to {
    opacity: 0;
    transform: scale(0.8);
  }
}

/* Loading 旋转动画 */
@keyframes toast-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
