:root {
  --bg-dark: #0f0c1b;
  --bg-cream: #fcf9f2;
  --primary: #ff3b6b;
  --secondary: #7b2cbf;
  --accent: #00e5ff;
  --text-main: #1a1a1a;
  --text-light: #666;
  --text-white: #f5f5f5;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 6px;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-main);
  background-color: var(--bg-cream);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: 70px; /* space for floating button */
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 12, 27, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-white);
  font-weight: bold;
  font-size: 1.2rem;
}
.brand img { height: 32px; width: auto; border-radius: 4px; }
.nav-links {
  display: none;
  gap: 20px;
  font-size: 0.9rem;
}
.nav-links a {
  color: rgba(255,255,255,0.7);
  transition: color 0.3s;
  position: relative;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }
.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--bg-dark);
  padding: 10px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: rgba(255,255,255,0.8);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #0f0c1b 0%, #2a1045 100%);
  color: var(--text-white);
  padding: 40px 20px 20px;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.hero-text { text-align: center; }
.hero h1 {
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 15px;
  background: linear-gradient(90deg, #ff3b6b, #00e5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 1rem;
  color: #b3b3b3;
  margin-bottom: 25px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.download-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}
.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s;
  color: #fff;
}
.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255,255,255,0.2);
}
.btn-android { background: linear-gradient(135deg, #00c853, #00e676); }
.btn-ios { background: linear-gradient(135deg, #2979ff, #00b0ff); }
.btn-web { background: linear-gradient(135deg, #ff3b6b, #ff6090); }
.btn-harmony { background: linear-gradient(135deg, #7b2cbf, #9d4edd); }

.hero-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  padding: 10px;
}
.hero-gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  transition: transform 0.3s;
  background: #1a1a1a;
}
.hero-gallery-item:hover { transform: scale(1.03); }
.hero-gallery-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

/* Marquee */
.marquee-wrap {
  background: rgba(255,255,255,0.05);
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  margin-top: 10px;
}
.marquee-content {
  display: inline-block;
  animation: marquee 20s linear infinite;
}
.marquee-content span {
  display: inline-block;
  padding: 0 20px;
  font-size: 0.9rem;
  font-weight: bold;
  background: linear-gradient(90deg, #ff3b6b, #00e5ff, #ff3b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: shine 3s linear infinite;
}
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes shine { to { background-position: 200% center; } }

/* Sections Common */
section { padding: 50px 20px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-title {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.section-desc {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 30px;
  font-size: 0.95rem;
}

/* Section: 每日大赛 */
.sec-daily { background: #f4fcf6; }
.daily-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.daily-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border: 1px solid #e0f2e9;
  display: flex;
  flex-direction: column;
}
.daily-card img { width: 100%; height: 200px; object-fit: cover; }
.daily-card-body { padding: 15px; }
.daily-card-body h3 { font-size: 1.1rem; margin-bottom: 8px; color: #0d6e3f; }
.daily-card-body p { font-size: 0.9rem; color: var(--text-light); }
.daily-list {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.daily-list h3 { margin-bottom: 15px; font-size: 1.2rem; color: #0d6e3f; }
.daily-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed #c8e6c9;
  font-size: 0.9rem;
}
.daily-list-item:last-child { border-bottom: none; }
.daily-list-item span:first-child { font-weight: 500; }
.daily-list-item span:last-child { color: var(--text-light); font-size: 0.8rem; }

/* Section: 网红吃瓜 */
.sec-gossip { background: #fff3f5; }
.gossip-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.gossip-left { display: flex; flex-direction: column; gap: 15px; }
.gossip-hero {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(255,59,107,0.2);
  position: relative;
}
.gossip-hero img { width: 100%; height: 260px; object-fit: cover; }
.gossip-hero-tag {
  position: absolute;
  top: 15px; left: 15px;
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
}
.gossip-qa {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.gossip-qa h3 { margin-bottom: 15px; color: #c2185b; font-size: 1.2rem; }
.qa-item { margin-bottom: 15px; }
.qa-item:last-child { margin-bottom: 0; }
.qa-q { font-weight: bold; font-size: 0.95rem; color: #880e4f; margin-bottom: 4px; }
.qa-a { font-size: 0.9rem; color: var(--text-light); }

/* Section: 51短剧 */
.sec-drama { background: #f9f5ff; }
.drama-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.drama-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(123,44,191,0.08);
  border: 1px solid #eaddff;
  display: flex;
  flex-direction: column;
}
.drama-card img { width: 100%; height: 220px; object-fit: cover; }
.drama-info { padding: 15px; flex: 1; display: flex; flex-direction: column; }
.drama-title { font-size: 1.1rem; font-weight: bold; color: var(--secondary); margin-bottom: 5px; }
.drama-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.drama-tag {
  background: #f3e8ff;
  color: #7b2cbf;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
}
.drama-desc { font-size: 0.9rem; color: var(--text-light); margin-bottom: 10px; flex: 1; }
.drama-date { font-size: 0.8rem; color: #999; text-align: right; }

/* Section: 黑红榜单 */
.sec-ranking { background: #1a1a1a; color: #fff; }
.sec-ranking .section-desc { color: #aaa; }
.rank-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.rank-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
}
.rank-visual img { width: 100%; max-height: 500px; object-fit: cover; opacity: 0.8; }
.rank-list {
  background: #262626;
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rank-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px;
  background: #333;
  border-radius: var(--radius-sm);
  transition: background 0.3s;
}
.rank-item:hover { background: #444; }
.rank-num {
  font-size: 1.2rem;
  font-weight: bold;
  color: #ff3b6b;
  width: 30px;
  text-align: center;
}
.rank-name { font-size: 0.95rem; flex: 1; }
.rank-score { font-size: 0.85rem; color: #00e5ff; }

/* Section: 反差大赛 */
.sec-contrast { background: #fffbeb; }
.contrast-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.contrast-item {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  border-left: 5px solid #f59e0b;
}
.contrast-item img { width: 100%; height: 180px; object-fit: cover; }
.contrast-item-body { padding: 15px; }
.contrast-item-body h3 { font-size: 1rem; margin-bottom: 5px; color: #b45309; }
.contrast-item-body p { font-size: 0.85rem; color: #78716c; }

/* Section: 51神评 */
.sec-comments { background: #f0f9ff; }
.comment-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}
.comment-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  display: flex;
  gap: 15px;
  align-items: flex-start;
}
.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #eee;
}
.comment-content { flex: 1; }
.comment-user { font-weight: bold; font-size: 0.9rem; color: #0369a1; margin-bottom: 4px; }
.comment-text { font-size: 0.9rem; color: #334155; }

/* Section: 未成年人保护 */
.sec-protection { background: #f0fdf4; }
.protect-box {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border: 1px solid #bbf7d0;
  max-width: 800px;
  margin: 0 auto;
}
.protect-box h3 { color: #166534; margin-bottom: 15px; text-align: center; font-size: 1.3rem; }
.protect-box p { font-size: 0.95rem; color: #4b5563; margin-bottom: 15px; text-align: center; }
.protect-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.protect-item {
  background: #dcfce7;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: #166534;
  display: flex;
  align-items: center;
  gap: 10px;
}
.protect-item::before {
  content: '✓';
  font-weight: bold;
  color: #15803d;
}

/* Section: 意见反馈 */
.sec-feedback { background: #fff7ed; }
.feedback-box {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border: 1px solid #fed7aa;
  max-width: 700px;
  margin: 0 auto;
}
.feedback-box h3 { color: #c2410c; margin-bottom: 15px; font-size: 1.2rem; }
.feedback-list { display: flex; flex-direction: column; gap: 12px; }
.feedback-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: #ffedd5;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: #9a3412;
}
.feedback-icon {
  width: 24px;
  height: 24px;
  background: #fdba74;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #fff;
  font-weight: bold;
}

/* Section: Download & Steps */
.sec-download-bottom {
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  color: #fff;
  text-align: center;
}
.sec-download-bottom .section-title { color: #fff; }
.sec-download-bottom .section-desc { color: #c7d2fe; }
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.step-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: left;
}
.step-num {
  display: inline-block;
  background: var(--accent);
  color: #000;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  text-align: center;
  line-height: 28px;
  font-weight: bold;
  margin-bottom: 10px;
}
.step-title { font-size: 1.1rem; font-weight: bold; margin-bottom: 5px; }
.step-desc { font-size: 0.9rem; color: #c7d2fe; }
.download-section-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }

/* Footer */
.site-footer {
  background: #111;
  color: #777;
  padding: 30px 20px;
  font-size: 0.8rem;
  text-align: center;
}
.footer-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links { color: #999; margin-bottom: 10px; }
.footer-links a { margin: 0 8px; color: #999; }
.footer-links a:hover { color: #ccc; }
.footer-copy { color: #666; }
.footer-copy a { color: #888; }
.time-stamp { font-size: 0.75rem; color: #555; margin-top: 10px; display: block; }

/* Floating Download */
.floating-download {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  background: linear-gradient(90deg, #ff3b6b, #7b2cbf);
  color: white;
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(255,59,107,0.4);
  text-decoration: none;
  transition: transform 0.2s;
}
.floating-download:hover { transform: translateX(-50%) scale(1.05); }
.floating-download img { height: 24px; border-radius: 4px; }

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-content {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 30px 20px;
  text-align: center;
  max-width: 400px;
  width: 100%;
}
.modal-content p { font-size: 0.95rem; margin-bottom: 20px; color: #333; }
.modal-content input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: var(--radius-sm);
  margin-bottom: 15px;
  font-size: 0.9rem;
  background: #f9f9f9;
  color: #666;
  text-align: center;
}
.modal-content button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
}
.modal-content button:hover { background: #e63560; }

/* Responsive */
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .mobile-menu-btn { display: none; }
  .hero { padding: 60px 20px 40px; }
  .hero h1 { font-size: 2.8rem; }
  .hero-inner { flex-direction: row; align-items: center; }
  .hero-text { text-align: left; flex: 1; margin-right: 20px; }
  .hero p { margin-left: 0; }
  .download-group { justify-content: flex-start; }
  .hero-gallery { flex: 1; grid-template-columns: repeat(2, 1fr); }
  .hero-gallery-item img { height: 200px; }
  .daily-grid { grid-template-columns: 1fr 1fr; }
  .gossip-container { grid-template-columns: 1fr 1fr; }
  .drama-grid { grid-template-columns: repeat(2, 1fr); }
  .rank-layout { grid-template-columns: 1fr 1.5fr; }
  .contrast-grid { grid-template-columns: 1fr 1fr; }
  .comment-grid { grid-template-columns: 1fr 1fr; }
  .protect-list { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .hero h1 { font-size: 3.2rem; }
  .daily-grid { grid-template-columns: repeat(3, 1fr); }
  .drama-grid { grid-template-columns: repeat(3, 1fr); }
  .contrast-grid { grid-template-columns: repeat(3, 1fr); }
  .comment-grid { grid-template-columns: repeat(3, 1fr); }
}