:root {
  --ink: #18323d;
  --muted: #667a82;
  --primary: #1f5f78;
  --primary-dark: #17495d;
  --line: #dbe5e8;
  --paper: #ffffff;
  --wash: #edf4f5;
  --gold: #c59a52;
}

* {
  box-sizing: border-box;
}

html,
body,
#react-entry-point {
  min-height: 100%;
  margin: 0;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 10%, rgba(197, 154, 82, 0.12), transparent 28rem),
    linear-gradient(145deg, #f7faf9 0%, var(--wash) 100%);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(31, 95, 120, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 95, 120, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 48px 20px 28px;
}

.lookup-card {
  position: relative;
  width: min(100%, 680px);
  padding: 48px 52px 38px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(31, 95, 120, 0.12);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(35, 68, 78, 0.12);
}

.lookup-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, var(--primary), #3c8292 68%, var(--gold));
}

.school-seal {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--primary);
  border: 3px solid #fff;
  border-radius: 50%;
  outline: 1px solid rgba(31, 95, 120, 0.38);
  box-shadow: 0 5px 18px rgba(31, 95, 120, 0.18);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 28px;
  font-weight: 700;
}

.page-heading {
  text-align: center;
}

.school-name {
  margin: 0;
  color: var(--ink);
  font-family: "STSong", "SimSun", serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
}

.page-title {
  margin: 7px 0 0;
  color: var(--primary);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.heading-rule {
  width: 72px;
  height: 2px;
  margin: 22px auto;
  background: var(--gold);
}

.page-intro {
  margin: 0 0 28px;
  color: var(--muted);
  line-height: 1.8;
  text-align: center;
}

.search-panel {
  padding: 22px;
  background: #f8fbfb;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.input-label {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 12px;
}

.search-row .ant-input-affix-wrapper,
.search-row .ant-input {
  border-color: #cbdadd;
  border-radius: 9px;
}

.search-row .ant-input-affix-wrapper:hover,
.search-row .ant-input-affix-wrapper-focused,
.search-row .ant-input:focus,
.search-row .ant-input:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(31, 95, 120, 0.1);
}

.query-button.ant-btn-primary {
  height: 40px;
  background: var(--primary);
  border-color: var(--primary);
  border-radius: 9px;
  box-shadow: 0 5px 12px rgba(31, 95, 120, 0.18);
  font-weight: 600;
}

.query-button.ant-btn-primary:hover,
.query-button.ant-btn-primary:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.input-hint {
  margin: 9px 0 0;
  color: #849399;
  font-size: 12px;
}

.result-region {
  min-height: 12px;
  margin-top: 24px;
}

.result-card {
  padding-top: 2px;
  animation: result-in 180ms ease-out;
}

.result-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
}

.result-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 650;
}

.result-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

.result-card .ant-descriptions-bordered .ant-descriptions-item-label {
  width: 34%;
  color: #536970;
  background: #f7fafa;
  font-weight: 500;
}

.result-card .ant-descriptions-bordered .ant-descriptions-view {
  overflow: hidden;
  border-color: var(--line);
  border-radius: 10px;
}

.result-card .ant-descriptions-bordered .ant-descriptions-row,
.result-card .ant-descriptions-bordered .ant-descriptions-item-label,
.result-card .ant-descriptions-bordered .ant-descriptions-item-content {
  border-color: var(--line);
}

.result-region .ant-alert {
  border-radius: 10px;
}

.privacy-note {
  margin-top: 28px;
  padding-top: 18px;
  color: #7a8c92;
  border-top: 1px solid #edf1f2;
  font-size: 12px;
  line-height: 1.7;
}

.privacy-note span {
  color: #5f737a;
  font-weight: 600;
}

.site-footer {
  color: #75888e;
  font-size: 12px;
  text-align: center;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--primary);
  text-decoration: underline;
}

@keyframes result-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .page-shell {
    justify-content: flex-start;
    gap: 18px;
    padding: 20px 12px 18px;
  }

  .lookup-card {
    padding: 36px 20px 28px;
    border-radius: 17px;
  }

  .school-seal {
    width: 52px;
    height: 52px;
    font-size: 25px;
  }

  .school-name {
    font-size: 27px;
  }

  .page-title {
    font-size: 16px;
  }

  .page-intro {
    margin-bottom: 22px;
    font-size: 14px;
  }

  .search-panel {
    padding: 17px;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .query-button {
    width: 100%;
  }

  .result-card .ant-descriptions-bordered .ant-descriptions-item-label {
    width: 38%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .result-card {
    animation: none;
  }
}
