/* ========================================
   每日吃瓜 - 综艺弹幕风+多巴胺配色
   全网综艺节目深度资讯与点评社区
   ======================================== */

/* CSS Variables */
:root {
  --primary: #FF4081;
  --primary-dark: #E91E63;
  --secondary: #00E5FF;
  --secondary-dark: #00B8D4;
  --bg-warm: #FDF8F5;
  --card-white: #FFFFFF;
  --text-main: #424242;
  --text-light: #757575;
  --text-dark: #212121;
  --accent-gold: #FFD700;
  --accent-orange: #FF6D00;
  --accent-purple: #AA00FF;
  --border-light: #F0E8E4;
  --shadow-sm: 0 2px 8px rgba(255, 64, 129, 0.08);
  --shadow-md: 0 4px 16px rgba(255, 64, 129, 0.12);
  --shadow-lg: 0 8px 32px rgba(255, 64, 129, 0.16);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-main: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --font-title: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

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

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

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

ul, ol {
  list-style: none;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== Header ========== */
.site-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-purple) 100%);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(255, 64, 129, 0.3);
}

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

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo .logo-icon {
  width: 40px;
  height: 40px;
  background: var(--card-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.site-logo .logo-text {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  font-family: var(--font-title);
  letter-spacing: 1px;
}

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

.main-nav a {
  color: rgba(255, 255, 255, 0.9);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* ========== Hero Section ========== */
.hero-section {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #1a0030 0%, #2d0050 50%, #0d001a 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(255,64,129,0.2) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 60px 20px;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(255, 64, 129, 0.5);
  font-family: var(--font-title);
}

.hero-content .hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  line-height: 1.8;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 30px;
}

.hero-tags .tag {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--radius-xl);
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(255, 64, 129, 0.4);
  transition: var(--transition);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(255, 64, 129, 0.5);
  color: #fff;
}

/* ========== Danmu Scroll (弹幕滚动) ========== */
.danmu-bar {
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent-purple) 100%);
  padding: 10px 0;
  overflow: hidden;
  position: relative;
}

.danmu-track {
  display: flex;
  animation: danmuScroll 30s linear infinite;
  gap: 40px;
  white-space: nowrap;
}

.danmu-item {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  flex-shrink: 0;
}

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

/* ========== Section Common ========== */
.section {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  font-family: var(--font-title);
}

.section-header .section-desc {
  color: var(--text-light);
  font-size: 1rem;
}

.section-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  margin-top: 30px;
  padding: 10px 24px;
  border: 2px solid var(--primary);
  border-radius: var(--radius-xl);
  transition: var(--transition);
}

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

/* ========== Cards Grid ========== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: var(--card-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

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

.card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.card-badge.hot {
  background: var(--accent-orange);
}

.card-badge.new {
  background: var(--secondary-dark);
}

.card-body {
  padding: 20px;
}

.card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.5;
}

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

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

.card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--accent-gold);
}

/* ========== Review Cards ========== */
.review-card {
  background: var(--card-white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.review-card:hover {
  box-shadow: var(--shadow-md);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

.review-info .reviewer-name {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.review-info .review-date {
  font-size: 0.8rem;
  color: var(--text-light);
}

.review-content {
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 14px;
}

.review-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.review-footer .like-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.review-footer .like-btn:hover {
  color: var(--primary);
}

/* ========== Guest Section ========== */
.guest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.guest-card {
  text-align: center;
  padding: 24px 16px;
  background: var(--card-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.guest-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.guest-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 14px;
  overflow: hidden;
  border: 3px solid var(--primary);
}

.guest-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guest-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.guest-card .guest-show {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ========== CP Progress Bar ========== */
.cp-progress {
  background: var(--card-white);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.cp-names {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.cp-names span {
  font-weight: 600;
  color: var(--text-dark);
}

.cp-names .cp-heart {
  color: var(--primary);
  font-size: 1.2rem;
}

.progress-bar {
  height: 8px;
  background: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent-orange));
  border-radius: 4px;
  transition: width 1s ease;
}

.cp-votes {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ========== Timeline ========== */
.timeline {
  position: relative;
  padding-left: 30px;
}

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

.timeline-item {
  position: relative;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: var(--card-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

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

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

.timeline-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

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

/* ========== Gossip / Chigua Section ========== */
.gossip-section {
  background: linear-gradient(135deg, #FFF3E0 0%, #FDF8F5 100%);
}

.gossip-card {
  background: var(--card-white);
  border-radius: var(--radius-md);
  padding: 20px;
  border-left: 4px solid var(--accent-orange);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  margin-bottom: 16px;
}

.gossip-card:hover {
  box-shadow: var(--shadow-md);
  border-left-color: var(--primary);
}

.gossip-card .gossip-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--accent-orange));
  color: #fff;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.gossip-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.gossip-card p {
  color: var(--text-main);
  font-size: 0.9rem;
  line-height: 1.7;
}

.gossip-card .gossip-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ========== Page Header (Inner Pages) ========== */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-purple) 100%);
  padding: 60px 0 40px;
  text-align: center;
  color: #fff;
}

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

.page-header .page-desc {
  font-size: 1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
  font-size: 0.85rem;
  opacity: 0.8;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a:hover {
  color: #fff;
}

/* ========== Content Area ========== */
.content-area {
  padding: 40px 0;
}

.content-main {
  max-width: 800px;
  margin: 0 auto;
}

.content-main h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 30px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--primary);
}

.content-main h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 24px 0 10px;
}

.content-main p {
  margin-bottom: 16px;
  line-height: 1.9;
}

.content-main .highlight-box {
  background: linear-gradient(135deg, rgba(255,64,129,0.05), rgba(0,229,255,0.05));
  border: 1px solid rgba(255,64,129,0.2);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 20px 0;
}

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

.faq-item {
  background: var(--card-white);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.faq-question {
  padding: 16px 20px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.faq-question:hover {
  background: rgba(255, 64, 129, 0.03);
}

.faq-answer {
  padding: 0 20px 16px;
  color: var(--text-main);
  font-size: 0.9rem;
  line-height: 1.8;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ========== Footer ========== */
.site-footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 50px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

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

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  padding: 4px 0;
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
  margin: 0 8px;
}

/* ========== Search Page ========== */
.search-box {
  max-width: 600px;
  margin: 0 auto 30px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 16px 24px;
  padding-right: 50px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-xl);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
  font-family: var(--font-main);
}

.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 64, 129, 0.1);
}

.search-box button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition);
}

.search-box button:hover {
  background: var(--primary-dark);
}

.search-results {
  max-width: 800px;
  margin: 0 auto;
}

.search-result-item {
  padding: 20px;
  background: var(--card-white);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.search-result-item:hover {
  box-shadow: var(--shadow-sm);
}

.search-result-item h3 {
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 6px;
}

.search-result-item p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ========== 404 Page ========== */
.error-page {
  text-align: center;
  padding: 100px 20px;
}

.error-page .error-code {
  font-size: 8rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 20px;
}

.error-page h2 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.error-page p {
  color: var(--text-light);
  margin-bottom: 30px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  padding: 12px 28px;
  border-radius: var(--radius-xl);
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--primary);
  padding: 12px 28px;
  border-radius: var(--radius-xl);
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid var(--primary);
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* ========== APP Download Page ========== */
.app-showcase {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 40px 0;
}

.app-info {
  flex: 1;
}

.app-info h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.app-features {
  margin: 20px 0;
}

.app-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--text-main);
}

.app-features li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
}

.app-buttons {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

/* ========== Animations ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popIn {
  0% { transform: scale(0); opacity: 0; }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes starGlow {
  0%, 100% { text-shadow: 0 0 5px var(--accent-gold); }
  50% { text-shadow: 0 0 20px var(--accent-gold), 0 0 40px var(--accent-orange); }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.star-glow {
  animation: starGlow 2s ease infinite;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-purple) 100%);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
  }

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

  .mobile-menu-btn {
    display: block;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

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

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

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

  .app-showcase {
    flex-direction: column;
    text-align: center;
  }

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

  .section-header h2 {
    font-size: 1.4rem;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }
}

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

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

  .hero-tags {
    gap: 6px;
  }

  .hero-tags .tag {
    font-size: 0.75rem;
    padding: 4px 10px;
  }
}

/* ========== Utility Classes ========== */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
