/*
 * ============================================================
 * 版权所有 (c) 2026 Wukong Quick Apps (qquiz.cn). All Rights Reserved.
 * 
 * 本软件（QQuiz智考）为专有软件，受中华人民共和国著作权法及国际版权公约保护。
 * 未经版权所有者明确的书面授权，任何个人或组织不得：
 * 1. 复制、分发、传播、出租、出售本软件的全部或部分源代码。
 * 2. 将本软件部署于任何公网或私有服务器对外提供服务。
 * 3. 修改、反编译、反向工程或创作衍生作品。
 * 4. 移除或修改本软件中的任何版权声明、商标或所有权标识。
 * ============================================================
 */

/* ============ qqToast 全局提示样式 ============ */
.qq-toast-wrap {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
.qq-toast {
  pointer-events: auto;
  min-width: 220px;
  max-width: 92vw;
  padding: 12px 20px;
  border-radius: 12px;
  background: #ffffff;
  color: #1a2634;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(-16px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  word-break: break-word;
  text-align: center;
}
.qq-toast.show {
  opacity: 1;
  transform: translateY(0);
}
.qq-toast .qq-toast-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  line-height: 1;
}
.qq-toast.qq-toast-success { border-left: 4px solid #16a34a; }
.qq-toast.qq-toast-success .qq-toast-icon { color: #16a34a; }
.qq-toast.qq-toast-error   { border-left: 4px solid #e74c3c; }
.qq-toast.qq-toast-error   .qq-toast-icon { color: #e74c3c; }
.qq-toast.qq-toast-warn    { border-left: 4px solid #e67e22; }
.qq-toast.qq-toast-warn    .qq-toast-icon { color: #e67e22; }
.qq-toast.qq-toast-info    { border-left: 4px solid #0d8bf0; }
.qq-toast.qq-toast-info    .qq-toast-icon { color: #0d8bf0; }

/* 暗色模式 */
body.dark .qq-toast {
  background: #1a2634;
  color: #e8f0fe;
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 8px 30px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.3);
}

/* 手机端 */
@media (max-width: 480px) {
  .qq-toast-wrap { top: 12px; }
  .qq-toast {
    min-width: 200px;
    padding: 10px 16px;
    font-size: 0.9rem;
  }
}