:root {
  --navy: #14223a;
  --ink: #1f2937;
  --muted: #667085;
  --paper: #fffaf1;
  --card: #fffdfa;
  --line: #e6dccd;
  --orange: #d98245;
  --orange-dark: #bd6830;
  --gold: #d9ad62;
  --purple: #5b3674;
  --teal: #1e7370;
  --green: #547a37;
  --brown: #9a5f2d;
  --shadow: 0 18px 60px rgba(57, 39, 18, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--navy);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  line-height: 1.7;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 250, 241, 0.92);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(20, 34, 58, 0.06);
}

.header-inner {
  width: min(1360px, calc(100% - 40px));
  height: 94px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

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

.brand img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 8px 22px rgba(20, 34, 58, 0.08);
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand strong {
  font-size: 28px;
  line-height: 1.08;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  color: #697386;
  font-size: 16px;
}

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

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

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

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  color: var(--navy);
  font-size: clamp(52px, 6.5vw, 94px);
  line-height: 1.05;
}

h2 {
  margin-bottom: 16px;
  color: var(--navy);
  font-size: clamp(30px, 3.4vw, 52px);
  line-height: 1.18;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.3;
}

p {
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 8px;
  font-weight: 900;
}

.button.primary {
  color: #fff;
  background: var(--navy);
}

.button.primary:hover {
  background: #20345a;
}

.button.light {
  border: 1px solid var(--line);
  background: var(--card);
}

.button.light:hover {
  border-color: rgba(217, 130, 69, 0.45);
}

.button.dark-text {
  color: var(--navy);
}

.hero {
  position: relative;
  padding: 106px 0 86px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 250, 241, 0.98), rgba(255, 250, 241, 0.86) 46%, rgba(255, 250, 241, 0.55));
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  gap: 70px;
  align-items: center;
}

.hero-copy h2 {
  color: var(--gold);
  font-size: clamp(30px, 3.1vw, 46px);
}

.hero-copy > p {
  max-width: 740px;
  font-size: 20px;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hero-stats article {
  min-height: 124px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.84);
  box-shadow: 0 12px 34px rgba(57, 39, 18, 0.05);
}

.hero-stats strong {
  display: block;
  margin-bottom: 8px;
  font-size: 34px;
  line-height: 1;
}

.hero-stats span {
  color: var(--muted);
}

.hero-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1672 / 941;
  object-fit: contain;
  background: #f7efe3;
}

.hero-card figcaption {
  padding: 28px 30px;
  text-align: center;
  border-top: 1px solid var(--line);
}

.hero-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 28px;
}

.hero-card span {
  color: var(--muted);
  font-size: 14px;
}

.about-section,
.courses-section,
.assessment-section,
.moments-section,
.trust-section,
.process-section,
.faq-section,
.contact-section {
  padding: 92px 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 42px;
}

.section-heading.wide {
  max-width: 1000px;
}

.section-heading p {
  font-size: 17px;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 24px;
}

.about-poster {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 14px 42px rgba(57, 39, 18, 0.05);
}

.about-poster img {
  width: 100%;
  height: 100%;
  min-height: 690px;
  object-fit: cover;
}

.about-poster figcaption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 18px;
  border-radius: 8px;
  color: #fff;
  background: rgba(20, 34, 58, 0.84);
}

.about-poster strong,
.about-poster span {
  display: block;
}

.about-poster strong {
  font-size: 23px;
}

.about-poster span {
  color: rgba(255, 255, 255, 0.78);
}

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

.about-cards article,
.assessment-grid article,
.trust-grid article,
.faq-grid article,
.contact-card,
.qr-card,
.map-card,
.campus-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

.about-cards article {
  min-height: 160px;
  padding: 24px;
}

.about-cards .span-2 {
  grid-column: span 2;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0;
}

.tag-list span {
  padding: 6px 11px;
  border: 1px solid rgba(217, 130, 69, 0.35);
  border-radius: 6px;
  color: var(--navy);
  background: rgba(217, 130, 69, 0.08);
  font-size: 13px;
  font-weight: 800;
}

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

.subject-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 12px 40px rgba(57, 39, 18, 0.06);
}

.subject-visual {
  position: relative;
  height: 390px;
  overflow: hidden;
  background: #f1e8db;
}

.subject-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 250, 241, 0.93), rgba(255, 250, 241, 0.5) 45%, rgba(255, 250, 241, 0) 75%);
}

.subject-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.accent-orange .subject-visual img {
  object-fit: contain;
  object-position: right center;
  background: linear-gradient(90deg, #fffaf1 0%, #f2dfca 58%, #dca26f 100%);
}

.accent-brown .subject-visual img {
  object-position: 55% 74%;
}

.subject-card:hover .subject-visual img {
  transform: scale(1.035);
}

.subject-copy {
  position: absolute;
  z-index: 1;
  top: 34px;
  left: 24px;
  width: 58%;
}

.subject-copy h3 {
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 44px;
  line-height: 1;
}

.subject-copy p {
  color: #3f3d3a;
  font-weight: 800;
}

.subject-copy span {
  display: block;
  width: 42px;
  height: 3px;
  margin: 14px 0 24px;
  background: var(--accent);
}

.subject-body {
  min-height: 154px;
  padding: 24px;
}

.subject-body h4 {
  margin-bottom: 10px;
  font-size: 22px;
}

.subject-body p {
  margin-bottom: 0;
}

.accent-orange {
  --accent: #e75d24;
}

.accent-burgundy {
  --accent: #a11d3d;
}

.accent-teal {
  --accent: var(--teal);
}

.accent-green {
  --accent: var(--green);
}

.accent-brown {
  --accent: var(--brown);
}

.accent-purple {
  --accent: var(--purple);
}

.trial-banner {
  padding: 20px 0 78px;
}

.trial-card {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 42px;
  align-items: center;
  padding: 42px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #14223a, #263b5f);
  box-shadow: var(--shadow);
}

.trial-card h2,
.trial-card p {
  color: #fff;
}

.trial-card .eyebrow {
  color: rgba(255, 255, 255, 0.75);
}

.trial-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trial-card aside {
  padding: 28px;
  border-radius: 8px;
  text-align: center;
  background: var(--card);
}

.trial-card aside strong {
  display: block;
  margin-bottom: 12px;
  color: var(--orange);
  font-size: 30px;
}

.trial-card aside span,
.trial-card aside small {
  display: block;
  color: var(--muted);
}

.trial-card aside small {
  margin-top: 10px;
}

.assessment-grid,
.trust-grid {
  display: grid;
  gap: 18px;
}

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

.assessment-grid article,
.trust-grid article {
  padding: 26px;
}

.assessment-grid span,
.trust-grid span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border-radius: 50%;
  color: #fff;
  background: var(--orange);
  font-weight: 900;
}

.moments-section {
  padding-top: 54px;
}

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

.gallery-grid figure {
  position: relative;
  height: 230px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-grid figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 10px;
  border-radius: 6px;
  color: #fff;
  background: rgba(20, 34, 58, 0.82);
  font-size: 12px;
  font-weight: 800;
}

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

.trust-grid article {
  min-height: 190px;
}

.process-list {
  display: grid;
  gap: 14px;
}

.process-list article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  align-items: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

.process-list span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: var(--navy);
  font-weight: 900;
}

.process-list p {
  margin-bottom: 0;
}

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

.faq-grid article {
  min-height: 150px;
  padding: 26px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.55fr 0.9fr;
  gap: 18px;
  margin-bottom: 22px;
}

.contact-card,
.qr-card,
.map-card {
  padding: 28px;
}

.contact-card dl {
  margin: 0 0 24px;
}

.contact-card dl > div {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.contact-card dt {
  color: var(--muted);
  font-size: 13px;
}

.contact-card dd {
  margin: 2px 0 0;
  font-weight: 800;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.qr-card {
  display: grid;
  place-items: center;
  text-align: center;
}

.qr-card a {
  display: inline-flex;
  justify-content: center;
  width: min(100%, 280px);
}

.qr-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}

.qr-card p {
  margin-bottom: 0;
}

.qr-card small {
  color: var(--muted);
  font-size: 13px;
}

.map-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background-image: linear-gradient(135deg, rgba(217, 130, 69, 0.08), rgba(255, 255, 255, 0.4));
}

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

.campus-card {
  padding: 20px;
}

.campus-card span {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 9px;
  border-radius: 6px;
  color: var(--orange-dark);
  background: rgba(217, 130, 69, 0.12);
  font-size: 12px;
  font-weight: 900;
}

.campus-card address {
  margin: 0 0 12px;
  color: var(--muted);
  font-style: normal;
}

.campus-card a {
  display: inline-flex;
  margin-top: 8px;
  color: var(--navy);
  font-weight: 900;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer strong,
.site-footer span,
.site-footer a {
  display: block;
}

.site-footer a {
  color: inherit;
}

.floating-call {
  position: fixed;
  z-index: 30;
  right: 28px;
  bottom: 28px;
}

.floating-call a {
  display: grid;
  place-items: center;
  min-width: 132px;
  height: 64px;
  padding: 0 24px;
  border-radius: 999px;
  color: #fff;
  background: var(--orange);
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 16px 40px rgba(217, 130, 69, 0.32);
}

@media (max-width: 1080px) {
  .header-inner {
    height: 78px;
  }

  .brand strong {
    font-size: 20px;
  }

  .brand small {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 78px;
    left: 20px;
    right: 20px;
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: grid;
  }

  .main-nav a {
    padding: 12px 8px;
    text-align: center;
  }

  .hero-grid,
  .about-grid,
  .trial-card,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 680px) {
  body {
    padding-bottom: 74px;
  }

  .section-inner,
  .header-inner,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .hero {
    padding: 58px 0 64px;
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 30px;
  }

  .hero-copy h2 {
    font-size: 30px;
  }

  .hero-copy > p {
    font-size: 17px;
  }

  .hero-stats,
  .subject-grid,
  .assessment-grid,
  .gallery-grid,
  .trust-grid,
  .faq-grid,
  .campus-grid,
  .about-cards {
    grid-template-columns: 1fr;
  }

  .about-cards .span-2 {
    grid-column: auto;
  }

  .hero-card strong {
    font-size: 22px;
  }

  .about-section,
  .courses-section,
  .assessment-section,
  .moments-section,
  .trust-section,
  .process-section,
  .faq-section,
  .contact-section {
    padding: 64px 0;
  }

  .about-poster img {
    min-height: 420px;
  }

  .subject-visual {
    height: 360px;
  }

  .subject-copy {
    width: 64%;
  }

  .subject-copy h3 {
    font-size: 38px;
  }

  .trial-card {
    padding: 26px;
  }

  .process-list article {
    grid-template-columns: 44px 1fr;
    padding: 18px;
  }

  .site-footer {
    display: block;
    padding-bottom: 90px;
  }

  .site-footer > span {
    margin-top: 12px;
  }

  .floating-call {
    left: 0;
    right: 0;
    bottom: 0;
  }

  .floating-call a {
    width: 100%;
    height: 62px;
    border-radius: 0;
  }
}
