:root {
  --bg: #f6f7f4;
  --surface: #ffffff;
  --surface-soft: #eef2f1;
  --text: #233142;
  --muted: #647181;
  --primary: #00274c;
  --primary-dark: #001b36;
  --accent: #8d2631;
  --gold: #c6a96b;
  --border: #d9ddd8;
  --shadow: 0 18px 46px rgba(0, 39, 76, 0.08);
  --radius: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fbfcfb 0%, var(--bg) 100%);
  line-height: 1.68;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { color: var(--muted); margin: 0 0 14px; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 252, 251, 0.9);
  border-bottom: 1px solid rgba(217, 221, 216, 0.86);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand { display: flex; align-items: center; gap: 14px; min-width: 330px; flex: 0 0 auto; }
.brand-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: contain;
  background: white;
  border: 1px solid var(--border);
  box-shadow: 0 10px 28px rgba(0, 39, 76, 0.08);
}

.brand-wordmark strong {
  display: block;
  color: var(--primary);
  font-weight: 800;
  font-size: 1.16rem;
  line-height: 1.12;
}

.brand-wordmark span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  white-space: nowrap;
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav a {
  font-size: 1rem;
  font-weight: 720;
  color: var(--text);
}

.nav a[aria-current='page'],
.nav a:hover { color: var(--accent); }

.nav a.btn,
.btn-cta {
  color: white;
}

.nav a.btn:hover {
  color: white;
}

.btn,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  min-height: 42px;
  padding: 11px 18px;
  font: inherit;
  font-weight: 750;
  letter-spacing: 0;
  cursor: pointer;
}

.btn {
  background: var(--primary);
  color: white;
  box-shadow: 0 12px 30px rgba(0, 39, 76, 0.14);
}

.btn-sm { min-height: 42px; padding: 10px 16px; font-size: 0.96rem; }
.btn-cta { background: linear-gradient(135deg, var(--accent), #b43a49); }
.btn-secondary {
  background: #eef2f6;
  color: var(--primary);
  border: 1px solid var(--border);
  box-shadow: none;
}

.lang-link {
  border: 1px solid var(--border);
  background: white;
  padding: 9px 16px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.hero { padding: 76px 0 62px; }
.hero:not(.hero-premium) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 410px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(217, 221, 216, 0.82);
  background: #f4f5f0;
}
.hero:not(.hero-premium)::before,
.hero:not(.hero-premium)::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero:not(.hero-premium)::before {
  z-index: -2;
  background-image: url('/assets/global-hero-campus-advising.png');
  background-size: cover;
  background-position: 60% center;
  transform: scale(1.015);
}
.hero:not(.hero-premium)::after {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(251, 252, 251, 0.98) 0%, rgba(251, 252, 251, 0.93) 39%, rgba(251, 252, 251, 0.72) 63%, rgba(251, 252, 251, 0.4) 100%),
    linear-gradient(180deg, rgba(0, 39, 76, 0.08) 0%, rgba(141, 38, 49, 0.06) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(310px, 0.72fr);
  gap: 52px;
  align-items: center;
}

.hero-premium {
  position: relative;
  isolation: isolate;
  min-height: clamp(590px, 78svh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
  background: #f5f3ec;
}

.hero-premium::before,
.hero-premium::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-premium::before {
  z-index: -2;
  background-image: url('/assets/global-hero-campus-advising.png');
  background-size: cover;
  background-position: center;
  transform: scale(1.01);
}

.hero-premium::after {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(248, 250, 248, 0.98) 0%, rgba(248, 250, 248, 0.92) 33%, rgba(248, 250, 248, 0.54) 58%, rgba(248, 250, 248, 0.12) 100%),
    linear-gradient(180deg, rgba(0, 39, 76, 0.05) 0%, rgba(141, 38, 49, 0.06) 100%);
}

.hero-premium-inner {
  padding: 72px 0 88px;
}

.hero-premium-copy {
  max-width: 700px;
}

.hero-premium h1 {
  max-width: 760px;
  font-size: clamp(2.85rem, 5.2vw, 4.95rem);
  line-height: 1;
  margin-bottom: 22px;
}

.hero-premium h1 span {
  display: block;
}

html[lang='zh-CN'] .hero-premium h1 {
  max-width: 10.2em;
  font-size: clamp(2.1rem, 5vw, 4.35rem);
  line-height: 1.02;
}

.hero-premium .lead {
  max-width: 57ch;
  color: #35475b;
  font-size: clamp(1.08rem, 1.34vw, 1.28rem);
}

.hero-premium .badge {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(217, 221, 216, 0.84);
  backdrop-filter: blur(10px);
}

.hero-contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: var(--primary);
  font-weight: 800;
}

.hero-proof {
  max-width: 690px;
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(217, 221, 216, 0.82);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(16px);
}

.hero-proof span {
  padding: 14px 16px;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
  font-weight: 780;
}

.hero-proof span + span {
  border-left: 1px solid rgba(217, 221, 216, 0.82);
}

.eyebrow {
  color: var(--accent);
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

h1, h2 {
  font-family: 'Playfair Display', 'Noto Serif SC', serif;
  color: var(--primary);
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  max-width: 19ch;
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 5vw, 4.9rem);
  line-height: 0.98;
}

html[lang='zh-CN'] h1 {
  word-break: keep-all;
  overflow-wrap: normal;
}

html[lang='zh-CN'] h2 {
  word-break: normal;
  overflow-wrap: anywhere;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
  line-height: 1.16;
}

h3 {
  color: var(--primary);
  font-size: 1.04rem;
  margin: 0 0 8px;
}

.lead {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  max-width: 64ch;
}

.badge-row { display: flex; flex-wrap: wrap; gap: 9px; margin: 22px 0 0; }
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 750;
}

.hero-actions, .cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.hero-simple {
  max-width: 1200px;
}

.hero-simple .hero-copy {
  max-width: 780px;
}

.hero-simple h1 {
  max-width: 16ch;
}

.hero-simple h1 span {
  display: block;
}

html[lang='zh-CN'] .hero-simple h1 {
  max-width: 15ch;
  font-size: clamp(2.3rem, 4.8vw, 4.2rem);
  line-height: 1.08;
}

.hero-panel,
.card,
.panel,
.contact-card,
.pathway-card,
.step,
.trust-item,
.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 28px;
  background: linear-gradient(180deg, #fff 0%, #f7f0e4 100%);
}

.mini-logo {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--border);
  margin-bottom: 18px;
}

.mini-logo img { width: 78px; height: 78px; object-fit: contain; }
.hero-panel h2 { font-size: 1.38rem; }
.hero-panel a { color: var(--primary); font-weight: 800; }

.wechat-qr {
  width: min(100%, 260px);
  margin: 18px auto 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.wechat-qr.small { width: 180px; margin-left: 0; }

.section { padding: 76px 0; }
.section-soft {
  background: linear-gradient(180deg, #eef3f8 0%, #f6f7f4 100%);
  border-top: 1px solid rgba(217, 221, 216, 0.72);
  border-bottom: 1px solid rgba(217, 221, 216, 0.72);
}

.section-head { max-width: 820px; margin-bottom: 30px; }
.split { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 34px; align-items: start; }
.why-section {
  padding: 88px 0;
}
.why-split {
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: 54px;
}
.text-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--primary);
  font-weight: 820;
  border-bottom: 2px solid rgba(198, 169, 107, 0.9);
}
.why-note {
  margin: 24px 0 8px;
  padding: 18px 20px;
  border-left: 4px solid var(--gold);
  background: rgba(255, 255, 255, 0.56);
  border-radius: var(--radius);
}
.why-note strong {
  display: block;
  color: var(--primary);
  margin-bottom: 6px;
}
.why-note span {
  display: block;
  color: var(--muted);
}
.why-card {
  padding: 30px;
}
.why-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.why-bullets {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}
.why-bullets li {
  position: relative;
  padding-left: 24px;
  color: var(--text);
  font-weight: 680;
  line-height: 1.54;
}
.why-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.card-grid { display: grid; gap: 20px; }
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.card, .panel, .contact-card { padding: 26px; }
.card, .panel, .contact-card { min-width: 0; }
.card h2,
.panel h2,
.contact-card h2,
.pathway-card h2,
.why-card h2,
.step h2 {
  max-width: 100%;
  font-size: clamp(1.35rem, 1.65vw, 1.82rem);
  line-height: 1.22;
}
html[lang='zh-CN'] .card h2,
html[lang='zh-CN'] .panel h2,
html[lang='zh-CN'] .contact-card h2,
html[lang='zh-CN'] .pathway-card h2,
html[lang='zh-CN'] .why-card h2,
html[lang='zh-CN'] .step h2 {
  font-size: clamp(1.42rem, 1.58vw, 1.78rem);
  line-height: 1.24;
  word-break: normal;
  overflow-wrap: anywhere;
}
.service-entry { border-top: 4px solid var(--gold); }
.card-grid.five .service-entry {
  padding: 22px 18px;
}
.card-grid.five .service-entry h3 {
  font-size: 0.98rem;
  line-height: 1.28;
}
.card-grid.five .service-entry p {
  font-size: 0.9rem;
  line-height: 1.58;
}
.module-card { min-height: 190px; }
.help-card {
  min-height: 218px;
  border-top: 4px solid var(--gold);
}
.help-card h3 {
  line-height: 1.28;
}
.trust-grid { display: grid; gap: 14px; }
.trust-grid-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.trust-item { padding: 18px; }
.trust-grid-compact .trust-item {
  min-height: 204px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.trust-item strong { display: block; color: var(--primary); margin-bottom: 6px; }
.trust-item span { color: var(--muted); font-size: 0.95rem; }
.trust-grid-compact .trust-item strong {
  font-size: 1.05rem;
  line-height: 1.32;
}
.trust-grid-compact .trust-item span {
  font-size: 0.95rem;
  line-height: 1.62;
}

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.step { padding: 22px; }
.step span {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #f1e3c8;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-band {
  background: var(--primary);
  color: white;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.cta-band h2,
.cta-band .eyebrow,
.cta-band p { color: white; }
.cta-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.pathway-stack { display: grid; gap: 22px; }
.pathway-card {
  display: grid;
  grid-template-columns: 0.62fr 1.38fr;
  gap: 28px;
  padding: 28px;
}

.pathway-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pathway-details section {
  border-left: 3px solid var(--gold);
  padding-left: 14px;
  min-width: 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  gap: 24px;
  align-items: start;
}

.contact-list { display: grid; gap: 10px; margin: 18px 0; }
.contact-list a { color: var(--primary); font-weight: 800; }

.faq-list {
  display: grid;
  gap: 14px;
}

details {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--primary);
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

summary::after {
  content: '+';
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 1.15rem;
  line-height: 1;
}

details[open] summary::after {
  content: '-';
}

summary:focus-visible {
  outline: 3px solid rgba(198, 169, 107, 0.55);
  outline-offset: 4px;
  border-radius: 6px;
}

summary::-webkit-details-marker {
  display: none;
}

summary + p {
  margin-top: 12px;
  font-size: 1rem;
  line-height: 1.66;
}

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

label { display: grid; gap: 8px; color: var(--primary); font-weight: 750; }
label span { color: var(--primary); }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 13px;
  background: white;
  color: var(--text);
  font: inherit;
}

textarea { min-height: 132px; resize: vertical; }
.form-note, .form-status, .disclaimer { font-size: 0.94rem; }
.form-status { min-height: 24px; color: var(--primary); font-weight: 750; }
button:disabled { opacity: 0.62; cursor: wait; }

#consultation-form,
#wechat {
  scroll-margin-top: 112px;
}

.site-footer {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  background: #fbfcfb;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(280px, 1.35fr) auto;
  gap: 22px;
  align-items: center;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-brand strong {
  display: block;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 820;
  margin-bottom: 4px;
}

.footer-brand span {
  display: block;
}

.footer-grid .disclaimer {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
}

.footer-qr {
  display: grid;
  justify-items: center;
  gap: 5px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
}

.footer-qr .wechat-qr.small {
  width: 76px;
  margin: 0;
  border-radius: 6px;
}

.footer-copy {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

@media (min-width: 721px) and (max-width: 1120px) {
  .nav-wrap {
    align-items: center;
    flex-direction: row;
    gap: clamp(8px, 1.2vw, 14px);
    padding: 0;
  }
  .brand {
    min-width: 224px;
    flex: 0 0 auto;
    gap: 10px;
  }
  .brand-logo {
    width: 46px;
    height: 46px;
  }
  .brand-wordmark strong {
    font-size: 0.88rem;
  }
  .brand-wordmark span {
    font-size: 0.52rem;
    letter-spacing: 0.015em;
  }
  .nav {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
    gap: clamp(5px, 0.65vw, 8px);
  }
  .nav a {
    font-size: clamp(0.66rem, 0.9vw, 0.8rem);
  }
  .nav a.btn-sm {
    min-height: 34px;
    padding: 8px 8px;
    font-size: clamp(0.66rem, 0.86vw, 0.76rem);
  }
  .lang-link {
    margin-left: 0;
    padding: 7px 9px;
  }
}

@media (max-width: 1020px) {
  .hero-grid,
  .split,
  .pathway-card,
  .contact-layout,
  .footer-grid,
  .cta-grid {
    grid-template-columns: 1fr;
  }
  .card-grid.three,
  .card-grid.four,
  .card-grid.five,
  .steps,
  .pathway-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-premium {
    min-height: auto;
  }
  .hero-premium::before {
    background-position: 58% center;
  }
  .hero-premium::after {
    background:
      linear-gradient(90deg, rgba(248, 250, 248, 0.98) 0%, rgba(248, 250, 248, 0.9) 48%, rgba(248, 250, 248, 0.52) 100%),
      linear-gradient(180deg, rgba(0, 39, 76, 0.04) 0%, rgba(141, 38, 49, 0.05) 100%);
  }
  .why-split,
  .trust-grid-compact {
    grid-template-columns: 1fr;
  }
  .trust-grid-compact .trust-item {
    min-height: 0;
  }
  .footer-grid {
    align-items: start;
  }
  .footer-qr {
    justify-items: start;
  }
}

@media (max-width: 720px) {
  .container { width: min(1120px, calc(100% - 28px)); }
  .nav-wrap { align-items: flex-start; padding: 14px 0; flex-direction: column; }
  .brand { min-width: 0; }
  .brand-logo { width: 48px; height: 48px; }
  .brand-wordmark span { font-size: 0.58rem; letter-spacing: 0.02em; max-width: calc(100vw - 92px); overflow: hidden; text-overflow: ellipsis; }
  .nav { justify-content: flex-start; gap: 10px; flex-wrap: wrap; white-space: normal; }
  .nav a { font-size: 0.88rem; }
  .hero { padding: 54px 0 46px; }
  .hero:not(.hero-premium) {
    min-height: auto;
  }
  .hero:not(.hero-premium)::before {
    background-position: 66% center;
  }
  .hero:not(.hero-premium)::after {
    background:
      linear-gradient(180deg, rgba(251, 252, 251, 0.98) 0%, rgba(251, 252, 251, 0.92) 58%, rgba(251, 252, 251, 0.74) 100%),
      linear-gradient(90deg, rgba(251, 252, 251, 0.98) 0%, rgba(251, 252, 251, 0.62) 100%);
  }
  .hero-premium {
    padding: 0;
  }
  .hero-premium::before {
    background-position: 64% center;
  }
  .hero-premium::after {
    background:
      linear-gradient(180deg, rgba(248, 250, 248, 0.98) 0%, rgba(248, 250, 248, 0.92) 54%, rgba(248, 250, 248, 0.68) 100%),
      linear-gradient(90deg, rgba(248, 250, 248, 0.95) 0%, rgba(248, 250, 248, 0.62) 100%);
  }
  .hero-premium-inner {
    padding: 44px 0 36px;
  }
  .hero-premium h1,
  html[lang='zh-CN'] .hero-premium h1 {
    max-width: 100%;
    line-height: 1.03;
  }
  .hero-premium h1 {
    font-size: clamp(2.3rem, 12vw, 3rem);
  }
  html[lang='zh-CN'] .hero-premium h1 {
    font-size: clamp(2.1rem, 5vw, 2.4rem);
  }
  .hero-premium .lead {
    font-size: 1rem;
  }
  .hero-premium .badge-row {
    gap: 7px;
    margin-top: 18px;
  }
  .hero-premium .badge {
    min-height: 31px;
    font-size: 0.78rem;
    padding: 6px 10px;
  }
  .hero-premium .hero-actions {
    gap: 10px;
    margin-top: 20px;
  }
  .hero-contact-link {
    min-height: 36px;
  }
  .hero-proof {
    display: none;
  }
  h1 { font-size: clamp(2.15rem, 13vw, 3.45rem); }
  .section { padding: 58px 0; }
  .card-grid.three,
  .card-grid.four,
  .card-grid.five,
  .steps,
  .pathway-details,
  .form-grid,
  .why-bullets {
    grid-template-columns: minmax(0, 1fr);
  }
  .pathway-card,
  .pathway-card > div,
  .pathway-details,
  .pathway-details section {
    min-width: 0;
  }
  html[lang='zh-CN'] .pathway-card h2 {
    word-break: normal;
    overflow-wrap: anywhere;
  }
}

@media (min-width: 641px) and (max-width: 720px) {
  .nav {
    width: 100%;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 8px;
  }
  .nav a {
    font-size: 0.78rem;
  }
  .nav a.btn-sm {
    min-height: 34px;
    padding: 8px 10px;
    font-size: 0.76rem;
  }
  .lang-link {
    margin-left: auto;
  }
}
