/*  ========================================
    发展进程板块（静态） - timeline.css
    参考：时间轴设计图（年份节点 + 圆点竖线 + 山峰背景）
    适配站点暗色主题（金 #DDAD52 / 浅米 #FFF8D4），独立于旧 CSS
    ======================================== */

.timelineBox {
  position: relative;
}

/* 外层容器：山体背景相对它固定，不随内容横向滚动 */
.tlWrap {
  position: relative;
  height: 470px;
}
/* 山体裁剪层：把山体超出父级板块的部分裁掉，不影响内部滚动容器 */
.tlMtnClip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

/* 时间轴舞台：横向滚动容器 */
.tlStage {
  position: relative;
  height: 470px;
  padding-top: 56px;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  user-select: none;
  -webkit-overflow-scrolling: touch;
}
.tlStage.grabbing { cursor: grabbing; }
/* 滚动条美化 */
.tlStage::-webkit-scrollbar { height: 8px; }
.tlStage::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.04); border-radius: 4px; }
.tlStage::-webkit-scrollbar-thumb { background: rgba(221, 173, 82, 0.45); border-radius: 4px; }
.tlStage::-webkit-scrollbar-thumb:hover { background: rgba(221, 173, 82, 0.75); }

/* 轨道：宽度由节点内容自动撑开，山体背景铺满，节点插在山上 */
.tlTrack {
  position: relative;
  display: flex;
  align-items: flex-start;
  width: max-content;
  min-width: 100%;
  height: 470px;
  padding: 0 30px;
  box-sizing: border-box;
}
/* 双层山体：绝对定位铺满轨道，分别做视差动画 */
.tlMtn {
  position: absolute;
  left: -10%;
  bottom: 0;
  width: 120%;
  height: 100%;
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: 100% auto;
  pointer-events: none;
}
.tlMtnFar {
  background-image: url('/images/timeline-mountain-far.svg');
  animation: tlMountainFar 18s ease-in-out infinite alternate;
}
.tlMtnNear {
  background-image: url('/images/timeline-mountain-near.svg');
  animation: tlMountainNear 12s ease-in-out infinite alternate,
             tlMtnGlow 6s ease-in-out infinite;
}
/* 视差：两层反向、不同速度缓慢漂移 */
@keyframes tlMountainFar {
  from { transform: translate3d(-1.6%, 6px, 0); }
  to   { transform: translate3d(1.6%, -6px, 0); }
}
@keyframes tlMountainNear {
  from { transform: translate3d(2.4%, -4px, 0); }
  to   { transform: translate3d(-2.4%, 8px, 0); }
}
/* 近山金色山脊的呼吸辉光（沿轮廓光晕明暗，山体本身不变亮） */
@keyframes tlMtnGlow {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(221, 173, 82, .10)); }
  50%      { filter: drop-shadow(0 0 11px rgba(221, 173, 82, .45)); }
}
/* 流光扫描层：一道柔光从山体上缓缓扫过 */
.tlSweep {
  position: absolute;
  left: -4%;
  bottom: 0;
  width: 108%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
  background: linear-gradient(100deg,
    transparent 40%,
    rgba(221, 173, 82, .05) 46%,
    rgba(255, 248, 212, .14) 50%,
    rgba(221, 173, 82, .05) 54%,
    transparent 60%);
  background-size: 240% 100%;
  animation: tlSweepMove 9s linear infinite;
}
@keyframes tlSweepMove {
  from { background-position: 130% 0; }
  to   { background-position: -40% 0; }
}

/* 单个节点：flex 流式排列，宽度由内容撑开；错落高度用 margin-top */
.tlItem {
  position: relative;
  flex: 0 0 auto;
  width: 152px;
  margin-right: 78px;
  color: var(--deputy-color);
  z-index: 2;
}
.tlItem:last-child { margin-right: 30px; }

/* 圆点 + 竖线：插在山峰上 */
.tlDot {
  position: absolute;
  left: 0;
  top: 3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--active-color);
  box-shadow: 0 0 0 4px rgba(221, 173, 82, 0.16);
}
/* 圆点脉冲光环 */
.tlDot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--active-color);
  animation: tlDotPulse 2.6s ease-out infinite;
}
@keyframes tlDotPulse {
  0%   { transform: scale(.8); opacity: .7; }
  80%  { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}
.tlStem {
  position: absolute;
  left: 4px;
  top: 12px;
  width: 1px;
  height: var(--stem, 120px);
  background: linear-gradient(180deg, var(--active-color) 0%, rgba(221, 173, 82, 0.12) 100%);
}
/* 沿竖线滑落的光点 */
.tlStem::after {
  content: '';
  position: absolute;
  left: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--deputy-color);
  box-shadow: 0 0 8px 2px rgba(221, 173, 82, .8);
  animation: tlStemFlow 3.4s ease-in-out infinite;
}
@keyframes tlStemFlow {
  0%   { top: 0; opacity: 0; }
  15%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
/* 各节点脉冲/流光错峰，避免整齐划一 */
.tlItem:nth-child(2) .tlDot::before, .tlItem:nth-child(2) .tlStem::after { animation-delay: -.4s; }
.tlItem:nth-child(3) .tlDot::before, .tlItem:nth-child(3) .tlStem::after { animation-delay: -1.1s; }
.tlItem:nth-child(4) .tlDot::before, .tlItem:nth-child(4) .tlStem::after { animation-delay: -1.8s; }
.tlItem:nth-child(5) .tlDot::before, .tlItem:nth-child(5) .tlStem::after { animation-delay: -.7s; }
.tlItem:nth-child(6) .tlDot::before, .tlItem:nth-child(6) .tlStem::after { animation-delay: -1.5s; }
.tlItem:nth-child(7) .tlDot::before, .tlItem:nth-child(7) .tlStem::after { animation-delay: -2.2s; }
.tlItem:nth-child(8) .tlDot::before, .tlItem:nth-child(8) .tlStem::after { animation-delay: -1.0s; }
.tlItem:nth-child(9) .tlDot::before, .tlItem:nth-child(9) .tlStem::after { animation-delay: -1.9s; }

/* 年份 + 说明 */
.tlYear {
  margin: 0 0 0 20px;
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  color: var(--active-color);
  letter-spacing: 0.5px;
}
.tlDesc {
  margin: 12px 0 0 20px;
  font-size: 12px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.78);
}
.tlDesc p {
  margin: 0;
}

/* ---------- 各节点错落高度（山体层已移出轨道，轨道内只有节点，从 nth-child(1) 起） ---------- */
.tlItem:nth-child(1) { margin-top: 6px;  --stem: 182px; }
.tlItem:nth-child(2) { margin-top: 92px; --stem: 116px; }
.tlItem:nth-child(3) { margin-top: 30px; --stem: 158px; }
.tlItem:nth-child(4) { margin-top: 78px; --stem: 130px; }
.tlItem:nth-child(5) { margin-top: 14px; --stem: 174px; }
.tlItem:nth-child(6) { margin-top: 66px; --stem: 142px; }
.tlItem:nth-child(7) { margin-top: 26px; --stem: 162px; }
.tlItem:nth-child(8) { margin-top: 84px; --stem: 124px; }
.tlItem:nth-child(9) { margin-top: 20px; --stem: 168px; }

/* ---------- 响应式 ---------- */
@media screen and (max-width: 1024px) {
  .tlWrap, .tlStage, .tlTrack { height: 430px; }
  .tlYear { font-size: 25px; }
  .tlDesc { font-size: 11.5px; }
  .tlItem { width: 128px; margin-right: 62px; }
  .tlItem:last-child { margin-right: 20px; }
}

/* 窄屏改为纵向时间轴，去掉绝对定位与山体 */
@media screen and (max-width: 768px) {
  .tlWrap { height: auto; }
  .tlStage {
    height: auto;
    padding-top: 0px;
    margin-top: 20px;
    padding-left: 26px;
    overflow: visible;
    cursor: default;
    user-select: auto;
  }
  .tlStage::-webkit-scrollbar { display: none; }
  .tlTrack {
    display: block;
    width: auto;
    height: auto;
    padding: 0;
    background: none;
  }
  .tlMtn, .tlSweep { display: none; }
  .tlDot::before, .tlStem::after { display: none; }
  .tlStage::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: linear-gradient(180deg, var(--active-color) 0%, rgba(221, 173, 82, 0.1) 100%);
  }
  .tlItem {
    position: relative;
    left: auto !important;
    top: auto !important;
    width: auto;
    margin: 0 0 34px !important;
  }
  .tlItem:last-child { margin: 0 !important; }
  .tlDot { left: -26px; top: 5px; }
  .tlStem { display: none; }
  .tlYear { margin-left: 0; font-size: 24px; }
  .tlDesc { margin-left: 0; font-size: 13px; }
}
