:root {
  color-scheme: light;
  --ink: #31231d;
  --muted: #79695f;
  --gold: #c99055;
  --gold-deep: #9d6532;
  --rose: #f1c7c0;
  --rose-soft: #fbebe7;
  --sky: #dce8f0;
  --sky-deep: #6d89a8;
  --paper: #fffaf4;
  --paper-warm: #fbf1e7;
  --line: rgba(157, 101, 50, 0.2);
  --shadow: 0 18px 42px rgba(88, 57, 35, 0.12);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 250, 244, 0.9);
  border-bottom: 1px solid rgba(201, 144, 85, 0.16);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(var(--max-width), calc(100% - 48px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

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

.brand-mark {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  color: var(--gold);
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.brand-mark path {
  fill: currentColor;
  stroke: none;
}

.brand-copy strong {
  display: block;
  font-size: 18px;
  font-family: "SimSun", "Songti SC", serif;
  font-weight: 700;
  line-height: 1.3;
}

.brand-copy small {
  display: block;
  margin-top: 2px;
  color: var(--gold-deep);
  font-size: 10px;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 24px;
  font-size: 14px;
  font-weight: 700;
  color: #4c4039;
}

.site-nav a {
  position: relative;
  padding: 29px 0 26px;
}

.site-nav a::after {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 0;
  height: 3px;
  background: var(--gold);
  content: "";
  transform: translateX(-50%);
  transition: width 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--gold-deep);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  width: 28px;
}

.header-cta,
.primary-action,
.secondary-action,
.course-card a,
.more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.header-cta,
.primary-action {
  color: #fff;
  background: linear-gradient(135deg, #d9a165, #b9773d);
  box-shadow: 0 10px 22px rgba(185, 119, 61, 0.24);
}

.secondary-action,
.more-link {
  color: var(--gold-deep);
  background: rgba(255, 255, 255, 0.64);
  border-color: rgba(201, 144, 85, 0.42);
}

.menu-toggle {
  display: none;
}

.section-band {
  position: relative;
  overflow: hidden;
}

.hero-design-section {
  background: #f6ead8;
}

.hero-design-image {
  width: 100%;
  height: auto;
  min-height: 360px;
  object-fit: cover;
  object-position: center;
}

.section {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 58px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 48px auto 48px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-family: "SimSun", "Songti SC", serif;
  font-size: 28px;
  line-height: 1.25;
}

.section-heading p {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.ornament {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.intro {
  padding-bottom: 34px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 34px;
}

.about-grid article {
  padding: 26px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(201, 144, 85, 0.18);
  border-radius: 8px;
}

.about-grid h3,
.course-content h3,
.feature-inner h3,
.qr-card h3,
.info-column h2 {
  margin: 0;
  font-family: "SimSun", "Songti SC", serif;
}

.about-grid h3 {
  font-size: 22px;
}

.about-grid p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.courses {
  padding-top: 34px;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.course-card {
  position: relative;
  overflow: hidden;
  min-height: 266px;
  display: grid;
  grid-template-columns: 45% 55%;
  border-radius: 8px;
  border: 1px solid rgba(201, 144, 85, 0.12);
  box-shadow: var(--shadow);
}

.course-card-pink {
  background: linear-gradient(110deg, #fff4f1 0%, #f8dcd7 100%);
}

.course-card-blue {
  background: linear-gradient(110deg, #f5f9fb 0%, #dfe9f2 100%);
}

.course-content {
  position: relative;
  z-index: 1;
  padding: 34px 28px;
}

.course-age {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.course-content h3 {
  font-size: 28px;
}

.course-content ul {
  margin: 20px 0 22px;
  padding: 0;
  list-style: none;
  color: #625348;
  font-size: 14px;
  line-height: 2;
}

.course-content li::before {
  margin-right: 8px;
  color: var(--gold-deep);
  content: "✓";
}

.course-card a {
  min-height: 34px;
  padding-inline: 18px;
  color: #fff;
  background: rgba(201, 144, 85, 0.86);
}

.course-card-blue a {
  background: rgba(109, 137, 168, 0.9);
}

.course-card img {
  height: 100%;
  min-height: 266px;
  object-fit: cover;
  object-position: center;
}

.course-card-pink img {
  object-position: 58% center;
}

.course-card-blue img {
  object-position: 50% 40%;
}

.feature-band {
  margin: 0;
  background: linear-gradient(90deg, rgba(250, 240, 229, 0.96), rgba(255, 250, 244, 0.96), rgba(235, 243, 247, 0.88));
  border-block: 1px solid rgba(201, 144, 85, 0.12);
}

.feature-inner {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 36px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-inner article {
  display: grid;
  grid-template-columns: 46px 1fr;
  column-gap: 14px;
  align-items: start;
}

.feature-inner span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--gold-deep);
  border: 1px solid rgba(201, 144, 85, 0.48);
  border-radius: 8px;
  font-family: "SimSun", "Songti SC", serif;
  font-size: 20px;
}

.feature-inner h3 {
  font-size: 20px;
}

.feature-inner p {
  grid-column: 2;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.gallery-strip figure {
  overflow: hidden;
  margin: 0;
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(68, 50, 36, 0.12);
}

.gallery-strip img {
  height: 150px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-strip figure:hover img {
  transform: scale(1.04);
}

.more-link {
  display: flex;
  width: fit-content;
  margin: 26px auto 0;
}

.environment-news {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-top: 8px;
}

.info-column {
  padding: 28px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(201, 144, 85, 0.16);
  border-radius: 8px;
}

.info-column h2 {
  font-size: 24px;
}

.info-column p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.mini-program-section {
  padding-top: 42px;
  padding-bottom: 42px;
}

.mini-program-section-embedded {
  width: 100%;
  padding: 30px 0 20px;
}

.mini-program-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: stretch;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(255, 250, 244, 0.94), rgba(236, 245, 241, 0.94)),
    linear-gradient(90deg, rgba(201, 144, 85, 0.14), rgba(109, 137, 168, 0.14));
  border: 1px solid rgba(201, 144, 85, 0.22);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.section-kicker {
  width: fit-content;
  margin: 0 0 10px;
  padding: 6px 14px;
  color: #fff;
  background: linear-gradient(135deg, #d9a165, #b9773d);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 10px 22px rgba(185, 119, 61, 0.24);
}

.mini-program-copy h2 {
  margin: 0;
  font-family: "SimSun", "Songti SC", serif;
  font-size: 28px;
}

.mini-program-copy p {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.mini-program-copy .section-kicker {
  margin: 0 0 10px;
  color: #fff;
}

.mini-program-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.mini-program-card {
  min-width: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 22px;
  text-align: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(47, 111, 94, 0.2);
  border-radius: 8px;
}

.mini-program-qr,
.mini-program-code-placeholder {
  width: 186px;
  aspect-ratio: 1;
  margin-bottom: 14px;
  background: #fff;
  border: 8px solid #fff;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(49, 35, 29, 0.18), 0 12px 24px rgba(49, 35, 29, 0.12);
}

.mini-program-qr {
  object-fit: contain;
}

.mini-program-code-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  color: #233d35;
  background:
    linear-gradient(90deg, #233d35 16px, transparent 16px 28px, #233d35 28px 38px, transparent 38px),
    linear-gradient(#233d35 16px, transparent 16px 28px, #233d35 28px 38px, transparent 38px),
    repeating-linear-gradient(45deg, rgba(35, 61, 53, 0.9) 0 6px, transparent 6px 12px),
    #fff;
  background-size: 48px 48px, 48px 48px, 18px 18px, auto;
  font-weight: 700;
}

.mini-program-code-placeholder span,
.mini-program-code-placeholder small {
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.86);
  border-radius: 4px;
}

.mini-program-card h3 {
  margin: 0;
  font-family: "SimSun", "Songti SC", serif;
  font-size: 18px;
}

.mini-program-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.site-footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f8f0e7 0%, #fffaf4 100%);
}

.footer-visual {
  position: absolute;
  inset: 0 0 auto;
  height: 180px;
  background:
    linear-gradient(180deg, rgba(255, 250, 244, 0.2), rgba(255, 250, 244, 0.96)),
    linear-gradient(140deg, rgba(197, 137, 84, 0.12), transparent 44%),
    linear-gradient(20deg, rgba(109, 137, 168, 0.14), transparent 38%);
  pointer-events: none;
}

.footer-visual::before,
.footer-visual::after {
  position: absolute;
  bottom: 0;
  width: 48%;
  height: 68px;
  background: rgba(94, 112, 119, 0.12);
  clip-path: polygon(0 100%, 18% 62%, 36% 82%, 55% 40%, 78% 72%, 100% 38%, 100% 100%);
  content: "";
}

.footer-visual::before {
  left: 0;
}

.footer-visual::after {
  right: 0;
  transform: scaleX(-1);
}

.footer-main {
  position: relative;
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 42px 0 34px;
  display: grid;
  grid-template-columns: 1fr 1.45fr 1.15fr;
  gap: 34px;
  align-items: start;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo h2 {
  margin: 0;
  font-family: "SimSun", "Songti SC", serif;
  font-size: 24px;
}

.footer-brand p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.contact-list {
  font-style: normal;
}

.contact-list p {
  display: grid;
  grid-template-columns: 28px max-content minmax(0, 1fr);
  column-gap: 6px;
  align-items: start;
  margin: 0 0 13px;
  color: #40342d;
  line-height: 1.65;
}

.contact-list span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #fff;
  background: #2f2824;
  border-radius: 50%;
  font-size: 12px;
  font-style: normal;
}

.contact-list a {
  font-weight: 700;
  white-space: nowrap;
}

.contact-list strong {
  font-weight: 400;
  white-space: nowrap;
}

.contact-list em {
  min-width: 0;
  font-style: normal;
}

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

.footer-main .qr-area {
  grid-column: 1 / -1;
}

.qr-card {
  min-width: 0;
  padding: 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(201, 144, 85, 0.18);
  border-radius: 8px;
}

.qr-zoom-trigger {
  display: block;
  width: fit-content;
  margin: 0 auto 12px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: zoom-in;
}

.qr-zoom-trigger:focus-visible {
  outline: 3px solid rgba(185, 119, 61, 0.42);
  outline-offset: 4px;
}

.qr-placeholder {
  width: 92px;
  aspect-ratio: 1;
  margin: 0 auto 10px;
  padding: 8px;
  background:
    linear-gradient(90deg, #211b18 12px, transparent 12px 20px, #211b18 20px 26px, transparent 26px),
    linear-gradient(#211b18 12px, transparent 12px 20px, #211b18 20px 26px, transparent 26px),
    repeating-linear-gradient(45deg, #211b18 0 5px, transparent 5px 10px),
    #fff;
  background-size: 34px 34px, 34px 34px, 16px 16px, auto;
  border: 6px solid #fff;
  box-shadow: 0 0 0 1px rgba(49, 35, 29, 0.18);
}

.qr-placeholder-alt {
  filter: hue-rotate(182deg) saturate(0.8);
}

.qr-placeholder-third {
  filter: sepia(0.25);
}

.qr-card .mini-program-qr,
.qr-card .mini-program-code-placeholder,
.qr-card .qr-image {
  width: 150px;
  margin: 0;
  border-width: 6px;
}

.qr-card .qr-image {
  height: 170px;
  object-fit: contain;
  padding: 4px;
  background: #fff;
  border: 6px solid #fff;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(49, 35, 29, 0.14);
}

.qr-card h3 {
  font-size: 16px;
}

.qr-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.qr-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(24, 19, 15, 0.72);
}

.qr-lightbox.open {
  display: grid;
}

.qr-lightbox-dialog {
  position: relative;
  width: min(92vw, 430px);
  padding: 24px;
  background: #fffaf4;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  text-align: center;
}

.qr-lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: #201915;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.qr-lightbox img {
  width: min(76vw, 320px);
  max-height: 70vh;
  margin: 18px auto 0;
  object-fit: contain;
  background: #fff;
  border: 10px solid #fff;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(49, 35, 29, 0.12);
}

.qr-lightbox p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-bottom {
  position: relative;
  padding: 16px 24px;
  color: rgba(255, 255, 255, 0.78);
  background: #201915;
  text-align: center;
  font-size: 13px;
}

.footer-bottom p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
}

.footer-bottom a {
  color: #fff4dc;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1120px) {
  .header-inner {
    gap: 18px;
  }

  .site-nav {
    gap: 14px;
    font-size: 13px;
  }

  .header-cta {
    display: none;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .qr-area {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .header-inner {
    min-height: 70px;
  }

  .brand {
    min-width: 0;
  }

  .brand-copy strong {
    font-size: 16px;
  }

  .menu-toggle {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border: 1px solid rgba(201, 144, 85, 0.34);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
  }

  .menu-toggle-lines,
  .menu-toggle-lines::before,
  .menu-toggle-lines::after {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--gold-deep);
    content: "";
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .menu-toggle-lines::before {
    transform: translateY(-7px);
  }

  .menu-toggle-lines::after {
    transform: translateY(5px);
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-lines {
    transform: rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-lines::before {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-lines::after {
    transform: translateY(-2px) rotate(90deg);
  }

  .site-nav {
    position: absolute;
    left: 24px;
    right: 24px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    background: rgba(255, 250, 244, 0.98);
    border: 1px solid rgba(201, 144, 85, 0.2);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 16px;
    border-radius: 6px;
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav a:hover,
  .site-nav a.active {
    background: rgba(201, 144, 85, 0.1);
  }

  .about-grid,
  .course-grid,
  .environment-news,
  .mini-program-panel {
    grid-template-columns: 1fr;
  }

  .feature-inner {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .gallery-strip figure:first-child {
    grid-column: 1 / -1;
  }

  .gallery-strip img {
    height: 190px;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .section,
  .feature-inner,
  .footer-main {
    width: min(100% - 32px, var(--max-width));
  }

  .brand-mark {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }

  .brand-copy small {
    display: none;
  }

  .brand-copy strong {
    max-width: 210px;
    font-size: 15px;
  }

  .hero-design-image {
    height: 300px;
    object-position: 35% center;
  }

  .section {
    padding: 44px 0;
  }

  .section-heading {
    grid-template-columns: 32px auto 32px;
  }

  .section-heading h2 {
    font-size: 24px;
  }

  .course-card {
    grid-template-columns: 1fr;
  }

  .course-card img {
    order: -1;
    min-height: 210px;
    height: 210px;
  }

  .course-content {
    padding: 24px;
  }

  .course-content h3 {
    font-size: 25px;
  }

  .feature-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

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

  .gallery-strip figure:first-child {
    grid-column: auto;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-logo h2 {
    font-size: 20px;
  }

  .qr-area {
    grid-template-columns: 1fr;
  }

  .qr-card {
    display: grid;
    grid-template-columns: 132px 1fr;
    column-gap: 14px;
    align-items: center;
    text-align: left;
  }

  .qr-placeholder {
    width: 126px;
    margin: 0;
    grid-row: span 2;
  }

  .mini-program-panel {
    padding: 22px;
  }

  .mini-program-card {
    padding: 18px;
  }

  .mini-program-qr,
  .mini-program-code-placeholder {
    width: 154px;
  }

  .qr-card .mini-program-qr,
  .qr-card .mini-program-code-placeholder,
  .qr-card .qr-image {
    width: 126px;
    margin: 0;
    grid-row: span 3;
  }

  .qr-card .qr-image {
    height: 146px;
  }

  .qr-zoom-trigger {
    margin: 0;
    grid-row: span 3;
  }
}
