/* ============================================================
   大陶匠 · Toast提示组件
   说明：全站统一轻量提示，自动消失
   调用：window.showToast(message, duration)
   ============================================================ */

.toast-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 99999;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.toast {
  background: rgba(61, 44, 30, 0.92);
  color: #fff;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: 90vw;
  text-align: center;
  pointer-events: auto;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success {
  background: rgba(76, 175, 80, 0.92);
}

.toast.error {
  background: rgba(211, 47, 47, 0.92);
}

.toast.warning {
  background: rgba(255, 152, 0, 0.92);
}

.toast.blocked {
  background: rgba(90, 90, 90, 0.92);
}

/* 手机端：减小内边距，避免短提示折行 */
@media (max-width: 767px) {
  .toast {
    padding: 8px 12px;
    max-width: none;
    white-space: nowrap;
  }
}
