:root {
  --cream: #fbf7f2;
  --paper: #fffdf9;
  --blush: #e8c3c2;
  --rose: #b56f70;
  --rose-dark: #8f5153;
  --brown: #4c3932;
  --muted: #806d65;
  --line: rgba(76, 57, 50, 0.14);
  --shadow: 0 24px 70px rgba(97, 66, 56, 0.12);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--brown);
  background: var(--cream);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.75;
  overflow-x: hidden;
}

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

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

button {
  color: inherit;
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.brand {
  font-family: "Songti SC", "STSong", serif;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: -80px;
  left: 20px;
  padding: 10px 18px;
  background: var(--brown);
  color: white;
  border-radius: 8px;
}

.skip-link:focus {
  top: 10px;
}

.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: fixed;
  z-index: 100;
  top: 0;
  width: 100%;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  background: rgba(251, 247, 242, 0.9);
  border-color: var(--line);
  box-shadow: 0 8px 30px rgba(76, 57, 50, 0.06);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brown);
  color: var(--paper);
  font-size: 15px;
}

.main-nav {
  display: flex;
  gap: 36px;
  font-size: 14px;
  font-weight: 500;
}

.main-nav a {
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--rose);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.main-nav a[aria-current="page"] {
  color: var(--rose-dark);
}

.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
  border: 0;
  background: transparent;
}

.hero {
  position: relative;
  min-height: 820px;
  padding: 150px 0 70px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 100%;
  background:
    linear-gradient(90deg, rgba(251, 247, 242, 0.93) 0%, rgba(251, 247, 242, 0.45) 62%, rgba(251, 247, 242, 0.2) 100%),
    radial-gradient(circle at 75% 22%, rgba(232, 195, 194, 0.45), transparent 38%);
}

.hero-orb {
  position: absolute;
  border: 1px solid rgba(181, 111, 112, 0.25);
  border-radius: 50%;
}

.hero-orb::before,
.hero-orb::after {
  content: "";
  position: absolute;
  border: inherit;
  border-radius: inherit;
  inset: 22px;
}

.hero-orb::after {
  inset: 48px;
}

.hero-orb-one {
  width: 260px;
  height: 260px;
  left: -130px;
  bottom: 30px;
}

.hero-orb-two {
  width: 180px;
  height: 180px;
  right: -90px;
  top: 200px;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  align-items: center;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--rose-dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 700px;
  margin-bottom: 28px;
  font-size: clamp(44px, 5.7vw, 76px);
  line-height: 1.27;
  letter-spacing: -0.04em;
}

.hero h1 em {
  display: block;
  color: var(--rose-dark);
  font-style: normal;
}

.hero-intro {
  max-width: 570px;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 54px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  padding: 0 24px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--brown);
  color: white;
  box-shadow: 0 14px 30px rgba(76, 57, 50, 0.18);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--rose-dark);
}

.button-ghost {
  border-color: var(--line);
  background: rgba(255, 253, 249, 0.55);
}

.hero-stats {
  display: flex;
  gap: 34px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-stats li {
  display: grid;
  gap: 2px;
  padding-right: 30px;
  border-right: 1px solid var(--line);
}

.hero-stats li:last-child {
  padding-right: 0;
  border-right: 0;
}

.hero-stats strong {
  font-family: "Songti SC", "STSong", serif;
  font-size: 20px;
}

.hero-stats span {
  color: var(--muted);
  font-size: 11px;
}

.hero-visual {
  position: relative;
  max-width: 460px;
  justify-self: end;
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  border: 10px solid rgba(255, 253, 249, 0.75);
  border-radius: 220px 220px 32px 32px;
  box-shadow: var(--shadow);
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 68%, rgba(76, 57, 50, 0.08));
  pointer-events: none;
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 0.75;
  object-fit: cover;
  object-position: center 30%;
}

.floating-note {
  position: absolute;
  padding: 12px 17px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 14px;
  background: rgba(255, 253, 249, 0.83);
  box-shadow: 0 14px 35px rgba(76, 57, 50, 0.12);
  color: var(--rose-dark);
  font-family: "Songti SC", "STSong", serif;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(12px);
}

.note-top {
  top: 22%;
  left: -60px;
}

.note-bottom {
  right: -42px;
  bottom: 14%;
}

.section {
  padding: 120px 0;
}

.section-heading {
  max-width: 600px;
  margin-bottom: 58px;
}

.section-heading.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading h2,
.project-title h2,
.contact h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.32;
  letter-spacing: -0.03em;
}

.section-heading > p:last-child {
  color: var(--muted);
}

.about {
  background: var(--paper);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: start;
}

.about-story {
  position: sticky;
  top: 120px;
  color: var(--muted);
}

.about-story .lead {
  color: var(--brown);
  font-family: "Songti SC", "STSong", serif;
  font-size: 21px;
  line-height: 1.8;
}

.credentials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.credential-card {
  min-height: 230px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--cream);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.credential-card:hover {
  transform: translateY(-5px);
  border-color: rgba(181, 111, 112, 0.35);
  box-shadow: 0 18px 36px rgba(76, 57, 50, 0.08);
}

.credential-index,
.course-number {
  color: var(--rose);
  font-family: "Songti SC", "STSong", serif;
  font-size: 13px;
}

.credential-card h3 {
  margin: 52px 0 10px;
  font-size: 21px;
}

.credential-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.project {
  background: var(--rose-dark);
  color: var(--paper);
}

.project-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 80px;
}

.project .eyebrow {
  color: var(--blush);
}

.project-copy {
  max-width: 680px;
  padding-top: 28px;
  color: rgba(255, 253, 249, 0.74);
  font-size: 16px;
}

.project-kicker {
  color: var(--paper);
  font-family: "Songti SC", "STSong", serif;
  font-size: 22px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.project-tags span {
  padding: 7px 14px;
  border: 1px solid rgba(255, 253, 249, 0.24);
  border-radius: 999px;
  font-size: 12px;
}

.course-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.course-card {
  position: relative;
  min-height: 490px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 36px rgba(76, 57, 50, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.course-card.featured {
  background: var(--brown);
  color: var(--paper);
  transform: translateY(-14px);
}

.course-card.featured:hover {
  transform: translateY(-20px);
}

.course-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--blush);
  color: var(--brown);
  font-size: 11px;
  font-weight: 600;
}

.course-card h3 {
  margin: 42px 0 4px;
  font-size: 32px;
}

.course-price {
  margin-bottom: 8px;
  color: var(--rose-dark);
  font-family: "Songti SC", "STSong", serif;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.2;
}

.course-price span {
  margin-right: 3px;
  font-size: 14px;
  font-weight: 500;
}

.featured .course-price {
  color: var(--blush);
}

.course-subtitle {
  margin-bottom: 30px;
  color: var(--rose-dark);
  font-size: 13px;
  font-weight: 600;
}

.featured .course-subtitle,
.featured .course-number {
  color: var(--blush);
}

.course-card ul {
  display: grid;
  gap: 13px;
  margin: 0 0 40px;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  list-style: none;
}

.course-card li {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.featured ul {
  color: rgba(255, 253, 249, 0.68);
}

.featured li {
  border-color: rgba(255, 253, 249, 0.12);
}

.course-card a {
  position: absolute;
  bottom: 32px;
  font-size: 13px;
  font-weight: 600;
}

.course-card a span {
  margin-left: 4px;
  transition: margin 0.2s ease;
}

.course-card a:hover span {
  margin-left: 10px;
}

.course-overview {
  margin-top: 80px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.overview-copy {
  display: flex;
  gap: 20px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 28px;
}

.overview-copy h3 {
  margin: 0;
  font-size: 26px;
}

.overview-copy p:last-child {
  max-width: 440px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.image-button {
  position: relative;
  display: block;
  width: 100%;
  max-height: 720px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: white;
  cursor: zoom-in;
}

.image-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 72%, rgba(76, 57, 50, 0.56));
  pointer-events: none;
}

.image-button img {
  width: 100%;
  object-fit: cover;
  object-position: top;
}

.image-button span {
  position: absolute;
  z-index: 1;
  right: 20px;
  bottom: 18px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 11px;
  backdrop-filter: blur(10px);
}

.contact {
  padding-top: 40px;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: center;
  padding: 70px 80px;
  border-radius: 36px;
  background:
    radial-gradient(circle at 85% 10%, rgba(232, 195, 194, 0.22), transparent 30%),
    var(--brown);
  color: var(--paper);
  box-shadow: var(--shadow);
}

.contact-copy {
  max-width: 650px;
}

.contact .eyebrow {
  color: var(--blush);
}

.contact-copy > p:not(.eyebrow) {
  max-width: 560px;
  color: rgba(255, 253, 249, 0.65);
}

.button-light {
  margin-top: 12px;
  background: var(--paper);
  color: var(--brown);
}

.qr-placeholder {
  width: 220px;
  min-height: 250px;
  padding: 20px;
  display: grid;
  place-items: center;
  gap: 6px;
  border-radius: 24px;
  background: var(--paper);
  color: var(--brown);
  text-align: center;
}

.qr-grid {
  width: 140px;
  height: 140px;
  border-radius: 10px;
  opacity: 0.35;
  background:
    linear-gradient(90deg, var(--brown) 10px, transparent 10px) 0 0 / 28px 28px,
    linear-gradient(var(--brown) 10px, transparent 10px) 0 0 / 28px 28px,
    var(--blush);
}

.qr-image {
  width: 160px;
  height: 160px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  object-fit: contain;
}

.qr-placeholder strong {
  font-family: "Songti SC", "STSong", serif;
}

.qr-placeholder span {
  color: var(--muted);
  font-size: 11px;
}

.site-footer {
  padding: 38px 0;
}

.page-hero {
  position: relative;
  padding: 170px 0 95px;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, rgba(232, 195, 194, 0.42), transparent 28%),
    var(--cream);
}

.page-hero::after {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  right: -100px;
  bottom: -120px;
  border: 1px solid rgba(181, 111, 112, 0.25);
  border-radius: 50%;
  box-shadow: inset 0 0 0 28px var(--cream), inset 0 0 0 29px rgba(181, 111, 112, 0.2);
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 850px;
}

.page-hero h1 {
  margin-bottom: 22px;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.page-hero .page-lead {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.page-content {
  padding: 100px 0 120px;
  background: var(--paper);
}

.detail-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: start;
}

.detail-portrait {
  position: sticky;
  top: 115px;
  overflow: hidden;
  border-radius: 220px 220px 24px 24px;
  box-shadow: var(--shadow);
}

.detail-portrait img {
  width: 100%;
  aspect-ratio: 0.76;
  object-fit: cover;
  object-position: center 25%;
}

.detail-copy h2,
.content-block h2 {
  margin-bottom: 20px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.35;
}

.detail-copy > p,
.content-block > p {
  color: var(--muted);
}

.milestone-list {
  display: grid;
  gap: 14px;
  margin-top: 36px;
}

.milestone {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--cream);
}

.milestone span {
  color: var(--rose-dark);
  font-family: "Songti SC", "STSong", serif;
  font-size: 13px;
}

.milestone h3 {
  margin-bottom: 6px;
  font-size: 18px;
}

.milestone p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.page-cta {
  margin-top: 50px;
  padding: 34px;
  border-radius: 24px;
  background: var(--brown);
  color: var(--paper);
}

.page-cta p {
  color: rgba(255, 253, 249, 0.66);
}

.course-detail-list {
  display: grid;
  gap: 24px;
  margin-bottom: 70px;
}

.course-detail {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 48px;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}

.course-detail.featured {
  background: var(--brown);
  color: var(--paper);
}

.course-detail h2 {
  margin: 12px 0 8px;
  font-size: 36px;
}

.course-detail .course-price {
  margin-bottom: 10px;
  font-size: 30px;
}

.course-detail .course-subtitle {
  margin-bottom: 0;
}

.course-benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.course-benefits div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--brown);
  font-size: 13px;
}

.featured .course-benefits div {
  border-color: rgba(255, 253, 249, 0.12);
  background: rgba(255, 253, 249, 0.08);
  color: var(--paper);
}

.contact-page-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
}

.contact-panel {
  padding: 50px;
  border-radius: var(--radius);
  background: var(--brown);
  color: var(--paper);
}

.contact-panel h2 {
  font-size: clamp(32px, 4vw, 48px);
}

.contact-panel > p {
  color: rgba(255, 253, 249, 0.65);
}

.contact-steps {
  display: grid;
  gap: 12px;
  margin-top: 35px;
}

.contact-step {
  padding: 18px;
  border: 1px solid rgba(255, 253, 249, 0.15);
  border-radius: 15px;
}

.contact-step strong {
  display: block;
  margin-bottom: 4px;
  font-family: "Songti SC", "STSong", serif;
}

.contact-step span {
  color: rgba(255, 253, 249, 0.58);
  font-size: 12px;
}

.contact-qr-panel {
  padding: 50px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  text-align: center;
}

.contact-qr-panel .qr-placeholder {
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(76, 57, 50, 0.08);
}

.proof-intro {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 90px;
}

.proof-point {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--cream);
}

.proof-point span {
  color: var(--rose);
  font-family: "Songti SC", "STSong", serif;
  font-size: 13px;
}

.proof-point h2 {
  margin: 28px 0 10px;
  font-size: 22px;
}

.proof-point p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.feedback-section {
  margin-top: 90px;
}

.feedback-heading {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 50px;
  margin-bottom: 36px;
  align-items: end;
}

.feedback-heading h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 46px);
}

.feedback-heading p {
  margin-bottom: 0;
  color: var(--muted);
}

.feedback-gallery {
  columns: 3;
  column-gap: 16px;
}

.feedback-card {
  position: relative;
  width: 100%;
  display: block;
  margin: 0 0 16px;
  padding: 0;
  overflow: hidden;
  break-inside: avoid;
  border: 0;
  border-radius: 18px;
  background: var(--cream);
  box-shadow: 0 10px 30px rgba(76, 57, 50, 0.08);
  cursor: zoom-in;
}

.feedback-card img {
  width: 100%;
  transition: transform 0.35s ease;
}

.feedback-card::after {
  content: "点击放大";
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(76, 57, 50, 0.64);
  color: white;
  font-size: 10px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.feedback-card:hover img,
.feedback-card:focus-visible img {
  transform: scale(1.02);
}

.feedback-card:hover::after,
.feedback-card:focus-visible::after {
  opacity: 1;
}

.feedback-note {
  margin-top: 26px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.city-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 90px;
}

.city-card {
  position: relative;
  min-height: 190px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--cream);
}

.city-card::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  right: -45px;
  bottom: -45px;
  border: 1px solid rgba(181, 111, 112, 0.22);
  border-radius: 50%;
  box-shadow: inset 0 0 0 18px var(--cream), inset 0 0 0 19px rgba(181, 111, 112, 0.18);
}

.city-card span {
  color: var(--rose);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.city-card h2 {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  font-size: 30px;
}

.family-statement {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  align-items: start;
  margin-bottom: 90px;
  padding: 58px;
  border-radius: 30px;
  background: var(--brown);
  color: var(--paper);
}

.family-statement .eyebrow {
  color: var(--blush);
}

.family-statement h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.4;
}

.family-copy {
  color: rgba(255, 253, 249, 0.68);
}

.family-copy .lead {
  color: var(--paper);
  font-family: "Songti SC", "STSong", serif;
  font-size: 21px;
}

.offline-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.offline-card {
  position: relative;
  grid-column: span 4;
  min-height: 300px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: var(--cream);
  box-shadow: 0 12px 32px rgba(76, 57, 50, 0.09);
  cursor: zoom-in;
}

.offline-card.wide {
  grid-column: span 8;
}

.offline-card.tall {
  grid-row: span 2;
  min-height: 616px;
}

.offline-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.offline-card:hover img,
.offline-card:focus-visible img {
  transform: scale(1.025);
}

.offline-card::after {
  content: "线下交流现场";
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(76, 57, 50, 0.7);
  color: white;
  font-size: 10px;
  backdrop-filter: blur(8px);
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.footer-wrap p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 11px;
}

.image-dialog {
  width: min(1000px, calc(100vw - 30px));
  max-height: calc(100vh - 30px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow);
}

.image-dialog::backdrop {
  background: rgba(40, 28, 25, 0.78);
  backdrop-filter: blur(8px);
}

.image-dialog img {
  width: 100%;
}

.dialog-close {
  position: fixed;
  z-index: 2;
  top: 22px;
  right: 22px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(40, 28, 25, 0.72);
  color: white;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-delay {
  transition-delay: 0.12s;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .hero {
    min-height: auto;
  }

  .hero-grid,
  .about-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 700px;
  }

  .hero-visual {
    max-width: 520px;
    justify-self: center;
  }

  .about-story {
    position: static;
  }

  .project-grid {
    gap: 10px;
  }

  .course-cards {
    grid-template-columns: 1fr;
    max-width: 680px;
    margin: 0 auto;
  }

  .course-card {
    min-height: 420px;
  }

  .course-card.featured,
  .course-card.featured:hover {
    transform: none;
  }

  .contact-card {
    padding: 60px;
  }

  .detail-grid,
  .course-detail,
  .contact-page-grid {
    grid-template-columns: 1fr;
  }

  .feedback-gallery {
    columns: 2;
  }

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

  .family-statement {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .offline-card,
  .offline-card.wide {
    grid-column: span 6;
  }

  .detail-portrait {
    position: static;
    max-width: 520px;
  }
}

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

  .nav-wrap {
    min-height: 70px;
  }

  .brand {
    font-size: 14px;
  }

  .menu-button {
    width: 42px;
    height: 42px;
    display: grid;
    place-content: center;
    gap: 5px;
    cursor: pointer;
  }

  .menu-button span:not(.sr-only) {
    width: 20px;
    height: 1px;
    display: block;
    background: var(--brown);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .menu-button[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-button[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .main-nav {
    position: absolute;
    top: 70px;
    right: 14px;
    left: 14px;
    display: grid;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 253, 249, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .main-nav.open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }

  .main-nav a {
    padding: 13px;
  }

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

  .hero {
    padding-top: 120px;
  }

  .hero-grid {
    gap: 52px;
  }

  .hero h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .hero-intro {
    font-size: 15px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    margin-bottom: 42px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .hero-stats li {
    padding-right: 0;
    border-right: 0;
  }

  .hero-stats li:last-child {
    grid-column: 1 / -1;
  }

  .hero-visual {
    padding: 0 12px;
  }

  .portrait-frame {
    border-width: 7px;
  }

  .note-top {
    left: -2px;
  }

  .note-bottom {
    right: 0;
  }

  .section {
    padding: 86px 0;
  }

  .page-hero {
    padding: 125px 0 70px;
  }

  .page-content {
    padding: 70px 0 90px;
  }

  .section-heading {
    margin-bottom: 40px;
  }

  .credentials {
    grid-template-columns: 1fr;
  }

  .credential-card {
    min-height: 190px;
  }

  .credential-card h3 {
    margin-top: 34px;
  }

  .course-card {
    padding: 28px;
  }

  .course-overview {
    margin-top: 50px;
    padding: 16px;
  }

  .overview-copy {
    display: block;
  }

  .overview-copy p:last-child {
    margin-top: 10px;
    text-align: left;
  }

  .image-button {
    max-height: 520px;
  }

  .image-button img {
    min-height: 520px;
    object-fit: cover;
    object-position: top;
  }

  .contact {
    padding-top: 10px;
  }

  .contact-card {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 42px 24px;
    border-radius: 26px;
  }

  .qr-placeholder {
    width: 100%;
  }

  .course-detail,
  .contact-panel,
  .contact-qr-panel {
    padding: 28px;
  }

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

  .proof-intro,
  .feedback-heading {
    grid-template-columns: 1fr;
  }

  .proof-intro {
    margin-bottom: 65px;
  }

  .feedback-section {
    margin-top: 65px;
  }

  .feedback-gallery {
    columns: 1;
  }

  .city-track {
    grid-template-columns: 1fr;
    margin-bottom: 65px;
  }

  .city-card {
    min-height: 150px;
  }

  .family-statement {
    margin-bottom: 65px;
    padding: 34px 24px;
  }

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

  .offline-card,
  .offline-card.wide,
  .offline-card.tall {
    grid-column: auto;
    grid-row: auto;
    min-height: 280px;
  }

  .footer-wrap {
    display: grid;
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
