/**
 * 培训教育单页样式（参考 ezhifei.com/p-page_1 系列课程 + 科普活动）
 * 滚动进入动画：原生 Intersection Observer + 自写 CSS，不依赖 WOW/animate.css
 */
.page-main.education-page {
  padding-bottom: 60px;
}
.education-page .container {
  overflow: visible;
}

/* ========== 滚动进入动画：向下滑动时，内容从左右两侧向中间汇聚 ========== */
.education-page .edu-ani {
  opacity: 0;
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
  will-change: opacity, transform;
}
.education-page .edu-ani.edu-ani-up {
  transform: translateY(32px);
}
.education-page .edu-ani.edu-ani-left {
  transform: translateX(-56px);
}
.education-page .edu-ani.edu-ani-right {
  transform: translateX(56px);
}
.education-page .edu-ani.in {
  opacity: 1;
  transform: translate(0, 0);
  will-change: auto;
}
/* 首屏标题/简介可设短延迟，由 JS 在 run 后立即触发 .in */
.education-page .edu-ani.edu-ani-delay-1 { transition-delay: 0.05s; }
.education-page .edu-ani.edu-ani-delay-2 { transition-delay: 0.1s; }
.education-page .edu-ani.edu-ani-delay-3 { transition-delay: 0.15s; }

.education-page .page-intro {
  font-size: 14px;
  line-height: 1.9;
  color: #555;
  margin-bottom: 40px;
}
.education-page .page-intro p {
  margin: 0 0 1em;
}

/* ========== 区块标题（参考截图：系列课程 / SERIES OF COURSES） ========== */
.education-section {
  margin-bottom: 56px;
}
.education-section:last-child {
  margin-bottom: 0;
}
.education-section .section-head {
  text-align: center;
  margin-bottom: 44px;
}
.education-section .section-head .cn {
  font-size: 25px;
  font-weight: bold;
  color: #222;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.education-section .section-head .en {
  font-size: 18px;
  font-weight: bold;
  color: #d9d9d9;
  letter-spacing: 0.05em;
}

/* ========== 系列课程：两栏网格 + 图文交错（截图版式） ========== */
.course-groups-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
  align-items: start;
}
.course-group {
  min-width: 0;
}
/* 课程组主标题：大号加粗 + 标题下细灰线 */
.course-group-title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin-bottom: 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #e0e0e0;
  width: fit-content;
  max-width: 100%;
}
.course-group-subtitle {
  display: none; /* 截图为短线，用 border 代替 ———— */
}
/* 课程项：小节标题加粗 + 短灰线 + 正文 */
.course-item {
  margin-bottom: 28px;
  padding-left: 0;
}
.course-item:last-child {
  margin-bottom: 0;
}
.course-item-title {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 0;
  padding-bottom: 6px;
  border-bottom: 1px solid #e8e8e8;
  width: fit-content;
  max-width: 100%;
}
.course-item-sep {
  font-size: 14px;
  color: #00d5ff;
  margin: 6px 0 8px;
  font-weight: bold;
  letter-spacing: 0.1em;
}
.course-item-content {
  font-size: 14px;
  line-height: 1.9;
  color: #444;
}
/* 课程组右侧/左侧配图占位（截图中的两张图） */
.course-group-img {
  min-height: 240px;
  background: #f5f5f5;
  border-radius: 4px;
  overflow: hidden;
}
.course-group-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 科普活动：冬夏令营 + 活动卡片 */
.activities-block-title {
  text-align: center;
  font-size: 16px;
  color: #666;
  margin-bottom: 24px;
}
.activity-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.activity-card {
  flex: 1;
  min-width: 280px;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 24px;
  background: #fafafa;
}
.activity-card-title {
  font-size: 18px;
  color: #333;
  font-weight: bold;
  margin-bottom: 6px;
}
.activity-card-subtitle {
  font-size: 13px;
  color: #999;
  margin-bottom: 16px;
}
.activity-card-highlights {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  font-size: 14px;
  color: #555;
  line-height: 1.8;
}
.activity-card-highlights li {
  position: relative;
  padding-left: 14px;
}
.activity-card-highlights li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: #c81623;
  font-weight: bold;
}
.activity-card-content {
  font-size: 14px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 10px;
}
.activity-card-note {
  font-size: 12px;
  color: #999;
  font-style: italic;
}
.education-section-footer-note {
  text-align: center;
  font-size: 12px;
  color: #999;
  margin-top: 16px;
}

/* ========== 科普活动：图片宫格（参考截图） ========== */
.activity-image-grid {
  margin-top: 32px;
  padding: 32px 32px 36px;
  background: #f2f2f2;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.activity-image-grid-item {
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  aspect-ratio: 1;
  min-height: 140px;
}
.activity-image-grid-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* 冬夏令营整体布局（参考旧站截图） */
.wintercamp-wrap {
  background: #f5f7fb;
  border-radius: 8px;
  padding: 32px 36px 38px;
}
.wintercamp-main {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr);
  gap: 32px;
  align-items: stretch;
}
.wintercamp-left {
  min-width: 0;
}
.wintercamp-right {
  min-width: 0;
}
.wintercamp-tabs {
  display: inline-flex;
  border-radius: 24px;
  background: #e4ebf8;
  padding: 3px;
  margin-bottom: 24px;
}
.wintercamp-tab {
  border: none;
  padding: 8px 26px;
  border-radius: 20px;
  background: transparent;
  color: #0073d8;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.wintercamp-tab.active {
  background: #1f86ff;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 90, 200, 0.35);
}
.wintercamp-subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}
.wintercamp-plan-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
}
.wintercamp-highlights-title {
  font-size: 16px;
  color: #0073d8;
  font-weight: bold;
  margin-bottom: 10px;
}
.wintercamp-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 40px;
  margin-bottom: 18px;
}
.wintercamp-highlights-col {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  color: #444;
  line-height: 1.9;
}
.wintercamp-highlights-col li::before {
  content: "▪";
  margin-right: 6px;
  color: #555;
}
.wintercamp-note {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}
.wintercamp-plan {
  display: none;
}
.wintercamp-plan.active {
  display: block;
}
.wintercamp-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 10px;
}
.wintercamp-photo-item {
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.wintercamp-photo-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

@media (max-width: 768px) {
  .education-page .page-intro {
    margin-bottom: 32px;
  }
  .education-section {
    margin-bottom: 36px;
  }
  .education-section .section-head {
    margin-bottom: 28px;
  }
  .education-section .section-head .cn {
    font-size: 22px;
  }
  .education-section .section-head .en {
    font-size: 14px;
  }
  .course-groups-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .course-group-title {
    font-size: 20px;
    padding-bottom: 10px;
  }
  .course-item-title {
    font-size: 15px;
  }
  .course-group-img {
    min-height: 200px;
  }
  .activity-cards {
    flex-direction: column;
    gap: 16px;
  }
  .activity-card {
    min-width: 0;
    padding: 18px;
  }
  .activity-image-grid {
    padding: 20px 18px 22px;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .wintercamp-wrap {
    padding: 20px 18px 24px;
  }
  .wintercamp-main {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .wintercamp-tabs {
    margin-bottom: 16px;
  }
}
@media (max-width: 480px) {
  .education-section .section-head .cn {
    font-size: 18px;
  }
}
