:root {
  --bg: #120B22;
  --panel: #221641;
  --panel-light: #2E2058;
  --primary: #A46BFF;
  --secondary: #6E4BD6;
  --mint: linear-gradient(135deg, #4FE3B0, #2CE0A3);
  --text: #F0EBFF;
  --text-sub: #A99FC8;
  --border: rgba(190, 175, 255, 0.10);
  --border-light: rgba(190, 175, 255, 0.20);
  --gold: #FFCE86;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Header */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(18, 11, 34, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-container {
  max-width: 1200px; margin: 0 auto; padding: 12px 20px;
  display: flex; justify-content: space-between; align-items: center;
}
.logo-area { display: flex; align-items: center; gap: 10px; }
.logo-area img { height: 32px; border-radius: 6px; }
.logo-area span { font-size: 1.2rem; font-weight: bold; color: var(--gold); }
.nav-links { display: flex; gap: 20px; font-size: 0.95rem; color: var(--text-sub); }
.nav-links a { transition: color 0.3s; padding: 4px; }
.nav-links a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }

/* Mobile Nav */
.mobile-nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }
.mobile-nav-menu { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--panel); border-bottom: 1px solid var(--border-light); padding: 10px 0; }
.mobile-nav-menu.active { display: block; }
.mobile-nav-menu a { display: block; padding: 10px 20px; color: var(--text); border-bottom: 1px solid var(--border); }
.mobile-nav-menu a:hover { background: var(--panel-light); color: var(--gold); }

/* Hero */
.hero { padding: 40px 20px; max-width: 1200px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: 2.2rem; color: var(--gold); margin-bottom: 15px; line-height: 1.3; }
.hero p { color: var(--text-sub); max-width: 800px; margin: 0 auto 30px; font-size: 1.05rem; }

.hero-gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 30px;
}
.hero-gallery img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 12px;
  border: 1px solid var(--border-light); transition: transform 0.3s, border-color 0.3s;
}
.hero-gallery img:hover { transform: translateY(-5px); border-color: var(--primary); }

.download-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-bottom: 20px; }
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 30px; font-weight: bold;
  text-align: center; transition: all 0.3s; border: 1px solid transparent;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--secondary); }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* Marquee */
.marquee-container {
  overflow: hidden; white-space: nowrap; background: var(--panel);
  padding: 10px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-top: 20px;
}
.marquee-content {
  display: inline-block; animation: marquee 20s linear infinite;
}
.marquee-content span {
  margin-right: 40px; font-weight: bold; background: linear-gradient(90deg, var(--mint), var(--primary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Sections */
section { padding: 60px 20px; max-width: 1200px; margin: 0 auto; }
section h2 { font-size: 1.8rem; color: var(--primary); margin-bottom: 30px; text-align: center; }
section h3 { font-size: 1.2rem; color: var(--gold); margin-bottom: 15px; }

/* Real Drama (Grid) */
.drama-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.drama-card {
  background: var(--panel); border-radius: 12px; overflow: hidden; border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.3s;
}
.drama-card:hover { border-color: var(--secondary); transform: translateY(-5px); }
.drama-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.drama-info { padding: 15px; }
.drama-info h4 { color: var(--text); font-size: 1.1rem; margin-bottom: 5px; }
.drama-info p { color: var(--text-sub); font-size: 0.85rem; margin-bottom: 10px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { background: rgba(164, 107, 255, 0.2); color: var(--primary); padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; }
.rating { color: var(--gold); font-weight: bold; margin-top: 10px; display: block; font-size: 0.9rem; }

/* Completed Drama (List) */
.completed-list { display: flex; flex-direction: column; gap: 20px; }
.completed-item {
  display: flex; background: var(--panel-light); border-radius: 12px; padding: 15px; gap: 20px;
  border: 1px solid var(--border); transition: background 0.3s;
}
.completed-item:hover { background: var(--panel); }
.completed-item img { width: 100px; aspect-ratio: 3/4; object-fit: cover; border-radius: 8px; }
.completed-content { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.completed-content h3 { margin-bottom: 5px; }
.completed-content p { color: var(--text-sub); font-size: 0.9rem; margin-bottom: 10px; }

/* Hot Chart (Timeline) */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: var(--secondary); }
.timeline-item { position: relative; margin-bottom: 25px; background: var(--panel); padding: 15px; border-radius: 8px; border: 1px solid var(--border); }
.timeline-item::before {
  content: ''; position: absolute; left: -24px; top: 20px; width: 10px; height: 10px;
  background: var(--mint); border-radius: 50%; border: 2px solid var(--bg);
}
.timeline-time { color: var(--gold); font-weight: bold; font-size: 0.9rem; margin-bottom: 5px; }
.timeline-item h4 { color: var(--text); margin-bottom: 5px; }

/* Reviews */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.review-card { background: var(--panel-light); padding: 20px; border-radius: 12px; border: 1px solid var(--border); }
.review-header { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.review-header img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.review-header span { font-weight: bold; color: var(--text); }
.review-card p { color: var(--text-sub); font-size: 0.95rem; }

/* Member Rights */
.rights-container { display: flex; flex-direction: column; gap: 20px; }
.right-card { background: linear-gradient(135deg, var(--panel), var(--panel-light)); padding: 25px; border-radius: 12px; border: 1px solid var(--border-light); }
.right-card h3 { color: var(--gold); margin-bottom: 10px; }
.right-card ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.right-card ul li { color: var(--text-sub); font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }
.right-card ul li::before { content: '✔'; color: var(--mint); }

/* FAQ */
.faq-container { display: flex; flex-direction: column; gap: 15px; }
.faq-item { background: var(--panel); border-radius: 8px; border: 1px solid var(--border); padding: 15px; }
.faq-q { color: var(--primary); font-weight: bold; margin-bottom: 8px; cursor: pointer; display: flex; justify-content: space-between; }
.faq-q::after { content: '+'; transition: transform 0.3s; }
.faq-item.active .faq-q::after { transform: rotate(45deg); }
.faq-a { color: var(--text-sub); display: none; margin-top: 10px; font-size: 0.95rem; }
.faq-item.active .faq-a { display: block; }

/* Split Layout */
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: stretch; }
.split-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.split-content { display: flex; flex-direction: column; justify-content: center; }

/* Download Section */
.download-section { background: var(--panel-light); border-radius: 20px; padding: 40px 20px; text-align: center; border: 1px solid var(--border-light); margin: 60px auto; max-width: 1000px; }
.download-section img { max-width: 200px; border-radius: 12px; margin: 0 auto 20px; }
.install-steps { display: flex; flex-direction: column; align-items: center; gap: 15px; margin-top: 30px; }
.step { background: var(--panel); padding: 15px 25px; border-radius: 30px; border: 1px solid var(--border); color: var(--text-sub); }
.step span { color: var(--gold); font-weight: bold; margin-right: 10px; }

/* Floating Download */
.floating-download {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 1000;
  background: var(--panel); border: 1px solid var(--primary); border-radius: 40px;
  padding: 8px 20px; display: flex; align-items: center; gap: 15px; box-shadow: 0 4px 20px rgba(164, 107, 255, 0.3);
}
.floating-download img { height: 30px; border-radius: 6px; }
.floating-download .info { display: flex; flex-direction: column; }
.floating-download .info span { font-size: 0.8rem; color: var(--text-sub); }
.floating-download .info strong { font-size: 0.9rem; color: var(--gold); }
.floating-download a { padding: 8px 16px; font-size: 0.9rem; }

/* Footer */
footer {
  background: var(--bg); border-top: 1px solid var(--border); padding: 40px 20px 80px;
  text-align: center; font-size: 0.85rem; color: var(--text-sub);
}
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text-sub); }
.footer-links a:hover { color: var(--primary); }
.copyright { margin-bottom: 10px; }
.time-update { margin-top: 10px; font-size: 0.8rem; color: #665c7a; }

/* Modal for Baidu */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 2000; align-items: center; justify-content: center; }
.modal.active { display: flex; }
.modal-content { background: var(--panel); padding: 30px; border-radius: 16px; width: 90%; max-width: 400px; text-align: center; border: 1px solid var(--border-light); }
.modal-content p { color: var(--text); margin-bottom: 20px; font-size: 1rem; }
.modal-content input { width: 100%; padding: 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); color: var(--text); margin-bottom: 20px; text-align: center; }
.modal-content button { width: 100%; padding: 10px; border-radius: 8px; border: none; background: var(--primary); color: #fff; font-weight: bold; cursor: pointer; }

/* Responsive */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .mobile-nav-toggle { display: block; }
  .hero-gallery { grid-template-columns: repeat(2, 1fr); }
  .split-layout { grid-template-columns: 1fr; }
  .completed-item { flex-direction: column; align-items: center; text-align: center; }
  .completed-item img { width: 60%; max-width: 200px; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 1.6rem; }
  .hero-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .download-btns { flex-direction: column; }
  .btn { width: 100%; }
  .drama-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .right-card ul { grid-template-columns: 1fr; }
  .floating-download { width: 90%; padding: 8px 10px; justify-content: space-between; }
  .floating-download .info span { display: none; }
}