/* 查询 */
.query_inside {
  max-width: 1400px;
  padding: 20px 0;
  margin: 0 auto;
  background-color: var(--main-color-white);
  box-sizing: border-box;
}

.query_box {
  width: 700px;
  margin: 50px auto;
}

.query_box .tit h2 {
  width: 100%;
  background-color: #c3282e;
  height: 90px;
  line-height: 90px;
  text-align: center;
  font-size: 30px;
  color: #fff;
  border-radius: 8px 8px 0 0;
}

.form_box {
  width: 100%;
  border-radius: 0 0 8px 8px;
  background: #fff;
  box-shadow: 0 5px 5px rgba(0, 0, 0, .2);
  padding-top: 45px;
  padding-bottom: 45px;
}

#query_form {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
}

.form_item {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
}

.form_item input {
  width: 370px;
  line-height: 50px;
  box-sizing: border-box;
  padding: 0 10px;
  border: solid 1px #ccc;
  border-radius: 6px;
  font-size: 16px;
}

.form_item label {
  width: 70px;
  line-height: 50px;
  font-weight: 600;
  margin-right: 10px;
  text-align: right;
}

.form_item_btn button {
  width: 120px;
  height: 40px;
  border: none;
  margin: 0 10px;
  border-radius: 6px;
  background-color: #e97531;
  color: #fff;
  margin-top: 20px;
  cursor: pointer;
  font-size: 16px;
}

.query_ts {
  margin-top: 45px;
  color: #9f9f9f;
  font-size: 14px;
  line-height: 25px;
  padding: 0 40px;
}

.query_ts h4 {
  color: #c3282e;
  font-size: 16px;
  margin-bottom: 10px;
}

@media screen and (max-width: 1400px) {
  .query_inside {
    width: 100%;
  }
}

@media screen and (max-width: 670px) {
  .query_box {
    width: calc(100% - 30px);
    margin: 50px auto 90px;
  }

  .form_item {
    padding: 0 20px;
    margin: 0 auto 20px;
    flex-wrap: wrap;
    flex-direction: column;
  }

  .form_item label,
  .form_item input {
    width: 100%;
  }

  .form_item label {
    text-align: left;
    margin: 0;
  }

  .query_box .tit h2 {
    height: 80px;
    line-height: 80px;
    font-size: 20px;
    font-weight: 600;
  }

  .query_ts {
    padding: 0 20px;
  }
}

/* 查询结果 */
.search_tit {
  width: 100%;
  line-height: 50px;
  background-color: #c3282e;
  text-align: center;
  color: #fff;
  font-size: 17px;
}

.search_rs {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
}

.search_rs table {
  width: 100%;
  border-collapse: collapse;
}

.search_rs tr,
.search_rs td {
  height: 50px;
}

.search_rs td {
  width: 50%;
}

@media screen and (max-width: 768px) {
  .search_rs tr,
  .search_rs td {
    height: 40px;
    font-size: 14px;
  } 
    
  .search_rs tr td:nth-child(odd) {
    width: 40%;
  }
  
  .search_rs tr td:nth-child(even) {
    width: 60%;
  }
}

.search_rs tr {
  border-bottom: 1px solid #eaeaea;
  text-align: left;
}

.search_rs tr:last-child {
  border-bottom: none;
}

.search_rs tr:nth-child(odd) {
  background-color: #f8f8f8;
}

.search_rs tr:first-child {
  background: none;
}

.search_rs td:nth-child(odd) {
  text-align: right;
}

.rs_img {
  width: 100%;
  padding: 20px 0;
  text-align: center;
}

.rs_img img {
  max-width: 120px;
}

.search_rs tr:last-child,
.search_rs tr:last-child td{
  height: 50px;
}

@media screen and (max-width: 768px) {
  .search_rs tr:last-child,
  .search_rs tr:last-child td{
    height: 50px;
  }
}

#show_cert {
    display: inline-block;
    width: 120px;
    height: 40px;
    border-radius: 5px;
    text-align: center;
    line-height: 40px;
    background: #c3282e;
    color: #fff;
}


/* 证书图片详情 */
#cert_img {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999999;
  width: 100vw;
  height: 100vh;
  /* background: rgba(0, 0, 0, .8); */
  background-color: #fff;
}

.cert_tit {
  width: 100%;
  text-align: center;
  padding-top: 10px;
  margin-bottom: 30px;
}

.cert_tit h3 {
  font-size: 22px;
  line-height: 60px;
}

.cert_tit h5 {
  font-size: 18px;
  line-height: 1;
}

.cert_wrapper {
  width: 100%;
  height: 100vh;
  overflow-y: auto;
}

.cert_info {
  width: 570px;
  margin: 0 auto;
}

#close_cert2 {
  width: 120px;
  height: 36px;
  text-align: center;
  line-height: 36px;
  background-color: #ff9422;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  margin: 30px auto;
}

@media screen and (max-width: 610px) {
  .cert_info {
    width: 90%;
  }
}

@media screen and (max-width: 1024px) {

  .cert_header,
  .cert_footer {
    display: none;
  }

  .cret_body {
    min-height: 100vh;
  }
  
}

.no_result {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.no_result_info {
  font-size: 50px;
  text-align: center;
}

.no_result .return_query {
  display: block;
  width: 110px;
  line-height: 36px;
  text-align: center;
  background: #ff9422;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  margin: 30px auto;
}

.show_message {
  box-sizing: border-box;
  width: 320px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  box-shadow: 0 0 20px rgba(200, 200, 200, 0.5);
  font-size: 16px;
  text-align: center;
  border-radius: 5px;
  padding: 24px 20px;
}

.show_message p {
  box-sizing: border-box;
  width: 100%;
  font-size: 16px;
  margin-bottom: 20px;
}

.show_message .close_show {
  width: 80px;
  height: 32px;
  border-radius: 4px;
  border: none;
  background-color: #3b9dee;
  color: #fff;
  cursor: pointer;
}