.resource-item {
  position: relative;
  width: calc(25% - 15px);
  padding: 20px;
  background: white;
  border: 1px solid #eaeaea;
  border-radius: 4px;
  cursor: pointer;

  @media screen and (max-width: 1860px) and (min-width: 1601px) {
    & {
      width: calc(33.33% - 13.33px);
    }
  }

  @media screen and (max-width: 1600px) {
    & {
      width: calc(50% - 10px);
    }
  }

  &:hover {
    border-color: @primary-color;
    box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.1);
  }

  &__name {
    position: relative;
    display: inline-block;
    height: 24px;
    margin: 0 10px 0 0 !important;
    color: @text-color;
    font-weight: 500;
    font-size: 16px;

    &::after {
      position: absolute;
      top: 14px;
      left: 0;
      width: 100%;
      height: 6px;
      background: linear-gradient(
        to right,
        .addAlpha(@primary-color, 0.3) [] 0,
        .addAlpha(@primary-color, 0) [] 100%
      );
      content: '';
    }
  }

  &:hover &__name {
    color: @primary-color;
  }

  &__description {
    height: 44px;
    margin-bottom: 20px;
    color: @text-color-secondary;
    font-size: 14px;
    .multiLine(2);
  }
  &__time {
    display: flex;
    align-items: center;
    min-width: 0;
    color: @text-color-tertiary;
    font-size: 13px;

    &__separator {
      width: 1px;
      height: 9px;
      margin: 0 8px;
      background-color: rgba(205, 206, 209, 0.5);
    }

    &__praise {
      margin-left: 4px;
    }
  }
}
