/* ============================================
   梗流 - 首页专属样式
   ============================================ */

/* ─── Hero Section (首屏) ─── */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  gap: 60px;
}

.hero-left {
  flex: 1;
  max-width: 560px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.8rem;
  font-weight: 700;
  color: var(--gray-100);
  line-height: 1.2;
  letter-spacing: 3px;
  margin-bottom: 20px;
}

.hero-title .hl {
  background: linear-gradient(135deg, var(--highlight-cyan) 0%, var(--highlight-pink) 50%, var(--highlight-yellow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradient-flow 4s ease infinite;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--gray-400);
  margin-bottom: 12px;
  line-height: 1.6;
}

.hero-guide {
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.7;
  border-left: 3px solid transparent;
  border-image: linear-gradient(to bottom, var(--highlight-cyan), var(--highlight-pink)) 1;
  padding-left: 16px;
  margin-top: 24px;
}

/* ─── Hero Timeline (右侧时间轴) ─── */
.hero-timeline {
  flex: 1;
  max-width: 500px;
  position: relative;
  height: 400px;
}

.timeline-canvas-wrap {
  width: 100%;
  height: 100%;
  position: relative;
}

.timeline-axis {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 90%;
  height: 2px;
  background: linear-gradient(90deg, rgba(0,229,255,0.15), var(--highlight-cyan), rgba(56,189,248,0.15));
  transform: translate(-50%, -50%);
}

.timeline-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--highlight-cyan), var(--highlight-pink));
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.5), 0 0 32px rgba(56, 189, 248, 0.2);
  cursor: pointer;
  transition: all var(--transition-fast) var(--ease-bounce);
  transform: translate(-50%, -50%);
}

.timeline-dot:hover {
  width: 20px;
  height: 20px;
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.8), 0 0 48px rgba(56, 189, 248, 0.4);
}

.timeline-dot .dot-tooltip {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(11,26,46,0.95);
  border: 1px solid rgba(0,229,255,0.3);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  color: var(--gray-200);
}

.timeline-dot:hover .dot-tooltip {
  opacity: 1;
}

.timeline-year-label {
  position: absolute;
  font-size: 0.7rem;
  color: var(--gray-500);
  transform: translateX(-50%);
  top: calc(50% + 20px);
}

/* ─── Data Dashboard Cards ─── */
.dashboard-section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.data-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.35s var(--ease-bounce);
  position: relative;
  overflow: hidden;
}

.data-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--highlight-cyan), var(--highlight-pink), var(--highlight-yellow));
  opacity: 0;
  transition: opacity 0.3s;
}

.data-card:hover::before {
  opacity: 1;
}

.data-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3), var(--shadow-glow-cyan);
  border-color: rgba(0, 229, 255, 0.25);
}

.data-card .card-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
  opacity: 0.9;
}

.data-card .card-value {
  font-family: var(--font-mono);
  font-size: 2.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--highlight-cyan), var(--highlight-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  line-height: 1;
}

.data-card .card-label {
  font-size: 0.9rem;
  color: var(--gray-400);
  line-height: 1.5;
}

/* 数据卡片糖果色变体 */
.data-card:nth-child(1) { border-top: 3px solid transparent; border-image: linear-gradient(90deg, var(--highlight-cyan), var(--emo-positive)) 1; }
.data-card:nth-child(2) { border-top: 3px solid transparent; border-image: linear-gradient(90deg, var(--highlight-pink), var(--emo-playful)) 1; }
.data-card:nth-child(3) { border-top: 3px solid transparent; border-image: linear-gradient(90deg, var(--highlight-yellow), var(--accent-orange)) 1; }
.data-card:nth-child(4) { border-top: 3px solid transparent; border-image: linear-gradient(90deg, var(--emo-empathy), var(--highlight-cyan)) 1; }

/* ─── Channel Entry Matrix ─── */
.channel-section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.channel-card {
  position: relative;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 24px;
  padding: 40px 36px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.45s var(--ease-bounce);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.channel-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 24px 64px rgba(0,0,0,0.4), var(--shadow-glow-pink);
  border-color: rgba(56, 189, 248, 0.25);
}

.channel-card .channel-bg {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-size: cover;
  background-position: center;
  transition: all 0.6s var(--ease-out);
}

.channel-card:hover .channel-bg {
  opacity: 0.1;
  transform: scale(1.08);
}

.channel-card .channel-content {
  position: relative;
  z-index: 1;
}

.channel-card .channel-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: linear-gradient(90deg, var(--highlight-cyan), var(--highlight-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.channel-card .channel-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gray-100);
  margin-bottom: 8px;
}

.channel-card .channel-slogan {
  font-size: 0.9rem;
  color: var(--gray-400);
  line-height: 1.5;
  margin-bottom: 16px;
}

.channel-card .channel-stats {
  display: flex;
  gap: 20px;
}

.channel-stat-item {
  font-size: 0.85rem;
}

.channel-stat-item .stat-num {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--highlight-cyan), var(--emo-positive));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.channel-stat-item .stat-label {
  color: var(--gray-500);
  font-size: 0.75rem;
}

/* ─── Word Cloud Section ─── */
.wordcloud-section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.wordcloud-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.wordcloud-filter {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--gray-300);
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s var(--ease-bounce);
  font-family: var(--font-body);
}

.wordcloud-filter:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--highlight-pink);
  color: var(--highlight-pink);
  transform: translateY(-2px);
}

.wordcloud-filter.active {
  background: rgba(0, 229, 255, 0.15);
  border-color: var(--highlight-cyan);
  color: var(--highlight-cyan);
  box-shadow: var(--shadow-glow-cyan);
}

.wordcloud-container {
  width: 100%;
  height: 500px;
  position: relative;
  margin: 0 auto;
}

.wordcloud-container canvas {
  cursor: pointer;
}

/* ─── Heatmap Section ─── */
.heatmap-section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

/* ─── Emotion Trend Section ─── */
.emotion-trend-section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.chart-container {
  width: 100%;
  height: 420px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 24px;
  margin-top: 24px;
}

/* ─── Scroll Down Indicator ─── */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  font-size: 0.75rem;
  color: var(--gray-500);
  letter-spacing: 2px;
}

.scroll-indicator .arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--gray-500);
  border-bottom: 2px solid var(--gray-500);
  transform: rotate(45deg);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ─── Responsive for Home ─── */
@media (max-width: 1024px) {
  .hero-content { flex-direction: column; gap: 40px; padding: 0 24px; }
  .hero-title { font-size: 2.4rem; }
  .hero-timeline { max-width: 100%; height: 300px; }
  .dashboard-cards { grid-template-columns: repeat(2, 1fr); }
  .channel-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 1.8rem; }
  .dashboard-cards { grid-template-columns: 1fr; }
  .hero-content { padding: 0 16px; }
}
