/* 网站体检工具页 */

.audit-tool-page .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 输入区 ---------- */
.audit-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 10px;
  max-width: 760px;
}

.audit-form__input {
  flex: 1 1 320px;
  min-width: 0;
  height: 54px;
  padding: 0 18px;
  border: 2px solid rgba(255, 255, 255, .28);
  border-radius: 12px;
  background: rgba(255, 255, 255, .96);
  color: #14324b;
  font-size: 1rem;
}

.audit-form__input::placeholder {
  color: #8b9aa8;
}

.audit-form__input:focus {
  outline: none;
  border-color: #f07820;
  box-shadow: 0 0 0 3px rgba(240, 120, 32, .22);
}

.audit-form__submit {
  height: 54px;
  padding: 0 28px;
  white-space: nowrap;
}

.audit-form__submit[disabled] {
  opacity: .68;
  cursor: progress;
}

.audit-form__hint {
  margin: 0;
  font-size: .86rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, .66);
}

/* ---------- 结果区 ---------- */
.audit-result {
  margin-top: 30px;
  padding: 26px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(6, 32, 52, .22);
  color: #22384b;
}

.audit-result__head {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e4edf3;
}

.audit-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #0a3d63;
  color: #fff;
}

.audit-score strong {
  font-size: 1.9rem;
  line-height: 1;
}

.audit-score span {
  margin-top: 3px;
  font-size: .72rem;
  color: rgba(255, 255, 255, .7);
}

.audit-head-meta h2 {
  margin: 0 0 6px;
  font-size: 1.16rem;
  color: #0b2a43;
}

.audit-head-meta p {
  margin: 0;
  font-size: .84rem;
  color: #6c8296;
}

.audit-group {
  margin-top: 24px;
}

.audit-group h3 {
  margin: 0 0 10px;
  font-size: .95rem;
  font-weight: 700;
  color: #0b78bb;
  letter-spacing: .04em;
}

.audit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px dashed #e6eef4;
}

.audit-item:first-of-type {
  border-top: 0;
}

.audit-badge {
  flex: 0 0 auto;
  min-width: 58px;
  margin-top: 2px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: .74rem;
  font-weight: 700;
  text-align: center;
}

.audit-item--pass .audit-badge {
  background: #e7f6ee;
  color: #17795a;
}

.audit-item--warn .audit-badge {
  background: #fdf1e0;
  color: #99590c;
}

.audit-item--fail .audit-badge {
  background: #fdecea;
  color: #a62c21;
}

.audit-item--info .audit-badge {
  background: #eef3f7;
  color: #57708a;
}

.audit-item__text {
  min-width: 0;
  font-size: .9rem;
  line-height: 1.7;
}

.audit-item__text strong {
  color: #0b2a43;
}

.audit-item__value {
  margin-left: 8px;
  color: #466074;
  word-break: break-word;
}

.audit-item__text p {
  margin: 4px 0 0;
  color: #6c8296;
  font-size: .84rem;
}

.audit-result__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #e4edf3;
}

.audit-result__foot p {
  margin: 0;
  max-width: 520px;
  font-size: .85rem;
  color: #6c8296;
}

.audit-message {
  margin: 0;
  padding: 16px 18px;
  border-radius: 12px;
  font-size: .92rem;
}

.audit-message--pending {
  background: #eef6fb;
  color: #1a5c86;
}

.audit-message--error {
  background: #fdecea;
  color: #a62c21;
}

/* ---------- 四项说明表在窄屏改成卡片 ---------- */
@media (max-width: 760px) {
  .audit-result {
    padding: 18px;
  }

  .audit-result__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .audit-score {
    width: 76px;
    height: 76px;
  }

  .knowledge-table--audit {
    min-width: 0;
  }

  .knowledge-table--audit thead {
    display: none;
  }

  .knowledge-table--audit tbody,
  .knowledge-table--audit tr,
  .knowledge-table--audit td {
    display: block;
    width: auto;
  }

  .knowledge-table--audit tr {
    padding: 14px 16px 8px;
    border-top: 1px solid #e1e9ee;
    background: #fff !important;
  }

  .knowledge-table--audit tr:first-child {
    border-top: 0;
  }

  .knowledge-table--audit td {
    padding: 0 0 8px;
    border: 0;
    background: transparent !important;
    font-size: .88rem;
    line-height: 1.7;
  }

  .knowledge-table--audit td:nth-child(1) {
    color: #0b78bb;
    font-size: .76rem;
    font-weight: 700;
  }

  .knowledge-table--audit td:nth-child(2) {
    padding-top: 2px;
    color: #0b2a43;
    font-size: 1rem;
    font-weight: 700;
  }

  .knowledge-table--audit td:nth-child(4) {
    color: #0b2a43;
  }

  .knowledge-table--audit td:nth-child(4)::before {
    content: "改法：";
    color: #f07820;
    font-weight: 700;
  }
}
