/* ============================================================
 * LeonZone 前台 Toast 契约（SSOT）
 * 位置：顶中；类型：success | error | warn | info
 * 图标：内联 SVG（由 lz-ui.js 注入）；不透明实底，无 backdrop-filter
 * 用法：lzToast(msg, type?, ms?)  — 见 /static/lz/lz-ui.js
 * 后台 admin $__msgMap 通道不受影响。
 * ============================================================ */
.lz-toast-wrap {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}
.lz-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(92vw, 480px);
  padding: 10px 16px 10px 14px;
  border-radius: 16px;
  font-size: 13px;
  color: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  animation: lzToastIn 0.35s ease;
}
.lz-toast.out { animation: lzToastOut 0.3s ease forwards; }
.lz-toast.success { background: rgba(52, 199, 89, 0.92); }
.lz-toast.error   { background: rgba(255, 59, 48, 0.92); }
/* warn：琥珀实底 + 深色字，避免橙底白字偏黄「顺色」难读 */
.lz-toast.warn    { background: #ffd60a; color: #1d1d1f; }
.lz-toast.info    { background: rgba(0, 113, 227, 0.92); }
.lz-toast.warn .lz-toast-act { color: #1d1d1f; }
.lz-toast.warn .lz-toast-act:hover { background: rgba(0, 0, 0, 0.08); }
.lz-toast .lz-toast-ic {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lz-toast .lz-toast-ic svg { width: 16px; height: 16px; stroke: currentColor; }
.lz-toast .lz-toast-tx { line-height: 1.4; word-break: break-word; }
.lz-toast .lz-toast-act {
  margin-left: 4px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  opacity: 0.92;
}
.lz-toast .lz-toast-act:hover { opacity: 1; background: rgba(255, 255, 255, 0.12); }
@keyframes lzToastIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes lzToastOut {
  to { opacity: 0; transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .lz-toast, .lz-toast.out { animation: none; }
}
