#intelligent-recommend {
  background: linear-gradient(to right, #F1F0F6, #EBF4F9);
  padding: 59px 10px 18px;
  min-height: 100%;

  .clearfix {
    &::after {
      content: ".";
      visibility: hidden;
      display: block;
      height: 0;
      clear: both;
    }
  }

  .head {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 44px;
    padding: 0 15px;
    background: #fff;
    z-index: 100;

    & > div {
      display: flex;
      align-items: center;
    }

    .iconfont {
      font-size: 16px;
      color: #222;
      font-weight: 600;
    }

    .title {
      margin-left: 10px;
      font-size: 15px;
      color: #2b2b2b;
    }

    button {
      width: 84px;
      height: 30px;
      border: 1px solid #09f;
      border-radius: 15px;
      color: #09f;
      font-size: 13px;
      outline: 0;
      background-color: transparent;
      -webkit-appearance: none;
    }
  }

  .dialog-box {
    padding: 20px 15px 20px;
    margin-bottom: 20px;
    background: rgba(242, 247, 250, 1);
    border: 1px solid #5CF9FF;
    border-radius: 8px;

    .analyzing {
      color: #4f5c66;
      font-size: 12px;
      line-height: 48px;
      text-align: center;
    }
  }

  .message {
    .avatar {
      width: 10%;
      display: inline-block;
      margin-right: 14px;

      img {
        width: 30px;
        height: 30px;
        border-radius: 50%;
      }
    }

    .text {
      max-width: 85%;
      position: relative;
      padding: 13px 16px;
      display: inline-block;
      background: rgba(255, 255, 255, 1);
      border-radius: 4px;
      font-size: 16px;
      color: #333;
      text-align: left;
      line-height: 24px;
    }

    $angleSize: 8px;
    @mixin pseudo {
      content: '';
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      display: block;
      border-color: transparent;
      border-top: 6px solid transparent;
      border-bottom: 6px solid transparent;
    }


    &.system {
      .text::before {
        @include pseudo;
        left: -$angleSize;
        border-right: $angleSize solid #fff;
      }
    }

    &.user {
      .avatar {
        float: right;
        margin-right: 0;
      }

      .text {
        float: right;
        margin-right: 15px;
        background-color:rgba(0, 54, 255, .7);
        color: #fff;

        &::after {
          @include pseudo;
          right: -$angleSize;
          top: 18px;
          border-left: $angleSize solid rgba(0, 54, 255, .7);
        }
      }
    }

  }

  .message + .message {
    margin-top: 30px;
  }

  .options {
    position: relative;
    padding-top: 18px;
    margin-top: 15px;

    &::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 8px;
      background: url("./images/options-divide-line.png") no-repeat;
      background-size: contain;
    }

    li {
      margin-bottom: 15px;
      text-align: center;

      button {
        padding: 7px 30px;
        box-sizing: border-box;
        background: linear-gradient(90deg, rgba(0, 153, 255, 1) 0%, rgba(77, 184, 255, 1) 100%);
        border-radius: 4em;
        font-size: 16px;
        line-height: 24px;
        color: #fff;
        text-align: left;
        -webkit-appearance: none;
        outline: none;
        border: none;
      }

    }
  }

  .result {
    padding: 0 15px 30px;
    background: rgba(255, 255, 255, 1);
    border: 1px solid rgba(0, 153, 255, 1);
    border-radius: 8px;
    color: #333;

    & > .title {
      position: relative;
      color: #09f;
      font-size: 16px;
      text-align: center;
      line-height: 62px;
      @mixin pseudo {
        content: '';
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        display: block;
        width: 11px;
        height: 11px;
        background: url("./images/title-decorator.png") no-repeat;
        background-size: contain;
      }

      &::before {
        @include pseudo;
        left: 5%;
      }

      &::after {
        @include pseudo;
        right: 5%;
        transform: translateY(-50%) scale(-1);
      }
    }

    .subtitle {
      font-size: 18px;
      font-weight: 600;
    }

    .skill {
      font-size: 12px;
      line-height: 36px;
      white-space: pre-line;

      &.project {
        font-size: 14px;
      }
    }

    .salary {
      font-size: 18px;
      line-height: 2em;
      font-weight: 500;
      color: #FF2A00;
    }

    .obtained {
      margin-bottom: 20px;
    }

    .salary-section {
      margin-bottom: 20px;
    }

    .recommends {
      & > div:nth-child(1) {
        margin-bottom: 12px;
        font-size: 12px;
        color: #09f;
      }

      .cover {
        flex: 0 0 auto;
        width: 125px;
        height: 90px;
        margin-right: 10px;

        img {
          width: 100%;
          height: 100%;
        }
      }

      .course {
        display: flex;
        justify-content: space-between;
        margin-bottom: 20px;

        .info {
          flex: 1 1 auto;
          position: relative;
        }

        .title {
          width: 190px;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
          margin-bottom: 8px;
          font-size: 16px;
          line-height: 16px;
          font-weight: 500;
          color: #333;
        }

        .des {
          display: -webkit-box;
          /* autoprefixer: ignore next */
          -webkit-box-orient: vertical;
          -webkit-line-clamp: 2;
          margin-bottom: 5px;
          overflow: hidden;
          font-size: 11px;
          color: #4F5C66;
        }

        .bar {
          position: absolute;
          left: 0;
          bottom: 0;
          display: flex;
          justify-content: space-between;
          align-items: center;
          width: 100%;
          height: 24px;
          font-size: 0;

          a {
            display: inline-block;
            box-sizing: border-box;
            padding: 6px 14px;
            text-align: center;
            font-size: 12px;
            line-height: 12px;
            border-radius: 12px;
          }

          .contact {
            color: #fff;
            background-color: #09f;
            margin-right: 6px;
          }

          .register {
            color: #FF0000;
            border: 1px solid #FF0000;
          }

          .price {
            font-size: 15px;
            color: #FF2121;
            margin-right: 5px;
          }

          .old-price {
            font-size: 11px;
            color: #999;
            text-decoration: line-through;
          }

          .study {
            background-color: #09f;
            color: #fff;
            font-size: 12px;
          }
        }
      }
    }
  }
}