/* 基础布局 */
.question-form-box {
  padding-bottom: 30px;
  min-height: 100vh;
}
/* 问卷详情 */
.question-detail-main {
  margin-bottom: 40px;
}

.question-detail-title {
  margin-bottom: 30px;
  padding-top: 10px;
  text-align: center;
  font-size: 1.75em;
  font-weight: bold;
  line-height: 1.4;
}

.question-detail-title h2 {
  font-size: 24px;
  color: #333;
  font-weight: bold;
  line-height: 1.4;
}

.question-detail-attr {
  margin-bottom: 26px;
  padding-bottom: 18px;
  text-align: center;
  color: #999;
  line-height: 30px;
  border-bottom: 1px solid #E5E5E5;
}

.question-detail-attr .zjsj {
  display: inline-block;
}

.question-detail-attr span {
  margin: 0 20px;
  display: inline-block;
}

.question-detail-attr span b {
  font-weight: normal;
}

.question-detail-attr .zjzt b {
  display: inline-block;
  line-height: 24px;
  padding: 0 10px;
  border-radius: 4px;
  background: #f0f0f0;
  color: #808080;
}

.question-detail-attr .zjzt.ing b {
  color: #fff;
  background: #4C9DF8;
}

.question-detail-content {
  line-height: 2.2;
  font-size: 1.125em;
  color: #666;
  margin-bottom: 30px;
}

.question-content-box {
  padding: 30px;
  background: #F2F6FB;
  border-radius: 5px;
  color: #666;
}

/* 问卷表单 */
.question-form {
  margin-top: 15px;
  margin-bottom: 10px;
  padding: 0 20px;
  font-size: 1.125em;
}

.question-form .item + .item {
  margin-top: 20px;
}

.question-item {
  margin-bottom: 30px;
}

.question-item .item-title {
  font-size: 16px;
  color: #4c4c4c;
  font-weight: bold;
  padding: 10px 0;
  line-height: 28px;
  margin-bottom: 15px;
}

.question-item .item-title span {
  color: red;
  display: inline;
  float: none;
  background: none;
  margin-left: 5px;
}

/* 选项样式 */
.question-item .item-choice {
  margin-bottom: 15px;
  position: relative;
  padding-right: 300px;
}

.question-item .optiontxt {
  margin-bottom: 10px;
}

.question-item .optiontxt label {
  cursor: pointer;
  font-size: 16px;
  color: #828282;
}

.question-item .optiontxt input {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin: -2px 10px 0 10px;
}

.question-item .optiontxt input.addit{
  display:none !important;
  width:160px;
  height:28px;
  padding-left:5px;
  outline:none;
  border:1px solid ;
}

.question-item .optiontxt input:checked ~ .addit{
  display:inline-block !important;
}

.question-item .optiontxt input[type="radio"],
.question-item .optiontxt input[type="checkbox"] {
  margin-right: 8px;
  vertical-align: -2px;
}

/* 进度条 */
.question-item .progress {
  position: absolute;
  right: 0;
  top: 0;
  width: 280px;
  display: none;
}

.question-item .progress .bar {
  display: block;
  width: 150px;
  height: 6px;
  background: #eee;
  border-radius: 3px;
  overflow: hidden;
  float: left;
  margin-top: 8px;
}

.question-item .progress .bar i {
  display: block;
  height: 100%;
  background: #2354af;
  border-radius: 3px;
}

.question-item .progress .num {
  float: right;
  color: #666;
  font-size: 14px;
}

/* 文本输入区域 */
.question-item .item-input {
  position: relative;
}

.question-form textarea,
.question-item .layui-textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 100px;
  padding: 10px 15px;
  border: 1px solid #e1e1e1;
  border-radius: 2px;
  line-height: 1.8;
  color: #333;
  resize: vertical;
}

.question-item .layui-textarea:focus {
  border-color: #2354af;
}

/* 矩阵题样式 */
.matrix-question .question-thead,
.matrix-question .body-tr {
  display: flex;
  align-items: center;
  padding: 10px 0;
}
.matrix-question .td-01 {
  width: 200px;
}
.question-body .td-01 {
  display: flex;
  align-items: center;
}
.matrix-question .td-01 ~ div {
  display: flex;
  align-items: center;
  width: 180px;
}
.matrix-question .td-img {
  width: 96px;
  height: 54px;
}
.matrix-question .td-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: scale-down;
}
.matrix-question input {
  margin: 0;
}
.matrix-question b {
  margin: 0;
}

/* 验证码 */
.queston-captcha {
  padding: 0 20px;
  margin-bottom: 30px;
}

.queston-captcha dt {
  float: left;
  width: 80px;
  line-height: 40px;
  font-size: 16px;
  color: #333;
}

.queston-captcha dt .require {
  color: #d51f12;
}

.queston-captcha dd {
  margin-left: 80px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.queston-captcha .yzm-input {
  width: 200px;
  height: 40px;
  line-height: 40px;
  padding: 0 15px;
  border: 1px solid #e1e1e1;
  border-radius: 2px;
}

.queston-captcha .yzm-input:focus {
  border-color: #2354af;
}

.queston-captcha img {
  height: 40px;
  cursor: pointer;
}

/* 按钮组 */
.btn-group {
  text-align: center;
  padding: 0 20px;
  margin: 0 auto;
}

.btn-group input,
.btn-group .layui-btn {
  width: 160px;
  height: 48px;
  line-height: 48px;
  margin: 0 10px;
  padding: 0 30px;
  font-size: 1.375em;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s all;
}

.btn-group .btn-submit {
  color: #fff;
  background: #0668d5;
  border: none;
}

.btn-group .btn-submit:hover {
  background: #1e4b9b;
}

.btn-group .btn-reset {
  background: #D9EBFF;
  color: #568AC7;
  border: none;
}

.btn-group .btn-statistics {
  border: 1px solid #dddddd;
  color: #333;
  background: #fff;
}

.btn-group .btn-statistics:hover {
  background: #dceeff;
}

/* 辅助类 */
.question-form b {
  margin: 0 0 0 10px;
  font-weight: normal;
  display: none;
}

.question-form b.vote {
  width: 70px;
  margin-left: 0;
}

.question-form .is-show {
  /* display: inline-block; */
}

/* 响应式布局 */
@media (max-width: 1500px) {
  .container {
    width: 96%;
    min-width: 1200px;
  }
}

@media (max-width: 1280px) {
  .container {
    width: 96%;
    min-width: 960px;
  }
}

@media (max-width: 992px) {
  .container {
    width: 96%;
    min-width: 760px;
    padding: 20px;
  }

  .question-item .item-choice {
    padding-right: 0;
  }

  .question-item .progress {
    position: static;
    width: 100%;
    margin-top: 10px;
  }

  .question-item .progress .bar {
    width: 60%;
  }
}

@media (max-width: 768px) {
  .container {
    width: 96%;
    min-width: 0;
    padding: 15px;
  }

  .question-detail-title h2 {
    font-size: 20px;
  }

  .question-form {
    padding: 0;
  }

  .queston-captcha {
    padding: 0;
  }

  .queston-captcha dt {
    float: none;
    margin-bottom: 10px;
  }

  .queston-captcha dd {
    margin-left: 0;
  }

  .btn-group {
    padding: 0;
  }

  .btn-group .layui-btn {
    margin: 0 5px;
    padding: 0 20px;
  }
}

@media (max-width: 431px) {
  .container {
    padding: 10px;
  }

  .question-detail-title h2 {
    font-size: 18px;
  }

  .queston-captcha dd {
    flex-direction: column;
    align-items: flex-start;
  }

  .queston-captcha .yzm-input {
    width: 100%;
  }

  .btn-group .layui-btn {
    width: 100%;
    margin: 0 0 10px;
  }
}