:root {
  color-scheme: light;
  --ink: #0f2f42;
  --muted: #526d7a;
  --line: #d3e7ef;
  --paper: #fbfeff;
  --soft: #eaf7fb;
  --blue: #0876c8;
  --blue-deep: #063b67;
  --aqua: #44b8d3;
  --gold: #c99a4a;
  --green: #4f8678;
  --shadow: 0 24px 70px rgba(7, 50, 78, 0.15);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family:
    "PingFang SC",
    "Microsoft YaHei",
    "Noto Sans SC",
    Arial,
    sans-serif;
  background:
    radial-gradient(circle at top right, rgba(68, 184, 211, 0.16), transparent 34rem),
    var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

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

button {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 28px;
  color: #ffffff;
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(247, 253, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 12px 36px rgba(7, 50, 78, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 700;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.9rem;
  flex: 0 0 auto;
}

.brand-text {
  font-size: 1rem;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
}

.site-nav a {
  opacity: 0.86;
  transition: opacity 160ms ease;
}

.site-nav a:hover {
  opacity: 1;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: currentColor;
  transform-origin: center;
  transition: transform 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 88svh;
  overflow: hidden;
  display: grid;
  align-items: center;
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 28, 45, 0.78) 0%, rgba(5, 58, 88, 0.56) 48%, rgba(8, 118, 200, 0.1) 100%),
    linear-gradient(180deg, rgba(4, 28, 45, 0.38) 0%, rgba(7, 98, 142, 0.1) 46%, rgba(4, 28, 45, 0.52) 100%);
}

.hero-content {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 96px 0 56px;
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #d7b26d;
}

.eyebrow.dark {
  color: var(--blue);
}

.eyebrow.light {
  color: #d7b26d;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-family:
    "Noto Serif SC",
    "Songti SC",
    "SimSun",
    serif;
  font-size: 4.35rem;
  line-height: 1.08;
  font-weight: 700;
}

.hero-subtitle {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.2rem;
  line-height: 1.9;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.2;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

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

.button.primary {
  background: linear-gradient(135deg, var(--blue), #08a6d6);
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(8, 118, 200, 0.28);
}

.button.ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.button.light {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.08);
}

.button.full {
  width: 100%;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 150px));
  gap: 16px;
  max-width: 540px;
  margin: 48px 0 0;
}

.hero-facts div {
  min-height: 88px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(7, 75, 111, 0.28);
  backdrop-filter: blur(12px);
}

.hero-facts dt {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}

.hero-facts dd {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 800;
}

.intro-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.strip-item {
  min-height: 144px;
  padding: 34px 34px;
  background: rgba(251, 254, 255, 0.96);
}

.strip-item span {
  display: block;
  margin-bottom: 12px;
  color: var(--blue);
  font-weight: 800;
}

.strip-item strong {
  display: block;
  font-size: 1.04rem;
  line-height: 1.7;
}

.section {
  position: relative;
  padding: 96px 0;
  scroll-margin-top: 88px;
}

.section-inner {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 72px;
  align-items: center;
}

.section-copy h2,
.section-heading h2,
.detail-layout h2,
.enroll-copy h2 {
  margin: 0;
  font-family:
    "Noto Serif SC",
    "Songti SC",
    "SimSun",
    serif;
  font-size: 2.55rem;
  line-height: 1.25;
  font-weight: 700;
}

.section-copy p,
.section-heading p,
.enroll-copy p {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.9;
}

.feature-photo,
.gallery figure,
.life-grid figure {
  margin: 0;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.feature-photo {
  border-radius: 8px;
}

.feature-photo img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

figcaption {
  padding: 16px 18px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.metrics {
  padding: 0;
  background: linear-gradient(180deg, #f6fcff 0%, var(--soft) 100%);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  transform: translateY(44px);
}

.metric-card {
  min-height: 220px;
  padding: 34px;
  background: linear-gradient(145deg, #0d344a, #09283d);
  color: #ffffff;
  box-shadow: 0 18px 46px rgba(7, 50, 78, 0.18);
}

.metric-card:nth-child(2) {
  background: linear-gradient(145deg, var(--blue), var(--blue-deep));
}

.metric-card:nth-child(3) {
  background: linear-gradient(145deg, #5d927f, var(--green));
}

.metric-card span {
  display: block;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.metric-card strong {
  display: block;
  font-size: 1.72rem;
  line-height: 1.2;
}

.metric-card p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.75;
}

.curriculum {
  padding-top: 152px;
  background: linear-gradient(180deg, var(--soft) 0%, #f8fdff 100%);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-heading.compact {
  margin-bottom: 34px;
}

.section-heading p {
  max-width: 640px;
}

.track-grid {
  display: grid;
  gap: 26px;
}

.track-card {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  align-items: stretch;
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.track-card.reverse {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
}

.track-card.reverse .track-media {
  order: 2;
}

.track-media {
  min-height: 360px;
  background: linear-gradient(145deg, #e0f3f8, #f7fcff);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.track-media img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
}

.track-copy {
  padding: 46px;
}

.track-copy span {
  display: block;
  margin-bottom: 14px;
  color: var(--blue);
  font-weight: 800;
}

.track-copy h3 {
  margin: 0;
  font-size: 1.85rem;
  line-height: 1.3;
}

.track-copy p {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.85;
}

.track-copy ul,
.detail-columns ul {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.track-copy li,
.detail-columns li {
  position: relative;
  padding-left: 18px;
  line-height: 1.65;
  color: var(--ink);
}

.track-copy li::before,
.detail-columns li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.details {
  background: linear-gradient(135deg, #09283d 0%, #0b3f5d 58%, #0d5368 100%);
  color: #ffffff;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 58px;
  align-items: start;
}

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

.detail-columns article {
  min-height: 360px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.detail-columns h3 {
  margin: 0;
  font-size: 1.35rem;
}

.detail-columns li {
  color: rgba(255, 255, 255, 0.84);
}

.environment {
  background: linear-gradient(180deg, #fbfeff 0%, #f0faff 100%);
}

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

.gallery figure {
  border-radius: 8px;
}

.gallery img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-large img {
  height: calc(100% - 53px);
  min-height: 420px;
  aspect-ratio: auto;
}

.life {
  background: linear-gradient(180deg, #eaf7fb 0%, #f8fdff 100%);
}

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

.life-grid figure {
  border-radius: 8px;
}

.life-grid img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.enroll {
  background:
    linear-gradient(135deg, rgba(5, 28, 44, 0.92), rgba(6, 72, 103, 0.88)),
    url("images/studio2.jpg") center / cover;
  color: #ffffff;
}

.enroll-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 72px;
  align-items: center;
}

.enroll-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.price-panel {
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(219, 244, 251, 0.11);
  backdrop-filter: blur(14px);
}

.price-panel span {
  color: rgba(255, 255, 255, 0.74);
}

.price-panel strong {
  display: block;
  margin-top: 12px;
  font-size: 4rem;
  line-height: 1;
}

.price-panel p {
  margin: 10px 0 28px;
  color: rgba(255, 255, 255, 0.78);
}

.price-panel .button + .button {
  margin-top: 12px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 28px;
  background: #062334;
  color: #ffffff;
}

.site-footer strong {
  display: block;
  margin-bottom: 8px;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.76);
}

.contact-float {
  position: fixed;
  z-index: 90;
  right: 22px;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(-50%);
}

.contact-trigger {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #09a8d7);
  color: #ffffff;
  box-shadow: 0 18px 46px rgba(8, 118, 200, 0.32);
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.contact-trigger:hover,
.contact-trigger[aria-expanded="true"] {
  transform: translateY(-2px);
  box-shadow: 0 22px 54px rgba(8, 118, 200, 0.4);
}

.contact-trigger-icon {
  font-size: 1.7rem;
  line-height: 1;
  font-weight: 800;
}

.contact-trigger-text {
  margin-top: -6px;
  font-size: 0.78rem;
  font-weight: 800;
}

.contact-panel {
  position: absolute;
  right: 84px;
  top: 50%;
  width: min(286px, calc(100vw - 128px));
  padding: 18px;
  border: 1px solid rgba(211, 231, 239, 0.88);
  border-radius: 8px;
  background: rgba(251, 254, 255, 0.96);
  color: var(--ink);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transform: translate(14px, -50%);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.contact-float.is-open .contact-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, -50%);
}

.contact-panel strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1rem;
}

.contact-panel a {
  display: block;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.contact-panel span {
  display: block;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
}

.contact-panel b {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: 0.98rem;
  line-height: 1.35;
}

.toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 24px);
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 16px 46px rgba(18, 32, 46, 0.22);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1080px) {
  .hero h1 {
    font-size: 3.5rem;
  }

  .split,
  .detail-layout,
  .enroll-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .track-card,
  .track-card.reverse {
    grid-template-columns: 1fr;
  }

  .track-card.reverse .track-media {
    order: 0;
  }

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

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

@media (max-width: 820px) {
  .site-header {
    height: 68px;
    padding: 0 18px;
  }

  .brand-text {
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 10px 18px 22px;
    background: rgba(255, 255, 255, 0.98);
    color: var(--ink);
    box-shadow: 0 22px 42px rgba(18, 32, 46, 0.14);
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 160ms ease,
      transform 160ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }

  .hero {
    min-height: 86svh;
  }

  .hero-content {
    width: min(100% - 36px, 640px);
    padding: 92px 0 42px;
  }

  .hero h1 {
    font-size: 2.7rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .hero-facts,
  .intro-strip,
  .metric-grid,
  .detail-columns {
    grid-template-columns: 1fr;
  }

  .hero-facts {
    max-width: 100%;
  }

  .metric-grid {
    transform: none;
  }

  .curriculum {
    padding-top: 96px;
  }

  .section {
    padding: 76px 0;
  }

  .section-inner {
    width: min(100% - 36px, 680px);
  }

  .section-copy h2,
  .section-heading h2,
  .detail-layout h2,
  .enroll-copy h2 {
    font-size: 2.1rem;
  }

  .track-copy {
    padding: 34px 26px;
  }

  .track-media {
    min-height: 280px;
  }

  .price-panel {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 0.82rem;
  }

  .brand-text {
    max-width: 170px;
    font-size: 0.94rem;
  }

  .hero h1 {
    font-size: 2.18rem;
  }

  .hero-subtitle {
    line-height: 1.75;
  }

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

  .hero-facts div {
    min-height: 78px;
  }

  .strip-item,
  .metric-card,
  .detail-columns article,
  .price-panel {
    padding: 26px 22px;
  }

  .gallery,
  .life-grid {
    grid-template-columns: 1fr;
  }

  .gallery-large {
    grid-column: span 1;
  }

  .gallery-large img {
    min-height: 260px;
  }

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

  .price-panel strong {
    font-size: 3.2rem;
  }

  .contact-float {
    right: 14px;
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .contact-trigger {
    width: 62px;
    height: 62px;
  }

  .contact-panel {
    right: 0;
    top: auto;
    bottom: 76px;
    width: min(288px, calc(100vw - 28px));
    transform: translateY(12px);
  }

  .contact-float.is-open .contact-panel {
    transform: translateY(0);
  }
}
