/* ================================================
   首页专属样式
   ================================================ */

/* ===== 英雄横幅 ===== */
.hero-banner {
  padding: 70px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(245,197,24,0.12);
  border: 1px solid rgba(245,197,24,0.35);
  border-radius: 20px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 18px;
  color: #fff;
}

.title-highlight {
  background: linear-gradient(135deg, var(--accent-light), var(--accent), #ff9632);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
}

.hero-stat {
  text-align: center;
  padding: 0 24px;
}

.hero-stat:first-child { padding-left: 0; }

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== 水晶球 ===== */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.crystal-ball-wrap {
  position: relative;
  width: 340px;
  height: 380px;
}

.crystal-ball {
  width: 220px;
  height: 220px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cb-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%,
    rgba(255,255,255,0.4) 0%,
    rgba(200,150,255,0.3) 20%,
    rgba(108,61,232,0.6) 50%,
    rgba(50,0,100,0.9) 80%,
    rgba(20,0,50,1) 100%
  );
  box-shadow:
    0 0 60px rgba(108,61,232,0.8),
    0 0 120px rgba(108,61,232,0.4),
    inset 0 -10px 40px rgba(0,0,0,0.4),
    inset 10px 10px 30px rgba(255,255,255,0.15);
  position: relative;
  overflow: hidden;
  animation: cbFloat 4s ease-in-out infinite;
}

@keyframes cbFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.cb-glow {
  position: absolute;
  top: 15%; left: 20%;
  width: 35%; height: 30%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.6), transparent);
  border-radius: 50%;
  transform: rotate(-30deg);
}

.cb-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  filter: drop-shadow(0 0 20px rgba(200,150,255,1));
  animation: cbGlow 3s ease-in-out infinite alternate;
}

@keyframes cbGlow {
  0% { filter: drop-shadow(0 0 20px rgba(200,150,255,0.8)); }
  100% { filter: drop-shadow(0 0 40px rgba(245,197,24,1)) drop-shadow(0 0 60px rgba(108,61,232,0.8)); }
}

.cb-particles { position: absolute; inset: 0; }

.cb-particles span {
  position: absolute;
  width: 6px; height: 6px;
  background: rgba(245,197,24,0.8);
  border-radius: 50%;
  animation: particle 3s ease-in-out infinite;
}

.cb-particles span:nth-child(1) { top: 20%; left: 60%; animation-delay: 0s; }
.cb-particles span:nth-child(2) { top: 60%; left: 15%; animation-delay: 0.5s; width: 4px; height: 4px; }
.cb-particles span:nth-child(3) { top: 75%; left: 70%; animation-delay: 1s; background: rgba(200,150,255,0.8); }
.cb-particles span:nth-child(4) { top: 35%; left: 80%; animation-delay: 1.5s; width: 5px; height: 5px; }
.cb-particles span:nth-child(5) { top: 15%; left: 30%; animation-delay: 2s; width: 4px; height: 4px; }
.cb-particles span:nth-child(6) { top: 80%; left: 40%; animation-delay: 2.5s; background: rgba(100,200,255,0.8); }

@keyframes particle {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.5); opacity: 1; }
}

.cb-base {
  width: 120px;
  height: 18px;
  margin: 10px auto 0;
  background: linear-gradient(180deg, rgba(108,61,232,0.6), transparent);
  border-radius: 50%;
  filter: blur(8px);
}

/* 浮动预测卡片 */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(20,15,50,0.9);
  border: 1px solid rgba(108,61,232,0.5);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  font-size: 13px;
  z-index: 3;
  animation: floatCard 5s ease-in-out infinite;
}

.float-card > span { font-size: 22px; }

.fc-title { color: var(--text-primary); font-weight: 600; font-size: 12px; }
.fc-stat { color: var(--accent); font-size: 11px; margin-top: 2px; }

.fc1 { top: 5%; left: -10%; animation-delay: 0s; }
.fc2 { bottom: 20%; right: -10%; animation-delay: 1.5s; }
.fc3 { bottom: 5%; left: 5%; animation-delay: 3s; }

@keyframes floatCard {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

/* ===== 分类导航 ===== */
.cat-nav-section {
  padding: 0 0 50px;
}

.cat-nav-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 12px;
}

.cat-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: var(--transition);
}

.cat-nav-item:hover { transform: translateY(-4px); }

.cat-icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  transition: var(--transition);
}

.cat-nav-item:hover .cat-icon {
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  transform: scale(1.05);
}

.cat-nav-item span {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
}

/* ===== 排行榜 ===== */
.leaderboard-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.leaderboard-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
}

.lb-tab {
  padding: 14px 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.lb-tab.active { color: var(--primary-light); }

.lb-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: var(--primary-light);
  border-radius: 2px;
}

.leaderboard-list { padding: 10px 0; }

.lb-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px;
  transition: var(--transition);
}

.lb-item:hover { background: rgba(108,61,232,0.08); }

.lb-rank {
  width: 28px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
  color: var(--text-muted);
}

.lb-avatar {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.lb-info { flex: 1; }

.lb-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.lb-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.lb-score {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

/* ===== CTA区域 ===== */
.cta-section {
  padding: 20px 0 60px;
}

.cta-box {
  background: linear-gradient(135deg, rgba(108,61,232,0.25), rgba(75,0,130,0.3));
  border: 1px solid rgba(108,61,232,0.5);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.orb1 {
  width: 300px; height: 300px;
  background: rgba(108,61,232,0.3);
  top: -100px; left: -100px;
}

.orb2 {
  width: 200px; height: 200px;
  background: rgba(245,197,24,0.15);
  bottom: -50px; right: -50px;
}

.cta-content { position: relative; z-index: 1; }

.cta-icon { font-size: 56px; margin-bottom: 16px; }

.cta-title {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.cta-desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-right { display: none; }
  .hero-title { font-size: 40px; }
  .cat-nav-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 768px) {
  .hero-title { font-size: 32px; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .hero-stat-divider { display: none; }
  .cat-nav-grid { grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .cat-icon { width: 42px; height: 42px; font-size: 20px; }
  .cta-box { padding: 40px 20px; }
  .cta-title { font-size: 24px; }
  .leaderboard-tabs { overflow-x: auto; }
}
