:root {
  --page: #f5f5f7;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --surface-soft: #fbfbfd;
  --champagne: #f0ebe3;
  --platinum: #e7eaf0;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --quiet: #86868b;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.14);
  --accent: #0071e3;
  --accent-soft: rgba(0, 113, 227, 0.12);
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.105);
  --shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.065);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 72% 4%, rgba(255, 255, 255, 0.98), transparent 24rem),
    radial-gradient(circle at 18% 18%, rgba(226, 234, 247, 0.9), transparent 30rem),
    radial-gradient(circle at 88% 66%, rgba(240, 235, 227, 0.82), transparent 28rem),
    linear-gradient(180deg, #fbfbfd 0%, var(--page) 46%, #ffffff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 max(24px, 6vw);
  background: rgba(251, 251, 253, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 118px;
  min-width: 118px;
}

.brand-logo {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: none;
  opacity: 0.94;
}

.nav {
  display: flex;
  gap: 30px;
  color: rgba(29, 29, 31, 0.78);
  font-size: 15px;
  font-weight: 450;
}

.nav a {
  transition: color 0.18s ease;
}

.nav a:hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.nav-toggle span {
  display: block;
  width: 17px;
  height: 1px;
  margin: 6px auto;
  background: var(--ink);
}

.section {
  position: relative;
  overflow: hidden;
  scroll-margin-top: 72px;
  padding: 112px max(24px, 6vw);
}

.section::after {
  content: "";
  position: absolute;
  right: max(24px, 6vw);
  top: 84px;
  width: min(260px, 24vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.11));
  pointer-events: none;
}

#cases {
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.96), transparent 26rem),
    radial-gradient(circle at 14% 82%, rgba(232, 238, 247, 0.58), transparent 25rem),
    linear-gradient(180deg, #ffffff, #f7f9fc);
}

#teachers {
  min-height: 880px;
  padding-top: 146px;
  padding-bottom: 150px;
  background:
    radial-gradient(circle at 16% 20%, rgba(255, 255, 255, 0.96), transparent 26rem),
    radial-gradient(circle at 84% 72%, rgba(235, 238, 229, 0.58), transparent 25rem),
    linear-gradient(180deg, #ffffff, #f8faf5);
}

#teachers .split {
  align-items: center;
}

.section-inner {
  position: relative;
  z-index: 1;
  width: min(1160px, 100%);
  margin: 0 auto;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(8px);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

.hero {
  min-height: calc(100vh - 56px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 76px;
  background:
    radial-gradient(circle at 82% 72%, rgba(225, 235, 248, 0.5), transparent 26rem),
    linear-gradient(180deg, #fbfbfd 0%, #f6f7fa 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0 0 0 -8vw;
  background-image: url("assets/images/hero-campus-bg.jpg");
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
}

.hero-bg::before {
  opacity: 0.86;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.88) 42%, rgba(0, 0, 0, 0.28) 72%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.88) 42%, rgba(0, 0, 0, 0.28) 72%, transparent 100%);
}

.hero-bg::after {
  opacity: 0.54;
  filter: blur(18px) saturate(105%);
  transform: scale(1.035);
  transform-origin: right center;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.12) 38%, rgba(0, 0, 0, 0.72) 72%, rgba(0, 0, 0, 0.95) 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.12) 38%, rgba(0, 0, 0, 0.72) 72%, rgba(0, 0, 0, 0.95) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.36) 46%, rgba(255, 255, 255, 0.78) 100%),
    radial-gradient(circle at 78% 52%, rgba(255, 255, 255, 0.64), transparent 30rem);
  pointer-events: none;
}

.hero-grid,
.split,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: clamp(36px, 6vw, 76px);
  align-items: center;
}

.hero-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(680px, 0.86fr);
}

.split {
  align-items: start;
}

.hero-copy {
  order: 2;
  grid-column: 2;
  position: relative;
  z-index: 1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 8px;
  transform: translateX(96px);
  text-align: left;
}

.hero-carousel {
  order: 1;
}

.split.reverse {
  grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1fr);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--quiet);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.08;
  font-weight: 680;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  font-size: clamp(48px, 7vw, 82px);
}

h2 {
  font-size: clamp(44px, 5.3vw, 76px);
}

h3 {
  font-size: clamp(24px, 2.4vw, 34px);
}

.section-heading {
  position: relative;
}

.section-heading p {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(18px, 1.9vw, 24px);
  line-height: 1.72;
}

.section-heading::before {
  content: "";
  display: block;
  width: 42px;
  height: 1px;
  margin-bottom: 22px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.42), transparent);
}

.section-heading h2 {
  display: block;
}

.mobile-break {
  display: none;
}

.hero-logo {
  width: min(280px, 62vw);
  height: auto;
  margin: 0 0 34px 10px;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.08));
  opacity: 0.96;
}

.hero-intro {
  width: min(980px, 100%);
  max-width: 980px;
  margin: 0;
  padding: 20px 30px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 24px 64px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(18px) saturate(150%);
}

.hero-intro p {
  margin: 0 0 10px;
  color: rgba(29, 29, 31, 0.92);
  font-size: clamp(18px, 1.34vw, 22px);
  font-weight: 460;
  line-height: 1.62;
  letter-spacing: 0;
  text-align: justify;
  text-align-last: left;
  text-wrap: pretty;
}

.hero-intro p:last-child {
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 28px 0 0;
  width: min(980px, 100%);
}

.hero-actions .button {
  min-height: 50px;
  padding: 0 28px;
  font-size: 17px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line-strong);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.button.ghost {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(0, 113, 227, 0.2);
}

.carousel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(250, 250, 252, 0.62)),
    var(--surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    var(--shadow);
  backdrop-filter: blur(28px) saturate(160%);
}

.carousel-track {
  position: relative;
  min-height: 100%;
}

.slide {
  display: none;
  animation: fadeIn 0.42s ease both;
}

.slide.is-active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-carousel {
  min-height: 560px;
}

.hero-carousel .slide {
  padding: 16px 16px 86px;
}

.hero-carousel h2,
.hero-carousel h3,
.hero-carousel p {
  padding: 0 18px;
}

.hero-carousel h2 {
  margin-top: 26px;
  font-size: clamp(34px, 4.2vw, 56px);
}

.hero-carousel h3 {
  margin-top: 14px;
  color: var(--muted);
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 520;
}

.hero-carousel p {
  color: var(--muted);
  font-size: 17px;
}

.hero-carousel .eyebrow {
  margin-top: 26px;
  margin-bottom: 10px;
  color: var(--quiet);
}

.photo-placeholder {
  position: relative;
  display: grid;
  min-height: 320px;
  place-items: center;
  overflow: hidden;
  color: var(--quiet);
  background:
    radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.96), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(230, 234, 241, 0.94)),
    var(--surface-soft);
  border-radius: 8px;
  border: 1px solid var(--line);
  text-align: center;
}

.photo-placeholder::after {
  content: attr(data-image);
  position: absolute;
  right: 16px;
  bottom: 14px;
  max-width: calc(100% - 32px);
  color: rgba(110, 110, 115, 0.5);
  font-size: 12px;
}

.photo-placeholder.has-image::after,
.photo-placeholder.has-image span {
  display: none;
}

.photo-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-placeholder img:not([src]),
.photo-placeholder img[src=""] {
  display: none;
}

.photo-placeholder span {
  position: relative;
  z-index: 1;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.carousel-track > .slide:not(.is-active) {
  display: none;
}

.carousel-controls {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  pointer-events: none;
}

.carousel-controls button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 50%;
  color: rgba(29, 29, 31, 0.72);
  background: rgba(255, 255, 255, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 10px 24px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(18px) saturate(170%);
  cursor: pointer;
  font-size: 19px;
  line-height: 1;
  pointer-events: auto;
  transition: background 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.carousel-controls button:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.dots {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex: 0 1 auto;
  min-height: 24px;
  padding: 0 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 10px 24px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(18px) saturate(170%);
  pointer-events: auto;
}

.dots .dot {
  width: 6px;
  height: 6px;
  min-width: 6px;
  min-height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.26);
  box-shadow: none;
  backdrop-filter: none;
  cursor: pointer;
  transition: width 0.22s ease, background 0.22s ease, opacity 0.22s ease;
}

.dots .dot.is-active {
  width: 6px;
  height: 6px;
  min-width: 6px;
  min-height: 6px;
  background: rgba(29, 29, 31, 0.72);
}

.carousel-controls .dots .dot:hover {
  background: rgba(29, 29, 31, 0.52);
  transform: none;
}

.result-card,
.teacher-card,
.campus-panel,
.contact-form {
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(250, 250, 252, 0.64)),
    rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    var(--shadow-soft);
  backdrop-filter: blur(22px) saturate(160%);
}

.service-index {
  color: var(--quiet);
  font-size: 13px;
  font-weight: 600;
}

.result-card p,
.service-panel p,
.teacher-card p,
.campus-panel p,
.contact-list {
  color: var(--muted);
}

.sticky-heading {
  align-self: start;
  position: sticky;
  top: 96px;
}

.split > .sticky-heading {
  margin-top: -62px;
}

#cases {
  isolation: isolate;
  padding-top: 132px;
  padding-bottom: 132px;
  background:
    radial-gradient(circle at 12% 86%, rgba(226, 234, 247, 0.46), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

#cases .section-inner {
  width: min(1280px, 100%);
}

#cases .section-heading {
  z-index: 2;
}

#cases .section-heading p {
  color: rgba(29, 29, 31, 0.68);
}

.cases-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--cases-bg-image);
  background-position: var(--cases-bg-position, center);
  background-size: var(--cases-bg-size, cover);
  background-repeat: no-repeat;
  opacity: 0.84;
  filter: saturate(0.95) contrast(0.96);
  pointer-events: none;
  transition: background-image 0.45s ease, opacity 0.45s ease;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.08) 11%, rgba(0, 0, 0, 0.5) 36%, rgba(0, 0, 0, 0.96) 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.08) 11%, rgba(0, 0, 0, 0.5) 36%, rgba(0, 0, 0, 0.96) 100%);
}

.cases-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.24), transparent 24rem),
    linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.7) 22%, rgba(255, 255, 255, 0.34) 46%, rgba(255, 255, 255, 0.1) 100%);
}

.cases-layout {
  grid-template-columns: minmax(320px, 0.618fr) minmax(560px, 1fr);
  gap: clamp(40px, 4.8vw, 72px);
  align-items: center;
}

.cases-history-trigger {
  margin-top: 34px;
}

.card-carousel,
.teacher-carousel,
.campus-carousel {
  min-height: 470px;
}

.teacher-carousel {
  min-height: 760px;
  width: min(600px, 100%);
  justify-self: end;
}

.card-carousel {
  min-height: 680px;
  align-self: center;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
}

.result-card,
.teacher-card,
.campus-panel {
  position: relative;
  overflow: hidden;
  min-height: 470px;
  padding: 28px 28px 82px;
}

.result-card {
  width: min(720px, 100%);
  min-height: auto;
  margin: 70px 0 0 auto;
  padding: 52px 56px 58px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 32px 92px rgba(94, 18, 18, 0.18);
  backdrop-filter: blur(18px) saturate(145%);
}

.result-photo {
  display: none;
}

.result-photo img {
  object-fit: cover;
  object-position: center;
}

.result-card h3 {
  margin-bottom: 22px;
  font-size: clamp(40px, 4.4vw, 58px);
  line-height: 1.08;
}

.result-note {
  min-height: 0;
  margin: 0 0 18px;
  color: rgba(29, 29, 31, 0.82);
  font-size: clamp(21px, 1.8vw, 28px);
  line-height: 1.68;
}

.result-kicker {
  margin: 0 0 16px;
  color: rgba(29, 29, 31, 0.48);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.result-highlight {
  margin: 0 0 14px;
  color: rgba(29, 29, 31, 0.86);
  font-size: clamp(21px, 1.8vw, 28px);
  font-weight: 560;
  line-height: 1.68;
}

.result-highlight:last-child {
  margin-bottom: 0;
}

.result-note strong,
.result-highlight strong {
  display: inline-block;
  color: #c41414;
  font-family: "PingFang SC", "Microsoft YaHei", "Arial Black", sans-serif;
  font-size: 1.18em;
  font-weight: 800;
  line-height: 1;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.72),
    0 12px 28px rgba(196, 20, 20, 0.16);
}

.history-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(22px, 5vw);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.history-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.history-modal.is-closing {
  opacity: 0;
  pointer-events: none;
}

.history-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(245, 245, 247, 0.68);
  backdrop-filter: blur(20px) saturate(150%);
  opacity: 0;
  transition: opacity 0.32s ease;
}

.history-modal.is-open .history-modal-backdrop {
  opacity: 1;
}

.history-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  width: min(1040px, 100%);
  max-height: min(760px, calc(100vh - 56px));
  overflow: hidden;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(250, 250, 252, 0.82)),
    var(--surface-strong);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition:
    opacity 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.history-modal.is-open .history-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.history-modal.is-closing .history-dialog {
  opacity: 0;
  transform: translateY(10px) scale(0.99);
}

.history-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: rgba(29, 29, 31, 0.72);
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  pointer-events: auto;
  transition: background 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.history-close:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  transform: rotate(90deg);
}

.history-copy {
  display: grid;
  min-height: 0;
  align-self: stretch;
}

.history-copy h2 {
  margin-bottom: 20px;
  font-size: clamp(40px, 5vw, 66px);
}

.history-scroll {
  min-height: 0;
  max-height: min(520px, calc(100vh - 240px));
  overflow: auto;
  padding: 8px 18px 4px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(29, 29, 31, 0.2) transparent;
}

.history-result-block {
  padding: 22px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.history-result-block:first-child {
  padding-top: 0;
  border-top: 0;
}

.history-result-block h3 {
  margin-bottom: 12px;
  font-size: clamp(26px, 3vw, 38px);
}

.history-result-block p {
  margin: 0 0 10px;
  color: rgba(29, 29, 31, 0.72);
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.78;
}

.history-result-block p:last-child {
  margin-bottom: 0;
}

.history-result-block strong {
  display: inline-block;
  color: #c41414;
  font-family: "PingFang SC", "Microsoft YaHei", "Arial Black", sans-serif;
  font-size: 1.18em;
  font-weight: 850;
  line-height: 1;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75),
    0 12px 28px rgba(196, 20, 20, 0.14);
}

.tag {
  display: inline-block;
  margin-bottom: 54px;
  padding: 7px 11px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.04);
  border-radius: 999px;
  font-size: 13px;
}

.result-school,
.teacher-role {
  font-weight: 600;
}

.services {
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.96), transparent 26rem),
    radial-gradient(circle at 14% 76%, rgba(224, 236, 232, 0.62), transparent 24rem),
    linear-gradient(180deg, #f7faf8, #ffffff);
}

.wide-carousel {
  min-height: 560px;
  margin-top: 46px;
}

.service-panel {
  display: none;
  min-height: 560px;
  grid-template-columns: minmax(320px, 0.86fr) 88px minmax(0, 1fr);
  gap: 42px;
  align-items: stretch;
  padding: 44px 44px 92px;
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.9), transparent 18rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(242, 243, 246, 0.82));
}

.service-panel .service-photo {
  grid-column: 1;
  grid-row: 1;
}

.service-panel .service-index {
  grid-column: 2;
  grid-row: 1;
}

.service-panel .service-copy {
  grid-column: 3;
  grid-row: 1;
}

.service-panel.is-active {
  display: grid;
}

.service-index {
  font-size: 64px;
  line-height: 1;
  color: rgba(29, 29, 31, 0.12);
}

.service-copy {
  align-self: start;
}

.service-copy h3 {
  margin-bottom: 22px;
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: 1.04;
}

.service-copy p {
  max-width: 680px;
  margin: 0;
  font-size: 19px;
  line-height: 1.84;
}

.service-photo {
  width: 100%;
  min-height: 390px;
  aspect-ratio: 16 / 10;
  align-self: stretch;
}

.service-photo img {
  object-position: center;
}

.service-panel:nth-child(1) .service-photo img {
  object-position: 48% 44%;
}

.service-panel:nth-child(2) .service-photo img {
  object-position: 50% 42%;
}

.service-panel:nth-child(3) .service-photo img {
  object-position: 48% 50%;
}

.service-panel:nth-child(4) .service-photo img {
  object-position: 50% 45%;
}

.service-panel:nth-child(5) .service-photo img {
  object-position: 52% 45%;
}

.teacher-card {
  text-align: center;
  min-height: 760px;
  padding: 40px 44px 96px;
}

#teachers .section-heading {
  order: 1;
  transform: translateY(-54px);
}

#teachers .teacher-carousel {
  order: 2;
}

#teachers .section-heading p {
  max-width: 760px;
}

.teacher-photo {
  width: 250px;
  height: 250px;
  min-height: 250px;
  margin: 0 auto 28px;
  border-radius: 8px;
}

.teacher-card h3 {
  margin-bottom: 12px;
  font-size: clamp(34px, 3.8vw, 48px);
}

.teacher-card .teacher-role {
  margin: 0 0 22px;
  color: rgba(29, 29, 31, 0.76);
  font-size: 18px;
  font-weight: 650;
}

.teacher-credentials {
  display: grid;
  gap: 9px;
  max-width: 460px;
  margin: 0 auto;
  padding: 0;
  color: rgba(29, 29, 31, 0.66);
  font-size: 15px;
  line-height: 1.55;
  list-style: none;
  text-align: left;
}

.teacher-credentials li {
  position: relative;
  padding-left: 14px;
}

.teacher-credentials li::before {
  content: "";
  position: absolute;
  top: 0.78em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(29, 29, 31, 0.28);
}

.campus-section {
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.96), transparent 24rem),
    radial-gradient(circle at 78% 78%, rgba(234, 228, 244, 0.58), transparent 26rem),
    linear-gradient(180deg, #ffffff, #f8f7fb);
}

.campus-panel h3 {
  margin-top: 24px;
  margin-bottom: 0;
}

.campus-photo {
  min-height: 330px;
}

.campus-panel:nth-child(3) .campus-photo img {
  object-position: 46% 52%;
}

.contact-section {
  background:
    radial-gradient(circle at 15% 24%, rgba(255, 255, 255, 0.96), transparent 24rem),
    radial-gradient(circle at 82% 78%, rgba(240, 235, 227, 0.62), transparent 26rem),
    linear-gradient(180deg, #fffdfb, #f5f5f7);
}

.contact-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.72fr);
}

.contact-list {
  margin: 30px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
}

.contact-list p {
  margin: 8px 0;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 30px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 520;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.84);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(0, 113, 227, 0.46);
  box-shadow: 0 0 0 4px var(--accent-soft);
  background: #ffffff;
}

.contact-form .has-error {
  border-color: #d93025;
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--ink);
  font-size: 14px;
}

.form-message.error {
  color: #b3261e;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  padding: 28px max(24px, 6vw);
  color: var(--quiet);
  border-top: 1px solid var(--line);
  background: #f5f5f7;
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: inherit;
  transition: color 0.18s ease;
}

.site-footer a:hover {
  color: var(--ink);
}

@media (max-width: 880px) {
  .site-header {
    min-height: 56px;
    padding: 0 20px;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 56px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(251, 251, 253, 0.96);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(22px) saturate(180%);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 10px 12px;
  }

  .section {
    padding: 64px 20px;
    scroll-margin-top: 68px;
  }

  .section::after {
    top: 48px;
    right: 20px;
    width: 96px;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
    padding-bottom: 58px;
  }

  .hero-bg::before {
    opacity: 0.46;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 82%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 82%);
  }

  .hero-bg::after {
    opacity: 0.26;
    filter: blur(12px) saturate(105%);
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.9)),
      radial-gradient(circle at 72% 40%, rgba(255, 255, 255, 0.72), transparent 24rem);
  }

  .hero-grid,
  .split,
  .split.reverse,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-copy {
    grid-column: auto;
    width: 100%;
    min-height: auto;
    transform: none;
    justify-content: flex-start;
  }

  .hero-logo {
    width: min(220px, 58vw);
    margin: 0 0 22px;
  }

  .hero-actions {
    margin-left: 0;
  }

  .sticky-heading {
    position: static;
  }

  #teachers {
    min-height: auto;
    padding-top: 92px;
    padding-bottom: 92px;
  }

  #teachers .section-heading {
    transform: none;
  }

  .split > .sticky-heading {
    margin-top: 0;
  }

  h1 {
    font-size: clamp(40px, 13vw, 58px);
  }

  h2 {
    font-size: clamp(31px, 9.6vw, 44px);
  }

  h3 {
    font-size: clamp(24px, 7.2vw, 34px);
  }

  .eyebrow {
    margin-bottom: 12px;
    font-size: 11px;
  }

  .section-heading::before {
    width: 34px;
    margin-bottom: 16px;
  }

  .section-heading p {
    max-width: none;
    font-size: 16px;
    line-height: 1.68;
  }

  .mobile-break {
    display: block;
  }

  .hero-intro {
    width: 100%;
    max-width: none;
    padding: 18px 16px;
  }

  .hero-intro p {
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.62;
    text-align: justify;
    text-align-last: left;
  }

  .button {
    min-height: 46px;
    padding: 0 24px;
    font-size: 15px;
  }

  .hero-actions .button {
    min-height: 48px;
    font-size: 16px;
  }

  .hero-carousel {
    min-height: 520px;
  }

  .photo-placeholder {
    min-height: 220px;
  }

  .card-carousel .carousel-track,
  .wide-carousel .carousel-track,
  .teacher-carousel .carousel-track,
  .campus-carousel .carousel-track,
  .card-carousel .slide,
  .wide-carousel .slide,
  .teacher-carousel .slide,
  .campus-carousel .slide {
    height: 100%;
  }

  .carousel.is-mobile-swipe {
    cursor: grab;
    touch-action: pan-y;
  }

  .carousel.is-mobile-swipe.is-dragging {
    cursor: grabbing;
  }

  .carousel.is-mobile-swipe .carousel-track {
    display: flex;
    width: 100%;
    min-height: 100%;
    will-change: transform;
    transition: transform 0.46s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .carousel.is-mobile-swipe.is-dragging .carousel-track {
    transition: none;
  }

  .carousel.is-mobile-swipe .carousel-track > .slide,
  .carousel.is-mobile-swipe .carousel-track > .slide:not(.is-active) {
    display: block;
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    animation: none;
  }

  .carousel.is-mobile-swipe .carousel-track > .service-panel,
  .carousel.is-mobile-swipe .carousel-track > .service-panel:not(.is-active) {
    display: flex;
  }

  .carousel.is-mobile-swipe .dots .dot {
    transition:
      width 0.34s cubic-bezier(0.22, 1, 0.36, 1),
      background 0.24s ease,
      opacity 0.24s ease;
  }

  .carousel.is-mobile-swipe .dots .dot.is-active {
    width: 18px;
    min-width: 18px;
    background: rgba(29, 29, 31, 0.7);
  }

  .card-carousel,
  .teacher-carousel {
    height: 410px;
    min-height: 0;
  }

  .teacher-carousel {
    height: 590px;
    min-height: 0;
    width: 100%;
    justify-self: stretch;
  }

  .teacher-card {
    height: 590px;
    min-height: 0;
    padding: 28px 26px 68px;
  }

  .teacher-photo {
    width: min(210px, 64vw);
    height: min(210px, 64vw);
    min-height: 0;
    margin-bottom: 20px;
  }

  .teacher-card h3 {
    margin-bottom: 12px;
    font-size: clamp(28px, 8vw, 38px);
  }

  .teacher-card .teacher-role {
    margin-bottom: 16px;
    font-size: 15px;
  }

  .teacher-credentials {
    gap: 7px;
    max-width: 100%;
    font-size: 13.5px;
    line-height: 1.48;
  }

  #cases {
    overflow: hidden;
    padding-top: 64px;
    padding-bottom: 64px;
  }

  #cases .section-inner,
  #cases .cases-layout,
  #cases .section-heading,
  #cases .card-carousel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .cases-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  #cases .section-heading p {
    max-width: 100%;
  }

  .cases-history-trigger {
    width: 100%;
    margin-top: 18px;
  }

  .cases-bg {
    opacity: 0.58;
    background-position: var(--cases-bg-position, center);
    background-size: cover;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.38) 46%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.38) 46%, transparent 100%);
  }

  .cases-bg::after {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.58) 0%, rgba(255, 255, 255, 0.86) 58%, rgba(255, 255, 255, 0.96) 100%),
      linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.22));
  }

  .card-carousel {
    height: 410px;
    min-height: 0;
    overflow: hidden;
  }

  .result-card {
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0 auto;
    padding: 30px 28px 72px;
    border-color: rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.9);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.92),
      0 18px 52px rgba(94, 18, 18, 0.12);
  }

  .result-card.is-active,
  .teacher-card.is-active,
  .campus-panel.is-active {
    display: block;
  }

  .service-panel.is-active {
    display: flex;
  }

  .result-card h3 {
    margin-bottom: 16px;
    font-size: clamp(28px, 8.4vw, 38px);
  }

  .result-kicker {
    margin-bottom: 10px;
    font-size: 11px;
  }

  .result-note,
  .result-highlight {
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.54;
  }

  .result-note strong,
  .result-highlight strong {
    font-size: 1.12em;
  }

  .result-photo {
    display: none;
  }

  .history-dialog {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 40px);
    padding-top: 52px;
  }

  .history-copy {
    padding-right: 0;
  }

  .history-scroll {
    max-height: calc(100vh - 230px);
    padding-right: 10px;
  }

  .history-result-block h3 {
    font-size: 28px;
  }

  .history-result-block p {
    font-size: 16px;
    line-height: 1.66;
  }

  .history-result-block strong {
    font-size: 1.12em;
  }

  .service-panel,
  .service-panel.is-active {
    display: flex;
    flex-direction: column;
    height: 620px;
    min-height: 0;
    padding: 22px 24px 76px;
  }

  .service-index {
    display: block;
    order: 1;
    margin-bottom: 4px;
    font-size: 38px;
    line-height: 0.92;
  }

  .service-copy {
    order: 2;
  }

  .service-copy h3 {
    margin-bottom: 12px;
    font-size: clamp(28px, 8.4vw, 38px);
  }

  .service-copy p {
    font-size: 15px;
    line-height: 1.7;
  }

  .service-photo {
    order: 3;
    min-height: 0;
    aspect-ratio: 16 / 10;
    margin-top: auto;
  }

  .wide-carousel {
    height: 620px;
    min-height: 0;
    margin-top: 28px;
  }

  .campus-carousel {
    order: 2;
    height: 390px;
    min-height: 0;
  }

  .campus-section .section-heading {
    order: 1;
  }

  .campus-panel {
    height: 390px;
    min-height: 0;
    padding: 24px 24px 74px;
  }

  .campus-photo {
    min-height: 210px;
  }

  .campus-panel h3 {
    margin-top: 18px;
    font-size: 28px;
  }

  .contact-form {
    padding: 26px 24px;
    gap: 14px;
  }

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

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    padding: 12px 13px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .brand {
    width: 110px;
    min-width: 110px;
  }

  .section {
    padding-top: 54px;
    padding-bottom: 54px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-intro {
    padding-right: 14px;
    padding-left: 14px;
  }

  .carousel-controls {
    right: 12px;
    bottom: 16px;
    left: 12px;
    gap: 10px;
  }

  .carousel-controls button {
    width: 32px;
    height: 32px;
  }

  .dots {
    gap: 7px;
    min-height: 22px;
    padding: 0 10px;
  }

  .result-card,
  .teacher-card,
  .contact-form {
    padding-right: 22px;
    padding-left: 22px;
  }

  #cases .result-card {
    height: 100%;
    min-height: 0;
    padding: 26px 22px 68px;
  }

  .card-carousel {
    height: 390px;
    min-height: 0;
  }

  .result-card h3 {
    font-size: 28px;
  }

  .result-note,
  .result-highlight {
    font-size: 17px;
    line-height: 1.5;
  }

  .result-note strong,
  .result-highlight strong {
    font-size: 1.1em;
  }

  .service-panel,
  .service-panel.is-active {
    height: 610px;
    min-height: 0;
    padding: 20px 20px 70px;
  }

  .service-index {
    margin-bottom: 2px;
    font-size: 34px;
    line-height: 0.9;
  }

  .service-copy h3 {
    font-size: 29px;
  }

  .service-copy p {
    font-size: 14.5px;
    line-height: 1.66;
  }

  .service-photo {
    margin-top: auto;
  }

  .wide-carousel {
    height: 610px;
    min-height: 0;
  }

  .teacher-card {
    height: 535px;
    min-height: 0;
    padding-top: 26px;
    padding-bottom: 62px;
  }

  .teacher-photo {
    width: min(176px, 58vw);
    height: min(176px, 58vw);
    min-height: 0;
  }

  .teacher-card h3 {
    font-size: 30px;
  }

  .teacher-credentials {
    font-size: 13px;
    line-height: 1.46;
  }

  .campus-carousel,
  .campus-panel {
    height: 360px;
    min-height: 0;
  }

  .campus-photo {
    min-height: 190px;
  }

  .contact-form .button {
    min-height: 48px;
  }

  .result-photo {
    display: none;
  }

  .history-modal {
    padding: 16px;
  }

  .history-dialog {
    padding: 54px 20px 28px;
  }

  .history-copy h2 {
    margin-bottom: 14px;
    font-size: 34px;
  }

  .history-scroll {
    max-height: calc(100vh - 190px);
    padding-right: 6px;
  }

  .history-result-block {
    padding: 18px 0;
  }

  .history-result-block h3 {
    margin-bottom: 9px;
    font-size: 24px;
  }

  .history-result-block p {
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.6;
  }

  .history-result-block strong {
    font-size: 1.08em;
  }

  .history-close {
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    right: 12px;
    z-index: 60;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  }
}
