:root {
  --bg-dark: #0a0a0c;
  --bg-card: #16161a;
  --bg-card-hover: #1f1f24;
  --primary: #ff5500;
  --primary-glow: rgba(255, 85, 0, 0.4);
  --text-main: #f5f5f5;
  --text-sub: #a0a0a5;
  --border-color: #2c2c35;
  --up-color: #ff3333;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 顶部跑马灯 */
.marquee-wrap {
  background: #000;
  color: var(--text-sub);
  font-size: 13px;
  padding: 6px 0;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid var(--border-color);
}
.marquee-content {
  display: inline-block;
  animation: marquee 20s linear infinite;
}
.marquee-content span { margin-right: 40px; }
.marquee-content span i { color: var(--primary); font-style: normal; margin-right: 4px; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* 导航 */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,12,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}
.nav-inner {
  display: flex; justify-content: space-between; align-items: center; height: 64px;
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: bold; }
.logo img { height: 32px; border-radius: 6px; }
.nav-links { display: none; gap: 20px; font-size: 15px; color: var(--text-sub); }
.nav-links a:hover { color: var(--primary); }
.nav-btn {
  background: var(--primary); color: #fff; padding: 8px 16px; border-radius: 20px;
  font-weight: bold; font-size: 14px; transition: 0.3s;
}
.nav-btn:hover { background: #ff7722; box-shadow: 0 0 15px var(--primary-glow); }

/* 首屏 */
.hero {
  position: relative; padding: 60px 0; overflow: hidden;
  background: radial-gradient(circle at 70% 50%, rgba(255,85,0,0.1) 0%, transparent 60%);
}
.hero-inner { display: flex; flex-direction: column; gap: 40px; }
.hero-text h1 { font-size: 36px; line-height: 1.2; font-weight: 900; margin-bottom: 20px; }
.hero-text h1 span { color: var(--primary); }
.hero-features { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 30px; }
.feature-item { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--text-sub); }
.feature-item::before { content: "✦"; color: var(--primary); }
.hero-download { display: flex; flex-wrap: wrap; gap: 15px; align-items: center; }
.btn-download {
  background: var(--primary); color: #fff; padding: 14px 28px; border-radius: 8px;
  font-size: 16px; font-weight: bold; display: flex; align-items: center; gap: 10px;
  transition: 0.3s; box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-download:hover { transform: translateY(-2px); background: #ff6600; }
.btn-download.secondary { background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-main); box-shadow: none; }
.btn-download.secondary:hover { border-color: var(--primary); color: var(--primary); }
.hero-img-group { display: flex; gap: 15px; justify-content: center; }
.hero-img-group img { width: 130px; aspect-ratio: 3/4; object-fit: cover; border-radius: 12px; box-shadow: 0 10px 20px rgba(0,0,0,0.5); transition: 0.3s; }
.hero-img-group img:nth-child(2) { margin-top: 30px; }
.hero-img-group img:nth-child(3) { margin-top: 60px; }
.hero-img-group img:hover { transform: scale(1.05); z-index: 2; position: relative; }

/* 通用板块标题 */
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 28px; font-weight: bold; margin-bottom: 10px; }
.section-title p { color: var(--text-sub); font-size: 15px; }

/* 热播榜单 */
.section-rank { padding: 60px 0; background: #0e0e11; }
.rank-layout { display: flex; flex-direction: column; gap: 30px; }
.rank-list { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.rank-item {
  display: flex; align-items: center; background: var(--bg-card); padding: 12px 20px;
  border-radius: 8px; transition: 0.3s; border: 1px solid transparent;
}
.rank-item:hover { background: var(--bg-card-hover); border-color: var(--border-color); transform: translateX(5px); }
.rank-num { font-size: 22px; font-weight: 900; width: 40px; font-style: italic; color: var(--text-sub); }
.rank-item:nth-child(1) .rank-num, .rank-item:nth-child(2) .rank-num, .rank-item:nth-child(3) .rank-num { color: var(--primary); }
.rank-info { flex: 1; }
.rank-title { font-size: 16px; font-weight: bold; margin-bottom: 4px; }
.rank-tag { font-size: 12px; color: var(--text-sub); background: rgba(255,255,255,0.05); padding: 2px 8px; border-radius: 4px; }
.rank-trend { color: var(--up-color); font-size: 14px; font-weight: bold; display: flex; align-items: center; gap: 4px; }
.rank-trend::before { content: "↑"; }
.rank-covers { display: flex; gap: 15px; justify-content: center; }
.rank-covers img { width: 30%; aspect-ratio: 3/4; object-fit: cover; border-radius: 10px; box-shadow: 0 8px 16px rgba(0,0,0,0.4); }

/* 首发轮播 */
.section-new { padding: 60px 0; }
.carousel-wrap { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 20px; scroll-snap-type: x mandatory; }
.carousel-wrap::-webkit-scrollbar { height: 6px; }
.carousel-wrap::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
.new-card {
  flex: 0 0 240px; background: var(--bg-card); border-radius: 12px; overflow: hidden;
  scroll-snap-align: start; position: relative; border: 1px solid var(--border-color);
  display: flex; flex-direction: column;
}
.new-card-img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.badge {
  position: absolute; top: 10px; left: 10px; background: var(--primary); color: #fff;
  font-size: 12px; font-weight: bold; padding: 4px 10px; border-radius: 4px;
}
.badge.green { background: #00cc66; }
.new-card-info { padding: 15px; flex: 1; display: flex; flex-direction: column; }
.new-card-title { font-size: 16px; font-weight: bold; margin-bottom: 8px; }
.new-card-desc { font-size: 13px; color: var(--text-sub); flex: 1; }

/* 更新日历 */
.section-calendar { padding: 60px 0; background: #0e0e11; }
.timeline { display: flex; flex-direction: column; gap: 20px; max-width: 800px; margin: 0 auto; }
.time-row { display: flex; gap: 20px; border-bottom: 1px dashed var(--border-color); padding-bottom: 20px; }
.time-row:last-child { border-bottom: none; }
.time-mark { font-size: 20px; font-weight: bold; color: var(--primary); width: 70px; flex-shrink: 0; }
.time-shows { display: flex; flex-wrap: wrap; gap: 10px; }
.show-tag { background: var(--bg-card); border: 1px solid var(--border-color); padding: 6px 15px; border-radius: 20px; font-size: 14px; }

/* 心愿榜 & 多端同步 */
.section-panels { padding: 60px 0; }
.panel-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.panel-box { background: var(--bg-card); border-radius: 12px; padding: 30px; border: 1px solid var(--border-color); }
.panel-box h3 { font-size: 20px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.panel-box h3::before { content: ""; display: block; width: 4px; height: 16px; background: var(--primary); border-radius: 2px; }
.wish-list { display: flex; flex-direction: column; gap: 15px; }
.wish-item { display: flex; flex-direction: column; gap: 8px; }
.wish-meta { display: flex; justify-content: space-between; font-size: 14px; }
.wish-progress { height: 6px; background: rgba(255,255,255,0.05); border-radius: 3px; overflow: hidden; }
.wish-bar { height: 100%; background: var(--primary); border-radius: 3px; box-shadow: 0 0 10px var(--primary-glow); }
.sync-visual { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 20px 0; }
.device-icon { width: 60px; height: 60px; border: 2px solid var(--border-color); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--text-sub); font-size: 12px; position: relative; }
.device-icon.active { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 15px var(--primary-glow); }
.sync-lines { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.line-horizontal { width: 2px; height: 30px; background: linear-gradient(to bottom, var(--primary), transparent); }

/* 用户评价 */
.section-reviews { padding: 60px 0; background: #0e0e11; }
.masonry { column-count: 1; column-gap: 20px; }
.review-card {
  background: rgba(22, 22, 26, 0.8); border: 1px solid var(--border-color); border-radius: 12px;
  padding: 20px; margin-bottom: 20px; break-inside: avoid; backdrop-filter: blur(5px);
}
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #333; }
.review-name { font-size: 14px; font-weight: bold; }
.review-stars { color: #ffcc00; font-size: 12px; letter-spacing: 2px; }
.review-text { font-size: 14px; color: var(--text-sub); line-height: 1.6; }

/* 常见问题 */
.section-faq { padding: 60px 0; }
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; transition: 0.3s; }
.faq-item:hover { border-color: var(--primary); }
.faq-q { padding: 20px; font-size: 16px; font-weight: bold; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-q::after { content: "+"; font-size: 20px; color: var(--text-sub); transition: 0.3s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); color: var(--primary); }
.faq-a { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; color: var(--text-sub); font-size: 14px; }
.faq-item.open .faq-a { padding-bottom: 20px; }

/* 底部下载 */
.section-bottom-dl { padding: 80px 0; text-align: center; background: linear-gradient(to top, rgba(255,85,0,0.05), transparent); }
.steps { display: flex; flex-direction: column; gap: 20px; max-width: 800px; margin: 0 auto 40px; text-align: left; }
.step-item { display: flex; gap: 15px; background: var(--bg-card); padding: 20px; border-radius: 8px; border: 1px solid var(--border-color); }
.step-num { width: 30px; height: 30px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; flex-shrink: 0; }
.step-text h4 { font-size: 16px; margin-bottom: 5px; }
.step-text p { font-size: 14px; color: var(--text-sub); }
.bottom-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; }

/* 页脚 */
footer { background: #050505; padding: 40px 0; border-top: 1px solid var(--border-color); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 15px; text-align: center; }
.footer-desc { font-size: 13px; color: var(--text-sub); max-width: 600px; }
.footer-copy { font-size: 12px; color: #555; }

/* 弹窗 */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.8);
  display: flex; align-items: center; justify-content: center; z-index: 1000;
  opacity: 0; pointer-events: none; transition: 0.3s;
}
.modal-overlay.show { opacity: 1; pointer-events: auto; }
.modal-box {
  background: var(--bg-card); width: 90%; max-width: 350px; border-radius: 12px;
  padding: 25px; text-align: center; border: 1px solid var(--border-color);
}
.modal-box p { font-size: 14px; margin-bottom: 20px; line-height: 1.6; }
.copy-input { width: 100%; padding: 10px; background: #000; color: var(--primary); border: 1px solid var(--border-color); border-radius: 6px; margin-bottom: 20px; text-align: center; font-family: monospace; }
.copy-btn { width: 100%; padding: 12px; background: var(--primary); color: #fff; border: none; border-radius: 6px; font-size: 16px; font-weight: bold; cursor: pointer; }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .hero-inner { flex-direction: row; align-items: center; }
  .hero-text { flex: 1; }
  .hero-img-group { flex: 1; }
  .hero-text h1 { font-size: 48px; }
  .hero-features { grid-template-columns: 1fr 1fr; }
  .rank-layout { flex-direction: row; }
  .rank-list { flex: 1.2; }
  .rank-covers { flex: 1; align-items: center; }
  .rank-covers img { width: 31%; }
  .panel-grid { grid-template-columns: 1fr 1fr; }
  .masonry { column-count: 2; }
}

@media (min-width: 1024px) {
  .hero-text h1 { font-size: 56px; }
  .hero-img-group img { width: 180px; }
  .masonry { column-count: 3; }
  .new-card { flex: 0 0 280px; }
}