:root {
  --bg-deep: #0d0a1a;
  --bg-card: #16112b;
  --pink: #ff5fbe;
  --purple: #a06bff;
  --cyan: #4fd8ff;
  --amber: #ffc861;
  --text-main: #f8f1ff;
  --text-sub: #bcadd8;
  --text-dim: #8b7bac;
  --line: rgba(255, 95, 190, 0.3);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--bg-deep);
  background-image: repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(255, 95, 190, 0.03) 40px);
  color: var(--text-main);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; object-fit: cover; }

/* Typography */
h1, h2, h3 { font-weight: 800; letter-spacing: -0.5px; }
.grad-text {
  background: linear-gradient(90deg, var(--pink), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header */
header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  background: rgba(13, 10, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 1000;
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.logo-group { display: flex; align-items: center; gap: 10px; }
.logo-group img { height: 32px; border-radius: 6px; }
.logo-group span { font-size: 18px; font-weight: bold; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { font-size: 15px; color: var(--text-sub); transition: color 0.3s; }
.nav-links a:hover { color: var(--pink); }
.btn-download {
  background: linear-gradient(90deg, var(--pink), var(--purple));
  padding: 8px 20px; border-radius: 999px; font-weight: bold; color: #fff;
  transition: transform 0.2s;
}
.btn-download:hover { transform: scale(1.05); }
.menu-toggle { display: none; background: none; border: none; color: var(--pink); font-size: 24px; cursor: pointer; }

/* Hero Section */
.hero {
  padding: 120px 20px 60px; text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px; background: radial-gradient(circle, rgba(255,95,190,0.15), transparent 70%);
  z-index: -1;
}
.hero-badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--pink); font-size: 14px; margin-bottom: 20px;
}
.hero h1 { font-size: 42px; margin-bottom: 16px; }
.hero p { color: var(--text-sub); font-size: 18px; margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; justify-content: center; gap: 16px; margin-bottom: 50px; }
.hero-actions .btn-download { padding: 14px 32px; font-size: 16px; }

/* Live Stage */
.stage-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 24px;
  max-width: 800px; margin: 0 auto; padding: 30px 20px; position: relative; overflow: hidden;
}
.stage-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding: 0 20px; }
.live-tag { background: rgba(255, 95, 190, 0.2); color: var(--pink); padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: bold; display: flex; align-items: center; gap: 6px; }
.live-dot { width: 6px; height: 6px; background: var(--pink); border-radius: 50%; animation: pulse 1.5s infinite; }
.stage-avatars { display: flex; justify-content: center; align-items: center; gap: 40px; margin-bottom: 20px; }
.avatar-box { width: 120px; height: 120px; border-radius: 50%; border: 3px solid var(--pink); padding: 4px; position: relative; }
.avatar-box img { width: 100%; height: 100%; border-radius: 50%; }
.wave-bars { display: flex; align-items: center; gap: 4px; height: 40px; }
.wave-bar { width: 6px; background: var(--cyan); border-radius: 3px; animation: sound 1s infinite alternate; }
.wave-bar:nth-child(2) { animation-delay: 0.2s; background: var(--pink); }
.wave-bar:nth-child(3) { animation-delay: 0.4s; background: var(--purple); }
.wave-bar:nth-child(4) { animation-delay: 0.1s; background: var(--pink); }
.wave-bar:nth-child(5) { animation-delay: 0.3s; background: var(--cyan); }
.stage-danmaku { height: 24px; overflow: hidden; position: relative; margin-bottom: 20px; color: var(--text-sub); font-size: 14px; }
.danmaku-item { position: absolute; white-space: nowrap; animation: scroll-danmaku 10s linear infinite; }
.stage-stats { display: flex; justify-content: space-around; border-top: 1px solid var(--line); padding-top: 20px; font-size: 14px; color: var(--text-dim); }
.stage-stats strong { color: var(--text-main); font-size: 16px; margin-right: 4px; }

/* Sections */
section { padding: 80px 20px; max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title span { color: var(--pink); font-size: 14px; font-weight: bold; display: block; margin-bottom: 8px; }
.section-title h2 { font-size: 32px; margin-bottom: 12px; }
.section-title p { color: var(--text-sub); font-size: 16px; }

/* Category Grid */
.grid-category { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cat-card { background: var(--bg-card); border-radius: 16px; overflow: hidden; border: 1px solid transparent; transition: all 0.3s; }
.cat-card:hover { border-color: var(--pink); transform: translateY(-5px); }
.cat-img { width: 100%; aspect-ratio: 2/3; }
.cat-info { padding: 16px; }
.cat-chip { font-size: 12px; color: var(--cyan); border: 1px solid var(--cyan); padding: 2px 8px; border-radius: 4px; display: inline-block; margin-bottom: 8px; }
.cat-info h3 { font-size: 18px; margin-bottom: 4px; }
.cat-info p { font-size: 14px; color: var(--text-dim); }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; }
.step-item { padding: 30px; background: rgba(22, 17, 43, 0.6); border-radius: 20px; border: 1px solid var(--line); }
.step-icon { font-size: 40px; color: var(--pink); margin-bottom: 16px; }
.step-item h3 { font-size: 20px; margin-bottom: 10px; }
.step-item p { color: var(--text-sub); font-size: 15px; }

/* Ranking */
.rank-table { background: var(--bg-card); border-radius: 16px; padding: 20px; border: 1px solid var(--line); }
.rank-header { display: grid; grid-template-columns: 50px 60px 1fr 150px 60px; padding: 10px 20px; color: var(--text-dim); font-size: 13px; border-bottom: 1px solid var(--line); }
.rank-row { display: grid; grid-template-columns: 50px 60px 1fr 150px 60px; align-items: center; padding: 15px 20px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.rank-row:last-child { border-bottom: none; }
.rank-num { font-size: 20px; font-weight: bold; color: var(--pink); text-shadow: 0 0 8px rgba(255,95,190,0.5); }
.rank-img { width: 40px; height: 54px; border-radius: 4px; }
.rank-name { font-weight: bold; }
.heat-bar-bg { width: 100%; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; }
.heat-bar { height: 100%; background: linear-gradient(90deg, var(--pink), var(--purple)); }
.rank-score { color: var(--amber); font-weight: bold; text-align: right; }

/* Host Plaza */
.plaza-filters { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 30px; }
.search-box { padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-card); color: #fff; outline: none; width: 250px; margin-bottom: 20px; display: block; margin-left: auto; margin-right: auto; }
.filter-tag { padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text-sub); cursor: pointer; transition: all 0.3s; }
.filter-tag.active, .filter-tag:hover { background: var(--pink); color: #fff; border-color: var(--pink); }
.plaza-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.plaza-card { background: var(--bg-card); border-radius: 12px; overflow: hidden; position: relative; border: 1px solid transparent; transition: all 0.3s; }
.plaza-card:hover { border-color: var(--pink); }
.plaza-card .num { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,0.6); padding: 2px 6px; border-radius: 4px; font-size: 12px; }
.plaza-card img { width: 100%; aspect-ratio: 2/3; }
.plaza-info { padding: 10px; text-align: center; }
.plaza-info h3 { font-size: 15px; margin-bottom: 4px; }
.plaza-info p { font-size: 12px; color: var(--text-dim); }

/* Wishlist */
.wish-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.wish-card { background: var(--bg-card); padding: 16px; border-radius: 12px; border: 1px solid var(--line); text-align: center; }
.wish-card img { width: 48px; height: 62px; border-radius: 8px; margin: 0 auto 10px; }
.wish-card h3 { font-size: 15px; margin-bottom: 4px; }
.wish-card p { font-size: 12px; color: var(--text-dim); margin-bottom: 12px; }
.wish-progress { height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; margin-bottom: 8px; overflow: hidden; }
.wish-bar { height: 100%; background: var(--pink); width: 0; transition: width 0.3s; }
.wish-status { font-size: 12px; color: var(--text-sub); margin-bottom: 12px; display: flex; justify-content: space-between; }
.wish-btn { width: 100%; padding: 6px; border-radius: 999px; border: 1px solid var(--pink); background: transparent; color: var(--pink); cursor: pointer; transition: all 0.3s; }
.wish-btn.active { background: var(--pink); color: #fff; }

/* Mobile Demo */
.mobile-demo { display: flex; align-items: center; justify-content: center; gap: 40px; }
.demo-hints { display: flex; flex-direction: column; gap: 20px; }
.hint-item { color: var(--text-sub); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.hint-item::before { content: '✦'; color: var(--pink); }
.phone-mockup { width: 260px; height: 520px; border-radius: 30px; border: 4px solid var(--pink); box-shadow: 0 0 20px rgba(255,95,190,0.4); position: relative; overflow: hidden; }
.phone-mockup img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.5s; }
.phone-hint { position: absolute; bottom: 20px; left: 0; width: 100%; text-align: center; color: #fff; font-size: 12px; text-shadow: 0 1px 4px #000; pointer-events: none; }

/* Danmaku Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card { background: var(--bg-card); padding: 20px; border-radius: 16px; border: 1px solid var(--line); }
.review-head { display: flex; justify-content: space-between; margin-bottom: 10px; }
.review-user { font-weight: bold; color: var(--purple); }
.review-badge { color: var(--amber); font-size: 12px; }
.review-text { color: var(--text-sub); font-size: 14px; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { margin-bottom: 12px; background: var(--bg-card); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.faq-q { padding: 16px 20px; font-weight: bold; cursor: pointer; display: flex; gap: 10px; }
.faq-q::before { content: '♫'; color: var(--pink); }
.faq-a { padding: 0 20px 16px; color: var(--text-sub); font-size: 14px; display: none; }
.faq-item.open .faq-a { display: block; }

/* Download Section */
.cta-box { border: 2px solid var(--pink); border-radius: 24px; padding: 60px 20px; text-align: center; position: relative; background: radial-gradient(circle at center, rgba(255,95,190,0.1), transparent); }
.cta-icon { font-size: 40px; color: var(--pink); margin-bottom: 20px; }
.cta-box h2 { font-size: 32px; margin-bottom: 16px; }
.cta-box p { color: var(--text-sub); margin-bottom: 30px; }
.cta-box .btn-download { padding: 16px 40px; font-size: 18px; display: inline-block; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 20px 20px; background: var(--bg-card); font-size: 13px; color: var(--text-dim); }
.footer-content { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 20px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--pink); }
.copyright { text-align: center; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; }
.copyright a { color: var(--text-dim); }
.copyright a:hover { color: var(--pink); }

/* Animations */
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.3; } 100% { opacity: 1; } }
@keyframes sound { 0% { height: 10px; } 100% { height: 30px; } }
@keyframes scroll-danmaku { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s, transform 0.6s; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) {
  .grid-category { grid-template-columns: repeat(2, 1fr); }
  .plaza-grid { grid-template-columns: repeat(4, 1fr); }
  .wish-grid { grid-template-columns: repeat(3, 1fr); }
  .reviews { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; width: 100%; background: var(--bg-card); flex-direction: column; padding: 20px; border-bottom: 1px solid var(--line); }
  .nav-links.show { display: flex; }
  .menu-toggle { display: block; }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
  .grid-category, .steps-grid, .plaza-grid, .wish-grid, .reviews { grid-template-columns: 1fr; }
  .rank-header { display: none; }
  .rank-row { grid-template-columns: 30px 50px 1fr 60px; padding: 10px; }
  .rank-heat { display: none; }
  .mobile-demo { flex-direction: column; }
  .demo-hints { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .desktop-only { display: none; }
}