:root {
  --bg-main: #0f0c1b;
  --bg-card: #1a1528;
  --text-main: #f0ecf5;
  --text-muted: #a49eb5;
  --accent-pink: #ff2a55;
  --accent-purple: #8a2be2;
  --accent-gold: #ffb800;
  --gradient-marquee: linear-gradient(90deg, #ff2a55, #ffb800, #00e5ff, #ff2a55);
  --radius-lg: 20px;
  --radius-md: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 80px; /* 留给底部浮动窗口 */
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* 头部导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 12, 27, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 1.2rem;
  color: #fff;
}
.brand-logo img { height: 32px; width: auto; border-radius: 6px; }
.nav-links {
  display: flex;
  gap: 20px;
}
.nav-links a {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--accent-pink); }
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--bg-card);
  padding: 10px 20px;
}
.mobile-nav a {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--text-main);
}

/* 首屏区域 */
.hero-section {
  padding: 40px 20px;
  background: radial-gradient(circle at top right, rgba(138,43,226,0.2), transparent 50%),
              radial-gradient(circle at bottom left, rgba(255,42,85,0.15), transparent 50%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-content {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.hero-tag {
  display: inline-block;
  background: rgba(255, 42, 85, 0.15);
  color: var(--accent-pink);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 15px;
  border: 1px solid rgba(255, 42, 85, 0.3);
}
.hero-section h1 {
  font-size: 2.2rem;
  line-height: 1.3;
  margin-bottom: 15px;
  background: linear-gradient(to right, #fff, #dcdcdc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 30px;
}
.hero-carousel {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}
.hero-carousel img {
  width: 30%;
  max-width: 180px;
  border-radius: var(--radius-md);
  object-fit: cover;
  aspect-ratio: 3/4;
  transition: transform 0.3s;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}
.hero-carousel img:hover { transform: translateY(-5px); }
.hero-devices {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
  color: #fff;
  box-shadow: 0 4px 15px rgba(255,42,85,0.4);
}
.btn-primary:hover { transform: scale(1.05); }
.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-secondary:hover { background: rgba(255,255,255,0.2); }

/* 跑马灯 */
.marquee-wrap {
  width: 100%;
  overflow: hidden;
  background: #000;
  padding: 10px 0;
  white-space: nowrap;
  position: absolute;
  bottom: 0;
  left: 0;
}
.marquee-content {
  display: inline-block;
  animation: marquee 20s linear infinite;
  font-weight: bold;
  font-size: 1rem;
}
.marquee-content span {
  margin-right: 30px;
  background: var(--gradient-marquee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 通用区块 */
.section-container {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-title {
  text-align: center;
  margin-bottom: 40px;
}
.section-title h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}
.section-title p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* 同款小说魔改 */
.section-novel { background: #141122; }
.novel-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}
.novel-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.novel-item {
  background: var(--bg-card);
  padding: 15px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent-purple);
  font-size: 0.95rem;
  color: var(--text-main);
}
.novel-poster img {
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(138,43,226,0.2);
}

/* AI短剧 */
.section-ai { background: #0f1a22; }
.ai-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}
.ai-card {
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  transition: border-color 0.3s;
}
.ai-card:hover { border-color: var(--accent-gold); }
.ai-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.ai-info { padding: 10px; }
.ai-info h3 {
  font-size: 1rem;
  margin-bottom: 5px;
}
.ai-info .tags { font-size: 0.75rem; color: var(--text-muted); }
.ai-info .date { font-size: 0.7rem; color: var(--accent-gold); margin-top: 5px; }

/* 完结魔改剧 */
.section-finished { background: #1a111a; }
.finished-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.finished-item {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.finished-item img {
  width: 100px;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.finished-info {
  padding: 15px;
  flex: 1;
}
.finished-info h3 { font-size: 1.1rem; margin-bottom: 5px; }
.finished-info p { font-size: 0.85rem; color: var(--text-muted); }

/* 本周热播榜 - 时间轴 */
.section-rank { background: #121a15; }
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 30px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent-pink);
}
.timeline-item {
  position: relative;
  margin-bottom: 25px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-pink);
  box-shadow: 0 0 10px var(--accent-pink);
}
.timeline-time {
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--accent-pink);
  margin-bottom: 5px;
}
.timeline-content {
  background: rgba(255,255,255,0.05);
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
}

/* 会员权益 */
.section-vip { background: #1a1510; }
.vip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}
.vip-card {
  background: linear-gradient(145deg, #221c14, #18140e);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,184,0,0.2);
  text-align: center;
}
.vip-card h3 { color: var(--accent-gold); font-size: 1.1rem; margin-bottom: 10px; }
.vip-card p { font-size: 0.85rem; color: var(--text-muted); }

/* 隐私安全 */
.section-privacy { background: #0f161a; }
.privacy-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.privacy-text {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.privacy-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.privacy-icon {
  background: rgba(0,229,255,0.1);
  color: #00e5ff;
  padding: 5px 10px;
  border-radius: 8px;
  font-weight: bold;
}
.privacy-item p { font-size: 0.9rem; color: var(--text-muted); }
.privacy-img img {
  border-radius: var(--radius-lg);
  width: 100%;
}

/* 意见反馈 / 常见问题 */
.section-faq { background: #1a1115; }
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-q {
  padding: 15px;
  font-weight: bold;
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}
.faq-a {
  padding: 15px;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* 下载专区 */
.section-download {
  background: linear-gradient(135deg, #1a0f1c, #0f1a1c);
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.download-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
}
.download-img img {
  width: 150px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}
.download-steps {
  text-align: left;
  max-width: 400px;
}
.download-steps h3 { margin-bottom: 10px; font-size: 1.2rem; }
.download-steps ol { padding-left: 20px; color: var(--text-muted); font-size: 0.95rem; }
.download-steps li { margin-bottom: 8px; }

/* 页脚 */
.site-footer {
  background: #08060e;
  padding: 40px 20px 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #666;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.footer-nav a { color: #888; transition: color 0.3s; }
.footer-nav a:hover { color: #fff; }
.footer-info p { margin-bottom: 8px; }
.footer-info a { color: #888; }
.footer-info a:hover { color: #fff; }
.update-time { font-size: 0.75rem; color: #444; margin-top: 10px; }

/* 底部浮动下载窗口 */
.floating-download {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(26, 21, 40, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,42,85,0.3);
  padding: 10px 20px;
  border-radius: 40px;
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 999;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  width: 90%;
  max-width: 450px;
}
.floating-download img { height: 36px; width: auto; border-radius: 6px; }
.floating-text { flex: 1; font-size: 0.8rem; color: var(--text-muted); }
.floating-text strong { display: block; color: #fff; font-size: 0.9rem; margin-bottom: 2px; }
.floating-btn {
  background: var(--accent-pink);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
  white-space: nowrap;
}

/* 响应式 */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .hero-section h1 { font-size: 1.6rem; }
  .hero-carousel img { width: 32%; }
  .hero-devices { flex-direction: column; width: 100%; max-width: 300px; margin: 0 auto; }
  .btn-download { width: 100%; }
  .novel-layout, .privacy-layout { grid-template-columns: 1fr; }
  .novel-poster img { max-width: 100%; }
  .finished-item { flex-direction: column; text-align: center; }
  .finished-item img { width: 100%; height: 200px; }
  .download-layout { flex-direction: column; }
  .floating-download { padding: 8px 15px; }
  .floating-text strong { font-size: 0.8rem; }
  .floating-btn { padding: 6px 12px; font-size: 0.8rem; }
}