:root {
  --blue: #1f7bff;
  --deep-blue: #163b73;
  --ink: #2b3440;
  --muted: #6b778c;
  --soft-blue: #eef6ff;
  --page: #f6f9fc;
  --warm: #ffb84d;
  --green: #28b87a;
  --cyan: #42c6d8;
  --line: #dce7f5;
  --shadow: 0 12px 32px rgba(22, 59, 115, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  line-height: 1.7;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(220, 231, 245, 0.9);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 24px;
}

.brand img {
  width: 172px;
  height: 62px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #334155;
  font-size: 15px;
  font-weight: 600;
}

.site-nav a {
  white-space: nowrap;
}

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

.nav-cta {
  min-height: 40px;
  padding: 8px 18px;
  color: #fff !important;
  background: var(--blue);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(31, 123, 255, 0.18);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--deep-blue);
}

.hero {
  position: relative;
  min-height: 690px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #eaf4ff;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(246, 249, 252, 0.95) 0%, rgba(246, 249, 252, 0.82) 31%, rgba(246, 249, 252, 0.18) 62%, rgba(246, 249, 252, 0.05) 100%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 84px 0 64px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-title {
  max-width: 620px;
  margin: 0;
  color: var(--deep-blue);
  font-size: clamp(42px, 5.4vw, 68px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-title span {
  display: block;
  width: fit-content;
  padding: 2px 0;
  white-space: nowrap;
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: #3f4c5f;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(31, 123, 255, 0.22);
}

.button.secondary {
  color: var(--blue);
  background: #fff;
  border-color: #b8d8ff;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(640px, 100%);
  margin-top: 44px;
}

.hero-stats div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(220, 231, 245, 0.9);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(22, 59, 115, 0.06);
}

.hero-stats strong {
  display: block;
  color: var(--deep-blue);
  font-size: 28px;
  line-height: 1.2;
}

.hero-stats span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 88px 0;
}

.value-section,
.system-section,
.proof-section {
  background: #fff;
}

.courses-section,
.service-section {
  background: var(--page);
}

.section-head {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-head h2,
.contact-card h2,
.service-copy h2 {
  margin: 0;
  color: var(--deep-blue);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.25;
  letter-spacing: 0;
}

.section-head p:not(.eyebrow),
.service-copy p,
.contact-card p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.split-head {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(280px, 1fr);
  align-items: end;
  gap: 36px;
}

.value-grid,
.course-grid,
.service-grid,
.proof-grid,
.testimonial-grid {
  display: grid;
  gap: 20px;
}

.value-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.value-card,
.course-card,
.service-grid article {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.card-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--blue);
  border-radius: 8px;
  font-weight: 900;
}

.card-icon.warm {
  background: var(--warm);
}

.card-icon.green {
  background: var(--green);
}

.value-card h3,
.course-card h3,
.service-grid h3,
.path h3,
.teacher-card h3 {
  margin: 16px 0 8px;
  color: var(--deep-blue);
  font-size: 22px;
  line-height: 1.35;
}

.value-card p,
.course-card p,
.service-grid p,
.path p,
.teacher-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.course-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(420px, 1.18fr);
  gap: 26px;
  align-items: stretch;
}

.course-feature,
.teacher-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.course-feature img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: top center;
}

.course-feature div,
.teacher-card div {
  padding: 24px;
}

.tag {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 3px 10px;
  color: #7a4800;
  background: #fff1d3;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
}

.tag.blue {
  color: var(--blue);
  background: #e8f2ff;
}

.tag.cyan {
  color: #007d99;
  background: #e7faff;
}

.tag.green-tag {
  color: #0a7b50;
  background: #e8f8f1;
}

.tag.orange-tag {
  color: #9a5600;
  background: #fff2de;
}

.tag.purple-tag {
  color: #5a4cc4;
  background: #f0eeff;
}

.course-feature h3 {
  margin: 14px 0 8px;
  color: var(--deep-blue);
  font-size: 24px;
  line-height: 1.3;
}

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

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

.path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  position: relative;
}

.path article {
  position: relative;
  padding: 28px 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.path span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.teacher-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
}

.teacher-card:first-child {
  grid-column: 1 / -1;
}

.teacher-card:first-child img {
  aspect-ratio: 16 / 7;
}

.service-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(420px, 1.18fr);
  gap: 42px;
  align-items: center;
}

.service-copy .button {
  margin-top: 28px;
}

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

.proof-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.testimonial-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.testimonial-card {
  min-height: 245px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(22, 59, 115, 0.08);
}

.testimonial-card.highlight {
  background: linear-gradient(135deg, #eef6ff 0%, #fff8e8 100%);
}

.quote-mark {
  height: 36px;
  color: var(--blue);
  font-size: 54px;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 0.85;
}

.testimonial-card p {
  margin: 12px 0 24px;
  color: #3f4c5f;
  font-size: 15px;
}

.student-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.student-meta strong {
  color: var(--deep-blue);
  font-size: 17px;
}

.student-meta span {
  color: var(--muted);
  font-size: 13px;
}

.proof-grid figure {
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(22, 59, 115, 0.08);
}

.proof-grid img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  object-position: top center;
}

.proof-grid figcaption {
  padding: 14px 16px;
  color: var(--deep-blue);
  font-weight: 800;
}

.contact-section {
  padding: 88px 0;
  background: linear-gradient(135deg, #eaf4ff 0%, #fff8e9 100%);
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
  gap: 46px;
  align-items: center;
  padding: 42px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(220, 231, 245, 0.95);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--deep-blue);
  font-size: 14px;
  font-weight: 800;
}

.contact-form label:first-child,
.contact-form button {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cddced;
  border-radius: 8px;
  font: inherit;
}

.site-footer {
  padding: 40px 0;
  background: #102d59;
  color: #d8e7ff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-inner img {
  width: 150px;
  height: 52px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
}

.footer-inner p {
  max-width: 520px;
  margin: 14px 0 0;
  color: #b9cbe4;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  font-weight: 700;
}

@media (max-width: 920px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 74px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 12px 14px;
  }

  .nav-cta {
    text-align: center;
  }

  .hero {
    min-height: auto;
  }

  .hero-media img {
    object-position: 61% center;
  }

  .hero-media::after {
    background: linear-gradient(90deg, rgba(246, 249, 252, 0.96) 0%, rgba(246, 249, 252, 0.84) 58%, rgba(246, 249, 252, 0.48) 100%);
  }

  .hero-content {
    padding: 72px 0 52px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .hero-stats,
  .value-grid,
  .course-layout,
  .split-head,
  .teacher-grid,
  .service-layout,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .path,
  .proof-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-feature img {
    height: 460px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    min-height: 68px;
  }

  .brand img {
    width: 142px;
    height: 50px;
  }

  .site-nav {
    top: 68px;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-stats,
  .value-grid,
  .course-grid,
  .path,
  .service-grid,
  .proof-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .course-feature img {
    height: 420px;
  }

  .proof-grid img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .teacher-card:first-child img,
  .teacher-card img {
    aspect-ratio: 16 / 10;
  }

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

  .contact-card {
    padding: 24px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
