.ml-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  &-preview {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999;
    background-color: rgba(0, 0, 0, 0.2);
    &-wrapper {
      position: relative;
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      // 图片样式
      &--image {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      // 工具栏样式
      &--tools {
        position: absolute;
        left: 50%;
        bottom: 60px;
        transform: translateX(-50%);
        padding: 2px 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 4px;
        background-color: #ffffff;
        .tool-item {
          padding: 6px 16px;
          display: flex;
          align-items: center;
          justify-content: center;
        }
      }
      // 关闭按钮样式
      &--close {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: var(--info-color-6);
      }
    }
  }
  &--error,
  &--loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--info-color-6);
    &-text {
      font-size: 14px;
      color: var(--info-color-7);
    }
  }
}
