:root {
  --blue: rgb(24, 77, 141);
  --blue-2: rgb(18, 60, 112);
  --ink: #0b1220;
  --muted: #5b667a;
  --bg: #ffffff;
  --tint: #f4f8ff;
  --line: rgba(24, 77, 141, 0.16);
  --shadow: 0 10px 30px rgba(11, 18, 32, 0.08);
  --radius: 16px;
  --radius-sm: 12px;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    "PingFang SC",
    "Noto Sans CJK SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 14px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand-link:hover .brand-title {
  color: var(--blue-2);
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 24px rgba(24, 77, 141, 0.22);
}

.brand-title {
  font-weight: 750;
  font-size: 15px;
  line-height: 1.2;
}
.brand-subtitle {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.2;
}

.nav {
  display: grid;
  gap: 10px;
}

.nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.nav-link {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 12px;
  display: inline-flex;
  gap: 10px;
  align-items: baseline;
  background: #fff;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}
.nav-link:hover {
  transform: translateY(-1px);
  border-color: rgba(24, 77, 141, 0.4);
  background: linear-gradient(180deg, rgba(24, 77, 141, 0.06), rgba(24, 77, 141, 0.02));
}

.nav-link-primary {
  border-color: rgba(24, 77, 141, 0.4);
  background: linear-gradient(180deg, rgba(24, 77, 141, 0.06), rgba(24, 77, 141, 0.02));
}

.nav-pill {
  font-size: 13px;
  border: 1px solid transparent;
  background: rgba(24, 77, 141, 0.06);
  padding: 8px 10px;
  border-radius: 999px;
  transition: background 120ms ease, border-color 120ms ease;
}
.nav-pill:hover {
  background: rgba(24, 77, 141, 0.1);
  border-color: rgba(24, 77, 141, 0.2);
}

.zh {
  font-weight: 650;
}
.en {
  font-size: 12px;
  color: var(--muted);
}

.section {
  padding: 56px 0;
}
.section-tint {
  background: var(--tint);
  border-top: 1px solid rgba(24, 77, 141, 0.08);
  border-bottom: 1px solid rgba(24, 77, 141, 0.08);
}

.hero-wrap {
  padding-top: 28px;
  padding-bottom: 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: start;
}

.hero-copy {
  padding: 4px 0;
}

.h1 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.02em;
}
.h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.01em;
}
.h3 {
  margin: 0 0 8px;
  font-size: 16px;
}
.h4 {
  margin: 0 0 6px;
  font-size: 15px;
}

.lead {
  margin: 0 0 18px;
  color: #26324a;
}

.muted {
  color: var(--muted);
}
.tiny {
  font-size: 12px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 650;
  cursor: pointer;
  display: inline-flex;
  gap: 10px;
  align-items: baseline;
  transition:
    transform 120ms ease,
    box-shadow 120ms ease,
    border-color 120ms ease,
    background 120ms ease,
    color 120ms ease,
    filter 120ms ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(11, 18, 32, 0.14);
}
.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff;
}
.btn-primary:hover {
  filter: brightness(1.06) saturate(1.1);
}
.btn-ghost {
  background: #fff;
  border-color: var(--line);
}
.btn-ghost:hover {
  background: rgba(24, 77, 141, 0.12);
  border-color: rgba(24, 77, 141, 0.35);
  color: var(--blue-2);
}

.hero-card {
  display: none;
  gap: 12px;
}

.hero-banner {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  min-height: 220px;
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-banner.is-hidden {
  display: none;
}

.hero-banner-link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
}

.hero-banner-placeholder {
  height: 100%;
  padding: 18px;
  display: grid;
  gap: 10px;
  align-content: start;
  background:
    radial-gradient(900px 240px at 20% 10%, rgba(24, 77, 141, 0.14), transparent 55%),
    radial-gradient(900px 300px at 80% 120%, rgba(24, 77, 141, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(24, 77, 141, 0.06), rgba(24, 77, 141, 0.02));
}

.hero-banner-badge {
  display: inline-flex;
  width: fit-content;
  gap: 10px;
  align-items: baseline;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(24, 77, 141, 0.2);
  background: rgba(255, 255, 255, 0.7);
}

.hero-banner-title {
  font-weight: 750;
  color: #1b2a44;
}

.hero-banner-hint {
  font-size: 12px;
  color: var(--muted);
}

.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.cards.two {
  grid-template-columns: repeat(2, 1fr);
}
.cards.three {
  grid-template-columns: repeat(3, 1fr);
}

.page-title {
  margin: 0 0 10px;
  font-size: 24px;
  letter-spacing: -0.01em;
}

.form-wrap {
  display: grid;
  gap: 14px;
}

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 10px 26px rgba(11, 18, 32, 0.05);
  font-size: 14px;
}

.form-head {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.fieldset-title {
  margin: 0;
  font-weight: 850;
  color: var(--blue-2);
}

.hint {
  color: #26324a;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

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

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.field label {
  /* font-size: 12px; */
  color: var(--muted);
  font-weight: 650;
}

.control,
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  outline: none;
  background: #fff;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.control:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(24, 77, 141, 0.45);
  box-shadow: 0 0 0 4px rgba(24, 77, 141, 0.12);
}

.choices {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.choice {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: #fff;
  white-space: nowrap;
  cursor: pointer;
}

.choice input {
  margin: 0;
  cursor: pointer;
}

.split {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  align-items: center;
}
.phone {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}
.phone-sep {
  color: var(--muted);
  font-weight: 800;
}

/* Apply page: one item per row + phone stays one line */
.page-apply .form-grid {
  grid-template-columns: 1fr;
  gap: 20px;
}

.page-apply .split {
  grid-template-columns: 1fr;
}

.page-apply #applyForm {
  display: grid;
  gap: 20px;
}

.page-apply #applyForm .field {
  margin-bottom: 0;
}

.page-apply #applyForm .divider {
  margin: 0;
}

@media (max-width: 980px) {
  .page-apply .phone {
    grid-template-columns: 1fr auto 1fr;
  }
  .page-apply .phone-sep {
    display: block;
  }
}

.divider {
  height: 1px;
  background: rgba(24, 77, 141, 0.12);
  margin: 16px 0;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.hidden {
  display: none !important;
}

.req {
  color: #d92d20;
  font-weight: 900;
}

.error-text {
  margin-top: -2px;
  font-size: 12px;
  color: #d92d20;
  font-weight: 650;
}

.control.is-error,
.field input.is-error,
.field select.is-error,
.field textarea.is-error {
  border-color: rgba(217, 45, 32, 0.55);
  box-shadow: 0 0 0 4px rgba(217, 45, 32, 0.12);
}

.choices.is-error {
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(217, 45, 32, 0.35);
  background: rgba(217, 45, 32, 0.04);
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 8px 24px rgba(11, 18, 32, 0.04);
}
.card p {
  margin: 0;
  color: #26324a;
}

.subhead {
  margin: 18px 0 10px;
}

.details {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.details-summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 800;
  color: var(--blue-2);
  background: rgba(24, 77, 141, 0.06);
  list-style: none;
}
.details-summary::-webkit-details-marker {
  display: none;
}
.details-summary::after {
  content: "▾";
  float: right;
  color: var(--blue-2);
}
.details[open] .details-summary::after {
  content: "▴";
}
.details-list {
  margin: 0;
  padding: 12px 18px 16px 36px;
  color: #26324a;
}
.details-list li {
  margin: 10px 0;
}

.list {
  margin: 0;
  padding-left: 18px;
  color: #26324a;
}
.list li {
  margin: 8px 0;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 10px;
}
.steps li {
  counter-increment: step;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px 14px 52px;
  position: relative;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(24, 77, 141, 0.1);
  border: 1px solid rgba(24, 77, 141, 0.22);
  color: var(--blue-2);
  font-weight: 800;
}

.step-title {
  font-weight: 750;
}
.step-body {
  color: #26324a;
}

.fee {
  margin-top: 18px;
  background: rgba(24, 77, 141, 0.05);
  border: 1px solid rgba(24, 77, 141, 0.14);
  border-radius: var(--radius);
  padding: 16px;
}
.fee-head {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.fee-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.fee-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.fee-name {
  font-weight: 750;
}
.fee-price {
  color: var(--blue-2);
  font-weight: 850;
  margin-top: 4px;
}
.fee-note {
  margin-top: 10px;
}

.callout {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.callout-title {
  font-weight: 850;
  color: var(--blue-2);
}
.callout-text {
  margin: 8px 0 0;
  color: #26324a;
  max-width: 64ch;
}
.callout-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.link {
  display: inline-block;
  margin-top: 10px;
  color: var(--blue-2);
  font-weight: 700;
}
.link:hover {
  text-decoration: underline;
}

.contact {
  display: grid;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.contact-title {
  font-weight: 800;
  margin-bottom: 12px;
  color: #1b2a44;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.contact-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.label {
  /* font-size: 12px; */
  color: var(--muted);
}
.value {
  font-weight: 750;
  margin-top: 4px;
}
.contact-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  background: #fff;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.footer-left {
  display: flex;
  gap: 12px;
  align-items: center;
}
.footer-logo {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 850;
  letter-spacing: 0.5px;
  box-shadow: 0 10px 26px rgba(24, 77, 141, 0.22);
}
.footer-meta {
  display: grid;
  gap: 2px;
}
.footer-line {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .cards.two {
    grid-template-columns: 1fr;
  }
  .cards.three {
    grid-template-columns: 1fr;
  }
  .fee-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .phone {
    grid-template-columns: 1fr;
  }
  .phone-sep {
    display: none;
  }
}

@media (max-width: 520px) {
  .nav-link .en,
  .nav-pill .en {
    display: none;
  }
}

.status-certified { background: #e0f7e8; color: #1e7b48; border: 1px solid #b8e0c4; }
.status-candidate { background: #fff3e0; color: #c97e00; border: 1px solid #ffe2b5; }
.status-registered { background: #f0f0f0; color: #8e9eae; border: 1px solid #e2e2e2; }
