/* ===========================================================
   证道心理中心 · 站点样式（复刻 zhengdao.center）
   =========================================================== */

:root {
  --sans: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --serif: "Noto Serif SC", Georgia, "Songti SC", "STSong", "SimSun", "Times New Roman", serif;

  --ink: #292524;
  --ink-soft: #44403c;
  --ink-mute: #78716c;
  --line: #e7e5e4;
  --bg: #fafaf9;
  --bg-alt: #f5f5f4;
  --cream: #fff8ed;
  --cream-deep: #fdf1dd;

  --primary: #fb7900;
  --primary-600: #ea6a00;
  --primary-800: #a14a0b;
  --primary-200: #ffdfaa;
  --primary-50: #fff8ed;

  --radius: 12px;
  --shadow-sm: 0 2px 8px rgba(120, 83, 40, 0.06);
  --shadow: 0 12px 30px -18px rgba(120, 83, 40, 0.35);
  --shadow-lg: 0 30px 60px -30px rgba(120, 83, 40, 0.45);
  --container: 1280px;
  --gutter: 32px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 96px 0; scroll-margin-top: 84px; }
.section--cream { background: var(--cream); }
.section--alt { background: var(--bg-alt); }

.section-head { text-align: center; margin-bottom: 40px; }
.section-title {
  font-size: 48px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.section-sub {
  margin-top: 16px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-mute);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------------- header ---------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  padding: 18px 0;
  transition: background-color 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
  background: transparent;
  color: #fff;
}
.site-header.is-solid {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 10px 30px -24px rgba(0, 0, 0, 0.45);
  padding: 12px 0;
  color: var(--ink);
}
.site-header.no-hero {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  color: var(--ink);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover; flex: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 23px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.site-header.no-hero .brand-name,
.site-header.is-solid .brand-name { color: var(--primary-800); }

.nav { display: flex; align-items: center; gap: 34px; margin-left: auto; }
.nav a {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0.95;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.nav a:hover { opacity: 0.7; }
.site-header.is-solid .nav a:hover,
.site-header.no-hero .nav a:hover { color: var(--primary-800); opacity: 1; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 6px 15px 6px 12px;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: transparent;
  font-size: 15px;
  line-height: 1.4;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.lang-btn:hover { background: rgba(255, 255, 255, 0.14); }
.site-header.is-solid .lang-btn:hover,
.site-header.no-hero .lang-btn:hover { background: rgba(161, 74, 11, 0.08); }
.lang-btn svg { width: 16px; height: 16px; flex: none; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid currentColor;
  background: transparent;
  border-radius: 10px;
  align-items: center; justify-content: center;
}

/* ---------------- hero ---------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 34%;
  z-index: -2;
  filter: sepia(1) saturate(1.7) hue-rotate(-20deg) brightness(0.94);
}
.hero-scrim { position: absolute; inset: 0; z-index: -1; mix-blend-mode: multiply; }
.hero-inner { padding-top: 96px; padding-bottom: 88px; width: 100%; }
.hero-title-wrap { position: relative; max-width: 700px; padding-left: 84px; }
.hero-badge {
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 62px; height: 62px;
  border-radius: 50%;
  background: #c2410c;
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.5);
}
.hero-badge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}
.hero h1 {
  font-size: 60px;
  line-height: 1.05;
  max-width: 576px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.005em;
  text-shadow: 0 2px 30px rgba(80, 40, 0, 0.18);
}
.hero-sub {
  margin-top: 26px;
  max-width: 580px;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}
.hero-note {
  position: absolute;
  right: 40px; bottom: 26px;
  font-size: 11.5px;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
}
.hero-scroll {
  position: absolute; left: 50%; bottom: 22px;
  transform: translateX(-50%);
  width: 22px; height: 34px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  display: grid; place-items: center;
}
.hero-scroll::after {
  content: "";
  width: 3px; height: 8px; border-radius: 2px;
  background: rgba(255, 255, 255, 0.85);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0%, 100% { transform: translateY(-4px); opacity: 0.4; }
  50% { transform: translateY(5px); opacity: 1; }
}

/* ---------------- about ---------------- */

.about-inner { max-width: 800px; margin: 0 auto; }
.about-block + .about-block { margin-top: 34px; }
.about-block h3 {
  font-size: 29px;
  font-weight: 600;
  color: var(--primary-800);
  margin-bottom: 10px;
}
.about-block p { font-size: 16px; line-height: 1.78; color: var(--ink-soft); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 17px; font-weight: 500;
  color: var(--primary);
  transition: color 0.2s ease, gap 0.2s ease;
}
.link-arrow:hover { color: var(--primary-800); gap: 13px; }
.link-arrow svg { width: 17px; height: 17px; }

/* ---------------- training ---------------- */

.media-card {
  position: relative;
  max-width: 896px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #2a2118;
  aspect-ratio: 16 / 9;
}
.media-card video, .media-card img {
  width: 100%; height: 100%; object-fit: cover;
}
.media-card figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 70px 28px 22px;
  background: linear-gradient(to top, rgba(20, 12, 4, 0.72), rgba(20, 12, 4, 0.05));
  color: #fff;
}
.media-card h3 { color: #fff; font-size: 25px; font-weight: 700; }
.media-card p { margin-top: 6px; font-size: 15px; color: rgba(255, 255, 255, 0.85); }

.pill-tabs {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 12px; margin-top: 34px;
}
.pill-tab {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  font-size: 15.5px;
  transition: all 0.22s ease;
}
.pill-tab:hover { background: var(--primary-50); border-color: var(--primary-200); }
.pill-tab.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 10px 22px -14px rgba(251, 121, 0, 0.9);
}
.pill-tab--sm { padding: 5px 13px; font-size: 13.5px; }
.pill-tab--sm.is-active { background: var(--primary); }

.program-tabs { display: flex; justify-content: center; gap: 10px; margin: 26px 0 22px; flex-wrap: wrap; }

.program-card {
  max-width: 896px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 44px 44px;
}
.program-card h2 {
  font-size: 33px;
  line-height: 1.3;
  text-align: center;
  color: var(--primary-800);
  letter-spacing: -0.005em;
}
.program-sub {
  margin-top: 12px;
  text-align: center;
  color: var(--ink-mute);
  font-size: 16px;
}
.directors {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 26px 38px;
  margin: 32px 0 8px;
}
.director { display: flex; align-items: center; gap: 14px; }
.avatar {
  border-radius: 50%;
  object-fit: cover;
  background: var(--cream-deep);
  color: var(--primary-800);
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 600;
  flex: none;
  overflow: hidden;
}
.director .avatar { width: 58px; height: 58px; font-size: 17px; box-shadow: 0 6px 16px -8px rgba(120, 83, 40, 0.6); }
/* Reframe these portraits within their existing circular frames. */
.avatar[src*="fac-zhang-centered."] {
  object-view-box: inset(3.4% 4.4% 5.4% 4.4%);
  background: #70533c;
}
.avatar[src*="fac-grier-centered."] { object-view-box: inset(8% 8% 16% 8%); }
.avatar[src*="fac-bonnie."],
.avatar[src*="team-bonnie."] { object-view-box: inset(12% 0 0 0); }
.avatar[src*="fac-williams."] { object-view-box: inset(0 12% 0 0); }
.avatar[src*="fac-erika."] { object-position: 50% 12%; }
.avatar[src*="fac-leslie."] { object-position: 50% 50%; }
.avatar[src*="fac-linda."] { object-position: 65% 12%; }
.avatar[src*="fac-rona."] { object-position: 50% 50%; }
.avatar[src*="fac-patrick."] { object-position: 50% 50%; }
.director-name { font-family: var(--serif); font-size: 17px; color: var(--ink); line-height: 1.4; }
.director-role { font-size: 14.5px; color: var(--primary); line-height: 1.5; }

.program-intro {
  margin-top: 26px;
  text-align: center;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.faculty-title {
  margin: 36px 0 10px;
  text-align: center;
  font-size: 25px;
  color: var(--primary-800);
}
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 16px;
  margin: 18px auto 0;
  max-width: 660px;
}
.faculty-item { text-align: center; }
.faculty-item .avatar { width: 58px; height: 58px; margin: 0 auto 9px; font-size: 16px; }
.faculty-name { font-family: var(--serif); font-size: 13.5px; line-height: 1.45; color: var(--ink); }

.module-title {
  margin: 34px 0 16px;
  text-align: center;
  font-size: 25px;
  color: var(--primary-800);
}
.modules { display: grid; gap: 14px; }
.module {
  background: var(--cream);
  border-radius: 8px;
  padding: 16px 20px 16px 18px;
  display: flex; gap: 13px; align-items: flex-start;
}
.module svg { width: 21px; height: 21px; color: var(--primary); flex: none; margin-top: 2px; }
.module h4 { font-family: var(--sans); font-size: 17px; font-weight: 500; color: var(--ink); line-height: 1.5; }
.module p { margin-top: 5px; font-size: 15px; line-height: 1.7; color: var(--ink-soft); }

.schedule { text-align: center; margin-top: 32px; }
.schedule h3 {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 22px; color: var(--primary-800);
}
.schedule h3 svg { width: 20px; height: 20px; color: var(--primary); }
.schedule p { margin-top: 10px; font-size: 15.5px; color: var(--ink-soft); }

/* seminars */
.seminars { max-width: 896px; margin: 0 auto; }
.filter-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin: 18px 0 28px; }
.course-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.course {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 28px;
}
.course-head { display: flex; align-items: center; gap: 14px; }
.course-head .avatar { width: 52px; height: 52px; font-size: 16px; }
.course-instructor { font-family: var(--serif); font-size: 17px; line-height: 1.3; }
.course-instructor span { font-family: var(--sans); font-size: 13px; color: var(--ink-mute); margin-left: 4px; }
.course-role { font-size: 13.5px; color: var(--primary); }
.course h3 { margin-top: 16px; font-size: 23px; color: var(--primary-800); }
.course-meta { margin-top: 4px; font-size: 14px; color: var(--ink-mute); }
.course p.body { margin-top: 10px; font-size: 15px; line-height: 1.75; color: var(--ink-soft); }
.course-schedule {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; color: var(--primary-800);
  background: var(--cream); border-radius: 6px; padding: 6px 12px;
}
.course-schedule svg { width: 15px; height: 15px; }

.footnote {
  max-width: 780px;
  margin: 44px auto 0;
  text-align: center;
  font-size: 16px;
  color: var(--ink-mute);
  line-height: 1.75;
}

/* ---------------- testimonials ---------------- */

.quote-card {
  position: relative;
  max-width: 896px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 48px 56px 40px;
  min-height: 232px;
  display: flex; flex-direction: column; justify-content: center;
}
.quote-mark {
  position: absolute;
  font-family: var(--serif);
  font-size: 46px;
  line-height: 1;
  color: var(--primary);
  opacity: 0.85;
}
.quote-mark.open { left: 16px; top: 26px; }
.quote-mark.close { right: 20px; bottom: 44px; }
.quote-text {
  font-size: 18px;
  line-height: 1.8;
  font-style: italic;
  text-align: center;
  color: var(--ink-soft);
}
.quote-author {
  margin-top: 18px;
  text-align: center;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--primary-800);
}
.dots { display: flex; justify-content: center; gap: 9px; margin-top: 22px; }
.dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: none;
  background: #d6d3d1;
  padding: 0;
  transition: background-color 0.25s ease, transform 0.25s ease;
}
.dot.is-active { background: var(--primary); transform: scale(1.15); }
.quote-nav {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  display: grid; place-items: center;
  opacity: 0;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}
.quote-card:hover .quote-nav { opacity: 1; }
.quote-nav:hover { background: var(--cream); }
.quote-nav.prev { left: -18px; }
.quote-nav.next { right: -18px; }
.quote-nav svg { width: 16px; height: 16px; color: var(--primary-800); }

/* ---------------- team ---------------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 44px;
}
.member-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 24px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.member-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.member-card .avatar { width: 84px; height: 84px; margin-bottom: 16px; font-size: 22px; }
.member-name { font-family: var(--serif); font-size: 19px; color: var(--primary-800); line-height: 1.4; }
.member-roles { margin-top: 8px; display: grid; gap: 3px; }
.member-roles span { font-size: 13.5px; line-height: 1.6; color: var(--ink-mute); }
.team-more { text-align: center; margin-top: 36px; }

/* team page */
.page-hero { padding: 150px 0 0; background: var(--bg); }
.page-hero h1 { font-size: 46px; text-align: center; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--primary); font-size: 15px;
}
.back-link svg { width: 16px; height: 16px; }
.team-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  padding: 40px 0 96px;
}
.team-page-grid .avatar { width: 88px; height: 88px; font-size: 23px; }

/* ---------------- contact ---------------- */

.contact-card {
  max-width: 896px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 44px 44px;
}
.contact-head { display: flex; align-items: center; gap: 12px; }
.contact-head .brand-mark { width: 44px; height: 44px; }
.contact-head h3 { font-size: 30px; color: var(--primary-800); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 28px; }
.contact-row { display: flex; gap: 14px; align-items: flex-start; }
.contact-row + .contact-row { margin-top: 18px; }
.contact-icon {
  width: 40px; height: 40px; flex: none;
  border-radius: 9px;
  background: var(--cream);
  display: grid; place-items: center;
  color: var(--primary);
}
.contact-icon svg { width: 19px; height: 19px; }
.contact-label { font-size: 15.5px; font-weight: 500; color: var(--ink); line-height: 1.5; }
.contact-value { font-size: 15px; line-height: 1.7; color: var(--ink-soft); }
.contact-hours { margin-top: 26px; }
.contact-hours h4 { font-family: var(--sans); font-size: 17px; font-weight: 500; margin-bottom: 8px; }
.contact-hours div { font-size: 15px; line-height: 1.85; color: var(--ink-soft); }
.location-title { font-size: 16px; font-weight: 500; margin-bottom: 12px; }
.map-wrap { border-radius: 9px; overflow: hidden; box-shadow: 0 10px 26px -22px rgba(0, 0, 0, 0.6); }
.map-note { margin-top: 10px; font-size: 13px; color: var(--ink-mute); }

.form-block { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); }
.form-block h3 { font-size: 22px; color: var(--primary-800); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-top: 18px; }
.form-field--wide { grid-column: 1 / -1; }
.form-field label { display: block; font-size: 14px; color: var(--ink-mute); margin-bottom: 5px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fdfdfc;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--primary-200);
  box-shadow: 0 0 0 3px rgba(251, 121, 0, 0.12);
}
.form-field textarea { min-height: 110px; resize: vertical; }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 26px;
  border: none; border-radius: 999px;
  background: var(--primary);
  color: #fff; font-size: 15.5px; font-weight: 500;
  box-shadow: 0 14px 26px -16px rgba(251, 121, 0, 0.95);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.btn-primary:hover { background: var(--primary-600); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.6; cursor: default; transform: none; }
.form-status { margin-top: 12px; font-size: 14px; }
.form-status.ok { color: #15803d; }
.form-status.err { color: #b91c1c; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }

/* ---------------- footer ---------------- */

.site-footer {
  background: var(--footer-bg, #a14a0b);
  color: #fff;
  padding: 52px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 48px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand .brand-name { color: #fff; font-size: 23px; }
.footer-desc { font-size: 15px; line-height: 1.75; color: rgba(255, 255, 255, 0.9); max-width: 380px; }
.footer-col h3 { font-size: 19px; color: #fff; margin-bottom: 14px; font-weight: 600; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a, .footer-col li { font-size: 15px; color: rgba(255, 255, 255, 0.88); }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  margin-top: 38px; padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 13.5px; color: rgba(255, 255, 255, 0.82);
}
.footer-admin { display: inline-flex; align-items: center; gap: 6px; }
.footer-admin svg { width: 14px; height: 14px; }

/* ---------------- reveal ---------------- */

/* 默认可见（无 JS / 脚本异常时内容不会消失），仅在 JS 就绪后才启用进场隐藏 */
.reveal { opacity: 1; transform: none; }
html.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
html.js-reveal .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------------- responsive ---------------- */

@media (max-width: 1100px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { gap: 32px; }
}

body[data-lang="cn"] .hero-sub { max-width: 720px; }

@media (max-width: 900px) {
  :root { --gutter: 22px; }
  .section { padding: 64px 0; }
  .section-title { font-size: 34px; }
  .section-sub { font-size: 17px; margin-top: 12px; }
  .hero h1 { font-size: 34px; }
  .hero-sub { font-size: 17px; margin-top: 18px; max-width: 420px; }
  .hero-inner { padding-top: 92px; padding-bottom: 76px; }
  .hero-note { right: 18px; bottom: 16px; max-width: 240px; text-align: right; font-size: 10px; }
  body[data-lang="cn"] .hero-sub { max-width: 460px; }
  .hero-title-wrap { padding-left: 0; }
  .hero-badge { display: none; }
  .program-card, .contact-card, .quote-card { padding: 26px 22px; }
  .program-card h2 { font-size: 25px; }
  .faculty-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 8px; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .page-hero { padding-top: 120px; }
  .page-hero h1 { font-size: 32px; }
  .quote-card { min-height: 0; padding: 34px 24px 30px; }
  .quote-mark.open { left: 6px; top: 10px; font-size: 34px; }
  .quote-mark.close { right: 8px; bottom: 26px; font-size: 34px; }
  .quote-nav { display: none; }

  .nav {
    position: fixed;
    inset: 64px 12px auto 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 13px 14px; border-radius: 9px; color: var(--ink) !important; }
  .nav a:hover { background: var(--cream); }
  .nav-toggle { display: inline-flex; }
  .lang-btn { padding: 6px 12px; font-size: 14px; }
  .lang-btn svg { display: none; }
  .brand-name { font-size: 20px; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 34px; }
  .hero-sub { font-size: 17px; }
  .team-grid, .team-page-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 29px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .directors { gap: 18px 22px; }
  .director .avatar { width: 48px; height: 48px; }
}
