/* ===== 成长足迹时间线 ===== */
.timeline {
  position: relative;
  z-index: 2;
  padding: 8rem 0;
  background: var(--bg);
  transition: background-color 0.4s ease;
}

.timeline__inscription {
  position: absolute;
  right: 1.5rem;
  top: 9rem;
}

.timeline__header {
  max-width: 800px;
  margin: 0 auto 4rem;
}

.timeline__header .section-label {
  margin-bottom: 1.5rem;
}

.timeline__header .section-heading {
  margin-bottom: 0.8rem;
}

.timeline__body {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.timeline__track {
  position: absolute;
  left: 11px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.timeline__line {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--accent), var(--primary));
  transform: scaleY(0);
  transform-origin: top;
}

.timeline__node {
  position: relative;
}

.timeline__dot {
  position: absolute;
  left: -3rem;
  top: 1.7rem;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline__dot::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--bg);
  transition: box-shadow 0.4s ease;
}

.timeline__dot--now::after {
  background: var(--accent);
  box-shadow:
    0 0 0 4px var(--bg),
    0 0 16px rgba(255, 184, 77, 0.7);
}

.timeline__card {
  padding: 1.6rem 1.8rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    background-color 0.4s ease,
    border-color 0.4s ease;
}

.timeline__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-pop);
}

.timeline__meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}

.timeline__date {
  font-family: var(--font-en);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent-deep);
}

[data-theme="dark"] .timeline__date {
  color: var(--accent);
}

.timeline__now-badge {
  padding: 0.1rem 0.5rem;
  font-family: var(--font-en);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-flame));
  border-radius: 100px;
}

.timeline__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 0.45rem;
}

.timeline__desc {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-2);
}

@media (max-width: 768px) {
  .timeline {
    padding: 5rem 0;
  }

  .timeline__body {
    padding-left: 2.2rem;
  }

  .timeline__track {
    left: 9px;
  }

  .timeline__dot {
    left: -2.2rem;
    width: 20px;
  }
}
