:root {
  --primary: #ff2a5f;
  --secondary: #7b2cbf;
  --bg-dark: #120c1a;
  --bg-card: #1e1429;
  --text-main: #f0e6ff;
  --text-muted: #a89bb8;
  --gradient-main: linear-gradient(135deg, #ff2a5f, #7b2cbf);
  --gradient-text: linear-gradient(90deg, #ff2a5f, #ffb703, #7b2cbf);
  --radius-md: 12px;
  --radius-lg: 20px;
}
* { 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;
  padding-bottom: 70px;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 12, 26, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 42, 95, 0.2);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-area { display: flex; align-items: center; gap: 10px; }
.logo-area img { height: 32px; width: auto; border-radius: 6px; }
.logo-area span { font-weight: bold; font-size: 1.1rem; background: var(--gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; gap: 15px; font-size: 0.9rem; }
.nav-links a { transition: color 0.3s; position: relative; padding: 5px 0; }
.nav-links a:hover { color: var(--primary); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }

/* Mobile Nav Toggle */
.mobile-menu-btn { display: none; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }

/* Hero Section */
.hero {
  padding: 40px 20px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(123, 44, 191, 0.3) 0%, transparent 70%);
  position: relative;
}
.hero h1 {
  font-size: 2rem;
  margin-bottom: 15px;
  line-height: 1.4;
}
.hero h1 span { background: var(--gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { color: var(--text-muted); margin-bottom: 25px; font-size: 1rem; }
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.dl-btn {
  padding: 12px 30px;
  border-radius: 30px;
  background: var(--gradient-main);
  color: white;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(255, 42, 95, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.dl-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 42, 95, 0.6); }
.dl-btn.outline { background: transparent; border: 2px solid var(--primary); box-shadow: none; }
.dl-btn.outline:hover { background: rgba(255, 42, 95, 0.1); }

.hero-gallery {
  display: flex;
  justify-content: center;
  gap: 15px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: none;
}
.hero-gallery::-webkit-scrollbar { display: none; }
.hero-gallery img {
  width: 130px;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
  transition: transform 0.3s;
}
.hero-gallery img:hover { transform: scale(1.05); }

/* Marquee */
.marquee-container {
  width: 100%;
  overflow: hidden;
  background: rgba(0,0,0,0.3);
  padding: 10px 0;
  border-top: 1px solid rgba(255,42,95,0.2);
  border-bottom: 1px solid rgba(255,42,95,0.2);
  white-space: nowrap;
}
.marquee-text {
  display: inline-block;
  animation: marquee 20s linear infinite;
  font-weight: bold;
  font-size: 1.1rem;
  background: linear-gradient(90deg, #ff2a5f, #ffb703, #7b2cbf, #ff2a5f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Sections General */
.section { padding: 50px 20px; }
.section-title { text-align: center; font-size: 1.6rem; margin-bottom: 30px; position: relative; }
.section-title::after {
  content: '';
  display: block;
  width: 50px; height: 3px;
  background: var(--primary);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Section 1: 同款魔改 */
.section-mogai { background-color: #1a1124; }
.mogai-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 15px; }
.mogai-card { background: var(--bg-card); border-radius: var(--radius-md); overflow: hidden; border: 1px solid rgba(255,42,95,0.1); }
.mogai-card img { width: 100%; height: 180px; object-fit: cover; }
.mogai-card .info { padding: 10px; }
.mogai-card h3 { font-size: 0.95rem; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mogai-card p { font-size: 0.75rem; color: var(--text-muted); }
.tag-row { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 5px; }
.tag { font-size: 0.65rem; padding: 2px 6px; border-radius: 4px; background: rgba(255,42,95,0.15); color: var(--primary); }

/* Section 2: 完结魔改剧 (Timeline style) */
.section-end { background-color: #211428; }
.timeline { position: relative; max-width: 600px; margin: 0 auto; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: rgba(255,42,95,0.3); }
.timeline-item { position: relative; margin-bottom: 25px; }
.timeline-item::before {
  content: ''; position: absolute; left: -26px; top: 5px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--primary); border: 3px solid var(--bg-dark);
}
.timeline-content { background: var(--bg-card); padding: 15px; border-radius: var(--radius-md); }
.timeline-content h3 { font-size: 1rem; margin-bottom: 5px; }
.timeline-content p { font-size: 0.85rem; color: var(--text-muted); }
.timeline-time { font-size: 0.75rem; color: var(--secondary); font-weight: bold; margin-bottom: 5px; display: block; }

/* Section 3: 本周热播榜 */
.section-rank { background-color: #0d1720; }
.rank-list { display: flex; flex-direction: column; gap: 10px; }
.rank-item { display: flex; align-items: center; background: var(--bg-card); padding: 10px; border-radius: var(--radius-md); gap: 15px; }
.rank-num { font-size: 1.2rem; font-weight: bold; color: var(--primary); width: 25px; text-align: center; }
.rank-item img { width: 50px; height: 70px; object-fit: cover; border-radius: 6px; }
.rank-info { flex: 1; }
.rank-info h3 { font-size: 0.95rem; margin-bottom: 3px; }
.rank-info p { font-size: 0.75rem; color: var(--text-muted); }

/* Section 4: 用户神评 */
.section-reviews { background-color: #1c1020; }
.review-grid { display: grid; grid-template-columns: 1fr; gap: 15px; }
.review-card { background: var(--bg-card); padding: 15px; border-radius: var(--radius-md); border-left: 4px solid var(--primary); }
.review-user { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.review-user img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.review-user span { font-weight: bold; font-size: 0.9rem; }
.review-text { font-size: 0.85rem; color: var(--text-muted); }

/* Section 5: 会员权益 & 隐私安全 (Split) */
.split-section { display: flex; flex-direction: column; gap: 20px; }
.split-card { background: var(--bg-card); padding: 20px; border-radius: var(--radius-md); }
.split-card h3 { font-size: 1.1rem; margin-bottom: 15px; color: var(--primary); }
.split-list li { margin-bottom: 10px; font-size: 0.85rem; display: flex; align-items: flex-start; gap: 8px; }
.split-list li::before { content: '✦'; color: var(--secondary); }

/* Section 6: FAQs */
.section-faq { background-color: #1a1124; }
.faq-item { background: var(--bg-card); margin-bottom: 10px; border-radius: var(--radius-md); overflow: hidden; }
.faq-q { padding: 15px; font-weight: bold; font-size: 0.95rem; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.faq-a { padding: 0 15px 15px; font-size: 0.85rem; color: var(--text-muted); display: block; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 10px; margin-top: 0; }

/* Section 7: Download Steps */
.section-download { background: linear-gradient(180deg, #1c1020, #120c1a); text-align: center; }
.steps-wrapper { display: flex; flex-direction: column; gap: 20px; max-width: 600px; margin: 0 auto 30px; }
.step-item { display: flex; align-items: center; gap: 15px; background: var(--bg-card); padding: 15px; border-radius: var(--radius-md); text-align: left; }
.step-num { width: 30px; height: 30px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; flex-shrink: 0; }
.step-item p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* Floating Download */
.floating-dl {
  position: fixed;
  bottom: 20px; left: 50%; transform: translateX(-50%);
  background: rgba(30, 20, 41, 0.95);
  border: 1px solid var(--primary);
  padding: 10px 20px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 99;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
}
.floating-dl img { width: 30px; height: 30px; border-radius: 6px; }
.floating-dl .text { font-size: 0.75rem; line-height: 1.2; }
.floating-dl .text strong { display: block; font-size: 0.85rem; color: var(--primary); }
.floating-dl .btn-min { background: var(--primary); color: white; padding: 6px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: bold; }

/* Footer */
.site-footer {
  background: #0a0610;
  padding: 30px 20px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid #1a1124;
}
.site-footer p { margin-bottom: 10px; }
.footer-links { display: flex; justify-content: center; gap: 15px; margin-bottom: 15px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--primary); }

/* Modal for Baidu */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px;
}
.modal-content {
  background: var(--bg-card); padding: 25px; border-radius: var(--radius-lg);
  text-align: center; max-width: 400px; width: 100%; border: 1px solid var(--primary);
}
.modal-content p { font-size: 0.95rem; margin-bottom: 15px; }
.modal-content input {
  width: 100%; padding: 10px; background: rgba(255,255,255,0.1); border: 1px solid #444;
  border-radius: 8px; color: white; margin-bottom: 15px; text-align: center; font-size: 0.85rem;
}
.modal-content button {
  background: var(--primary); color: white; border: none; padding: 10px 20px; border-radius: 20px; font-weight: bold; cursor: pointer;
}

/* Desktop Responsive */
@media (min-width: 768px) {
  .hero h1 { font-size: 2.8rem; }
  .hero-gallery img { width: 180px; height: 250px; }
  .mogai-grid { grid-template-columns: repeat(4, 1fr); }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .split-section { flex-direction: row; justify-content: space-between; }
  .split-card { flex: 1; }
  .steps-wrapper { flex-direction: row; text-align: center; }
  .step-item { flex-direction: column; flex: 1; }
  .rank-list { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
}
@media (min-width: 1024px) {
  .nav-links { display: flex !important; }
  .mobile-menu-btn { display: none !important; }
  .hero h1 { font-size: 3.5rem; }
  .mogai-grid { grid-template-columns: repeat(5, 1fr); }
  .review-grid { grid-template-columns: repeat(3, 1fr); }
  .section-title { font-size: 2rem; }
  .container { max-width: 1200px; margin: 0 auto; }
}

/* Mobile Nav */
@media (max-width: 767px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-dark);
    padding: 20px;
    border-bottom: 1px solid var(--primary);
  }
  .nav-links.active { display: flex; }
  .mobile-menu-btn { display: block; }
  .floating-dl { width: 90%; justify-content: space-between; }
}