:root {
  --bg-main: #f7f4ef;
  --bg-card: #ffffff;
  --text-main: #2c2c2c;
  --text-light: #666666;
  --accent: #ff5e5e;
  --accent-hover: #e04b4b;
  --gradient-text: linear-gradient(90deg, #ff5e5e, #ff9a44, #8a2387);
  --border-radius: 12px;
  --shadow: 0 4px 12px rgba(0,0,0,0.05);
  --section-padding: 40px 20px;
}

* {
  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-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 80px; /* space for floating bar */
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Typography */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.3;
}

h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-align: center;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  padding: 10px 20px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.3s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

/* Header & Nav */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
}

.brand img {
  height: 32px;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  gap: 16px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-light);
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--accent);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #fff5f5 0%, #f0f0ff 100%);
  padding: 40px 20px 60px;
  border-bottom: 1px solid #eee;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero p {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 24px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
}

.hero-images {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-images img {
  width: 100px;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.hero-images img:hover {
  transform: scale(1.05);
}

.marquee {
  overflow: hidden;
  white-space: nowrap;
  background: #fff;
  padding: 12px 0;
  border-radius: 30px;
  box-shadow: var(--shadow);
  max-width: 800px;
  margin: 0 auto;
}

.marquee-content {
  display: inline-block;
  animation: scroll-left 20s linear infinite;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 0.95rem;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Sections */
section {
  padding: var(--section-padding);
}

/* Section 1: Modified Dramas */
.bg-purple-light {
  background-color: #f4effa;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.drama-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.drama-card:hover {
  transform: translateY(-4px);
}

.drama-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.drama-info {
  padding: 16px;
}

.drama-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 8px 0;
}

.tag {
  background: #ffeaea;
  color: var(--accent);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 10px;
}

.drama-meta {
  font-size: 0.8rem;
  color: var(--text-light);
  display: flex;
  justify-content: space-between;
}

/* Section 2: Re-created Dramas */
.bg-blue-light {
  background-color: #eef5fc;
}

.list-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.list-item {
  display: flex;
  gap: 16px;
  background: #fff;
  border-radius: var(--border-radius);
  padding: 16px;
  box-shadow: var(--shadow);
  align-items: center;
}

.list-item img {
  width: 80px;
  height: 110px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.list-content {
  flex: 1;
}

.list-content p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* Section 3: Original Dramas */
.bg-green-light {
  background-color: #effaf4;
}

.timeline {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #c2e0d0;
}

.timeline-item {
  position: relative;
  padding-left: 50px;
  margin-bottom: 20px;
}

.timeline-time {
  font-weight: 700;
  color: #2e8b57;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2e8b57;
}

.timeline-content {
  background: #fff;
  padding: 12px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

/* Section 4: User Reviews */
.bg-yellow-light {
  background-color: #fffbe6;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.review-card {
  background: #fff;
  padding: 16px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.review-header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.review-name {
  font-weight: 700;
  font-size: 0.9rem;
}

.review-text {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Section 5: VIP Benefits */
.bg-pink-light {
  background-color: #fdf2f8;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.benefit-item {
  background: #fff;
  padding: 20px;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow);
}

.benefit-item h3 {
  color: #d946ef;
}

/* Section 6: Privacy & Safety */
.bg-gray-light {
  background-color: #f3f4f6;
}

.safety-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.safety-item {
  background: #fff;
  padding: 16px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
}

.safety-item::before {
  content: '🔒';
  font-size: 1.5rem;
}

/* Section 7: Feedback */
.bg-orange-light {
  background-color: #fff7ed;
}

.feedback-form {
  background: #fff;
  padding: 24px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  max-width: 600px;
  margin: 0 auto;
}

.feedback-form textarea {
  width: 100%;
  height: 100px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 12px;
  font-family: inherit;
  resize: vertical;
}

/* Section 8: FAQ */
.bg-teal-light {
  background-color: #f0fdfa;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

details {
  background: #fff;
  margin-bottom: 12px;
  border-radius: var(--border-radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

details p {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Section 9: Minor Protection */
.bg-indigo-light {
  background-color: #eef2ff;
}

.protection-content {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  padding: 24px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

/* Section 10: Download */
.download-section {
  background: linear-gradient(135deg, #2c2c2c, #1a1a1a);
  color: #fff;
  text-align: center;
}

.download-section h2 {
  color: #fff;
}

.download-section p {
  color: #aaa;
  margin-bottom: 24px;
}

.install-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.step {
  background: rgba(255,255,255,0.1);
  padding: 16px;
  border-radius: var(--border-radius);
  width: 200px;
}

.step h3 {
  color: var(--accent);
  margin-bottom: 8px;
}

.step p {
  font-size: 0.85rem;
  margin-bottom: 0;
}

.download-btn-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* Floating Download */
.floating-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  padding: 10px 20px;
  border-radius: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 999;
  border: 1px solid #eee;
}

.floating-bar img {
  height: 32px;
  border-radius: 6px;
}

.floating-bar .floating-text {
  font-size: 0.8rem;
  color: var(--text-main);
  line-height: 1.3;
}

.floating-bar .btn {
  padding: 8px 16px;
  font-size: 0.8rem;
}

/* Footer */
footer {
  background: #fff;
  padding: 30px 20px;
  border-top: 1px solid #eee;
  font-size: 0.8rem;
  color: var(--text-light);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.footer-links a {
  color: var(--text-light);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-info {
  font-size: 0.75rem;
  color: #999;
}

details.site-about {
  background: #fafafa;
  border: 1px solid #f0f0f0;
  padding: 8px 12px;
  border-radius: 6px;
  width: 100%;
  max-width: 800px;
  margin-top: 10px;
  box-shadow: none;
}

details.site-about summary {
  font-size: 0.8rem;
  color: var(--text-light);
  cursor: pointer;
  font-weight: normal;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.about-links a {
  color: #999;
  font-size: 0.75rem;
}

.about-links a:hover {
  color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 1.5rem; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    gap: 12px;
  }
  .nav-links.active {
    display: flex;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero-images img {
    width: 70px;
    height: 100px;
  }
  .floating-bar {
    width: 90%;
    padding: 8px 12px;
    bottom: 12px;
  }
  .floating-bar .floating-text {
    display: none;
  }
}

@media (min-width: 1024px) {
  h1 { font-size: 2.5rem; }
  .hero-images img {
    width: 120px;
    height: 170px;
  }
}