:root {
  color-scheme: light;
  --font-sans: "Source Han Sans SC", "Source Han Sans CN", "Source Han Sans", "思源黑体 CN", "思源黑体", "Noto Sans CJK SC", sans-serif;
  --page: #f5f6f8;
  --card: #ffffff;
  --ink: #202a38;
  --muted: #707b8a;
  --line: #e5e8ec;
  --field: #ffffff;
  --field-border: #d8dee6;
  --orange: #e87832;
  --orange-hover: #cf5c1c;
  --orange-soft: #fff6ef;
  --focus: #f4a36f;
  --success-bg: #f1f8f3;
  --success-border: #d2e8d7;
  --success-ink: #28633c;
  --failure-bg: #fff5f1;
  --failure-border: #f1d4c8;
  --failure-ink: #9a482b;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

.site-header {
  display: flex;
  width: min(100% - 48px, 1160px);
  min-height: 74px;
  align-items: center;
  justify-content: flex-end;
  margin: 0 auto;
}

.home-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid #f0c9ad;
  border-radius: 8px;
  color: var(--orange-hover);
  background: var(--card);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease, transform 150ms ease;
}

.home-link:hover {
  border-color: var(--orange);
  color: var(--orange-hover);
  background: var(--orange-soft);
  transform: translateY(-1px);
}

.home-link svg,
.search-icon,
.lookup-form button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.lookup-shell {
  display: grid;
  min-height: calc(100vh - 74px);
  place-items: center;
  padding: 10px 24px 64px;
}

.lookup-card {
  width: min(100%, 840px);
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid #e9ecf0;
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 18px 50px rgb(33 44 58 / 7%);
}

.brand-logo {
  display: block;
  width: min(210px, 48vw);
  height: auto;
  margin: 0 0 24px;
}

.lookup-card h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.intro {
  margin: 9px 0 34px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
}

.lookup-form label {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
}

.input-wrap {
  position: relative;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 17px;
  color: #8792a0;
  transform: translateY(-50%);
  pointer-events: none;
}

.lookup-form input {
  display: block;
  width: 100%;
  min-height: 60px;
  padding: 14px 16px 14px 50px;
  border: 1px solid var(--field-border);
  border-radius: 10px;
  outline: none;
  color: var(--ink);
  background: var(--field);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.lookup-form input::placeholder {
  color: #9aa3ae;
}

.lookup-form input:hover {
  border-color: #e5a87e;
}

.lookup-form input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgb(232 120 50 / 16%);
}

.lookup-form button {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 14px;
  padding: 13px 20px;
  border: 1px solid var(--orange);
  border-radius: 10px;
  color: #ffffff;
  background: var(--orange);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 650;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.lookup-form button:hover {
  border-color: var(--orange-hover);
  background: var(--orange-hover);
  box-shadow: 0 6px 15px rgb(207 92 28 / 20%);
  transform: translateY(-1px);
}

.lookup-form button:active {
  box-shadow: none;
  transform: translateY(0);
}

.home-link:focus-visible,
.lookup-form button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.lookup-form button:hover svg {
  transform: translateX(2px);
}

.lookup-form button svg {
  transition: transform 150ms ease;
}

.result,
.not-found {
  margin-top: 26px;
  padding: 22px 24px;
  border: 1px solid var(--success-border);
  border-radius: 12px;
  background: var(--success-bg);
}

.result-heading {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.result-mark,
.failure-mark {
  display: grid;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #329258;
  font-size: 14px;
  font-weight: 700;
}

.result h2 {
  margin: 0;
  color: var(--success-ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.result dl {
  display: grid;
  grid-template-columns: minmax(110px, 0.36fr) minmax(0, 1fr);
  margin: 0;
  column-gap: 20px;
}

.result dt,
.result dd {
  padding: 9px 0;
  border-top: 1px solid var(--success-border);
  font-size: 16px;
  line-height: 1.55;
}

.result dt {
  color: #617a69;
  font-weight: 500;
}

.result dd {
  min-width: 0;
  margin: 0;
  color: #18372a;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.not-found {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border-color: var(--failure-border);
  color: var(--failure-ink);
  background: var(--failure-bg);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
}

.failure-mark {
  background: #c35b3c;
}

@media (max-width: 600px) {
  .site-header {
    width: calc(100% - 28px);
    min-height: 60px;
  }

  .lookup-shell {
    min-height: calc(100vh - 60px);
    padding: 8px 14px 36px;
  }

  .lookup-card {
    padding: 27px 22px;
    border-radius: 18px;
  }

  .brand-logo {
    width: min(170px, 48vw);
    margin-bottom: 19px;
  }

  .intro {
    margin: 8px 0 27px;
    font-size: 15px;
  }

  .lookup-form input,
  .lookup-form button {
    min-height: 54px;
    font-size: 15px;
  }

  .result,
  .not-found {
    padding: 17px;
    border-radius: 10px;
  }

  .result h2 {
    font-size: 16px;
  }

  .result dl {
    grid-template-columns: minmax(88px, 0.4fr) minmax(0, 1fr);
    column-gap: 13px;
  }

  .result dt,
  .result dd {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
