@charset "UTF-8";
.loading-mask {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-mask.show {
  display: flex;
}

.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-top-color: #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 40px auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* 加载中的容器：相对定位 + 半透明遮罩 */
.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=loadingArea.css.map */
