:root {
  --bg: #fffaf5;
  --paper: #ffffff;
  --ink: #223028;
  --muted: #65716a;
  --green: #2f7d57;
  --green-dark: #1f5f42;
  --orange: #f08b3e;
  --gold: #ffda80;
  --blue-soft: #eaf5ff;
  --warm: #fff0df;
  --border: rgba(34, 48, 40, 0.13);
  --shadow: 0 18px 52px rgba(76, 52, 30, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 17px;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 218, 128, 0.5), transparent 26rem),
    radial-gradient(circle at 92% 8%, rgba(234, 245, 255, 0.9), transparent 26rem),
    var(--bg);
  color: var(--ink);
  font-family:
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    "Noto Sans CJK SC",
    system-ui,
    sans-serif;
  line-height: 1.62;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 3.5rem);
  background: rgba(255, 250, 245, 0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--green-dark);
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  border-radius: 0.75rem;
  background: var(--green);
  color: #fff;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.3rem;
}

.top-nav a {
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
}

.top-nav a:hover,
.top-nav a:focus-visible,
.top-nav a[aria-current="true"] {
  background: rgba(47, 125, 87, 0.1);
  color: var(--green-dark);
}

.top-nav .language-link {
  background: var(--green);
  color: #fff;
}

.top-nav .language-link:hover,
.top-nav .language-link:focus-visible {
  background: var(--green-dark);
  color: #fff;
}

.section {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3.2rem, 7vw, 5.4rem) 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(21rem, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 4rem);
  min-height: calc(100vh - 4rem);
}

.soft-label {
  margin: 0 0 0.8rem;
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

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

h1 {
  max-width: 14em;
  margin-bottom: 1rem;
  font-size: clamp(2.2rem, 4.8vw, 3.8rem);
  line-height: 1.18;
  letter-spacing: 0.01em;
}

h2 {
  max-width: 18em;
  margin-bottom: 0.9rem;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.25;
  letter-spacing: 0.01em;
}

h3 {
  margin-bottom: 0.4rem;
  font-size: 1.2rem;
  line-height: 1.25;
}

.hero-text,
.section-heading p,
.paid-card > p,
.contact-section p {
  color: var(--muted);
  font-size: 1.04rem;
}

.hero-actions,
.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-actions {
  margin: 1.55rem 0 1.2rem;
}

.button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
}

.button.primary {
  background: var(--green);
  color: white;
  box-shadow: 0 14px 30px rgba(47, 125, 87, 0.22);
}

.button.secondary {
  background: var(--paper);
  border-color: var(--border);
  color: var(--green-dark);
}

.trust-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.trust-list li {
  padding: 0.38rem 0.68rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--green-dark);
  font-size: 0.86rem;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  min-height: 31rem;
  border-radius: 1.5rem;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.5rem;
  background: linear-gradient(140deg, #b8d4bf, #d4edda);
  display: block;
  z-index: 0;
}

.insight-card,
.phone-card,
.proof-card {
  position: absolute;
  border: 1px solid var(--border);
  background: var(--paper);
  box-shadow: var(--shadow);
  z-index: 2;
}

.insight-card {
  top: 0;
  left: 0;
  width: 18rem;
  padding: 1.15rem;
  border-radius: 1.25rem;
  transform: rotate(-3deg);
}

.insight-card span,
.price-box span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.insight-card strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--green-dark);
  font-size: 1.28rem;
  line-height: 1.22;
}

.phone-card {
  top: 4.2rem;
  right: 0.2rem;
  width: min(20rem, 82vw);
  padding: 0.7rem;
  border-radius: 2rem;
  background: #24332b;
}

.phone-top {
  width: 3.8rem;
  height: 0.32rem;
  margin: 0.2rem auto 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
}

.phone-screen {
  display: grid;
  gap: 0.55rem;
  min-height: 23rem;
  padding: 1rem;
  border-radius: 1.5rem;
  background: linear-gradient(160deg, #fffaf0, #eaf8ee);
}

.phone-screen span:not(.screen-title) {
  display: flex;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.78);
  font-weight: 800;
  line-height: 1.3;
}

.screen-title {
  color: var(--orange);
  font-weight: 900;
}

.proof-card {
  right: 1rem;
  bottom: 0;
  width: min(24rem, 92vw);
  padding: 1.1rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, #ffffff, #fff0df);
}

.proof-card p {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.section-heading {
  max-width: 46rem;
  margin-bottom: 1.7rem;
}

.problem-grid,
.resource-grid,
.safety-grid {
  display: grid;
  gap: 1rem;
}

.problem-grid {
  grid-template-columns: repeat(3, 1fr);
}

.problem-grid article,
.resource-grid article,
.path-card,
.paid-card,
.class-plan,
.contact-section,
.safety-grid div {
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 38px rgba(76, 52, 30, 0.08);
}

.problem-grid article,
.resource-grid article,
.path-card,
.paid-card,
.class-plan,
.safety-grid div {
  padding: 1.25rem;
}

.problem-grid p,
.resource-grid p,
.path-card li,
.class-plan li,
.safety-grid span,
.site-footer p {
  color: var(--muted);
}

.paid-section {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 1.1rem;
  align-items: stretch;
}

.paid-card {
  background: linear-gradient(145deg, #ffffff, #fff0df);
}

.price-box {
  margin-top: 1.35rem;
  padding: 1.15rem;
  border-radius: 1.15rem;
  background: var(--green-dark);
  color: white;
}

.price-box strong {
  display: block;
  margin: 0.1rem 0;
  font-size: clamp(2.8rem, 7vw, 4.3rem);
  line-height: 1;
}

.price-box p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
}

.class-plan ol,
.path-card ul {
  padding-left: 1.15rem;
  margin-bottom: 0;
}

.class-plan li,
.path-card li {
  margin: 0.62rem 0;
}

.safety-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.3rem;
  align-items: start;
}

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

.safety-grid div {
  background: #f7fff9;
}

.safety-grid strong,
.safety-grid span {
  display: block;
}

.safety-grid strong {
  margin-bottom: 0.35rem;
  color: var(--green-dark);
}

.resource-grid {
  grid-template-columns: repeat(3, 1fr);
}

.resource-grid article span {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  margin-bottom: 0.75rem;
  place-items: center;
  border-radius: 0.9rem;
  background: #fff1d2;
  font-size: 1.35rem;
}

.audience-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

.path-card.highlight {
  background: var(--blue-soft);
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr minmax(17rem, 0.72fr);
  gap: 1.2rem;
  padding: clamp(1.3rem, 4vw, 2rem);
  background: linear-gradient(135deg, #ffffff, #eaf8ee);
}

.contact-card {
  padding: 1.1rem;
  border-radius: 1rem;
  background: white;
}

.contact-card p {
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.contact-card .button {
  width: 100%;
  margin-top: 0.75rem;
}

.placeholder-button {
  cursor: not-allowed;
  opacity: 0.82;
}

.site-footer {
  padding: 2rem 1rem;
  text-align: center;
  background: #253229;
}

.site-footer p {
  margin: 0.25rem auto;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    justify-content: flex-start;
  }

  .hero,
  .paid-section,
  .safety-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 29rem;
  }

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

@media (max-width: 640px) {
  html {
    font-size: 16px;
  }

  .section {
    width: min(100% - 1rem, 1120px);
  }

  .problem-grid,
  .resource-grid,
  .safety-grid,
  .audience-section {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 27rem;
  }

  .insight-card {
    width: 15rem;
  }

  .phone-card {
    right: 0;
    top: 4.8rem;
  }

  .proof-card {
    right: 0;
    left: 0;
    width: auto;
  }
}

/* ============================================================
   NEW SECTIONS — OpenAID Redesign 2026
   ============================================================ */

/* --- Pain Cards (#why) --- */
.pain-grid {
  gap: 1.2rem;
}
.pain-card {
  padding: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: 0 8px 28px rgba(76,52,30,0.07);
}
.pain-icon {
  font-size: 2rem;
  margin-bottom: 0.6rem;
  display: block;
}
.pain-scenario {
  font-style: italic;
  color: var(--orange);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 0.7rem;
  padding: 0.6rem 0.85rem;
  border-left: 3px solid var(--orange);
  background: rgba(240,139,62,0.06);
  border-radius: 0 0.5rem 0.5rem 0;
}

/* --- Curriculum Grid (#curriculum) --- */
.curriculum-section {
  background: none;
}
.lesson-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.lesson-tile {
  position: relative;
  padding: 1.1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(255,255,255,0.85);
  box-shadow: 0 6px 20px rgba(76,52,30,0.07);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.lesson-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(76,52,30,0.13);
}
.lesson-tile--paid {
  border-color: var(--green);
  background: linear-gradient(145deg, #fff, #f0fdf6);
}
.lesson-tile--paid::after {
  content: "小班";
  position: absolute;
  top: 0.5rem; right: 0.5rem;
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  background: var(--green);
  color: white;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}
.lesson-tile--highlight {
  border-color: var(--orange);
  background: linear-gradient(145deg, #fff, #fff5ec);
}
.lesson-num {
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 0.22rem;
}
.lesson-icon {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}
.lesson-tile h3 {
  font-size: 0.93rem;
  margin-bottom: 0.28rem;
  color: var(--ink);
}
.lesson-tile p {
  font-size: 0.79rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}
.curriculum-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.4rem;
}
.badge-paid {
  display: inline-block;
  padding: 0.13rem 0.5rem;
  border-radius: 999px;
  background: var(--green);
  color: white;
  font-weight: 900;
  font-size: 0.78rem;
  margin-right: 0.3rem;
}

/* --- Preview Cards (#preview) --- */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-bottom: 1.3rem;
}
.preview-card {
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: var(--paper);
  box-shadow: 0 14px 38px rgba(76,52,30,0.08);
  overflow: hidden;
}
.preview-card-header {
  padding: 1.1rem 1.2rem 0.85rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #fafaf8, #f3fcf6);
}
.preview-tag {
  display: inline-block;
  padding: 0.11rem 0.5rem;
  border-radius: 999px;
  background: rgba(47,125,87,0.1);
  color: var(--green-dark);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  margin-bottom: 0.38rem;
}
.preview-card-header h3 {
  font-size: 1.05rem;
  margin-bottom: 0.18rem;
  color: var(--ink);
}
.preview-card-header p {
  font-size: 0.83rem;
  color: var(--muted);
  margin: 0;
}
/* Card 1: anatomy list */
.anatomy-list {
  padding: 0.85rem 1.1rem 1.1rem;
  display: grid;
  gap: 0.48rem;
}
.anatomy-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.42rem 0.65rem;
  border-radius: 0.65rem;
  background: #f8f9f5;
}
.anatomy-icon {
  font-size: 1.05rem;
  flex-shrink: 0;
  width: 1.5rem;
  text-align: center;
}
.anatomy-item strong {
  display: block;
  font-size: 0.86rem;
  line-height: 1.2;
}
.anatomy-item small {
  color: var(--muted);
  font-size: 0.73rem;
}
/* Card 2: settings list */
.settings-list {
  padding: 0.85rem 1.1rem 1.1rem;
  display: grid;
  gap: 0.65rem;
}
.settings-item {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.45rem 0.65rem;
  border-radius: 0.75rem;
}
.settings-item--primary {
  background: rgba(47,125,87,0.07);
  border: 1px solid rgba(47,125,87,0.15);
}
.settings-num {
  flex-shrink: 0;
  width: 1.6rem; height: 1.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-dark);
  color: white;
  font-size: 0.8rem;
  font-weight: 900;
}
.settings-item strong {
  display: block;
  font-size: 0.87rem;
  line-height: 1.3;
}
.settings-item p {
  margin: 0.1rem 0 0;
  font-size: 0.77rem;
  color: var(--muted);
}
.settings-tip {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.74rem;
  color: var(--green-dark);
  font-weight: 800;
}
/* Card 3: vote categories */
.vote-categories {
  padding: 0.85rem 1.1rem 0.5rem;
  display: grid;
  gap: 0.75rem;
}
.vote-cat strong {
  font-size: 0.87rem;
  display: block;
  margin-bottom: 0.28rem;
}
.vote-cat ul {
  padding-left: 1.1rem;
  margin: 0;
}
.vote-cat li {
  font-size: 0.79rem;
  color: var(--muted);
  margin: 0.17rem 0;
  line-height: 1.4;
}
.vote-footer {
  margin: 0;
  padding: 0.55rem 1.1rem 1rem;
  font-size: 0.78rem;
  color: var(--green-dark);
  font-weight: 800;
  border-top: 1px solid var(--border);
}
/* Image strip below preview cards */
.preview-image-strip {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  height: 13rem;
}
.preview-strip-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  background: linear-gradient(140deg, #b8d4bf, #d4edda);
}
.preview-strip-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.8rem 1.4rem;
  background: linear-gradient(transparent, rgba(34,48,40,0.78));
}
.preview-strip-overlay p {
  margin: 0;
  color: rgba(255,255,255,0.95);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

/* --- Outcomes Grid (#outcomes) --- */
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.outcome-group {
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  background: rgba(255,255,255,0.82);
  box-shadow: 0 6px 20px rgba(76,52,30,0.06);
}
.outcome-group h3 {
  font-size: 0.98rem;
  margin-bottom: 0.65rem;
  color: var(--ink);
}
.outcome-list {
  padding-left: 0;
  list-style: none;
  margin: 0;
}
.outcome-list li {
  padding: 0.3rem 0 0.3rem 1.35rem;
  position: relative;
  font-size: 0.85rem;
  color: var(--ink);
  line-height: 1.48;
  border-bottom: 1px solid rgba(34,48,40,0.06);
}
.outcome-list li:last-child {
  border-bottom: none;
}
.outcome-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 900;
}
.outcome-quote {
  margin: 0;
  padding: 1.1rem 1.4rem;
  border-left: 4px solid var(--green);
  border-radius: 0 1rem 1rem 0;
  background: rgba(47,125,87,0.05);
}
.outcome-quote p {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--green-dark);
  font-weight: 700;
}
.outcome-quote cite {
  font-size: 0.82rem;
  color: var(--muted);
}

/* --- Paid Section enhancements --- */
.paid-image-wrap {
  margin-top: 1rem;
  border-radius: 1rem;
  overflow: hidden;
  height: 10rem;
}
.paid-scene-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  background: linear-gradient(140deg, #c8dfc8, #e0f5e8);
}
.class-plan p {
  font-size: 0.84rem;
  color: var(--muted);
  margin: 0.18rem 0 0.5rem;
  line-height: 1.5;
}
.class-note {
  margin-top: 0.85rem;
  padding: 0.65rem 0.9rem;
  border-radius: 0.8rem;
  background: rgba(47,125,87,0.07);
  font-size: 0.84rem;
  color: var(--green-dark);
  font-weight: 800;
}

/* --- Safety section image --- */
.safety-img {
  width: 100%;
  border-radius: 1rem;
  margin-top: 1.2rem;
  object-fit: cover;
  height: 12rem;
  display: block;
  background: linear-gradient(140deg, #d0e8d4, #e8f5ea);
}

/* ============================================================
   RESPONSIVE — new sections
   ============================================================ */
@media (max-width: 920px) {
  .lesson-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .preview-grid {
    grid-template-columns: 1fr;
  }
  .outcomes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .lesson-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .outcomes-grid {
    grid-template-columns: 1fr;
  }
  .preview-image-strip {
    height: 10rem;
  }
}
