@import '../../app.less';

.g-block {
  border: 1px solid #E3E3E3;
  border-radius: 4px;
  margin-bottom: 10px;
  overflow: hidden;
  min-height: 100px;
}

.g-top-block {
  border-radius: 4px;
  background: #fff;
  margin-bottom: 15px;
  overflow: hidden;
  min-height: 100px;
  border: 1px solid #E3E3E3;
}

.g-top-block.default {
  border-top: 5px solid #41A6F3;
}

.g-top-block.not {
  border-top: 5px solid #7660A4;
}

.g-top-block.end {
  border-top: 5px solid #A7A7B7;
}

.g-tag-block {
  border-radius: 4px;
  background: #fff;
  margin-bottom: 10px;
  overflow: hidden;
  position: relative;
  min-height: 100px;
  border: 1px solid #E3E3E3;

  .g-tag-block-tag {
    height: 36px;
    border-top-right-radius: 18px;
    border-bottom-right-radius: 18px;
    position: absolute;
    top: -18px;
    left: 0;
    line-height: 20px;
    padding-top: 16px;
    padding-left: 10px;
    padding-right: 16px;
    color: #fff;
  }
}

.g-tag-block.default {
  .g-tag-block-tag {
    background: #41A6F3;
  }
}

.g-tag-block.not {
  .g-tag-block-tag {
    background: #7660A4;
  }
}

.g-tag-block.end {
  .g-tag-block-tag {
    background: #A7A7B7;
  }
}

.g-link-block {
  border: 1px solid #E3E3E3;
  border-radius: 4px;
  margin-bottom: 10px;
  overflow: hidden;
  height: 60px;
  line-height: 60px;
  padding: 0 14px;
  display: flex;

  .g-link-block-title {
    display: inline-block;
    color: #303036;
    font-size: 16px;
    font-weight: 600;
  }

  .g-link-block-sub {
    display: inline-block;
    color: #686872;
    font-size: 12px;
    text-align: center;
    flex: 1;
    margin-right: 10px;
  }

  .g-link-block-icon {
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    text-align: center;
    margin-top: 22px;
    line-height: 15px;
  }
}

.g-link-block.default {
  .g-link-block-icon {
    background: #41A6F3;
  }
}

.g-link-block.not {
  .g-link-block-icon {
    background: #7660A4;
  }
}

.g-link-block.end {
  .g-link-block-icon {
    background: #A7A7B7;
  }
}

.course-block {
  padding: 15px 20px;

  .title {
    color: #1A1A1F;
    font-size: 16px;
    margin-bottom: 15px;
    line-height: 16px;
  }

  .block-body {
    position: relative;

    .assets {
      width: 120px;
      height: 75px;
      position: absolute;
    }

    .info {
      padding-left: 130px;

      .teacher {
        font-size: 12px;
        color: #A7A7B7;
        margin-bottom: 5px;
        line-height: 12px;

        span {
          color: #1A1A1F;
          margin-left: 5px;
        }
      }

      .desc {
        font-size: 10px;
        color: #A7A7B7;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        margin-bottom: 5px;
      }

      .division {
        height: 1px;
        background: #D8D8D8;
        margin-bottom: 5px;
      }

      .data {
        .result {
          float: right;
          font-size: 12px;
          color: #A7A7B7;

          span {
            color: #7660A4;
            margin-left: 7px;
          }
        }
      }
    }
  }
}

.course-co-block {
  padding: 20px 20px 15px;

  .title {
    font-size: 16px;
    color: #1A1A1F;
    margin-bottom: 5px;
  }

  .info {
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    margin-bottom: 5px;

    .teacher {
      display: inline-block;
      font-size: 12px;
      color: #A7A7B7;
      margin-bottom: 5px;
      line-height: 12px;

      span {
        color: #1A1A1F;
        margin-left: 5px;
      }
    }

    .g-tag-wrapper {
      float: right;
    }
  }

  .desc {
    font-size: 12px;
    color: #686872;

  }
}

.data-block {
  padding: 10px 15px;
  position: relative;

  .assets {
    position: absolute;
    width: 75px;
    height: 80px;
  }

  .info {
    padding-left: 85px;

    .title {
      color: #1A1A1F;
      font-size: 16px;
      line-height: 16px;
      margin-bottom: 10px;
    }

    .desc {
      font-size: 10px;
      color: #A7A7B7;
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;
      margin-bottom: 5px;
    }

    .division {
      height: 1px;
      background: #D8D8D8;
      margin-bottom: 5px;
    }

    .data {
      .people {
        display: inline-block;
        font-size: 10px;
        color: #A7A7B7;
      }

      .g-money {
        float: right;
      }
    }
  }
}

.buy-block.end {

  .g-tag-wrapper {
    .g-tag {
      color: #A7A7B7;
      border-color: #A7A7B7;
    }
  }
}

.buy-block {
  padding-top: 25px;
  padding-left: 15px;
  padding-right: 15px;
  padding-bottom: 20px;

  .block-left {
    display: inline-block;

    .title {
      .g-tag-wrapper {
        margin-right: 5px;
      }

      margin-bottom: 4px;
      color: #303036;
      font-size: 16px;
    }

    .date {
      margin-bottom: 4px;
      font-size: 10px;
      color: #686872;
    }

    .desc {
      font-size: 10px;
      color: #686872;
    }
  }

  .block-right {
    float: right;
    padding-top: 5px;

    .btn {
      margin-bottom: 4px;
      text-align: right;

      .g-button {
        padding: 0 15px;
      }
    }

    .tip {
      font-size: 10px;
      color: #A7A7B7;
    }
  }
}