/* 2.1页面简化版点击式时间轴样式 */

.timeline-simple-container {
  position: relative;
  width: 80vw;
  height: 80vh;
  margin: 1rem auto;
  background: rgba(158, 209, 250, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 15px;
  box-sizing: border-box;
  z-index: 10;
}

.timeline-header {
  text-align: center;
  margin-bottom: 15px;
}

.timeline-header h3 {
  font-size: 1rem;
  color: white;
  margin: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 年份按钮 */
.timeline-buttons {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  gap: 5px;
}

.timeline-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  padding: 8px 5px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.timeline-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transform: translateY(-1px);
}

.timeline-btn.active {
  background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
  border-color: rgba(0, 212, 255, 0.5);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 212, 255, 0.3);
}

/* 数据展示区域 */
.timeline-display {
  display: flex;
  gap: 15px;
  height: 12s0px;
}

.timeline-data {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.data-year {
  font-size: 2rem;
  font-weight: bold;
  color: #00d4ff;
  text-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
  text-align: center;
  margin-bottom: 0px;
}

.data-power {
  text-align: center;
  margin-bottom: 0px;
}

.power-value {
  font-size: 1.8rem;
  font-weight: bold;
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.power-unit {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-left: 5px;
}

.data-milestone {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  line-height: 1.3;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 6px;
  padding: 8px;
}

/* 图表区域 */
.timeline-chart {
  flex: 1;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

#powerChart {
  width: 100%;
  height: 100%;
  max-width: 200px;
  max-height: 120px;
}

/* 动画效果 */
@keyframes data-update {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.6);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.3);
  }
}

.power-value.updating {
  animation: data-update 0.5s ease;
}

.data-year.updating {
  animation: data-update 0.5s ease;
}


@media (max-width: 480px) {
  .timeline-simple-container {
    width: 80vh;
    height: 80vw;
    padding: 20px;
  }
  
  .timeline-buttons {
    gap: 3px;
  }
  
  .timeline-btn {
    font-size: 0.6rem;
    padding: 5px 2px;
  }
  
  .timeline-display {
    flex-direction: row;
    height: 120px;
    gap: 8px;
  }
  
  .timeline-data,
  .timeline-chart {
    height: 120px;
  }
  
  .data-year {
    font-size: 1.2rem;
    margin-bottom: 5px;
  }
  
  .power-value {
    font-size: 1.1rem;
  }
  
  .data-milestone {
    font-size: 0.6rem;
    padding: 4px;
    line-height: 1.2;
  }
}