:root {
  --bg-main: #0f0f13;
  --bg-alt: #16161e;
  --bg-light: #1e1e28;
  --accent: #ff3366;
  --accent-grad: linear-gradient(90deg, #ff3366, #ff9933, #ff3366);
  --text-main: #f0f0f5;
  --text-sub: #a0a0b0;
  --border-radius: 12px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 80px;
}

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

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

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 19, 0.9);
  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: 12px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 18px;
}

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

.nav-links {
  display: flex;
  gap: 20px;
  font-size: 15px;
}

.nav-links a {
  color: var(--text-sub);
  transition: color 0.3s;
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

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

/* Hero Section */
.hero {
  padding: 40px 20px;
  text-align: center;
  background: radial-gradient(circle at top, #2a1a2e 0%, var(--bg-main) 70%);
}

.hero h1 {
  font-size: 32px;
  margin-bottom: 16px;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero p {
  color: var(--text-sub);
  max-width: 600px;
  margin: 0 auto 24px;
  font-size: 16px;
}

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

.btn {
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: bold;
  color: #fff;
  background: var(--accent-grad);
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 51, 102, 0.4);
}

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

.btn-outline:hover {
  background: rgba(255, 51, 102, 0.1);
}

.hero-images {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 30px;
  overflow: hidden;
}

.hero-images img {
  width: 30%;
  max-width: 200px;
  border-radius: var(--border-radius);
  object-fit: cover;
  aspect-ratio: 3/4;
  transition: transform 0.4s;
}

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

/* Marquee */
.marquee-wrap {
  background: #1a1a24;
  padding: 10px 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 {
  display: inline-block;
  margin-right: 30px;
  font-size: 14px;
  font-weight: bold;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* Sections Global */
section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 24px;
  margin-bottom: 24px;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent);
  margin: 8px auto 0;
  border-radius: 2px;
}

/* Section: AI魔改 */
.ai-magic {
  background: var(--bg-alt);
  border-radius: var(--border-radius);
  padding: 30px;
}

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

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

.ai-card:hover {
  transform: translateY(-5px);
}

.ai-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.ai-card-info {
  padding: 12px;
}

.ai-card-info h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.ai-card-info p {
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 8px;
}

.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 51, 102, 0.1);
  color: var(--accent);
}

/* Section: 魔改短剧 */
.remake-drama {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
}

.remake-img {
  flex: 1 1 300px;
  max-width: 400px;
}

.remake-img img {
  border-radius: var(--border-radius);
  width: 100%;
}

.remake-content {
  flex: 2 1 400px;
}

.remake-list {
  list-style: none;
}

.remake-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.remake-list li span:first-child {
  font-weight: bold;
}

.remake-list li span:last-child {
  font-size: 13px;
  color: var(--text-sub);
}

/* Section: 热播魔改剧 */
.hot-drama {
  background: var(--bg-alt);
  border-radius: var(--border-radius);
  padding: 30px;
}

.hot-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.hot-scroll::-webkit-scrollbar {
  height: 4px;
}

.hot-scroll::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 2px;
}

.hot-item {
  flex: 0 0 160px;
}

.hot-item img {
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.hot-item h3 {
  font-size: 14px;
  margin-top: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Section: 今日热播榜 */
.rank-section {
  background: var(--bg-light);
  border-radius: var(--border-radius);
  padding: 30px;
}

.rank-list {
  counter-reset: rank;
}

.rank-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.rank-item::before {
  counter-increment: rank;
  content: counter(rank);
  font-size: 18px;
  font-weight: bold;
  color: var(--accent);
  width: 40px;
  text-align: center;
}

.rank-item span:first-of-type {
  flex: 1;
  font-weight: bold;
}

.rank-item span:last-of-type {
  font-size: 13px;
  color: var(--text-sub);
}

/* Section: 会员权益 */
.vip-section {
  background: var(--bg-alt);
  border-radius: var(--border-radius);
  padding: 30px;
}

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

.vip-card {
  background: var(--bg-light);
  padding: 20px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 51, 102, 0.1);
}

.vip-card h3 {
  font-size: 16px;
  color: var(--accent);
  margin-bottom: 8px;
}

.vip-card p {
  font-size: 13px;
  color: var(--text-sub);
}

/* Section: 隐私安全 & 意见反馈 & FAQ */
.faq-section {
  background: var(--bg-light);
  border-radius: var(--border-radius);
  padding: 30px;
}

.faq-item {
  margin-bottom: 16px;
}

.faq-item h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.faq-item p {
  font-size: 14px;
  color: var(--text-sub);
}

/* Section: 排片时间轴 */
.timeline-section {
  background: var(--bg-alt);
  border-radius: var(--border-radius);
  padding: 30px;
}

.timeline {
  position: relative;
  padding-left: 30px;
  border-left: 2px solid var(--accent);
}

.timeline-item {
  margin-bottom: 24px;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-alt);
}

.timeline-time {
  font-size: 14px;
  font-weight: bold;
  color: var(--accent);
  margin-bottom: 4px;
}

.timeline-content h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.timeline-content p {
  font-size: 13px;
  color: var(--text-sub);
}

/* Footer */
footer {
  background: #0a0a0d;
  color: var(--text-sub);
  text-align: center;
  padding: 30px 20px;
  font-size: 13px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

footer p {
  margin-bottom: 8px;
}

footer a {
  color: var(--text-sub);
  transition: color 0.3s;
}

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

/* Floating Download */
.floating-download {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(26, 26, 36, 0.95);
  backdrop-filter: blur(10px);
  padding: 10px 20px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  z-index: 200;
  border: 1px solid rgba(255, 51, 102, 0.3);
}

.floating-download img {
  height: 30px;
  border-radius: 6px;
}

.floating-download span {
  font-size: 13px;
  font-weight: bold;
}

.floating-download .btn {
  padding: 6px 16px;
  font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-main);
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero h1 {
    font-size: 24px;
  }
  
  .hero-images {
    gap: 8px;
  }
  
  .hero-images img {
    width: 32%;
  }
  
  .remake-drama {
    flex-direction: column;
  }
  
  .remake-img {
    max-width: 100%;
  }
  
  .download-btns {
    gap: 8px;
  }
  
  .btn {
    padding: 8px 16px;
    font-size: 14px;
  }
  
  .floating-download {
    width: 90%;
    left: 5%;
    transform: none;
    justify-content: space-between;
  }
}