:root {
  --ink: #211d4d;
  --ink-soft: #5f5b7c;
  --purple: #4a2ea6;
  --purple-dark: #32207b;
  --mint: #23b7a4;
  --coral: #ff6f7c;
  --sun: #ffc84d;
  --blue: #3ba6e8;
  --bg: #f7f8fc;
  --surface: #ffffff;
  --line: #e6e8f2;
  --shadow: 0 24px 60px rgba(35, 28, 90, 0.1);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --container: 1160px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 1000;
  background: var(--purple);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
}

.skip-link:focus { left: 20px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 248, 252, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(74, 46, 166, 0.08);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(35, 28, 90, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 88px;
}

.brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.brand img {
  width: 178px;
  height: auto;
  mix-blend-mode: multiply;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
}

.site-nav a {
  position: relative;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  border-radius: 2px;
  background: var(--coral);
  transition: right 0.25s ease;
}

.site-nav a:hover,
.site-nav a.is-active { color: var(--purple); }
.site-nav a:hover::after,
.site-nav a.is-active::after { right: 0; }

.header-cta {
  flex: 0 0 auto;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--purple);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(74, 46, 166, 0.2);
  transition: transform 0.2s ease, background 0.2s ease;
}

.header-cta:hover {
  transform: translateY(-2px);
  background: var(--purple-dark);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--purple);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 110px;
  min-height: 720px;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.hero-shape-one {
  width: 500px;
  height: 500px;
  top: -170px;
  right: -120px;
  background: rgba(255, 200, 77, 0.16);
}

.hero-shape-two {
  width: 380px;
  height: 380px;
  bottom: -170px;
  left: -110px;
  background: rgba(35, 183, 164, 0.12);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(46px, 5.2vw, 76px);
  line-height: 1.16;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.hero h1 span {
  position: relative;
  color: var(--purple);
  white-space: nowrap;
}

.hero h1 span::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 6px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 200, 77, 0.42);
  z-index: -1;
}

.hero-lead {
  max-width: 490px;
  margin: 26px 0 32px;
  color: var(--ink-soft);
  font-size: 17px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button-primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 14px 28px rgba(74, 46, 166, 0.22);
}

.button-primary:hover { background: var(--purple-dark); }

.button-ghost {
  border: 1px solid #d7d9e8;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}

.button-ghost:hover { background: #fff; }

.hero-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.hero-tags span {
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-soft);
  font-size: 13px;
}

.hero-visual {
  position: relative;
  min-height: 500px;
}

.hero-photo-frame {
  position: relative;
  z-index: 1;
  margin-left: 42px;
  padding: 14px;
  border-radius: 42px;
  background: #fff;
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}

.hero-photo-frame img {
  width: 100%;
  border-radius: 30px;
  aspect-ratio: 1.15;
  object-fit: cover;
}

.hero-panda {
  position: absolute;
  z-index: 3;
  width: min(210px, 42%);
  left: -18px;
  bottom: -24px;
  filter: drop-shadow(0 24px 24px rgba(35, 28, 90, 0.18));
  transition: transform 0.25s ease-out;
}

.floating-card {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 32px rgba(35, 28, 90, 0.12);
  backdrop-filter: blur(12px);
}

.floating-card strong,
.floating-card small { display: block; line-height: 1.2; }
.floating-card strong { font-size: 14px; }
.floating-card small { color: var(--ink-soft); font-size: 10px; letter-spacing: 0.06em; }

.floating-card-one { top: 18px; right: -12px; }
.floating-card-two { bottom: 36px; right: -18px; }

.dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.dot-coral { background: rgba(255, 111, 124, 0.2); border: 8px solid var(--coral); }
.dot-mint { background: rgba(35, 183, 164, 0.2); border: 8px solid var(--mint); }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 34px;
  width: 24px;
  height: 38px;
  border: 1.5px solid rgba(74, 46, 166, 0.28);
  border-radius: 999px;
  transform: translateX(-50%);
}

.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: var(--purple);
  transform: translateX(-50%);
  animation: scroll-dot 1.7s ease-in-out infinite;
}

@keyframes scroll-dot {
  0%, 100% { opacity: 0.3; transform: translate(-50%, 0); }
  50% { opacity: 1; transform: translate(-50%, 12px); }
}

.section { padding: 112px 0; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
}

.section-heading h2,
.about-copy h2,
.journey-copy h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(34px, 3.4vw, 50px);
  line-height: 1.28;
  letter-spacing: -0.03em;
}

.section-heading > p {
  max-width: 360px;
  margin: 0 0 6px;
  color: var(--ink-soft);
  font-size: 14px;
}

.about { background: #fff; }

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 88px;
  align-items: center;
}

.about-images {
  position: relative;
  min-height: 520px;
}

.image-tile {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--line);
  box-shadow: var(--shadow);
}

.image-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.image-tile:hover img { transform: scale(1.04); }

.image-tile-main {
  width: 78%;
  height: 430px;
}

.image-tile-small {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 50%;
  height: 260px;
  padding: 10px;
  background: #fff;
  border-radius: 36px;
}

.image-tile-small img { border-radius: 28px; }

.image-badge {
  position: absolute;
  left: 18px;
  bottom: 28px;
  width: 150px;
  padding: 20px;
  border-radius: 24px;
  background: var(--purple);
  color: #fff;
  box-shadow: 0 18px 34px rgba(74, 46, 166, 0.28);
}

.image-badge span {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.image-badge strong { font-size: 20px; }

.about-copy > p:not(.section-kicker) {
  color: var(--ink-soft);
  font-size: 15px;
}

.feature-list {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border-radius: 18px;
  background: var(--bg);
}

.feature-item > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #fff;
  color: var(--purple);
  font-size: 12px;
  font-weight: 700;
}

.feature-item strong,
.feature-item small { display: block; }
.feature-item strong { font-size: 15px; }
.feature-item small { color: var(--ink-soft); font-size: 12px; }

.courses { background: var(--bg); }

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.course-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.course-image {
  position: relative;
  height: 224px;
  overflow: hidden;
}

.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.course-card:hover .course-image img { transform: scale(1.06); }

.course-number {
  position: absolute;
  right: 18px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--purple);
  font-size: 12px;
  font-weight: 700;
}

.course-body { padding: 28px 26px 30px; }
.course-label { margin: 0 0 8px; color: var(--mint); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; }
.course-body h3 { margin: 0 0 12px; font-size: 21px; line-height: 1.4; }
.course-body > p:not(.course-label) { min-height: 76px; margin: 0 0 18px; color: var(--ink-soft); font-size: 14px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--purple);
  font-size: 14px;
  font-weight: 600;
}

.text-link span { transition: transform 0.2s ease; }
.text-link:hover span { transform: translateX(4px); }

.life {
  background: var(--purple-dark);
  color: #fff;
}

.section-heading-light .section-kicker { color: #a8dcd5; }
.section-heading-light > p { color: rgba(255, 255, 255, 0.65); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  margin: 0;
  height: 240px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
}

.gallery-wide { grid-column: span 2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.gallery-item:hover img { transform: scale(1.07); }

.gallery-item figcaption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(20, 15, 55, 0.62);
  color: #fff;
  font-size: 12px;
  backdrop-filter: blur(8px);
}

.gallery-item[data-lightbox] img,
img[data-lightbox] { cursor: zoom-in; }

.journey { background: #fff; }

.journey-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 90px;
  align-items: center;
}

.journey-copy > p:not(.section-kicker) {
  max-width: 420px;
  color: var(--ink-soft);
  font-size: 15px;
}

.journey-list {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.journey-list::before {
  content: "";
  position: absolute;
  left: 29px;
  top: 40px;
  bottom: 40px;
  width: 2px;
  background: var(--line);
}

.journey-list li {
  position: relative;
  display: flex;
  gap: 24px;
  padding: 20px 26px 20px 0;
}

.journey-index {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--bg);
  color: var(--purple);
  font-size: 13px;
  font-weight: 700;
}

.journey-list li:nth-child(2) .journey-index { color: var(--coral); }
.journey-list li:nth-child(3) .journey-index { color: var(--mint); }
.journey-list li:nth-child(4) .journey-index { color: #c89015; }

.journey-list strong { font-size: 18px; }
.journey-list p { margin: 4px 0 0; color: var(--ink-soft); font-size: 14px; }

.contact { padding-top: 20px; }

.contact-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  overflow: hidden;
  padding: 72px;
  border-radius: 40px;
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-copy > p:not(.section-kicker) {
  max-width: 430px;
  color: var(--ink-soft);
  font-size: 15px;
}

.contact-panda {
  position: absolute;
  left: 48px;
  bottom: -50px;
  width: 150px;
  opacity: 0.9;
}

.contact-details {
  position: relative;
  padding-left: 46px;
  border-left: 1px solid var(--line);
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: var(--bg);
  color: var(--purple);
  font-size: 13px;
  font-weight: 700;
}

.contact-row small,
.contact-row strong { display: block; line-height: 1.45; }
.contact-row small { color: var(--ink-soft); font-size: 12px; }
.contact-row strong { font-size: 15px; }

.contact-note {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.site-footer {
  padding: 52px 0 40px;
  background: #fff;
  border-top: 1px solid var(--line);
}

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

.footer-brand img {
  width: 168px;
  mix-blend-mode: multiply;
}

.footer-brand p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.footer-meta {
  text-align: right;
  color: var(--ink-soft);
  font-size: 12px;
}

.footer-meta p { margin: 4px 0; }
.footer-meta a:hover { color: var(--purple); text-decoration: underline; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 48px;
  background: rgba(18, 14, 45, 0.88);
  animation: fade-in 0.2s ease;
}

.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 86vh;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 28px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover { background: rgba(255, 255, 255, 0.26); }

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.course-card.reveal:nth-child(2),
.gallery-item.reveal:nth-child(2) { transition-delay: 0.08s; }
.course-card.reveal:nth-child(3),
.gallery-item.reveal:nth-child(3) { transition-delay: 0.16s; }
.gallery-item.reveal:nth-child(4) { transition-delay: 0.24s; }
.gallery-item.reveal:nth-child(5) { transition-delay: 0.32s; }

@media (max-width: 1080px) {
  .header-inner { gap: 18px; }
  .brand img { width: 154px; }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 13px; }
  .hero-grid { gap: 44px; }
  .about-grid,
  .journey-inner { gap: 56px; }
  .contact-card { padding: 56px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .header-cta { display: none; }

  .site-nav {
    position: absolute;
    top: 88px;
    left: 24px;
    right: 24px;
    display: none;
    margin: 0;
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 10px 12px; border-radius: 10px; }
  .site-nav a::after { display: none; }
  .site-nav a:hover { background: var(--bg); }

  .hero { padding-top: 62px; min-height: auto; }
  .hero-grid,
  .about-grid,
  .journey-inner { grid-template-columns: 1fr; }
  .hero-copy { max-width: 640px; }
  .hero-visual { min-height: 480px; }
  .about-images { min-height: 480px; }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-card { grid-template-columns: 1fr; gap: 36px; padding: 48px; }
  .contact-panda { display: none; }
  .contact-details { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-meta { text-align: left; }
}

@media (max-width: 620px) {
  html { scroll-padding-top: 78px; }
  .container { width: min(calc(100% - 32px), var(--container)); }
  .header-inner { min-height: 76px; }
  .brand img { width: 136px; }
  .site-nav { top: 76px; left: 16px; right: 16px; }

  .section { padding: 78px 0; }
  .hero { padding: 48px 0 84px; }
  .hero h1 { font-size: 42px; }
  .hero-lead { font-size: 15px; }
  .hero-visual { min-height: 360px; }
  .hero-photo-frame { margin-left: 26px; padding: 9px; border-radius: 30px; }
  .hero-photo-frame img { border-radius: 22px; aspect-ratio: 1; }
  .hero-panda { width: 132px; left: -8px; bottom: -14px; }
  .floating-card { padding: 8px 12px; border-radius: 14px; }
  .floating-card-one { right: -2px; }
  .floating-card-two { right: -6px; bottom: 24px; }
  .dot { width: 24px; height: 24px; border-width: 6px; }

  .section-heading { display: block; margin-bottom: 32px; }
  .section-heading > p { margin-top: 16px; }
  .about-images { min-height: 400px; }
  .image-tile-main { width: 88%; height: 320px; }
  .image-tile-small { width: 58%; height: 190px; }
  .image-badge { left: 0; bottom: 18px; width: 128px; padding: 16px; }

  .course-grid,
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-wide { grid-column: span 1; }
  .gallery-item { height: 220px; }

  .journey-list::before { left: 24px; }
  .journey-index { width: 50px; height: 50px; }
  .journey-list li { gap: 16px; padding-right: 0; }

  .contact-card { padding: 34px 24px; border-radius: 28px; }
  .contact-copy h2 { font-size: 32px; }
  .lightbox { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
