:root {
  --primary: #e63946;
  --secondary: #f4a261;
  --dark: #1d1d2b;
  --light: #f9f6f0;
  --gray: #6c6c7a;
  --accent1: #ffe8e8;
  --accent2: #fff3e0;
  --accent3: #e8f5e9;
  --accent4: #e3f2fd;
  --accent5: #f3e5f5;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--light);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* Header */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #eee;
  padding: 12px 0;
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo-area { display: flex; align-items: center; gap: 10px; }
.logo-area img { height: 34px; border-radius: 8px; }
.logo-area span { font-weight: 700; font-size: 1.2rem; color: var(--primary); }
.main-nav { display: flex; gap: 4px; }
.main-nav a {
  padding: 8px 14px; border-radius: 20px; font-size: 0.9rem;
  color: var(--gray); transition: all 0.25s;
}
.main-nav a:hover { background: var(--accent1); color: var(--primary); font-weight: 600; }
.mobile-toggle {
  display: none; background: none; border: 2px solid var(--primary);
  color: var(--primary); border-radius: 8px; padding: 6px 12px;
  font-size: 0.95rem; cursor: pointer;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #2b0a0a 0%, #5c1a1a 40%, #1d1d2b 100%);
  color: #fff; padding: 60px 20px 40px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(230,57,70,0.3), transparent 70%);
}
.hero-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.hero-top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.hero-text h1 { font-size: 2.2rem; line-height: 1.3; margin-bottom: 16px; }
.hero-text h1 span { color: var(--secondary); }
.hero-text p { color: #e0d0d0; margin-bottom: 24px; font-size: 1rem; }
.hero-downloads { display: flex; flex-wrap: wrap; gap: 12px; }
.dl-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 30px; font-weight: 600;
  font-size: 0.95rem; transition: transform 0.2s, box-shadow 0.2s;
  color: #fff; background: var(--primary);
  box-shadow: 0 4px 14px rgba(230,57,70,0.4);
}
.dl-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(230,57,70,0.5); }
.dl-btn.outline { background: transparent; border: 2px solid rgba(255,255,255,0.5); box-shadow: none; }
.dl-btn.outline:hover { background: rgba(255,255,255,0.1); }
.hero-images { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hero-images .poster {
  border-radius: 12px; overflow: hidden; aspect-ratio: 3/4;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.hero-images .poster:nth-child(2) { transform: translateY(-20px); }
.hero-images img { width: 100%; height: 100%; object-fit: cover; }

/* Marquee */
.marquee-wrap {
  margin-top: 40px; overflow: hidden; white-space: nowrap;
  border-top: 1px solid rgba(255,255,255,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding: 14px 0;
}
.marquee-track {
  display: inline-block; animation: scroll 25s linear infinite;
}
.marquee-track span {
  margin: 0 28px; font-weight: 700; font-size: 1.1rem;
  background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Sections */
section { padding: 60px 20px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-title { font-size: 1.8rem; margin-bottom: 10px; }
.section-sub { color: var(--gray); margin-bottom: 36px; }
.tag-label {
  display: inline-block; padding: 4px 12px; border-radius: 20px;
  font-size: 0.8rem; font-weight: 600; background: var(--primary);
  color: #fff; margin-bottom: 12px;
}

/* Section 1: 同款小说魔改 */
.section-novel { background: var(--accent2); }
.novel-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; align-items: start; }
.novel-sticky { position: sticky; top: 100px; }
.novel-sticky .cover { border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.novel-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.novel-item {
  background: #fff; padding: 16px; border-radius: 12px;
  border-left: 4px solid var(--secondary);
  display: flex; flex-direction: column; gap: 4px;
  transition: transform 0.2s;
}
.novel-item:hover { transform: translateX(4px); }
.novel-item strong { font-size: 1rem; }
.novel-item span { font-size: 0.85rem; color: var(--gray); }

/* Section 2: AI短剧 */
.section-ai { background: linear-gradient(180deg, #1d1d2b, #2a2a3d); color: #fff; }
.section-ai .section-sub { color: #aaa; }
.ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ai-card {
  background: rgba(255,255,255,0.06); border-radius: 16px;
  padding: 24px; border: 1px solid rgba(255,255,255,0.1);
  transition: background 0.3s;
}
.ai-card:hover { background: rgba(255,255,255,0.12); }
.ai-card h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--secondary); }
.ai-card p { font-size: 0.9rem; color: #bbb; }
.ai-card .num { font-size: 1.8rem; font-weight: 800; color: rgba(255,255,255,0.15); float: right; }

/* Section 3: 完结魔改剧 */
.section-complete { background: var(--accent3); }
.complete-rows { display: flex; flex-direction: column; gap: 16px; }
.complete-row {
  display: grid; grid-template-columns: 80px 1fr auto;
  align-items: center; gap: 20px; background: #fff;
  padding: 14px 20px; border-radius: 14px;
  transition: box-shadow 0.2s;
}
.complete-row:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.complete-row .idx {
  width: 40px; height: 40px; border-radius: 50%; background: var(--accent3);
  color: #2e7d32; display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.complete-row .info strong { display: block; }
.complete-row .info span { font-size: 0.85rem; color: var(--gray); }
.complete-row .badge {
  padding: 4px 12px; border-radius: 20px; font-size: 0.8rem;
  background: #e8f5e9; color: #2e7d32; font-weight: 600;
}

/* Section 4: 本周热播榜 */
.section-rank { background: var(--accent4); }
.rank-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
.rank-list { display: flex; flex-direction: column; gap: 10px; }
.rank-item {
  display: flex; align-items: center; gap: 16px;
  background: #fff; padding: 12px 18px; border-radius: 12px;
}
.rank-item .no {
  font-size: 1.4rem; font-weight: 800; color: var(--primary);
  min-width: 32px; text-align: center;
}
.rank-item .no.top { color: #f4a261; }
.rank-item .title { flex: 1; font-weight: 600; }
.rank-item .score { font-size: 0.85rem; color: var(--gray); }
.rank-side { display: flex; flex-direction: column; gap: 16px; }
.rank-side .poster-small { border-radius: 12px; overflow: hidden; }

/* Section 5: 会员权益 */
.section-member { background: linear-gradient(135deg, #fdf0f0, #fce4ec); }
.member-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.member-card {
  background: #fff; border-radius: 16px; padding: 24px;
  border-top: 4px solid var(--primary); text-align: center;
}
.member-card h3 { margin-bottom: 10px; }
.member-card p { font-size: 0.9rem; color: var(--gray); }

/* Section 6: 隐私安全 */
.section-privacy { background: #263238; color: #fff; }
.privacy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.privacy-item {
  display: flex; gap: 14px; padding: 18px;
  background: rgba(255,255,255,0.06); border-radius: 12px;
}
.privacy-item .icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,0.1); display: flex;
  align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0;
}
.privacy-item h3 { font-size: 1rem; margin-bottom: 4px; }
.privacy-item p { font-size: 0.85rem; color: #bbb; }

/* Section 7: 意见反馈 */
.section-feedback { background: var(--accent5); }
.feedback-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.feedback-form-box {
  background: #fff; padding: 28px; border-radius: 16px;
}
.feedback-form-box h3 { margin-bottom: 16px; }
.feedback-form-box .row { display: flex; flex-direction: column; gap: 12px; }
.feedback-form-box .field { display: flex; flex-direction: column; gap: 4px; }
.feedback-form-box label { font-size: 0.85rem; font-weight: 600; color: var(--gray); }
.feedback-form-box input, .feedback-form-box textarea {
  padding: 10px 12px; border-radius: 8px; border: 1px solid #ddd;
  font-family: inherit; font-size: 0.9rem; background: #fafafa;
}
.feedback-notes { display: flex; flex-direction: column; gap: 12px; }
.feedback-note {
  background: #fff; padding: 16px; border-radius: 12px;
  border-left: 4px solid var(--primary);
}
.feedback-note strong { font-size: 0.95rem; }
.feedback-note p { font-size: 0.85rem; color: var(--gray); margin-top: 4px; }

/* Section 8: 常见问题 */
.section-faq { background: var(--light); }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: #fff; border-radius: 12px; border: 1px solid #eee;
  overflow: hidden;
}
.faq-item summary {
  padding: 16px 20px; font-weight: 600; cursor: pointer;
  list-style: none; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 20px;
  font-size: 1.4rem; color: var(--primary); transition: transform 0.2s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item .answer { padding: 0 20px 16px; color: var(--gray); font-size: 0.9rem; }

/* Section 9: 下载专区 */
.section-download { background: linear-gradient(135deg, #2b0a0a, #1d1d2b); color: #fff; }
.dl-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.dl-img { border-radius: 16px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.dl-content h2 { font-size: 1.6rem; margin-bottom: 12px; }
.dl-content p { color: #ccc; margin-bottom: 24px; }
.steps { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.step {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(255,255,255,0.06); padding: 12px 16px; border-radius: 10px;
}
.step .n {
  width: 24px; height: 24px; border-radius: 50%; background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; flex-shrink: 0;
}
.step p { font-size: 0.9rem; color: #ddd; margin: 0; }
.dl-devices { display: flex; flex-wrap: wrap; gap: 10px; }

/* Comments */
.section-comments { background: #fffbeb; }
.comment-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.comment {
  background: #fff; padding: 18px; border-radius: 14px;
  display: flex; gap: 12px; align-items: flex-start;
}
.comment .avatar {
  width: 42px; height: 42px; border-radius: 50%; overflow: hidden;
  flex-shrink: 0; border: 2px solid var(--accent1);
}
.comment .avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment .body strong { font-size: 0.9rem; }
.comment .body p { font-size: 0.85rem; color: var(--gray); margin-top: 4px; }

/* Footer */
footer {
  background: #111; color: #888; padding: 40px 20px 30px;
  font-size: 0.8rem;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 30px; margin-bottom: 30px;
}
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-brand .logo-line { display: flex; align-items: center; gap: 8px; }
.footer-brand .logo-line img { height: 28px; border-radius: 6px; }
.footer-brand .logo-line span { color: #eee; font-weight: 600; }
.footer-brand p { color: #777; line-height: 1.7; }
.footer-col h4 { color: #ccc; font-size: 0.85rem; margin-bottom: 12px; }
.footer-col a { display: block; color: #777; margin-bottom: 8px; }
.footer-col a:hover { color: #eee; }
.footer-bottom {
  border-top: 1px solid #222; padding-top: 20px;
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 10px; color: #666;
}
.footer-bottom a { color: #888; }
.footer-bottom time { color: #666; }

/* Floating download */
.floating-dl {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  z-index: 200; background: #fff; border-radius: 50px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  padding: 8px 12px 8px 8px; display: flex; align-items: center; gap: 10px;
  border: 1px solid #eee;
}
.floating-dl img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.floating-dl .fl-text { font-size: 0.75rem; color: var(--gray); line-height: 1.3; }
.floating-dl .fl-text strong { color: var(--dark); display: block; font-size: 0.85rem; }
.floating-dl a {
  background: var(--primary); color: #fff; padding: 8px 16px;
  border-radius: 30px; font-size: 0.85rem; font-weight: 600; white-space: nowrap;
}

/* Mobile nav panel */
.mobile-nav { display: none; }
.mobile-nav.open { display: block; }
.mobile-nav-inner {
  max-width: 1200px; margin: 8px auto 0; padding: 8px 20px 12px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px;
}
.mobile-nav-inner a {
  padding: 10px 12px; border-radius: 8px; font-size: 0.9rem;
  background: #f5f5f5; color: var(--dark);
}

/* Copy modal */
.copy-modal {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.6); align-items: center; justify-content: center;
  padding: 20px;
}
.copy-modal.show { display: flex; }
.copy-box {
  background: #fff; border-radius: 16px; padding: 24px;
  max-width: 360px; width: 100%;
}
.copy-box h3 { font-size: 1rem; margin-bottom: 8px; }
.copy-box p { font-size: 0.85rem; color: var(--gray); margin-bottom: 12px; }
.copy-box input {
  width: 100%; padding: 10px; border-radius: 8px; border: 1px solid #ddd;
  font-size: 0.8rem; color: var(--gray);
}
.copy-box .close-btn {
  margin-top: 14px; width: 100%; padding: 10px;
  border: none; border-radius: 8px; background: var(--primary); color: #fff;
  font-weight: 600; cursor: pointer;
}

@media (max-width: 1024px) {
  .hero-top { grid-template-columns: 1fr; }
  .novel-layout { grid-template-columns: 1fr; }
  .ai-grid { grid-template-columns: repeat(2, 1fr); }
  .rank-layout { grid-template-columns: 1fr; }
  .member-cards { grid-template-columns: repeat(2, 1fr); }
  .feedback-layout { grid-template-columns: 1fr; }
  .dl-layout { grid-template-columns: 1fr; }
  .comment-list { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-toggle { display: block; }
  .hero-text h1 { font-size: 1.5rem; }
  .hero-images { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hero-images .poster:nth-child(2) { transform: translateY(-10px); }
  .novel-list { grid-template-columns: 1fr; }
  .ai-grid { grid-template-columns: 1fr; }
  .member-cards { grid-template-columns: 1fr; }
  .privacy-grid { grid-template-columns: 1fr; }
  .complete-row { grid-template-columns: 48px 1fr; }
  .complete-row .badge { grid-column: 2; justify-self: start; }
  .section-title { font-size: 1.4rem; }
  .footer-top { grid-template-columns: 1fr; }
  .floating-dl { width: calc(100% - 24px); justify-content: space-between; }
  section { padding: 40px 16px; }
}