/**
 * ============================================
 * 动态滑块式时间轴样式
 * ============================================
 */

.dynamic-timeline {
  padding: 20px 0;
  user-select: none;
}

/* 滑块容器 */
.timeline-slider-container {
  position: relative;
  padding: 40px 20px 20px;
}

/* 轨道 */
.timeline-track {
  position: relative;
  height: 4px;
  background: rgba(255, 138, 58, 0.15);
  border-radius: 2px;
  margin: 0 30px;
}

.timeline-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(255, 122, 0, 0.3) 0%,
    rgba(255, 145, 0, 0.6) 50%,
    rgba(255, 138, 58, 0.8) 100%
  );
  border-radius: 2px;
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, #FF7A00, #FF8A3A);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* 时间点 */
.timeline-points {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  pointer-events: none;
}

.timeline-point {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.timeline-point:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.timeline-point.active {
  z-index: 10;
}

.timeline-point.active .point-avatar {
  transform: scale(1.2);
  filter: drop-shadow(0 4px 12px rgba(255, 122, 0, 0.4));
}

.timeline-point.active .point-label {
  font-weight: 600;
  color: #FF7A00;
}

.point-avatar {
  width: 48px;
  height: 48px;
  transition: all 0.3s ease;
}

.point-avatar .egg-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.point-label {
  font-size: 12px;
  color: #666;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.point-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: linear-gradient(135deg, #FF7A00, #FF8A3A);
  color: white;
  font-size: 9px;
  padding: 2px 5px;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(255, 122, 0, 0.3);
}

/* 滑块输入 */
.timeline-slider {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  width: 100%;
  height: 40px;
  margin: 0;
  opacity: 0;
  cursor: grab;
  z-index: 20;
}

.timeline-slider:active {
  cursor: grabbing;
}

.timeline-slider::-webkit-slider-thumb {
  appearance: none;
  width: 60px;
  height: 60px;
  background: transparent;
  cursor: grab;
}

.timeline-slider::-moz-range-thumb {
  width: 60px;
  height: 60px;
  background: transparent;
  cursor: grab;
  border: none;
}

/* 信息面板 */
.timeline-info {
  margin-top: 20px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(255, 251, 245, 0.8), rgba(255, 248, 240, 0.6));
  border-radius: 16px;
  border: 1px solid rgba(255, 138, 58, 0.1);
}

.info-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.info-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.info-meta {
  display: flex;
  gap: 6px;
}

.tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: 500;
}

.tag-past {
  background: rgba(255, 122, 0, 0.1);
  color: #FF7A00;
}

.tag-present {
  background: rgba(76, 175, 80, 0.1);
  color: #4CAF50;
}

.tag-future {
  background: rgba(156, 39, 176, 0.1);
  color: #9C27B0;
}

/* 空状态 */
.timeline-empty {
  text-align: center;
  padding: 40px;
  color: #999;
  font-size: 14px;
}

/* 响应式 */
@media (max-width: 768px) {
  .timeline-slider-container {
    padding: 30px 10px 15px;
  }
  
  .timeline-track {
    margin: 0 20px;
  }
  
  .point-avatar {
    width: 40px;
    height: 40px;
  }
  
  .point-label {
    font-size: 10px;
  }
  
  .timeline-point.active .point-avatar {
    transform: scale(1.15);
  }
  
  .timeline-info {
    padding: 12px 16px;
  }
  
  .info-title {
    font-size: 14px;
  }
}

/* 动画 */
@keyframes pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.05);
  }
}

.timeline-point.active .point-avatar {
  animation: pulse 2s ease-in-out infinite;
}

/* 自定义滚动条 */
.timeline-slider-container::-webkit-scrollbar {
  display: none;
}
