/* ============================================================
   live-hub.css — 实时动态信息中心
   深色渐变背景、毛玻璃公告栏、滚动动画、发光效果
   ============================================================ */

/* ----------------------------------------------------------
   Section 容器 — 深色渐变背景
   ---------------------------------------------------------- */
.live-hub {
  background: linear-gradient(135deg, #0F172A 0%, #111111 40%, #0F172A 100%);
  padding: 80px var(--space-6);
  position: relative;
  overflow: hidden;
}

/* 背景装饰 — 微妙的光晕 */
.live-hub::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.live-hub::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* ----------------------------------------------------------
   标题区域
   ---------------------------------------------------------- */
.live-hub-header {
  text-align: center;
  margin-bottom: var(--space-12);
  position: relative;
  z-index: 1;
}

.live-hub-header .section-subtitle {
  color: var(--color-champagne-gold);
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.live-hub-header h2 {
  color: var(--color-pure-white);
  margin-bottom: var(--space-4);
}

.live-hub-header p {
  color: var(--color-platinum-gray);
  font-size: var(--text-md);
  max-width: 560px;
  margin: 0 auto;
}

/* 标题旁的"直播"呼吸灯 */
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-4);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: livePulse 2s ease-in-out infinite;
  position: relative;
}

.live-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(34, 197, 94, 0.3);
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.live-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: #22c55e;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

/* ----------------------------------------------------------
   毛玻璃公告栏 — Ticker
   ---------------------------------------------------------- */
.live-hub-ticker {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  height: 300px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

/* 顶部渐隐遮罩 */
.live-hub-ticker::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.95),
    transparent
  );
  z-index: 2;
  pointer-events: none;
}

/* 底部渐隐遮罩 */
.live-hub-ticker::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.95),
    transparent
  );
  z-index: 2;
  pointer-events: none;
}

/* ----------------------------------------------------------
   滚动轨道 — 无限滚动动画
   ---------------------------------------------------------- */
.ticker-track {
  animation: tickerScroll 30s linear infinite;
  animation-play-state: paused;
  padding: var(--space-6);
}

.ticker-track.is-running {
  animation-play-state: running;
}

@keyframes tickerScroll {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

/* 悬停暂停 */
.live-hub-ticker:hover .ticker-track {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track.is-running {
    animation-play-state: paused;
  }
}

/* ----------------------------------------------------------
   通知条目
   ---------------------------------------------------------- */
.notification-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background var(--transition-base);
}

.notification-item:hover {
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
}

.notification-item:last-child {
  border-bottom: none;
}

/* 时间戳 */
.notification-time {
  flex-shrink: 0;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-platinum-gray);
  min-width: 50px;
  font-family: var(--font-en);
  letter-spacing: var(--tracking-tight);
  padding-top: 2px;
}

/* 通知内容 */
.notification-content {
  flex: 1;
}

.notification-text {
  font-size: var(--text-md);
  color: var(--color-white-60);
  line-height: var(--leading-normal);
}

.notification-text strong {
  color: var(--color-pure-white);
  font-weight: var(--weight-medium);
}

/* 绿色脉冲圆点指示器 */
.notification-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  margin-top: 7px;
  animation: livePulse 2s ease-in-out infinite;
}

.notification-text .highlight {
  color: var(--color-champagne-gold);
  font-weight: var(--weight-medium);
}

/* 通知类型图标 */
.notification-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
}

.notification-icon.success {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.notification-icon.info {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.notification-icon.gold {
  background: var(--color-gold-light);
  color: var(--color-champagne-gold);
}

/* ----------------------------------------------------------
   发光动画 — 金色脉冲
   ---------------------------------------------------------- */
.glow-effect {
  position: relative;
}

.glow-effect::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.1),
    transparent 40%,
    transparent 60%,
    rgba(212, 175, 55, 0.1)
  );
  animation: glowRotate 6s linear infinite;
  z-index: -1;
  filter: blur(8px);
}

@keyframes glowRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 替代方案：边框发光 */
@keyframes borderGlow {
  0%, 100% {
    border-color: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0);
  }
  50% {
    border-color: rgba(212, 175, 55, 0.25);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.05);
  }
}

.live-hub-ticker.glow {
  animation: borderGlow 4s ease-in-out infinite;
}

/* ----------------------------------------------------------
   统计数据栏（可选）
   ---------------------------------------------------------- */
.live-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-12);
  margin-top: var(--space-12);
  position: relative;
  z-index: 1;
}

.live-stat-item {
  text-align: center;
}

.live-stat-number {
  font-family: var(--font-en);
  font-size: 2.5rem;
  font-weight: var(--weight-bold);
  color: var(--color-champagne-gold);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.live-stat-label {
  font-size: var(--text-base);
  color: var(--color-platinum-gray);
}

/* ----------------------------------------------------------
   响应式
   ---------------------------------------------------------- */
@media (max-width: 768px) {
  .live-hub {
    padding: var(--space-16) var(--space-5);
  }

  .live-hub-ticker {
    height: 250px;
    border-radius: var(--radius-lg);
  }

  .notification-item {
    gap: var(--space-3);
  }

  .notification-time {
    min-width: 40px;
    font-size: 0.7rem;
  }

  .live-stats {
    gap: var(--space-8);
    flex-wrap: wrap;
  }

  .live-stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .live-hub {
    padding: var(--space-12) var(--space-4);
  }

  .live-hub-ticker {
    height: 220px;
  }

  .live-stats {
    gap: var(--space-6);
  }

  .live-stat-number {
    font-size: 1.75rem;
  }
}
