:root { --brand: #8a011b; --brand-dark: #82011a; --ink: #333; --muted: #707070; --paper: #fff; --wash: #f6f6f6; --line: #e7e2e3; --shadow: 0 10px 24px rgba(73, 31, 39, .10); --safe-bottom: env(safe-area-inset-bottom, 0px); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.7 "Microsoft YaHei", "PingFang SC", Arial, sans-serif; }
button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }
.container { width: min(1220px, calc(100% - 40px)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.site-header { background: var(--paper); box-shadow: 0 2px 16px rgba(30, 13, 16, .1); position: relative; z-index: 10; }
.brand-bar { height: 116px; display: flex; align-items: center; justify-content: center; width: min(1220px, calc(100% - 40px)); margin: 0 auto; }
.brand img { display: block; width: auto; height: 94px; max-width: min(80vw, 480px); object-fit: contain; }
.primary-nav { min-height: 48px; display: flex; justify-content: center; gap: 2px; background: var(--brand); padding: 0 20px; }
.primary-nav a { color: #fff; min-width: 96px; padding: 11px 18px; text-align: center; font-size: 17px; transition: background .2s ease; }
.primary-nav a:hover, .primary-nav a:focus-visible { background: rgba(0, 0, 0, .2); outline: none; }
.menu-toggle { display: none; }
.hero { min-height: 530px; position: relative; overflow: hidden; background: #271316; }
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; transition: opacity .7s ease; background: center / cover no-repeat; }
.hero-slide.is-active { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(29, 4, 9, .44), rgba(29, 4, 9, .04) 65%); }
.hero-overlay { position: relative; z-index: 1; color: #fff; width: min(1220px, calc(100% - 40px)); margin: 0 auto; padding-top: 155px; text-shadow: 0 2px 8px rgba(0, 0, 0, .28); }
.hero-overlay p, .section-heading p, .faq-intro > p { color: var(--brand); font-size: 13px; font-weight: 700; letter-spacing: 0; margin: 0 0 4px; }
.hero-overlay p { color: #fff; opacity: .9; }
.hero-overlay h1 { font-size: clamp(34px, 4vw, 56px); margin: 0 0 22px; line-height: 1.2; letter-spacing: 0; }
.button { display: inline-flex; justify-content: center; align-items: center; border: 1px solid transparent; cursor: pointer; min-height: 44px; padding: 0 22px; border-radius: 4px; font-weight: 700; transition: transform .2s ease, background .2s ease; }
@media (hover: hover) { .button:hover { transform: translateY(-2px); } }
.button-light { background: #fff; color: var(--brand); }
.button-brand { background: var(--brand); color: #fff; }
.button:disabled { cursor: wait; opacity: .7; transform: none; }
.hero-dots { position: absolute; z-index: 2; left: 0; right: 0; bottom: 24px; display: flex; justify-content: center; gap: 9px; }
.hero-dots button { width: 28px; height: 4px; padding: 0; border: 0; background: rgba(255,255,255,.5); cursor: pointer; }
.hero-dots button.is-active { background: #fff; }
.section { padding: 74px 0; }
.section-muted { background: var(--wash); }
.section-textured { background: #f5f4f2; }
.overview-grid { display: grid; grid-template-columns: 1fr; gap: 42px; align-items: stretch; }
.overview-grid > div, .program-panel, .enrollment-layout { background: #fff; box-shadow: var(--shadow); border-radius: 8px; }
.overview-grid > div, .program-panel { padding: 32px; }
.overview-grid .program-panel { padding: 0; background: transparent; box-shadow: none; border-radius: 0; }
.section-heading { margin-bottom: 24px; }
.section-heading h2, .faq-intro h2 { font-size: 27px; line-height: 1.35; margin: 0; color: var(--brand); letter-spacing: 0; }
.section-heading-split { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.quick-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.quick-link { height: 290px; display: flex; align-items: end; padding: 20px; color: #fff; background: center / cover no-repeat; position: relative; border-radius: 6px; overflow: hidden; isolation: isolate; transition: transform .2s ease, box-shadow .2s ease; }
.quick-link::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 38%, rgba(0,0,0,.65)); z-index: -1; }
.quick-link:hover, .quick-link:focus-visible { box-shadow: 0 8px 20px rgba(73, 31, 39, .18); transform: translateY(-2px); outline: none; }
.quick-link strong { font-size: 18px; line-height: 1.25; }
.program-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.program-group { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 8px 20px rgba(73, 31, 39, .08); transition: box-shadow .2s ease, transform .2s ease; }
.program-image { display: block; width: 100%; height: auto; aspect-ratio: 347 / 159; object-fit: contain; background: #fff; }
.program-card-body { display: flex; flex: 1; flex-direction: column; padding: 14px 14px 16px; }
.program-directions-label { margin: 0 0 8px; color: var(--muted); font-size: 13px; font-weight: 700; line-height: 1.4; }
.program-directions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 0; }
.program-item { flex: 1 1 120px; display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 42px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 4px; background: #fff; box-shadow: none; text-align: center; transition: border-color .2s ease, color .2s ease, transform .2s ease; }
.program-item:hover, .program-item:focus-visible { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.program-item span { font-weight: 700; line-height: 1.35; }
.about-section { padding: 0; background: var(--wash); }
.about-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: 500px; }
.about-image { min-height: 500px; background: center / cover no-repeat; background-position: right center; }
.about-copy { max-width: 610px; padding: 96px clamp(36px, 6vw, 100px); display: flex; flex-direction: column; justify-content: center; }
.about-copy > p { margin: 0 0 28px; color: #454040; white-space: pre-line; }
.text-link { color: var(--brand); font-weight: 700; }
.text-link span { font-size: 20px; margin-left: 5px; }
.enrollment-layout { display: grid; grid-template-columns: 42% 1fr; overflow: hidden; }
.enrollment-photo { min-height: 455px; background: center / cover no-repeat; }
.enrollment-copy { padding: 40px clamp(26px, 5vw, 64px); }
.enrollment-copy > p { margin: -9px 0 19px; color: var(--muted); }
.enrollment-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.enrollment-form label { display: grid; gap: 5px; color: #4b4445; font-size: 14px; }
.enrollment-form input, .enrollment-form select { width: 100%; height: 42px; border: 1px solid #d9d2d3; border-radius: 4px; background: #fff; padding: 0 11px; color: var(--ink); }
.enrollment-form label:nth-of-type(5), .enrollment-form .button, .form-message { grid-column: 1 / -1; }
.form-message { min-height: 24px; margin: 0; font-size: 14px; color: var(--brand); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-card { margin: 0; overflow: hidden; border: 1px solid #eee; background: #fff; border-radius: 6px; }
.gallery-card img { width: 100%; display: block; aspect-ratio: 1.5 / 1; height: auto; object-fit: cover; transition: transform .3s ease; }
@media (hover: hover) { .gallery-card:hover img { transform: scale(1.04); } }
.gallery-card figcaption { padding: 11px 13px; font-weight: 700; }
.teacher-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.teacher-card { text-align: center; margin: 0; }
.teacher-card img { width: 100%; aspect-ratio: 1 / 1.15; object-fit: cover; border-radius: 6px; background: #ddd; }
.teacher-card figcaption { padding-top: 9px; font-weight: 700; }
.faq-layout { display: grid; grid-template-columns: 300px 1fr; gap: 60px; align-items: start; }
.faq-intro { position: sticky; top: 20px; }
.faq-intro span { color: var(--muted); display: block; margin-top: 14px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question { width: 100%; border: 0; background: transparent; padding: 19px 0; color: var(--ink); cursor: pointer; display: flex; justify-content: space-between; gap: 16px; text-align: left; font-weight: 700; }
.faq-question span { color: var(--brand); font-size: 22px; line-height: 1.25; }
.faq-answer { display: none; padding: 0 36px 20px 0; color: var(--muted); white-space: pre-line; }
.faq-item.is-open .faq-answer { display: block; }
.site-footer { padding: 46px max(20px, calc((100% - 1220px) / 2)); color: #fff; background: var(--brand-dark); display: grid; grid-template-columns: 1fr auto; gap: 42px; align-items: center; }
.site-footer h2 { font-size: 21px; margin: 0 0 10px; }
.site-footer p { margin: 4px 0; color: rgba(255,255,255,.86); }
.site-footer img { width: 126px; height: 126px; object-fit: cover; background: #fff; padding: 5px; }
.site-footer .contact-qr { width: 200px; height: 200px; object-fit: contain; padding: 10px; }
.footer-copyright { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.22); font-size: 13px; color: rgba(255,255,255,.7); }
.back-to-top { position: fixed; right: max(22px, env(safe-area-inset-right, 0px)); bottom: max(22px, var(--safe-bottom)); width: 48px; height: 48px; display: none; border: 0; border-radius: 50%; background: var(--brand); color: #fff; font-size: 23px; box-shadow: var(--shadow); cursor: pointer; }
.back-to-top.is-visible { display: block; }
@media (max-width: 860px) { .brand-bar { height: 84px; justify-content: space-between; } .brand img { height: 65px; } .menu-toggle { display: grid; width: 44px; height: 44px; place-content: center; gap: 5px; border: 1px solid #d8cccf; border-radius: 4px; background: #fff; } .menu-toggle span:not(.sr-only) { width: 21px; height: 2px; background: var(--brand); transition: transform .2s ease, opacity .2s ease; } .menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); } .menu-toggle.is-open span:nth-child(2) { opacity: 0; } .menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); } .primary-nav { display: none; padding: 10px 20px 14px; flex-direction: column; border-top: 1px solid rgba(255,255,255,.2); } .primary-nav.is-open { display: flex; } .primary-nav a { min-width: 0; min-height: 44px; padding: 10px 12px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.18); } .primary-nav a:last-child { border-bottom: 0; } .hero { min-height: 430px; } .hero-overlay { padding-top: 108px; padding-bottom: 116px; } .overview-grid, .enrollment-layout, .faq-layout { grid-template-columns: 1fr; } .faq-layout { gap: 30px; } .faq-intro { position: static; } .quick-links { grid-template-columns: repeat(2, 1fr); } .quick-link { height: auto; min-height: 0; aspect-ratio: 1 / 1.05; padding: 16px; } .about-layout { grid-template-columns: 1fr; } .about-image { min-height: 340px; } .about-copy { max-width: none; padding: 58px 20px; } .teacher-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .container { width: min(100% - 28px, 1220px); } .brand-bar { height: 76px; } .brand img { height: 56px; max-width: calc(100vw - 92px); } .section { padding: 48px 0; } .section-heading { margin-bottom: 20px; } .section-heading-split { align-items: flex-start; flex-wrap: wrap; gap: 8px 18px; } .hero { min-height: 420px; } .hero-overlay { padding-top: 100px; padding-bottom: 130px; } .hero-overlay h1 { font-size: 34px; margin-bottom: 18px; } .section-heading h2, .faq-intro h2 { font-size: 23px; } .overview-grid { gap: 28px; } .overview-grid > div { padding: 20px; } .program-list { grid-template-columns: 1fr; gap: 24px; } .program-item { min-height: 68px; } .enrollment-copy { padding: 32px 20px; } .enrollment-photo { min-height: 250px; } .enrollment-form { grid-template-columns: 1fr; gap: 12px; } .enrollment-form input, .enrollment-form select { height: 44px; } .enrollment-form label, .enrollment-form label:nth-of-type(5), .enrollment-form .button, .form-message { grid-column: auto; } .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .gallery-card figcaption { padding: 9px 10px; font-size: 14px; } .teacher-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 10px; } .teacher-card figcaption { padding-top: 6px; font-size: 14px; } .faq-question { min-height: 52px; padding: 13px 0; } .faq-answer { padding: 0 8px 18px 0; } .site-footer { grid-template-columns: 1fr; gap: 24px; padding-bottom: calc(32px + var(--safe-bottom)); } .site-footer img { width: 112px; height: 112px; } .site-footer .contact-qr { width: 180px; height: 180px; padding: 10px; } .back-to-top { right: 14px; bottom: max(14px, var(--safe-bottom)); } }
@media (max-width: 374px) { .container { width: calc(100% - 24px); } .brand-bar { width: calc(100% - 24px); } .hero-overlay { width: calc(100% - 24px); } .quick-links { gap: 8px; } .quick-link { padding: 12px; } .quick-link strong { font-size: 16px; } .overview-grid > div { padding: 18px; } }
@media (max-height: 500px) and (orientation: landscape) { .hero { min-height: 340px; } .hero-overlay { padding-top: 62px; padding-bottom: 80px; } .hero-overlay h1 { font-size: 34px; margin-bottom: 12px; } }


:focus-visible { outline: 3px solid #dca3ae; outline-offset: 3px; }
.carousel-toggle { position: absolute; z-index: 3; right: max(20px, calc((100% - 1220px) / 2)); bottom: 18px; min-height: 32px; padding: 0 12px; border: 1px solid rgba(255,255,255,.72); border-radius: 4px; background: rgba(0,0,0,.35); color: #fff; cursor: pointer; font-size: 13px; }
.asset-missing { background-color: #eee8e9 !important; position: relative; }
.asset-missing::after { content: attr(data-asset-label); position: absolute; inset: 0; display: grid; place-items: center; padding: 14px; color: #7b5d63; background: rgba(255,255,255,.76); text-align: center; font-size: 14px; font-weight: 700; }
.brand.asset-missing { width: min(80vw, 480px); height: 74px; border: 1px dashed #d4b8bd; }
.brand.asset-missing::after { content: "学校 Logo 待导入"; }
.brand.asset-missing img { display: none; }
.quick-link.asset-missing::before { display: none; }
.quick-link.asset-missing::after { color: #765159; z-index: 0; }
.quick-link.asset-missing strong { color: #765159; z-index: 1; }
.hero-slide.asset-missing::after { color: rgba(255,255,255,.92); background: rgba(39,19,22,.66); }
.gallery-card.asset-missing, .teacher-card.asset-missing, .site-footer > div.asset-missing { min-height: 150px; }
.gallery-card.asset-missing img, .teacher-card.asset-missing img, .site-footer > div.asset-missing img { display: none; }
.form-message[data-state="error"] { color: #a60022; }
.form-message[data-state="success"] { color: #26713d; }
.form-message[data-state="pending"] { color: #635d45; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
@media (max-width: 560px) { .carousel-toggle { right: 14px; bottom: max(14px, var(--safe-bottom)); min-height: 40px; } }

@media (hover: hover) { .program-group:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(73, 31, 39, .12); } }
@media (max-width: 860px) { .program-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .program-list { grid-template-columns: 1fr; gap: 16px; } .program-item { min-height: 44px; } }

/* First-viewport proposition and conversion controls. */
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { width: 76px; height: 76px; max-width: 76px; object-fit: contain; }
.brand-copy { display: grid; gap: 0; color: var(--brand); line-height: 1.2; text-align: left; }
.brand-copy strong { font-size: 19px; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: 13px; }
.value-strip { color: #fff; background: var(--brand); border-top: 1px solid rgba(255,255,255,.18); border-bottom: 4px solid #d6a33d; }
.value-strip-inner { min-height: 116px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px; }
.value-strip-kicker { margin: 0; color: rgba(255,255,255,.78); font-size: 12px; font-weight: 700; letter-spacing: .08em; line-height: 1.35; }
.value-strip h1 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; margin: 0; color: #fff; font-size: clamp(25px, 3vw, 39px); line-height: 1.2; }
.value-strip h1 strong { color: #ffd875; white-space: nowrap; }
.value-strip h1 span { font-weight: 700; }
.value-strip-proof { margin: 0; color: rgba(255,255,255,.86); font-size: 14px; line-height: 1.45; text-align: right; white-space: nowrap; }
.hero { min-height: 530px; }
.hero-slide { background-position: center 46%; }
.hero::after { background: rgba(29, 4, 9, .36); }
.hero-overlay { padding-top: 128px; text-shadow: 0 2px 8px rgba(0, 0, 0, .34); }
.hero-overlay > p:first-child { margin-bottom: 7px; font-size: 14px; }
.hero-overlay h2 { max-width: 620px; margin: 0 0 10px; color: #fff; font-size: clamp(35px, 4vw, 58px); line-height: 1.16; letter-spacing: 0; }
.hero-overlay .hero-support { max-width: 520px; margin: 0 0 26px; color: rgba(255,255,255,.92); font-size: 18px; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .button { min-height: 48px; padding-inline: 20px; }
.button-outline { border-color: rgba(255,255,255,.9); background: rgba(29, 4, 9, .18); color: #fff; }
.button-outline:hover, .button-outline:focus-visible { background: rgba(29, 4, 9, .46); }
.wechat-dialog { width: min(420px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--ink); box-shadow: 0 24px 70px rgba(30, 13, 16, .28); }
.wechat-dialog::backdrop { background: rgba(30, 13, 16, .66); }
.wechat-dialog-panel { position: relative; padding: 34px 28px 28px; border-top: 6px solid var(--brand); border-radius: 10px; background: #fff; text-align: center; }
.modal-close { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 28px; line-height: 1; }
.modal-close:hover, .modal-close:focus-visible { color: var(--brand); }
.dialog-kicker { margin: 0 0 5px; color: var(--brand); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.wechat-dialog h2 { margin: 0; color: var(--brand); font-size: 26px; line-height: 1.35; }
.dialog-description { margin: 8px auto 18px; max-width: 300px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.wechat-qr { display: block; width: 210px; height: 210px; margin: 0 auto 16px; padding: 8px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.dialog-phone { color: var(--brand); font-size: 15px; font-weight: 700; }
.mobile-action-bar { display: none; }
@media (max-width: 860px) {
  .brand-copy strong { font-size: 17px; }
  .brand-copy small { font-size: 12px; }
  .value-strip-inner { min-height: 108px; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; padding-top: 16px; padding-bottom: 16px; }
  .value-strip-kicker { grid-row: span 2; max-width: 76px; }
  .value-strip h1 { gap: 4px 10px; font-size: 28px; }
  .value-strip-proof { grid-column: 2; text-align: left; white-space: normal; }
  .hero-overlay { padding-top: 112px; }
}
@media (max-width: 560px) {
  body { padding-bottom: 72px; }
  .brand { gap: 8px; }
  .brand img { width: 54px; height: 54px; max-width: 54px; }
  .brand-copy strong { font-size: 15px; }
  .brand-copy small { margin-top: 2px; font-size: 11px; }
  .value-strip-inner { min-height: 128px; grid-template-columns: 1fr; gap: 4px; padding-top: 15px; padding-bottom: 16px; }
  .value-strip-kicker { grid-row: auto; max-width: none; font-size: 11px; }
  .value-strip h1 { display: grid; gap: 1px; font-size: 28px; line-height: 1.2; }
  .value-strip h1 strong { font-size: 29px; }
  .value-strip-proof { grid-column: auto; font-size: 13px; }
  .hero { min-height: 420px; }
  .hero-overlay { padding-top: 76px; padding-bottom: 112px; }
  .hero-overlay > p:first-child { font-size: 13px; }
  .hero-overlay h2 { margin-bottom: 8px; font-size: 35px; }
  .hero-overlay .hero-support { margin-bottom: 18px; font-size: 16px; line-height: 1.5; }
  .hero-actions { gap: 8px; }
  .hero-actions .button { min-height: 46px; padding-inline: 14px; }
  .mobile-action-bar { position: fixed; z-index: 20; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 14px calc(8px + var(--safe-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(30, 13, 16, .1); }
  .mobile-action { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--brand); border-radius: 4px; font-size: 15px; font-weight: 700; }
  .mobile-action-primary { background: var(--brand); color: #fff; cursor: pointer; }
  .mobile-action-secondary { background: #fff; color: var(--brand); }
  .back-to-top { bottom: calc(76px + var(--safe-bottom)); }
}
@media (max-width: 374px) {
  .value-strip h1, .value-strip h1 strong { font-size: 25px; }
  .hero-overlay h2 { font-size: 31px; }
  .hero-actions .button { padding-inline: 11px; font-size: 14px; }
}
