:root {
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: #222;
  background: #edf3fa;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  min-width: 320px;
  background: #edf3fa;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.login-shell {
  width: calc(100% - 60px);
  max-width: 420px;
  min-height: calc(100vh - 55px);
  margin: 22px auto 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #c9c9c9;
  border-radius: 8px 8px 10px 10px;
}

.login-title {
  height: 38px;
  margin: 0;
  color: #fff;
  background: #b93227;
  font-size: 19px;
  font-weight: 700;
  line-height: 38px;
  text-align: center;
}

.login-form {
  padding: 14px 15px 0;
}

.notice {
  display: block;
  min-height: 49px;
  margin-bottom: 14px;
  padding: 7px 7px 6px;
  color: #323232;
  background: #fff;
  border: 1px solid #e29a57;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgb(0 0 0 / 14%);
  font-size: 13px;
  line-height: 18px;
}

.notice-icon {
  float: left;
  margin-right: 4px;
  font-weight: 700;
}

.notice p {
  margin: 0;
}

.field {
  display: block;
  height: 31px;
  margin-bottom: 16px;
}

.field input,
.field select {
  width: 100%;
  height: 100%;
  padding: 0 11px;
  color: #333;
  background: #fff;
  border: 1px solid #dde2e8;
  border-radius: 3px;
  outline: none;
  font-size: 12px;
  letter-spacing: 0;
}

.field input::placeholder,
.field select:invalid {
  color: #b2bac5;
  opacity: 1;
}

.field input:focus,
.field select:focus {
  border-color: #b93227;
}

.select-field {
  position: relative;
}

.select-field::after {
  content: "";
  position: absolute;
  top: 11px;
  right: 13px;
  width: 6px;
  height: 6px;
  border-right: 1px solid #aeb7c0;
  border-bottom: 1px solid #aeb7c0;
  transform: rotate(45deg);
  pointer-events: none;
}

.select-field select {
  padding-right: 34px;
  appearance: none;
}

.captcha-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 8px;
  height: 31px;
  margin-bottom: 16px;
}

.captcha-field {
  height: 31px;
  margin: 0;
}

.captcha-image {
  width: 128px;
  height: 31px;
  object-fit: fill;
  border: 1px solid #dde2e8;
  cursor: pointer;
  user-select: none;
}

.captcha-image:focus-visible {
  outline: 2px solid #b93227;
  outline-offset: 2px;
}

.form-error {
  display: none;
  min-height: 18px;
  margin: -8px 0 6px;
  color: #b93227;
  font-size: 12px;
  line-height: 18px;
}

.form-error:not(:empty) {
  display: block;
}

.query-button,
.back-button {
  width: 100%;
  color: #fff;
  background: #b93227;
  border: 0;
  border-radius: 3px;
  font-weight: 700;
}

.query-button {
  height: 29px;
  font-size: 13px;
  line-height: 29px;
}

.query-button:active,
.back-button:active {
  background: #a52a21;
}

.result-view {
  min-height: 100vh;
  background: #fff;
}

.result-header {
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: #fff;
  background: #ba3127;
  font-size: 23px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.result-content {
  width: calc(100% - 40px);
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 0 70px;
}

.result-content h1 {
  margin: 0 0 18px;
  color: #080808;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
}

.person-info {
  width: 100%;
  max-width: 100%;
  margin: 0;
  font-size: 18px;
}

.person-info > div {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  align-items: baseline;
  margin-bottom: 20px;
}

.person-info dt {
  color: #666;
  text-align: right;
}

.person-info dd {
  margin: 0;
  padding-left: 18px;
  color: #111;
  white-space: nowrap;
}

.score-table {
  width: 100%;
  margin: 0 0 18px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 18px;
  text-align: center;
}

.score-table th,
.score-table td {
  height: 44px;
  padding: 5px;
  border: 1px solid #686868;
  font-weight: 400;
}

.score-table th {
  background: #dedede;
}

.result-note {
  margin: 0 0 10px;
  color: #626262;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.55;
}

.back-button {
  height: 39px;
  font-size: 18px;
}

@media (max-width: 480px) {
  .result-header {
    font-size: clamp(18px, 5.8vw, 23px);
  }

  .result-content {
    width: calc(100% - 40px);
  }

  .result-content h1 {
    font-size: clamp(17px, 5vw, 20px);
  }

  .person-info,
  .result-note {
    font-size: 16px;
  }

  .person-info > div {
    grid-template-columns: 114px minmax(0, 1fr);
  }

  .person-info dd {
    padding-left: 10px;
    font-size: 17px;
  }
}

@media (max-width: 360px) {
  .login-shell {
    width: calc(100% - 30px);
  }

  .captcha-row {
    grid-template-columns: minmax(0, 1fr) 115px;
  }

  .captcha-image {
    width: 115px;
  }

  .result-content {
    width: calc(100% - 28px);
  }

  .person-info > div {
    grid-template-columns: 105px minmax(0, 1fr);
  }

  .person-info dd {
    padding-left: 8px;
    font-size: 15px;
  }
}
