:root {
  --bg: #f3f6fb;
  --surface: #ffffff;
  --text: #172033;
  --muted: #6d7788;
  --line: #e2e8f0;
  --primary: #245dff;
  --primary-soft: #edf3ff;
  --navy: #172a56;
  --shadow: 0 16px 45px rgba(28, 47, 87, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter,
    "PingFang SC",
    "Microsoft YaHei",
    system-ui,
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, #eaf0ff 0, transparent 32%),
    var(--bg);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  color: #667085;
  font-size: 13px;
}

.site-footer a { color: inherit; }
.site-footer .operator-name {
  flex-basis: 100%;
  order: 2;
  text-align: center;
  font-size: 12px;
  opacity: 0.82;
}
.legal-shell { max-width: 900px; margin: 32px auto; padding: 0 18px 48px; }
.legal-card { background: #fff; border-radius: 18px; padding: 28px; line-height: 1.8; }
.legal-card h1 { margin-top: 0; }
.legal-card h2 { margin-top: 28px; }
.legal-meta { color: #667085; }

button,
input,
select {
  font: inherit;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 80px;
}

.hero {
  position: relative;
  padding: 36px 40px;
  border-radius: 28px;
  color: white;
  background:
    linear-gradient(135deg, #142854 0%, #1c4ccf 64%, #2e6dff 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -80px;
  top: -120px;
  border-radius: 50%;
  border: 58px solid rgba(255, 255, 255, 0.07);
}

.eyebrow,
.report-kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
  opacity: 0.76;
}

.hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.1;
}

.hero p {
  max-width: 720px;
  margin: 0;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.82);
}

.version {
  position: absolute;
  right: 34px;
  bottom: 30px;
  z-index: 2;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

.panel {
  margin-top: 24px;
  padding: 32px;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-heading h2 {
  margin: 0;
  font-size: 22px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.section-heading.compact {
  margin-bottom: 18px;
}

.step {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

label {
  display: block;
  margin-bottom: 18px;
  font-weight: 700;
  font-size: 14px;
}

input,
select {
  width: 100%;
  margin-top: 8px;
  padding: 13px 14px;
  border: 1px solid #cfd8e6;
  border-radius: 11px;
  outline: none;
  background: white;
  color: var(--text);
  transition: 0.18s ease;
}

input:focus,
select:focus {
  border-color: #7da0ff;
  box-shadow: 0 0 0 4px rgba(36, 93, 255, 0.10);
}

input:disabled {
  background: #f5f7fa;
  color: #7b8493;
}

.divider {
  height: 1px;
  margin: 14px 0 28px;
  background: var(--line);
}

.subjects-header,
.subject-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px;
  align-items: center;
}

.subjects-header {
  padding: 0 12px 10px;
  color: var(--muted);
  font-size: 13px;
}

.subject-row {
  padding: 9px 12px;
  border-top: 1px solid #eef2f7;
}

.subject-name {
  font-weight: 800;
}

.subject-row input {
  margin: 0;
}

.primary-button {
  width: 100%;
  margin-top: 26px;
  padding: 15px 18px;
  border: 0;
  border-radius: 13px;
  color: white;
  background: linear-gradient(90deg, #2057ec, #2c69ff);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(36, 93, 255, 0.20);
}

.primary-button:hover {
  transform: translateY(-1px);
}

.form-error {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff1f0;
  color: #b42318;
}

.report {
  margin-top: 24px;
}

.report-cover {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 32px;
  border-radius: 24px 24px 0 0;
  background: #172a56;
  color: white;
}

.report-cover h2 {
  margin: 8px 0 8px;
  font-size: 29px;
}

.report-cover p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

.report-badge {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  font-size: 13px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 0;
}

.metric-card {
  min-height: 148px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(28, 47, 87, 0.05);
}

.metric-card.featured {
  background: var(--primary-soft);
  border-color: #dce7ff;
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.metric-card strong {
  display: block;
  margin: 15px 0 9px;
  font-size: 27px;
  color: var(--navy);
}

.metric-card small {
  color: #7f8898;
}

.report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  gap: 18px;
}

.report-card,
.province-card,
.method-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(28, 47, 87, 0.05);
}

.card-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.card-heading h3 {
  margin: 0;
  font-size: 19px;
}

.card-heading span {
  color: var(--muted);
  font-size: 12px;
}

.result-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 95px 68px 74px;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid #edf1f6;
}

.result-row:first-child {
  border-top: 0;
}

.result-name {
  margin-bottom: 7px;
  font-weight: 800;
}

.progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f7;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5d84f2, #245dff);
}

.result-score,
.result-rate {
  text-align: right;
  color: #4c5668;
  font-size: 14px;
}

.result-rate {
  font-weight: 800;
  color: var(--navy);
}

.tag {
  justify-self: end;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.tag.excellent,
.tag.strong {
  background: #e9f7ef;
  color: #24734d;
}

.tag.good {
  background: #eef4ff;
  color: #315bb1;
}

.tag.improve {
  background: #fff5df;
  color: #956400;
}

.tag.focus {
  background: #fff0ef;
  color: #a53a32;
}

.insight-block {
  margin-bottom: 14px;
  padding: 18px;
  border-radius: 15px;
}

.insight-block span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.insight-block strong {
  font-size: 20px;
}

.insight-block.positive {
  background: #eef8f3;
}

.insight-block.warning {
  background: #fff7e8;
}

.muted {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.province-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 18px;
  background:
    linear-gradient(135deg, #ffffff 0%, #f4f7ff 100%);
}

.province-label {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.province-card h3 {
  margin: 8px 0;
  font-size: 23px;
}

.province-card p {
  margin: 0;
  color: var(--muted);
}

.province-placeholder {
  min-width: 240px;
  padding: 20px;
  border: 1px dashed #aac0f5;
  border-radius: 16px;
  background: white;
}

.province-placeholder span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.province-placeholder strong {
  display: block;
  margin-top: 8px;
  color: var(--navy);
  font-size: 21px;
}

.method-card {
  margin-top: 18px;
  background: #fbfcfe;
}

.method-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-grid {
    grid-template-columns: 1fr;
  }

  .form-grid.three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1120px);
    padding-top: 18px;
  }

  .hero,
  .panel {
    padding: 24px 20px;
  }

  .version {
    position: static;
    display: inline-block;
    margin-top: 18px;
  }

  .section-heading,
  .report-cover,
  .province-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-grid.two,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .subjects-header,
  .subject-row {
    grid-template-columns: 0.8fr 1fr 0.8fr;
  }

  .result-row {
    grid-template-columns: 1fr 78px 58px;
  }

  .tag {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .province-placeholder {
    width: 100%;
    min-width: 0;
  }
}


.version-link {
  color: white;
  text-decoration: none;
}

.version-link:hover {
  background: rgba(255, 255, 255, 0.16);
}
