/* ============================================================
   HotTrends — 世界杯专题专属样式
   设计方向：足球场的激情 + 体育专题的视觉张力 + 紧迫感
   配色：足球场绿 + 金色 + 经典红，营造比赛日氛围
   ============================================================ */

/* --- 世界杯 CSS 变量 --- */
:root {
  --wc-gold: #f5c518;
  --wc-gold-light: #ffe066;
  --wc-gold-dark: #c9a200;
  --wc-green: #0d7a3e;
  --wc-green-light: #15a856;
  --wc-green-dark: #075c2e;
  --wc-field-gradient: linear-gradient(135deg, #0a5c28 0%, #0d7a3e 30%, #0a5c28 60%, #084d23 100%);
  --wc-card-bg: rgba(13, 122, 62, 0.08);
  --wc-card-border: rgba(245, 197, 24, 0.2);
  --wc-card-hover: rgba(245, 197, 24, 0.12);
  --wc-prediction-win: #22c55e;
  --wc-prediction-draw: #f59e0b;
  --wc-prediction-loss: #ef4444;
}

/* ============================================================
   世界杯专题横幅 (Banner)
   ============================================================ */
.worldcup-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--wc-field-gradient);
  border-bottom: 3px solid var(--wc-gold);
  animation: wcBannerPulse 4s ease-in-out infinite;
}

@keyframes wcBannerPulse {
  0%, 100% { box-shadow: 0 4px 30px rgba(245, 197, 24, 0.15); }
  50% { box-shadow: 0 4px 50px rgba(245, 197, 24, 0.3), 0 0 80px rgba(13, 122, 62, 0.15); }
}

/* 足球场条纹背景 */
.worldcup-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0px,
    transparent 100px,
    rgba(255, 255, 255, 0.02) 100px,
    rgba(255, 255, 255, 0.02) 200px
  );
  pointer-events: none;
  z-index: 1;
}

/* 足球纹理噪点 */
.worldcup-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

.worldcup-banner-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  text-align: center;
}

/* 世界杯奖杯图标 */
.wc-trophy-icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wc-trophy-icon svg {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 4px 12px rgba(245, 197, 24, 0.4));
  animation: wcTrophyFloat 3s ease-in-out infinite;
}

@keyframes wcTrophyFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.wc-banner-content {
  flex: 1;
}

.wc-special-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--wc-gold), var(--wc-gold-light), var(--wc-gold));
  background-size: 200% 200%;
  animation: wcShimmer 3s ease-in-out infinite;
  color: #1a1a1a;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: var(--space-md);
  box-shadow: 0 2px 15px rgba(245, 197, 24, 0.3);
}

@keyframes wcShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.wc-special-badge::before {
  content: '🏆';
  font-size: 16px;
}

.worldcup-banner h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--wc-gold-light);
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.worldcup-banner .wc-subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin-bottom: var(--space-lg);
}

.wc-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: linear-gradient(135deg, var(--wc-gold), var(--wc-gold-dark));
  color: #1a1a1a;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 12px 32px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 4px 20px rgba(245, 197, 24, 0.3);
  text-decoration: none;
}

.wc-cta-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 30px rgba(245, 197, 24, 0.5);
  color: #1a1a1a;
  text-decoration: none;
}

.wc-cta-btn::after {
  content: '→';
  transition: transform var(--transition-fast);
}

.wc-cta-btn:hover::after {
  transform: translateX(4px);
}

/* ============================================================
   世界杯专题区块 (Homepage Section)
   ============================================================ */
.worldcup-section {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg) var(--space-4xl);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.worldcup-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 专题头部 */
.wc-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--wc-gold), transparent) 1;
}

.wc-section-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.wc-section-title .wc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--wc-green), var(--wc-green-light));
  border-radius: 50%;
  font-size: 18px;
  box-shadow: 0 2px 12px rgba(13, 122, 62, 0.3);
}

.wc-section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, var(--wc-gold), var(--wc-gold-dark));
  border-radius: 2px;
}

/* ============================================================
   比赛卡片网格
   ============================================================ */
.wc-matches-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

/* 单场对阵卡 */
.wc-match-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
}

.wc-match-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, transparent 0%, var(--wc-gold) 50%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
  z-index: 1;
}

.wc-match-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(245, 197, 24, 0.3);
  border-color: rgba(245, 197, 24, 0.2);
  background: var(--wc-card-hover);
}

.wc-match-card:hover::before {
  opacity: 1;
}

/* 对阵卡头部 */
.wc-match-header {
  background: linear-gradient(90deg, var(--wc-green-dark), var(--wc-green), var(--wc-green-dark));
  padding: var(--space-sm) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.05em;
}

.wc-match-header .wc-match-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wc-match-status .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wc-gold);
  animation: liveBlink 1.5s ease-in-out infinite;
}

@keyframes liveBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.wc-match-status .live-dot.finished {
  background: var(--text-muted);
  animation: none;
}

/* 对阵卡主体 */
.wc-match-body {
  padding: var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

/* 球队 */
.wc-team {
  flex: 1;
  text-align: center;
}

.wc-team-flag {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: var(--bg-secondary);
  border: 2px solid var(--border-light);
  transition: all var(--transition-base);
}

.wc-match-card:hover .wc-team-flag {
  border-color: var(--wc-gold);
  box-shadow: 0 0 15px rgba(245, 197, 24, 0.2);
}

.wc-team-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.wc-team-name.wc-favorite {
  color: var(--wc-gold-light);
}

/* 比分 */
.wc-score {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wc-score-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  min-width: 36px;
  text-align: center;
}

.wc-score-sep {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--text-muted);
  line-height: 1;
}

/* 预测区域 */
.wc-prediction {
  padding: 0 var(--space-xl) var(--space-lg);
  border-top: 1px solid var(--border-color);
}

.wc-prediction-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wc-gold);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 6px;
}

.wc-prediction-label::before {
  content: '⚡';
}

.wc-prediction-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wc-pred-winner {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.wc-pred-winner .wc-pred-icon {
  font-size: 14px;
}

.wc-pred-score {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--wc-gold);
  background: rgba(245, 197, 24, 0.1);
  padding: 3px 10px;
  border-radius: 10px;
  border: 1px solid rgba(245, 197, 24, 0.2);
}

/* 分析摘要 */
.wc-match-analysis {
  padding: 0 var(--space-lg) var(--space-lg);
}

.wc-match-analysis p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   专题详细文章卡片
   ============================================================ */
.wc-feature-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(13, 122, 62, 0.06) 100%);
  border: 1px solid var(--wc-card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  transition: all var(--transition-base);
  cursor: pointer;
  margin-bottom: var(--space-xl);
}

.wc-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(245, 197, 24, 0.2);
  border-color: rgba(245, 197, 24, 0.3);
}

.wc-feature-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.wc-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.wc-feature-card:hover .wc-feature-image img {
  transform: scale(1.05);
}

.wc-feature-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, var(--bg-card) 100%);
  pointer-events: none;
}

.wc-feature-content {
  padding: var(--space-2xl) var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wc-feature-content h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  transition: color var(--transition-fast);
}

.wc-feature-card:hover .wc-feature-content h3 {
  color: var(--wc-gold);
}

.wc-feature-content p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wc-feature-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

/* ============================================================
   亮点数据面板
   ============================================================ */
.wc-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
}

.wc-stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.wc-stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--wc-green), var(--wc-gold));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.wc-stat-item:hover {
  transform: translateY(-3px);
  border-color: var(--wc-card-border);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.wc-stat-item:hover::before {
  opacity: 1;
}

.wc-stat-number {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--wc-gold);
  line-height: 1.2;
  margin-bottom: var(--space-xs);
}

.wc-stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ============================================================
   亮色主题适配
   ============================================================ */
:root.light-mode .worldcup-banner {
  background: linear-gradient(135deg, #0a4d23 0%, #0d7a3e 30%, #0a4d23 60%, #075c2e 100%);
}

:root.light-mode .wc-match-card {
  background: #ffffff;
  border-color: #e0ddd8;
}

:root.light-mode .wc-match-card:hover {
  background: #faf9f7;
  border-color: rgba(245, 197, 24, 0.3);
}

:root.light-mode .wc-feature-card {
  background: linear-gradient(135deg, #ffffff 0%, rgba(13, 122, 62, 0.04) 100%);
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
  .wc-matches-grid {
    grid-template-columns: 1fr;
  }
  .wc-feature-card {
    grid-template-columns: 1fr;
  }
  .wc-feature-image {
    aspect-ratio: 16 / 9;
  }
  .wc-feature-image::after {
    background: linear-gradient(180deg, transparent 60%, var(--bg-card) 100%);
  }
  .wc-stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .worldcup-banner-inner {
    flex-direction: column;
    padding: var(--space-xl) var(--space-md);
    gap: var(--space-lg);
  }
  .wc-trophy-icon {
    width: 56px;
    height: 56px;
  }
  .wc-trophy-icon svg {
    width: 48px;
    height: 48px;
  }
  .worldcup-banner h2 {
    font-size: 24px;
  }
  .wc-banner-content .wc-subtitle {
    font-size: 14px;
  }
  .wc-match-body {
    padding: var(--space-lg);
    gap: var(--space-md);
  }
  .wc-team-flag {
    width: 44px;
    height: 44px;
    font-size: 24px;
  }
  .wc-score-num {
    font-size: 28px;
    min-width: 28px;
  }
  .wc-section-title {
    font-size: 20px;
  }
  .wc-stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }
  .wc-stat-number {
    font-size: 22px;
  }
  .wc-feature-content {
    padding: var(--space-lg);
  }
  .wc-feature-content h3 {
    font-size: 18px;
  }
}

/* ============================================================
   小尺寸 CTA 按钮变体
   ============================================================ */
.wc-cta-btn.wc-cta-small {
  padding: 8px 24px;
  font-size: 13px;
}

.wc-cta-btn.wc-cta-tiny {
  padding: 6px 18px;
  font-size: 12px;
  letter-spacing: 0.03em;
}

/* ============================================================
   世界杯金色粒子动画
   ============================================================ */
.wc-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.wc-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--wc-gold);
  border-radius: 50%;
  opacity: 0;
  animation: wcParticleFloat 4s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(245, 197, 24, 0.6);
}

@keyframes wcParticleFloat {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.5);
  }
  20% {
    opacity: 0.8;
    transform: translateY(-20px) scale(1);
  }
  80% {
    opacity: 0.6;
    transform: translateY(-60px) scale(0.8);
  }
  100% {
    opacity: 0;
    transform: translateY(-80px) scale(0.3);
  }
}

/* 横幅动作容器 */
.wc-banner-actions {
  display: flex;
  justify-content: center;
}

/* ============================================================
   世界杯最新动态 (Latest News) 迷你区块
   ============================================================ */
.wc-latest-news {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg) var(--space-xl);
}

.wc-latest-inner {
  background: linear-gradient(135deg, rgba(13, 122, 62, 0.06) 0%, rgba(245, 197, 24, 0.04) 100%);
  border: 1px solid rgba(245, 197, 24, 0.2);
  border-left: 4px solid var(--wc-gold);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-2xl);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.wc-latest-inner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.wc-latest-inner:hover {
  border-color: rgba(245, 197, 24, 0.35);
  box-shadow: 0 8px 32px rgba(13, 122, 62, 0.1);
}

.wc-latest-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(245, 197, 24, 0.15);
}

.wc-latest-badge {
  font-size: 24px;
  animation: wcTrophyFloat 3s ease-in-out infinite;
  flex-shrink: 0;
}

.wc-latest-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--wc-green-dark);
  flex: 1;
  margin: 0;
}

.wc-latest-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.wc-latest-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition-fast);
  border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
}

.wc-latest-item:last-child {
  border-bottom: none;
}

.wc-latest-item:hover {
  color: var(--wc-gold-dark);
  padding-left: var(--space-sm);
}

.wc-latest-item:hover .wc-latest-text {
  color: var(--wc-green);
  text-decoration: underline;
}

.wc-latest-tag {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}

.wc-tag-gold {
  background: linear-gradient(135deg, var(--wc-gold), var(--wc-gold-light));
  color: #1a1a1a;
}

.wc-tag-green {
  background: linear-gradient(135deg, var(--wc-green), var(--wc-green-light));
  color: #ffffff;
}

.wc-latest-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

/* ============================================================
   减少动效模式
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .worldcup-banner {
    animation: none !important;
  }
  .wc-trophy-icon svg {
    animation: none !important;
  }
  .wc-special-badge {
    animation: none !important;
  }
  .wc-match-card:hover {
    transform: none;
  }
  .wc-stat-item:hover {
    transform: none;
  }
  .wc-particle {
    animation: none !important;
  }
  .wc-latest-badge {
    animation: none !important;
  }
  .wc-latest-item:hover {
    padding-left: 0;
  }
}
