:root {
  --bg: #fbf7ef;
  --paper: #fffdf8;
  --ink: #3e332c;
  --muted: #75695f;
  --line: rgba(81, 65, 52, 0.14);
  --coral: #ef5d4f;
  --green: #668f63;
  --blue: #5f8fb4;
  --gold: #e6b766;
  --shadow: 0 18px 42px rgba(77, 62, 48, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.7;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}

.brand,
.footer-brand {
  color: var(--coral);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 5vw, 74px);
  font-size: 16px;
}

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

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

.site-nav a.active::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--coral);
  content: "";
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 24px;
}

.home-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: linear-gradient(90deg, #fff7e9 0%, #f5efe3 58%, #f3e1ce 100%);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(251, 247, 239, 0.95) 0%, rgba(251, 247, 239, 0.68) 42%, rgba(251, 247, 239, 0.1) 72%);
  content: "";
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 560px;
  padding: 76px 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 620px;
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.15;
}

.hero-subtitle {
  max-width: 560px;
  margin: 24px 0 34px;
  color: var(--muted);
  font-size: 22px;
}

.hero-actions,
.download-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}

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

.button.secondary {
  border-color: var(--green);
  color: var(--green);
  background: rgba(255, 255, 255, 0.78);
}

.course-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: -72px;
}

.course-card {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 22px;
  align-items: center;
  min-height: 170px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow);
}

.course-card h2,
.service-card h2 {
  margin: 0 0 6px;
  color: var(--accent, var(--coral));
  font-family: Georgia, "Songti SC", serif;
  font-size: 30px;
  line-height: 1.2;
}

.course-card p,
.service-card p,
.teacher-card p,
.news-row p,
.article-shell p {
  color: var(--muted);
}

.age {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.course-image {
  width: 150px;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
}

.circle-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent, var(--coral));
  color: #fff;
  font-size: 24px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.metric {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 96px;
  padding: 24px;
  background: rgba(255, 253, 248, 0.76);
}

.metric strong {
  color: var(--coral);
  font-size: 34px;
  line-height: 1;
}

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

.section-band {
  margin-top: 74px;
  padding: 74px 0;
  background: #fffaf0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.home-intro-band {
  padding: 68px 0;
}

.home-intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(36px, 6vw, 86px);
  align-items: center;
}

.home-intro-layout-wide {
  grid-template-columns: minmax(0, 1fr);
}

.home-intro-copy {
  max-width: 760px;
}

.home-intro-copy h2 {
  max-width: 680px;
  margin: 0 0 18px;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.22;
}

.home-intro-lede {
  max-width: 720px;
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.9;
}

.home-value-list {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.home-value-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.home-value-item:last-child {
  border-bottom: 1px solid var(--line);
}

.home-value-item span {
  color: var(--green);
  font-family: Georgia, "Songti SC", serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.home-value-item h3 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.35;
}

.home-value-item p {
  margin: 0;
  color: var(--muted);
}

.home-contact-panel {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 18px 42px rgba(77, 62, 48, 0.1);
}

.home-contact-panel h2 {
  margin: 0 0 14px;
  font-size: 34px;
  line-height: 1.25;
}

.home-contact-panel p {
  margin: 0;
  color: var(--muted);
}

.contact-methods {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
}

.contact-methods div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.contact-methods div:last-child {
  border-bottom: 1px solid var(--line);
}

.contact-methods dt,
.contact-methods dd {
  margin: 0;
}

.contact-methods dt {
  color: var(--muted);
}

.contact-methods dd {
  color: var(--ink);
  font-weight: 700;
  text-align: right;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 54px;
  align-items: start;
}

.split h2,
.download-band h2,
.download-panel h2,
.simple-page h1 {
  margin: 0 0 16px;
  font-size: 34px;
  line-height: 1.25;
}

.value-grid,
.statement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.value-grid article,
.statement-grid article,
.contact-panel,
.teacher-card,
.service-card,
.news-row,
.download-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 32px rgba(77, 62, 48, 0.08);
}

.value-grid article,
.statement-grid article,
.contact-panel {
  padding: 24px;
}

.value-grid h3,
.statement-grid h3,
.contact-panel h2 {
  margin: 0 0 8px;
}

.site-footer {
  padding: 48px 0;
  color: #fef8ef;
  background: #4d3c32;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 42px;
}

.site-footer p,
.site-footer a {
  display: block;
  margin: 8px 0 0;
  color: rgba(255, 248, 239, 0.76);
}

.site-footer h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.page-hero {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background: linear-gradient(135deg, #f8ead7, #fdf7ed);
}

.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero::after {
  position: absolute;
  inset: 0;
  background: rgba(251, 247, 239, 0.68);
  content: "";
}

.page-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 300px;
  padding: 64px 0;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: 44px;
  line-height: 1.2;
}

.page-hero span {
  max-width: 760px;
  color: var(--muted);
}

.page-section {
  padding: 76px 0;
}

.principle-list {
  display: grid;
  gap: 16px;
}

.principle-list article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.62);
}

.principle-list span {
  color: var(--coral);
  font-weight: 800;
}

.service-grid {
  display: grid;
  gap: 24px;
}

.service-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
  padding: 26px;
}

.service-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
}

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.teacher-card {
  padding: 24px;
}

.teacher-image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
}

.teacher-card h2 {
  margin: 18px 0 4px;
  font-size: 24px;
}

.teacher-title {
  margin-top: 0;
  color: var(--green);
  font-weight: 700;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags span {
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(102, 143, 99, 0.13);
  font-size: 13px;
}

.news-list {
  display: grid;
  gap: 20px;
}

.news-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 24px;
}

.news-row img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
}

.news-row h2 {
  margin: 8px 0;
  font-size: 24px;
  line-height: 1.35;
}

time {
  color: var(--green);
  font-weight: 700;
}

.text-link {
  color: var(--coral);
  font-weight: 700;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.article-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid var(--coral);
  border-radius: 999px;
  color: #fff;
  background: var(--coral);
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(239, 93, 79, 0.2);
  white-space: nowrap;
}

.article-back-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(239, 93, 79, 0.24);
}

.article-page {
  padding: 64px 0;
}

.article-shell {
  max-width: 860px;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.article-shell h1 {
  margin: 12px 0 26px;
  font-size: 38px;
  line-height: 1.25;
}

.article-cover {
  width: 100%;
  max-height: 420px;
  margin-bottom: 28px;
  border-radius: 8px;
  object-fit: cover;
}

.richtext {
  color: var(--ink);
}

.richtext iframe,
.wechat-embed iframe {
  width: 100%;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.notice-box {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff7e8;
}

.download-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 54px;
  margin-bottom: 72px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.download-panel {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 34px;
  align-items: center;
  padding: 34px;
}

.qr-box {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border: 1px dashed rgba(77, 62, 48, 0.28);
  border-radius: 8px;
  color: var(--muted);
  background: #fff7e8;
}

.qr-box img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  border: 1px dashed rgba(77, 62, 48, 0.28);
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(239, 93, 79, 0.14), transparent 40%),
    linear-gradient(315deg, rgba(102, 143, 99, 0.16), transparent 42%),
    #fff8ee;
  text-align: center;
}

.empty {
  color: var(--muted);
}

.simple-page {
  min-height: 420px;
  padding: 96px 0;
}

@media (max-width: 980px) {
  .site-nav {
    position: absolute;
    top: 78px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: var(--shadow);
  }

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

  .nav-toggle {
    display: block;
  }

  .course-strip,
  .metrics,
  .value-grid,
  .statement-grid,
  .teacher-grid {
    grid-template-columns: 1fr 1fr;
  }

  .split,
  .home-intro-layout,
  .service-card,
  .news-row,
  .download-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .home-intro-copy {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .brand,
  .footer-brand {
    font-size: 24px;
  }

  .home-hero,
  .hero-content {
    min-height: 500px;
  }

  .hero-media::after {
    background: rgba(251, 247, 239, 0.82);
  }

  .hero-content h1 {
    font-size: 40px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .course-strip,
  .metrics,
  .value-grid,
  .statement-grid,
  .teacher-grid {
    grid-template-columns: 1fr;
  }

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

  .course-card .circle-link {
    grid-column: 2;
  }

  .course-image {
    width: 110px;
  }

  .home-intro-band {
    padding: 52px 0;
  }

  .home-intro-copy h2 {
    font-size: 32px;
  }

  .home-intro-lede {
    font-size: 16px;
  }

  .home-value-item {
    grid-template-columns: 38px 1fr;
    gap: 14px;
  }

  .home-value-item h3 {
    font-size: 20px;
  }

  .home-contact-panel {
    padding: 26px;
  }

  .contact-methods div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .contact-methods dd {
    text-align: left;
  }

  .download-band {
    align-items: stretch;
    flex-direction: column;
  }

  .article-shell {
    padding: 26px;
  }
}
