
:root { --red: #b51b32; --ink: #222; --muted: rgba(34,34,34,.6); --pink: #f7e8e8; --content-width: 1400px; --serif: 'Microsoft YaHei', 'Source Han Serif SC', 'Noto Serif SC', SimSun, serif; --shadow: 0 6px 30px rgba(34,34,34,.06); }
body#top { overflow-x: hidden; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font: 20px/1.45 , 'Microsoft YaHei', sans-serif; background: #fff; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; border: 0; color: inherit; background: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 5px; }
section[id] { scroll-margin-top: 24px; }
.container { width: min(var(--content-width), calc(100% - 64px)); margin-inline: auto; }
h2 { font: 700 44px/63px var(--serif); text-align: center; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 7px 24px; border: 1px solid var(--red); border-radius: 2px; font-size: 20px; line-height: 30px; white-space: nowrap; transition: background .2s; }
.button.solid { color: white; background: var(--red); }
.button.outline { color: var(--red); background: transparent; }
.button:hover { background: #f7e8e8; }
.button.solid:hover { background: #99152a; }

/* Navigation overlays the original 1920 x 600 banner. */
.site-header { position: absolute; inset: 0 0 auto; height: 80px; z-index: 10; }
.header-inner { width: min(1700px, calc(100% - 64px)); height: 80px; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-block; flex-shrink: 0; }
.brand img { width: 176px; height: 40px; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 60px; }
.main-nav a { height: 53px; display: flex; align-items: center; position: relative; font-weight: 500; white-space: nowrap; }
.main-nav a:hover, .main-nav .active { color: var(--red); }
.main-nav .active::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--red); }
.chevron { width: 0; height: 0; border: 4px solid transparent; border-top-color: currentColor; margin: 6px 4px 0; }
.header-actions { display: flex; gap: 16px; }
.menu-toggle { display: none; }
.hero { height: 600px; background: #f1e2c7 url('切图 1.png') center/cover no-repeat; }
.hero-content { padding-top: 200px; }
.hero h1 { color: var(--red); font: 900 52px/75px var(--serif); }
.hero p { margin-top: 28px; font-size: 22px; font-weight: 500; line-height: 32px; }
.hero-buttons { display: flex; gap: 16px; margin-top: 28px; }

.intro { position: relative; padding-top: 100px; overflow: hidden; }
.intro::before { content: ''; position: absolute; z-index: -1; width: 510px; height: 510px; border-radius: 50%; right: -220px; top: -250px; background: linear-gradient(130deg,#fcf8f9,white); }
.section-lead { max-width: 1022px; margin: 16px auto 0; color: var(--muted); text-align: center; font-size: 20px; line-height: 29px; min-height: 58px; }
.feature-tabs { display: grid; grid-template-columns: repeat(3,1fr); height: 93px; margin-top: 54px; }
.feature-tab { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 0; position: relative; font: 700 32px/46px var(--serif); white-space: nowrap; }
.feature-tab img { width: 52px; height: 52px; }
.feature-tab.active { color: var(--red); }
.feature-tab.active::after { content: ''; width: 165px; height: 4px; background: var(--red); position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); }
.courses { padding-top: 35px; background: linear-gradient(#fcf5f7 0,white 126px); }
.pill-row { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 35px; }
.pill { width: 432px; max-width: 33%; min-height: 57px; padding: 10px 12px; border-radius: 40px; background: var(--pink); font-size: 24px; line-height: 35px; white-space: nowrap; }
.pill.active, .segment.active { color: #fff; background: var(--red); }
.course-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; }
.course-card { min-width: 0; min-height: 624px; padding: 32px 32px 14px; border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.course-art { width: 100%; height: auto; aspect-ratio: 622/328; object-fit: cover; border-radius: 16px; }
.course-details { margin-top: 28px; }
.course-heading { display: flex; align-items: center; gap: 16px; }
.course-heading h3 { flex-shrink: 0; font: 700 26px/37px var(--serif); }
.course-heading span { font-size: 16px; color: #7a7874; white-space: nowrap; }
.course-description { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 16px; }
.course-description ul { margin: 0; padding-left: 28px; font-size: 20px; line-height: 32px; }
.course-description li::marker { font-size: 12px; }
.course-meta { border-top: 1px solid rgba(191,187,184,.3); margin-top: 20px; padding-top: 12px; }
.course-meta p { font-size: 20px; font-weight: 500; line-height: 39px; }
.course-meta small { display: inline-block; font-size: 14px; line-height: 24px; color: var(--red); border: 1px solid #f1cbd1; border-radius: 20px; padding: 2px 8px; background: #f9e9ec; }
.empty-state { min-height: 400px; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 32px; }
.teachers { height: 751px; padding-top: 28px; background: linear-gradient(#fcf5f7 0,white 126px); overflow: hidden; }
.teachers-viewport { width: 100%; overflow-x: hidden; }
.teacher-row { display: flex; gap: 47px; width: max-content; }
.teacher-row-top { margin-left: calc((100vw - var(--content-width)) / 2 - 214px); }
.teacher-row-bottom { margin-top: 35px; margin-left: calc((100vw - var(--content-width)) / 2 - 376px); }
.teacher-card { position: relative; flex: 0 0 244px; width: 244px; height: 344px; overflow: hidden; border-radius: 16px; background: #f8d9dc; }
.teacher-card > img { width: 244px; height: 344px; object-fit: cover; }
.teacher-caption { position: absolute; inset: auto 0 17px; z-index: 1; padding: 0 8px; color: #fff; text-align: center; text-shadow: 0 1px 3px rgba(0,0,0,.55); }
.teacher-caption h3 { font: 700 22px/34px var(--serif); letter-spacing: .04em; }
.teacher-caption p { min-height: 40px; font-size: 13px; line-height: 20px; font-weight: 500; }
.students { height: 751px; padding-top: 60px; background: linear-gradient(#fcf5f7 0,white 126px); overflow: hidden; }
.students-content { display: grid; gap: 48px; }
.students-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.student-card { min-width: 0; border: 1px solid rgba(181,27,50,.16); border-radius: 14px; background: #fff; box-shadow: 0 5px 18px rgba(34,34,34,.06); }
.student-quote-card { height: 256px; padding: 22px 25px 20px; }
.student-card-inner { height: 100%; display: flex; flex-direction: column; align-items: flex-start; }
.student-meta { display: flex; align-items: center; gap: 7px; color: #7a7874; font-size: 13px; line-height: 28px; white-space: nowrap; }
.student-avatar { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border-radius: 50%; color: #fff; font: 700 13px/1 var(--serif); }
.avatar-red { background: var(--red); }
.avatar-gray { background: #6c7278; }
.avatar-gold { background: #9b5e30; }
.student-quote { margin-top: 12px; font-size: 17px; line-height: 32px; }
.student-tag { display: inline-flex; align-items: center; min-height: 24px; margin-top: auto; padding: 2px 11px; border: 1px solid rgba(181,27,50,.12); border-radius: 14px; color: var(--red); background: rgba(181,27,50,.1); font-size: 13px; line-height: 20px; white-space: nowrap; }
.student-media-card { height: 320px; padding: 22px 27px 20px; }
.student-card-image { width: 100%; height: 232px; display: block; border-radius: 12px; object-fit: cover; }
.student-media-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.student-media-meta .student-tag { margin-top: 0; }

.growth { padding-top: 100px; }
.section-sub { font-size: 20px; line-height: 29px; text-align: center; color: var(--muted); margin-top: 16px; }
.family-video { margin-top: 60px; padding: 32px 32px 28px; border-radius: 24px; box-shadow: var(--shadow); position: relative; background: white; }
.family-photo { width: 100%; height: auto; aspect-ratio: 1336/512; object-fit: cover; border-radius: 16px; }
.family-player { display: block; width: 100%; height: auto; aspect-ratio: 1336/512; border-radius: 16px; background: #111; object-fit: contain; }
.family-video-status { margin-top: 12px; color: var(--muted); text-align: center; font-size: 14px; line-height: 24px; }
.play-button { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); padding: 0; width: 130px; height: 100px; }
.play-button img { width: 100%; height: 100%; object-fit: contain; }
.news { position: relative; padding-top: 100px; }
.news::before { content: ''; position: absolute; width: min(310px,25vw); height: 800px; left: 0; top: -45px; background: linear-gradient(130deg,#fbf6f7,white); border-radius: 0 100% 100% 0; z-index: -1; }
.segmented { display: flex; justify-content: center; gap: 52px; margin: 40px 0; }
.segment { width: 216px; height: 57px; border-radius: 40px; background: var(--pink); font-size: 24px; line-height: 35px; }
.news-list { display: grid; gap: 36px; }
.news-item { display: grid; grid-template-columns: minmax(0,1fr) 410px; gap: 28px; align-items: center; padding: 28px; min-height: 284px; border-radius: 24px; background: rgba(255,255,255,.9); box-shadow: var(--shadow); }
.news-copy h3 { color: var(--red); font: 700 26px/37px var(--serif); }
.news-copy p { margin-top: 20px; font-size: 20px; line-height: 32px; }
.news-copy time { display: block; margin-top: 20px; font-size: 18px; line-height: 26px; color: var(--muted); }
.news-thumb { width: 410px; height: 228px; border-radius: 16px; object-fit: cover; }
.certificates { padding-top: 100px; overflow: hidden; }
.certificate-stage { position: relative; width: 100%; margin-top: 60px; height: 729px; overflow: hidden; background: #fff5f7; }
.certificate-backdrop { position: absolute; inset: 0; background: url('certificates-bg.png') center bottom / 100% 729px no-repeat; }
.certificate-swiper { position: relative; width: 100%; height: 100%; padding: 0 0 96px; }
.certificate-swiper .swiper-wrapper { align-items: flex-start; }
.certificate-swiper .swiper-slide { width: 356px; height: 486px; display: flex; align-items: center; justify-content: center; }
.certificate-swiper .swiper-slide-wide { width: 532px; height: 486px; }
.certificate-slide img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(60,30,25,.16)); }
.certificate-swiper .swiper-button-prev, .certificate-swiper .swiper-button-next, .certificate-swiper .swiper-pagination { display: none; }

.site-footer { border-top: 3px solid var(--red); }
.footer-main { min-height: 281px; padding-top: 40px; padding-bottom: 40px; display: grid; grid-template-columns: minmax(0,1fr) 82px minmax(0,1fr); gap: 64px; }
.footer-brand .brand img { width: 146px; height: 33px; }
.footer-brand .brand { display: block; width: 146px; height: 33px; }
.footer-brand p { font-size: 16px; line-height: 23px; color: rgba(51,51,51,.7); margin-top: 18px; white-space: nowrap; }
.footer-links { display: flex; flex-direction: column; gap: 13px; font-size: 20px; line-height: 29px; }
.footer-links a:hover { color: var(--red); }
.footer-qrcodes { justify-self: end; display: flex; gap: 20px; padding-top: 13px; }
.footer-qrcodes figure { text-align: center; width: 108px; }
.footer-qrcodes figcaption { font: 600 18px/26px var(--serif); margin-bottom: 20px; }
.footer-qrcodes img { width: 108px; height: 108px; }
.copyright { min-height: 60px; border-top: 1px solid #eee9ea; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 14px; line-height: 20px; }
.quick-actions { position: fixed; z-index: 20; right: 24px; bottom: max(32px, 10vh); width: 88px; background: #fff; box-shadow: 0 4px 20px #0002; border: 1px solid #f1e8ea; border-radius: 12px; }
.quick-actions button { width: 100%; height: 88px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; position: relative; font-size: 14px; line-height: 22px; }
.quick-actions button + button::before { content: ''; position: absolute; top: 0; width: 60px; height: 1px; background: #bfbbb880; }
.quick-actions img { width: 30px; height: 30px; }
.quick-actions button:hover { color: var(--red); }
.contact-dialog { border: 0; border-radius: 16px; padding: 40px; text-align: center; color: var(--ink); max-width: calc(100% - 32px); }
.contact-dialog::backdrop { background: #0006; }
.contact-dialog h2 { font-size: 28px; line-height: 40px; }
.dialog-close { position: absolute; right: 10px; top: 0; font-size: 32px; }
.contact-qr { margin: 24px auto; }
.contact-dialog p { font-size: 16px; }
.toast { position: fixed; z-index: 30; left: 50%; bottom: 32px; width: max-content; max-width: calc(100% - 32px); transform: translate(-50%,16px); background: #222; color: white; padding: 14px 24px; border-radius: 6px; opacity: 0; pointer-events: none; transition: .2s; font-size: 16px; }
.toast.show { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 1700px) {
  .main-nav { gap: clamp(20px,3vw,50px); }
}
@media (max-width: 1450px) {
  .main-nav { font-size: 17px; gap: 24px; }
  .header-actions .button { padding-inline: 16px; font-size: 17px; }
  .pill { font-size: 20px; }
  .course-heading { flex-wrap: wrap; gap: 0 12px; }
  .course-description ul { font-size: 18px; }
  .course-card { min-height: 580px; }
  .news-item { grid-template-columns: minmax(0,1fr) 32%; }
  .news-thumb { width: 100%; height: auto; aspect-ratio: 410/228; }
  .footer-main { grid-template-columns: minmax(0,1fr) 100px 340px; gap: 24px; }
  .footer-qrcodes { gap: 12px; }
  .footer-brand p { white-space: normal; }
  .teacher-row-top, .teacher-row-bottom { margin-left: 20px; }
}
@media (max-width: 1100px) {
  .site-header, .header-inner { height: 72px; }
  .header-inner { width: calc(100% - 40px); }
  .brand img { width: 146px; height: auto; }
  .header-actions { margin-left: auto; margin-right: 20px; }
  .menu-toggle { display: grid; gap: 5px; padding: 12px 0 12px 12px; }
  .menu-toggle span { width: 24px; height: 2px; background: var(--red); }
  .main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; box-shadow: var(--shadow); padding: 16px 24px; }
  .main-nav.mobile-open { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px 24px; }
  .main-nav a { height: 44px; justify-content: center; }
  .hero { height: 500px; }
  .hero-content { padding-top: 170px; }
  .hero h1 { font-size: 40px; line-height: 58px; }
  .hero p { font-size: 18px; }
  h2 { font-size: 34px; line-height: 50px; }
  .intro, .growth, .news, .certificates { padding-top: 70px; }
  .pill { font-size: 16px; min-height: 48px; }
  .feature-tab { font-size: 26px; }
  .course-card { padding: 20px; min-height: 510px; }
  .course-heading h3 { font-size: 22px; }
  .course-heading span { font-size: 14px; }
  .course-description .button { font-size: 16px; padding-inline: 12px; }
  .course-meta small { font-size: 11px; }
  .teachers { height: auto; min-height: 751px; }
  .teachers-viewport { overflow-x: auto; padding-bottom: 8px; }
  .teacher-row { gap: 20px; }
  .teacher-row-bottom { margin-top: 20px; }
  .teacher-card { flex-basis: 190px; width: 190px; height: 268px; border-radius: 14px; }
  .teacher-card > img { width: 190px; height: 268px; }
  .teacher-caption { bottom: 11px; padding-inline: 4px; }
  .teacher-caption h3 { font-size: 18px; line-height: 28px; }
  .teacher-caption p { font-size: 10px; line-height: 15px; }
  .students { height: auto; min-height: 751px; padding-top: 28px; padding-bottom: 28px; }
  .students-content { gap: 20px; }
  .students-grid { grid-template-columns: 1fr; gap: 20px; }
  .student-quote-card { height: auto; min-height: 210px; padding: 20px; }
  .student-quote { font-size: 15px; line-height: 28px; }
  .student-media-card { height: auto; padding: 14px; }
  .student-card-image { height: auto; aspect-ratio: 392 / 232; }
  .student-media-meta { align-items: flex-start; flex-direction: column; gap: 8px; }
  .news-copy p { font-size: 17px; line-height: 28px; }
  .news-item { min-height: 240px; }
  .news-copy h3 { font-size: 24px; }
  .footer-main { grid-template-columns: 1fr 100px; }
  .footer-qrcodes { grid-column: 1 / -1; justify-self: start; }
  .copyright { font-size: 12px; }
}
@media (max-width: 700px) {
  .container { width: calc(100% - 40px); }
  .header-actions { display: none; }
  .hero { height: 570px; background-size: auto 360px; background-position: 65% top; background-color: #f7ecd9; position: relative; }
  .hero::before { content: ''; position: absolute; inset: 250px 0 0; background: linear-gradient(transparent,#f7ecd9 90px); }
  .hero-content { position: relative; padding-top: 340px; }
  .hero h1 { font-size: clamp(23px,5.8vw,36px); line-height: 1.5; }
  .hero p { margin-top: 16px; font-size: 15px; line-height: 26px; }
  .hero-buttons { gap: 10px; margin-top: 20px; }
  .button { font-size: 14px; min-height: 40px; padding: 5px 12px; line-height: 28px; }
  h2 { font-size: 27px; line-height: 42px; }
  .intro, .growth, .news, .certificates { padding-top: 54px; }
  .section-lead, .section-sub { font-size: 15px; line-height: 26px; }
  .feature-tabs { margin-top: 32px; height: 80px; }
  .feature-tab { font-size: 18px; gap: 6px; line-height: 30px; }
  .feature-tab img { width: 30px; height: 30px; }
  .feature-tab.active::after { width: 85px; height: 3px; }
  .teachers { padding-top: 24px; min-height: 596px; }
  .teachers-viewport { margin-inline: -20px; padding-inline: 20px; }
  .teacher-row { gap: 12px; }
  .teacher-row-bottom { margin-top: 18px; }
  .teacher-card { flex-basis: 156px; width: 156px; height: 220px; border-radius: 12px; }
  .teacher-card > img { width: 156px; height: 220px; }
  .teacher-caption { bottom: 8px; }
  .teacher-caption h3 { font-size: 16px; line-height: 24px; }
  .teacher-caption p { font-size: 8px; line-height: 12px; }
  .students { min-height: 0; padding-top: 24px; padding-bottom: 24px; }
  .student-quote-card { min-height: 190px; }
  .student-quote { margin-top: 10px; font-size: 14px; line-height: 25px; }
  .student-meta { font-size: 12px; }
  .student-tag { font-size: 11px; }
  .courses { padding-top: 24px; }
  .pill-row { overflow-x: auto; gap: 12px; margin-bottom: 24px; padding-bottom: 4px; }
  .pill { flex-shrink: 0; width: auto; max-width: none; min-height: 40px; font-size: 15px; line-height: 24px; padding: 8px 16px; }
  .course-grid { grid-template-columns: 1fr; gap: 20px; }
  .course-card { min-height: 0; border-radius: 16px; }
  .course-details { margin-top: 20px; }
  .course-heading h3 { font-size: 22px; line-height: 34px; }
  .course-description ul { font-size: 15px; line-height: 27px; padding-left: 20px; }
  .course-meta p { font-size: 16px; }
  .course-meta small { font-size: 11px; }
  .family-video { margin-top: 28px; padding: 14px; border-radius: 16px; }
  .family-photo { border-radius: 10px; }
  .play-button { width: 80px; height: 62px; }
  .segmented { gap: 20px; margin: 24px 0; }
  .segment { width: 150px; height: 44px; font-size: 18px; }
  .news-list { gap: 20px; }
  .news-item { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 20px; padding: 20px; border-radius: 16px; }
  .news-thumb { height: auto; width: 100%; }
  .news-copy h3 { font-size: 22px; line-height: 34px; }
  .news-copy p { margin-top: 12px; font-size: 15px; line-height: 26px; }
  .news-copy time { font-size: 14px; margin-top: 12px; }
  .certificate-stage { margin-top: 28px; height: 520px; }
  .certificate-backdrop { background-size: auto 520px; }
  .certificate-swiper { padding-block: 0 68px; }
  .certificate-swiper .swiper-slide { width: 280px; height: 382px; }
  .certificate-swiper .swiper-slide-wide { width: 340px; height: 382px; }
  .footer-main { padding-block: 28px; gap: 28px 20px; }
  .footer-brand p { font-size: 12px; line-height: 20px; margin-top: 12px; }
  .footer-links { font-size: 15px; gap: 10px; }
  .footer-qrcodes { justify-self: center; gap: 18px; }
  .footer-qrcodes figure { width: 86px; }
  .footer-qrcodes img { width: 86px; height: 86px; }
  .footer-qrcodes figcaption { font-size: 14px; margin-bottom: 12px; }
  .copyright { flex-direction: column; justify-content: center; gap: 8px; padding-block: 18px; font-size: 10px; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* The public header uses the six primary sections shown in the brand navigation. */
.site-header { background: #fff; box-shadow: 0 3px 12px rgba(138,74,59,.1); }
.header-inner { position: relative; }
.main-nav { position: absolute; left: 50%; transform: translateX(-50%); gap: clamp(28px, 3.2vw, 58px); }
.main-nav a { font-size: 20px; letter-spacing: .02em; }
.main-nav a:hover, .main-nav .active { color: var(--red); }
.header-actions { display: none; }

@media (max-width: 1450px) {
  .main-nav { gap: clamp(18px, 2.2vw, 34px); }
  .main-nav a { font-size: 17px; }
}
@media (max-width: 1100px) {
  .main-nav { position: absolute; left: 0; transform: none; }
}

@media (max-width: 700px) {
  .quick-actions { right: 10px; bottom: max(20px, env(safe-area-inset-bottom)); width: 60px; border-radius: 10px; }
  .quick-actions button { height: 60px; gap: 4px; font-size: 11px; line-height: 18px; }
  .quick-actions img { width: 24px; height: 24px; }
  .quick-actions button + button::before { width: 34px; }
}
