@import '../../core/variables.less';

@top-height: 50px;
@menu-bakg: #21242e;
@active-color: #ff8534;

.left-container {
  position: absolute;
  z-index: 2;
  top: @top-height;
  left: 0;
  bottom: 0;
  width: @xm-left-width;
  background: @menu-bakg;
  color: #FFFFFF;

  .ant-menu {
    padding-left: 0 !important;
    background: transparent;
  }

  .left {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    display: flex;
    display: -webkit-flex;
    flex-direction: column;
    -webkit-flex-direction: column;
    height: 100%;

    .nav {
      -webkit-flex: 1;
      cursor: default;
      font-size: 16px;
      margin-top: 16px;
      height: calc(~'100% - 72px');
      overflow: auto;
      &::-webkit-scrollbar {
        display: none;
      }
      .icon {
        margin-right: 20px
      }

      .fistLevel {
        position: relative;
        &:hover {

          .ant-menu-submenu-title,
          .home-title {
            color: #fff !important;

            .iconfont {
              color: #fff !important;
            }

            .listType {
              background: #fff !important;
            }

            .ant-menu-submenu-arrow {
              &::before {
                background: #fff !important;
              }

              &::after {
                background: #fff !important;

              }
            }
          }
        }
        .submenu-item-cls {
          position: relative;
          &.new-icon {
            position: absolute;
            background: #d90b1b;
            height: 8px;
            width: 8px;
            border-radius: 50%;
            right: 56px;
            top: 10px;
          }
        }


        .menu-item {
          position: relative;
          .menu-item-cls {
            &.new-icon {
              &::before {
                line-height: 18px;
                content: "\65B0\529F\80FD";
                display: block;
                width: 39px;
                height: 18px;
                background-color: #d90b1b;
                background-size: cover;
                color: #fff;
                font-size: 10px;
                position: absolute;
                top: 10px;
                right: 6px;
                text-align: center;
                border-radius: 10px;
              }

            }
          }
        }
      }

      .ant-menu-submenu-selected,
      .ant-menu-item-selected {
        &:hover {
          .iconfont {
            color: @active-color  !important;
          }

          .ant-menu-submenu-title,
          .home-title {
            color: @active-color  !important;

            .iconfont {
              color: @active-color  !important;
            }

            .listType {
              background: @active-color  !important;
            }

            .ant-menu-submenu-arrow {
              &::before {
                background: @active-color  !important;
              }

              &::after {
                background: @active-color  !important;

              }
            }
          }
        }
      }

      .ant-menu-submenu-title {
        line-height: 40px;
        height: 40px;
      }
      .ant-menu-submenu > .ant-menu {
        background-color: transparent;
      }
      .ant-menu-submenu,
      .ant-menu-item {
        position: relative;
        transition: none !important;
        background: @menu-bakg;
        color: #9A9DA7;
        width: 100%;

        .icon {
          color: #9A9DA7;
        }

        div {
          .name {
            margin-left: 15px;
          }

          position: relative;

          .listType {
            width: 5px;
            height: 5px;
            background: #9A9DA7;
            border-radius: 50%;
            top: 18px;
            left: 5px;
            position: absolute;
          }
        }

      }

      .ant-menu-item {
        color: @xm-color-text-menu;
      }

      .ant-menu-item-selected {
        .name {
          color: #fff;
        }
      }

      .activeMenu,
      .ant-menu-item-selected {
        background: @menu-bakg;
        color: @active-color;

        .icon {
          color: @active-color;
        }

        .ant-menu-submenu-arrow {
          &::before {
            background: @active-color;
          }

          &::after {
            background: @active-color;

          }
        }
      }

      .rc-menu-hidden {
        display: none;
      }

      .homeBar {
        .iconfont {
          transition: none;
        }

        .ant-menu-submenu-title:after {
          display: none;
        }
      }

    }

    .border-tip {
      display: inline-block;
      margin: 0 auto;
      border: 1px solid #979797;
      height: 28px;
      line-height: 28px;
      border-radius: 14px;
      padding: 0 8px;
      box-sizing: content-box;
      cursor: pointer;
    }
    .referral-tip {
      position: relative;
      text-align: center;
      img{
        width: 121px;
        cursor: pointer;
      }
      .gif-style {
        width: 180px;
      }
      .referral-content{
       position: relative;
        width:116px;
        height:28px;
        white-space: nowrap;
        border-radius:14px;
        border:1px solid rgba(255,133,52,1);
        font-size:13px;
        line-height:25px;
        padding-left: 20px;
        color:rgba(255,133,52,1);
        margin-left: 36px;
        cursor: pointer;
        &::before{
          position: absolute;
          top: 0px;
          left: -11px;
          content: '';
          width: 25px;
          height: 26px;
          background: url("https://image.xiaomaiketang.com/xm/r2mDMKFtAw.png") no-repeat center;
          background-size: 100% auto;
        }
      }
      .close-referral {
        position: absolute;
        top: -7px;
        right: 22px;
        display: inline-block;
        width: 10px;
        height: 10px;
        background: url("https://image.xiaomaiketang.com/xm/jBG6Hp4fF7.png") no-repeat center;
        background-size: 100% auto;
        cursor: pointer;
      }
    }

    .pay-warning {

      .icon {
        color: #FBD140;
        font-size: 16px;
        margin-right: 4px;
      }

      .tip {
        float: right;
        color: #fff;
      }
    }

    .update-order {
      .updated {
        margin: 10px 0;
        color: #FFBF02;
        border: 1px solid #FFBF02;
      }
      .upgrade_wrap {
        margin: 10px 0;
        text-align: center;
        cursor: pointer;
        &.zoom_in {
          animation-duration: 0.5s;
          animation-fill-mode: both;
          animation-name: zoomIn;
        }
        img {
          width: 130px;
          height: 55px;
        }
      }
    }

    .copy-right {
      padding-top: 10px;
      padding-bottom: 10px;
      display: flex;
      display: -webkit-flex;
      align-items: center;
      -webkit-align-items: center;
      justify-content: center;
      -webkit-justify-content: center;

      img {
        width: 80px;
      }
    }

    .questionButton {
      position: fixed;
      right: 0;
      bottom: 100px;
      width: 50px;
      height: 100px;
      z-index: 999;
      background: #0c0c0c;
    }
  }

  &.left-container-vertical {
    width: 62px;
    .ant-badge-not-a-wrapper .ant-badge-count{
      box-shadow: none;
    }
    .left {
      .ant-menu-item {
        text-align: center;
      }

      .ant-menu-submenu-arrow {
        display: none !important;
      }

      .ant-menu-submenu-title {
        font-size: 25px;
        line-height: 50px;
        height: 50px;
        text-align: center;
      }

      .ant-menu-vertical .ant-menu-submenu-title {
        text-overflow: inherit;
      }

      .ant-menu-submenu-vertical>.ant-menu-submenu-title:after {
        display: none;
      }

      .title {
        text-align: center;
      }

      .pay-warning {
        display: none;
      }

      .icon {
        margin-right: 0px;
      }
    }
  }

  .ant-menu-submenu-inline {
    .ant-menu-item {
      >div {
        padding-left: 10px;

        .listType {
          left: 12px !important;
        }
      }
    }
  }

  .ant-menu-vertical.ant-menu-sub {
    min-width: 135px;

    .ant-menu-item {
      &:nth-child(1) {
        padding-top: 15px;
        height: 57px;
      }

      &:nth-last-child(1) {
        padding-bottom: 15px;
        height: 57px;
      }

      >div {
        padding-left: 10px;

        .listType {
          left: 12px !important;
        }
      }
    }
  }

  .left .nav .ant-menu-item.ant-menu-item-selected div .listType {
    background: @active-color  !important;
  }

  .market-item-name {
    position: relative;

    .new-tip {
      position: absolute;
      top: 5px;
      right: -34px;
      width: 32px;
      border-radius: 10px;
      background: red;
      color: #fff;
      text-align: center;
      height: 14px;
      line-height: 13px;
      font-size: 12px;
    }
  }

  .market-badge {
    .ant-badge-dot {
      box-shadow: unset;
      height: 10px;
      width: 10px;
      margin-left: 10px;
    }
  }

  .menu-item-content{
    position: relative;
    .menu-item-tips{
      position: absolute;
      font-size: 12px;
      color: #fff;
      background: #EC4B35;
      line-height: 18px;
      height: 18px;
      border-radius: 10px;
      padding: 0 4px;
      right: -11px;
      top: 50%;
      margin-top: -8px;
      z-index: 1;
    }
  }
}

.ant-menu-submenu-popup>.ant-menu {
  background: @menu-bakg  !important;
  color: #9A9DA7;
  padding-left: 15px;
  width: 132px;
  min-width: auto;

  li {
    padding-left: 22px;
    padding-right: 0;
    width: 117px;
  }

  .listType {
    width: 5px;
    height: 5px;
    background: #9A9DA7;
    border-radius: 50%;
    top: 18px;
    left: 5px;
    position: absolute;
  }

  .ant-menu-item-selected {
    background: @menu-bakg;
    color: #fff;

    .listType {
      background: @active-color;
    }
  }

  &:hover {
    .ant-menu-item-active {
      color: #fff;

      .listType {
        background: #fff;
      }
    }

    .ant-menu-item-selected {
      .listType {
        background: @active-color;
      }
    }
  }
}

.v4-to-v5-update-modal {
  .ant-modal-body {
    padding: 0 !important;

    .success-box {
      position: relative;

      .modal-main-bg {
        width: 100%;
      }
      .try-btn {
        background: linear-gradient(90deg, rgba(255, 158, 82, 1) 0%, rgba(255, 73, 31, 1) 100%);
        box-shadow: 1px 10px 13px 0px rgba(230, 100, 0, 0.35);
        width: 244px;
        height: 50px;
        line-height: 50px;
        border-radius: 7px;
        margin: auto;
        bottom: 45px;
        position: absolute;
        z-index: 10;
        color: #fff;
        font-size: 23px;
        font-family: PingFangSC-Semibold, PingFang SC;
        font-weight: 600;
        text-align: center;
        left: 0;
        right: 0;
        cursor: pointer;
      }
    }

    .failed-box {
      padding: 48px 72px 40px;

      .close-bg {
        width: 160px;
        margin: auto;
        display: block;
      }

      .content {
        font-size: 16px;
        color: #333;
        margin-top: 24px;
      }

      .tip {
        margin-top: 12px;
        color: #999;
        font-size: 16px;
      }

      .close-btn {
        margin: auto;
        margin-top: 90px;
        color: #fff;
        background: #FF8534;
        border-radius: 4px;
        width: 200px;
        height: 40px;
        line-height: 40px;
        font-size: 16px;
        text-align: center;
      }
    }
  }
  .ant-modal-close-x {
    display: none;
  }
}

@-webkit-keyframes zoomIn {
  0% {
    -webkit-transform: scale(0) translate3d(0%, 0%, 0);
    transform: scale(0) translate3d(0%, 0%, 0);
    opacity: 0;
  }

  100% {
    -webkit-transform: scale(1) translate3d(-0%, 0%, 0);
    transform: scale(1) translate3d(-0%, 0%, 0);
    opacity: 1;
  }
}

@keyframes zoomIn {
  0% {
    -webkit-transform: scale(0) translate3d(0%, 0%, 0);
    transform: scale(0) translate3d(0%, 0%, 0);
    opacity: 0;
  }

  100% {
    -webkit-transform: scale(1) translate3d(-0%, 0%, 0);
    transform: scale(1) translate3d(-0%, 0%, 0);
    opacity: 1;
  }
}