.side-toolbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
  padding: 20px 0;
  color: var(--font-main);
  user-select: none;

  .menu {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;

    &-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      margin: 6px 0;
      line-height: 1.2;
      text-align: center;

      &-name {
        margin-top: 4px;
        font-size: 12px;
        white-space: nowrap;
      }
    }
  }

  // 语雀图标不标准，需要特殊处理
  .icon-yuque {
    width: 30px;
    height: 30px;
    font-size: 23px !important;
    line-height: 28px;
    background: #fff;
    border-radius: 50%;
  }

  .icon-qcloud {
    font-size: 23px !important;
  }

  .icon-zhankai {
    display: none;
  }
}

.icon-wechat-qrcode {
  width: 200px;
}

@media only screen and (max-width: 640px) {
  .side-toolbar {
    flex-direction: row;
    width: 100%;
    height: 44px;
    padding: 0 16px;
    margin-top: 16px;

    .menu {
      flex-direction: row;
      justify-content: flex-start;
      margin: 0 8px;
      overflow-y: auto;

      &-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 0 8px;
        line-height: 1.2;
        text-align: center;
      }
    }

    .mallchatcolor {
      display: block;
      font-size: 23px !important;
      line-height: 28px;
    }

    .icon-zhankai {
      display: block;
    }

    .icon-yuque {
      width: 23px;
      height: 23px;
      font-size: 18px !important;
    }

    ::-webkit-scrollbar {
      width: 1px;
      height: 1px;
    }

    ::-webkit-scrollbar-thumb {
      background-color: var(--background-2);
    }

    ::-webkit-scrollbar-track {
      background-color: var(--background);
    }
  }
}

.tool-icons {
  display: flex;
  flex-direction: column;
  row-gap: 8px;
  margin-top: 16px;
}

.tool-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
}

.tool-icon-active {
  color: var(--color-primary);
  background-color: var(--background-secondary);
  border-radius: 8px;
  transition: background-color 0.3s;

  &:hover {
    background-color: var(--background-secondary);
  }
}
