/* DEPLOY-2026090802 */
/* ============================================
 * 「关于我们」页面专用样式（CMS 渲染板块）
 * ============================================ */

/* 通用板块壳由 .block / .block--alt 继承自 style.css */

/* ----------- 时间线（发展历程 · 横向）----------- */
.cms-timeline {
  list-style: none;
  padding: 0;
  margin: 30px auto 0;
  max-width: 1100px;
  position: relative;
}
/* 横向连接线 */
.cms-timeline::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 52px;
  height: 2px;
  background: linear-gradient(90deg, var(--c-blue), var(--c-warm-orange));
  opacity: 0.3;
}
.tl__list {
  display: flex;
  gap: 0;
  justify-content: flex-start;
}
/* 节点数可变（现为 7 个）。此处不再设固定 min-width——min-width 会让
   7 × 160px = 1120px 超出可视宽度 1052px，导致最后一个节点被裁切。
   改为纯弹性分配，节点多时自动收窄、少时自动放宽。 */
.tl__item {
  flex: 1 1 0;
  min-width: 0;
  max-width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 0 9px;
}
.tl__year {
  font-size: 20px;
  font-weight: 700;
  color: var(--c-blue-deep);
  text-align: center;
  line-height: 1.4;
  margin-bottom: 10px;
}
.tl__dot {
  width: 16px;
  height: 16px;
  background: var(--c-blue);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(63,165,232,0.15);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  margin-bottom: 14px;
}
.tl__body {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  padding: 13px 13px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  width: 100%;
  transition: transform .2s, box-shadow .2s;
}
.tl__body:hover { transform: translateY(-3px); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.tl__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-ink);
  margin: 0 0 6px;
}
.tl__desc {
  font-size: 12.5px;
  color: var(--c-ink-soft);
  line-height: 1.65;
  margin: 0;
}
.tl__empty {
  text-align: center;
  color: var(--c-ink-muted);
  padding: 40px 0;
  list-style: none;
}

/* ----------- 研究成果 / 学员成长 卡片网格 ----------- */
.cms-rg-lead {
  text-align: center;
  font-size: 15px;
  line-height: 1.9;
  color: var(--c-ink-soft);
  max-width: 760px;
  margin: 0 auto 32px;
}
.cms-rg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 28px;
}
.cms-rg-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.cms-rg-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.cms-rg-card__img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: var(--c-bg);
}
.cms-rg-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cms-rg-card__avatar {
  width: 64px;
  height: 64px;
  margin: 24px auto 12px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--c-bg);
}
.cms-rg-card__avatar--ph {
  background: linear-gradient(135deg, var(--c-blue), var(--c-warm-orange));
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cms-rg-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cms-rg-card__body {
  padding: 12px 22px 22px;
  flex: 1;
}
.cms-rg-card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--c-ink);
  margin: 0 0 6px;
  text-align: center;
}
.cms-rg-card__role {
  font-size: 12px;
  color: var(--c-blue-deep);
  margin: 0 0 8px;
  text-align: center;
}
.cms-rg-card__desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-ink-soft);
  margin: 0;
}
.cms-rg-empty {
  grid-column: 1/-1;
  text-align: center;
  color: var(--c-ink-muted);
  padding: 60px 0;
}

/* ----------- 学院环境 / 学员风采 画廊 ----------- */
.cms-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.cms-gallery__item {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--c-line);
  transition: transform 0.2s;
}
.cms-gallery__item:hover {
  transform: translateY(-2px);
}
.cms-gallery__item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}
.cms-gallery__item figcaption {
  padding: 12px 18px;
  font-size: 13px;
  color: var(--c-ink-soft);
  border-top: 1px solid var(--c-line);
}

/* ----------- 二级页：完整画廊 ----------- */
.cms-gallery-full {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 28px;
}
.cms-gallery-full__item {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--c-line);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.cms-gallery-full__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.1);
}
.cms-gallery-full__item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}
.cms-gallery-full__item figcaption {
  padding: 14px 20px;
  font-size: 14px;
  color: var(--c-ink-soft);
  border-top: 1px solid var(--c-line);
}

/* ----------- 响应式 ----------- */
/* 移动端仍保持横排：允许横向滑动，而非退化为竖排 */
@media (max-width: 768px) {
  .cms-timeline {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 12px;
  }
  .cms-timeline::before {
    display: none;
  }
  .tl__list {
    position: relative;
    flex-direction: row;
    gap: 10px;
    min-width: max-content;
  }
  /* 连接线改为随内容横向滚动，始终贯穿所有节点 */
  .tl__list::before {
    content: '';
    position: absolute;
    left: 0; right: 0;
    top: 52px;
    height: 2px;
    background: linear-gradient(90deg, var(--c-blue), var(--c-warm-orange));
    opacity: 0.3;
  }
  .tl__item {
    flex: none;
    min-width: 150px;
    max-width: 200px;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0 10px;
  }
  .tl__year {
    font-size: 18px;
    margin-bottom: 8px;
    text-align: center;
  }
  .tl__dot {
    margin: 0 0 12px;
  }
  .tl__body {
    width: 100%;
  }
}

/* ============================================================
   图片 hover 缩放 · 科技氛围
   ============================================================ */
.cms-rg-card__img img,
.cms-rg-card__avatar img,
.cms-gallery__item img,
.cms-gallery-full__item img{
  transition:transform .45s cubic-bezier(.22,.61,.36,1);
  will-change:transform;
}
@media (hover:hover){
  .cms-rg-card:hover .cms-rg-card__img img{ transform:scale(1.08); }
  .cms-rg-card:hover .cms-rg-card__avatar img{ transform:scale(1.12); }
  .cms-gallery__item:hover img{ transform:scale(1.06); }
  .cms-gallery-full__item:hover img{ transform:scale(1.06); }
}