/* 基础重置与全局变量 */
:root {
  --c-bg-dark: #121212;
  --c-bg-light: #f8f9fa;
  --c-primary: #e50914;
  --c-primary-hover: #ff333f;
  --c-text-dark: #333;
  --c-text-light: #e0e0e0;
  --c-text-muted: #888;
  --c-border: #eaeaea;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1200px;
  --radius: 8px;
  --spacing-sm: 10px;
  --spacing-md: 20px;
  --spacing-lg: 40px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--c-text-dark);
  background-color: var(--c-bg-light);
  padding-bottom: 80px; /* 留出浮动下载窗空间 */
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* 布局通用 */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 var(--spacing-md); }
.section-title { font-size: 1.8rem; font-weight: bold; margin-bottom: 1rem; text-align: center; }
.section-desc { text-align: center; color: #555; margin-bottom: 2rem; font-size: 0.95rem; }

/* 导航栏 */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: bold; color: var(--c-primary); }
.brand img { height: 32px; width: auto; }
.nav-menu { display: none; gap: 1.5rem; font-size: 0.95rem; color: #555; }
.nav-menu a:hover { color: var(--c-primary); }
.menu-toggle { background: none; border: none; font-size: 1.5rem; color: #333; cursor: pointer; }
.nav-links.active { display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: #fff; padding: 1rem; border-bottom: 1px solid var(--c-border); z-index: 99; }

/* 首屏 Banner */
.hero {
  background: #121212; color: #fff; padding: 40px 0 60px;
  position: relative; overflow: hidden;
}
.hero-content { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero h1 { font-size: 2rem; line-height: 1.3; margin-bottom: 1rem; background: linear-gradient(90deg, #ff8a00, #e52e71); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { color: #ccc; margin-bottom: 2rem; font-size: 1rem; }
.download-group { display: flex; flex-direction: column; gap: 15px; width: 100%; max-width: 300px; }
.btn-download {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 25px; font-weight: bold; font-size: 1rem;
  color: #fff; background: var(--c-primary); transition: transform 0.2s;
}
.btn-download:hover { transform: scale(1.05); background: var(--c-primary-hover); }
.btn-ios { background: #333; border: 1px solid #555; }
.btn-ios:hover { background: #444; }
.hero-images { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 30px; width: 100%; max-width: 500px; }
.hero-images img { border-radius: 8px; object-fit: cover; aspect-ratio: 3/4; width: 100%; }

/* 跑马灯 */
.marquee-wrapper { overflow: hidden; white-space: nowrap; background: #000; padding: 10px 0; border-top: 1px solid #333; border-bottom: 1px solid #333; }
.marquee-content { display: inline-block; animation: marquee 20s linear infinite; }
.marquee-content span { background: linear-gradient(90deg, #ff8a00, #e52e71); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: bold; margin-right: 30px; font-size: 1.1rem; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* 区块底色 */
.bg-real { background-color: #f0f4f8; }
.bg-magic { background-color: #fdfbf7; }
.bg-rank { background-color: #fff5f5; }
.bg-review { background-color: #f3f9f4; }
.bg-member { background-color: #1a1a1a; color: #fff; }
.bg-security { background-color: #eef2f5; }
.bg-feedback { background-color: #fff; }
.bg-faq { background-color: #f9f9f9; }
.bg-youth { background-color: #e8f0fe; }

/* 内容板块间距 */
section { padding: 40px 0; }

/* 剧卡骨架 - 真人短剧 */
.grid-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.drama-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.drama-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.card-info { padding: 10px; }
.card-info h3 { font-size: 1rem; margin-bottom: 5px; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-info .tags { font-size: 0.75rem; color: var(--c-primary); margin-bottom: 5px; }
.card-info .desc { font-size: 0.8rem; color: #666; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-info .date { font-size: 0.7rem; color: #999; margin-top: 5px; display: block; }

/* 时间轴骨架 - 完结魔改剧 */
.timeline-scale { border-left: 2px solid #ddd; margin-left: 10px; padding-left: 20px; }
.timeline-item { position: relative; margin-bottom: 25px; }
.timeline-item::before { content: ''; position: absolute; left: -27px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--c-primary); }
.timeline-time { font-weight: bold; color: var(--c-primary); font-size: 0.9rem; margin-bottom: 5px; display: block; }
.timeline-content { background: #fff; padding: 15px; border-radius: var(--radius); box-shadow: 0 2px 6px rgba(0,0,0,0.04); }
.timeline-content img { width: 100%; height: 120px; object-fit: cover; border-radius: 4px; margin-bottom: 10px; }
.timeline-content h4 { margin-bottom: 5px; font-size: 1rem; }
.timeline-content p { font-size: 0.85rem; color: #555; margin-bottom: 5px; }
.timeline-content .tag { font-size: 0.75rem; background: #f0f0f0; padding: 2px 6px; border-radius: 4px; color: #333; }

/* 排行榜骨架 - 本周热播榜 */
.rank-list { display: flex; flex-direction: column; gap: 10px; }
.rank-item { display: flex; align-items: center; background: #fff; padding: 10px; border-radius: var(--radius); border-left: 4px solid var(--c-primary); }
.rank-num { font-size: 1.5rem; font-weight: bold; color: var(--c-primary); width: 40px; text-align: center; }
.rank-item img { width: 60px; height: 80px; object-fit: cover; border-radius: 4px; margin-right: 15px; }
.rank-info h4 { margin-bottom: 4px; color: #333; }
.rank-info p { font-size: 0.8rem; color: #777; }

/* 问答骨架 - 热门点评 */
.qa-list { display: flex; flex-direction: column; gap: 15px; }
.qa-item { background: #fff; padding: 15px; border-radius: var(--radius); border-left: 4px solid #34a853; }
.qa-q { font-weight: bold; color: #333; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.qa-a { font-size: 0.9rem; color: #555; display: flex; align-items: flex-start; gap: 8px; }
.avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }

/* 会员权益 - 卡片式 */
.member-grid { display: grid; grid-template-columns: 1fr; gap: 15px; }
.member-card { background: #2a2a2a; padding: 20px; border-radius: var(--radius); border: 1px solid #444; }
.member-card h3 { color: #f5a623; margin-bottom: 10px; }
.member-card p { color: #bbb; font-size: 0.9rem; }

/* 隐私安全 - 交替图文 */
.sec-layout { display: flex; flex-direction: column; gap: 20px; }
.sec-item { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.sec-item img { width: 100%; height: 200px; object-fit: cover; }
.sec-text { padding: 15px; }
.sec-text h3 { margin-bottom: 10px; color: #333; }
.sec-text p { font-size: 0.9rem; color: #666; }

/* 意见反馈 - 步骤线 */
.step-line { display: flex; flex-direction: column; gap: 10px; }
.step-item { display: flex; gap: 15px; background: #fff; padding: 15px; border-radius: var(--radius); align-items: center; }
.step-num { width: 30px; height: 30px; background: var(--c-primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; flex-shrink: 0; }
.step-text { font-size: 0.9rem; color: #333; }

/* 常见问题 - 折叠面板 */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
details { background: #fff; border-radius: var(--radius); padding: 10px 15px; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
summary { cursor: pointer; font-weight: bold; color: #333; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 1.2rem; color: var(--c-primary); }
details[open] summary::after { content: '-'; }
details p { margin-top: 10px; font-size: 0.9rem; color: #555; }

/* 未成年保护 - 图片墙 */
.protect-wall { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.protect-wall img { width: 100%; border-radius: var(--radius); object-fit: cover; aspect-ratio: 1; }
.protect-text { grid-column: span 2; background: #fff; padding: 15px; border-radius: var(--radius); margin-top: 10px; font-size: 0.9rem; color: #555; }

/* 底部下载区 */
.footer-download { background: #121212; color: #fff; padding: 40px 0; text-align: center; }
.install-steps { display: flex; flex-direction: column; gap: 20px; margin-bottom: 30px; text-align: left; }
.step-box { background: #1e1e1e; padding: 15px; border-radius: var(--radius); }
.step-box h3 { color: #f5a623; margin-bottom: 10px; font-size: 1.1rem; }
.step-box ol { padding-left: 20px; font-size: 0.9rem; color: #bbb; }
.step-box li { margin-bottom: 8px; }
.footer-download img { display: none; } /* 移动端隐藏，桌面端显示 */

/* 浮动下载窗 */
.floating-download {
  position: fixed; bottom: 15px; left: 50%; transform: translateX(-50%);
  width: 90%; max-width: 400px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px);
  border: 1px solid #ddd; border-radius: 30px; box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  display: flex; align-items: center; justify-content: space-between; padding: 8px 15px; z-index: 99;
}
.float-info { display: flex; align-items: center; gap: 10px; }
.float-info img { height: 30px; }
.float-text { display: flex; flex-direction: column; }
.float-text strong { font-size: 0.9rem; color: #333; }
.float-text span { font-size: 0.7rem; color: #888; }
.float-btns { display: flex; gap: 8px; }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; border-radius: 15px; background: var(--c-primary); color: #fff; text-align: center; }

/* 页脚 */
footer { background: #f1f1f1; color: #666; font-size: 0.8rem; padding: 30px 0 20px; border-top: 1px solid var(--c-border); }
.footer-content { display: flex; flex-direction: column; gap: 20px; text-align: center; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
.footer-nav a { color: #666; }
.footer-nav a:hover { color: var(--c-primary); }
.copyright { text-align: center; line-height: 1.8; }

/* 桌面端响应式 */
@media (min-width: 768px) {
  .nav-menu { display: flex; }
  .menu-toggle { display: none; }
  .nav-links.active { display: flex; flex-direction: row; position: static; padding: 0; border: none; background: none; }
  
  .hero-content { text-align: left; align-items: flex-start; }
  .hero h1 { font-size: 2.8rem; }
  .download-group { flex-direction: row; max-width: 400px; }
  .hero-images { grid-template-columns: repeat(4, 1fr); gap: 15px; max-width: 100%; margin-top: 40px; }
  
  .grid-cards { grid-template-columns: repeat(3, 1fr); }
  .member-grid { grid-template-columns: repeat(2, 1fr); }
  .sec-item { flex-direction: row; }
  .sec-item:nth-child(even) { flex-direction: row-reverse; }
  .sec-item img { width: 40%; height: auto; }
  .sec-text { width: 60%; padding: 30px; display: flex; flex-direction: column; justify-content: center; }
  
  .protect-wall { grid-template-columns: repeat(4, 1fr); }
  .protect-text { grid-column: span 4; }
  
  .install-steps { flex-direction: row; justify-content: center; }
  .step-box { flex: 1; max-width: 400px; }
  
  .footer-download { display: flex; flex-direction: column; align-items: center; position: relative; padding: 60px 0; }
  .footer-download-container { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 800px; text-align: left; }
  .footer-download img { display: block; width: 300px; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
  .footer-text-area { flex: 1; padding-right: 40px; }
  .footer-text-area .download-group { margin-top: 20px; }
  
  .footer-content { flex-direction: row; justify-content: space-between; text-align: left; }
  .copyright { text-align: left; }
}

@media (min-width: 1024px) {
  .grid-cards { grid-template-columns: repeat(4, 1fr); }
  .member-grid { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 3.2rem; }
}