:root {
  --red: #b31e1d;
  --red-deep: #7b1010;
  --red-bright: #db342a;
  --gold: #d9ae62;
  --gold-light: #f3dfb3;
  --ink: #251916;
  --muted: #796963;
  --paper: #fffaf0;
  --white: #fff;
  --shadow: 0 18px 55px rgba(91, 22, 14, .12);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background:
    radial-gradient(circle at 10% 15%, rgba(215, 172, 96, .1), transparent 25%),
    linear-gradient(180deg, #fffdf7 0%, #fff8ea 48%, #fffdf8 100%);
}
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; }
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }

.container { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.topbar {
  background: #781010;
  color: #fff4db;
  font-size: 13px;
  letter-spacing: .08em;
  text-align: center;
  padding: 8px 16px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  height: 72px;
  background: rgba(255, 252, 245, .93);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(126, 42, 28, .12);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 34px; }
.brand { display: flex; align-items: center; min-width: max-content; }
.brand-logo { width: 145px; height: auto; }
.nav { margin-left: auto; display: flex; gap: 4px; }
.nav a { padding: 12px 15px; border-radius: 999px; font-size: 14px; }
.nav a:hover, .nav a.active { color: var(--red); background: #f8e9dc; }
.header-cta {
  padding: 11px 20px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, #d53a2f, #961314);
  box-shadow: 0 10px 22px rgba(149, 23, 21, .2);
}
.menu-btn { display: none; margin-left: auto; border: 0; background: transparent; font-size: 26px; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  color: white;
  background:
    linear-gradient(100deg, rgba(89, 6, 7, .98) 0%, rgba(151, 22, 19, .94) 48%, rgba(201, 49, 34, .82) 100%),
    url("../images/hero-teachers.png") center 23% / cover;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(239, 199, 119, .18);
  border-radius: 50%;
}
.hero::before { width: 620px; height: 620px; right: -220px; top: -210px; }
.hero::after { width: 430px; height: 430px; right: -130px; top: -115px; }
.hero-cloud { position: absolute; inset: auto 0 0; height: 95px; background: linear-gradient(180deg, transparent, #fffaf0); }
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 54px;
  align-items: center;
  min-height: 740px;
  padding: 60px 0 90px;
}
.eyebrow { display: flex; align-items: center; gap: 10px; color: #f5d694; font-size: 15px; letter-spacing: .18em; }
.eyebrow::before { content: ""; width: 45px; height: 1px; background: currentColor; }
.hero h1 { margin: 20px 0 12px; font-family: STKaiti, KaiTi, serif; font-size: clamp(54px, 7vw, 91px); line-height: .98; letter-spacing: .05em; }
.hero h1 span { display: block; margin-top: 13px; font-family: inherit; color: #f3cc78; font-size: .45em; letter-spacing: .17em; }
.hero-sub { max-width: 650px; margin: 23px 0; color: #ffe9d9; font-size: 19px; line-height: 1.8; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-tags span { padding: 8px 13px; border: 1px solid rgba(255, 222, 167, .42); border-radius: 999px; background: rgba(255, 246, 225, .1); font-size: 13px; }
.hero-actions { display: flex; align-items: center; gap: 16px; margin-top: 30px; }
.primary-btn, .outline-btn { border-radius: 12px; padding: 14px 26px; font-weight: 800; }
.primary-btn { border: 0; color: #73100e; background: linear-gradient(135deg, #ffe2a1, #d4a24a); box-shadow: 0 15px 30px rgba(51, 4, 3, .25); }
.outline-btn { border: 1px solid rgba(255, 231, 185, .5); color: white; background: rgba(255,255,255,.07); }
.hero-card {
  position: relative;
  justify-self: end;
  overflow: hidden;
  width: min(420px, 100%);
  padding: 14px;
  border: 1px solid rgba(255, 229, 173, .5);
  border-radius: 30px 10px 30px 10px;
  background: rgba(255, 248, 228, .13);
  box-shadow: 0 35px 70px rgba(38, 2, 2, .33);
  transform: rotate(1.2deg);
}
.hero-card img { width: 100%; height: auto; border-radius: 22px 6px 22px 6px; }
.quick-stats { position: relative; z-index: 5; margin-top: -38px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 28px 20px;
  border: 1px solid rgba(146, 74, 46, .12);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, .96);
  box-shadow: var(--shadow);
}
.stat { text-align: center; border-right: 1px solid #eadcc7; }
.stat:last-child { border-right: 0; }
.stat strong { display: block; color: var(--red); font-family: Georgia, serif; font-size: 29px; }
.stat span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }

.section { padding: 92px 0; }
.section--cream { background: #fbf3e4; }
.section-title { text-align: center; margin-bottom: 42px; }
.section-title .mini { color: var(--red); font-size: 13px; letter-spacing: .28em; text-transform: uppercase; }
.section-title h2 { margin: 9px 0 10px; font-family: STKaiti, KaiTi, serif; font-size: clamp(33px, 4vw, 48px); }
.section-title p { margin: 0 auto; max-width: 650px; color: var(--muted); line-height: 1.8; }

.path-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.path-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  padding: 26px 22px;
  border: 1px solid #ead9bd;
  border-radius: 16px;
  background: rgba(255,255,255,.76);
  transition: transform .25s ease, box-shadow .25s ease;
}
.path-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.path-card::after { content: attr(data-step); position: absolute; right: 8px; bottom: -26px; color: rgba(142, 39, 27, .07); font-family: Georgia, serif; font-size: 110px; font-weight: 900; }
.path-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; color: white; background: linear-gradient(145deg, #c93c2f, #881316); }
.path-card h3 { margin: 21px 0 8px; font-size: 20px; }
.path-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }

.course-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 32px; }
.tab-btn { padding: 11px 23px; border: 1px solid #dfc8ac; border-radius: 999px; color: #66433a; background: transparent; transition: .2s ease; }
.tab-btn:hover, .tab-btn.active { border-color: var(--red); color: white; background: var(--red); box-shadow: 0 9px 22px rgba(147, 24, 20, .2); }
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.course-grid.course-grid--single {
  grid-template-columns: minmax(0, 430px);
  justify-content: center;
}
.course-grid.course-grid--double {
  grid-template-columns: repeat(2, minmax(0, 400px));
  justify-content: center;
}
.course-card {
  overflow: hidden;
  border: 1px solid #ead8c1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 35px rgba(95, 37, 23, .08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.course-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.poster { position: relative; overflow: hidden; aspect-ratio: 9 / 16; background: #8f1718; }
.poster img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.poster-tag { position: absolute; top: 14px; left: 14px; padding: 6px 11px; border-radius: 999px; color: #7b1713; font-size: 12px; font-weight: 800; background: #ffe5aa; box-shadow: 0 6px 15px rgba(56,0,0,.18); }
.course-body { padding: 20px; }
.course-body h3 { min-height: 54px; margin: 0 0 8px; font-size: 18px; line-height: 1.5; }
.course-desc { min-height: 46px; margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.course-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.course-meta span { padding: 5px 8px; border-radius: 6px; color: #8c4a3d; font-size: 11px; background: #fff3e3; }
.course-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px dashed #e6d6c5; }
.course-price { color: var(--red); }
.course-price small { font-size: 12px; }
.course-price strong { font-family: Georgia, serif; font-size: 28px; }
.detail-btn { padding: 9px 14px; border: 1px solid var(--red); border-radius: 9px; color: var(--red); background: white; }
.detail-btn:hover { color: white; background: var(--red); }
.empty { grid-column: 1 / -1; padding: 50px; color: var(--muted); text-align: center; }

.package {
  overflow: hidden;
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  border: 1px solid #e5ccb0;
  border-radius: 26px;
  color: white;
  background: linear-gradient(130deg, #711010, #b52320);
  box-shadow: 0 28px 75px rgba(91, 18, 14, .2);
}
.package-image { min-height: 520px; background: #8c1717; }
.package-image img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.package-copy { display: flex; flex-direction: column; padding: 55px; }
.package-copy .label { color: #f2ca79; letter-spacing: .22em; font-size: 13px; }
.package-copy h2 { margin: 13px 0 12px; font-family: STKaiti, KaiTi, serif; font-size: 42px; }
.package-heading > p { margin: 0; color: #f6dcd3; line-height: 1.8; }
.package-subjects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-top: 26px; }
.package-subjects span { display: flex; flex-direction: column; gap: 7px; padding: 14px 12px; border: 1px solid rgba(255, 231, 190, .22); border-radius: 11px; color: #fff4df; font-weight: 800; background: rgba(255,255,255,.06); }
.package-subjects small { color: #f2ca79; font-family: Georgia, serif; font-size: 12px; font-weight: 400; }
.package-path { margin-top: 24px; padding: 22px 23px; border-radius: 15px; color: #6f1a16; background: #fff5df; }
.package-path-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 13px; border-bottom: 1px solid #ebd2a6; }
.package-path-title span { color: #821713; font-size: 17px; font-weight: 900; }
.package-path-title em { color: #a47251; font-size: 12px; font-style: normal; }
.package-stage { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px dashed #e7ceb0; }
.package-stage:last-child { border-bottom: 0; padding-bottom: 0; }
.package-stage i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #fff1d5; font-family: Georgia, serif; font-size: 11px; font-style: normal; background: #a91d1a; }
.package-stage b, .package-stage span { display: block; }
.package-stage b { margin-bottom: 3px; color: #861914; font-size: 14px; }
.package-stage span { color: #916a58; font-size: 12px; line-height: 1.5; }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0 26px; }
.benefit { padding: 15px; border: 1px solid rgba(255, 231, 190, .22); border-radius: 11px; background: rgba(255,255,255,.06); }
.benefit b { display: block; color: #f4ce83; margin-bottom: 5px; }
.benefit span { color: #f5ddd4; font-size: 12px; }
.package-price { display: flex; align-items: center; gap: 18px; margin-top: auto; padding-top: 22px; border-top: 1px solid rgba(255, 231, 190, .18); }
.package-price strong { color: #f4ce83; font-family: Georgia, serif; font-size: 54px; line-height: 1; }
.package-price s { color: #deb8af; }

.cta-band { padding: 65px 0; color: white; text-align: center; background: linear-gradient(110deg, #7a1011, #c02d25); }
.cta-band h2 { margin: 0 0 9px; font-family: STKaiti, KaiTi, serif; font-size: 40px; }
.cta-band p { color: #f4d8ce; }
.cta-band .primary-btn { margin-top: 14px; }
footer { padding: 32px 0 92px; color: #9b8279; text-align: center; font-size: 12px; background: #291c19; }

.floating-consult { position: fixed; right: 24px; bottom: 28px; z-index: 70; width: 62px; height: 62px; border: 0; border-radius: 50%; color: white; font-size: 12px; font-weight: 800; background: linear-gradient(145deg, #e04737, #931215); box-shadow: 0 15px 35px rgba(111, 16, 14, .35); }
.mobile-bar { display: none; }

.modal { position: fixed; inset: 0; z-index: 120; display: none; place-items: center; padding: 20px; background: rgba(31, 12, 9, .78); }
.modal.open { display: grid; }
.modal-dialog { position: relative; width: min(520px, 100%); max-height: 90vh; overflow: auto; border-radius: 16px; background: white; box-shadow: 0 35px 90px rgba(0,0,0,.4); }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border: 0; border-radius: 50%; color: white; font-size: 22px; background: rgba(74, 8, 8, .78); }
.consult-box { padding: 42px; }
.consult-box h3 { margin: 0 0 8px; font-size: 25px; }
.consult-box p { color: var(--muted); line-height: 1.7; }
.contact-placeholder { margin-top: 20px; padding: 28px; border: 1px dashed #d7b991; border-radius: 12px; color: #9b6a53; text-align: center; background: #fff9ed; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: block; }
  .nav.open { position: absolute; top: 72px; left: 0; right: 0; display: grid; padding: 12px 18px 20px; background: #fffaf1; border-bottom: 1px solid #ead7bf; box-shadow: 0 16px 28px rgba(68, 20, 12, .12); }
  .hero-inner { grid-template-columns: 1fr; min-height: auto; padding-top: 70px; text-align: center; }
  .eyebrow, .hero-tags, .hero-actions { justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-card { justify-self: center; width: min(360px, 88%); }
  .path-grid { grid-template-columns: repeat(3, 1fr); }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .package { grid-template-columns: 1fr; }
  .package-image { min-height: 0; max-height: none; aspect-ratio: 879 / 2048; }
  .package-image img { object-fit: contain; }
  .package-subjects { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .container { width: min(100% - 24px, 1180px); }
  .site-header { height: 62px; }
  .nav.open { top: 62px; }
  .hero { min-height: auto; }
  .hero-inner { padding: 50px 0 90px; gap: 35px; }
  .hero h1 { font-size: 51px; }
  .hero-sub { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .stat:nth-child(2) { border-right: 0; }
  .section { padding: 68px 0; }
  .path-grid,
  .course-grid,
  .course-grid.course-grid--single,
  .course-grid.course-grid--double { grid-template-columns: 1fr; }
  .path-card { min-height: 190px; }
  .course-tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 7px; }
  .tab-btn { white-space: nowrap; }
  .package-copy { padding: 34px 23px; }
  .package-copy h2 { font-size: 34px; }
  .benefits { grid-template-columns: 1fr; }
  .package-price { align-items: center; flex-wrap: wrap; }
  .floating-consult { display: none; }
  .mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: .8fr 1.2fr; height: 62px; box-shadow: 0 -8px 25px rgba(53, 17, 10, .16); }
  .mobile-bar button { border: 0; font-weight: 800; }
  .mobile-bar button:first-child { color: var(--red); background: #fff8e9; }
  .mobile-bar button:last-child { color: white; background: linear-gradient(135deg, #d53a2f, #941315); }
  footer { padding-bottom: 95px; }
  .consult-box { padding: 34px 24px; }
}
