/* ============================
   时间轴专用样式
   ============================ */

.timeline-section {
  padding: 5rem 2rem;
  background: var(--dark);
  position: relative;
}

.timeline-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* 中轴线 */
.timeline-container::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, 
    transparent, 
    rgba(201,162,39,0.4) 10%, 
    rgba(201,162,39,0.4) 90%, 
    transparent
  );
  transform: translateX(-50%);
}

/* 时间轴条目 */
.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-item.left {
  flex-direction: row;
  padding-right: calc(50% + 3rem);
}

.timeline-item.right {
  flex-direction: row-reverse;
  padding-left: calc(50% + 3rem);
}

/* 年份点 */
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 1.5rem;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: rgba(201,162,39,0.4);
  border: 2px solid var(--gold);
  border-radius: 50%;
  z-index: 2;
  transition: all 0.3s;
}

.featured-dot {
  width: 20px;
  height: 20px;
  background: var(--gold);
  box-shadow: 0 0 15px rgba(201,162,39,0.6);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 15px rgba(201,162,39,0.6); }
  50% { box-shadow: 0 0 30px rgba(201,162,39,0.9), 0 0 60px rgba(201,162,39,0.4); }
}

/* 年份标签 */
.timeline-item::after {
  content: attr(data-year);
  position: absolute;
  left: 50%;
  top: 1.2rem;
  transform: translateX(-50%);
  margin-top: 18px;
  font-size: 0.72rem;
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-weight: 700;
  white-space: nowrap;
  text-shadow: 0 0 10px rgba(201,162,39,0.5);
}

/* 卡片占满各自区域 */
.timeline-item .game-card {
  flex: 1;
  max-width: 100%;
}

.featured-card {
  border-color: rgba(201,162,39,0.4) !important;
  box-shadow: 0 0 30px rgba(201,162,39,0.15) !important;
}

.featured-card:hover {
  border-color: rgba(201,162,39,0.7) !important;
  box-shadow: 0 12px 50px rgba(201,162,39,0.3) !important;
}

/* 连接线 */
.timeline-item.left .game-card::after {
  content: '';
  position: absolute;
  right: -3rem;
  top: 1.9rem;
  width: 3rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(201,162,39,0.4), transparent);
}

.timeline-item.right .game-card::after {
  content: '';
  position: absolute;
  left: -3rem;
  top: 1.9rem;
  width: 3rem;
  height: 1px;
  background: linear-gradient(270deg, rgba(201,162,39,0.4), transparent);
}

.timeline-item .game-card {
  position: relative;
}

/* 滚动动画 */
.timeline-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 响应式 */
@media (max-width: 900px) {
  .timeline-container::before {
    left: 1rem;
  }
  
  .timeline-item.left,
  .timeline-item.right {
    flex-direction: column;
    padding-left: 3rem;
    padding-right: 0;
  }
  
  .timeline-dot {
    left: 1rem;
  }
  
  .timeline-item::after {
    left: 0.2rem;
    margin-top: 20px;
    font-size: 0.65rem;
    display: none;
  }
  
  .timeline-item .game-card::after {
    display: none;
  }
}
