/* 错误提示样式 */
.error-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 0.2rem 0.3rem;
  border-radius: 0.1rem;
  z-index: 9999;
  font-size: 0.14rem;
  text-align: center;
  max-width: 80%;
  line-height: 1.5em;
}

.error-toast.error {
  background: rgba(255, 59, 48, 0.9);
}

.error-toast.success {
  background: rgba(52, 199, 89, 0.9);
}

.error-toast.warning {
  background: rgba(255, 149, 0, 0.9);
}

/* 加载状态样式 */
.loading-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9998;
}

.loading-spinner {
  width: 0.5rem;
  height: 0.5rem;
  border: 0.03rem solid #08979c;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  margin-top: 0.2rem;
  font-size: 0.14rem;
  color: #666;
}

/* 网络错误提示 */
.network-error {
  position: fixed;
  bottom: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  background: #ff3b30;
  color: #fff;
  padding: 0.12rem 0.2rem;
  border-radius: 0.25rem;
  font-size: 0.12rem;
  z-index: 9999;
  animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(0.2rem);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}