:root {
  --bg: #0c0b12;
  --panel: #191627;
  --panel-light: #221d33;
  --text-main: #f0ecf9;
  --text-sub: #a39bb8;
  --purple: #9d6bff;
  --green: #3ef0a0;
  --yellow: #ffd23f;
  --pink: #ff5c9d;
  --border: rgba(157, 107, 255, 0.2);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  background-image: 
    linear-gradient(rgba(157, 107, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(157, 107, 255, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; border-radius: 8px; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { padding: 80px 0; }
h1, h2, h3 { line-height: 1.3; }
h1 {
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--purple), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}
h2 { font-size: 2rem; margin-bottom: 40px; text-align: center; }
h3 { font-size: 1.2rem; margin-bottom: 15px; }
.text-sub { color: var(--text-sub); }
.glow-text { text-shadow: 0 0 10px rgba(157, 107, 255, 0.5); }

/* 导航 */
header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  background: rgba(12, 11, 18, 0.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; font-weight: bold; color: #fff; }
.brand img { height: 32px; border-radius: 4px; }
.nav-links { display: flex; gap: 20px; font-size: 0.95rem; }
.nav-links a { color: var(--text-sub); transition: color 0.3s; }
.nav-links a:hover { color: var(--green); }
.nav-btn {
  background: linear-gradient(90deg, var(--purple), var(--pink));
  color: #fff; padding: 8px 20px; border-radius: 20px; font-weight: bold;
  transition: transform 0.3s, box-shadow 0.3s;
}
.nav-btn:hover { transform: scale(1.05); box-shadow: 0 0 15px rgba(157, 107, 255, 0.4); }
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 25px; height: 2px; background: #fff; transition: 0.3s; }

/* 首屏 */
.hero { padding-top: 120px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.hero-text { flex: 1; }
.hero-sub { font-size: 1.1rem; margin-bottom: 30px; color: var(--text-sub); }
.cta-group { display: flex; gap: 15px; margin-bottom: 40px; }
.btn-primary {
  background: linear-gradient(90deg, var(--green), var(--purple));
  color: #000; padding: 12px 30px; border-radius: 8px; font-weight: bold; font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(62, 240, 160, 0.3); transition: 0.3s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(62, 240, 160, 0.5); }
.btn-secondary {
  background: transparent; border: 1px solid var(--purple); color: var(--text-main);
  padding: 12px 30px; border-radius: 8px; font-weight: bold; font-size: 1.1rem; transition: 0.3s;
}
.btn-secondary:hover { background: rgba(157, 107, 255, 0.1); }
.data-bar { display: flex; gap: 30px; border-top: 1px solid var(--border); padding-top: 20px; }
.data-item strong { display: block; font-size: 1.8rem; font-family: monospace; color: var(--yellow); }
.data-item span { font-size: 0.9rem; color: var(--text-sub); }

/* 首屏对照卡 */
.hero-compare { flex: 1; position: relative; }
.compare-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 20px;
  display: flex; gap: 15px; position: relative; overflow: hidden;
}
.compare-card::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(157, 107, 255, 0.1) 0%, transparent 60%); pointer-events: none;
}
.cover-box { flex: 1; position: relative; }
.cover-box img { width: 100%; height: 300px; object-fit: cover; filter: brightness(0.8); transition: 0.3s; }
.cover-box.active img { filter: brightness(1.1); border: 2px solid var(--green); }
.tag {
  position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 4px;
  font-size: 0.8rem; font-weight: bold; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
}
.tag.original { color: var(--text-sub); border: 1px solid var(--text-sub); }
.tag.modified { color: var(--green); border: 1px solid var(--green); }
.toggle-group { display: flex; justify-content: center; gap: 10px; margin-top: 15px; }
.toggle-btn {
  background: var(--panel-light); border: 1px solid var(--border); color: var(--text-sub);
  padding: 8px 20px; border-radius: 20px; cursor: pointer; transition: 0.3s;
}
.toggle-btn.active { background: var(--purple); color: #fff; border-color: var(--purple); }

/* 原版对照 */
.vs-section { background: rgba(25, 22, 39, 0.5); }
.vs-container { display: flex; gap: 30px; justify-content: center; }
.vs-col { flex: 1; background: var(--panel); padding: 30px; border-radius: 16px; border: 1px solid var(--border); }
.vs-col.modified { border-color: var(--green); background: linear-gradient(180deg, rgba(62, 240, 160, 0.05), transparent); }
.vs-col h3 { border-bottom: 1px solid var(--border); padding-bottom: 15px; margin-bottom: 20px; }
.vs-list { list-style: none; }
.vs-list li { margin-bottom: 15px; padding-left: 25px; position: relative; }
.vs-list li::before { content: '✕'; position: absolute; left: 0; color: var(--pink); }
.vs-col.modified .vs-list li::before { content: '✓'; color: var(--green); }

/* 分支结局 */
.branches-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.branch-card {
  background: var(--panel); border-radius: 12px; overflow: hidden; cursor: pointer;
  border: 1px solid transparent; transition: 0.3s;
}
.branch-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(157, 107, 255, 0.2); }
.branch-card.active { border-color: var(--purple); box-shadow: 0 0 20px rgba(157, 107, 255, 0.3); }
.branch-card img { height: 200px; width: 100%; object-fit: cover; }
.branch-info { padding: 15px; }
.branch-info h3 { font-size: 1.1rem; margin-bottom: 5px; }
.branch-info p { font-size: 0.85rem; color: var(--text-sub); }
.branch-msg { text-align: center; margin-top: 30px; color: var(--green); font-weight: bold; }

/* 魔改工坊 */
.workshop-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step-card {
  background: var(--panel-light); padding: 30px; border-radius: 16px; position: relative;
  border: 1px solid var(--border);
}
.step-num {
  font-size: 3rem; font-weight: 900; font-family: monospace;
  color: transparent; -webkit-text-stroke: 1px var(--purple); margin-bottom: 15px;
}
.step-card h3 { color: var(--purple); }
.step-card p { font-size: 0.9rem; color: var(--text-sub); }

/* 心愿榜 */
.wishlist-container { max-width: 800px; margin: 0 auto; }
.wish-item { background: var(--panel); padding: 20px; border-radius: 12px; margin-bottom: 15px; display: flex; align-items: center; gap: 20px; }
.wish-content { flex: 1; }
.wish-title { font-weight: bold; margin-bottom: 10px; }
.progress-bar { height: 8px; background: var(--panel-light); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--purple), var(--pink)); width: 0; transition: width 0.5s; }
.wish-vote { text-align: center; min-width: 80px; }
.vote-btn {
  background: transparent; border: 1px solid var(--purple); color: var(--purple);
  padding: 6px 15px; border-radius: 15px; cursor: pointer; transition: 0.3s; font-size: 0.9rem;
}
.vote-btn:hover { background: var(--purple); color: #fff; }
.vote-btn.voted { background: var(--green); border-color: var(--green); color: #000; cursor: default; }

/* 题材矩阵 */
.genre-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 15px; }
.genre-card {
  background: var(--panel); padding: 20px 10px; border-radius: 12px; text-align: center;
  border: 1px solid var(--border); transition: 0.3s; cursor: pointer;
}
.genre-card:hover { border-color: var(--yellow); color: var(--yellow); }
.genre-icon { font-size: 2rem; margin-bottom: 10px; }

/* 竖屏体验 */
.mobile-section { display: flex; align-items: center; gap: 50px; }
.mobile-sell { flex: 1; }
.mobile-sell ul { list-style: none; }
.mobile-sell li { margin-bottom: 20px; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.mobile-sell li::before { content: '▶'; color: var(--green); font-size: 0.8rem; }
.phone-mockup {
  width: 280px; height: 550px; background: #000; border-radius: 30px; border: 8px solid #333;
  position: relative; overflow: hidden; margin: 0 auto; box-shadow: 0 0 30px rgba(157, 107, 255, 0.2);
}
.phone-screen { width: 100%; height: 100%; overflow: hidden; position: relative; }
.phone-slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 0.5s;
}
.phone-slide.active { opacity: 1; }
.phone-slide img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.swipe-hint {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 0.9rem; animation: updown 1.5s infinite; text-shadow: 0 0 5px #000;
}
@keyframes updown { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -10px); } }

/* 用户评价 */
.reviews-header { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 40px; }
.big-score { font-size: 4rem; font-family: monospace; font-weight: bold; color: var(--green); }
.stars { color: var(--yellow); font-size: 1.5rem; }
.reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.review-card { background: var(--panel); padding: 20px; border-radius: 12px; }
.review-user { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.avatar { width: 40px; height: 40px; border-radius: 8px; background: var(--purple); display: flex; align-items: center; justify-content: center; font-weight: bold; }
.user-info strong { display: block; font-size: 0.9rem; }
.user-info span { font-size: 0.8rem; color: var(--text-sub); }

/* FAQ */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--panel); margin-bottom: 10px; border-radius: 8px; overflow: hidden; }
.faq-q {
  padding: 20px; cursor: pointer; display: flex; justify-content: space-between; font-weight: bold;
}
.faq-icon { transition: transform 0.3s; color: var(--purple); }
.faq-item.active .faq-icon { transform: rotate(180deg); color: var(--green); }
.faq-a { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s; color: var(--text-sub); }
.faq-item.active .faq-a { padding-bottom: 20px; }

/* 下载区 */
.download-section {
  text-align: center; background: linear-gradient(180deg, var(--bg), var(--panel-light));
  border-top: 1px solid var(--border);
}
.download-box { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-top: 30px; }
.download-btn {
  display: inline-block; background: linear-gradient(90deg, var(--green), var(--purple));
  color: #000; font-size: 1.4rem; font-weight: bold; padding: 15px 60px; border-radius: 30px;
  box-shadow: 0 0 30px rgba(62, 240, 160, 0.4); transition: 0.3s;
}
.download-btn:hover { transform: scale(1.05); box-shadow: 0 0 40px rgba(62, 240, 160, 0.6); }
.features-list { display: flex; gap: 20px; color: var(--text-sub); font-size: 0.9rem; }

/* 页脚 */
footer { background: #05040a; padding: 40px 0 20px; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--text-sub); }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 20px; }
.footer-brand p { margin-top: 10px; max-width: 300px; }
.footer-nav { display: flex; gap: 30px; flex-wrap: wrap; }
.footer-nav a { color: var(--text-sub); }
.footer-nav a:hover { color: var(--green); }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; }
.footer-bottom a { color: var(--text-sub); }
.update-time { margin-top: 10px; font-size: 0.75rem; opacity: 0.6; }

@media (max-width: 1024px) {
  h1 { font-size: 2.2rem; }
  .hero { flex-direction: column; padding-top: 100px; }
  .branches-grid { grid-template-columns: repeat(2, 1fr); }
  .genre-grid { grid-template-columns: repeat(3, 1fr); }
  .workshop-steps { grid-template-columns: repeat(2, 1fr); }
  .mobile-section { flex-direction: column; }
  .vs-container { flex-direction: column; }
  .nav-links { display: none; }
  .nav-links.active { display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; width: 100%; background: var(--panel); padding: 20px; border-bottom: 1px solid var(--border); }
  .hamburger { display: flex; }
}

@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  .data-bar { flex-wrap: wrap; gap: 15px; }
  .data-item { flex: 1 1 40%; }
  .compare-card { flex-direction: column; }
  .cover-box img { height: 240px; }
  .branches-grid { grid-template-columns: repeat(2, 1fr); }
  .genre-grid { grid-template-columns: repeat(2, 1fr); }
  .workshop-steps { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .wish-item { flex-direction: column; align-items: flex-start; text-align: left; }
  .wish-vote { align-self: flex-end; }
  .features-list { flex-direction: column; gap: 10px; }
  .cta-group { flex-direction: column; }
  .btn-primary, .btn-secondary { text-align: center; }
}