/* 二级导航栏 */
.hy-operator-menu-box {
  width: 57px;
  height: 100%;
  display: flex;
  flex-direction: column;
  color: rgba(var(--hy-main));
  overflow: auto;
  padding-top: 4px;
  transition: all 0.3s linear;
  background:
    linear-gradient(180deg, rgba(33, 58, 84, 0.3) 0.08%, #213a54 100%),
    radial-gradient(
      21% 31% at 150% 40%,
      rgba(61, 98, 134, 0.5) 0%,
      rgba(61, 98, 134, 0) 100%
    );
  border-right: 1px solid rgba(var(--hy-border));

  .operator-menu-list {
    width: 100%;
    height: 0;
    flex: 1;
    overflow-y: auto;
  }

  &.operator-menu-box-expand {
    width: 240px;

    .operator-menu-item {
      width: 100%;
      height: 58px;
      padding: 0 16px;
      font-size: 16px;
      position: relative;
      cursor: pointer;

      .operator-label {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
      }

      &.operator-menu-item-active {
        &::after {
          content: '';
          display: block;
          width: 2px;
          height: 16px;
          position: absolute;
          left: 0;
          top: 50%;
          transform: translateY(-50%);
          border-radius: 10px;
          background-color: rgba(var(--hy-theme));
        }
        .operator-label {
          font-weight: bold;
        }
      }
    }

    .operator-menu-item-active,
    .operator-menu-item:hover {
      &::before {
        content: '';
        display: block;
        width: calc(100% - 4px);
        height: calc(100% - 6px);
        position: absolute;
        left: 0;
        top: 3px;
        background: linear-gradient(
          90deg,
          rgba(var(--hy-theme), 0) 2%,
          rgba(var(--hy-theme), 0.4) 100%
        );
        border-radius: 0px 4px 4px 0px;
      }
    }
  }

  &:not(.operator-menu-box-expand) {
    .operator-menu-item {
      width: 100%;
      height: 68px;
      font-size: 12px;
      position: relative;
      cursor: pointer;
      margin-top: 2px;

      &:first-child {
        margin-top: 0px;
      }

      .operator-label {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        grid: 4px;
        color: rgb(var(--hy-main));
      }

      &.operator-menu-item-active {
        &::after {
          content: '';
          display: block;
          width: 2px;
          height: 100%;
          position: absolute;
          left: 0;
          top: 50%;
          transform: translateY(-50%);
          border-radius: 10px;
          background-color: rgba(var(--hy-theme));
        }
        .operator-label {
          font-weight: bold;
        }
      }
    }

    .operator-menu-item-active,
    .operator-menu-item:hover {
      &::before {
        content: '';
        display: block;
        width: 100%;
        height: 100%;
        position: absolute;
        left: 0;
        top: 0;
        background: linear-gradient(
          90deg,
          rgba(var(--hy-theme), 0) 2%,
          rgba(var(--hy-theme), 0.4) 100%
        );
        //border-radius: 0px 4px 4px 0px;
      }
    }
  }
}
