/* ============================================================
   peacm.com 教育培训案例专属样式 css/case-education.css
   布局概念：课堂场景首屏（左文右图）→ 课程体系树 →
   报名漏斗数据（CSS梯形四层）→ 家长信任要素网格 →
   师资/课堂图文 → CTA
   ============================================================ */

/* ---------- 1. 首屏 ---------- */
.ed-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 54px) 0 70px;
  background:
    radial-gradient(720px 380px at 90% 12%, rgba(243, 231, 195, 0.6), transparent 62%),
    var(--cream);
}

.ed-hero-in {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}

.ed-eyebrow {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 999px;
  background: var(--green-1);
  color: var(--green-deeper);
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 18px;
}

.ed-hero h1 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.25;
  margin-bottom: 16px;
}

.ed-hero h1 em {
  font-style: normal;
  color: var(--amber);
}

.ed-hero-sub {
  color: var(--ink-2);
  font-size: 15px;
  margin-bottom: 24px;
  max-width: 520px;
}

.ed-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.ed-visual {
  position: relative;
}

.ed-visual img {
  width: 100%;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lift);
}

/* ---------- 2. 课程体系 ---------- */
.ed-curriculum {
  background: var(--cream-2);
}

.ed-curr-tree {
  max-width: 760px;
  margin: 0 auto;
}

.ed-curr-note {
  margin-top: 26px;
  font-size: 14px;
  color: var(--ink-2);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.ed-curr-root {
  text-align: center;
  background: var(--green-deep);
  color: #fff;
  border-radius: var(--r-md);
  padding: 16px;
  font-weight: 600;
  margin-bottom: 0;
}

.ed-curr-branches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.ed-curr-branch {
  background: #fff;
  border-radius: var(--r-md);
  padding: 22px 20px;
  box-shadow: var(--shadow-soft);
  border-top: 4px solid var(--green-3);
}

.ed-curr-branch:nth-child(2) { border-top-color: var(--yellow-3); }
.ed-curr-branch:nth-child(3) { border-top-color: var(--amber); }

.ed-curr-branch h3 {
  font-size: 16px;
  margin-bottom: 12px;
  text-align: center;
}

.ed-curr-branch ul li {
  font-size: 13px;
  color: var(--ink-2);
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}

.ed-curr-branch ul li:last-child {
  border-bottom: none;
}

/* ---------- 3. 报名漏斗 ---------- */
.ed-funnel {
  background: var(--cream);
}

.ed-funnel-wrap {
  max-width: 640px;
  margin: 0 auto;
}

.ed-funnel-step {
  margin: 0 auto 10px;
  background: var(--green-1);
  color: var(--green-deeper);
  border-radius: var(--r-md);
  padding: 16px 20px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.ed-funnel-step strong {
  display: block;
  font-size: 22px;
}

.ed-funnel-step span {
  font-size: 13px;
}

.ed-funnel-step.f1 { width: 100%; background: var(--green-2); }
.ed-funnel-step.f2 { width: 78%; background: var(--yellow-1); color: var(--amber-deep); }
.ed-funnel-step.f3 { width: 56%; background: var(--yellow-2); color: var(--amber-deep); }
.ed-funnel-step.f4 { width: 36%; background: var(--amber); color: #fff; }

.ed-funnel-note {
  text-align: center;
  margin-top: 22px;
  font-size: 14px;
  color: var(--ink-2);
}

/* ---------- 4. 家长信任要素 ---------- */
.ed-trust {
  background: var(--cream-2);
}

.ed-trust-img {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  margin-bottom: 24px;
}

.ed-trust-img img {
  width: 100%;
  display: block;
}

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

.ed-trust-card {
  background: #fff;
  border-radius: var(--r-md);
  padding: 26px 26px;
  box-shadow: var(--shadow-soft);
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: all 0.3s ease;
}

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

.ed-trust-no {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--green-1);
  color: var(--green-deeper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.ed-trust-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.ed-trust-card p {
  font-size: 14px;
  color: var(--ink-2);
}

/* ---------- 5. 师资课堂图文 ---------- */
.ed-story {
  background: var(--cream);
}

.ed-story-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.ed-story-media img {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift);
}

.ed-story-copy h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  margin-bottom: 14px;
}

.ed-story-copy h2 em {
  font-style: normal;
  color: var(--amber);
}

.ed-story-copy p {
  color: var(--ink-2);
  font-size: 15px;
  margin-bottom: 14px;
}

/* ---------- 6. CTA ---------- */
.ed-cta {
  background: linear-gradient(120deg, var(--green-deep), #55794F);
  padding: 76px 0;
}

.ed-cta-panel {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
}

.ed-cta-panel h2 {
  color: #fff;
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 14px;
}

.ed-cta-panel > p {
  color: var(--green-1);
  font-size: 15px;
  margin-bottom: 28px;
}

.ed-cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.ed-cta-sub {
  font-size: 13px;
  color: var(--green-1);
}

.ed-cta-sub a {
  color: var(--yellow-1);
}

/* ---------- 7. 响应式 ---------- */
@media (max-width: 1080px) {
  .ed-trust-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .ed-hero-in { grid-template-columns: 1fr; gap: 36px; }
  .ed-story-row { grid-template-columns: 1fr; gap: 30px; }
  .ed-curr-branches { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .ed-hero { padding: calc(var(--header-h) + 30px) 0 50px; }
  .ed-hero-actions .btn { width: 100%; }
  .ed-funnel-step.f4 { width: 60%; }
}
