@charset "UTF-8";
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  /* 初始隐藏，可根据需要设为 block */
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease;
}

/* loading 小圆圈动画 */
.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
/* 通过添加 active 类来显示遮罩 */
.loading-overlay.active {
  visibility: visible;
  opacity: 1;
}

/* 加载中的容器：相对定位 + 半透明遮罩 */
.loading {
  position: relative;
  pointer-events: none; /* 防止加载时点击 */
  overflow: hidden;
}

/* 可选：内容轻微变暗/模糊，突出加载感 */
.loading::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.7); /* 浅白遮罩（暗模式可改成 rgba(0,0,0,0.5)） */
  backdrop-filter: blur(2px); /* 可选：模糊效果（现代浏览器支持） */
  z-index: 10;
  border-radius: inherit; /* 继承容器圆角 */
}

/* 旋转加载动画（spinner） */
.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #6366f1; /* 主色调，可自定义 */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 20;
}

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

/*# sourceMappingURL=LoadingBox.css.map */
