:root {
  --bg: #f7f4ee;
  --bg-alt: #efe8dc;
  --ink: #142033;
  --muted: #5c6675;
  --line: #e4dac8;
  --brand: #123a63;
  --brand-dark: #0b2744;
  --accent: #c43d1a;
  --accent-hot: #e24a22;
  --gold: #c9a227;
  --paper: #fffdf9;
  --ok: #1f7a4d;
  --err: #b42318;
  --header-h: 72px;
  --shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  --radius: 4px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

button,
.btn,
.header-cta,
.nav-toggle {
  touch-action: manipulation;
}

a,
button {
  -webkit-tap-highlight-color: rgba(196, 61, 26, 0.18);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #f3f4f6;
  line-height: 1.65;
}

a {
  color: var(--brand);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.wrap {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--header-h);
  padding-top: env(safe-area-inset-top, 0px);
  background: #163a5c;
  color: #fff;
  box-shadow: none;
  border-bottom: 1px solid #0f2c47;
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
}

body.nav-open {
  overflow: hidden;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  flex: 0 0 auto;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 2px;
  background: #b42318;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 16px;
}

.brand-text small {
  color: #d7e6f5;
  font-size: 12px;
}

.main-nav {
  display: flex;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.main-nav a {
  color: #d7e6f5;
  padding: 8px 11px;
  border-radius: 0;
  font-size: 14px;
  white-space: nowrap;
}

.main-nav a.is-active,
.main-nav a:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.header-cta {
  flex: 0 0 auto;
  background: #b42318;
  color: #fff;
  padding: 8px 16px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.hero {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  color: #fff;
  background-color: #163a5c;
  background-image:
    linear-gradient(90deg, rgba(12, 32, 52, 0.88) 0%, rgba(12, 32, 52, 0.55) 70%),
    url("../images/hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "copy"
    "stats";
  gap: 36px;
  align-items: end;
  padding: 64px 0 56px;
}

.hero-copy {
  grid-area: copy;
  max-width: 40em;
}

.hero-visual {
  grid-area: visual;
  position: relative;
  min-height: 340px;
}

.hero-stats {
  grid-area: stats;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 14px;
  color: #d7e2ee;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.25;
  font-weight: 700;
}

.lead {
  margin: 0 0 28px;
  max-width: 40em;
  font-size: 17px;
  color: #dce7f2;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 2px;
  border: 0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: #b42318;
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 8px 0 0;
  padding: 0;
}

.hero-stats li {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  padding: 14px 16px;
}

.hero-stats strong {
  display: block;
  font-size: 24px;
}

.hero-stats span {
  color: #d7e6f5;
  font-size: 13px;
}

.diploma {
  position: absolute;
  width: 210px;
  min-height: 268px;
  padding: 22px 18px 18px;
  background:
    linear-gradient(#fffdf8, #fffdf8) padding-box,
    linear-gradient(160deg, #8b1c16, #d4a017, #8b1c16) border-box;
  border: 8px solid transparent;
  border-radius: 10px;
  color: var(--ink);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.diploma p {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.diploma strong {
  display: block;
  margin: 10px 0 18px;
  font-size: 22px;
  line-height: 1.3;
}

.diploma small {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
}

.diploma-grad {
  left: 8px;
  top: 18px;
  transform: rotate(-8deg);
}

.diploma-degree {
  right: 4px;
  top: 58px;
  z-index: 2;
  transform: rotate(7deg);
}

.seal {
  width: 58px;
  height: 58px;
  margin: 0 auto;
  border-radius: 50%;
  border: 3px solid var(--accent);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 22px;
  box-shadow: inset 0 0 0 5px rgba(196, 61, 26, 0.15);
}

.seal-gold {
  border-color: var(--gold);
  color: #9a7a12;
  box-shadow: inset 0 0 0 5px rgba(201, 162, 39, 0.18);
}

.section {
  padding: 84px 0;
}

.section-alt {
  background: #eceff3;
}

.kicker {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(18, 58, 99, 0.08);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-head.left {
  text-align: left;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0 auto;
  max-width: 40em;
  color: var(--muted);
}

.section-head.left p {
  margin: 0;
}

.policy-grid,
.contact-grid,
.dual-pair {
  display: grid;
  gap: 20px;
}

.policy-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  counter-reset: policy;
}

.policy-item,
.inquiry-form,
.contact-grid p,
.dual-cert,
.cert,
.steps li {
  background: #fff;
  border: 1px solid #e3e6ea;
  border-radius: var(--radius);
}

.policy-item {
  padding: 22px 20px;
  border-left: 3px solid var(--brand);
}

.policy-item h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.policy-item h3::before {
  counter-increment: policy;
  content: counter(policy, decimal-leading-zero);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.policy-item h3,
.cert h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.policy-item p,
.cert p {
  margin: 0;
  color: var(--muted);
}

.dual-cert {
  padding: 24px;
}

.dual-lead {
  margin: 0 0 28px;
  font-size: 18px;
  color: var(--ink);
}

.dual-pair {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.cert {
  padding: 20px;
}

.cert-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.dual-foot {
  margin: 24px 0 0;
  color: var(--muted);
}

.inquire-notes {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  position: relative;
}

.steps li {
  padding: 24px;
}

.steps span {
  display: block;
  margin-bottom: 8px;
  color: #b42318;
  font-weight: 700;
  font-size: 14px;
}

.steps h3 {
  margin: 0 0 8px;
}

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

.inquire-band {
  background: #163a5c;
  color: #fff;
}

.inquire-band .kicker {
  background: rgba(255, 255, 255, 0.1);
  color: #ffc48a;
}

.inquire-band .section-head p,
.inquire-band .inquire-notes {
  color: #d5e2ef;
}

.inquire-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 40px;
  align-items: start;
}

.inquiry-form {
  padding: 28px;
  display: grid;
  gap: 14px;
}

.inquiry-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.inquiry-form input,
.inquiry-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 11px 12px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

.inquiry-form input:focus,
.inquiry-form textarea:focus {
  outline: 2px solid var(--brand);
  border-color: var(--brand);
}

.inquiry-form .btn-primary {
  width: 100%;
}

.form-feedback {
  margin: 0;
  min-height: 24px;
  font-size: 14px;
}

.form-feedback.is-ok {
  color: var(--ok);
}

.form-feedback.is-err {
  color: var(--err);
}

.contact-grid {
  grid-template-columns: minmax(240px, 0.8fr) 1.2fr;
  align-items: stretch;
}

.contact-grid p {
  margin: 0;
  padding: 20px 22px;
}

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

.contact-grid a {
  font-weight: 700;
  font-size: 18px;
}

.wechat-card {
  margin: 0;
  padding: 24px 22px;
  text-align: center;
  background: #fff;
  border: 1px solid #e3e6ea;
  border-radius: var(--radius);
}

.wechat-card figcaption {
  margin: 0 0 12px;
  font-weight: 700;
}

.wechat-card img {
  display: block;
  width: 180px;
  height: 180px;
  margin: 0 auto 12px;
  background: #fff;
  border-radius: 8px;
}

.wechat-card p {
  padding: 0;
  color: var(--muted);
  font-size: 14px;
  box-shadow: none;
  background: transparent;
  border: 0;
}

.contact-side {
  display: grid;
  gap: 20px;
}

.site-footer {
  background: #163a5c;
  color: #c9d4e0;
  padding: 24px 0;
  font-size: 13px;
}

.site-footer p {
  margin: 0 0 6px;
}

@media (max-width: 1080px) {
  body {
    background-attachment: scroll;
  }

  .site-header {
    backdrop-filter: none;
  }

  .header-inner {
    gap: 12px;
    position: relative;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    z-index: 40;
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
    min-height: calc(100svh - var(--header-h));
    padding: 16px 20px calc(24px + env(safe-area-inset-bottom, 0px));
    background: #0b2744;
    overflow: auto;
  }

  .main-nav a {
    display: block;
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 12px;
  }

  body.nav-open .main-nav {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 40px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    max-width: none;
  }
}

@media (max-width: 960px) {
  .policy-grid,
  .steps,
  .inquire-grid,
  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .dual-pair {
    grid-template-columns: 1fr;
  }

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

  .hero h1 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 60px;
  }

  .wrap {
    width: calc(100% - 28px);
  }

  .brand-text small {
    display: none;
  }

  .policy-grid,
  .dual-pair,
  .steps,
  .inquire-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    min-height: calc(100svh - var(--header-h));
    align-items: flex-start;
  }

  .hero-inner {
    padding: 28px 0 36px;
    gap: 18px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .lead {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .eyebrow {
    font-size: 12px;
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-stats li {
    padding: 12px 14px;
  }

  .hero-stats strong {
    font-size: 20px;
  }

  .section {
    padding: 48px 0;
  }

  .section-head {
    margin-bottom: 24px;
  }

  .section-head h2 {
    font-size: 22px;
  }

  .dual-cert {
    padding: 20px 16px;
  }

  .dual-lead {
    font-size: 16px;
  }

  .inquiry-form {
    padding: 20px 16px;
  }

  .inquiry-form input,
  .inquiry-form textarea {
    font-size: 16px;
  }

  .wechat-card img {
    width: 160px;
    height: 160px;
  }

  .site-header .header-cta {
    display: none;
  }

  .admin-body .header-cta {
    display: inline-flex;
    font-size: 13px;
    padding: 6px 12px;
  }

  .site-footer {
    padding: 24px 0 calc(24px + env(safe-area-inset-bottom, 0px));
  }
}
