:root {
  --bg-base: #0a0a0c;
  --bg-surface: #141417;
  --bg-elevated: #1c1c21;
  --text-main: #f2f2f5;
  --text-muted: #9e9ea8;
  --accent: #e63950;
  --accent-hover: #ff4d66;
  --border-color: #2a2a32;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-main);
  background-color: var(--bg-base);
  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; }

/* Typography */
h1, h2, h3 { font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: 3rem; margin-bottom: 1rem; }
h2 { font-size: 2.2rem; margin-bottom: 0.5rem; }
h3 { font-size: 1.4rem; }
p { color: var(--text-muted); margin-bottom: 1rem; }
.text-accent { color: var(--accent); }

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
section { padding: 80px 0; border-bottom: 1px solid var(--border-color); }
.section-header { margin-bottom: 40px; }
.section-header .tag {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  font-weight: 600;
}
.section-header p { font-size: 1.1rem; max-width: 600px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background-color: var(--accent);
  color: #fff;
}
.btn-primary:hover { background-color: var(--accent-hover); transform: translateY(-2px); }
.btn-outline {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}
.btn-outline:hover { border-color: var(--text-main); background-color: rgba(255,255,255,0.05); }
.btn-group { display: flex; gap: 16px; flex-wrap: wrap; }

/* Header */
header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 100;
  transition: var(--transition);
  padding: 20px 0;
  background: transparent;
}
header.scrolled {
  background: rgba(10, 10, 12, 0.9);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 700; }
.logo img { height: 32px; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { font-size: 0.95rem; color: var(--text-muted); transition: var(--transition); }
.nav-links a:hover { color: var(--text-main); }
.nav-cta { margin-left: 20px; }
.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 100px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  opacity: 0.15;
  z-index: 0;
  transform: scale(1.05);
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%) contrast(1.2); }
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}
.hero h1 { font-size: 4rem; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; margin-bottom: 40px; }
.hero .btn-group { justify-content: center; margin-bottom: 50px; }
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
}
.hero-stats div { font-size: 0.9rem; color: var(--text-muted); }
.hero-stats span { display: block; font-size: 1.5rem; font-weight: 700; color: var(--text-main); }

/* Marquee */
.marquee-wrap {
  background: var(--bg-surface);
  padding: 16px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  white-space: nowrap;
}
.marquee-content {
  display: inline-block;
  animation: marquee 20s linear infinite;
}
.marquee-content span { margin: 0 20px; color: var(--text-muted); font-size: 0.9rem; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.feature-item { margin-bottom: 30px; display: flex; gap: 20px; }
.feature-num {
  font-size: 1.5rem; font-weight: 800; color: var(--accent);
  line-height: 1; min-width: 40px;
}
.feature-text h3 { margin-bottom: 8px; }
.feature-image { border-radius: 16px; overflow: hidden; border: 1px solid var(--border-color); }
.feature-image img { width: 100%; height: auto; object-fit: cover; }
.features-footer { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border-color); }

/* Hot Drama */
.hot-drama-wrap { overflow-x: auto; padding-bottom: 20px; scrollbar-width: none; }
.hot-drama-wrap::-webkit-scrollbar { display: none; }
.hot-drama-track { display: flex; gap: 20px; width: max-content; animation: scroll-x 30s linear infinite; }
.hot-drama-wrap:hover .hot-drama-track { animation-play-state: paused; }
.drama-card {
  width: 240px;
  background: var(--bg-surface);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  flex-shrink: 0;
}
.drama-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.drama-cover { height: 340px; position: relative; }
.drama-cover img { width: 100%; height: 100%; object-fit: cover; }
.drama-heat {
  position: absolute; top: 10px; right: 10px;
  background: rgba(0,0,0,0.7); padding: 4px 8px; border-radius: 4px;
  font-size: 0.75rem; color: #fff;
}
.drama-info { padding: 15px; }
.drama-info h3 { font-size: 1.1rem; margin-bottom: 5px; }
.drama-tags { display: flex; gap: 8px; margin-bottom: 10px; }
.drama-tags span { font-size: 0.75rem; color: var(--accent); background: rgba(230,57,80,0.1); padding: 2px 6px; border-radius: 4px; }
.drama-info p { font-size: 0.85rem; margin-bottom: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.drama-info .btn { width: 100%; padding: 8px; font-size: 0.9rem; }
@keyframes scroll-x { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-100% - 20px)); } }
@media (hover: none) { .hot-drama-track { animation: none; } }

/* Timeline */
.timeline { display: flex; flex-direction: column; gap: 30px; border-left: 2px solid var(--border-color); padding-left: 30px; margin-left: 20px; }
.timeline-item { position: relative; }
.timeline-item::before {
  content: ''; position: absolute; left: -38px; top: 5px;
  width: 14px; height: 14px; border-radius: 50%; background: var(--accent);
}
.timeline-date { font-size: 1.1rem; font-weight: 700; margin-bottom: 15px; }
.timeline-list { display: flex; flex-direction: column; gap: 15px; }
.timeline-list li { display: flex; justify-content: space-between; background: var(--bg-surface); padding: 15px; border-radius: 8px; border: 1px solid var(--border-color); }
.timeline-list li span:last-child { color: var(--accent); font-size: 0.9rem; }

/* Slider */
.slider-container { position: relative; overflow: hidden; border-radius: 16px; background: var(--bg-surface); border: 1px solid var(--border-color); }
.slider-track { display: flex; transition: transform 0.5s ease; }
.slide { min-width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
.slide-img { height: 400px; }
.slide-img img { width: 100%; height: 100%; object-fit: cover; }
.slide-content { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.slide-content h3 { font-size: 1.8rem; margin-bottom: 15px; }
.slider-dots { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-color); cursor: pointer; transition: var(--transition); }
.dot.active { background: var(--accent); }

/* Comments */
.comments-wall { overflow: hidden; position: relative; height: 300px; background: var(--bg-surface); border-radius: 12px; border: 1px solid var(--border-color); }
.comments-track { display: flex; flex-direction: column; gap: 15px; padding: 20px; animation: scroll-y 15s linear infinite; }
.comments-wall:hover .comments-track { animation-play-state: paused; }
.comment-item { background: var(--bg-elevated); padding: 15px; border-radius: 8px; display: flex; gap: 15px; align-items: flex-start; }
.comment-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.comment-content p { font-size: 0.9rem; margin: 0; color: var(--text-main); }
.comment-content span { font-size: 0.75rem; color: var(--text-muted); }
@keyframes scroll-y { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }

/* App Experience */
.app-experience { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.mockups { position: relative; height: 500px; }
.mockup {
  position: absolute; width: 200px; height: 400px;
  border-radius: 24px; overflow: hidden;
  border: 4px solid var(--bg-elevated); box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  transition: var(--transition);
}
.mockup img { width: 100%; height: 100%; object-fit: cover; }
.mockup:nth-child(1) { left: 10%; top: 10%; z-index: 1; transform: rotate(-10deg); }
.mockup:nth-child(2) { left: 40%; top: 5%; z-index: 3; transform: rotate(5deg); }
.mockup:nth-child(3) { left: 70%; top: 15%; z-index: 2; transform: rotate(-5deg); }
.mockups:hover .mockup { transform: rotate(0) translateX(0); }
.mockups:hover .mockup:nth-child(1) { left: 0; }
.mockups:hover .mockup:nth-child(2) { left: 30%; top: 0; }
.mockups:hover .mockup:nth-child(3) { left: 60%; }
.bubble-tip {
  position: absolute; top: 40%; left: 60%;
  background: var(--text-main); color: var(--bg-base);
  padding: 8px 16px; border-radius: 20px; font-size: 0.9rem; font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3); z-index: 10;
}
.feature-list { display: flex; flex-direction: column; gap: 20px; }
.feature-list li { display: flex; align-items: center; gap: 15px; font-size: 1.1rem; font-weight: 500; }
.feature-list li::before { content: '✓'; color: var(--accent); font-weight: 700; font-size: 1.2rem; }

/* Download Section */
.download-area { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; background: var(--bg-surface); padding: 40px; border-radius: 16px; border: 1px solid var(--border-color); }
.qr-code { width: 200px; height: 200px; background: #fff; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; position: relative; overflow: hidden; }
.qr-pattern { width: 80%; height: 80%; background: repeating-linear-gradient(45deg, #000, #000 10px, #fff 10px, #fff 20px); }
.steps { display: flex; flex-direction: column; gap: 20px; }
.step { display: flex; gap: 15px; }
.step-num { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.step-text h4 { margin-bottom: 5px; }
.step-text p { font-size: 0.9rem; margin: 0; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 15px; }
.faq-item { border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; background: var(--bg-surface); }
.faq-item summary { padding: 20px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.2rem; color: var(--accent); }
.faq-item[open] summary::after { content: '-'; }
.faq-content { padding: 0 20px 20px; color: var(--text-muted); font-size: 0.95rem; }

/* Bottom CTA */
.bottom-cta { text-align: center; padding: 80px 20px; background: linear-gradient(to top, rgba(230,57,80,0.1), transparent); border-bottom: none; }
.bottom-cta h2 { font-size: 2.5rem; margin-bottom: 20px; }
.bottom-cta .btn-group { justify-content: center; margin-top: 30px; }

/* Footer */
footer { padding: 40px 0; text-align: center; border-top: 1px solid var(--border-color); font-size: 0.85rem; color: var(--text-muted); }
footer p { margin-bottom: 10px; }
footer a { color: var(--text-muted); transition: var(--transition); }
footer a:hover { color: var(--text-main); }

/* Fade in animation */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) {
  h1 { font-size: 2.5rem; }
  .hero h1 { font-size: 3rem; }
  .features-grid, .app-experience, .download-area { grid-template-columns: 1fr; gap: 40px; }
  .slide { grid-template-columns: 1fr; }
  .slide-img { height: 300px; }
  .mockups { height: 400px; display: flex; justify-content: center; }
  .mockup { width: 160px; height: 320px; position: relative; left: auto !important; top: auto !important; transform: none !important; margin: 0 -20px; }
  .mockups:hover .mockup { margin: 0; }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  .hero h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .header-inner { justify-content: space-between; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .hero-stats div { flex: 1 1 40%; }
  .timeline-list li { flex-direction: column; gap: 5px; }
  .slide-content { padding: 20px; }
  .slide-img { height: 200px; }
}