/* home */
.home {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: auto;
}

.home-body {
  position: absolute;
  left: 0;
  top: 50px;
  right: 0;
  bottom: 0;
  overflow: auto;
  background: $--color-background;
  z-index: 98;
}

.home-body-content {
  position: relative;
  padding: 20px 20px 50px 240px;
  min-height: 100%;
}

.home-page-main {
  .home-navs {
    bottom: auto;
    height: 50px;
    border-radius: 0;
    background-color: transparent;

    &::before {
      display: none;
    }

    .head-logo-content {
      display: none;
      padding: 5px 0;
      border: none;
    }

    .el-menu {
      display: none;
    }
  }

  .home-breadcrumb {
    display: none;
  }

  .home-body-content {
    padding-left: 30px;
  }
}

/* navs */
.home-navs {
  position: absolute;
  width: 220px;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  overflow: auto;
  font-size: 14px;
  background: $--color-white;
  border-top-right-radius: $--border-radius-huge;
  border-bottom-right-radius: $--border-radius-huge;

  &::before {
    content: "";
    display: block;
    position: absolute;
    height: 100%;
    width: 1px;
    right: 0;
    bottom: 0;
    z-index: 9;
    background: rgba(229, 229, 229, 1);
  }

  .head-logo {
    padding: 0 30px;
    font-size: 20px;
    line-height: 40px;
    text-align: center;

    &-content {
      display: block;
      padding: 30px 0;
      border-bottom: 1px solid #eff0f5;
      height: 100px;
      cursor: pointer;

      &:hover {
        opacity: 0.8;
      }
    }

    img {
      display: block;
      max-width: 160px;
      max-height: 40px;
      margin: 0 auto;
    }
  }

  .nav-part {
    padding: 20px 0;
    border-top: 1px solid $--color-border;
  }

  .nav-head {
    padding: 10px 0;
    color: $--color-text-gray-2;
    font-size: $--font-size-base;
    line-height: 20px;
    position: relative;
    font-weight: 500;

    > span {
      display: inline-block;
      vertical-align: top;
      font-weight: 600;
    }

    &-right-icon {
      position: absolute;
      right: 0;
      top: 50%;
      transform: translateY(-50%);
      color: #d3d5e0;
      font-size: 12px;
    }
  }

  // .nav-list {
  //   padding: 0 0 0 23px;
  // }
  .nav-item {
    overflow: hidden;
    color: $--color-text-dark-1;

    &-main {
      padding: 10px 0;
      line-height: 20px;
      position: relative;
      font-weight: 500;
      cursor: pointer;

      &-act,
      &:hover {
        font-weight: 600;
        color: $--color-primary;
      }
    }

    &-icon {
      display: block;
      position: absolute;
      width: 20px;
      height: 20px;
      top: 50%;
      margin-top: -10px;
      text-align: center;
      line-height: 20px;
    }

    &-icon-right {
      right: 5px;
    }

    &-info {
      display: block;
      position: absolute;
      padding: 0 3px;
      min-width: 16px;
      height: 16px;
      font-size: 12px;
      line-height: 16px;
      top: 12px;
      right: 40px;
      background-color: $--color-warning;
      color: #fff;
      text-align: center;
      border-radius: 3px;
    }
  }
}

.el-menu-home {
  padding-top: 20px;

  .el-submenu {
    margin-bottom: 20px;
  }

  .el-submenu__title {
    padding: 0 40px !important;
    height: 50px;
    line-height: 50px;
    font-weight: 600;

    > .icon {
      margin-right: 12px;
    }
  }

  .el-menu-item {
    height: auto;
    min-height: 40px;
    line-height: 20px;
    padding: 10px 40px !important;
    white-space: normal;
  }

  .el-menu-item.is-active {
    font-weight: 600;
  }

  .el-submenu__icon-arrow {
    right: 40px;
  }
}

/* head */
.home-header {
  position: absolute;
  width: 100%;
  height: 50px;
  top: 0;
  left: 0;
  z-index: 99;
  color: #fff;
  padding-left: 220px;
  background-color: $--color-text-dark;

  display: flex;
  align-items: stretch;
  justify-content: space-between;

  .menu-list {
    li {
      position: relative;
      display: inline-block;
      vertical-align: top;
      padding: 10px;
      height: 50px;
      line-height: 30px;
      opacity: 0.4;
      font-size: 16px;
      position: relative;
      text-align: center;
      cursor: pointer;

      &:hover {
        opacity: 1;
      }

      &.menu-item-act {
        opacity: 1;

        &::after {
          content: "";
          display: block;
          position: absolute;
          left: 5px;
          right: 5px;
          bottom: 0;
          border-top: 5px solid #fff;
          border-radius: 5px;
          z-index: 8;
        }
      }

      span {
        display: inline-block;
        vertical-align: top;
      }

      .icon {
        margin-top: -3px;
        margin-right: 6px;
      }

      > i {
        margin-right: 6px;
      }
    }
  }

  .head-menu {
    flex-grow: 1;
    overflow-y: hidden;
    overflow-x: auto;

    ul {
      white-space: nowrap;
    }
  }

  .head-user {
    flex-grow: 0;
    flex-shrink: 0;

    .menu-item-account {
      white-space: nowrap;
      padding: 10px;

      span {
        max-width: 156px;
        overflow: hidden;
        text-overflow: ellipsis;
      }
    }

    .menu-item-logout {
      opacity: 1;

      &:hover {
        color: $--color-danger;
      }
    }
  }

  // .head-menu-btn
  .head-menu-btn {
    display: none;
    float: right;
    line-height: 36px;
    padding: 12px 15px;
    text-align: center;

    > span {
      display: block;
      height: 36px;
      width: 36px;
      border-radius: 5px;
      background-color: rgba($color: #fff, $alpha: 0.3);
    }

    i {
      font-size: 22px;
      vertical-align: middle;
    }
  }
}

// menu-dialog
.menu-dialog {
  .el-dialog.is-fullscreen {
    border-radius: 0;
    box-shadow: none;

    .el-dialog__body {
      padding: 10px;

      &::after {
        display: none;
      }
    }
  }

  .menu-logout {
    padding: 10px;
    width: 52px;
    height: 52px;
    margin: 0 auto;
    border: 1px solid $--color-text-gray-3;
    border-radius: 50%;
    font-size: 30px;
    text-align: center;
    color: $--color-text-gray-3;
    cursor: pointer;

    &:hover {
      border-color: $--color-danger;
      color: $--color-danger;
    }
  }
}

// home-breadcrumb
.home-breadcrumb {
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 500;
  color: $--color-text-gray-2;

  .breadcrumb-tips {
    display: inline-block;
    vertical-align: middle;

    > i {
      margin-top: -2px;
      margin-right: 8px;
    }
  }

  .el-breadcrumb {
    line-height: 16px;
    display: inline-block;
    vertical-align: middle;
    font-size: 12px;

    .el-breadcrumb__item {
      .el-breadcrumb__inner {
        color: $--color-text-gray-2;
      }
    }

    .el-breadcrumb__separator {
      margin: 0 5px;
    }
  }
}

// home-view

/* view-footer */
.home-footer {
  position: absolute;
  width: 100%;
  height: 30px;
  bottom: 0;
  left: 0;
  z-index: 99;
  padding: 5px 0;
  line-height: 20px;
  color: $--color-text-gray-3;
  text-align: center;
  font-size: 13px;
  background-color: $--color-background;

  a {
    color: $--color-text-gray-3;
  }

  a:hover {
    color: $--color-text-gray;
  }
}

// home-page
.home-page {
  margin: 0 -10px;

  .hp-top {
    margin-bottom: 20px;

    .tab-btns {
      margin-bottom: 8px;
    }
    .part-box {
      margin-bottom: 0;
    }
  }

  .tab-box {
    border-radius: 8px;
    background-color: #fff;
    min-height: 100px;
    padding: 20px;

    &-title {
      height: 24px;
      font-weight: 500;
      font-size: 16px;
      color: #262626;
      line-height: 24px;
      padding-left: 32px;

      background-image: url(../images/icon-guide.png);
      background-size: auto 100%;
      background-repeat: no-repeat;
    }
  }

  .home-guide {
    padding: 20px 0 0;
    overflow-y: auto;
    white-space: nowrap;
    text-align: center;
  }
  .guide-box {
    padding: 12px;
    background: linear-gradient(180deg, #f8f9fb 0%, #eff0f5 100%);
    border-radius: 6px;
    border: 1px solid #eff0f5;

    .guide-title {
      height: 22px;
      font-weight: 500;
      font-size: 14px;
      color: #262626;
      line-height: 22px;
      margin-bottom: 6px;
    }

    .guide-desc {
      height: 20px;
      font-weight: 400;
      font-size: 12px;
      color: #797a83;
      line-height: 20px;
      margin-bottom: 2px;
    }

    .guide-menus {
      border-radius: 4px;
      background-color: #fff;
      overflow: hidden;

      > li {
        list-style: none;
        padding: 6px 24px 6px 12px;
        height: 34px;
        font-weight: 400;
        font-size: 14px;
        color: #262626;
        line-height: 22px;
        position: relative;

        &:not(:last-child) {
          border-bottom: 1px solid #f2f2f1;
        }

        &::after {
          content: "\e791";
          font-family: element-icons !important;
          font-style: normal;
          font-weight: 400;
          font-variant: normal;
          text-transform: none;
          line-height: 1;
          display: block;
          position: absolute;
          top: 50%;
          transform: translateY(-50%);
          right: 8px;
          color: #8c8c8c;
          font-size: 12px;
          display: none;
        }

        &.is-link {
          cursor: pointer;
          &::after {
            display: block;
          }
        }

        &.is-link:hover {
          color: $--color-primary;

          &::after {
            color: $--color-primary;
          }
        }

        &.is-disabled {
          color: #8c8c8c !important;
          cursor: not-allowed;
          &::after {
            color: #8c8c8c !important;
          }
        }
      }

      + .guide-desc {
        margin-top: 6px;
      }
    }
  }
  .guide-group {
    display: inline-block;
    vertical-align: middle;
    position: relative;
    margin: 0 14px;
    width: 200px;
    text-align: left;

    &:not(:last-child)::after {
      content: "";
      display: block;
      position: absolute;
      width: 8px;
      height: 8px;
      border: 1px solid #3a5ae5;
      top: 50%;
      right: -5px;
      margin-top: -5px;
      border-radius: 50%;
      background-color: #fff;
      z-index: 9;
    }
    &:not(:first-child)::before {
      content: "";
      display: block;
      position: absolute;
      width: 20px;
      height: 10px;
      background-image: url(../images/icon-narrow.png);
      background-size: 100% 100%;
      background-repeat: no-repeat;

      top: 50%;
      left: -22px;
      margin-top: -5px;
    }

    &:last-child {
      &::before {
        display: none;
      }
      .guide-line-top {
        position: absolute;
        width: 24px;
        height: 100px;
        left: -24px;
        top: 50%;
        margin-top: -100px;
        background-image: url(../images/bg-line-top.png);
        background-size: 100% 100%;
      }
      .guide-line-bottom {
        position: absolute;
        width: 24px;
        height: 100px;
        left: -24px;
        top: 50%;
        background-image: url(../images/bg-line-bottom.png);
        background-size: 100% 100%;
      }
    }

    .guide-box:not(:last-child) {
      margin-bottom: 16px;
    }
    &:first-child {
      margin-left: 0;
    }
    &:last-child {
      margin-right: 0;
      width: 220px;
    }
  }
}
