@import '@/styles/common.less';
@import '@/styles/variables.less';

.anchor-card {
  width: 100%;
  .flex-row();
  align-items: flex-start;
  padding: 24px;
  box-sizing: border-box;
  background: #FFFFFF;

  .color(@defaultColor) {
    color: var(--read-color, @defaultColor);
  }

  &__cover {
    position: relative;
    width: 188px;
    min-width: 188px;
    max-width: 188px;
    height: 242px;
    min-height: 242px;
    max-height: 242px;
    border-radius: 12px;
  }

  &__cover-skeleton {
    position: absolute;
    border-radius: 12px;
  }

  &__info-container {
    height: 100%;
    flex: 1;
    .flex-row();
    align-items: flex-start;
    margin-left: 24px;
  }

  &__info {
    height: 100%;
    flex: 1;
    .flex-column();
    align-items: flex-start;
    margin-right: 10px;

    &__title {
      font-size: 32px;
      line-height: 32px;
      font-weight: 500;
      .color(@blColor);
    }

    @maxTextWidth: 49vw;

    &__basic {
      max-width: @maxTextWidth;
      font-size: 24px;
      line-height: 36px;
      font-weight: 400;
      .color(@blColorG2);
      margin-top: 16px;
      .noWrap();
    }

    &__categories {
      max-width: @maxTextWidth;
      font-size: 24px;
      line-height: 36px;
      font-weight: 400;
      .color(@blColorG2);
      margin-top: 12px;
      .noWrap();
    }

    &__year {
      max-width: @maxTextWidth;
      font-size: 24px;
      line-height: 36px;
      font-weight: 400;
      .color(@blColorG2);
      margin-top: 12px;
      .noWrap();
    }

    &__salary {
      max-width: @maxTextWidth;
      font-size: 28px;
      line-height: 40px;
      font-weight: 500;
      .color(@blHighlightColor);
      margin-top: 20px;
      .noWrap();
    }
  }

  &__right {
    height: 242px;
    .flex-column();
    justify-content: space-between;
    font-size: 24px;
    line-height: 32px;
    font-weight: 400;
    .color(@blColorG1);
  }

  &__distance-wrapper {
    .flex-row();
  }

  &__distance-icon {
    width: 28px;
    height: 28px;
    margin-right: 6px;
  }

  &__distance {
    font-size: 24px;
    line-height: 40px;
    font-weight: 400;
    .color(@blColorG1);
  }
}