.miao-drawer {
  position: fixed;
  z-index: 1000;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;

  .mask {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    bottom: 0;
    pointer-events: all;

    &.display-background {
      background: rgba(0, 0, 0, 0.1);
    }
  }

  .model-container {
    position: absolute;
    transition: transform 300ms cubic-bezier(0, 0, 0.18, 0.97);
    overflow-y: scroll;
    overflow: hidden;
    pointer-events: all;

    &._bottom {
      bottom: 0;
      width: 100%;
      transform: translate3d(0, 100%, 0)
    }

    &._top {
      top: 0;
      width: 100%;
      transform: translate3d(0, -100%, 0)
    }

    &._left {
      left: 0;
      height: 100%;
      width: 80vw;
      transform: translate3d(-100%, 0, 0)
    }

    &._right {
      right: 0;
      height: 100%;
      width: 80vw;
      transform: translate3d(100%, 0, 0)
    }

    &.open {
      transform: translate3d(0, 0, 0)
    }
  }
}


.DrawerPage {
  position: fixed;
  width: 100vw;
  height: 100vh;
  left: 0vw;
  background-color: #f1f1f1;
  transition: all 0.4s;
}

.DrawerPage.show {
  transform: scale(0.9, 0.9);
  left: 85vw;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.2);
  transform-origin: 0;
}

.DrawerWindow {
  position: absolute;
  width: 85vw;
  height: 100vh;
  left: 0;
  top: 0;
  transform: scale(0.9, 0.9) translateX(-100%);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s;
}

.DrawerWindow.show {
  transform: scale(1, 1) translateX(0%);
  opacity: 1;
  pointer-events: all;
}

.DrawerClose {
  position: absolute;
  width: 40vw;
  height: 100vh;
  right: 0;
  top: 0;
  color: transparent;
  padding-bottom: 30px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.01), rgba(0, 0, 0, 0.6));
  letter-spacing: 5px;
  font-size: 50px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s;
}

.DrawerClose.show {
  opacity: 1;
  pointer-events: all;
  width: 15vw;
  color: #fff;
}

.DrawerPage .cu-bar.tabbar .action button.icon {
  width: 64px;
  height: 64px;
  line-height: 64px;
  margin: 0;
  display: inline-block;
}

.DrawerPage .cu-bar.tabbar .action .cu-avatar {
  margin: 0;
}

.DrawerPage .nav {
  flex: 1;
}

.DrawerPage .nav .cu-item.cur {
  border-bottom: 0;
  position: relative;
}

.DrawerPage .nav .cu-item.cur::after {
  content: "";
  width: 10px;
  height: 10px;
  background-color: currentColor;
  position: absolute;
  bottom: 10px;
  border-radius: 10px;
  left: 0;
  right: 0;
  margin: auto;
}

.DrawerPage .cu-bar.tabbar .action {
  flex: initial;
}