/* ============================================================
   timeline.css — 首页竖排时间线（精修版）
   ============================================================ */

.timeline-vertical {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 20px;
  position: relative;
}

/* 左侧渐变竖线 */
.timeline-vertical::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom,
    rgba(212, 184, 122, 0.6),
    rgba(212, 184, 122, 0.1));
}

.timeline-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  /* 🌟 核心修复：使用 transform 代替 padding-left，杜绝抖屏 */
  transition: transform 0.3s ease, background 0.3s ease;
}

.timeline-card:last-child { 
  border-bottom: none; 
}

/* 悬浮时整行微微右移，并亮起极暗的背景 */
.timeline-card:hover {
  background: rgba(212, 184, 122, 0.03);
  border-radius: 8px;
  transform: translateX(8px);
}

/* 年份 */
.timeline-year {
  min-width: 70px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--gold-light);
  /* 稍微收敛了发光，看起来更清爽 */
  text-shadow: 0 0 15px rgba(212, 184, 122, 0.4);
  padding-top: 2px;
  letter-spacing: 1px;
}

/* 发光圆点 */
.timeline-dot {
  min-width: 12px;
  height: 12px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px rgba(212, 184, 122, 0.3);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  /* 添加动画过渡 */
  transition: all 0.3s ease;
}

/* 🌟 神来之笔：鼠标悬浮时，圆点变大、变白、光晕扩散 */
.timeline-card:hover .timeline-dot {
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(212, 184, 122, 0.5), 
              0 0 15px rgba(212, 184, 122, 0.8);
  transform: scale(1.2);
}

.timeline-content { 
  flex: 1; 
  padding-bottom: 2px; 
}

/* 标题与描述 */
.timeline-title {
  font-weight: 600;
  font-size: 1.05rem; /* 稍微放大了一丢丢标题 */
  color: #ffffff;     /* 确保纯白，更清晰 */
  margin-bottom: 6px;
  transition: color 0.3s ease;
}

.timeline-card:hover .timeline-title {
  color: var(--gold-light); /* 悬浮时标题泛金 */
}

.timeline-desc {
  font-size: 0.85rem;
  color: #888888; /* 统一使用较暗的灰色，拉开层级 */
  line-height: 1.6;
}

/* ============ 时间线卡片左侧滑入 (保留你优秀的设定) ============ */
.timeline-vertical > .scroll-anim { transform: translateX(-40px); opacity: 0; }
.timeline-vertical > .scroll-anim.show { transform: translateX(0); opacity: 1; }

.timeline-vertical > .scroll-anim:nth-child(1) { transition-delay: 0s; }
.timeline-vertical > .scroll-anim:nth-child(2) { transition-delay: 0.1s; }
.timeline-vertical > .scroll-anim:nth-child(3) { transition-delay: 0.2s; }
.timeline-vertical > .scroll-anim:nth-child(4) { transition-delay: 0.3s; }
.timeline-vertical > .scroll-anim:nth-child(5) { transition-delay: 0.4s; }

/* ============ 响应式 ============ */
@media (max-width: 640px) {
  .timeline-vertical { padding-left: 12px; }
  .timeline-vertical::before { left: 10px; }
  .timeline-year { min-width: 50px; font-size: 1rem; }
  .timeline-dot { min-width: 10px; height: 10px; margin-top: 4px; }
  .timeline-title { font-size: 0.95rem; }
  .timeline-desc { font-size: 0.8rem; }
}