:root {
  --bg-dark: #12101a;
  --bg-light: #fdfaf6;
  --primary: #ff4d6d;
  --secondary: #7b2cbf;
  --accent: #ff9e00;
  --text-main: #2d2d2d;
  --text-light: #f0f0f0;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-family); background-color: var(--bg-dark); color: var(--text-main); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* Header & Nav */
header { background: rgba(18, 16, 26, 0.95); position: sticky; top: 0; z-index: 100; backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,0.1); }
.header-container { max-width: 1200px; margin: 0 auto; padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; }
.logo-group { display: flex; align-items: center; gap: 10px; }
.logo-group img { height: 32px; width: auto; }
.logo-group span { color: var(--text-light); font-weight: bold; font-size: 18px; }
.nav-links { display: flex; gap: 15px; }
.nav-links a { color: #ccc; font-size: 14px; transition: color 0.3s; }
.nav-links a:hover { color: var(--primary); }
.mobile-menu-btn { display: none; color: white; font-size: 24px; background: none; border: none; cursor: pointer; }

/* Hero Section */
.hero { position: relative; padding: 60px 20px; background: linear-gradient(135deg, #1a0b2e 0%, #2d1031 100%); overflow: hidden; text-align: center; }
.hero-content { max-width: 800px; margin: 0 auto; position: relative; z-index: 2; }
h1 { font-size: 32px; color: #fff; margin-bottom: 20px; line-height: 1.3; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
h1 span { color: var(--primary); }
.hero-desc { color: #bbb; font-size: 16px; margin-bottom: 30px; }
.hero-images { display: flex; justify-content: center; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; }
.hero-img-box { width: 120px; height: 180px; border-radius: 12px; overflow: hidden; border: 2px solid rgba(255,255,255,0.2); box-shadow: 0 8px 16px rgba(0,0,0,0.3); transition: transform 0.3s; }
.hero-img-box:hover { transform: translateY(-5px); border-color: var(--primary); }
.hero-img-box img { width: 100%; height: 100%; object-fit: cover; }
.download-btns { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 24px; border-radius: 30px; font-weight: bold; font-size: 15px; transition: all 0.3s; text-align: center; }
.btn-android { background: #34a853; color: white; }
.btn-ios { background: #000; color: white; border: 1px solid #333; }
.btn-web { background: var(--accent); color: white; }
.btn-harmony { background: #007dff; color: white; }
.btn:hover { opacity: 0.9; transform: scale(1.05); }
.marquee-container { position: absolute; bottom: 0; left: 0; width: 100%; overflow: hidden; background: rgba(0,0,0,0.5); padding: 8px 0; }
.marquee-text { white-space: nowrap; display: inline-block; animation: marquee 15s linear infinite; font-size: 14px; font-weight: bold; background: linear-gradient(90deg, #ff4d6d, #ff9e00, #7b2cbf); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
@keyframes marquee { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* Sections */
.section-title { text-align: center; font-size: 24px; margin-bottom: 30px; color: var(--text-main); position: relative; }
.section-title::after { content: ''; display: block; width: 40px; height: 4px; background: var(--primary); margin: 10px auto 0; border-radius: 2px; }
section { padding: 60px 20px; }
.container { max-width: 1200px; margin: 0 auto; }

/* Section 1: 同款魔改 */
.sec-magic { background-color: var(--bg-light); }
.magic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.magic-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.05); transition: transform 0.3s; }
.magic-card:hover { transform: translateY(-5px); }
.magic-card img { width: 100%; height: 260px; object-fit: cover; }
.magic-info { padding: 15px; }
.magic-info h3 { font-size: 16px; margin-bottom: 8px; color: var(--text-main); }
.magic-info p { font-size: 13px; color: #666; margin-bottom: 10px; }
.tag { display: inline-block; padding: 4px 8px; background: #ffe5e5; color: var(--primary); border-radius: 4px; font-size: 12px; }

/* Section 2: 完结魔改剧 */
.sec-complete { background-color: #f0f4f8; }
.complete-list { display: flex; flex-direction: column; gap: 15px; }
.complete-item { display: flex; background: #fff; border-radius: 12px; padding: 15px; align-items: center; gap: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.complete-item img { width: 80px; height: 110px; object-fit: cover; border-radius: 8px; }
.complete-text h3 { font-size: 18px; margin-bottom: 5px; }
.complete-text p { font-size: 14px; color: #666; }

/* Section 3: 本周热播榜 */
.sec-rank { background-color: #fff4e6; }
.rank-container { display: flex; gap: 30px; }
.rank-list { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.rank-item { display: flex; align-items: center; background: #fff; padding: 12px 15px; border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,0.05); }
.rank-num { font-size: 20px; font-weight: bold; color: var(--primary); width: 30px; }
.rank-name { flex: 1; font-weight: bold; font-size: 15px; }
.rank-score { color: var(--accent); font-weight: bold; }
.rank-image { width: 200px; }
.rank-image img { width: 100%; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

/* Section 4: 用户神评 */
.sec-reviews { background-color: #e6f0fa; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.review-card { background: #fff; padding: 20px; border-radius: 12px; display: flex; gap: 15px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: contain; background: #f0f0f0; padding: 5px; }
.review-content h4 { font-size: 14px; margin-bottom: 5px; color: var(--secondary); }
.review-content p { font-size: 13px; color: #555; }

/* Section 5: 会员权益 */
.sec-vip { background-color: #2d1031; color: white; }
.sec-vip .section-title { color: white; }
.vip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.vip-card { background: rgba(255,255,255,0.1); padding: 20px; border-radius: 12px; text-align: center; border: 1px solid rgba(255,255,255,0.1); }
.vip-card h3 { font-size: 18px; margin-bottom: 10px; color: var(--accent); }
.vip-card p { font-size: 13px; color: #ccc; }

/* Section 6: 隐私安全 & 意见反馈 & 常见问题 */
.sec-security { background-color: var(--bg-light); }
.qa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.qa-col h2 { font-size: 20px; margin-bottom: 20px; color: var(--secondary); }
.qa-item { margin-bottom: 15px; background: #fff; padding: 15px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.qa-item h3 { font-size: 15px; margin-bottom: 5px; color: var(--text-main); }
.qa-item p { font-size: 13px; color: #666; }

/* Section 7: 时间轴排片 */
.sec-timeline { background-color: #f9f9f9; }
.timeline { position: relative; max-width: 600px; margin: 0 auto; padding: 20px 0; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: #ddd; transform: translateX(-50%); }
.timeline-item { position: relative; margin-bottom: 20px; display: flex; justify-content: flex-end; padding-right: 30px; width: 50%; }
.timeline-item:nth-child(even) { align-self: flex-end; justify-content: flex-start; padding-right: 0; padding-left: 30px; margin-left: 50%; }
.timeline-item::after { content: ''; position: absolute; right: -6px; top: 15px; width: 10px; height: 10px; background: var(--primary); border-radius: 50%; border: 2px solid #fff; }
.timeline-item:nth-child(even)::after { left: -6px; right: auto; }
.time-box { background: #fff; padding: 12px 15px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); width: 100%; }
.time-box strong { display: block; color: var(--primary); font-size: 16px; margin-bottom: 4px; }
.time-box span { font-size: 13px; color: #666; }

/* Section 8: 下载专区 */
.sec-download { background: #1a0b2e; color: white; text-align: center; }
.sec-download .section-title { color: white; }
.download-wrapper { display: flex; align-items: center; justify-content: center; gap: 40px; max-width: 900px; margin: 0 auto; flex-wrap: wrap; }
.download-steps { text-align: left; flex: 1; min-width: 300px; }
.step { margin-bottom: 15px; background: rgba(255,255,255,0.05); padding: 15px; border-radius: 8px; }
.step h3 { font-size: 16px; color: var(--accent); margin-bottom: 5px; }
.step p { font-size: 13px; color: #bbb; }
.download-poster { width: 200px; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
.download-poster img { width: 100%; height: auto; }

/* Footer */
footer { background: #0d0914; color: #888; text-align: center; padding: 40px 20px; font-size: 13px; }
footer p { margin-bottom: 10px; }
footer a { color: #aaa; }
footer a:hover { color: white; }

/* Floating Download */
.float-download { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: linear-gradient(90deg, var(--primary), var(--secondary)); padding: 10px 25px; border-radius: 30px; color: white; display: flex; align-items: center; gap: 10px; box-shadow: 0 4px 15px rgba(255, 77, 109, 0.4); z-index: 99; font-weight: bold; white-space: nowrap; }
.float-download img { height: 24px; width: 24px; border-radius: 50%; background: white; padding: 2px; }
.float-download span { font-size: 14px; }

/* Baidu Browser Modal */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 999; justify-content: center; align-items: center; }
.modal-content { background: #fff; padding: 30px; border-radius: 12px; text-align: center; max-width: 90%; width: 350px; color: #333; }
.modal-content p { margin-bottom: 20px; font-size: 15px; }
.modal-content input { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 6px; margin-bottom: 15px; text-align: center; font-size: 14px; }
.modal-content button { padding: 10px 20px; background: var(--primary); color: white; border: none; border-radius: 6px; cursor: pointer; font-size: 15px; }

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: #12101a; padding: 20px; border-bottom: 1px solid #333; }
  .nav-links.active { display: flex; }
  .mobile-menu-btn { display: block; }
  .hero h1 { font-size: 24px; }
  .hero-images { gap: 10px; }
  .hero-img-box { width: 90px; height: 135px; }
  .qa-grid { grid-template-columns: 1fr; }
  .timeline::before { left: 20px; }
  .timeline-item { width: 100%; justify-content: flex-start; padding-left: 50px; padding-right: 0; }
  .timeline-item:nth-child(even) { margin-left: 0; padding-left: 50px; }
  .timeline-item::after { left: 14px; right: auto; }
  .rank-container { flex-direction: column; }
  .rank-image { width: 100%; max-width: 300px; margin: 0 auto; }
  .download-wrapper { flex-direction: column; }
  .float-download { width: auto; padding: 8px 20px; bottom: 15px; }
  .float-download span { font-size: 13px; }
}