:root {
  --header-bg: #edf8fb;
  --nav: #008997;
  --blue: #144d91;
  --blue-deep: #0d4281;
  --cyan: #16d8ea;
  --ink: #17406e;
  --paper: #ffffff;
  --soft: #e9f8fb;
  --shadow: 0 8px 0 rgba(19, 55, 76, 0.22);
}

@font-face {
  font-family: "ZJC-FangSong-GB2312";
  src: url("./fonts/FangSong_GB2312.ttf?v=20260813-font1") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ZJC-Times-New-Roman";
  src: url("./fonts/TimesNewRoman.ttf?v=20260814-times1") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ZJC-FZXBSJW";
  src: url("./fonts/FZXBSJW.ttf?v=20260824-fzxbsjw1") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  color: var(--ink);
  background: #eaf7fb;
}

body {
  overflow-x: hidden;
}

.query-portal,
body[data-page="apply"],
body[data-page="preview"],
body[data-page="verify"] {
  min-height: 100vh;
  background: linear-gradient(180deg, #5ca9de 0%, #3b86cc 100%);
}

.query-portal {
  padding: 82px clamp(20px, 6vw, 112px) 120px;
}

.portal-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.portal-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #ffffff;
  text-align: left;
  margin-bottom: 28px;
  text-shadow: 0 2px 4px rgba(0, 45, 104, 0.18);
}

.portal-logo-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.portal-wordmark-img {
  width: 318px;
  height: auto;
  object-fit: contain;
}

.query-portal h1 {
  margin: 0 0 26px;
  color: #ffffff;
  text-align: center;
  font-size: clamp(30px, 3.8vw, 54px);
  font-weight: 500;
  letter-spacing: 0;
}

.exam-tabs {
  width: min(1180px, 100%);
  min-height: 104px;
  margin: 0 auto 34px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  gap: 24px;
  overflow-x: auto;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(16, 87, 153, 0.14);
}

.exam-tabs button {
  position: relative;
  min-height: 82px;
  border: 0;
  padding: 0 0 12px;
  color: #667085;
  background: transparent;
  font: inherit;
  font-size: clamp(25px, 2.2vw, 35px);
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.exam-tabs button.active {
  color: #1f73ff;
}

.exam-tabs button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: #1f73ff;
}

.exam-panel {
  display: none;
}

.exam-panel.active {
  display: block;
}

.portal-sub-banner {
  width: min(1180px, 100%);
  min-height: 76px;
  margin: 0 auto 26px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: #ffffff;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
}

.portal-sub-banner strong {
  font-size: 28px;
  font-weight: 900;
}

.portal-sub-banner span {
  font-size: 18px;
  opacity: 0.9;
}

.service-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  position: relative;
  min-height: 188px;
  padding: 34px 32px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  overflow: hidden;
  border-radius: 14px;
  border: 4px solid transparent;
  background: linear-gradient(135deg, #edf7ff 0%, #d9ecff 100%);
  color: #101828;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(22, 88, 146, 0.12);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.service-card:hover,
.service-card:focus-visible,
.service-card:active {
  border-color: #2d75ff #9b80ff #bf82ff #2d75ff;
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(18, 94, 174, 0.2);
}

.service-card::before {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -46px;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: rgba(202, 224, 255, 0.78);
}

.card-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 28px;
}

.card-copy strong {
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.25;
  font-weight: 900;
}

.card-copy em {
  width: 166px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #b7d8ff;
  border-radius: 12px;
  color: #2272ff;
  background: rgba(255, 255, 255, 0.54);
  font-size: 22px;
  font-style: normal;
  font-weight: 500;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.service-card:hover .card-copy em,
.service-card:focus-visible .card-copy em,
.service-card:active .card-copy em {
  color: #ffffff;
  border-color: #2674ff;
  background: #2674ff;
}

.card-copy em::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-right: 10px;
  border: 2px solid currentColor;
  border-left: 0;
  border-bottom: 0;
  transform: rotate(45deg);
}

.service-art {
  position: absolute;
  right: 26px;
  bottom: 0;
  z-index: 1;
  width: 116px;
  height: 116px;
  opacity: 0.72;
}

.service-art::before,
.service-art::after {
  content: "";
  position: absolute;
}

.doc-art::before,
.grade-art::before,
.cert-art::before {
  right: 14px;
  bottom: 12px;
  width: 58px;
  height: 76px;
  border: 4px solid #9fc5ff;
  border-radius: 8px;
  background: #eef6ff;
}

.doc-art::after,
.grade-art::after,
.cert-art::after {
  right: 29px;
  bottom: 34px;
  width: 30px;
  height: 4px;
  box-shadow: 0 14px 0 #b7d2ff, 0 28px 0 #b7d2ff;
  border-radius: 4px;
  background: #b7d2ff;
}

.grade-art::after {
  content: "A+";
  right: 24px;
  bottom: 46px;
  width: auto;
  height: auto;
  color: #9fc5ff;
  background: transparent;
  box-shadow: none;
  font-size: 28px;
  font-weight: 900;
}

.art-art::before,
.sport-art::before {
  right: 18px;
  bottom: 8px;
  width: 72px;
  height: 72px;
  border-radius: 42px 42px 8px 42px;
  background: #b8d3ff;
  transform: rotate(-18deg);
}

.art-art::after,
.sport-art::after {
  right: 38px;
  bottom: 46px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
}

.sport-art::before {
  transform: rotate(18deg);
}

.app-view {
  display: none !important;
}

body[data-view="home"] .home-view,
body[data-view="apply"] .apply-view,
body[data-view="preview"] .preview-view,
body[data-view="verify"] .verify-view {
  display: block !important;
}

.site-header {
  position: relative;
  z-index: 5;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(26px, 16vw, 320px);
  background: var(--header-bg);
  box-shadow: 0 2px 8px rgba(21, 79, 105, 0.08);
}

body[data-page="apply"] .site-header,
body[data-page="preview"] .site-header,
body[data-page="verify"] .site-header {
  width: min(1180px, calc(100% - 40px));
  height: auto;
  min-height: 96px;
  margin: 40px auto 0;
  padding: 18px 28px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
}

body[data-page="apply"] .brand .seal,
body[data-page="preview"] .brand .seal,
body[data-page="verify"] .brand .seal {
  width: 58px;
  height: 58px;
  flex-basis: 58px;
  border: 0;
  background: url("./portal-logo.png?v=20260813-font1") center / contain no-repeat;
  box-shadow: none;
}

body[data-page="apply"] .brand .seal::before,
body[data-page="apply"] .brand .seal::after,
body[data-page="preview"] .brand .seal::before,
body[data-page="preview"] .brand .seal::after,
body[data-page="verify"] .brand .seal::before,
body[data-page="verify"] .brand .seal::after,
body[data-page="apply"] .seal-mark,
body[data-page="preview"] .seal-mark,
body[data-page="verify"] .seal-mark {
  display: none;
}

body[data-page="apply"] .brand-copy,
body[data-page="preview"] .brand-copy,
body[data-page="verify"] .brand-copy {
  width: 300px;
  height: 66px;
  background: url("./portal-wordmark.png?v=20260813-font1") left center / contain no-repeat;
}

body[data-page="apply"] .brand-copy strong,
body[data-page="apply"] .brand-copy small,
body[data-page="preview"] .brand-copy strong,
body[data-page="preview"] .brand-copy small,
body[data-page="verify"] .brand-copy strong,
body[data-page="verify"] .brand-copy small {
  display: none;
}

body[data-page="apply"] .main-nav a,
body[data-page="preview"] .main-nav a,
body[data-page="verify"] .main-nav a {
  color: #667085;
  font-size: 22px;
}

body[data-page="apply"] .main-nav a:hover,
body[data-page="preview"] .main-nav a:hover,
body[data-page="verify"] .main-nav a:hover,
body[data-page="verify"] .main-nav a.active {
  color: #1f73ff;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  color: #2a63a9;
  text-decoration: none;
}

.seal {
  position: relative;
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  border: 3px solid #6f906b;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #ffffff 0 43%, transparent 44%),
    repeating-conic-gradient(from -12deg, #8aa983 0 7deg, transparent 7deg 14deg);
  box-shadow: inset 0 0 0 5px #ffffff, inset 0 0 0 7px #688965;
}

.seal::before,
.seal::after {
  content: "";
  position: absolute;
  left: 16px;
  width: 29px;
  height: 7px;
  background: #547d58;
  transform: skewX(-8deg);
}

.seal::before {
  top: 21px;
}

.seal::after {
  top: 35px;
}

.seal-mark {
  position: absolute;
  left: 20px;
  top: 28px;
  width: 21px;
  height: 6px;
  background: #253a2d;
  transform: skewX(-8deg);
}

.brand-copy {
  display: grid;
  gap: 4px;
  white-space: nowrap;
}

.brand-copy strong {
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1;
  letter-spacing: 0;
  font-weight: 800;
}

.brand-copy small {
  color: rgba(255, 255, 255, 0.88);
  font-size: 9px;
  letter-spacing: 0;
}

.main-nav {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: 26px;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  color: var(--nav);
  text-decoration: none;
  font-size: 24px;
  font-weight: 700;
  white-space: nowrap;
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  height: 5px;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 555px;
  overflow: hidden;
  background:
    linear-gradient(112deg, rgba(22, 75, 139, 0.97) 0%, rgba(15, 73, 126, 0.96) 43%, rgba(3, 88, 86, 0.96) 100%),
    #0e4c86;
}

.hero-grid {
  position: absolute;
  inset: -80px -40px;
  opacity: 0.45;
  background-image:
    linear-gradient(30deg, rgba(58, 171, 190, 0.26) 1px, transparent 1px),
    linear-gradient(150deg, rgba(58, 171, 190, 0.24) 1px, transparent 1px);
  background-size: 180px 96px;
}

.hero-glow {
  position: absolute;
  width: 58vw;
  height: 58vw;
  left: 9vw;
  top: 110px;
  background: radial-gradient(circle, rgba(22, 143, 213, 0.22), transparent 58%);
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(410px, 1.1fr);
  align-items: center;
  gap: 38px;
  width: min(1220px, 86vw);
  min-height: 555px;
  margin: 0 auto;
}

.hero-title {
  padding-top: 48px;
  text-shadow: 0 4px 8px rgba(1, 18, 42, 0.45);
}

.hero-title p,
.hero-title h1 {
  margin: 0;
  color: rgba(233, 246, 255, 0.92);
  letter-spacing: 0;
}

.hero-title p {
  font-size: clamp(30px, 3vw, 47px);
  font-weight: 300;
}

.hero-title h1 {
  margin-top: 8px;
  font-size: clamp(32px, 3vw, 47px);
  font-weight: 850;
}

.hero-visual {
  position: relative;
  height: 440px;
}

.laptop {
  position: absolute;
  right: 16px;
  top: 42px;
  width: min(520px, 44vw);
  height: 350px;
  transform: skewY(29deg) rotate(-30deg);
  transform-origin: center;
}

.screen {
  position: absolute;
  right: 50px;
  top: 0;
  width: 290px;
  height: 220px;
  border: 14px solid #eefcff;
  border-bottom-width: 20px;
  border-radius: 8px;
  background: linear-gradient(180deg, #007b87, #0eb8c5);
  box-shadow: 12px 16px 0 rgba(0, 30, 61, 0.25);
}

.screen::before {
  content: "";
  position: absolute;
  left: -112px;
  top: 24px;
  width: 126px;
  height: 118px;
  border-radius: 6px 0 0 6px;
  background: linear-gradient(180deg, #e8fcff 0 18%, #0ab4c2 18% 100%);
}

.screen .code {
  position: absolute;
  left: -94px;
  top: 64px;
  color: rgba(178, 255, 255, 0.58);
  font-size: 54px;
  font-weight: 900;
}

.screen span {
  display: block;
  height: 20px;
  margin: 20px 30px;
  background: rgba(3, 77, 97, 0.48);
}

.keyboard {
  position: absolute;
  left: 52px;
  bottom: 8px;
  width: 360px;
  height: 170px;
  padding: 28px 34px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  border-radius: 8px 8px 16px 16px;
  background: linear-gradient(155deg, #edffff, #b8f2f5);
  box-shadow: 16px 20px 0 rgba(0, 30, 61, 0.22);
}

.keyboard::after {
  content: "";
  grid-column: 2 / 5;
  height: 34px;
  margin-top: 8px;
  border-radius: 6px;
  background: #b6eef3;
}

.keyboard span {
  height: 17px;
  border-radius: 4px;
  background: #d9fbff;
  border: 1px solid #66dceb;
}

.phone {
  position: absolute;
  left: 34px;
  bottom: 26px;
  width: 230px;
  height: 118px;
  border: 10px solid #effdff;
  border-radius: 10px;
  background: linear-gradient(135deg, #0cc6d5, #007e92);
  transform: skewY(29deg) rotate(-30deg);
  box-shadow: 14px 18px 0 rgba(0, 30, 61, 0.24);
}

.phone span {
  position: absolute;
  left: 28px;
  top: 28px;
  width: 72px;
  height: 66px;
  background: rgba(11, 244, 255, 0.24);
}

.phone i {
  position: absolute;
  right: 18px;
  top: 44px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #c9f9ff;
}

.blocks {
  position: absolute;
  width: 58px;
  height: 58px;
  background: linear-gradient(150deg, #22e7f2, #078fa6);
  transform: skewY(29deg) rotate(-30deg);
  box-shadow: 10px 14px 0 rgba(0, 30, 61, 0.18);
}

.block-a {
  left: 145px;
  top: 175px;
  height: 120px;
}

.block-b {
  left: 255px;
  top: 235px;
  height: 84px;
}

.block-c {
  left: 80px;
  top: 240px;
}

.action-band {
  position: relative;
  min-height: 360px;
  margin-top: -86px;
  padding: 70px 0 58px;
  background: #eaf7fb;
}

.wave {
  position: absolute;
  left: 0;
  right: 0;
  top: -66px;
  height: 158px;
  background: #eaf7fb;
  clip-path: polygon(0 58%, 100% 15%, 100% 100%, 0 100%);
}

.actions {
  position: relative;
  z-index: 2;
  width: min(1210px, 88vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(330px, 570px) minmax(330px, 570px);
  align-items: center;
  gap: 72px;
}

.action-card {
  min-height: 282px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 3vw, 50px);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.verify-card {
  flex-direction: column;
  gap: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #d1fbff 100%);
}

.document-illustration {
  position: relative;
  width: 170px;
  height: 170px;
  flex: 0 0 170px;
}

.doc {
  position: absolute;
  left: 44px;
  top: 34px;
  width: 88px;
  height: 118px;
  border: 5px solid #2867df;
  border-radius: 12px;
  background: #f7fbff;
}

.paper-write span,
.paper-check span {
  display: block;
  height: 5px;
  margin: 22px 14px 0;
  border-radius: 3px;
  background: #2867df;
}

.paper-write span + span,
.paper-check span + span {
  margin-top: 13px;
}

.paper-write i {
  position: absolute;
  left: 18px;
  bottom: 24px;
  width: 42px;
  height: 24px;
  border-bottom: 5px solid #ffac00;
  border-left: 5px solid #ffac00;
  border-radius: 50%;
  transform: rotate(-15deg);
}

.paper-check {
  left: 52px;
  top: 18px;
  height: 132px;
  border-radius: 8px;
}

.paper-check::after {
  content: "";
  position: absolute;
  right: -5px;
  top: -5px;
  width: 31px;
  height: 31px;
  background: #dff6ff;
  border-left: 5px solid #2867df;
  border-bottom: 5px solid #2867df;
  border-radius: 0 0 0 6px;
}

.paper-check b {
  position: absolute;
  left: 13px;
  top: 28px;
  width: 18px;
  height: 18px;
  border: 5px solid #ffa100;
  border-radius: 50%;
}

.paper-check b::after {
  content: "";
  position: absolute;
  left: -10px;
  top: 16px;
  width: 28px;
  height: 20px;
  border: 5px solid #ffa100;
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
}

.paper-check span {
  margin-left: 42px;
}

.paper-check span:nth-of-type(2),
.paper-check span:nth-of-type(3) {
  margin-left: 17px;
}

.pen {
  position: absolute;
  left: 86px;
  top: 94px;
  width: 94px;
  height: 16px;
  border-radius: 10px;
  background: #2867df;
  transform: rotate(-32deg);
}

.pen::after {
  content: "";
  position: absolute;
  right: -14px;
  top: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 18px solid #2867df;
}

.spark {
  position: absolute;
  width: 20px;
  height: 20px;
}

.spark::before,
.spark::after {
  content: "";
  position: absolute;
  inset: 8px 0;
  background: #b8caff;
}

.spark::after {
  transform: rotate(90deg);
}

.spark-one {
  left: 0;
  top: 50px;
}

.spark-two {
  right: 22px;
  top: 36px;
}

.button-stack {
  display: grid;
  gap: 34px;
}

.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 282px;
  min-height: 67px;
  padding: 0 30px;
  border-radius: 999px;
  background: var(--blue);
  color: #ffffff;
  text-decoration: none;
  font-size: 24px;
  font-weight: 800;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.14);
  white-space: nowrap;
}

.verify-button {
  min-width: 282px;
}

.apply-icon {
  width: 58px;
  height: 58px;
  fill: none;
  stroke: currentColor;
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.system-panel {
  padding: 72px clamp(20px, 6vw, 92px);
  background: #f6fbfd;
}

body[data-page="apply"] .system-panel,
body[data-page="preview"] .system-panel,
body[data-page="verify"] .system-panel {
  width: min(1180px, calc(100% - 40px));
  margin: 28px auto 80px;
  border-radius: 18px;
  background: rgba(246, 251, 253, 0.96);
  box-shadow: 0 18px 38px rgba(20, 84, 143, 0.18);
}

body[data-page="verify"] .light-panel {
  background: rgba(246, 251, 253, 0.96);
}

.apply-page {
  min-height: calc(100vh - 88px);
  display: grid;
  align-content: start;
}

.light-panel {
  background: #eef9fc;
}

.section-heading {
  width: min(1240px, 100%);
  margin: 0 auto 24px;
}

.section-heading p {
  margin: 0 0 6px;
  color: #008997;
  font-size: 15px;
  font-weight: 800;
}

.section-heading h2 {
  margin: 0;
  color: #173d6a;
  font-size: 32px;
  letter-spacing: 0;
}

.workspace {
  width: min(1240px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(330px, 430px) minmax(560px, 1fr);
  gap: 28px;
  align-items: start;
}

.query-workspace {
  width: min(520px, 100%);
  grid-template-columns: 1fr;
  justify-content: center;
}

.preview-view {
  min-height: calc(100vh - 88px);
  padding: 26px clamp(12px, 4vw, 44px) 54px;
}

.preview-view .certificate-stage:not(.is-empty) {
  display: block;
}

.certificate-form,
.verify-box,
.certificate-form {
  padding: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.wide-field {
  grid-column: 1 / -1;
}

.certificate-form label,
.verify-box label {
  display: grid;
  gap: 7px;
  color: #31506f;
  font-size: 14px;
  font-weight: 700;
}

.certificate-form input,
.certificate-form select,
.verify-box input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #c6dce6;
  border-radius: 6px;
  padding: 0 12px;
  color: #1e3854;
  font: inherit;
  background: #fbfeff;
}

.year-picker {
  position: relative;
  display: block;
}

.year-picker input {
  padding-right: 42px;
}

.year-picker-toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: #31506f;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}

.year-options {
  position: absolute;
  z-index: 10;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 264px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #c6dce6;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(25, 70, 100, 0.18);
}

.year-options[hidden] {
  display: none;
}

.year-option {
  display: block;
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #1e3854;
  font: inherit;
  text-align: left;
  padding: 0 14px;
  cursor: pointer;
}

.year-option:hover:not(:disabled),
.year-option:focus-visible:not(:disabled) {
  background: #eaf5fc;
  color: #126da9;
  outline: none;
}

.year-option.is-disabled,
.year-option:disabled {
  color: #b9c0c6;
  cursor: not-allowed;
}

.certificate-form input:focus,
.certificate-form select:focus,
.verify-box input:focus {
  outline: 3px solid rgba(18, 146, 160, 0.18);
  border-color: #1292a0;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.primary-action {
  color: #ffffff;
  background: #144d91;
}

.secondary-action {
  color: #144d91;
  background: #e5f3fb;
}

.validity-note {
  margin: 18px 0 0;
  color: #668099;
  font-size: 13px;
  line-height: 1.7;
}

.query-result {
  min-height: 54px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 6px;
  background: #f4f8fb;
  color: #536f88;
  line-height: 1.6;
  font-size: 14px;
}

.query-result:empty {
  display: none;
}

.query-result strong {
  display: block;
  color: #173d6a;
  font-size: 16px;
}

.query-result.success {
  border-left: 5px solid #13986f;
}

.query-result.error {
  border-left: 5px solid #cf2f2f;
  color: #8e3030;
  background: #fff6f6;
}

.certificate-stage {
  position: relative;
  overflow: auto;
  border-radius: 8px;
  background: #d7e5ee;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 24px 28px;
  box-shadow: inset 0 0 0 1px rgba(17, 77, 105, 0.08);
}

.certificate-loading {
  position: absolute;
  inset: 0 0 28px;
  z-index: 4;
  min-width: 0;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1683d8;
  background: rgba(255, 255, 255, 0.48);
  pointer-events: none;
}

.certificate-loading[hidden] {
  display: none;
}

.loading-spinner {
  width: 42px;
  height: 42px;
  border: 4px solid rgba(22, 131, 216, 0.2);
  border-top-color: #1683d8;
  border-right-color: #55b5f2;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(22, 131, 216, 0.06);
  animation: certificate-spin 0.85s linear infinite;
}

.primary-action.is-loading {
  cursor: wait;
  opacity: 0.82;
}

@keyframes certificate-spin {
  to { transform: rotate(360deg); }
}

.pdf-toolbar {
  position: sticky;
  top: 0;
  z-index: 3;
  min-width: 794px;
  margin: 0 -24px 24px;
  padding: 12px 18px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: #eef5f9;
  border-bottom: 1px solid rgba(53, 87, 105, 0.16);
}

.certificate-paper.canvas-paper-frame {
  width: 794px;
  height: 1123px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.certificate-paper.canvas-paper-frame canvas {
  display: block;
  width: 794px;
  height: 1123px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(24, 57, 74, 0.24);
}

.certificate-stage.is-empty {
  display: none !important;
}

.certificate-stage.is-empty .pdf-toolbar {
  display: none;
}

.certificate-paper {
  width: 794px;
  height: 1123px;
  margin: 0 auto;
  padding: 118px 84px 0 106px;
  background: #ffffff;
  color: #111111;
  font-family: "ZJC-FangSong-GB2312", "FangSong_GB2312", "FangSong", "STFangsong", serif;
  box-shadow: 0 12px 32px rgba(24, 57, 74, 0.2);
  position: relative;
  overflow: hidden;
}

.verify-result-page {
  width: min(860px, 100%);
  min-height: 520px;
  margin: 0 auto;
  padding: 24px 56px 44px;
  position: relative;
  background: #ffffff;
  color: #0e1729;
}

.verify-mobile-brand,
.verify-mobile-page-title {
  display: none;
}

.verify-result-page h2 {
  margin: 0;
  text-align: center;
  font-size: 36px;
  letter-spacing: 0;
}

.verify-main-text {
  margin: 46px 0 44px;
  text-align: center;
  font-size: 26px;
  line-height: 1.6;
  font-family: "ZJC-FangSong-GB2312", "FangSong_GB2312", "FangSong", "STFangsong", serif;
}

.verify-main-text span {
  display: block;
}

.verify-box {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: end;
  box-shadow: none;
}

.verify-result-page.success .verify-box {
  display: none;
}

.verify-detail {
  position: relative;
  width: min(760px, 100%);
  margin: 0 auto;
}

.verify-info-panel {
  position: relative;
  min-height: 128px;
}

.verify-fields {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px 10px;
  align-items: center;
  font-size: 18px;
}

.verify-fields span {
  font-weight: 800;
}

.verify-fields strong {
  font-size: 18px;
  font-weight: 500;
}

.valid-stamp-img {
  position: absolute;
  right: 8px;
  top: -8px;
  width: 162px;
  height: auto;
  opacity: 0.92;
}

.verify-download,
.verify-back {
  width: 100%;
  margin-top: 18px;
}

.verify-actions {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.verify-back {
  margin-top: 0;
}

.empty-state {
  padding: 28px;
  color: #668099;
  text-align: center;
}

@media print {
  body {
    background: #ffffff;
  }

  .site-header,
  .hero,
  .action-band,
  .certificate-form,
  .section-heading,
  .pdf-toolbar,
  #verify,
  .system-panel,
  .certificate-stage {
    padding: 0;
    background: #ffffff;
    box-shadow: none;
  }

  .workspace {
    display: block;
    width: auto;
  }

  .certificate-paper,
  .certificate-paper.canvas-paper-frame {
    width: 210mm;
    height: 297mm;
    box-shadow: none;
    padding: 0;
  }

  .certificate-paper.canvas-paper-frame canvas {
    width: 210mm;
    height: 297mm;
    box-shadow: none;
  }
}

@media (max-width: 1100px) {
  .site-header {
    padding: 0 32px;
  }

  .hero-content {
    width: min(960px, 90vw);
    grid-template-columns: 1fr 1fr;
  }

  .actions {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }

  .action-card {
    flex-direction: column;
    padding: 28px;
  }

  .button-stack {
    gap: 16px;
  }
}

@media (max-width: 760px) {
  .query-portal {
    padding: 28px 14px 54px;
  }

  .portal-brand {
    margin-bottom: 22px;
  }

  .portal-logo-img {
    width: 56px;
    height: 56px;
  }

  .portal-wordmark-img {
    width: 250px;
  }

  .query-portal h1 {
    font-size: 28px;
    line-height: 1.35;
  }

  .exam-tabs {
    min-height: 74px;
    margin-bottom: 24px;
    padding: 0 18px;
    gap: 22px;
    border-radius: 14px;
  }

  .exam-tabs button {
    min-height: 58px;
    font-size: 22px;
    padding-bottom: 8px;
  }

  .portal-sub-banner {
    min-height: auto;
    padding: 16px 18px;
    display: grid;
    gap: 6px;
  }

  .portal-sub-banner strong {
    font-size: 23px;
  }

  .portal-sub-banner span {
    font-size: 15px;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-card {
    min-height: 156px;
    padding: 28px 24px;
    border-radius: 12px;
  }

  .card-copy {
    gap: 22px;
  }

  .card-copy strong {
    font-size: 25px;
  }

  .card-copy em {
    width: 150px;
    height: 52px;
    font-size: 20px;
  }

  .site-header {
    height: auto;
    min-height: 112px;
    padding: 12px 18px 8px;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 8px;
  }

  .seal {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }

  .brand-copy strong {
    font-size: 19px;
  }

  .brand-copy small {
    display: none;
  }

  .main-nav {
    height: 34px;
    align-self: auto;
    justify-content: center;
    gap: 28px;
  }

  .main-nav a {
    font-size: 17px;
    padding: 0 4px;
  }

  .main-nav a.active::after {
    bottom: 4px;
    height: 4px;
  }

  .hero {
    min-height: 430px;
  }

  .hero-content {
    min-height: 430px;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 18px;
    padding-top: 38px;
  }

  .hero-title {
    padding-top: 0;
  }

  .hero-visual {
    height: 210px;
    transform: scale(0.58);
    transform-origin: left top;
  }

  .laptop {
    width: 500px;
    right: auto;
    left: 42px;
    top: 18px;
  }

  .phone {
    left: 6px;
    bottom: 4px;
  }

  .block-a {
    left: 120px;
    top: 150px;
  }

  .block-b {
    left: 230px;
    top: 200px;
  }

  .block-c {
    left: 56px;
    top: 214px;
  }

  .action-band {
    margin-top: -56px;
    padding-top: 48px;
  }

  .actions {
    width: min(430px, 88vw);
    grid-template-columns: 1fr;
  }

  .action-card {
    min-height: 260px;
  }

  .pill-button {
    min-width: min(282px, 74vw);
    font-size: 20px;
  }

  .light-panel {
    min-height: 100vh;
    padding: 54px 12px 70px;
    display: grid;
    align-items: start;
    align-content: start;
    gap: 30px;
    background: linear-gradient(180deg, #62b6e7 0%, #367fcb 100%);
  }

  body[data-page="verify"] .site-header {
    display: none;
  }

  .verify-mobile-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #ffffff;
    text-align: left;
    text-shadow: 0 2px 4px rgba(0, 41, 91, 0.18);
  }

  .verify-mobile-logo {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    font-size: 28px;
    font-weight: 900;
    background: rgba(16, 96, 168, 0.32);
  }

  .verify-mobile-brand strong {
    display: block;
    font-size: clamp(20px, 6vw, 28px);
    font-weight: 900;
    line-height: 1.1;
  }

  .verify-mobile-brand small {
    display: block;
    margin-top: 5px;
    font-size: 8px;
    letter-spacing: 0;
    opacity: 0.9;
  }

  .verify-mobile-page-title {
    display: block;
    margin: 2px 0 0;
    color: #ffffff;
    text-align: center;
    font-size: clamp(25px, 7vw, 36px);
    line-height: 1.25;
    font-weight: 500;
    letter-spacing: 0;
  }

  .verify-result-page {
    width: 100%;
    min-height: auto;
    padding: 36px clamp(24px, 7vw, 34px) 38px;
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(15, 77, 139, 0.18);
  }

  .verify-result-page h2 {
    font-size: clamp(26px, 7vw, 34px);
    line-height: 1.25;
    font-weight: 500;
  }

  .verify-main-text {
    margin: 46px 0 28px;
    text-align: left;
    font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    font-size: clamp(24px, 7vw, 34px);
    font-weight: 900;
    line-height: 1.75;
  }

  .verify-detail {
    width: 100%;
    display: grid;
    gap: 24px;
  }

  .verify-info-panel {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(104px, 33vw);
    gap: 14px;
    align-items: start;
    padding: 0 0 26px;
    border: 0;
    border-bottom: 1px solid #e6e9ef;
    border-radius: 0;
    background: transparent;
  }

  .verify-fields {
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 22px 16px;
    font-size: clamp(19px, 5.6vw, 25px);
    align-self: end;
    padding-top: 18px;
  }

  .verify-fields strong {
    min-width: 0;
    font-size: clamp(19px, 5.6vw, 25px);
    line-height: 1.3;
    font-weight: 500;
    word-break: break-all;
  }

  .valid-stamp-img {
    position: static;
    width: min(156px, 32vw);
    justify-self: center;
    align-self: start;
    transform: none;
  }

  .verify-actions {
    gap: 12px;
    margin-top: 0;
  }

  .verify-download,
  .verify-back {
    margin-top: 0;
    min-height: 58px;
    border-radius: 4px;
    font-size: clamp(20px, 5.8vw, 26px);
    font-weight: 500;
  }

  .verify-back {
    display: none;
  }

}

@media (max-width: 380px) {
  .verify-result-page {
    padding: 30px 20px 32px;
  }

  .verify-mobile-brand strong {
    font-size: 20px;
  }

  .verify-info-panel {
    grid-template-columns: 1fr 112px;
  }

  .verify-fields {
    gap: 18px 10px;
    font-size: 18px;
  }

  .verify-fields strong {
    font-size: 18px;
  }

  .valid-stamp-img {
    width: 122px;
  }
}

/* UI UX Pro Max polish: accessible public-service education portal */
:root {
  --ui-ink: #102a43;
  --ui-muted: #526579;
  --ui-primary: #0f4775;
  --ui-primary-dark: #0b3559;
  --ui-accent: #087f8c;
  --ui-accent-soft: #e5f5f6;
  --ui-page: #edf4f7;
  --ui-surface: #ffffff;
  --ui-border: #d5e1e8;
  --ui-focus: #f4b942;
  --ui-radius: 14px;
  --ui-shadow: 0 18px 42px rgba(16, 61, 91, 0.12);
}

body {
  color: var(--ui-ink);
  background: var(--ui-page);
}

body[data-page="apply"],
body[data-page="preview"],
body[data-page="verify"] {
  background: linear-gradient(145deg, #dfeef2 0%, #f6fafb 54%, #e7f1f5 100%);
}

:where(a, button, input, select):focus-visible {
  outline: 3px solid var(--ui-focus);
  outline-offset: 3px;
}

.site-header {
  border: 1px solid rgba(213, 225, 232, 0.9);
  border-top: 4px solid var(--ui-accent);
}

body[data-page="apply"] .site-header,
body[data-page="preview"] .site-header,
body[data-page="verify"] .site-header {
  box-shadow: var(--ui-shadow);
}

.main-nav {
  align-items: center;
  gap: 14px;
}

.main-nav a {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  transition: color 180ms ease, background-color 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: var(--ui-accent-soft);
}

.back-button {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #b7cbd6;
  border-radius: 8px;
  color: var(--ui-primary);
  background: #f7fbfc;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.back-button::before {
  content: "←";
  margin-right: 7px;
  font-size: 20px;
  line-height: 0;
}

.back-button:hover,
.back-button:active {
  color: #ffffff;
  border-color: var(--ui-primary);
  background: var(--ui-primary);
}

/* 统一的矢量纸飞机 CTA 图标与悬停反馈，不使用位图素材。 */
.card-copy em {
  position: relative;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.card-copy em::before {
  content: "";
  width: 22px;
  height: 19px;
  margin-right: 10px;
  border: 0;
  background: currentColor;
  clip-path: polygon(0 37%, 100% 0, 69% 100%, 48% 58%);
  transform: none;
  transition: transform 180ms ease;
}

.service-card:hover,
.service-card:focus-visible,
.service-card:active {
  border-color: #2d75ff #9b80ff #bf82ff #2d75ff;
  box-shadow: 0 0 0 3px rgba(45, 117, 255, 0.18), 0 18px 34px rgba(18, 94, 174, 0.24);
}

.service-card:hover .card-copy em,
.service-card:focus-visible .card-copy em,
.service-card:active .card-copy em {
  box-shadow: 0 8px 18px rgba(38, 116, 255, 0.28);
  transform: translateY(-1px);
}

.service-card:hover .card-copy em::before,
.service-card:focus-visible .card-copy em::before,
.service-card:active .card-copy em::before {
  transform: translateX(2px) rotate(-4deg);
}

.back-button::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 9px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  vertical-align: 1px;
}

.query-portal {
  padding-top: clamp(44px, 7vw, 82px);
  background: linear-gradient(145deg, #ffffff 0%, #2a8ee5 58%, #3c99d7 100%);
}

.portal-brand {
  margin-bottom: 22px;
}

.query-portal h1 {
  max-width: 900px;
  margin-inline: auto;
  font-size: clamp(28px, 3.5vw, 46px);
  line-height: 1.2;
  text-wrap: balance;
}

.exam-tabs {
  min-height: 76px;
  margin-bottom: 24px;
  padding: 8px 20px;
  gap: 8px;
  border: 1px solid rgba(16, 61, 91, 0.08);
  border-radius: var(--ui-radius);
}

.exam-tabs button {
  min-height: 58px;
  padding: 0 16px 8px;
  border-radius: 8px;
  font-size: clamp(16px, 1.6vw, 21px);
  font-weight: 800;
  transition: color 180ms ease, background-color 180ms ease;
}

.exam-tabs button:hover {
  color: var(--ui-primary);
  background: #f0f7fa;
}

.exam-tabs button.active {
  color: var(--ui-primary);
  background: #edf7f8;
}

.exam-tabs button.active::after {
  right: 16px;
  left: 16px;
  height: 4px;
  border-radius: 4px;
  background: var(--ui-accent);
}

.portal-sub-banner {
  min-height: 68px;
  margin-bottom: 18px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(4, 41, 74, 0.18);
}

.portal-sub-banner strong {
  font-size: 24px;
}

.portal-sub-banner span {
  font-size: 16px;
}

.service-grid {
  gap: 18px;
}

.service-card {
  min-height: 166px;
  padding: 26px 26px;
  border-width: 2px;
  border-color: rgba(255, 255, 255, 0.5);
  background: linear-gradient(135deg, #f6fbff 0%, #d9edf5 100%);
  box-shadow: 0 12px 28px rgba(7, 55, 91, 0.16);
}

.service-card:hover,
.service-card:focus-visible,
.service-card:active {
  border-color: var(--ui-accent);
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(7, 55, 91, 0.23);
}

.card-copy {
  gap: 20px;
}

.card-copy strong {
  font-size: clamp(20px, 1.8vw, 27px);
}

.card-copy em {
  width: 142px;
  height: 46px;
  border-color: #b7d0da;
  color: var(--ui-primary);
  font-size: 17px;
}

.card-copy em::before {
  width: 13px;
  height: 13px;
  margin-right: 8px;
  border-width: 1.5px;
}

body[data-page="apply"] .system-panel,
body[data-page="preview"] .system-panel,
body[data-page="verify"] .system-panel {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(213, 225, 232, 0.95);
  box-shadow: var(--ui-shadow);
}

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

.section-heading p {
  color: var(--ui-accent);
  letter-spacing: 0.08em;
}

.section-heading h2 {
  color: var(--ui-ink);
  font-size: clamp(26px, 3vw, 34px);
}

.certificate-form {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
  box-shadow: 0 10px 26px rgba(16, 61, 91, 0.08);
}

.certificate-form label,
.verify-box label {
  color: var(--ui-ink);
  font-size: 15px;
}

.certificate-form input,
.certificate-form select,
.verify-box input {
  min-height: 48px;
  border-color: #b9cbd5;
  border-radius: 8px;
  color: var(--ui-ink);
  background: #fbfdfe;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.certificate-form input:hover,
.certificate-form select:hover,
.verify-box input:hover {
  border-color: #7da6b5;
}

.certificate-form input:focus,
.certificate-form select:focus,
.verify-box input:focus {
  outline: none;
  border-color: var(--ui-accent);
  box-shadow: 0 0 0 4px rgba(8, 127, 140, 0.14);
  background: #ffffff;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-height: 48px;
  border-radius: 8px;
  transition: color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.primary-action {
  background: var(--ui-primary);
}

.primary-action:hover,
.primary-action:active {
  background: var(--ui-primary-dark);
  box-shadow: 0 7px 16px rgba(15, 71, 117, 0.22);
  transform: translateY(-1px);
}

.secondary-action {
  border: 1px solid #b7cbd6;
  color: var(--ui-primary);
  background: #f0f7f9;
}

.secondary-action:hover,
.secondary-action:active {
  border-color: var(--ui-accent);
  color: var(--ui-primary-dark);
  background: var(--ui-accent-soft);
}

.query-result {
  border: 1px solid var(--ui-border);
  background: #f5fafb;
}

.query-result.success {
  border-left-color: #087f62;
  background: #f0faf6;
}

.query-result.error {
  border-left-color: #b42318;
  color: #8a1c13;
}

.validity-note,
.empty-state {
  color: var(--ui-muted);
}

.certificate-stage {
  border: 1px solid var(--ui-border);
  background: #dce9ee;
}

.pdf-toolbar {
  background: #f4f9fa;
}

.verify-result-page {
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
  box-shadow: 0 10px 26px rgba(16, 61, 91, 0.08);
}

@media (max-width: 760px) {
  .main-nav {
    gap: 6px;
  }

  .main-nav a {
    padding: 0 8px;
    font-size: 16px !important;
  }

  .back-button {
    padding: 0 10px;
    font-size: 15px;
  }

  body[data-page="verify"] .site-header {
    display: flex;
  }

  body[data-page="verify"] .light-panel {
    padding-top: 28px;
  }

  .verify-mobile-brand,
  .verify-mobile-page-title {
    display: none;
  }

  .query-portal h1 {
    font-size: clamp(25px, 7vw, 34px);
  }

  .exam-tabs {
    min-height: 64px;
    padding: 6px 10px;
    gap: 2px;
  }

  .exam-tabs button {
    min-height: 50px;
    padding-inline: 12px;
    font-size: 16px;
  }

  .portal-sub-banner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-height: 72px;
  }

  .portal-sub-banner strong {
    font-size: 21px;
  }

  .portal-sub-banner span {
    font-size: 14px;
  }

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

  .service-card {
    min-height: 142px;
  }

  body[data-page="apply"] .site-header,
  body[data-page="preview"] .site-header,
  body[data-page="verify"] .site-header {
    width: calc(100% - 24px);
    margin-top: 12px;
    padding: 12px 14px;
  }

  body[data-page="apply"] .brand-copy,
  body[data-page="preview"] .brand-copy,
  body[data-page="verify"] .brand-copy {
    width: 178px;
    height: 48px;
  }

  body[data-page="apply"] .brand .seal,
  body[data-page="preview"] .brand .seal,
  body[data-page="verify"] .brand .seal {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  body[data-page="apply"] .system-panel,
  body[data-page="preview"] .system-panel,
  body[data-page="verify"] .system-panel {
    width: calc(100% - 24px);
    margin-top: 18px;
    padding: 28px 14px 42px;
    border-radius: 12px;
  }

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

  .wide-field {
    grid-column: auto;
  }

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

  .form-actions button {
    width: 100%;
  }

  .certificate-form {
    padding: 18px;
  }
}

@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;
  }
}

/* 核验结果移动端最终覆盖：资源路径和桌面规则不能挤压身份证号。 */
@media (max-width: 760px) {
  body[data-page="verify"] .site-header {
    display: none;
  }

  body[data-page="verify"] .light-panel {
    width: 100%;
    min-height: 100vh;
    padding: 28px 12px 40px;
    background: linear-gradient(180deg, #62b6e7 0%, #367fcb 100%);
  }

  body[data-page="verify"] .verify-mobile-brand,
  body[data-page="verify"] .verify-mobile-page-title {
    display: flex;
  }

  body[data-page="verify"] .verify-mobile-page-title {
    display: block;
  }

  body[data-page="verify"] .verify-result-page {
    width: 100%;
    min-height: auto;
    padding: 28px 18px 32px;
    border-radius: 10px;
    box-shadow: 0 16px 34px rgba(15, 77, 139, 0.18);
  }

  body[data-page="verify"] .verify-result-page h2 {
    font-size: clamp(25px, 7vw, 34px);
    line-height: 1.3;
  }

  body[data-page="verify"] .verify-main-text {
    margin: 34px 0 24px;
    font-size: clamp(23px, 7vw, 32px);
    line-height: 1.55;
    text-align: left;
  }

  body[data-page="verify"] .verify-info-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
    padding-bottom: 22px;
  }

  body[data-page="verify"] .verify-fields {
    width: 100%;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 18px 12px;
    font-size: clamp(17px, 5vw, 22px);
  }

  body[data-page="verify"] .verify-fields strong {
    min-width: 0;
    font-size: clamp(17px, 5vw, 22px);
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  body[data-page="verify"] .valid-stamp-img {
    position: static;
    width: min(158px, 46vw);
    max-width: 100%;
    align-self: center;
    margin: 0;
  }

  body[data-page="verify"] .verify-actions,
  body[data-page="verify"] .verify-download,
  body[data-page="verify"] .verify-back {
    width: 100%;
  }

  body[data-page="verify"] .verify-download,
  body[data-page="verify"] .verify-back {
    min-height: 52px;
    margin-top: 0;
    font-size: 18px;
  }
}

/* Final portal adjustments */

/* 统一所有考试栏目与“普通高考”一致的蓝色视觉基准。 */
:root {
  --ui-primary: #155b98;
  --ui-primary-dark: #0b4278;
  --ui-accent: #1f73ff;
  --ui-accent-soft: #eaf3ff;
}

.query-portal,
.exam-panel,
.portal-shell {
  background: transparent;
}

.query-portal {
  background: linear-gradient(145deg, #ffffff 0%, #2a8ee5 58%, #3c99d7 100%);
}

.exam-tabs button:hover {
  color: var(--ui-primary);
  background: #edf5ff;
}

.exam-tabs button.active {
  color: var(--ui-primary);
  background: #eaf3ff;
}

.exam-tabs button.active::after {
  background: linear-gradient(90deg, #1f73ff 0%, #4e9bff 100%);
}

/* 卡片使用蓝紫渐变描边，动效只改变位置、阴影和描边透明度，避免生硬跳变。 */
.service-card {
  isolation: isolate;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 320ms cubic-bezier(0.22, 1, 0.36, 1), border-color 320ms ease;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 0;
  padding: 2px;
  border-radius: inherit;
  background: linear-gradient(120deg, #2d75ff 0%, #7c83ff 42%, #c77dff 72%, #ff86c8 100%);
  opacity: 0;
  pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: opacity 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover,
.service-card:focus-visible,
.service-card:active {
  border-color: rgba(255, 255, 255, 0.75);
  transform: translateY(-4px) scale(1.008);
  box-shadow: 0 0 0 3px rgba(116, 131, 255, 0.12), 0 20px 38px rgba(18, 94, 174, 0.24);
  background:
    linear-gradient(135deg, #f6fbff 0%, #d9edf5 100%) padding-box,
    linear-gradient(120deg, #2d75ff 0%, #7c83ff 42%, #c77dff 72%, #ff86c8 100%) border-box;
}

.service-card:hover::after,
.service-card:focus-visible::after,
.service-card:active::after {
  opacity: 1;
}

.card-copy em::before {
  width: 20px;
  height: 20px;
  margin-right: 9px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 10.5 21 3l-5.25 18-4.1-7.2L3 10.5Zm8.65 3.3L21 3' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 10.5 21 3l-5.25 18-4.1-7.2L3 10.5Zm8.65 3.3L21 3' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  clip-path: none;
  transform: translateX(0);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.card-copy em {
  transition: color 260ms ease, background-color 260ms ease, border-color 260ms ease, box-shadow 320ms ease, transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover .card-copy em::before,
.service-card:focus-visible .card-copy em::before,
.service-card:active .card-copy em::before {
  transform: translateX(3px) rotate(-5deg);
}

.card-description {
  display: block;
  max-width: 360px;
  color: #526579;
  font-size: 15px;
  line-height: 1.65;
  font-weight: 500;
}

.card-copy:has(.card-description) {
  gap: 10px;
}

@media (prefers-reduced-motion: reduce) {
  .service-card,
  .service-card::after,
  .card-copy em,
  .card-copy em::before {
    transition: none;
  }
}
.main-nav a.active::after {
  display: none;
}

.main-nav a.active {
  color: var(--ui-primary) !important;
  background: var(--ui-accent-soft);
}

.exam-tabs {
  width: min(1080px, calc(100% - 24px));
  padding-inline: 14px;
}

.query-portal h1 {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(23px, 2.7vw, 36px);
}

/* 顶部栏目与下方卡片使用同一宽度基准，并让栏目左右视觉对称。 */
.exam-tabs {
  justify-content: center;
}

.service-grid {
  width: min(1080px, calc(100% - 24px));
}

.portal-sub-banner {
  width: min(1080px, calc(100% - 24px));
}

body[data-page="apply"] .apply-form-heading {
  width: 100%;
  margin: 0 0 28px;
  text-align: center;
}

body[data-page="apply"] .apply-form-heading p {
  margin-bottom: 8px;
}

body[data-page="apply"] .apply-form-heading h2 {
  font-size: clamp(26px, 3vw, 34px);
}

.certificate-form select {
  appearance: auto;
  cursor: pointer;
}

.service-warning {
  margin: 18px 0 0;
  color: #d92d20;
  font-size: 15px;
  line-height: 1.75;
  font-weight: 700;
}

/* 成绩/录取证明统一采用纵向必填表单。 */
body[data-page="apply"] .query-workspace {
  width: min(640px, 100%);
}

body[data-page="apply"] .form-grid {
  grid-template-columns: 1fr;
  gap: 18px;
}

body[data-page="apply"] .wide-field {
  grid-column: auto;
}

body[data-page="apply"] .certificate-form label.required-field {
  position: relative;
  padding-left: 18px;
}

body[data-page="apply"] .certificate-form label.required-field::before {
  content: "*";
  position: absolute;
  top: 0;
  left: 0;
  color: #d92d20;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
}

body[data-page="apply"] .form-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

body[data-page="apply"] .form-actions > * {
  width: 100%;
}

.verify-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

body[data-page="apply"] .certificate-form input:focus {
  box-shadow: 0 0 0 4px rgba(31, 115, 255, 0.14);
}

@media (max-width: 760px) {
  .query-portal h1 {
    white-space: normal;
    font-size: clamp(25px, 7vw, 34px);
  }

  .exam-tabs {
    width: 100%;
    justify-content: flex-start;
  }

  .service-warning {
    font-size: 14px;
  }
}

/* 栏目切换：六个栏目共用同一个内容宽度，并按点击方向滑入。 */
.exam-panel {
  width: min(1080px, calc(100% - 24px));
  margin-inline: auto;
}

.exam-panel .portal-sub-banner,
.exam-panel .service-grid {
  width: 100%;
}

.exam-panel.active.panel-enter-from-right {
  animation: exam-panel-enter-from-right 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.exam-panel.active.panel-enter-from-left {
  animation: exam-panel-enter-from-left 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes exam-panel-enter-from-right {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes exam-panel-enter-from-left {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 核验页：标题、提示和查询区保持更紧凑的视觉层级，同时放大表单存在感。 */
@media (min-width: 761px) {
  .verify-result-page {
    width: min(820px, 100%);
    padding: 34px 72px 56px;
  }

  .verify-result-page h2 {
    font-size: 40px;
  }

  .verify-main-text {
    margin: 42px 0 36px;
    font-size: 30px;
  }

  .verify-box {
    width: min(640px, 100%);
    gap: 18px;
  }

  .verify-box label {
    gap: 10px;
    font-size: 18px;
  }

  .verify-box input {
    min-height: 56px;
    padding-inline: 16px;
    font-size: 18px;
  }

  .verify-box .primary-action {
    min-height: 56px;
    font-size: 20px;
  }
}

/* Final mobile overrides must stay after the legacy portal rules above. */
@media (max-width: 760px) {
  body[data-page="verify"] .site-header { display: none !important; }
  body[data-page="verify"] .verify-mobile-brand { display: flex !important; }
  body[data-page="verify"] .verify-mobile-page-title { display: block !important; }
}

/* 成绩查询：独立查询页 + 独立结果页，保持蓝白信任感与清晰反馈。 */
body[data-page="score-query"],
body[data-page="score-result"] {
  min-height: 100vh;
  background: linear-gradient(180deg, #5ca9de 0%, #3b86cc 100%);
}

body[data-page="score-query"] .system-panel,
body[data-page="score-result"] .system-panel {
  width: min(1180px, calc(100% - 40px));
  margin: 28px auto 80px;
  padding: 56px 56px 64px;
  border: 1px solid #cfe0ec;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(16, 87, 153, 0.16);
}

body[data-page="score-query"] .score-query-page {
  min-height: calc(100vh - 88px);
  display: grid;
  align-content: start;
}

body[data-page="score-query"] .score-query-shell {
  width: min(940px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

body[data-page="score-query"] .score-query-heading {
  margin: 0;
  text-align: center;
}

body[data-page="score-query"] .score-query-heading p {
  margin: 0 0 8px;
  color: #2f78ff;
  font-size: 18px;
  font-weight: 800;
}

body[data-page="score-query"] .score-query-heading h1 {
  margin: 0;
  color: #13233d;
  font-size: clamp(40px, 4.7vw, 62px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

body[data-page="score-query"] .score-query-card {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 40px 48px 36px;
  border: 1px solid #d1e1ef;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 255, 0.96));
  box-shadow: 0 16px 30px rgba(38, 84, 130, 0.1);
}

body[data-page="score-query"] .score-query-form {
  width: 100%;
}

body[data-page="score-query"] .query-field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

body[data-page="score-query"] .score-query-form label.required-field {
  position: relative;
  display: grid;
  gap: 10px;
  padding-left: 20px;
  color: #13324d;
  font-size: 18px;
  font-weight: 800;
}

body[data-page="score-query"] .score-query-form label.required-field::before {
  content: "*";
  position: absolute;
  top: -2px;
  left: 0;
  color: #e63628;
  font-size: 18px;
  font-weight: 900;
}

body[data-page="score-query"] .score-query-form input {
  min-height: 58px;
  border: 1px solid #c7d9ea;
  border-radius: 14px;
  padding: 0 18px;
  color: #17304a;
  font-size: 18px;
  background: #ffffff;
}

body[data-page="score-query"] .score-query-form input:focus {
  outline: 3px solid rgba(31, 115, 255, 0.14);
  border-color: #2a77ff;
  box-shadow: 0 0 0 1px rgba(42, 119, 255, 0.12);
}

body[data-page="score-query"] .captcha-row {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 14px;
  align-items: stretch;
}

body[data-page="score-query"] .captcha-display {
  display: grid;
  place-items: center;
  min-height: 58px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #c7d9ea;
  border-radius: 14px;
  background: #f8fbff;
  cursor: pointer;
}

body[data-page="score-query"] .captcha-display canvas {
  display: block;
  width: 150px;
  height: 56px;
}

body[data-page="score-query"] .query-actions {
  display: flex;
  margin-top: 26px;
}

body[data-page="score-query"] .query-actions .primary-action {
  width: 100%;
  min-height: 62px;
  border-radius: 14px;
  font-size: 22px;
}

body[data-page="score-query"] .score-query-feedback {
  margin: 16px 0 0;
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 700;
  line-height: 1.7;
}

body[data-page="score-query"] .score-query-feedback.neutral {
  color: #126da9;
  background: #eef7ff;
  border: 1px solid #cfe0ec;
}

body[data-page="score-query"] .score-query-feedback.success {
  color: #0f6b57;
  background: #eefaf5;
  border: 1px solid #bfe9d8;
}

body[data-page="score-query"] .score-query-feedback.error {
  color: #b42318;
  background: #fff5f4;
  border: 1px solid #f4c7c3;
}

body[data-page="score-query"] .score-query-warning {
  margin: 18px 0 0;
  color: #d92d20;
  font-size: 15px;
  line-height: 1.75;
  font-weight: 800;
}

body[data-page="score-result"] .score-result-page {
  min-height: calc(100vh - 88px);
  padding: 0;
  display: grid;
  align-items: start;
}

body[data-page="score-result"] .score-result-shell {
  width: min(1040px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

body[data-page="score-result"] .score-result-empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 48px 32px;
  border: 1px solid #cfe0ec;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 255, 0.95));
  box-shadow: 0 12px 30px rgba(38, 84, 130, 0.1);
  text-align: center;
}

body[data-page="score-result"] .score-result-empty strong {
  color: #13233d;
  font-size: 28px;
}

body[data-page="score-result"] .score-result-empty p {
  margin: 0;
  color: #58708a;
  line-height: 1.7;
}

body[data-page="score-result"] .score-result-card {
  position: relative;
  overflow: hidden;
  padding: 56px 44px 44px;
  border: 1px solid #d0e2f0;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.95));
  box-shadow: 0 18px 42px rgba(16, 87, 153, 0.14);
}

body[data-page="score-result"] .score-result-watermark {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 30px 34px;
  opacity: 0.08;
  pointer-events: none;
  transform: rotate(-8deg);
  transform-origin: center;
}

body[data-page="score-result"] .score-result-watermark span {
  color: #3f6f9e;
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
}

body[data-page="score-result"] .score-result-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 22px;
}

body[data-page="score-result"] .score-result-content h1 {
  margin: 0 0 4px;
  color: #2f6aa8;
  font-size: clamp(28px, 3.1vw, 42px);
  line-height: 1.15;
  text-align: center;
  letter-spacing: -0.02em;
}

body[data-page="score-result"] .score-result-meta {
  margin: -2px 0 0;
  color: #53697f;
  font-size: 18px;
  line-height: 1.8;
  font-weight: 700;
  text-align: center;
  word-break: break-word;
}

body[data-page="score-result"] .score-result-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.72);
}

body[data-page="score-result"] .score-result-table th,
body[data-page="score-result"] .score-result-table td {
  padding: 18px 18px;
  border: 1px solid #cfe0ec;
  font-size: 18px;
  line-height: 1.55;
}

body[data-page="score-result"] .score-result-table th {
  width: 240px;
  color: #15324e;
  text-align: left;
  background: #eef5ff;
  font-weight: 800;
}

body[data-page="score-result"] .score-result-table td {
  color: #1b3550;
  background: #ffffff;
}

body[data-page="score-result"] .score-result-note {
  margin: 0;
  color: #d92d20;
  font-size: 16px;
  line-height: 1.8;
  font-weight: 800;
}

body[data-page="score-result"] .score-result-actions {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

body[data-page="score-result"] .score-result-actions .primary-action {
  min-width: 220px;
  min-height: 56px;
  font-size: 20px;
}

@media (max-width: 760px) {
  body[data-page="score-query"] .system-panel,
  body[data-page="score-result"] .system-panel {
    width: calc(100% - 24px);
    margin: 16px auto 40px;
    padding: 28px 18px 36px;
  }

  body[data-page="score-query"] .score-query-shell,
  body[data-page="score-result"] .score-result-shell {
    width: 100%;
  }

  body[data-page="score-query"] .score-query-card {
    width: 100%;
    padding: 28px 18px 24px;
  }

  body[data-page="score-query"] .score-query-heading h1 {
    font-size: clamp(30px, 8vw, 42px);
  }

  body[data-page="score-query"] .captcha-row {
    grid-template-columns: 1fr;
  }

  body[data-page="score-query"] .captcha-display {
    width: 100%;
  }

  body[data-page="score-query"] .score-query-form label.required-field {
    font-size: 16px;
  }

  body[data-page="score-query"] .score-query-form input {
    min-height: 52px;
    font-size: 16px;
  }

  body[data-page="score-query"] .query-actions .primary-action {
    min-height: 56px;
    font-size: 19px;
  }

  body[data-page="score-result"] .score-result-card {
    padding: 30px 16px 24px;
  }

  body[data-page="score-result"] .score-result-content h1 {
    font-size: clamp(24px, 7vw, 32px);
  }

  body[data-page="score-result"] .score-result-meta {
    font-size: 15px;
    line-height: 1.7;
  }

  body[data-page="score-result"] .score-result-table th {
    width: 34%;
  }

  body[data-page="score-result"] .score-result-table th,
  body[data-page="score-result"] .score-result-table td {
    padding: 14px 12px;
    font-size: 16px;
  }

  body[data-page="score-result"] .score-result-note {
    font-size: 15px;
  }
}

@media (max-width: 760px) {
  .exam-panel {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .exam-panel.active.panel-enter-from-right,
  .exam-panel.active.panel-enter-from-left {
    animation: none;
  }
}

/* 核验未匹配时，查询按钮和返回按钮保持同宽、分行并留出间距，避免重叠。 */
.verify-result-page.error .verify-box,
.verify-result-page.error .verify-detail {
  width: min(640px, 100%);
}

.verify-result-page.error .verify-box {
  margin-bottom: 18px;
}

.verify-result-page.error .verify-detail {
  display: grid;
  gap: 18px;
}

.verify-result-page.error .verify-back {
  position: static;
  display: flex;
  width: 100%;
  min-height: 56px;
  margin: 0;
  align-items: center;
  justify-content: center;
}

/* 核验成功页仅展示核验信息，不提供证明下载入口；信息字号适度收敛。 */
@media (min-width: 761px) {
  .verify-result-page.success h2 {
    font-size: 36px;
  }

  .verify-result-page.success .verify-main-text {
    margin: 32px 0 28px;
    font-size: 26px;
  }

  .verify-result-page.success .verify-fields {
    gap: 14px 8px;
    font-size: 18px;
  }

  .verify-result-page.success .verify-fields strong {
    font-size: 18px;
  }

  .verify-result-page.success .valid-stamp-img {
    width: 160px;
  }

  .verify-result-page.success .verify-actions {
    margin-top: 18px;
  }

  .verify-result-page.success .verify-back {
    min-height: 52px;
    font-size: 18px;
  }
}

/* Final mobile overrides must remain after all legacy portal rules. */
@media (max-width: 760px) {
  body[data-page="verify"] .site-header { display: none !important; }
  body[data-page="verify"] .verify-mobile-brand { display: flex !important; }
  body[data-page="verify"] .verify-mobile-page-title { display: block !important; }
}

/* 扫码核验顶部使用正式网站 logo，不使用临时文字徽标。 */
@media (max-width: 760px) {
  body[data-page="verify"] .verify-mobile-logo {
    display: block !important;
    width: 64px;
    height: 64px;
    padding: 3px;
    object-fit: contain;
    border: 3px solid rgba(255,255,255,.9);
    border-radius: 50%;
    background: rgba(255,255,255,.96);
  }
}
