/* 世界意志 · AI 工作轨迹滚动条（首页 / 可视化页 header 下） */
.world-will {
  --ww-h: 36px;
  position: sticky;
  top: 0;
  z-index: 1090;
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: var(--ww-h);
  background: linear-gradient(180deg, #f4f7fb 0%, #eef3f9 100%);
  border-bottom: 1px solid rgba(15, 40, 80, 0.08);
  color: #111;
  font-size: 13px;
  line-height: 1.2;
  overflow: hidden;
}

.world-will__label {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  background: #0f2748;
  color: #fff;
  font-weight: 650;
  letter-spacing: 0.04em;
  white-space: nowrap;
  z-index: 1;
}

.world-will__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3ddc97;
  box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.55);
  animation: world-will-pulse 1.8s ease-out infinite;
}

@keyframes world-will-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(61, 220, 151, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(61, 220, 151, 0);
  }
}

.world-will__track {
  flex: 1 1 auto;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent);
}

.world-will__rail {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  min-height: var(--ww-h);
  padding: 0 20px;
  animation: world-will-scroll 48s linear infinite;
}

.world-will:hover .world-will__rail {
  animation-play-state: paused;
}

@keyframes world-will-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.world-will__item {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: #1a1a1a;
  text-decoration: none;
  white-space: nowrap;
}

.world-will__item:hover {
  color: #0b5fff;
}

.world-will__ts {
  font-variant-numeric: tabular-nums;
  color: #5a6b80;
  font-weight: 600;
}

.world-will__text {
  max-width: min(520px, 70vw);
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (prefers-reduced-motion: reduce) {
  .world-will__dot {
    animation: none;
  }
  .world-will__rail {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    gap: 10px 18px;
    padding: 8px 14px;
  }
  .world-will__item {
    white-space: normal;
  }
  .world-will__track {
    mask-image: none;
    -webkit-mask-image: none;
  }
}

@media (max-width: 640px) {
  .world-will {
    --ww-h: 34px;
    font-size: 12px;
  }
  .world-will__label {
    padding: 0 10px;
    font-size: 12px;
  }
}
