:root {
  --bg-dark: #0f0c1b;
  --bg-purple: #1e1435;
  --bg-pink: #2d1130;
  --bg-blue: #0b1b2b;
  --bg-cream: #fbf7f4;
  --text-main: #ffffff;
  --text-dark: #2a2233;
  --text-muted: #b3a8c9;
  --accent-pink: #ff5e8e;
  --accent-purple: #9d5cf6;
  --accent-gold: #f6c96b;
  --accent-blue: #3d8bfd;
  --border-glass: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
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; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15, 12, 27, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 32px; width: auto; border-radius: 6px; }
.brand span { font-size: 18px; font-weight: 700; letter-spacing: 1px; }
.nav-desktop { display: none; }
.nav-desktop ul { display: flex; gap: 24px; }
.nav-desktop a {
  font-size: 14px; color: var(--text-muted); transition: var(--transition);
  position: relative; padding: 4px 0;
}
.nav-desktop a:hover { color: var(--accent-pink); }
.nav-desktop a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent-pink), var(--accent-purple));
  transition: var(--transition);
}
.nav-desktop a:hover::after { width: 100%; }

/* Mobile Menu Toggle */
.menu-toggle {
  display: block; background: none; border: none; color: #fff;
  font-size: 24px; cursor: pointer;
}
.mobile-menu {
  display: none; position: absolute; top: 64px; left: 0; width: 100%;
  background: var(--bg-purple); border-bottom: 1px solid var(--border-glass);
  padding: 16px; box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}
.mobile-menu.active { display: block; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 12px; }
.mobile-menu a { display: block; padding: 10px; font-size: 15px; border-radius: var(--radius-sm); background: var(--glass-bg); }

/* Hero Section */
.hero {
  position: relative;
  padding: 40px 0 20px;
  background: radial-gradient(circle at 50% 0%, rgba(157, 92, 246, 0.2), transparent 70%);
  overflow: hidden;
}
.hero-layout {
  display: flex; flex-direction: column; gap: 32px;
}
.hero-text { text-align: center; }
.hero-text h1 {
  font-size: 28px; line-height: 1.3; margin-bottom: 16px;
  background: linear-gradient(135deg, #fff, var(--accent-pink));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-text p { font-size: 15px; color: var(--text-muted); margin-bottom: 24px; }
.hero-desc { font-size: 14px; margin-bottom: 24px; color: #ddd; }
.download-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn-download {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 30px; font-weight: 600; font-size: 14px;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
  color: #fff; transition: var(--transition); border: none; cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 94, 142, 0.3);
}
.btn-download:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 94, 142, 0.5); }
.btn-outline { background: transparent; border: 1px solid var(--accent-pink); box-shadow: none; }
.btn-outline:hover { background: rgba(255, 94, 142, 0.1); }
.hero-images {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  padding: 0 10px;
}
.hero-img-card {
  border-radius: var(--radius-md); overflow: hidden; position: relative;
  aspect-ratio: 3/4;
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}
.hero-img-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-img-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent 50%);
}

/* Marquee */
.marquee-wrap {
  background: rgba(0,0,0,0.5); padding: 10px 0; overflow: hidden;
  border-top: 1px solid var(--border-glass); border-bottom: 1px solid var(--border-glass);
  margin-top: 20px;
}
.marquee-content {
  display: flex; gap: 40px; white-space: nowrap;
  animation: marquee 20s linear infinite;
}
.marquee-content span {
  font-size: 16px; font-weight: bold;
  background: linear-gradient(90deg, #ff5e8e, #f6c96b, #9d5cf6, #3d8bfd);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Sections Common */
.section { padding: 60px 0; }
.section-cream { background: var(--bg-cream); color: var(--text-dark); }
.section-cream .text-muted { color: #665c70; }
.section-purple { background: var(--bg-purple); }
.section-pink { background: var(--bg-pink); }
.section-blue { background: var(--bg-blue); }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 24px; margin-bottom: 12px; }
.section-header p { font-size: 14px; opacity: 0.8; }

/* Real Drama */
.drama-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.drama-card {
  background: var(--bg-purple); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  border: 1px solid var(--border-glass);
}
.drama-card-img img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.drama-card-content { padding: 16px; }
.drama-card-content h3 { font-size: 18px; margin-bottom: 8px; color: var(--accent-gold); }
.drama-tags { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.drama-tags span {
  font-size: 12px; padding: 2px 8px; border-radius: 4px;
  background: rgba(157, 92, 246, 0.2); color: var(--accent-purple);
}
.drama-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.drama-desc { font-size: 13px; color: #ccc; }

/* Completed Drama */
.completed-list { display: flex; flex-direction: column; gap: 16px; }
.completed-item {
  display: flex; gap: 16px; background: var(--glass-bg);
  border-radius: var(--radius-md); padding: 12px;
}
.completed-item img { width: 80px; height: 110px; object-fit: cover; border-radius: var(--radius-sm); }
.completed-info { flex: 1; }
.completed-info h3 { font-size: 16px; margin-bottom: 6px; color: var(--accent-pink); }
.completed-info p { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.completed-meta { display: flex; gap: 10px; font-size: 12px; color: #999; }

/* Trending Board */
.trending-table { width: 100%; border-collapse: collapse; }
.trending-table th, .trending-table td {
  padding: 12px; text-align: left; border-bottom: 1px solid var(--border-glass);
  font-size: 14px;
}
.trending-table th { color: var(--accent-gold); font-weight: 600; }
.trending-table tr:hover { background: rgba(255,255,255,0.05); }
.trending-rank {
  display: inline-block; width: 24px; height: 24px; line-height: 24px;
  text-align: center; border-radius: 50%; background: var(--accent-pink); color: #fff; font-size: 12px; font-weight: bold;
}
.trending-rank.top3 { background: var(--accent-gold); color: var(--text-dark); }

/* Reviews */
.review-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.review-card {
  background: #fff; border-radius: var(--radius-md); padding: 16px;
  color: var(--text-dark); box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review-header img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.review-user { font-weight: bold; font-size: 14px; }
.review-star { color: #f1c40f; font-size: 12px; }
.review-text { font-size: 14px; color: #444; }
.review-time { font-size: 12px; color: #999; margin-top: 8px; }

/* Schedule Timeline */
.timeline { position: relative; padding-left: 20px; margin-top: 20px; }
.timeline::before {
  content: ''; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--accent-pink), var(--accent-purple));
}
.timeline-item { position: relative; margin-bottom: 20px; padding-left: 20px; }
.timeline-item::before {
  content: ''; position: absolute; left: -20px; top: 4px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--accent-gold); box-shadow: 0 0 8px var(--accent-gold);
}
.timeline-time { font-weight: bold; color: var(--accent-gold); font-size: 14px; margin-bottom: 4px; }
.timeline-content { font-size: 14px; color: #ddd; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff; border-radius: var(--radius-md); overflow: hidden;
  color: var(--text-dark); border: 1px solid #eee;
}
.faq-q {
  padding: 16px; font-weight: bold; font-size: 15px; display: flex; justify-content: space-between;
  cursor: pointer; background: #fcfcfc;
}
.faq-a { padding: 0 16px 16px; font-size: 14px; color: #555; display: none; }
.faq-item.active .faq-a { display: block; }
.faq-item.active .faq-q { color: var(--accent-pink); }

/* Member & Privacy */
.policy-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.policy-card {
  background: rgba(0,0,0,0.2); padding: 20px; border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}
.policy-card h3 { font-size: 18px; margin-bottom: 12px; color: var(--accent-blue); }
.policy-card ul { padding-left: 16px; list-style: disc; font-size: 14px; color: #ccc; }
.policy-card li { margin-bottom: 8px; }

/* Feedback */
.feedback-box { background: var(--glass-bg); padding: 20px; border-radius: var(--radius-lg); }
.feedback-box input, .feedback-box textarea {
  width: 100%; padding: 12px; margin-bottom: 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass); background: rgba(0,0,0,0.3); color: #fff; font-family: inherit;
}
.feedback-box button {
  width: 100%; padding: 12px; border-radius: var(--radius-sm); border: none;
  background: var(--accent-pink); color: #fff; font-weight: bold; cursor: pointer;
}

/* Download Bottom */
.bottom-download {
  display: flex; flex-direction: column; gap: 20px; align-items: center;
  background: var(--glass-bg); padding: 30px; border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
}
.bottom-download img { width: 120px; border-radius: var(--radius-md); }
.bottom-download-info { text-align: center; }
.bottom-download-info h3 { font-size: 20px; margin-bottom: 10px; color: var(--accent-gold); }
.bottom-download-info p { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.steps-list { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; text-align: left; }
.step-item { display: flex; gap: 12px; align-items: flex-start; }
.step-num {
  width: 24px; height: 24px; border-radius: 50%; background: var(--accent-purple);
  display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 14px; flex-shrink: 0;
}

/* Footer */
.site-footer {
  background: #0a0812; padding: 30px 0; font-size: 13px; color: #777;
  border-top: 1px solid var(--border-glass); text-align: center;
}
.footer-links { display: flex; justify-content: center; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.footer-links a { color: #999; }
.footer-links a:hover { color: var(--accent-pink); }
.footer-info p { margin-bottom: 6px; }

/* Floating Download */
.floating-download {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: rgba(30, 20, 53, 0.95); backdrop-filter: blur(10px);
  border: 1px solid var(--accent-pink); border-radius: 30px;
  padding: 8px 16px; display: flex; align-items: center; gap: 12px;
  box-shadow: 0 10px 30px rgba(255, 94, 142, 0.3); z-index: 999;
  width: max-content; max-width: 90%;
}
.floating-download img { width: 32px; height: 32px; border-radius: 6px; }
.floating-text { display: flex; flex-direction: column; }
.floating-text strong { font-size: 14px; color: #fff; }
.floating-text span { font-size: 11px; color: var(--text-muted); }
.floating-btn {
  background: var(--accent-pink); color: #fff; padding: 8px 16px; border-radius: 20px;
  font-size: 13px; font-weight: bold; text-decoration: none;
}

/* Modal for iOS/Baidu */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 1000;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: #fff; color: #333; padding: 24px; border-radius: 16px;
  max-width: 320px; width: 100%; text-align: center;
}
.modal-box p { font-size: 15px; margin-bottom: 20px; font-weight: bold; }
.modal-link {
  display: block; background: #f5f5f5; padding: 12px; border-radius: 8px;
  font-size: 13px; color: #555; margin-bottom: 16px; word-break: break-all;
}
.modal-btn {
  width: 100%; padding: 12px; border-radius: 8px; border: none;
  background: var(--accent-pink); color: #fff; font-weight: bold; cursor: pointer;
}
.modal-close {
  position: absolute; top: 10px; right: 10px; background: none; border: none;
  font-size: 24px; color: #999; cursor: pointer;
}

/* Responsive */
@media (min-width: 768px) {
  .nav-desktop { display: block; }
  .menu-toggle { display: none; }
  .hero-layout { flex-direction: row; align-items: center; }
  .hero-text { flex: 1; text-align: left; }
  .hero-images { flex: 1; display: flex; flex-wrap: wrap; gap: 12px; }
  .hero-img-card { flex: 1 1 40%; }
  .drama-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .policy-grid { grid-template-columns: repeat(2, 1fr); }
  .bottom-download { flex-direction: row; text-align: left; }
  .bottom-download-info { text-align: left; flex: 1; }
}
@media (min-width: 1024px) {
  .drama-grid { grid-template-columns: repeat(4, 1fr); }
  .review-grid { grid-template-columns: repeat(3, 1fr); }
  .policy-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-text { flex: 0 0 45%; }
  .hero-images { flex: 0 0 55%; }
}