:global {
  @opacity-bg: #55c596; //#f5f5f5菜单背景色
  @active-color: #0047ff;
  @sider-prefix: sider;
  .ant-menu-inline-collapsed {
    .ant-menu-item {
      padding: 5px 0px 5px 0px !important;
      .anticon {
        font-size: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
      }
    }

    .ant-menu-submenu .ant-menu-submenu-title {
      padding: 5px 0px 5px 0px !important;
      .anticon {
        font-size: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
      }
    }
  }
  .ant-menu-inline {
    .ant-menu-submenu {
      .ant-menu-submenu-title {
        line-height: 30px;
        height: 35px;
        display: flex;
        align-items: center;
      }
    }
  }
  .ant-menu-sub.ant-menu-inline {
    .ant-menu-submenu {
      .ant-menu-submenu-title {
        line-height: 20px;
        height: 30px;
        display: flex;
        align-items: center;
      }
    }
  }
  .ant-menu-sub.ant-menu-inline {
    .ant-menu-item {
      line-height: 18px;
      height: 28px;
      display: flex;
      align-items: center;
    }
  }
  .ant-menu-submenu-popup {
    display: none;
  }
  .ant-menu-vertical {
    border-right: 0px;
  }
  .ant-menu-inline {
    border-right: 0px;
  }

  .@{sider-prefix} {
    position: relative;
    width: 100%;
    height: 100%;
    // padding         : 0 12px;
    // background-color: @opacity-bg;
    transition: width 0.2s ease;
    overflow: hidden;
    // overflow: auto;
    // box-shadow      : 0 0 10px rgba(0, 0, 0, 0.25);

    &.shortMenuShow {
      background-color: #ffffff;
      display: flex;
      // flex-direction: row;
      height: 100%;
      border-radius: 10px;
    }
    &.shortMenuShow_overflow {
      // width: 250px;
      // height: 100%;
      display: flex;
      flex-direction: row;
      border-radius: 10px;
      // min-width: 200px;
      // width: ~'calc(100% - 12px)';
    }
    &.shortMenuShow_overflow::-webkit-scrollbar {
      display: none;
    }
    &.shortMenuShow_overflowb {
      width: 100px;
      // height: 100%;
      padding-top: 100px;
      // display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      background-color: #55c596;
    }

    &.shortMenuShow_overflowc {
      background-color: #fff;
      height: 100%;
      width: 900px;
      border-radius: 0px 10px 10px 0px;
      display: flex;
      flex-direction: column;
    }
    &.shortMenuShow_overflowcExpand {
      background-color: #fff;
      height: 100%;
      width: 300px;
      border-radius: 10px;
      display: none;
      flex-direction: column;
    }
    &.shortMenuShow_sliderChild {
      display: flex;
      flex-direction: column;
      margin-top: 20px;
      background-color: #fff;
    }
    &.shortMenuShow_ChildPadding {
      padding: 60px 10px 40px 10px;
      margin-bottom: 40px;
      // background-color: #f3f4f6;
      // background: linear-gradient(
      //   90deg,
      //   rgba(166, 226, 235, 0.2) 0%,
      //   rgba(127, 190, 171, 0.2) 100%
      // );
      background: linear-gradient(
        90deg,
        #55c596 0%,
        rgba(166, 226, 235, 0.2) 100%
      );
      overflow-y: auto;
    }
    &__outButton {
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translate(-50%, 0);
    }
    &__shortMenuShowoverca {
      width: 100%;
      margin: 15px 0px;
      display: inline-block;
      text-align: center;
      height: auto;
      &-overc {
        color: #fff;
        font-size: 24px;
        padding: 10px 10px;
        width: 100%;
      }
      &-overcd {
        color: #55c596;
        background-color: #fff;
        font-size: 24px;
        padding: 10px 10px;
        width: 44px;
        height: 44px;
        border-radius: 10px;
        box-shadow: 0px 0px 10px 0px #3ea178;
      }
      &-title {
        display: none;
      }
    }
    &__shortMenuShowovercae {
      width: 100%;
      margin: 15px 0px;
      display: inline-block;
      text-align: center;
      height: auto;
      &-overc {
        color: #fff;
        font-size: 24px;
        padding: 10px 10px;
        width: 100%;
      }
      &-overcd {
        color: #55c596;
        background-color: #fff;
        font-size: 24px;
        padding: 10px 10px;
        width: 44px;
        height: 44px;
        border-radius: 10px;
        box-shadow: 0px 0px 10px 0px #3ea178;
      }
    }
    &__shortMenuShowoverca:hover {
      width: 100%;
      margin: 15px 0px;
      display: flex;
      flex-direction: row;
    }
    &__shortMenuShowoverca:hover &__shortMenuShowoverca-overcd {
      color: #55c596;
      background-color: #fff;
      font-size: 24px;
      padding: 10px 10px;
      width: 44px;
      height: 44px;
      border-radius: 10px;
      box-shadow: 0px 0px 10px 0px #3ea178;
      margin-left: 28px;
    }
    &__shortMenuShowoverca:hover &__shortMenuShowoverca-overc {
      color: #55c596;
      background-color: #fff;
      font-size: 24px;
      padding: 10px 10px;
      width: 44px;
      height: 44px;
      border-radius: 10px;
      box-shadow: 0px 0px 10px 0px #3ea178;
      margin-left: 28px;
    }
    &__shortMenuShowoverca:hover &__shortMenuShowoverca-title {
      display: block;
      color: #fff;
      font-size: 16px;
      font-weight: bold;
      position: fixed;
      height: 44px;
      left: 72px;
      padding: 0px 15px;
      border-radius: 10px;
      background-color: #55c596;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 999;
    }

    &__shortMenuShowGrid {
      display: grid;
      grid-template-rows: auto;
      grid-template-columns: auto;
      grid-template-columns: repeat(auto-fill, 180px);
      justify-content: space-between;
      //   grid-gap: 5px;
      /*  声明了两行，行高分别为 50px 50px  */
      //   grid-template-rows: 50px;
      margin: 10px 20px 10px 55px;
    }
    &__shortMenuShowFlex {
      background-color: #fff;
      // border-top: 10px solid #f3f4f6;
      padding: 20px 0px 5px 0px;
      margin-bottom: 10px;
      margin-right: 30px;
      box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.12);
      border-radius: 10px;
    }
    &__shortMenuShowChildTwo {
      line-height: 20px;
      height: 44px;
      // background-color: #fff;
      display: flex;
      flex-direction: row;
      align-items: center;
      cursor: pointer;
      &-iconri {
        font-size: 14px;
        width: 20px;
        // background-color: #fff;
        margin-right: 15px;
        display: flex;
        align-items: center;
        margin-left: 20px;
      }
      &-name {
        // background-color: #fff;
        font-size: 14px;
        display: flex;
        align-items: center;
        color: #2c5570;
        font-weight: bold;
      }
      &-icon {
        font-size: 20px;
        // width: 20px;
        background-color: #d4f4e8;
        padding: 8px;
        border-radius: 5px;
        color: #0cbf7c;
        margin-right: 10px;
        display: flex;
        align-items: center;
        // margin-left: 20px;
      }
    }

    &__shortMenuShowChild {
      line-height: 20px;
      // height: 44px;
      background-color: #fff;
      // background: linear-gradient(90deg, rgba(166,226,235,0.2) 0%, rgba(127,190,171,0.2) 100%);
      display: flex;
      flex-direction: row;
      align-items: center;
      cursor: pointer;
      box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.12);
      margin: 6px 0px;
      padding: 10px;
      border-radius: 5px;
      // justify-content: center;
      &-icontwo {
        font-size: 18px;
        // width: 20px;
        // background-color: #fff;
        margin-right: 10px;
        display: flex;
        align-items: center;
        border-radius: 5px;
        padding: 8px;
        color: #4791ff;
        background-color: #e0edff;
        // margin-left: 70px;
      }
      &-nametwo {
        // background-color: #fff;
        font-size: 13px;
        display: flex;
        align-items: center;
        // color: #2c5570;
        color: #303133;
        padding-right: 10px;
        // font-weight: bold;
      }
    }

    &__shortMenuShowChild:hover {
      // transform: scale(1.1);
      transform: translate(-5px , -5px);
      transition: all 0.5s ease 0s;
      box-shadow: 5px 5px 15px rgba(67,72,84,0.5);
      
    }

    &__position {
      background-color: #fff;
      height: 40px;
    }
    &__menuAll,
    &__menu {
      display: flex;
      flex-direction: row;
      justify-content: flex-start;
      align-items: center;
      width: 100%;
      padding: 0 12px;
      cursor: pointer;
      overflow: hidden;
    }

    &__menuAll {
      height: 61px;
      border-bottom: 1px solid #333333; //#333333菜单下划线颜色

      &-icon {
        width: auto;
        height: 28px;
      }
    }

    &__menuExpand {
      position: absolute;
      top: 0;
      left: 100%;
      width: 0;
      height: 100%;
      transition: width 0.2s ease;
      background-color: @opacity-bg;
      box-shadow: 6px 0 10px rgba(0, 0, 0, 0.1);

      &-divempty {
        position: absolute;
        top: -52px;
        left: -30%;
        height: 50px;
        width: 130%;
      }

      &-divempty-hide {
        position: absolute;
      }

      &-inner {
        height: 100%;
        padding: 0 24px;
      }

      &-divider {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        border-left: 1px solid #333333; //#333333
      }

      &-divempty-right {
        position: relative;
        bottom: 100%;
        left: 100%;
        height: 100%;
        width: 200px;
      }

      &-header {
        display: flex;
        //   flex-wrap    : nowrap;
        //   width        : 100%;
        //   height       : 61px;
        border-bottom: 1px solid #333333; //#333333菜单扩展处下划线颜色
        flex-direction: column;
        font-size: 16px;
      }

      &-body {
        width: 100%;
        height: ~"calc(100% - 140px)";
        padding: 12px 0;

        &--scroll {
          display: flex;
          flex-direction: column;
          justify-content: flex-start;
          align-items: flex-start;
          flex-wrap: wrap;
        }
      }

      &-footer {
        position: relative;
        height: 70px;
        padding: 4px;
        border: 1px solid #e1e1e1;
        border-radius: 4px;

        &--title {
          position: absolute;
          top: -24px;
          left: 0;
        }

        &--scroll {
          font-size: 14px;
          line-height: 18px;
        }
      }

      &-menu {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 82px;
        height: 100%;
        margin-right: 40px;
        cursor: pointer;

        &:hover {
          .@{sider-prefix}__menuExpand-menu--itemIcon,
          .@{sider-prefix}__menuExpand-menu--itemText {
            color: @active-color;
          }

          .@{sider-prefix}__menuExpand-menu--indicator {
            opacity: 1;
          }
        }

        &.lastChild {
          margin-right: 0;
        }

        &--item {
          width: 100%;
          display: flex;
          flex-direction: row;
          justify-content: center;
          align-items: center;

          &Icon {
            font-size: 12px;
            color: #333333; //#333333右侧扩展菜单图标颜色
            margin-right: 5px;
            transition: color 0.2s ease;

            &.active {
              color: @active-color;
            }
          }

          &Text {
            font-size: 16px;
            color: #333333; //#333333右侧扩展菜单字体颜色
            transition: color 0.2s ease;
            &.active {
              color: @active-color;
            }
          }
        }

        &--indicator {
          position: absolute;
          bottom: 12px;
          width: 48px;
          height: 2px;
          background-color: @active-color;
          border-radius: 2px;
          opacity: 0;
          transition: opacity 0.2s ease;

          &.active {
            opacity: 1;
          }
        }
      }

      &-subMenu {
        display: flex;
        flex-direction: column;
        padding-right: 20px;
        margin-bottom: 4px;
        overflow: hidden;

        &--title {
          font-size: 12px;
          color: #333333; //#ABABAB二级菜单颜色
          margin-bottom: 18px;
          cursor: pointer;

          &--icon {
            margin-left: 5px;
            font-size: 14px;
          }

          &:hover {
            color: @active-color;
          }
        }

        &--menu {
          width: 100%;
          // padding-left   : 20px;
          margin-bottom: 20px;
          display: flex;
          flex-direction: row;
          justify-content: flex-start;
          align-items: center;
          cursor: pointer;

          &:hover {
            .@{sider-prefix}__menuExpand-menu--itemIcon,
            .@{sider-prefix}__menuExpand-menu--itemText {
              color: @active-color;
            }
          }
        }
      }
    }

    &__scrollbars {
      width: 100%;
      height: ~"calc(100% - 61px)" !important;
    }

    &__menu {
      height: 28px;
      margin-top: 30px;

      &:hover {
        .@{sider-prefix}__menu-icon,
        .@{sider-prefix}__menu-font--text {
          color: @active-color;
        }
      }

      &.lastChild {
        margin-bottom: 30px;
      }

      &-icon {
        font-size: 28px;
        color: #333333; //#333333左侧常用菜单图标颜色
        transition: color 0.2s ease;

        &.active {
          color: @active-color;
        }
      }

      &-font {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        margin-left: 16px;

        &--text {
          font-size: 16px;
          color: #333333; //#333333左侧常用菜单字体颜色
          margin-right: 4px;
          white-space: nowrap;
          transition: color 0.2s ease;

          &.active {
            color: @active-color;
          }
        }

        &--icon {
          font-size: 12px;
          color: #000000;
        }
      }
    }
  }
}
