/* ===== Toast 提示 ===== */
.toast-container {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(26,35,50,0.92);
  color: white;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  animation: toast-in 0.3s ease-out, toast-out 0.3s ease-in 2s forwards;
  max-width: 320px;
}
.toast i { width: 16px; height: 16px; flex-shrink: 0; }
.toast.action { cursor: pointer; pointer-events: auto; }
.toast .toast-link {
  color: #93C5FD;
  font-weight: 700;
  text-decoration: underline;
  margin-left: 4px;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateY(-10px); }
}

/* ===== 题库加载提示（带进度条） ===== */
.loading-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  z-index: 4000;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.loading-toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.loading-toast-inner {
  background: rgba(26,35,50,0.96);
  color: white;
  border-radius: 18px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
  min-width: 220px;
  max-width: 320px;
}
.loading-toast-icon {
  font-size: 28px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.loading-toast-body {
  flex: 1;
  min-width: 0;
}
.loading-toast-text {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}
.loading-toast-bar {
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.loading-toast-bar span {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, #60A5FA, #93C5FD);
  border-radius: 4px;
  animation: loading-toast-slide 1.2s ease-in-out infinite;
}
.loading-toast-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
  font-weight: 500;
}
@keyframes loading-toast-slide {
  0% { left: -40%; }
  100% { left: 100%; }
}

