@import '../../commonStyle/index.less';

.@{prefix}-loading {
  .mask {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100000;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: rgba(0, 0, 0, 30%); // 添加半透明背景色
  }

  .loading {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 100001;
    padding: 20px;
    background: rgba(255, 255, 255, 90%); // 调整背景透明度
    border-radius: 10px;
    box-shadow: 3px 3px 3px rgba(0, 0, 0, 20%); // 调整阴影
    transform: translate(-50%, -50%);
  }

  /* 当挂载到body时使用fixed定位 */
  &.body-container {
    .mask {
      position: fixed;
    }

    .loading {
      position: fixed;
    }
  }
}
