@import "../../../../style/index.less";

.button() {
  height: 28px;
  border-radius: 8px;
  border: 1px solid #787EFF;
  font-size: 14px;
  font-weight: 400;
  color: #787EFF;
  line-height: 16px;
  &:first-child {
	margin-right: 8px;
  }
}
.card-container() {
  margin: 0 16px 10px;
  padding: 20px;
  background: #FFFFFF;
  box-shadow: 0px 5px 25px 0px rgba(0,0,0,0.07);
  border-radius: 14px;
}
.card-title(@marginBottom) {
  margin-bottom: @marginBottom;
  font-size: 18px;
  font-weight: 600;
  color: #242629;
  line-height: 24px;
}
.card-desc(@marginBottom, @lineHeight: 22px) {
  margin-bottom: @marginBottom;
  font-size: 14px;
  font-weight: 400;
  color: #999999;
  line-height: @lineHeight;
}
.card-head() {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  span:first-child {
	font-size: 18px;
	font-weight: 600;
	color: #242629;
	line-height: 24px;
  }
  span:last-child {
	font-size: 12px;
    font-weight: 400;
    color: #787EFF;
    line-height: 24px;
  }
  .svg-icon {
  	padding: 4px 0;
  	width: 16px;
  	height: 16px;
  }
}
.card-body(@marginBottom: 0) {
  margin-bottom: @marginBottom;
  div {
    display: flex;
    justify-content: space-between;
  	span:first-child {
  	  font-size: 12px;
	  font-weight: 400;
	  color: #666666;
	  line-height: 24px;
  	}
	span:last-child {
  	font-size: 12px;
	  font-weight: 600;
	  color: #333333;
	  line-height: 24px;
  	}
  }
}
.report {
  position: relative;
  background: #F6F6F6;
  &:before {
  	position: absolute;
  	width: 375px;
    height: 194px;
    border: 0;
  	content: '';
  	background: linear-gradient(0deg, #F1F1F1 0%, #FFC842 100%);
  }
  &:after {
  	position: absolute;
  	top: 38px;
  	right: 0;
  	width: 36px;
  	height: 19px;
  	content: '';
  	background: url('../../../../assets/images/policy/detail/point@2x.png') no-repeat 0 0 /cover;
  }

  &-container {
  	position: absolute;
  	left: 0;
  	right: 0;
  	&-head {
      display: flex;
      margin: 39px 0 32px 16px;
      .Rc-head-left {
        margin-right: 16px;
        width: 50px;
        height: 50px;
      }
      .Rc-head-right {
        display: flex;
        flex-direction: column;
        align-items: space-between;
        color: #242629;
        line-height: 24px;
        p:first-child {
          font-size: 12px;
        }
        p:last-child {
          font-size: 20px;
          font-weight: 600;
        }
      }
    }
    &-degree {
      .card-container();
      .Rc-degree-title {
        .card-title(24px);
        span {
          color: #FF6702;
        }
      }
      .Rc-degree-progress {
        margin-bottom: 4px;
        @{deep} .cr-progress__track {
          height: 12px;
          border-radius: 6px;
          background-color: #f4f4f4;
          .cr-progress__progress {
            background: linear-gradient(270deg, #ffe677 0%, #ffc842 100%);
            border-radius: 6px;
          }
        }
      }
      .Rc-degree-pointer {
        margin-bottom: 11px;
        display: flex;
        justify-content: space-around;
        font-size: 11px;
        font-weight: 400;
        color: #CCCCCC;
        line-height: 22px;
      }
      .Rc-degree-desc {
        .card-desc(0);
      }
    }

    &-analyze {
      .card-container();
      .Rc-analyze-title {
        .card-title(12px);
      }
      .Rc-analyze-desc {
        .card-desc(0);
      }
      .Rc-analyze-image {
        display: flex;
        justify-content: center;
        margin: 10px 20px;
        height: 255px;
      }
    }
    &-plan {
      .card-container();
      .Rc-plan-title {
        .card-title(12px);
      }
      .Rc-plan-advice {
        .card-desc(7px);
      }
      .Rc-plan-priority {
        display: flex;
        justify-content: space-around;
        align-items: center;
        margin-bottom: 18px;
        height: 49px;
        background: #F4F4F4;
        border-radius: 14px;
        font-size: 16px;
        font-weight: 600;
        color: #242629;
        line-height: 24px;
      }
      .Rc-plan-desc {
        .card-desc(23px);
      }
      .Rc-plan-card {
        overflow: hidden;
        margin: 0 -12px 10px;
        background: #F4F4F4;
        border-radius: 10px;
        .Rcp-card-head {
          display: flex;
          align-items: center;
          align-items: center;
          margin: 14px 0 16px 0;
          .Rcpc-head-left {
            margin-right: 9px;
            width: 49px;
            height: 25px;
          }
          .Rcpc-head-right {
            width: 258px;
            font-size: 12px;
            font-weight: 400;
            color: #999999;
            line-height: 16px;
          }
        }
        .Rcp-card-body {
          margin: 0 14px 20px;
          padding: 13px 16px;
          background: #FFFFFF;
          box-shadow: 0px 5px 25px 0px rgba(0,0,0,0.07);
          border-radius: 8px;
          .Rcpc-body-title {
            .card-title(6px);
          }
          .Rcpc-body-desc {
            .card-desc(3px, 16px);
          }
          .Rcpc-body-opera {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            .Rcpcb-opera-left {
              font-size: 12px;
              font-weight: 400;
              color: #999999;
              line-height: 16px;
              span {
                font-size: 20px;
                font-weight: bold;
                color: #F94C4C;
                line-height: 22px;
              }
            }
            .Rcpcb-opera-right {
              width: 99px;
              height: 36px;
              background: #FFC842 !important;
              border-radius: 8px !important;
              font-size: 12px;
              font-weight: 600;
              color: #333333;
              line-height: 17px;
            }
          }
        }
      }
    }
    &-retest {
      box-sizing: border-box;
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin: 20px auto 127px;
      padding: 0 19px;
      width: 130px;
      height: 40px;
      border-radius: 8px;
      border: 1px solid #DDD8D8;
      .Rc-retest-svg {
        width: 18px;
        height: 18px;
      }
      .Rc-retest-text {
        font-size: 16px;
        font-weight: 400;
        color: #333333;
        line-height: 22px;
      }
    }
    .report-container-explain {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      width: 343px;
      height: 76px;
      margin: 0 auto 24px;
      background: url('../../../../assets/images/home/explain@2x.png') no-repeat center/contain;
    }
  }
}