/* 产品章节导航：始终在 Hero 下方，滚动后顶栏下吸顶 */
.timeline-nav {
  position: sticky;
  top: var(--header-h, 90px);
  left: auto;
  right: auto;
  z-index: 90;
  width: 100%;
  pointer-events: auto;
}

.timeline-nav[hidden] {
  display: block !important;
}

.timeline-nav__bar {
  pointer-events: auto;
  background: #fff;
  border-bottom: 1px solid var(--line, #e8edf3);
  box-shadow: 0 2px 10px rgba(15, 52, 91, 0.04);
}

.timeline-nav__inner {
  width: min(100% - 40px, var(--container, 1280px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
}

.timeline-nav ol {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.timeline-nav ol::-webkit-scrollbar {
  display: none;
}

.timeline-nav ol::before {
  content: none;
  display: none;
}

.timeline-nav .node {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: auto;
  min-height: 0;
  height: 56px;
  padding: 0 16px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #333;
  font: inherit;
  transition: color 0.2s ease;
}

.timeline-nav .node.active {
  min-height: 0;
}

.timeline-nav .dot {
  display: none !important;
}

.timeline-nav .label {
  order: 0;
  position: relative;
  display: inline-block;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.2;
  padding: 0 0 2px;
  border-radius: 0;
  color: inherit;
  background: transparent;
  box-shadow: none;
  transition: color 0.2s ease;
}

.timeline-nav .label::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -17px;
  height: 2px;
  background: var(--accent, var(--primary, #d93751));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.timeline-nav .node:hover,
.timeline-nav .node.active {
  color: var(--accent, var(--primary, #d93751));
}

.timeline-nav .node:hover .label,
.timeline-nav .node.active .label {
  color: var(--accent, var(--primary, #d93751));
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0;
  padding: 0 0 2px;
  background: transparent;
  box-shadow: none;
}

.timeline-nav .node:hover .label::after,
.timeline-nav .node.active .label::after {
  transform: scaleX(1);
}

.timeline-nav__cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 18px;
  border-radius: 0.25rem;
  background: var(--accent, var(--primary, #d93751));
  color: #fff !important;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.timeline-nav__cta:hover {
  opacity: 0.92;
  color: #fff !important;
  box-shadow: 0 8px 16px hsl(351 79% 54% / 0.28);
}

@media (max-width: 960px) {
  .timeline-nav__inner {
    width: min(100% - 24px, var(--container, 1280px));
    min-height: 48px;
  }

  .timeline-nav .node {
    height: 48px;
    padding: 0 14px;
  }

  .timeline-nav .label {
    font-size: 14px;
  }

  .timeline-nav .label::after {
    bottom: -15px;
  }

  .timeline-nav__cta {
    height: 32px;
    padding: 0 12px;
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  .timeline-nav__cta {
    display: none;
  }
}
