.container {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden; // 防止因为子元素的宽度而撑大父元素的宽度
  height: 100%;
  transition: all linear 500ms;

  &.modalEdit {
    visibility: hidden;
  }
}

.wrap {
  position: relative;
  // height: calc(~'100vh - 92px');
  height: 100%;
  user-select: none;

  &.dragover {
    &:after {
      position: absolute;
      content: '';
      left: 0;
      top: 0;
      right: 0;
      bottom: 0;
      z-index: 10;
      border: 1px dashed var(--easyv-primary-color);
      pointer-events: none;
    }
  }
}

.preview {
  width: 100%;
  height: 100%;
  overflow: auto;
  position: relative;
}

.canvas-reset-button,
.shortcuts {
  position: fixed;
  right: 342px;
  bottom: 12px;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  z-index: 3;
  cursor: pointer;
  color: var(--easyv-primary-color);
  opacity: 0.6;
  :global(.iconfont) {
    font-size: 24px;
  }
}
.canvas-reset-button:hover {
  opacity: 1 !important;
  transition: all 0.8s ease;
}

.shortcuts {
  opacity: 1;
  left: 195px;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-content: center;
  border-top: var(--easyv-border-black);
  background: var(--easyv-background-3);
  height: 32px;
  line-height: 32px;
  padding: 0 12px 0 32px;

  .footerLeft {
    display: flex;
    align-items: center;
    color: var(--easyv-text-base);
    cursor: pointer;
    span {
      margin-right: 20px;
      &:last-child {
        margin-right: 0;
      }
      &:hover {
        color: var(--easyv-text-tab);
      }
    }
  }

  .footerRight {
    display: flex;
    align-items: center;
    span {
      padding: 0 8px;
      cursor: pointer;
      &:last-child {
        margin-right: 0;
      }
    }
    :global {
      .iconfont {
        color: #bfbfbf;
        &:hover {
          color: #fff;
        }
      }
    }
  }
}

:global(.leave) {
  .container {
    opacity: 0;
  }
}

:gloabl(.enter) {
  .container {
    opacity: 1;
  }
}

.migrateTip {
  position: relative;
  max-width: 600px;
  height: 40px;
  background: #3d404c;
  box-shadow: 0px 2px 24px rgb(74 94 85 / 8%);
  border-radius: 2px;
  padding: 0 16px 0 35px;
  text-align: center;
  font-size: 14px;
  line-height: 40px;
  color: #ffffff;
  left: 50%;
  margin-left: -300px;
  // transform: translateY(50%);
  top: 25px;
  z-index: 200;
}
.switch {
  position: absolute;
  top: 32px;
  right: 12px;
  z-index: 2;
}
