/* ===== 黑料网娱乐热搜与吃瓜导航 - 核心样式 ===== */
:root {
  --primary: #FF4081;
  --secondary: #7C4DFF;
  --bg: #FFF8E1;
  --card: #FFFFFF;
  --accent: #FF6D00;
  --text: #212121;
  --text-light: #757575;
  --radius: 16px;
  --shadow: 0 4px 16px rgba(255, 64, 129, 0.15);
  --shadow-hover: 0 8px 32px rgba(255, 64, 129, 0.25);
  --gradient-hot: linear-gradient(135deg, #FF4081, #FF6D00);
  --gradient-purple: linear-gradient(135deg, #7C4DFF, #FF4081);
  --font-title: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* ===== 重置与基础 ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.8;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== 容器 ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== 头部导航 ===== */
.site-header {
  background: var(--card);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-hot);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--gradient-hot);
  color: #fff;
  -webkit-text-fill-color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 3px;
  background: var(--text);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* ===== 热搜滚动条 ===== */
.hot-ticker {
  background: var(--gradient-hot);
  color: #fff;
  padding: 8px 0;
  overflow: hidden;
  position: relative;
}

.ticker-wrap {
  display: flex;
  animation: ticker-scroll 30s linear infinite;
  white-space: nowrap;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 24px;
  font-size: 0.85rem;
  font-weight: 500;
}

.ticker-item .rank {
  background: rgba(255, 255, 255, 0.3);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
}

.ticker-item .hot-value {
  color: #FFD54F;
  font-size: 0.75rem;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== 首屏英雄区 ===== */
.hero-section {
  padding: 60px 20px;
  text-align: center;
  background: linear-gradient(180deg, var(--card) 0%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 64, 129, 0.05) 0%, transparent 50%);
  animation: hero-pulse 8s ease-in-out infinite;
}

@keyframes hero-pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
}

.hero-title {
  font-family: var(--font-title);
  font-size: 3rem;
  font-weight: 900;
  background: var(--gradient-hot);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 30px;
  position: relative;
  z-index: 1;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.hero-tag {
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.hero-tag:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* ===== 模块通用 ===== */
.section {
  padding: 50px 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.section-title {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title .icon {
  font-size: 1.8rem;
}

.section-more {
  font-size: 0.85rem;
  color: var(--primary);
  padding: 6px 16px;
  border: 1px solid var(--primary);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.section-more:hover {
  background: var(--primary);
  color: #fff;
}

/* ===== 热搜榜 ===== */
.hot-list {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hot-list-header {
  background: var(--gradient-hot);
  color: #fff;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hot-list-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.hot-item {
  display: flex;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.3s ease;
  gap: 14px;
}

.hot-item:hover {
  background: #FFF3E0;
}

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

.hot-rank {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: #BDBDBD;
  flex-shrink: 0;
}

.hot-rank.top1 { background: #FF4081; }
.hot-rank.top2 { background: #FF6D00; }
.hot-rank.top3 { background: #7C4DFF; }

.hot-title {
  flex: 1;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}

.hot-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.hot-value {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}

.hot-trend {
  font-size: 0.8rem;
}

.hot-trend.up { color: #F44336; }
.hot-trend.down { color: #4CAF50; }
.hot-trend.new { color: var(--primary); font-weight: 700; }

/* ===== 今日最大瓜 ===== */
.big-melon {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.big-melon::before {
  content: '🍉';
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 120px;
  opacity: 0.1;
}

.melon-badge {
  display: inline-block;
  background: var(--gradient-hot);
  color: #fff;
  padding: 4px 14px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.melon-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.4;
}

.melon-desc {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.8;
}

/* 吃瓜进度条 */
.progress-bar {
  margin: 20px 0;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.progress-steps::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 3px;
  background: #E0E0E0;
}

.progress-steps::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  width: 60%;
  height: 3px;
  background: var(--gradient-hot);
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.progress-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #E0E0E0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #fff;
}

.progress-dot.active {
  background: var(--primary);
  animation: dot-pulse 1.5s ease-in-out infinite;
}

.progress-dot.done {
  background: var(--secondary);
}

@keyframes dot-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.progress-label {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ===== 弹幕效果 ===== */
.danmaku-section {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: var(--radius);
  margin: 30px 0;
}

.danmaku-item {
  position: absolute;
  white-space: nowrap;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #fff;
  animation: danmaku-flow linear infinite;
  will-change: transform;
}

@keyframes danmaku-flow {
  0% { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* ===== 分类标签 ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.category-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.category-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.category-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 6px;
}

.category-count {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ===== 表情包网格 ===== */
.meme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.meme-card {
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.meme-card:hover {
  transform: scale(1.05) rotate(1deg);
}

.meme-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.meme-info {
  padding: 8px 12px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ===== 时间线 ===== */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 24px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg);
}

.timeline-date {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 6px;
}

.timeline-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== 卡片列表 ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.content-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.content-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 20px;
}

.card-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.tag-star { background: #FCE4EC; color: #E91E63; }
.tag-net { background: #E8EAF6; color: #3F51B5; }
.tag-corp { background: #E8F5E9; color: #4CAF50; }
.tag-social { background: #FFF3E0; color: #FF9800; }

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.card-excerpt {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 12px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-light);
}

/* ===== 周报模块 ===== */
.weekly-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.weekly-header {
  background: var(--gradient-purple);
  color: #fff;
  padding: 20px 24px;
}

.weekly-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.weekly-body {
  padding: 24px;
}

.weekly-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f5f5f5;
}

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

.weekly-num {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary);
  flex-shrink: 0;
}

/* ===== APP下载模块 ===== */
.app-banner {
  background: var(--gradient-purple);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 40px;
  color: #fff;
}

.app-info h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.app-info p {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 20px;
  line-height: 1.7;
}

.app-features {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}

.app-feature {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
}

.btn-download {
  display: inline-block;
  padding: 14px 36px;
  background: #fff;
  color: var(--secondary);
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-download:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  color: var(--primary);
}

/* ===== 页脚 ===== */
.site-footer {
  background: #1a1a2e;
  color: #ccc;
  padding: 50px 0 30px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: #aaa;
  font-size: 0.85rem;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid #333;
  font-size: 0.8rem;
  color: #666;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ===== 面包屑 ===== */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--text-light);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb span {
  margin: 0 8px;
  color: #ccc;
}

/* ===== 搜索框 ===== */
.search-box {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  background: var(--card);
  border-radius: 30px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.search-box input {
  flex: 1;
  border: none;
  padding: 14px 24px;
  font-size: 1rem;
  outline: none;
  background: transparent;
}

.search-box button {
  padding: 14px 28px;
  background: var(--gradient-hot);
  border: none;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.search-box button:hover {
  opacity: 0.9;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  padding: 18px 24px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-answer {
  padding: 0 24px 18px;
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* ===== 404页面 ===== */
.error-page {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.error-code {
  font-size: 8rem;
  font-weight: 900;
  background: var(--gradient-hot);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.error-text {
  font-size: 1.3rem;
  color: var(--text-light);
  margin: 20px 0 30px;
}

.btn-home {
  display: inline-block;
  padding: 14px 36px;
  background: var(--gradient-hot);
  color: #fff;
  border-radius: 30px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.btn-home:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-hover);
  color: #fff;
}

/* ===== 合规页面 ===== */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.legal-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 30px 0 12px;
  color: var(--text);
}

.legal-content p {
  margin-bottom: 16px;
  line-height: 1.9;
  color: var(--text-light);
}

.legal-content ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content li {
  margin-bottom: 8px;
  line-height: 1.8;
  color: var(--text-light);
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow);
  }

  .main-nav.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .meme-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .app-banner {
    flex-direction: column;
    padding: 30px 20px;
    text-align: center;
  }

  .app-features {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hot-item {
    padding: 12px 16px;
  }

  .container {
    padding: 0 16px;
  }

  .legal-content {
    padding: 24px 16px;
  }

  .progress-steps {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .danmaku-section {
    height: 150px;
  }
}

@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .meme-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-tags {
    gap: 6px;
  }

  .hero-tag {
    padding: 6px 14px;
    font-size: 0.8rem;
  }
}

/* ===== 火焰动画 ===== */
.fire-icon {
  display: inline-block;
  animation: fire-flicker 0.5s ease-in-out infinite alternate;
}

@keyframes fire-flicker {
  0% { transform: scale(1) rotate(-2deg); }
  100% { transform: scale(1.1) rotate(2deg); }
}

/* ===== 新瓜爆炸粒子 ===== */
.particle-burst {
  position: relative;
}

.particle-burst::after {
  content: '✨';
  position: absolute;
  top: -5px;
  right: -10px;
  font-size: 0.8rem;
  animation: particle-pop 1.5s ease-in-out infinite;
}

@keyframes particle-pop {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* ===== 表情包抖动 ===== */
.shake-hover:hover {
  animation: shake 0.3s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-3deg); }
  75% { transform: rotate(3deg); }
}

/* ===== 内页通用头部 ===== */
.page-header {
  background: var(--card);
  padding: 40px 0;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-title {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.page-desc {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 700px;
}
