.timeline-section {
  position: relative;
  overflow: hidden;
  padding: 82px 0;
  border-bottom: 1px solid var(--line);
}
.timeline-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 34%, rgba(255,101,72,.08), transparent 24rem),
    radial-gradient(circle at 82% 70%, rgba(93,75,208,.10), transparent 28rem);
}
.timeline-heading,
.timeline-shell { position: relative; z-index: 1; }
.timeline-intro {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--ink-2);
  line-height: 1.8;
}
.timeline-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,253,249,.72);
  box-shadow: 0 24px 70px rgba(74,55,145,.1);
  backdrop-filter: blur(16px);
}
.timeline-toolbar {
  min-height: 62px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .78rem;
}
.timeline-toolbar > span:last-child { text-align: right; }
.timeline-toolbar button {
  min-height: 36px;
  border: 1px solid rgba(93,75,208,.24);
  border-radius: 99px;
  padding: 0 16px;
  color: #5d4bd0;
  background: #f2edff;
  font: 800 .78rem/1 var(--sans);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.timeline-toolbar button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(93,75,208,.16);
}
.legend-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
}
.legend-dot--history { background: #ff6548; }
.legend-dot--current { background: #5d4bd0; }
.timeline-scroll {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(93,75,208,.3) transparent;
  overscroll-behavior-inline: contain;
  cursor: grab;
}
.timeline-scroll:active { cursor: grabbing; }
.timeline-scroll:focus-visible { outline: 2px solid #5d4bd0; outline-offset: -2px; }
.timeline-track {
  position: relative;
  width: max-content;
  min-width: 100%;
  height: 330px;
  display: flex;
  align-items: center;
  gap: 58px;
  padding: 0 110px;
}
.timeline-axis {
  position: absolute;
  left: 74px;
  right: 74px;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg,#ff8066 0%,#ff6548 25%,#8d76e5 48%,#5d4bd0 100%);
  box-shadow: 0 0 22px rgba(93,75,208,.22);
}
.timeline-axis::after {
  content: "";
  position: absolute;
  inset: -4px 0;
  background: repeating-linear-gradient(90deg,transparent 0 86px,rgba(255,255,255,.78) 86px 88px);
}
.timeline-node {
  position: relative;
  z-index: 2;
  flex: 0 0 92px;
  width: 92px;
  height: 30px;
  margin: 0;
  border: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  cursor: pointer;
  scroll-snap-align: center;
}
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 15px;
  height: 15px;
  border: 4px solid #fffdf9;
  border-radius: 50%;
  transform: translate(-50%,-50%);
  background: #5d4bd0;
  box-shadow: 0 0 0 1px rgba(93,75,208,.28),0 0 0 0 rgba(93,75,208,.20);
  transition: width .24s ease,height .24s ease,box-shadow .24s ease,background .24s ease;
}
.timeline-node--history .timeline-dot { background: #ff6548; }
.timeline-node--origin .timeline-dot {
  width: 25px;
  height: 25px;
  background: linear-gradient(135deg,#ff6548,#5d4bd0);
  box-shadow: 0 0 0 8px rgba(93,75,208,.10),0 0 28px rgba(255,101,72,.45);
}
.timeline-node-label {
  position: absolute;
  left: 50%;
  width: 130px;
  display: grid;
  gap: 5px;
  transform: translateX(-50%);
  text-align: center;
  transition: transform .24s ease,color .24s ease;
}
.timeline-node:nth-of-type(even) .timeline-node-label { top: 42px; }
.timeline-node:nth-of-type(odd) .timeline-node-label { bottom: 42px; }
.timeline-node-label b {
  font-family: var(--serif);
  font-size: 1rem;
}
.timeline-node-label small {
  color: var(--muted);
  font-size: .7rem;
  letter-spacing: .08em;
}
.timeline-node--origin .timeline-node-label b {
  color: #5d4bd0;
  font-size: 1.16rem;
}
.timeline-node--origin .timeline-node-label::after {
  content: "网站上线";
  justify-self: center;
  margin-top: 3px;
  border-radius: 99px;
  padding: 3px 8px;
  color: #fff;
  background: linear-gradient(135deg,#ff6548,#5d4bd0);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .08em;
}
.timeline-node:hover .timeline-node-label,
.timeline-node:focus-visible .timeline-node-label,
.timeline-node.is-active .timeline-node-label {
  color: #5d4bd0;
  transform: translateX(-50%) scale(1.08);
}
.timeline-node:hover .timeline-dot,
.timeline-node:focus-visible .timeline-dot,
.timeline-node.is-active .timeline-dot {
  width: 25px;
  height: 25px;
  box-shadow: 0 0 0 9px rgba(93,75,208,.12),0 0 30px rgba(93,75,208,.35);
}
.timeline-node--history:hover .timeline-dot,
.timeline-node--history:focus-visible .timeline-dot,
.timeline-node--history.is-active .timeline-dot {
  box-shadow: 0 0 0 9px rgba(255,101,72,.12),0 0 30px rgba(255,101,72,.32);
}
.timeline-node:focus-visible { outline: none; }
.timeline-hint {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 0 22px 16px;
  color: var(--muted);
  font-size: .7rem;
}
.timeline-detail {
  position: relative;
  display: grid;
  grid-template-columns: 190px 1fr auto;
  gap: 30px;
  align-items: center;
  min-height: 218px;
  margin: 0 20px 20px;
  border: 1px solid rgba(93,75,208,.14);
  border-radius: 22px;
  padding: 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at 98% 0%,rgba(93,75,208,.12),transparent 18rem),
    linear-gradient(135deg,#fffaf2,#f3efff);
}
.timeline-detail::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(#ff6548,#5d4bd0);
}
.timeline-detail.is-changing .timeline-detail-copy,
.timeline-detail.is-changing .timeline-detail-meta,
.timeline-detail.is-changing .timeline-read { animation: timelineReveal .42s cubic-bezier(.2,.7,.2,1); }
@keyframes timelineReveal {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.timeline-detail-meta { display: grid; gap: 8px; align-content: center; }
.timeline-detail-meta span {
  width: fit-content;
  border-radius: 99px;
  padding: 4px 9px;
  color: #ff6548;
  background: #fff0e8;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
}
.timeline-detail-meta b {
  font-family: var(--serif);
  color: #5d4bd0;
  font-size: 1.8rem;
}
.timeline-detail-meta time {
  color: var(--muted);
  font-size: .78rem;
}
.timeline-detail-copy h3 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem,2.6vw,2.25rem);
  line-height: 1.28;
}
.timeline-detail-copy p {
  max-width: 760px;
  margin: 0;
  color: var(--ink-2);
  line-height: 1.8;
}
.timeline-read {
  min-width: 126px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 99px;
  padding: 0 18px;
  color: #fff;
  background: linear-gradient(135deg,#ff6548,#5d4bd0);
  font-size: .84rem;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(93,75,208,.2);
  transition: transform .2s ease,box-shadow .2s ease;
}
.timeline-read:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(93,75,208,.27); }
@media (max-width: 760px) {
  .timeline-section { padding: 58px 0; }
  .timeline-heading { gap: 10px; }
  .timeline-intro { font-size: .92rem; }
  .timeline-shell { border-radius: 20px; }
  .timeline-toolbar { grid-template-columns: 1fr auto; padding: 12px 14px; }
  .timeline-toolbar > span:last-child { display: none; }
  .timeline-track { height: 280px; gap: 38px; padding: 0 70px; }
  .timeline-axis { left: 45px; right: 45px; }
  .timeline-node { flex-basis: 78px; width: 78px; }
  .timeline-node-label { width: 102px; }
  .timeline-hint { padding: 0 14px 14px; }
  .timeline-hint span:first-child { max-width: 50%; }
  .timeline-detail {
    grid-template-columns: 1fr;
    gap: 18px;
    margin: 0 12px 12px;
    padding: 24px 22px;
  }
  .timeline-detail-meta { grid-template-columns: auto auto 1fr; align-items: center; }
  .timeline-detail-meta b { font-size: 1.25rem; }
  .timeline-detail-meta time { text-align: right; }
  .timeline-detail-copy h3 { font-size: 1.45rem; word-break: normal; }
  .timeline-read { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .timeline-scroll { scroll-behavior: auto; }
  .timeline-node *,.timeline-read,.timeline-toolbar button { transition: none!important; }
  .timeline-detail.is-changing * { animation: none!important; }
}