:root {
  --bg-dark: #0a0a10;
  --panel-dark: #14141f;
  --text-main: #f0f0f5;
  --text-muted: #a0a0b0;
  --accent: #ff3366;
  --gradient-main: linear-gradient(90deg, #ff3366, #ff9933, #33ccff, #ff3366);
  --border-radius: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; object-fit: cover; }
ul { list-style: none; }

/* Header */
.header {
  position: relative;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(20, 20, 31, 0.8);
  backdrop-filter: blur(10px);
  z-index: 100;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 32px; border-radius: 6px; }
.brand-name { font-size: 1.2rem; font-weight: bold; }
.nav { display: none; gap: 20px; }
.nav a { font-size: 0.95rem; color: var(--text-muted); transition: color 0.3s; }
.nav a:hover { color: var(--accent); }
.mobile-menu-btn { display: block; background: none; border: none; color: var(--text-main); font-size: 1.5rem; cursor: pointer; }
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--panel-dark);
  position: absolute;
  top: 100%; left: 0; width: 100%;
  padding: 10px 20px;
  border-bottom: 1px solid #333;
}
.mobile-nav.active { display: flex; }
.mobile-nav a { padding: 10px 0; border-bottom: 1px solid #222; color: var(--text-main); }
.mobile-nav a:last-child { border-bottom: none; }

/* Hero */
.hero {
  padding: 40px 20px;
  background: radial-gradient(circle at top right, #1f1f33, var(--bg-dark));
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.hero-content { text-align: center; }
.hero h1 {
  font-size: 2rem;
  margin-bottom: 15px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: gradientText 4s linear infinite;
}
@keyframes gradientText { to { background-position: -200% center; } }
.hero p { font-size: 1rem; color: var(--text-muted); margin-bottom: 20px; }
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.btn {
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: bold;
  color: #fff;
  background: var(--panel-dark);
  border: 1px solid #333;
  transition: all 0.3s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); border-color: var(--accent); background: #1f1f2e; }
.btn-primary {
  background: linear-gradient(135deg, #ff3366, #ff6633);
  border: none;
}
.btn-primary:hover { opacity: 0.9; }
.hero-img-wrap {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}
.hero-img-wrap::-webkit-scrollbar { display: none; }
.hero-img-item {
  flex: 0 0 80%;
  max-width: 300px;
  scroll-snap-align: center;
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}
.hero-img-item img { width: 100%; height: 400px; object-fit: cover; }

/* Marquee */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  background: #000;
  padding: 10px 0;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
}
.marquee-content {
  display: inline-block;
  animation: scroll 20s linear infinite;
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
}
.marquee-content span {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-right: 30px;
}
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* Sections */
section { padding: 40px 20px; }
.section-title { font-size: 1.5rem; margin-bottom: 20px; text-align: center; }
.section-title span { color: var(--accent); }

/* AI 魔改 (Timeline) */
.ai-magic { background: #11111a; }
.timeline {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  border-left: 2px solid #333;
  padding-left: 20px;
}
.timeline-item {
  margin-bottom: 25px;
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -26px; top: 5px;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
}
.timeline-time { font-size: 1.1rem; font-weight: bold; color: #ff9933; }
.timeline-text { color: var(--text-muted); font-size: 0.95rem; margin-top: 5px; }

/* 魔改短剧 (Grid) */
.magic-drama { background: #1a1a2e; }
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 15px;
}
.card {
  background: var(--panel-dark);
  border-radius: var(--border-radius);
  overflow: hidden;
}
.card img { width: 100%; height: 200px; }
.card-info { padding: 10px; }
.card-title { font-size: 0.95rem; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-tag { display: inline-block; font-size: 0.75rem; padding: 2px 6px; border-radius: 4px; background: rgba(255, 51, 102, 0.2); color: var(--accent); margin-top: 5px; }

/* 热播魔改剧 (Horizontal Scroll) */
.hot-magic { background: #0d1518; }
.h-scroll { display: flex; gap: 15px; overflow-x: auto; padding-bottom: 15px; }
.h-scroll::-webkit-scrollbar { display: none; }
.h-card {
  flex: 0 0 200px;
  background: var(--panel-dark);
  border-radius: var(--border-radius);
  overflow: hidden;
}
.h-card img { width: 100%; height: 280px; }
.h-card-info { padding: 10px; }
.h-card-title { font-weight: bold; font-size: 1rem; }
.h-card-meta { font-size: 0.8rem; color: var(--text-muted); margin-top: 5px; }

/* 今日热播榜 (List) */
.today-rank { background: #18111e; }
.rank-list { max-width: 600px; margin: 0 auto; }
.rank-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid #333;
}
.rank-num { font-size: 1.2rem; font-weight: bold; color: #ff9933; width: 25px; }
.rank-info { flex: 1; }
.rank-title { font-weight: bold; font-size: 1rem; }
.rank-desc { font-size: 0.85rem; color: var(--text-muted); }

/* 会员权益 (Split) */
.vip { background: #111a11; }
.split-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.split-img img { border-radius: var(--border-radius); width: 100%; height: auto; }
.split-text ul li {
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.split-text ul li strong { color: var(--text-main); }

/* 隐私安全 (Cards) */
.privacy { background: #1a1111; }
.priv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}
.priv-card {
  background: var(--panel-dark);
  padding: 15px;
  border-radius: var(--border-radius);
  border-left: 3px solid #33ccff;
}
.priv-card h3 { font-size: 1rem; margin-bottom: 5px; }
.priv-card p { font-size: 0.85rem; color: var(--text-muted); }

/* 意见反馈 (FAQ) */
.feedback { background: #111820; }
.faq-item { margin-bottom: 15px; border-bottom: 1px solid #333; padding-bottom: 10px; }
.faq-q { font-weight: bold; font-size: 1rem; margin-bottom: 5px; color: #33ccff; }
.faq-a { font-size: 0.9rem; color: var(--text-muted); }

/* 常见问题 (QA) */
.common-faq { background: #1f1a2e; }
.comments-section {
  margin-top: 30px;
}
.comment-item {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  background: var(--panel-dark);
  padding: 10px;
  border-radius: var(--border-radius);
}
.comment-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; }
.comment-body { flex: 1; }
.comment-user { font-weight: bold; font-size: 0.9rem; }
.comment-text { font-size: 0.85rem; color: var(--text-muted); }

/* 下载专区 */
.download-area {
  background: linear-gradient(180deg, #11111a, #1a1a2e);
  text-align: center;
}
.download-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-bottom: 30px;
  text-align: left;
}
.step-card {
  background: var(--panel-dark);
  padding: 15px;
  border-radius: var(--border-radius);
}
.step-card h3 { font-size: 1rem; color: #ff9933; margin-bottom: 5px; }
.step-card p { font-size: 0.85rem; color: var(--text-muted); }
.download-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

/* Floating Download */
.float-download {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 20, 31, 0.95);
  border: 1px solid var(--accent);
  padding: 10px 20px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 1000;
  box-shadow: 0 5px 15px rgba(255, 51, 102, 0.3);
  backdrop-filter: blur(5px);
  white-space: nowrap;
}
.float-download img { height: 30px; border-radius: 6px; }
.float-download-text { font-size: 0.85rem; }
.float-download-text strong { color: var(--accent); display: block; }
.float-download-text span { font-size: 0.7rem; color: var(--text-muted); }
.float-download .btn { padding: 6px 15px; font-size: 0.8rem; }

/* Footer */
footer {
  padding: 30px 20px 80px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid #333;
  background: #050508;
}
footer p { margin-bottom: 10px; }
footer a { color: #666; text-decoration: underline; }
footer a:hover { color: var(--accent); }

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-content {
  background: var(--panel-dark);
  padding: 20px;
  border-radius: var(--border-radius);
  max-width: 400px;
  text-align: center;
  border: 1px solid #333;
}
.modal-content p { margin-bottom: 15px; font-size: 0.9rem; color: #ff9933; }
.modal-input {
  width: 100%;
  padding: 10px;
  background: #000;
  border: 1px solid #555;
  color: #fff;
  border-radius: 5px;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

/* Responsive */
@media (min-width: 768px) {
  .nav { display: flex; }
  .mobile-menu-btn { display: none; }
  .hero { flex-direction: row; align-items: center; justify-content: center; padding: 60px 20px; }
  .hero-content { text-align: left; flex: 1; max-width: 500px; }
  .hero-btns { justify-content: flex-start; }
  .hero-img-wrap { flex: 1; justify-content: flex-end; overflow-x: visible; }
  .hero-img-item { flex: 0 0 45%; margin-left: -10%; }
  .hero-img-item:nth-child(1) { transform: scale(0.9) translateY(20px); z-index: 1; }
  .hero-img-item:nth-child(2) { transform: scale(1); z-index: 2; }
  .hero-img-item:nth-child(3) { transform: scale(0.9) translateY(20px); z-index: 1; }
  .split-layout { flex-direction: row; align-items: center; }
  .split-img { flex: 1; }
  .split-text { flex: 1; }
  .priv-grid { grid-template-columns: 1fr 1fr; }
  .download-steps { grid-template-columns: 1fr 1fr; }
  .float-download { bottom: 40px; }
}
@media (min-width: 1024px) {
  .hero h1 { font-size: 3rem; }
  .container { max-width: 1200px; margin: 0 auto; }
  .grid-cards { grid-template-columns: repeat(4, 1fr); }
  .hero-img-item { flex: 0 0 30%; margin-left: -5%; }
}