:root {
  --bg-main: #f7f4ef;
  --bg-soft: #efe9e1;
  --bg-dark: #1a1a1a;
  --bg-card: #ffffff;
  --text-main: #2c2c2c;
  --text-light: #666;
  --accent-gold: #c9a86a;
  --accent-red: #b83b3b;
  --accent-purple: #4A3B6B;
  --accent-teal: #2b6b6b;
  --border-color: #e0d8cc;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  --radius: 12px;
  --font-main: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-main); background-color: var(--bg-main); color: var(--text-main); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* Header */
.top-header { background: var(--bg-main); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 700; color: var(--text-main); }
.brand img { height: 32px; width: 32px; border-radius: 8px; object-fit: cover; }
.nav-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--text-light); transition: color 0.3s ease; position: relative; padding: 4px 0; }
.nav-links a:hover { color: var(--accent-red); }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--accent-red); transition: width 0.3s ease; }
.nav-links a:hover::after { width: 100%; }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 16px; color: var(--text-main); cursor: pointer; padding: 8px 12px; border: 1px solid var(--border-color); border-radius: 6px; }

/* Hero */
.hero-section { padding: 60px 24px; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; overflow: hidden; }
.hero-content { max-width: 800px; margin: 0 auto; position: relative; z-index: 2; }
.hero-tag { display: inline-block; background: rgba(201, 168, 106, 0.15); color: var(--accent-gold); padding: 6px 16px; border-radius: 20px; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.hero-content h1 { font-size: 42px; font-weight: 800; margin-bottom: 20px; color: var(--text-main); line-height: 1.3; }
.hero-content h1 span { color: var(--accent-red); }
.hero-desc { font-size: 18px; color: var(--text-light); margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }
.download-group { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }
.dl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 8px; font-size: 15px; font-weight: 600; transition: all 0.2s; cursor: pointer; border: 1px solid transparent; }
.dl-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.dl-btn-primary { background: var(--bg-dark); color: #fff; }
.dl-btn-secondary { background: #fff; color: var(--bg-dark); border-color: var(--border-color); }
.hero-images { display: flex; justify-content: center; gap: 16px; max-width: 1000px; margin: 0 auto; padding: 0 24px; flex-wrap: wrap; }
.hero-images img { width: 260px; height: 360px; border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow); flex-shrink: 0; transition: transform 0.4s ease; }
.hero-images img:hover { transform: translateY(-8px); }

/* Marquee */
.marquee-wrap { width: 100%; background: var(--bg-dark); overflow: hidden; white-space: nowrap; padding: 10px 0; }
.marquee-content { display: inline-block; animation: marquee 20s linear infinite; }
.marquee-content span { font-size: 14px; font-weight: 600; margin-right: 40px; background: linear-gradient(90deg, #f2c94c, #eb5757); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* Section Common */
.section-pad { padding: 80px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.sec-header { text-align: center; margin-bottom: 48px; }
.sec-header h2 { font-size: 32px; font-weight: 700; color: var(--text-main); margin-bottom: 12px; }
.sec-header p { font-size: 16px; color: var(--text-light); }

/* Section 1: AI魔改 (Dark bg) */
.sec-ai { background-color: #222222; color: #fff; }
.sec-ai .sec-header h2 { color: #fff; }
.sec-ai .sec-header p { color: #aaa; }
.ai-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.ai-card { background: #2e2e2e; padding: 24px; border-radius: var(--radius); border: 1px solid #3a3a3a; }
.ai-card h3 { color: var(--accent-gold); font-size: 18px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.ai-card p { color: #ccc; font-size: 14px; }

/* Section 2: 魔改短剧 (Warm bg) */
.sec-drama { background-color: var(--bg-soft); }
.drama-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.drama-text h2 { font-size: 32px; margin-bottom: 24px; }
.drama-list { display: flex; flex-direction: column; gap: 16px; }
.drama-list li { display: flex; gap: 12px; font-size: 15px; color: var(--text-light); }
.drama-list li strong { color: var(--text-main); flex-shrink: 0; width: 80px; }
.drama-image img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Section 3: 热播魔改剧 (White bg) */
.sec-hot { background-color: #fff; }
.hot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; }
.hot-item { background: var(--bg-main); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.3s; }
.hot-item:hover { transform: translateY(-4px); }
.hot-item img { width: 100%; height: 280px; object-fit: cover; }
.hot-info { padding: 16px; }
.hot-info h3 { font-size: 16px; margin-bottom: 8px; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hot-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.hot-tags span { font-size: 12px; background: rgba(0,0,0,0.05); padding: 2px 8px; border-radius: 4px; color: var(--text-light); }
.hot-date { font-size: 12px; color: #999; }

/* Section 4: 今日热播榜 (Dark Purple bg) */
.sec-rank { background-color: var(--accent-purple); color: #fff; }
.sec-rank .sec-header h2 { color: #fff; }
.sec-rank .sec-header p { color: #ccc; }
.rank-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,0.2); }
.timeline-item { position: relative; margin-bottom: 24px; }
.timeline-item::before { content: ''; position: absolute; left: -29px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent-gold); border: 2px solid var(--accent-purple); }
.timeline-time { font-size: 14px; font-weight: 700; color: var(--accent-gold); margin-bottom: 4px; }
.timeline-content { background: rgba(255,255,255,0.1); padding: 12px 16px; border-radius: 8px; font-size: 14px; }
.rank-list { display: flex; flex-direction: column; gap: 16px; }
.rank-item { display: flex; align-items: center; gap: 16px; background: rgba(255,255,255,0.05); padding: 16px; border-radius: 8px; }
.rank-num { font-size: 24px; font-weight: 900; color: var(--accent-gold); opacity: 0.5; width: 40px; }
.rank-text { flex: 1; font-size: 15px; }

/* Section 5: 会员权益 (Light bg) */
.sec-vip { background-color: #eef5f4; }
.vip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.vip-card { background: #fff; padding: 24px; border-radius: var(--radius); text-align: center; border-top: 4px solid var(--accent-teal); }
.vip-card h3 { font-size: 18px; color: var(--accent-teal); margin-bottom: 12px; }
.vip-card p { font-size: 14px; color: var(--text-light); }

/* Section 6: 隐私安全 (White bg) */
.sec-privacy { background-color: #fff; }
.privacy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.privacy-card { border: 1px solid var(--border-color); padding: 24px; border-radius: var(--radius); }
.privacy-card h3 { font-size: 18px; margin-bottom: 12px; color: var(--text-main); }
.privacy-card p { font-size: 14px; color: var(--text-light); }

/* Section 7: 意见反馈 (Warm bg) */
.sec-feedback { background-color: #fcf4e8; }
.fb-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.fb-text h2 { font-size: 32px; margin-bottom: 16px; }
.fb-text p { color: var(--text-light); margin-bottom: 24px; }
.fb-list { display: flex; flex-direction: column; gap: 16px; }
.fb-list li { background: #fff; padding: 16px; border-radius: 8px; font-size: 15px; border-left: 4px solid var(--accent-gold); }
.fb-img img { width: 100%; border-radius: var(--radius); object-fit: cover; }

/* Section 8: 常见问题 (Grey bg) */
.sec-faq { background-color: #f5f5f5; }
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.02); }
.faq-q { padding: 20px; font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.faq-a { padding: 0 20px 20px; color: var(--text-light); font-size: 14px; display: block; }

/* Section 9: 下载专区 */
.sec-download { background-color: var(--bg-dark); color: #fff; text-align: center; }
.sec-download h2 { font-size: 32px; margin-bottom: 16px; }
.sec-download p { color: #aaa; margin-bottom: 32px; }
.download-steps { display: flex; justify-content: center; gap: 32px; margin-bottom: 40px; flex-wrap: wrap; }
.step-item { background: rgba(255,255,255,0.05); padding: 24px; border-radius: 8px; width: 240px; text-align: left; border: 1px solid rgba(255,255,255,0.1); }
.step-item h3 { color: var(--accent-gold); font-size: 16px; margin-bottom: 8px; }
.step-item p { font-size: 14px; color: #ccc; margin-bottom: 0; }
.sec-download .dl-btn-primary { background: var(--accent-red); color: #fff; }
.sec-download .dl-btn-secondary { background: transparent; color: #fff; border-color: #555; }

/* Floating Download */
.floating-dl { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--bg-dark); color: #fff; padding: 12px 24px; border-radius: 30px; display: flex; align-items: center; gap: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.2); z-index: 999; border: 1px solid #333; transition: all 0.3s ease; }
.floating-dl img { width: 32px; height: 32px; border-radius: 6px; }
.floating-dl .float-text { font-size: 14px; font-weight: 600; }
.floating-dl .float-sub { font-size: 12px; color: #aaa; display: block; }
.floating-dl:hover { background: #333; }

/* Footer */
.site-footer { background: #111; color: #888; padding: 40px 24px; text-align: center; font-size: 13px; border-top: 1px solid #222; }
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; flex-wrap: wrap; }
.footer-links a { color: #888; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-info { margin-bottom: 8px; }
.footer-info a { color: #888; text-decoration: underline; }
.update-time { color: #555; font-size: 12px; margin-top: 16px; }

/* Modal for copy link */
.copy-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 1000; align-items: center; justify-content: center; padding: 24px; }
.copy-modal.active { display: flex; }
.modal-box { background: #fff; padding: 32px 24px; border-radius: 16px; max-width: 400px; width: 100%; text-align: center; color: var(--text-main); }
.modal-box p { font-size: 16px; font-weight: 600; margin-bottom: 20px; }
.modal-box .link-box { background: #f5f5f5; padding: 12px; border-radius: 8px; font-size: 14px; color: var(--text-light); word-break: break-all; margin-bottom: 20px; border: 1px solid #eee; }
.modal-box .copy-btn { background: var(--accent-red); color: #fff; padding: 12px 24px; border-radius: 8px; font-size: 16px; font-weight: 600; border: none; cursor: pointer; width: 100%; }
.modal-close { margin-top: 12px; color: #999; background: none; border: none; font-size: 14px; cursor: pointer; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-content h1 { font-size: 36px; }
  .drama-layout, .rank-layout, .fb-layout { grid-template-columns: 1fr; }
  .drama-image img, .fb-img img { max-height: 400px; }
  .hero-images img { width: 200px; height: 280px; }
}

@media (max-width: 768px) {
  .header-inner { justify-content: space-between; }
  .nav-links { display: none; width: 100%; flex-direction: column; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border-color); }
  .nav-links.active { display: flex; }
  .mobile-menu-btn { display: block; }
  .hero-content h1 { font-size: 28px; }
  .hero-desc { font-size: 15px; }
  .download-group { flex-direction: column; align-items: center; }
  .dl-btn { width: 100%; max-width: 300px; }
  .hero-images { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 16px; justify-content: flex-start; padding-left: 24px; padding-right: 24px; }
  .hero-images img { width: 160px; height: 220px; }
  .sec-header h2 { font-size: 26px; }
  .section-pad { padding: 48px 20px; }
  .floating-dl { bottom: 16px; width: calc(100% - 48px); justify-content: center; }
  .footer-links { gap: 16px; font-size: 12px; }
}