:root {
  --lilac: #f7f4ff;
  --lavender: #eee7ff;
  --purple: #7c4dff;
  --pink: #ff4fa3;
  --cyan: #00c9d6;
  --yellow: #ffc93c;
  --ink: #1a1526;
  --paper: #ffffff;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --border-thick: 3px solid var(--ink);
  --shadow-solid: 4px 4px 0 var(--ink);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-main);
  background-color: var(--lilac);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: radial-gradient(var(--lavender) 2px, transparent 2px);
  background-size: 24px 24px;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; font-family: inherit; }

/* 吸顶导航 */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper); border-bottom: var(--border-thick);
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 5%; height: 64px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; }
.nav-brand img { height: 32px; border-radius: 6px; border: 2px solid var(--ink); }
.nav-links { display: flex; gap: 20px; font-weight: 700; font-size: 15px; }
.nav-links a:hover { color: var(--purple); }
.nav-right { display: flex; align-items: center; gap: 15px; }
.search-btn { background: var(--lavender); padding: 6px 12px; border-radius: 20px; font-size: 14px; font-weight: 700; border: 2px solid var(--ink); }
.btn-download {
  background: var(--purple); color: #fff; padding: 8px 18px; border-radius: 20px;
  font-weight: 900; border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink);
  transition: transform 0.2s;
}
.btn-download:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.hamburger { display: none; font-size: 24px; font-weight: 900; }

/* 通用区块 */
section { padding: 60px 5%; position: relative; }
.section-title { font-size: 32px; font-weight: 900; margin-bottom: 10px; text-align: center; position: relative; z-index: 2;}
.section-subtitle { text-align: center; color: #666; margin-bottom: 40px; font-weight: 600; }
.eyebrow { display: inline-block; background: var(--yellow); padding: 2px 10px; font-weight: 900; border: 2px solid var(--ink); transform: rotate(-2deg); margin-bottom: 10px; }

/* 首屏 */
.hero { display: flex; flex-wrap: wrap; padding: 40px 0; background: var(--lavender); border-bottom: var(--border-thick); min-height: calc(100vh - 64px); align-items: center;}
.hero-left { flex: 1 1 500px; padding: 0 5%; position: relative;}
.badge-new { display: inline-block; background: var(--pink); color: #fff; font-weight: 900; padding: 4px 12px; border-radius: 20px; border: 2px solid var(--ink); margin-bottom: 20px; font-size: 14px; }
.hero h1 { font-size: 48px; font-weight: 900; line-height: 1.2; margin-bottom: 20px; }
.hero h1 span { color: var(--purple); }
.hero-desc { font-size: 18px; color: #444; margin-bottom: 30px; font-weight: 600; max-width: 500px; }
.hero-cta { display: flex; gap: 15px; margin-bottom: 40px; }
.btn-primary { background: var(--cyan); color: var(--ink); padding: 12px 30px; border-radius: 30px; font-weight: 900; font-size: 18px; border: var(--border-thick); box-shadow: var(--shadow-solid); transition: all 0.2s; }
.btn-secondary { background: var(--paper); color: var(--ink); padding: 12px 30px; border-radius: 30px; font-weight: 900; font-size: 18px; border: var(--border-thick); box-shadow: var(--shadow-solid); transition: all 0.2s; }
.btn-primary:hover, .btn-secondary:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
.hero-stats { display: flex; gap: 30px; }
.stat-item { display: flex; flex-direction: column; }
.stat-num { font-size: 28px; font-weight: 900; color: var(--purple); line-height: 1; }
.stat-label { font-size: 14px; font-weight: 700; color: #666; }

.hero-right { flex: 1 1 400px; display: flex; justify-content: center; align-items: center; position: relative; padding: 20px;}
.book-spine { width: 10px; height: 80%; background: #ccc; border-radius: 5px; box-shadow: inset -2px 0 5px rgba(0,0,0,0.1); margin-right: -5px; z-index: 1; }
.book-cover { width: 300px; aspect-ratio: 2/3; border: var(--border-thick); border-radius: 0 10px 10px 0; background: var(--paper); box-shadow: 10px 10px 0 var(--ink); position: relative; overflow: hidden; }
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.bubble { position: absolute; background: #fff; border: 2px solid var(--ink); padding: 8px 15px; border-radius: 20px; font-weight: 900; font-size: 14px; box-shadow: 3px 3px 0 var(--ink); z-index: 3;}
.bubble-1 { top: 20px; left: -30px; }
.bubble-2 { bottom: 30px; right: -20px; background: var(--yellow); }

/* 跑马灯 */
.marquee-wrap { background: var(--ink); color: var(--paper); padding: 10px 0; overflow: hidden; white-space: nowrap; border-bottom: var(--border-thick); display: flex;}
.marquee-content { display: flex; animation: scroll 25s linear infinite; }
.marquee-item { margin: 0 20px; font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px;}
.marquee-item span { color: var(--yellow); }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* 三大看点 */
.features { background: var(--paper); border-bottom: var(--border-thick); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.feature-card { border: var(--border-thick); border-radius: 15px; padding: 25px; position: relative; background: var(--lilac); transition: transform 0.2s; }
.feature-card:hover { transform: translateY(-5px); }
.feat-num { font-size: 40px; font-weight: 900; color: var(--lavender); -webkit-text-stroke: 2px var(--ink); position: absolute; top: 10px; right: 20px; line-height: 1; opacity: 0.8;}
.feature-card h3 { font-size: 22px; font-weight: 900; margin-bottom: 15px; margin-top: 20px; }
.feature-card p { font-size: 15px; color: #444; }

/* 热播榜 */
.leaderboard { background: var(--lilac); }
.tabs { display: flex; justify-content: center; gap: 15px; margin-bottom: 30px; }
.tab-btn { background: var(--paper); border: 2px solid var(--ink); padding: 10px 20px; border-radius: 20px; font-weight: 900; font-size: 16px; color: var(--ink); transition: all 0.2s;}
.tab-btn.active { background: var(--purple); color: #fff; box-shadow: 5px 5px 0 var(--ink); transform: translate(-2px, -2px);}
.board-content { max-width: 800px; margin: 0 auto; background: var(--paper); border: var(--border-thick); border-radius: 20px; padding: 30px; box-shadow: var(--shadow-solid); display: flex; flex-direction: column; gap: 20px;}
.rank-item { display: flex; align-items: center; gap: 20px; border-bottom: 3px dashed var(--lavender); padding-bottom: 15px; }
.rank-item:last-child { border-bottom: none; padding-bottom: 0; }
.rank-badge { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); background: var(--yellow); display: flex; justify-content: center; align-items: center; font-weight: 900; font-size: 18px; flex-shrink: 0;}
.rank-item:nth-child(1) .rank-badge { background: var(--pink); color: #fff; }
.rank-item:nth-child(2) .rank-badge { background: var(--cyan); }
.rank-item:nth-child(3) .rank-badge { background: #ccc; }
.rank-info { flex-grow: 1; }
.rank-title { font-size: 18px; font-weight: 900; }
.rank-meta { font-size: 14px; color: #666; font-weight: 600; margin-top: 4px;}
.rank-heat { font-size: 18px; font-weight: 900; color: var(--purple); text-align: right; }
.rank-heat span { font-size: 12px; color: #666; }
.data-card { background: var(--cyan); color: var(--ink); padding: 20px; border: var(--border-thick); border-radius: 15px; text-align: center; margin-top: 25px; max-width: 800px; margin-left: auto; margin-right: auto; display: block; box-shadow: var(--shadow-solid);}
.data-card h4 { font-size: 24px; font-weight: 900; }
.data-card p { font-weight: 700; }

/* 片库 */
.vault { background: var(--paper); border-bottom: var(--border-thick); border-top: var(--border-thick);}
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.chip { background: var(--lavender); padding: 8px 20px; border-radius: 20px; font-size: 14px; font-weight: 700; border: 2px solid transparent; transition: all 0.2s; }
.chip.active { border-color: var(--ink); background: var(--yellow); box-shadow: 2px 2px 0 var(--ink);}
.grid-vault { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: start; }
.vault-card { border: var(--border-thick); border-radius: 10px; overflow: hidden; background: var(--lilac); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);}
.vault-card:hover { transform: translateY(-10px) scale(1.02); z-index: 10; box-shadow: 10px 10px 0 var(--ink);}
.vault-card:nth-child(even) { margin-top: 40px; }
.vault-img-wrap { position: relative; aspect-ratio: 2/3; border-bottom: var(--border-thick); }
.vault-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.corner-tag { position: absolute; top: 10px; left: 10px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.vault-info { padding: 12px; }
.vault-title { font-size: 16px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.vault-meta { font-size: 12px; font-weight: 600; color: #666; margin-top: 5px; display: flex; justify-content: space-between;}

/* 魔改多结局 */
.alchemy { background: var(--lilac); }
.alchemy-wrap { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: center;}
.alchemy-text { flex: 1 1 400px; max-width: 500px;}
.alchemy-text ul { margin-top: 25px; }
.alchemy-text li { margin-bottom: 20px; position: relative; padding-left: 30px; }
.alchemy-text li::before { content: "✦"; position: absolute; left: 0; top: 0; color: var(--pink); font-size: 20px; font-weight: 900;}
.alchemy-text li strong { font-size: 18px; display: block; margin-bottom: 5px;}
.alchemy-text li p { color: #444; font-weight: 600;}
.tree-vis { flex: 1 1 400px; display: flex; flex-direction: column; align-items: center; gap: 15px; background: var(--paper); padding: 30px; border: var(--border-thick); border-radius: 20px; box-shadow: var(--shadow-solid);}
.tree-node { background: var(--cyan); padding: 10px 20px; border-radius: 10px; border: 2px solid var(--ink); font-weight: 900; text-align: center; position: relative; min-width: 120px;}
.tree-line { width: 3px; height: 30px; background: var(--ink); }
.tree-branches { display: flex; gap: 20px; width: 100%; justify-content: center; flex-wrap: wrap;}
.tree-branch { display: flex; flex-direction: column; align-items: center;}
.tree-branch .line-v { width: 3px; height: 20px; background: var(--ink); margin-bottom: 5px;}
.tree-end { background: var(--lavender); padding: 10px; border-radius: 10px; border: 2px dashed var(--ink); font-weight: 700; font-size: 14px; text-align: center; width: 100px;}
.tree-branch:nth-child(1) .tree-end { background: #e0f7fa; }
.tree-branch:nth-child(2) .tree-end { background: #fce4ec; border-style: solid;}
.tree-branch:nth-child(3) .tree-end { background: #fff9c4; }

/* 竖屏体验 */
.mobile-exp { background: var(--paper); border-top: var(--border-thick); border-bottom: var(--border-thick);}
.mobile-wrap { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: center; }
.mobile-features { flex: 1 1 300px; max-width: 400px;}
.mobile-features .m-item { background: var(--lilac); padding: 20px; border: 2px solid var(--ink); border-radius: 15px; margin-bottom: 15px; display: flex; align-items: center; gap: 15px; font-weight: 900; font-size: 18px;}
.m-item .icon { width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); display: flex; justify-content: center; align-items: center; font-size: 18px; border: 2px solid var(--ink);}
.phone-mock { flex: 1 1 300px; display: flex; justify-content: center; }
.phone-shell { width: 280px; aspect-ratio: 9/19; background: var(--ink); border-radius: 30px; padding: 12px; position: relative; box-shadow: 8px 8px 0 var(--purple); }
.phone-screen { width: 100%; height: 100%; background: #000; border-radius: 20px; overflow: hidden; position: relative; }
.phone-slides { height: 100%; display: flex; flex-direction: column; transition: transform 0.4s ease; }
.slide-img { height: 100%; width: 100%; flex-shrink: 0; object-fit: cover;}
.swipe-hint { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; font-weight: 700; background: rgba(0,0,0,0.6); padding: 5px 15px; border-radius: 20px; animation: bounce 1.5s infinite; }
@keyframes bounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -10px); } }
.phone-nav { display: flex; justify-content: center; gap: 5px; position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #ccc; cursor: pointer;}
.dot.active { background: var(--purple); }

/* 用户评价 */
.reviews { background: var(--ink); color: var(--paper); overflow: hidden;}
.reviews .section-title { color: var(--paper); text-shadow: 2px 2px 0 var(--pink);}
.score-board { display: flex; justify-content: center; margin-bottom: 40px; }
.score-circle { width: 120px; height: 120px; border-radius: 50%; background: var(--pink); color: var(--ink); display: flex; flex-direction: column; justify-content: center; align-items: center; border: 5px solid var(--paper); box-shadow: 0 0 20px var(--pink); }
.score-num { font-size: 40px; font-weight: 900; line-height: 1;}
.score-label { font-size: 14px; font-weight: 700; }
.danmaku-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; max-width: 1000px; margin: 0 auto; }
.danmaku-item { background: rgba(255,255,255,0.1); border: 2px rgba(255,255,255,0.2) solid; padding: 15px 20px; border-radius: 10px; position: relative; backdrop-filter: blur(5px); }
.dm-content { font-size: 16px; margin-bottom: 10px; font-weight: 600;}
.dm-tag { display: inline-block; background: var(--cyan); color: var(--ink); padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 900; margin-bottom: 8px;}
.dm-author { font-size: 14px; color: #aaa; text-align: right; font-style: italic;}

/* FAQ */
.faq { background: var(--paper); }
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
.faq-item { border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; background: var(--lilac); }
.faq-q { padding: 15px 20px; font-weight: 900; font-size: 16px; background: var(--lavender); cursor: pointer; display: flex; justify-content: space-between; align-items: center;}
.faq-q::after { content: "+"; font-size: 20px; }
.faq-item.active .faq-q::after { content: "-"; }
.faq-a { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; font-size: 15px; color: #444; font-weight: 600;}
.faq-item.active .faq-a { padding: 15px 20px; max-height: 200px; border-top: 2px solid var(--ink);}

/* 下载区 */
.download-section { padding: 60px 5%; background: linear-gradient(135deg, var(--purple), var(--pink)); border-top: var(--border-thick); border-bottom: var(--border-thick); text-align: center; color: #fff; }
.dl-box { max-width: 800px; margin: 0 auto; background: rgba(0,0,0,0.2); padding: 40px; border-radius: 30px; border: 3px solid #fff; backdrop-filter: blur(10px);}
.dl-box h2 { font-size: 36px; margin-bottom: 20px; font-weight: 900; text-shadow: 2px 2px 0 rgba(0,0,0,0.5);}
.dl-box p { font-size: 18px; margin-bottom: 30px; font-weight: 600;}
.btn-download-large { display: inline-block; background: var(--yellow); color: var(--ink); padding: 15px 40px; font-size: 20px; font-weight: 900; border-radius: 30px; border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); transition: all 0.2s; }
.btn-download-large:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink);}

/* 页脚 */
footer { background: var(--ink); color: #999; text-align: center; padding: 30px 5%; font-size: 12px; }
.footer-links { display: flex; justify-content: center; gap: 15px; margin-bottom: 15px; flex-wrap: wrap;}
.footer-links a { color: #ccc; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-copy { margin-bottom: 10px; }
footer a.beian { color: #999; text-decoration: none; transition: color 0.2s; }
footer a.beian:hover { color: #fff; }

/* 响应式 */
@media (max-width: 1024px) {
  .hero h1 { font-size: 36px; }
  .hero-right { display: flex; justify-content: center; width: 100%; margin-top: 30px;}
  .grid-vault { grid-template-columns: repeat(3, 1fr); }
  .nav-links { display: none; }
  .hamburger { display: block; }
}

@media (max-width: 768px) {
  .hero { flex-direction: column; text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .book-cover { width: 240px; }
  .bubble-1 { left: -10px; top: 10px; font-size: 12px;}
  .bubble-2 { right: -10px; bottom: 10px; font-size: 12px;}
  .features-grid { grid-template-columns: 1fr; }
  .grid-vault { grid-template-columns: repeat(2, 1fr); }
  .vault-card:nth-child(even) { margin-top: 0; }
  .rank-item { flex-wrap: wrap; gap: 10px; }
  .rank-heat { width: 100%; text-align: left; }
  .alchemy-text ul { margin-top: 15px; }
  .tree-branches { flex-direction: column; align-items: center; gap: 10px;}
  .tree-branch .line-v { display: none; }
  .mobile-features .m-item { padding: 15px; font-size: 16px; }
  .dl-box h2 { font-size: 28px; }
}