/* ═══════════════════════════════════════
   ANIMATIONS · 动画与过渡
   ═══════════════════════════════════════ */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Card staggered reveal ── */
.news-card:nth-child(1) { transition-delay: 0.05s; }
.news-card:nth-child(2) { transition-delay: 0.1s; }
.news-card:nth-child(3) { transition-delay: 0.15s; }
.news-card:nth-child(4) { transition-delay: 0.2s; }
.news-card:nth-child(5) { transition-delay: 0.25s; }
.news-card:nth-child(6) { transition-delay: 0.3s; }
.news-card:nth-child(7) { transition-delay: 0.35s; }
.news-card:nth-child(8) { transition-delay: 0.4s; }
.news-card:nth-child(9) { transition-delay: 0.45s; }

/* ── Skeleton wave ── */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-bg-tertiary) 25%,
    var(--color-bg-secondary) 50%,
    var(--color-bg-tertiary) 75%
  );
  background-size: 200% 100%;
  animation: skeletonWave 1.5s ease-in-out infinite;
}

@keyframes skeletonWave {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Floating label ── */
@keyframes subtlePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.live-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  animation: subtlePulse 2s ease-in-out infinite;
}

/* ── Hover underline ── */
.hover-underline {
  position: relative;
}

.hover-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width var(--duration-normal) var(--ease-out-expo);
}

.hover-underline:hover::after {
  width: 100%;
}
