/* 基础重置与变量 */
:root {
  --bg-main: #f7f5f0;
  --bg-alt: #1a1a24;
  --brand: #ff4d4f;
  --brand-grad: linear-gradient(90deg, #ff6a00, #ee0979);
  --text-main: #2c2c2c;
  --text-light: #666;
  --text-invert: #fff;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(0,0,0,0.06);
}
* { 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;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-weight: 800; line-height: 1.3; }

/* 公共样式 */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-title { font-size: 28px; margin-bottom: 20px; position: relative; display: inline-block; }
.section-title::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 40%; height: 4px; background: var(--brand-grad); border-radius: 2px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border-radius: 30px; font-weight: bold; transition: all 0.3s ease; cursor: pointer; }
.btn-primary { background: var(--brand-grad); color: var(--text-invert); box-shadow: 0 4px 15px rgba(238,9,121,0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(238,9,121,0.4); }

/* 头部导航 */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(0,0,0,0.05); }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; }
.brand img { height: 32px; width: auto; border-radius: 6px; }
.nav-links { display: flex; gap: 20px; }
.nav-links a { font-size: 15px; font-weight: 600; color: var(--text-main); position: relative; transition: color 0.3s; }
.nav-links a:hover { color: var(--brand); }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--brand); transition: width 0.3s; }
.nav-links a:hover::after { width: 100%; }
.mobile-nav-toggle { display: none; font-size: 24px; cursor: pointer; background: none; border: none; color: var(--text-main); }

/* 首屏 Hero */
.hero { padding: 40px 0; background: linear-gradient(135deg, #fff5f0 0%, #ffe8f0 100%); overflow: hidden; }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 30px; }
.hero-text h1 { font-size: 36px; margin-bottom: 16px; background: var(--brand-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-text p { font-size: 16px; color: var(--text-light); max-width: 600px; margin: 0 auto 24px; }
.hero-download-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 30px; }
.device-btn { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #ddd; padding: 10px 20px; border-radius: 30px; font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,0.05); transition: all 0.3s; }
.device-btn:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.hero-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; width: 100%; max-width: 900px; }
.hero-gallery img { border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; aspect-ratio: 3/4; transition: transform 0.3s; }
.hero-gallery img:hover { transform: scale(1.03); }

/* 跑马灯 */
.marquee-wrap { background: #1a1a24; color: transparent; padding: 12px 0; overflow: hidden; white-space: nowrap; }
.marquee-text { display: inline-block; animation: scroll-left 20s linear infinite; font-size: 16px; font-weight: bold; }
.marquee-text span { background: linear-gradient(90deg, #ff6a00, #ee0979); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-right: 30px; }
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 栏目通用区块 */
.section { padding: 60px 0; }
.section-dark { background: var(--bg-alt); color: var(--text-invert); }
.section-dark .section-title { color: var(--text-invert); }
.section-dark .section-title::after { background: linear-gradient(90deg, #ff6a00, #ee0979); }

/* 魔改漫剧 & 今日上新 (左右结构，左竖图右文案) */
.layout-split { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: center; }
.vertical-img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.content-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.content-item { background: #fff; padding: 15px; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.03); }
.content-item h3 { font-size: 18px; margin-bottom: 8px; color: var(--brand); }
.content-item p { font-size: 14px; color: var(--text-light); }

/* 原著联动区 */
.layout-reverse { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: center; }
.text-box { background: #fff; padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow); }
.text-box h3 { font-size: 22px; margin-bottom: 15px; }
.text-box p { font-size: 15px; color: var(--text-light); margin-bottom: 15px; }

/* 全集短剧 (卡片网格) */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.3s; }
.card:hover { transform: translateY(-5px); }
.card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.card-info { padding: 15px; }
.card-info h3 { font-size: 16px; margin-bottom: 6px; }
.card-info .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.card-info .tag { background: #f0f0f0; color: var(--text-light); font-size: 12px; padding: 2px 8px; border-radius: 10px; }
.card-info .date { font-size: 12px; color: #999; }

/* AI 剧场 (时间轴) */
.timeline { position: relative; padding-left: 30px; margin-top: 30px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--brand); }
.timeline-item { position: relative; margin-bottom: 24px; }
.timeline-item::before { content: ''; position: absolute; left: -30px; top: 6px; width: 18px; height: 18px; background: #fff; border: 3px solid var(--brand); border-radius: 50%; }
.timeline-time { font-weight: bold; color: var(--brand); font-size: 16px; margin-bottom: 4px; }
.timeline-content { font-size: 14px; color: var(--text-light); }

/* 用户神评墙 */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.review-card { background: rgba(255,255,255,0.1); padding: 20px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.2); }
.review-user { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.review-user span { font-weight: bold; font-size: 15px; }
.review-text { font-size: 14px; line-height: 1.5; }

/* 未成年人保护 & 意见反馈 (一问一答) */
.faq-list { display: flex; flex-direction: column; gap: 16px; max-width: 800px; margin: 0 auto; }
.faq-item { background: #fff; padding: 20px; border-radius: var(--radius); box-shadow: 0 2px 10px rgba(0,0,0,0.03); }
.faq-q { font-weight: bold; font-size: 16px; margin-bottom: 8px; color: var(--brand); }
.faq-a { font-size: 14px; color: var(--text-light); }

/* 下载专区 */
.download-section { text-align: center; background: linear-gradient(135deg, #1a1a24 0%, #2a2a3a 100%); color: var(--text-invert); }
.download-section .section-title::after { background: var(--brand-grad); }
.steps { display: flex; justify-content: center; gap: 30px; margin: 40px 0; flex-wrap: wrap; }
.step { background: rgba(255,255,255,0.05); padding: 30px 20px; border-radius: var(--radius); width: 250px; border: 1px solid rgba(255,255,255,0.1); }
.step h3 { font-size: 20px; margin-bottom: 10px; color: var(--brand); }
.step p { font-size: 14px; opacity: 0.8; }
.download-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 30px; }
.dl-btn { background: #fff; color: var(--text-main); padding: 14px 30px; border-radius: 30px; font-weight: bold; font-size: 16px; display: inline-flex; align-items: center; gap: 8px; transition: all 0.3s; }
.dl-btn:hover { background: var(--brand-grad); color: #fff; transform: translateY(-2px); }

/* 页脚 */
.site-footer { background: #111; color: #888; padding: 40px 0; font-size: 13px; text-align: center; }
.footer-inner { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.footer-nav a { color: #aaa; margin: 0 10px; }
.footer-nav a:hover { color: #fff; }
.footer-copy { font-size: 12px; }
.footer-beian a { color: #888; }
.footer-beian a:hover { color: #aaa; }

/* 浮动下载窗口 */
.floating-dl { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 999; background: #fff; padding: 10px 20px; border-radius: 40px; box-shadow: 0 4px 20px rgba(0,0,0,0.15); display: flex; align-items: center; gap: 12px; }
.floating-dl img { width: 32px; height: 32px; border-radius: 6px; }
.floating-dl a { background: var(--brand-grad); color: #fff; padding: 8px 20px; border-radius: 20px; font-weight: bold; font-size: 14px; }

/* 响应式 768px */
@media (max-width: 768px) {
  .header-inner { height: 56px; }
  .nav-links { display: none; width: 100%; flex-direction: column; position: absolute; top: 56px; left: 0; background: #fff; padding: 20px; box-shadow: 0 10px 15px rgba(0,0,0,0.05); }
  .nav-links.active { display: flex; }
  .mobile-nav-toggle { display: block; }
  .hero-text h1 { font-size: 26px; word-break: break-all; }
  .hero-gallery { grid-template-columns: repeat(2, 1fr); }
  .hero-download-btns { flex-direction: column; width: 100%; max-width: 300px; margin: 0 auto 20px; }
  .device-btn { width: 100%; justify-content: center; }
  .layout-split, .layout-reverse { grid-template-columns: 1fr; gap: 20px; }
  .content-list { grid-template-columns: 1fr; }
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: 1fr; }
  .download-btns { flex-direction: column; align-items: center; }
  .dl-btn { width: 100%; max-width: 300px; justify-content: center; }
  .floating-dl { width: 90%; max-width: 320px; justify-content: center; bottom: 15px; padding: 8px 12px; }
}

/* 响应式 1024px */
@media (max-width: 1024px) {
  .grid-cards { grid-template-columns: repeat(3, 1fr); }
}