:root {
  --bg-main: #1A0C08;
  --bg-dark: #1F0E09;
  --panel-1: #33150E;
  --panel-2: #4A1E13;
  --text-main: #FFF3EA;
  --text-sub: #C29C8A;
  --border-light: rgba(255, 196, 150, .10);
  --border-strong: rgba(255, 196, 150, .20);
  --grad-main: linear-gradient(135deg, #FFC64D 0%, #FF8A3D 50%, #FF5470 100%);
  --grad-glow: radial-gradient(circle, rgba(255, 198, 77, 0.15) 0%, rgba(255, 138, 61, 0.05) 50%, transparent 70%);
  --font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; object-fit: cover; }

/* header */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(26, 12, 8, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  padding: 12px 0;
}
.container {
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: bold; font-size: 18px; }
.brand img { height: 32px; width: 32px; border-radius: 6px; }
.nav-links { display: none; gap: 20px; font-size: 14px; color: var(--text-sub); }
.nav-links a { transition: color 0.3s; }
.nav-links a:hover { color: #FFC64D; }
.mobile-menu-btn { display: block; background: none; border: none; color: var(--text-main); font-size: 16px; cursor: pointer; padding: 4px; }
.mobile-menu { display: none; flex-direction: column; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border-light); margin-top: 12px; }
.mobile-menu.active { display: flex; }
.mobile-menu a { color: var(--text-sub); font-size: 15px; }

/* hero */
.hero { position: relative; padding: 40px 0; background: var(--bg-dark); overflow: hidden; }
.hero-glow { position: absolute; top: -50%; left: 50%; transform: translateX(-50%); width: 100%; height: 100%; background: var(--grad-glow); pointer-events: none; }
.hero-content { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 24px; align-items: center; text-align: center; }
.hero-text h1 { font-size: 28px; line-height: 1.3; margin-bottom: 12px; }
.hero-text h1 span { background: var(--grad-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-text p { color: var(--text-sub); font-size: 15px; margin-bottom: 20px; max-width: 600px; }
.hero-images { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; width: 100%; max-width: 500px; margin: 0 auto; }
.hero-images img { border-radius: 12px; border: 1px solid var(--border-strong); box-shadow: 0 8px 20px rgba(0,0,0,0.5); aspect-ratio: 3/4; }
.download-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border-radius: 24px; font-size: 14px; font-weight: bold; color: #1A0C08; background: var(--grad-main); transition: transform 0.2s, box-shadow 0.2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(255, 138, 61, 0.4); }
.marquee { overflow: hidden; white-space: nowrap; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); padding: 12px 0; background: rgba(51, 21, 14, 0.5); margin-top: 20px; }
.marquee-content { display: inline-block; animation: marquee 15s linear infinite; font-size: 16px; font-weight: bold; }
.marquee-content span { background: var(--grad-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; padding: 0 20px; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* sections general */
.section { padding: 40px 0; }
.section:nth-child(even) { background: var(--bg-dark); }
.section-title { font-size: 22px; margin-bottom: 24px; display: flex; align-items: center; gap: 10px; }
.section-title::before { content: ''; width: 4px; height: 20px; background: var(--grad-main); border-radius: 2px; }
.text-sub { color: var(--text-sub); font-size: 14px; }

/* 1. 真人短剧 */
.real-series { display: grid; grid-template-columns: 1fr; gap: 16px; }
.real-series .card { background: var(--panel-1); border-radius: 16px; border: 1px solid var(--border-light); overflow: hidden; display: flex; flex-direction: column; }
.real-series .card img { width: 100%; aspect-ratio: 4/3; }
.real-series .card-body { padding: 16px; display: flex; flex-direction: column; justify-content: space-between; flex: 1; }
.real-series .card h3 { font-size: 16px; margin-bottom: 8px; color: #FFC64D; }
.real-series .card p { font-size: 13px; color: var(--text-sub); margin-bottom: 12px; flex: 1; }
.real-series .card .tags { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.real-series .card .tag { font-size: 11px; background: rgba(255, 198, 77, 0.1); border: 1px solid rgba(255, 198, 77, 0.3); color: #FFC64D; padding: 2px 8px; border-radius: 4px; }
.real-series .card .date { font-size: 12px; color: var(--text-sub); }

/* 2. 完结魔改剧 */
.finished-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.finished-item { background: var(--panel-2); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; border: 1px solid transparent; }
.finished-item:hover { border-color: var(--border-strong); }
.finished-item img { width: 100%; aspect-ratio: 3/4; border-radius: 8px; }
.finished-item h3 { font-size: 15px; }
.finished-item .meta { font-size: 12px; color: var(--text-sub); display: flex; justify-content: space-between; }

/* 3. 本周热播榜 */
.hot-rank { display: flex; flex-direction: column; gap: 12px; }
.rank-item { display: flex; align-items: center; gap: 12px; background: var(--panel-1); padding: 12px; border-radius: 12px; border: 1px solid var(--border-light); }
.rank-item img { width: 60px; height: 80px; border-radius: 8px; }
.rank-info { display: flex; flex-direction: column; gap: 4px; }
.rank-info h3 { font-size: 15px; }
.rank-info p { font-size: 13px; color: var(--text-sub); }
.rank-num { font-size: 20px; font-weight: bold; font-style: italic; background: var(--grad-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; width: 30px; text-align: center; }

/* 4. 热门点评 */
.reviews { display: flex; flex-direction: column; gap: 16px; }
.review-card { background: var(--panel-2); padding: 16px; border-radius: 16px; border: 1px solid var(--border-light); display: flex; gap: 12px; }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.review-content { flex: 1; }
.review-user { font-size: 14px; font-weight: bold; color: #FFC64D; margin-bottom: 6px; display: flex; justify-content: space-between; }
.review-text { font-size: 14px; color: var(--text-main); }

/* 5. 会员权益 */
.vip-perks { display: grid; grid-template-columns: 1fr; gap: 12px; }
.perk-item { background: var(--panel-1); padding: 16px; border-radius: 12px; border-left: 4px solid #FF8A3D; }
.perk-item h3 { font-size: 16px; margin-bottom: 6px; color: #FFC64D; }
.perk-item p { font-size: 14px; color: var(--text-sub); }

/* 6. 隐私安全 & 7. 意见反馈 & 8. 常见问题 & 9. 未成年保护 (使用问答/特色组合排版) */
.faq-grid { display: flex; flex-direction: column; gap: 16px; }
.faq-item { background: var(--panel-2); border-radius: 12px; padding: 16px; border: 1px solid var(--border-light); }
.faq-item summary { font-size: 15px; font-weight: bold; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: #FFC64D; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 18px; transition: transform 0.3s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 12px; font-size: 14px; color: var(--text-sub); line-height: 1.7; }

.time-axis { display: flex; flex-direction: column; gap: 0; margin-top: 20px; position: relative; padding-left: 20px; }
.time-axis::before { content: ''; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: var(--border-light); }
.axis-item { position: relative; padding-bottom: 20px; }
.axis-item::before { content: ''; position: absolute; left: -20px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--grad-main); transform: translateX(50%); }
.axis-time { font-weight: bold; color: #FFC64D; font-size: 15px; margin-bottom: 4px; }
.axis-content { font-size: 14px; color: var(--text-sub); background: var(--panel-1); padding: 10px 14px; border-radius: 8px; }

/* 图片墙 */
.gallery-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 24px; }
.gallery-wall img { border-radius: 8px; aspect-ratio: 3/4; border: 1px solid var(--border-light); }

/* 底部下载专区 */
.download-section { padding: 40px 0; background: var(--bg-dark); }
.download-layout { display: flex; flex-direction: column; gap: 24px; align-items: center; background: var(--panel-1); padding: 24px; border-radius: 24px; border: 1px solid var(--border-strong); }
.download-img { width: 100%; max-width: 300px; border-radius: 16px; overflow: hidden; border: 2px solid var(--border-strong); }
.download-img img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.download-info { width: 100%; }
.download-info h2 { font-size: 22px; margin-bottom: 12px; color: #FFC64D; }
.download-info p { font-size: 14px; color: var(--text-sub); margin-bottom: 16px; }
.install-steps { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.step { display: flex; gap: 12px; font-size: 14px; background: var(--panel-2); padding: 10px; border-radius: 8px; }
.step-num { font-weight: bold; color: #FF8A3D; }

/* floating download */
.floating-download {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  z-index: 99; background: var(--panel-1); padding: 10px 16px;
  border-radius: 30px; border: 1px solid var(--border-strong);
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
  width: calc(100% - 32px); max-width: 400px;
}
.floating-download img { width: 32px; height: 32px; border-radius: 6px; flex-shrink: 0; }
.floating-info { flex: 1; display: flex; flex-direction: column; }
.floating-title { font-size: 13px; font-weight: bold; color: #FFF3EA; }
.floating-desc { font-size: 11px; color: var(--text-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.floating-btn { background: var(--grad-main); color: #1A0C08; padding: 6px 12px; border-radius: 16px; font-size: 12px; font-weight: bold; white-space: nowrap; }

/* footer */
.footer { padding: 30px 0 100px; background: #110704; color: var(--text-sub); font-size: 12px; border-top: 1px solid var(--border-light); }
.footer-inner { display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.footer-nav a { color: var(--text-sub); }
.footer-nav a:hover { color: #FFC64D; }
.footer-bottom { line-height: 1.8; }
.footer-bottom a { color: var(--text-sub); text-decoration: underline; }
/* popup */
.popup-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.7); z-index: 999;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.popup-overlay.active { display: flex; }
.popup-content {
  background: var(--panel-1); border: 1px solid var(--border-strong);
  border-radius: 16px; padding: 24px; max-width: 320px; width: 100%; text-align: center;
}
.popup-content p { font-size: 14px; margin-bottom: 16px; line-height: 1.5; }
.popup-content input {
  width: 100%; padding: 10px; font-size: 13px; background: var(--bg-main);
  border: 1px solid var(--border-strong); color: var(--text-main); border-radius: 8px; margin-bottom: 16px;
}
.popup-content button {
  background: var(--grad-main); color: #1A0C08; border: none;
  padding: 10px 20px; border-radius: 20px; font-size: 14px; font-weight: bold; cursor: pointer; width: 100%;
}
@media (min-width: 768px) {
  .hero-content { flex-direction: row; text-align: left; justify-content: space-between; }
  .hero-text { flex: 1; }
  .hero-images { flex: 1; max-width: 400px; }
  .hero-text h1 { font-size: 36px; }
  .real-series { grid-template-columns: repeat(2, 1fr); }
  .finished-list { grid-template-columns: repeat(3, 1fr); }
  .vip-perks { grid-template-columns: repeat(2, 1fr); }
  .download-layout { flex-direction: row; padding: 40px; }
  .download-img { width: 40%; max-width: 350px; }
  .download-info { flex: 1; }
  .floating-download { width: auto; max-width: none; bottom: 30px; }
  .floating-desc { max-width: 200px; }
  .header-inner { flex-direction: row; }
  .nav-links { display: flex; }
  .mobile-menu-btn { display: none; }
  .mobile-menu { display: none !important; }
}
@media (min-width: 1024px) {
  .real-series { grid-template-columns: repeat(3, 1fr); }
  .finished-list { grid-template-columns: repeat(4, 1fr); }
  .vip-perks { grid-template-columns: repeat(3, 1fr); }
  .gallery-wall { grid-template-columns: repeat(5, 1fr); }
  .hero-text h1 { font-size: 42px; }
  .section-title { font-size: 26px; }
}