:root {
  --bg-main: #0f1115;
  --bg-card: #1a1d24;
  --bg-alt: #222731;
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --brand-gradient: linear-gradient(90deg, #ff007f, #ff8c00, #00f2fe, #4facfe);
  --brand-color: #ff007f;
  --brand-hover: #ff4d9e;
  --radius: 16px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.section-padding { padding: 60px 0; }

/* 跑马灯 */
.marquee-wrap {
  width: 100%;
  overflow: hidden;
  background: #000;
  padding: 10px 0;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
  white-space: nowrap;
}
.marquee-content {
  display: inline-block;
  animation: marquee 20s linear infinite;
  font-weight: 700;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 16px;
}
.marquee-content span { margin-right: 40px; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* 头部导航 */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 17, 21, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #2a2f3a;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: bold; font-size: 20px; color: #fff; }
.brand img { height: 32px; width: auto; border-radius: 8px; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { font-size: 15px; color: var(--text-muted); transition: color 0.3s; position: relative; }
.nav-links a:hover { color: var(--brand-color); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 2px;
  background: var(--brand-gradient); transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }
.mobile-menu-btn { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--bg-card);
  padding: 16px;
  border-bottom: 1px solid #333;
}
.mobile-nav a { padding: 12px 0; border-bottom: 1px solid #2a2f3a; color: var(--text-main); }
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav.active { display: flex; }

/* 首屏 Hero */
.hero {
  position: relative;
  padding: 80px 0 40px;
  background: radial-gradient(circle at top right, rgba(255, 0, 127, 0.15), transparent 50%),
              radial-gradient(circle at bottom left, rgba(0, 242, 254, 0.1), transparent 50%);
}
.hero-content { text-align: center; max-width: 800px; margin: 0 auto 40px; }
.hero h1 { font-size: 36px; line-height: 1.3; margin-bottom: 20px; color: #fff; }
.hero h1 span { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 16px; color: var(--text-muted); margin-bottom: 30px; }
.download-group {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-bottom: 40px;
}
.dl-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; background: var(--bg-card); border: 1px solid #3a404d;
  border-radius: 30px; font-weight: 600; color: #fff; transition: all 0.3s;
  font-size: 15px;
}
.dl-btn:hover { background: var(--brand-color); border-color: var(--brand-color); transform: translateY(-2px); }
.dl-btn.primary { background: var(--brand-gradient); border: none; }
.dl-btn.primary:hover { opacity: 0.9; transform: translateY(-2px); }
.hero-gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 40px;
}
.hero-gallery img { border-radius: var(--radius); width: 100%; aspect-ratio: 3/4; object-fit: cover; }
@media (max-width: 768px) { .hero-gallery { grid-template-columns: repeat(2, 1fr); } }

/* 通用区块标题 */
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 28px; color: #fff; margin-bottom: 10px; }
.section-title h2 span { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-title p { color: var(--text-muted); font-size: 15px; }

/* 经典剧场 - 横向滑动卡片 */
.classic-section { background: #14171d; }
.scroll-row {
  display: flex; gap: 20px; overflow-x: auto; padding-bottom: 20px;
  scroll-snap-type: x mandatory;
}
.scroll-row::-webkit-scrollbar { height: 8px; }
.scroll-row::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
.card-vertical {
  flex: 0 0 180px; scroll-snap-align: start; background: var(--bg-card);
  border-radius: var(--radius); overflow: hidden; transition: transform 0.3s;
}
.card-vertical:hover { transform: translateY(-5px); }
.card-vertical img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.card-vertical .info { padding: 12px; }
.card-vertical h3 { font-size: 15px; color: #fff; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-vertical .tag { font-size: 12px; color: var(--brand-color); margin-bottom: 4px; display: block; }
.card-vertical .desc { font-size: 12px; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-vertical .date { font-size: 11px; color: #555; margin-top: 6px; display: block; }

/* 深夜心跳剧场 - 左右结构 */
.night-section { background: #1a1118; }
.split-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.split-layout > div { flex: 1 1 300px; }
.night-img-main { border-radius: var(--radius); object-fit: cover; width: 100%; max-width: 400px; margin: 0 auto; }
.night-list { display: flex; flex-direction: column; gap: 16px; }
.night-item {
  display: flex; gap: 16px; background: rgba(255,255,255,0.03);
  padding: 16px; border-radius: 12px; border-left: 3px solid #ff4d9e;
}
.night-item img { width: 60px; height: 80px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.night-item h3 { font-size: 16px; color: #fff; margin-bottom: 4px; }
.night-item p { font-size: 13px; color: var(--text-muted); }

/* 原著联动区 - 一问一答 */
.original-section { background: #11161d; }
.qa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.qa-item { background: var(--bg-card); padding: 20px; border-radius: var(--radius); position: relative; overflow: hidden; }
.qa-item .q-icon { color: #00f2fe; font-weight: bold; font-size: 20px; margin-bottom: 10px; display: block; }
.qa-item h3 { font-size: 16px; color: #fff; margin-bottom: 8px; }
.qa-item p { font-size: 14px; color: var(--text-muted); }
.qa-item::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: #00f2fe; }
@media (max-width: 768px) { .qa-grid { grid-template-columns: 1fr; } }

/* 全集短剧 - 网格 */
.full-section { background: #1c1814; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.grid-cards .card-vertical { width: 100%; }

/* AI剧场 - 时间轴 */
.ai-section { background: #0d1b2a; }
.timeline { position: relative; max-width: 600px; margin: 0 auto; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: #4facfe; }
.timeline-item { position: relative; margin-bottom: 30px; }
.timeline-item::before {
  content: ''; position: absolute; left: -36px; top: 4px; width: 12px; height: 12px;
  background: #4facfe; border-radius: 50%; box-shadow: 0 0 0 4px #0d1b2a;
}
.timeline-time { font-weight: bold; color: #4facfe; margin-bottom: 4px; font-size: 14px; }
.timeline-content { background: var(--bg-card); padding: 16px; border-radius: 12px; }
.timeline-content h3 { font-size: 16px; color: #fff; margin-bottom: 4px; }
.timeline-content p { font-size: 13px; color: var(--text-muted); }

/* 用户神评墙 - 卡片墙 */
.reviews-section { background: #1f1826; }
.review-grid { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.review-card {
  background: var(--bg-card); padding: 20px; border-radius: var(--radius);
  width: calc(33.333% - 11px); min-width: 260px; flex-grow: 1;
  display: flex; flex-direction: column; gap: 12px;
}
.review-header { display: flex; align-items: center; gap: 12px; }
.review-header img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #333; }
.review-header span { font-weight: bold; font-size: 15px; color: #fff; }
.review-text { font-size: 14px; color: var(--text-muted); }

/* 未成年人保护 & 意见反馈 */
.guard-section { background: #151e1a; }
.feedback-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.guard-card, .feedback-card { background: var(--bg-card); padding: 24px; border-radius: var(--radius); }
.guard-card h3, .feedback-card h3 { font-size: 18px; color: #fff; margin-bottom: 12px; }
.guard-card p, .feedback-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }
@media (max-width: 768px) { .feedback-grid { grid-template-columns: 1fr; } }

/* 下载专区 & 安装步骤 */
.download-section { background: #0f1115; border-top: 1px solid #2a2f3a; }
.steps { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; margin-bottom: 40px; }
.step-item {
  flex: 1 1 200px; background: var(--bg-card); padding: 20px; border-radius: var(--radius);
  text-align: center; border: 1px solid #333;
}
.step-item .num { display: inline-block; width: 30px; height: 30px; line-height: 30px; background: var(--brand-color); color: #fff; border-radius: 50%; font-weight: bold; margin-bottom: 10px; }
.step-item h3 { font-size: 16px; color: #fff; margin-bottom: 8px; }
.step-item p { font-size: 13px; color: var(--text-muted); }
.dl-footer-group { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

/* 页脚 */
footer {
  background: #090a0c; padding: 40px 0 100px; border-top: 1px solid #1a1d24;
  text-align: center; font-size: 13px; color: #555;
}
footer .brand-info { margin-bottom: 20px; color: #777; }
footer .nav-links-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-bottom: 20px; }
footer .nav-links-footer a { color: #777; transition: color 0.3s; }
footer .nav-links-footer a:hover { color: var(--brand-color); }
footer .copyright { margin-bottom: 10px; }
footer a.beian { color: #555; }
footer a.beian:hover { color: #888; }
footer .update-time { margin-top: 10px; color: #444; }

/* 浮动下载窗口 */
.floating-dl {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: var(--brand-gradient); color: #fff; padding: 12px 24px;
  border-radius: 30px; display: flex; align-items: center; gap: 8px;
  font-weight: bold; box-shadow: 0 8px 24px rgba(255, 0, 127, 0.4);
  z-index: 999; transition: transform 0.3s;
}
.floating-dl:hover { transform: translateX(-50%) scale(1.05); }
.floating-dl img { height: 24px; width: 24px; border-radius: 50%; }

/* 复制提示框 */
.copy-modal-overlay {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.7); z-index: 1000; align-items: center; justify-content: center;
}
.copy-modal {
  background: var(--bg-card); padding: 24px; border-radius: var(--radius);
  width: 90%; max-width: 400px; text-align: center;
}
.copy-modal p { margin-bottom: 16px; color: #fff; font-size: 15px; }
.copy-modal input {
  width: 100%; padding: 10px; margin-bottom: 16px; border-radius: 8px;
  border: 1px solid #444; background: #111; color: #fff; font-size: 14px;
}
.copy-modal button {
  background: var(--brand-color); color: #fff; border: none; padding: 10px 20px;
  border-radius: 8px; font-size: 15px; cursor: pointer; width: 100%;
}

/* 响应式 */
@media (max-width: 1024px) {
  .nav-links { gap: 16px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .hero h1 { font-size: 28px; word-break: break-word; }
  .hero-gallery { flex-wrap: wrap; grid-template-columns: repeat(2, 1fr); }
  .download-group { flex-direction: column; align-items: stretch; }
  .dl-btn { width: 100%; max-width: 300px; margin: 0 auto; }
  .scroll-row { padding-bottom: 10px; }
  .card-vertical { flex: 0 0 150px; }
  .night-img-main { max-width: 100%; }
  .section-title h2 { font-size: 22px; }
  .review-card { width: 100%; min-width: 100%; }
  .floating-dl { bottom: 10px; padding: 10px 20px; font-size: 14px; }
}