@import url("./common/global_crumb.css");

/* ========== 合作伙伴证书查询（/certquery/index） ========== */
/* 布局与样式对齐序列号查询页 permit_query.css */

.banner--container {
  position: relative;
  z-index: 1;
}

.banner__image {
  display: block;
  width: 100%;
  height: auto;
}

.banner--inner {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  -webkit-transform: translateY(-50%) translateX(-50%);
  transform: translateY(-50%) translateX(-50%);
  width: 14.4rem;
}

.banner__title {
  font-size: 0.42rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 0.59rem;
}

.certquery--container {
  width: 14.4rem;
  margin: 0.8rem auto 0.78rem;
}

.certquery__form--container {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.86rem;
}

.certquery__form--inner {
  flex: 1;
}

.certquery__description {
  width: 6.36rem;
}

.certquery__description-title {
  margin-bottom: 0.1rem;
  font-size: 0.18rem;
  line-height: 0.25rem;
  color: #1d1d1d;
  font-weight: bold;
}

.certquery__description-content {
  color: #4e4e4e;
  font-size: 0.16rem;
  line-height: 0.3rem;
  text-align: justify;
  text-justify: distribute;
}

/* 证书类型下拉（form.css 隐藏原生 select，由 nice_select 渲染） */
.certquery__form--inner .nice-select {
  width: 100%;
}

.captcha--container {
  display: flex;
  align-items: center;
}

.q-input.captcha {
  width: 1.8rem;
  margin-right: 0.1rem;
}

.form__action {
  display: flex;
  padding-left: 1.14rem;
}

.btn__submit,
.btn__reset {
  width: 1.4rem;
  height: 0.46rem;
  border: 1px solid #0032b4;
  text-align: center;
  font-size: 0.16rem;
  line-height: 0.46rem;
  cursor: pointer;
  user-select: none;
}

.btn__submit {
  margin-right: 0.12rem;
  background-color: #0032b4;
  color: #fff;
}

.btn__submit.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn__reset {
  background-color: #fff;
  color: #1842b3;
}

/* ========== 查询结果区域（表格展示，样式对齐序列号查询结果表格） ========== */

.certquery-result {
  width: 100%;
  margin-top: 0.7rem;
}

.certquery-result__hd {
  margin-bottom: 0.2rem;
}

.certquery-result__title {
  font-size: 0.24rem;
  font-weight: bold;
  line-height: 0.33rem;
}

.certquery-result__bd {
  border: 1px solid #c0c0c0;
}

.certquery-result__inner {
  width: 100%;
}

.certquery-result__thead,
.certquery-result__row {
  display: flex;
}

.certquery-result__thead {
  padding: 0 0.2rem;
  background-color: #f2f4f8;
  border-bottom: 1px solid #c0c0c0;
  white-space: nowrap;
}

.certquery-result__column {
  flex: 1;
  min-width: 1.2rem;
  padding-top: 0.14rem;
  padding-bottom: 0.14rem;
  padding-right: 0.2rem;
  line-height: 0.22rem;
  word-break: break-all;
  text-align: center;
}

.certquery-result__thead .certquery-result__column {
  color: #1d1d1d;
  font-size: 0.18rem;
  font-weight: bold;
}

.certquery-result__row .certquery-result__column {
  color: #4e4e4e;
  font-size: 0.16rem;
}

/* 状态语义色：有效=绿 已过期=橙 作废/未匹配=红 */
.certquery-result__status.valid {
  color: #1a8c1a;
}

.certquery-result__status.expired {
  color: #e8852c;
}

.certquery-result__status.revoked {
  color: #b51d1d;
}

.certquery-result__status.notmatch {
  color: #b51d1d;
}

/* ========== loading ========== */

.loading {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10000000;
  background: url('https://static01-www.qianxin.com/qaxweb/14325bb6a9f955929aeb00b38103812b.gif')
    no-repeat 50% 50%;
  background-size: 0.72rem 0.72rem;
}

/* ========== 移动端响应式（≤768px） ========== */

@media screen and (max-width: 768px) {
  .banner--inner {
    left: 0.32rem;
    right: 0.32rem;
    -webkit-transform: translateX(0) translateY(-50%);
    transform: translateX(0) translateY(-50%);
    width: auto;
  }

  .banner__title {
    font-size: 0.48rem;
    line-height: 0.67rem;
  }

  .certquery--container {
    box-sizing: border-box;
    width: 100%;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0.6rem 0.32rem 1.05rem;
  }

  .certquery__form--inner {
    display: block;
    width: 100%;
  }

  .certquery__form--container {
    flex-direction: column;
  }

  .form__item {
    display: block;
    margin-bottom: 0.4rem;
  }

  .form__label {
    margin-bottom: 0.28rem;
    font-size: 0.34rem;
    line-height: 0.48rem;
  }

  ::-webkit-input-placeholder,
  ::-moz-placeholder {
    font-size: 0.28rem;
  }

  .q-input {
    display: block;
    height: 0.8rem;
    padding-right: 0.3rem;
    padding-left: 0.3rem;
    font-size: 0.28rem;
  }

  .q-input.captcha {
    width: 4.2rem;
    height: 0.8rem;
    margin-right: 0.18rem;
  }

  .form__captcha {
    width: 1.8rem;
    height: 0.8rem;
  }

  .certquery__form--inner .nice-select {
    height: 0.8rem;
    font-size: 0.28rem;
    line-height: 0.8rem;
  }

  .certquery__form--inner .nice-select .list {
    font-size: 0.28rem;
  }

  .certquery__form--inner .nice-select .option {
    line-height: 0.5rem;
    min-height: 0.5rem;
  }

  label.error {
    display: block;
    position: static;
    margin-top: 0.14rem;
    font-size: 0.28rem;
    line-height: 0.4rem;
  }

  .form__action {
    padding-top: 0.2rem;
    padding-left: 0;
  }

  .btn__submit,
  .btn__reset {
    flex: 1;
    height: 0.94rem;
    font-size: 0.32rem;
    line-height: 0.94rem;
  }

  .certquery__description {
    width: 100%;
    order: 1;
    margin-top: 1rem;
  }

  .certquery__description-title {
    margin-bottom: 0.3rem;
    font-size: 0.4rem;
    line-height: 0.56rem;
  }

  .certquery__description-content {
    font-size: 0.3rem;
    line-height: 0.5rem;
  }

  .certquery-result {
    margin-top: 1rem;
  }

  .certquery-result__title {
    font-size: 0.4rem;
    line-height: 0.56rem;
  }

  .certquery-result__hd {
    margin-bottom: 0.3rem;
  }

  /* 4 列在窄屏下横向滚动（对齐序列号查询结果表格的移动端方案） */
  .certquery-result__bd {
    position: relative;
    overflow-x: auto;
  }

  .certquery-result__bd::-webkit-scrollbar {
    width: 0.1rem;
    height: 0.1rem;
  }

  .certquery-result__bd::-webkit-scrollbar-track {
    background-color: #f1f1f1;
  }

  .certquery-result__bd::-webkit-scrollbar-thumb {
    background-color: #e1e4e9;
    border-radius: 0.08rem;
  }

  .certquery-result__inner {
    min-width: 9rem;
  }

  .certquery-result__thead {
    padding: 0;
  }

  .certquery-result__thead .certquery-result__column {
    padding: 0.18rem 0.2rem;
    font-size: 0.34rem;
    line-height: 0.48rem;
  }

  .certquery-result__row .certquery-result__column {
    padding: 0.3rem 0.2rem;
    font-size: 0.3rem;
    line-height: 0.42rem;
  }

  .captcha--container {
    flex-wrap: wrap;
  }

  .captcha--container label.error {
    width: 100%;
    order: 1;
  }
}