:root {
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  color: #142f4b;
  background: #f3f6fa;
  font-synthesis: none;
  --ink: #142f4b;
  --muted: #516780;
  --blue: #1263c1;
  --border: #dce6f0;
  --header-height: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
[data-mode="production"] [data-demo] { display: none; }
:focus-visible { outline: 2px solid #1c67be; outline-offset: 4px; }

.shell { width: min(1192px, calc(100% - 88px)); margin-inline: auto; }

.masthead { background: #fff; border-bottom: 1px solid #dee7f1; }
.masthead-inner {
  min-height: calc(var(--header-height) - 1px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 14px; font-size: 16px; font-weight: 700; }
.brand img { width: 70px; height: auto; flex: none; }
.preview-label {
  color: #345875;
  background: #f0f5fb;
  border: 1px solid #e2ebf5;
  border-radius: 24px;
  padding: 6px 12px;
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
}

.lookup {
  display: grid;
  min-height: calc(100svh - var(--header-height));
  isolation: isolate;
  background: #174f87;
  position: relative;
}
.lookup::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, #082b53e6 0%, #0a3f78b0 45%, #2e72b15c 77%, #a5ceef48 100%),
    linear-gradient(0deg, #0c315459 0%, transparent 60%),
    url("campus.webp") 48% 55% / cover no-repeat;
}
.lookup-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(345px, 408px);
  align-items: center;
  gap: clamp(32px, 6vw, 116px);
  padding-block: clamp(56px, 10vh, 110px);
}
.intro { max-width: 640px; color: #fff; }
.intro::before {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin-bottom: 24px;
  border-radius: 8px;
  background: #f2be80;
}
.intro h1 {
  margin: 0;
  font-size: clamp(42px, 5.3vw, 82px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.055em;
  text-wrap: balance;
}
.intro p {
  margin: 22px 0 0;
  color: #f1f7ff;
  font-size: clamp(15px, 1.45vw, 19px);
  line-height: 1.65;
  text-wrap: pretty;
}

.query-card {
  width: 100%;
  overflow: hidden;
  padding: 34px;
  border-radius: 17px;
  border: 1px solid #ffffffc7;
  border-top: 4px solid #4d9ce9;
  background: #fff;
  box-shadow: 0 20px 56px #103e6f3e;
}
#lookup-form label { display: block; margin: 0 0 14px; font-size: 25px; font-weight: 700; }
#commission-number {
  min-height: 54px;
  width: 100%;
  padding: 12px 14px;
  color: var(--ink);
  background: #f9fbfe;
  border: 1px solid #b5c9de;
  border-radius: 8px;
  font-size: 16px;
}
#commission-number::placeholder { color: #60748c; }
#commission-number[aria-invalid="true"] { border-color: #a22933; }
.input-error { margin: 8px 0 0; color: #a22933; font-size: 14px; }

.submit {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 53px;
  margin-top: 17px;
  padding: 9px 16px;
  color: #fff;
  border: 0;
  border-radius: 8px;
  background: #1263c1;
  box-shadow: 0 6px 15px #1263c126;
  font-size: 16px;
  font-weight: 700;
}
.submit:hover { background: #0b53a8; }
.search-icon {
  display: inline-block;
  width: 15px;
  aspect-ratio: 1;
  border: 1.7px solid currentColor;
  border-radius: 50%;
  position: relative;
}
.search-icon::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 1.7px;
  top: 92%;
  left: 86%;
  background: currentColor;
  border-radius: 2px;
  transform: rotate(45deg);
  transform-origin: left center;
}
.examples {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 23px;
  padding-top: 16px;
  border-top: 1px solid #e6edf6;
  color: var(--muted);
  font-size: 13px;
}
.examples span { margin-right: 2px; }
.example {
  background: #f3f8fe;
  border: 1px solid #dce9f6;
  border-radius: 5px;
  color: #215783;
  padding: 6px 8px;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  line-height: 1.35;
}
.example:hover { background: #e7f2ff; border-color: #a4c4e8; }

.results { min-height: calc(100svh - var(--header-height)); }
.result-banner {
  padding-block: 30px 42px;
  background:
    linear-gradient(90deg, #e4effa 18%, #e7f2fce8 57%, #d7ebfbb5 100%),
    url("campus.webp") 55% 55% / cover no-repeat;
  border-bottom: 1px solid #dbe8f5;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin-left: -3px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #20578c;
  font-size: 14px;
  font-weight: 700;
}
.back:hover { color: #0e4683; text-decoration: underline; }
.back-arrow, .choice-arrow {
  width: 8px;
  height: 8px;
  border-left: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
}
.back-arrow { transform: rotate(45deg); margin-left: 3px; }
.result-banner h1 {
  margin: 11px 0 13px;
  color: #122e4b;
  font-size: clamp(33px, 4.6vw, 52px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}
.result-banner h1:focus { outline: none; }
.result-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: #405a76;
  font-size: 14px;
  line-height: 1.6;
}
.result-meta > span:first-child { overflow-wrap: anywhere; }
.result-meta strong { margin-left: 5px; color: #20466b; font-variant-numeric: tabular-nums; }
#record-count { padding-left: 16px; border-left: 1px solid #a7bed4; white-space: nowrap; }

.result-body { padding-block: 28px 52px; }
.results-grid {
  display: grid;
  grid-template-columns: minmax(222px, 286px) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}
.report-navigation {
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 17px 13px 13px;
  background: #fff;
}
.report-navigation h2 { margin: 0 0 13px 6px; font-size: 17px; }
.report-navigation ul { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.report-choice {
  position: relative;
  width: 100%;
  padding: 14px 27px 13px 13px;
  text-align: left;
  color: var(--ink);
  background: #fff;
  border: 1px solid #e0e9f2;
  border-radius: 9px;
}
.report-choice:hover { background: #f5f9fe; }
.report-choice[aria-pressed="true"] { background: #eef6ff; border-color: #80b2e5; }
.choice-sample, .choice-number, .choice-version { display: block; overflow-wrap: anywhere; }
.choice-sample { margin-bottom: 4px; font-size: 16px; font-weight: 700; }
.choice-number, .choice-version { color: #456480; font-size: 12px; line-height: 1.5; }
.choice-version { margin-top: 2px; }
.choice-arrow { position: absolute; top: 19px; right: 12px; transform: rotate(225deg); color: #3c6b97; }

.report-state {
  display: inline-block;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 5px;
  background: #eaf5ee;
  color: #216044;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}
.report-choice .report-state { margin-top: 7px; }
.report-state[data-state="superseded"] { color: #804714; background: #f9ecdd; }
.report-state[data-state="archived"] { color: #245783; background: #e5effa; }

.report {
  overflow: hidden;
  border: 1px solid #d8e5f2;
  border-top: 3px solid #2772bb;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 8px 28px #173e6610;
}
.report-header {
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 168px;
  gap: 15px;
  padding: 24px 32px;
  overflow: hidden;
  background: linear-gradient(114deg, #f4f8fc 44%, #e2effc 100%);
  border-bottom: 1px solid #dde8f4;
}
.report-header::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 420px;
  height: 162px;
  right: -153px;
  bottom: -61px;
  border-radius: 50%;
  background: repeating-radial-gradient(ellipse, transparent 0 7px, #82afd44d 8px 9px, transparent 10px 14px);
  transform: rotate(-19deg);
  mask-image: linear-gradient(90deg, transparent, #000 48%);
}
.report-label { margin: 0 0 7px; color: #45647e; font-size: 13px; font-weight: 700; }
.report-header h2 {
  margin: 0;
  font-size: clamp(25px, 3.15vw, 39px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}
.report-flags { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-top: 12px; }
.report-version { color: var(--muted); font-size: 13px; }
.seal {
  display: block;
  flex: none;
  width: clamp(70px, 8vw, 112px);
  height: auto;
  margin: 0 6px 0 0;
  opacity: 0.9;
  transform: rotate(-9deg);
  animation: seal-impression 460ms cubic-bezier(.2, .72, .35, 1) both;
}
@keyframes seal-impression {
  from { opacity: 0; transform: translateY(-13px) rotate(-15deg) scale(1.29); }
  65% { opacity: 0.93; transform: translateY(1px) rotate(-9deg) scale(.96); }
  to { opacity: 0.9; transform: rotate(-9deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .seal { animation: none; } }

.report-body { padding: 6px 32px 13px; }
.version-note {
  margin: 17px 0 3px;
  padding: 10px 13px;
  border-radius: 6px;
  background: #fdf5eb;
  color: #764811;
  font-size: 14px;
  line-height: 1.5;
}
.version-note[data-state="archived"] { color: #355678; background: #eff5fc; }
.report-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
  margin: 0;
}
.report-fields div { padding: 15px 0 13px; }
.report-fields div:nth-child(n + 3) { border-top: 1px solid #e6edf5; }
.report-fields dt { color: var(--muted); font-size: 13px; }
.report-fields dd { margin: 5px 0 0; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.issuer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 13px;
  padding: 14px 32px;
  border-top: 1px solid #e0e9f2;
  background: #f8fafd;
  color: #355678;
  font-size: 13px;
  line-height: 1.6;
}
.issuer strong { color: var(--ink); }

.empty-state {
  display: grid;
  justify-items: center;
  padding: 45px 24px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #fff;
  text-align: center;
}
.empty-icon { width: 27px; color: #487bad; }
.empty-icon::after { width: 10px; }
.empty-state h2 { margin: 17px 0 7px; font-size: 22px; }
.empty-state p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 960px) {
  .shell { width: calc(100% - 58px); }
  .lookup-inner { gap: 34px; }
  .query-card { padding: 28px; }
  .results-grid { grid-template-columns: minmax(205px, 245px) minmax(0, 1fr); gap: 18px; }
}

@media (max-width: 720px) {
  :root { --header-height: 64px; }
  .shell { width: calc(100% - 34px); }
  .masthead-inner { gap: 8px; }
  .brand { gap: 8px; font-size: 14px; line-height: 1.4; }
  .brand img { width: 54px; }
  .preview-label { padding: 4px 7px; font-size: 11px; }
  .lookup::before {
    background:
      linear-gradient(180deg, #0b3866d8 5%, #104c87b3 43%, #0d315384 100%),
      url("campus.webp") 44% 53% / cover no-repeat;
  }
  .lookup-inner {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    justify-items: stretch;
    gap: 27px;
    padding-block: clamp(32px, 7vh, 58px) 45px;
  }
  .intro { padding-inline: 3px; }
  .intro::before { margin-bottom: 15px; width: 34px; height: 3px; }
  .intro h1 { font-size: clamp(32px, 8.5vw, 52px); }
  .intro p { margin-top: 13px; }
  .query-card { padding: 24px 19px 21px; border-radius: 13px; }
  #lookup-form label { font-size: 21px; }

  .result-banner { padding-block: 12px 25px; }
  .result-banner h1 { margin-top: 8px; }
  .result-body { padding-block: 17px 35px; }
  .results-grid { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .report-navigation { padding: 13px 10px 10px; }
  .report-navigation h2 { font-size: 15px; margin: 0 0 9px 4px; }
  .report-navigation ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-choice { height: 100%; padding: 10px 17px 10px 9px; }
  .choice-sample { font-size: 14px; }
  .choice-arrow { width: 6px; height: 6px; right: 8px; top: 15px; }
  .report-header { padding: 18px 17px; min-height: 127px; }
  .report-header h2 { font-size: clamp(21px, 5.9vw, 31px); }
  .seal { width: clamp(59px, 16vw, 85px); margin-right: 4px; }
  .report-body { padding: 4px 17px 9px; }
  .report-fields { column-gap: 14px; }
  .report-fields div { padding: 12px 0; }
  .report-fields dd { font-size: 14px; }
  .issuer { padding: 11px 17px; }
}

@media (max-width: 375px) {
  .shell { width: calc(100% - 26px); }
  .brand { font-size: 12px; gap: 6px; }
  .brand img { width: 43px; }
}
