:root {
  --bg-dark: #0f0f13;
  --bg-darker: #08080a;
  --primary: #ff3366;
  --secondary: #7b2cbf;
  --accent: #ff9e00;
  --text-main: #ffffff;
  --text-muted: #a0a0a5;
  --card-bg: #1c1c24;
  --border-radius: 12px;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 80px; /* For floating button */
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; object-fit: cover; }

/* Header & Nav */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 19, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: bold;
}
.brand img {
  height: 32px;
  width: auto;
  border-radius: 6px;
}
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}
.nav-links {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
}
.nav-links a {
  color: var(--text-muted);
  transition: color 0.3s;
}
.nav-links a:hover {
  color: var(--primary);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 60px 20px;
  background: radial-gradient(circle at top right, rgba(123, 44, 191, 0.2), transparent 50%),
              radial-gradient(circle at bottom left, rgba(255, 51, 102, 0.2), transparent 50%);
  overflow: hidden;
}
.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
}
.hero-text {
  flex: 1;
}
.hero-text h1 {
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #fff, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-text p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 30px;
}
.hero-visual {
  flex: 1;
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}
.hero-visual img {
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: transform 0.3s;
}
.hero-visual img:hover {
  transform: translateY(-5px);
}
.hero-visual img:nth-child(even) {
  transform: translateY(20px);
}
.hero-visual img:nth-child(even):hover {
  transform: translateY(15px);
}

/* Download Buttons */
.download-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 4px 15px rgba(255, 51, 102, 0.3);
}
.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(255, 51, 102, 0.5);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

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

/* Sections Common */
section {
  padding: 80px 20px;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
}
.section-title {
  font-size: 2rem;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

/* Section 1: Today's New (Grid Cards) */
.bg-light-dark { background-color: #15151c; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.drama-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: transform 0.3s;
}
.drama-card:hover {
  transform: translateY(-5px);
}
.drama-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}
.card-info {
  padding: 15px;
}
.card-info h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}
.card-tags {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.tag {
  font-size: 0.75rem;
  padding: 2px 8px;
  background: rgba(255, 51, 102, 0.2);
  color: var(--primary);
  border-radius: 4px;
}
.card-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-date {
  font-size: 0.75rem;
  color: #666;
}

/* Section 2: Midnight Theater (Vertical Timeline) */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 30px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255,255,255,0.1);
}
.timeline-item {
  position: relative;
  margin-bottom: 30px;
  padding-left: 20px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -35px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--secondary);
  border: 2px solid var(--bg-dark);
}
.timeline-time {
  font-weight: bold;
  color: var(--secondary);
  margin-bottom: 5px;
}
.timeline-content {
  background: var(--card-bg);
  padding: 15px;
  border-radius: var(--border-radius);
  display: flex;
  gap: 15px;
  align-items: center;
}
.timeline-content img {
  width: 60px;
  height: 80px;
  border-radius: 6px;
}
.timeline-info h4 {
  font-size: 1rem;
  margin-bottom: 5px;
}
.timeline-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Section 3: Magic Library (List) */
.split-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.split-image {
  flex: 1;
  border-radius: var(--border-radius);
  overflow: hidden;
}
.split-content {
  flex: 1;
}
.list-items {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.list-item {
  background: var(--card-bg);
  padding: 15px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  gap: 15px;
  border-left: 4px solid var(--primary);
}
.list-item .num {
  font-size: 1.5rem;
  font-weight: bold;
  color: rgba(255,255,255,0.1);
}
.list-item h4 {
  font-size: 1rem;
  margin-bottom: 3px;
}
.list-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Section 4: Second Creation (Horizontal Scroll) */
.scroll-x {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 20px;
  scrollbar-width: none;
}
.scroll-x::-webkit-scrollbar { display: none; }
.scroll-card {
  min-width: 300px;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 20px;
}
.scroll-card img {
  width: 100%;
  height: 160px;
  border-radius: 8px;
  margin-bottom: 15px;
}
.scroll-card h4 {
  margin-bottom: 10px;
}
.scroll-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Section 5: Comments (Masonry-ish) */
.comment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.comment-card {
  background: var(--card-bg);
  padding: 20px;
  border-radius: var(--border-radius);
  display: flex;
  gap: 15px;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.comment-body h5 {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.comment-body p {
  font-size: 0.95rem;
}

/* Section 6: Quote Wall */
.quote-wall {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 800px;
  margin: 0 auto;
}
.quote-item {
  background: linear-gradient(135deg, rgba(123, 44, 191, 0.1), rgba(255, 51, 102, 0.1));
  padding: 20px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255,255,255,0.05);
  text-align: center;
  font-style: italic;
  font-size: 1.1rem;
}

/* Section 7: Privacy & FAQ / Accordion */
.accordion {
  max-width: 800px;
  margin: 0 auto;
}
.acc-item {
  background: var(--card-bg);
  margin-bottom: 10px;
  border-radius: var(--border-radius);
  overflow: hidden;
}
.acc-header {
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: bold;
}
.acc-content {
  padding: 0 20px 15px;
  color: var(--text-muted);
  display: none;
}
.acc-item.active .acc-content {
  display: block;
}

/* Footer */
footer {
  background: var(--bg-darker);
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-links {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}
.footer-links a:hover { color: var(--primary); }
.footer-info p { margin-bottom: 5px; }

/* Floating Download */
.floating-dl {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.5);
  z-index: 1000;
  font-weight: bold;
  cursor: pointer;
}
.floating-dl img {
  height: 24px;
  width: 24px;
  border-radius: 4px;
}

/* Modal for Baidu App */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.modal-box {
  background: #fff;
  color: #333;
  padding: 20px;
  border-radius: 12px;
  width: 80%;
  max-width: 300px;
  text-align: center;
}
.modal-box p { margin-bottom: 15px; font-size: 0.95rem; }
.modal-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-bottom: 15px;
  text-align: center;
}
.modal-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  width: 100%;
  font-weight: bold;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-content { flex-direction: column; text-align: center; }
  .hero-text h1 { font-size: 2.2rem; }
  .download-group { justify-content: center; }
  .split-layout { flex-direction: column; }
  .split-image { width: 100%; }
}
@media (max-width: 768px) {
  .mobile-menu-btn { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.active { display: flex; }
  .hero-visual { grid-template-columns: 1fr; }
  .hero-visual img:nth-child(even) { transform: none; }
  .hero-visual img:nth-child(even):hover { transform: translateY(-5px); }
  .hero-text h1 { font-size: 1.8rem; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .drama-card img { height: 220px; }
  .timeline { padding-left: 20px; }
  .timeline-item::before { left: -25px; }
  .section-title { font-size: 1.5rem; }
}