@import './common.less';

.body_evaluating {
  background-color: @bodyBgColor;
}
#app {
  width: 100vw;
  height: 100vh;
  max-width: 560px;
  margin: 0 auto;
  .assess-container {

    
    // 错题title
    .book-title-container {
      width: 100%;
      height: .convertCalc(270)[@rem];
      padding: .convertCalc(20)[@rem];
      box-sizing: border-box;
      .book-title {
        background-color: #fff;
        box-shadow: 6px 0px 20px 0px rgba(199,199,199,0.5);
        border-radius: .convertCalc(16)[@rem];
        height: .convertCalc(230)[@rem];
        padding: .convertCalc(28)[@rem] .convertCalc(23)[@rem];
        box-sizing: border-box;
        display: flex;
        justify-content: space-between;
        .book-title-img {
          height: .convertCalc(174)[@rem];
          width: .convertCalc(158)[@rem];
          margin-right: .convertCalc(22)[@rem];
          .img-container {
            padding: .convertCalc(6)[@rem];
            width: .convertCalc(145)[@rem];
            box-shadow: 6px 0px 20px 0px rgba(199,199,199,0.5);
            border-radius: .convertCalc(16)[@rem];
            height: 100%;
            overflow: hidden;
            img {
              width: 100%;
              height: 100%;
            }
          }
        }
        .book-title-info {
          flex: 1;
          h2 {
            padding-top: .convertCalc(12)[@rem];
            font-size: .convertCalc(28)[@rem];
            line-height: .convertCalc(40)[@rem];
            color: @primaryTextColor;
          }
          h6 {
            margin-top: .convertCalc(8)[@rem];
            font-size: .convertCalc(24)[@rem];
            line-height: .convertCalc(32)[@rem];
            color: @minorTextColor;
            font-weight: normal;
          }
          p {
            color: @primaryErrorColor;
            margin-top: .convertCalc(35)[@rem];
            font-size: .convertCalc(22)[@rem];
            line-height: .convertCalc(30)[@rem];
          }
        }
      }
    }
    // 评测title
    .chapter-title {
      background: linear-gradient(180deg, #f7f5f5 0%, #ffffff 100%);
      padding: .convertCalc(21)[@rem] .convertCalc(30)[@rem] .convertCalc(15)[@rem];
      margin-bottom: .convertCalc(20)[@rem];
      .section {
        .wordWrap();
        line-height: .convertCalc(48)[@rem];
        font-size: .convertCalc(30)[@rem];
        color: @primaryTextColor;
      }
      .minor {
        .wordWrap();
        line-height: .convertCalc(48)[@rem];
        font-size: .convertCalc(26)[@rem];
        color: @minorTextColor;
        padding-left: .convertCalc(88)[@rem];
      }
    }

    // 题目内容
    .assess-options-list {
      padding: .convertCalc(14)[@rem] .convertCalc(30)[@rem];
      background-color: #fff;
      padding-bottom: .convertCalc(98)[@rem];
      &.wrong {
        padding: 0;
        .assess-option-item {
          padding: 0;
          border-bottom: none;
        }
      }
      .assess-chapter-wrong {
        padding: .convertCalc(28)[@rem];
        .assess-chapter-wrong-item {
          margin-bottom: .convertCalc(65)[@rem];
        }
      }
      .assess-option-item {
        padding: .convertCalc(30)[@rem] 0;
        border-bottom: 1px solid #f2f2f2;
        &:last-child {
          border-bottom: none;
        }
        // 错题item title
        .assess-chapter-title {
          border-bottom: 1px solid #F2F2F2;
          h4 {
            padding: .convertCalc(17)[@rem] .convertCalc(28)[@rem];
            font-size: .convertCalc(26)[@rem];
            line-height: .convertCalc(37)[@rem];
            color: @primaryTextColor;
          }
        }
        .assess-title {
          .assess-title-header {
            color: @primaryTextColor;
            font-size: .convertCalc(28)[@rem];
            line-height: .convertCalc(46)[@rem];
            span {
              vertical-align: top;
              line-height: .convertCalc(46)[@rem];
              font-size: .convertCalc(28)[@rem];
            }
            .question {
              img {
                max-width: 80vw !important;
                max-height: 10vh !important;
                width: auto !important;
                height: 100% !important;
              }
              p, div, h1, h2, h3, h4, h5, h6 {
                display: inline-block;
              }
            }
            .question-fill-container {
              font-size: 0;
              .question-fill {
                .fill-text-input {
                  display: none;
                  font-size: 0;
                }
                .fill-text {
                  // border-bottom: 1px solid #3d3d3d;
                  padding: 0 5px;
                  display: inline-block;
                  min-width: 30px;
                  outline: none;
                  color: #333;
                  width: auto;
                  user-select: auto;
                  -webkit-user-select: auto;
                  // text-decoration: underline;
                  line-height: .convertCalc(40)[@rem];
                  border-bottom: 1px solid #404040;
                }
              }
            }
          }
        }
        .assess-chooice {
          padding-top: .convertCalc(25)[@rem];
          .assess-chooice-item {
            font-size: .convertCalc(28)[@rem];
            line-height: .convertCalc(40)[@rem];
            margin: .convertCalc(15)[@rem] 0;
            color: @minorTextColor;
            label {
              display: flex;
              align-items: flex-start;
              .ico_icon {
                flex: 0 0 .convertCalc(40)[@rem];
                width: .convertCalc(40)[@rem];
              }
              .option-correct {
                flex: 1;
                overflow-x: hidden;
                display: flex;
                vertical-align: top;
                .correct-a {
                  flex: 0 0 .convertCalc(40)[@rem];
                  width: .convertCalc(40)[@rem];
                }
                .correct-b {
                  flex: 1;
                  p, div, h1, h2, h3, h4, h5, h6 {
                    display: inline;
                  }
                  img {
                    max-width: 100%;
                    max-height: 10vh;
                  }
                }
              }
            }
            .ico_icon {
              flex: 0 0 .convertCalc(40)[@rem];
              width: .convertCalc(40)[@rem];
              height: .convertCalc(30)[@rem];
              display: block;
              padding-top: .convertCalc(4)[@rem];
              .ico {
                display: block;
                width: .convertCalc(30)[@rem];
                height: .convertCalc(30)[@rem];
                margin-right: .convertCalc(16)[@rem];
                background-size: .convertCalc(30)[@rem] .convertCalc(30)[@rem];
                background-repeat: no-repeat;
                &.radio {
                  .background-image-mixin(@base-url, "icon_radio_normal")
                }
                &.radio.active {
                  .background-image-mixin(@base-url, "icon_radio_active")
                }
                &.checkbox {
                  .background-image-mixin(@base-url, "icon_checkbox_normal")
                }
                &.checkbox.active {
                  .background-image-mixin(@base-url, "icon_checkbox_active")
                }
              }
            }
            
          }
        }
        // 简答文本
        .assess-textarea {
          .assess-textarea-item {
            margin-top: .convertCalc(22)[@rem];
            padding: .convertCalc(16)[@rem] .convertCalc(22)[@rem];
            background-color: #f8f8f8;
            textarea {
              color: #666;
              font-size: .convertCalc(24)[@rem];
              line-height: .convertCalc(32)[@rem];
              min-height: .convertCalc(140)[@rem];
              border: none;
              resize: none;
              background: #f8f8f8;
              width: 100%;
            }
          }
        }
      }

      // error
      .error-message {
        margin-top: .convertCalc(20)[@rem];
        height: .convertCalc(52)[@rem];
        line-height: .convertCalc(52)[@rem];
        font-size: .convertCalc(24)[@rem];
        color: @primaryTextColor;
        background-color: #ffecec;
        padding: 0 .convertCalc(20)[@rem];
        display: flex;
        align-items: center;
        .error {
          width: .convertCalc(24)[@rem];
          height: .convertCalc(24)[@rem];
          display: block;
          background-size: .convertCalc(24)[@rem] .convertCalc(24)[@rem];
          .background-image-mixin(@base-url, "icon_form-error");
          margin-right: 5px;
        }
      }

      // 评测结果
      .assess-result {
        padding: .convertCalc(20)[@rem];
        margin-top: .convertCalc(10)[@rem];
        &.red {
          background-color: #f8f8f8;
          .correct {
            strong {
              color: @primaryErrorColor;
            }
          }
        }
        .correct {
          font-size: .convertCalc(26)[@rem];
          line-height: .convertCalc(34)[@rem];
          color: #333;
          span {
            p,div,h1,h2,h3,h4,h5,h6 {
              display: inline;
            }
            br {
              display: none;
            }
          }
        }
        .analysis {
          font-size: .convertCalc(26)[@rem];
          line-height: .convertCalc(34)[@rem];
          color: #333;
          margin-top: .convertCalc(6)[@rem];
        }
      }
    }

    /* 提交 */
    .assess-fixed-bottom {
      background: #FFFFFF;
      box-shadow: 4px 0px 5px 0px rgba(224,224,224,0.5);
      position: fixed;
      bottom: 0;
      left: 0;
      width: 100vw;
      height: .convertCalc(98)[@rem];
      box-sizing: border-box;
      padding: .convertCalc(14)[@rem] .convertCalc(30)[@rem];
      display: flex;
      justify-content: space-between;
      .item {
        flex: 1;
        a {
          display: block;
          width: 100%;
          height: .convertCalc(70)[@rem];
          line-height: .convertCalc(70)[@rem];
          box-sizing: border-box;
          text-align: center;
          border-radius: .convertCalc(70/2)[@rem];
          font-size: .convertCalc(26)[@rem];
        }
        &.cancel {
          padding-right: .convertCalc(10)[@rem];
          a {
            color: #999;
            border: 1px solid #999;
          }
        }
        &.confirm {
          padding-left: .convertCalc(10)[@rem];
          a {
            background-color: rgba(171,25,65,0.1);
            color: @primaryErrorColor;
          }
        }
      }
    }
  }
}
