:root {
  --brand: #7b2cbf;
  --brand-light: #9d4edd;
  --brand-deep: #240046;
  --bg: #f8f9fa;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-muted: #666666;
  --border: #e0e0e0;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; object-fit: cover; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* 顶部导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow); }
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo-group { display: flex; align-items: center; gap: 10px; font-weight: bold; font-size: 1.2rem; }
.logo-group img { height: 32px; width: auto; border-radius: 6px; }
.nav-links { display: flex; gap: 20px; font-size: 0.95rem; color: var(--text-muted); }
.nav-links a:hover { color: var(--brand); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.search-box input {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg);
  outline: none;
  font-size: 0.9rem;
  width: 160px;
}
.search-box input:focus { border-color: var(--brand); }
.btn-download {
  background: var(--brand);
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s;
}
.btn-download:hover { background: var(--brand-light); }

/* 堆叠楼层通用 */
.stack-container { position: relative; }
.stack-section {
  position: sticky;
  top: 0;
  min-height: 100vh;
  background: var(--surface);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.05);
  padding: 80px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  border-top: 1px solid rgba(0,0,0,0.03);
}
.stack-section:nth-child(even) { background: var(--bg); }
.section-inner { max-width: 1200px; margin: 0 auto; width: 100%; position: relative; z-index: 2; }
.big-num {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 20vw;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 2px rgba(123, 44, 191, 0.08);
  line-height: 1;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}
h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
  color: var(--brand-deep);
  letter-spacing: -0.5px;
}
.section-desc {
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 1.05rem;
  max-width: 600px;
}

/* 首屏 */
.hero-section { min-height: 100vh; position: relative; padding-top: 100px; }
.hero-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-text h1 { font-size: 3.8rem; line-height: 1.1; color: var(--brand-deep); margin-bottom: 24px; font-weight: 800; letter-spacing: -1px; }
.hero-hook { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 30px; }
.hero-stats { display: flex; gap: 40px; margin-bottom: 40px; }
.stat-item strong { display: block; font-size: 1.8rem; color: var(--brand); font-weight: 800; }
.stat-item span { font-size: 0.9rem; color: var(--text-muted); }
.hero-btns { display: flex; gap: 16px; }
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 4px 15px rgba(123, 44, 191, 0.3); }
.btn-secondary { background: var(--surface); color: var(--brand); border: 2px solid var(--brand); }
.btn-primary:hover, .btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(123, 44, 191, 0.2); }

/* 卡堆 */
.card-stack { position: relative; height: 500px; perspective: 1000px; }
.stack-card {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  display: flex; justify-content: center; align-items: center;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s;
  transform-origin: bottom center;
}
.stack-card img {
  width: 240px; height: 340px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  object-fit: cover;
}
.stack-card:nth-child(1) { transform: translateY(0) scale(1); z-index: 5; }
.stack-card:nth-child(2) { transform: translateY(-20px) scale(0.95); z-index: 4; }
.stack-card:nth-child(3) { transform: translateY(-40px) scale(0.9); z-index: 3; }
.stack-card:nth-child(4) { transform: translateY(-60px) scale(0.85); z-index: 2; }
.card-label {
  position: absolute; bottom: -30px; left: 50%; transform: translateX(-50%);
  background: rgba(255,255,255,0.9); padding: 4px 12px; border-radius: 20px; font-size: 0.85rem;
  white-space: nowrap; font-weight: 600; color: var(--brand-deep);
}

/* 热播推荐 cover-flow */
.coverflow-wrap { position: relative; width: 100%; height: 400px; display: flex; justify-content: center; align-items: center; perspective: 1200px; margin: 40px 0; }
.cf-item {
  position: absolute; width: 200px; height: 300px;
  transition: transform 0.5s ease, opacity 0.5s ease;
  border-radius: 12px; overflow: hidden; box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.cf-item img { width: 100%; height: 100%; object-fit: cover; }
.cf-item.center { transform: translateX(0) scale(1.2); z-index: 5; }
.cf-item.left-1 { transform: translateX(-160px) scale(0.9) rotateY(25deg); z-index: 4; opacity: 0.8; }
.cf-item.right-1 { transform: translateX(160px) scale(0.9) rotateY(-25deg); z-index: 4; opacity: 0.8; }
.cf-item.left-2 { transform: translateX(-280px) scale(0.7) rotateY(35deg); z-index: 3; opacity: 0.5; }
.cf-item.right-2 { transform: translateX(280px) scale(0.7) rotateY(-35deg); z-index: 3; opacity: 0.5; }
.cf-info { text-align: center; margin-top: 30px; }
.cf-info h3 { font-size: 1.5rem; color: var(--brand-deep); }
.cf-meta { display: flex; justify-content: center; gap: 10px; margin-top: 8px; font-size: 0.9rem; color: var(--text-muted); }
.tag { background: rgba(123,44,191,0.1); color: var(--brand); padding: 2px 8px; border-radius: 4px; }
.thumb-row { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.thumb-row img { width: 40px; height: 60px; border-radius: 4px; cursor: pointer; opacity: 0.6; transition: opacity 0.2s; }
.thumb-row img.active { opacity: 1; border: 2px solid var(--brand); }

/* 更新日历 */
.timeline-table { position: relative; background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.tl-row { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px dashed var(--border); align-items: center; }
.tl-row:last-child { border-bottom: none; }
.tl-time { font-size: 1.6rem; font-weight: 800; color: var(--brand-deep); width: 100px; flex-shrink: 0; }
.tl-covers { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.tl-cover { flex-shrink: 0; text-align: center; }
.tl-cover img { width: 80px; height: 110px; border-radius: 8px; margin-bottom: 4px; }
.tl-cover span { font-size: 0.75rem; color: var(--text-muted); display: block; white-space: nowrap; }
.tl-badge { font-size: 0.65rem; background: var(--brand); color: #fff; padding: 1px 4px; border-radius: 3px; margin-top: 2px; display: inline-block; }
.tl-past { opacity: 0.6; }
.tl-future { filter: grayscale(1); opacity: 0.7; }

/* 排行榜 */
.rank-list { display: flex; flex-direction: column; gap: 16px; }
.rank-item { position: relative; display: flex; align-items: center; padding: 20px 30px; background: var(--bg); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.rank-item:nth-child(odd) { margin-right: 40px; }
.rank-item:nth-child(even) { margin-left: 40px; }
.rank-num { position: absolute; font-size: 6rem; font-weight: 900; color: transparent; -webkit-text-stroke: 2px rgba(123,44,191,0.15); left: 20px; top: 50%; transform: translateY(-50%); z-index: 1; }
.rank-item.top-3 .rank-num { color: var(--brand); -webkit-text-stroke: 2px transparent; opacity: 0.2; }
.rank-cover { width: 60px; height: 80px; border-radius: 6px; z-index: 2; margin-right: 20px; }
.rank-info { z-index: 2; flex-grow: 1; }
.rank-info h3 { font-size: 1.2rem; margin-bottom: 4px; }
.rank-meta { font-size: 0.85rem; color: var(--text-muted); display: flex; gap: 10px; }
.rank-trend { color: #e63946; font-weight: bold; }
.rank-trend.down { color: #2a9d8f; }

/* 题材分类 Bento */
.bento-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bento-item { background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.03); display: flex; flex-direction: column; justify-content: space-between; transition: transform 0.2s; cursor: pointer; border: 1px solid var(--border); }
.bento-item:hover { transform: scale(1.02); border-color: var(--brand-light); }
.bento-large { grid-column: span 2; grid-row: span 2; background: linear-gradient(135deg, #fff, #f3e8ff); }
.bento-wide { grid-column: span 2; }
.bento-thumb { display: flex; gap: 8px; margin-top: 16px; }
.bento-thumb img { width: 60px; height: 80px; border-radius: 6px; }
.bento-large .bento-thumb img { width: 80px; height: 110px; }
.bento-title { font-size: 1.2rem; font-weight: bold; color: var(--brand-deep); }
.bento-count { font-size: 0.85rem; color: var(--text-muted); }

/* 独播首发 */
.premiere-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.premiere-main { border: 2px solid var(--brand); border-radius: var(--radius); padding: 30px; display: flex; gap: 20px; background: var(--surface); }
.premiere-main img { width: 140px; height: 200px; border-radius: 8px; flex-shrink: 0; }
.premiere-content { display: flex; flex-direction: column; justify-content: center; }
.premiere-content h3 { font-size: 1.5rem; margin-bottom: 12px; }
.premiere-content p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; }
.countdown-box { display: flex; gap: 10px; margin-bottom: 20px; }
.cd-unit { background: var(--brand-deep); color: #fff; padding: 8px 12px; border-radius: 6px; text-align: center; min-width: 50px; }
.cd-unit strong { display: block; font-size: 1.2rem; }
.cd-unit span { font-size: 0.7rem; opacity: 0.7; }
.premiere-list { display: flex; flex-direction: column; gap: 12px; }
.premiere-row { display: flex; align-items: center; gap: 16px; padding: 12px; background: var(--surface); border-radius: 8px; border: 1px solid var(--border); }
.premiere-row img { width: 50px; height: 70px; border-radius: 4px; }
.premiere-row-info { flex-grow: 1; }
.premiere-row-info h4 { font-size: 1rem; }
.premiere-row-info span { font-size: 0.8rem; color: var(--brand); }

/* 免费专区 */
.free-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.free-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.05); position: relative; }
.free-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.free-tag { position: absolute; top: 10px; left: 10px; background: #2a9d8f; color: #fff; font-size: 0.7rem; padding: 2px 8px; border-radius: 4px; font-weight: bold; }
.free-info { padding: 12px; }
.free-info h3 { font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.free-info p { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }
.progress-track { height: 4px; background: var(--border); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.progress-bar { height: 100%; background: #2a9d8f; width: 45%; border-radius: 2px; transition: width 1s linear; }

/* 用户评价 */
.reviews-header { text-align: center; margin-bottom: 40px; }
.reviews-stats { display: flex; justify-content: center; gap: 60px; margin-bottom: 40px; }
.rs-item strong { font-size: 3rem; color: var(--brand); line-height: 1; }
.rs-item span { display: block; font-size: 0.9rem; color: var(--text-muted); margin-top: 8px; }
.masonry { columns: 2; column-gap: 20px; }
.review-card { background: var(--surface); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; break-inside: avoid; box-shadow: 0 4px 12px rgba(0,0,0,0.04); position: relative; }
.review-idx { position: absolute; top: 10px; left: 10px; background: var(--brand); color: #fff; font-size: 0.65rem; padding: 2px 6px; border-radius: 4px; }
.review-user { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; margin-top: 10px; }
.review-user img { width: 32px; height: 32px; border-radius: 50%; }
.review-user strong { font-size: 0.9rem; }
.stars { color: #f4a261; font-size: 0.8rem; }
.review-text { font-size: 0.9rem; color: var(--text); }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-q { padding: 16px 20px; background: var(--surface); border-radius: 8px; cursor: pointer; font-weight: 500; transition: background 0.2s; border: 1px solid var(--border); }
.faq-q:hover, .faq-q.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.faq-a { padding: 30px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); min-height: 200px; }
.faq-a h3 { font-size: 1.3rem; margin-bottom: 16px; color: var(--brand-deep); }
.faq-a p { font-size: 1rem; color: var(--text-muted); line-height: 1.8; }

/* 下载安装区 */
.steps-row { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 60px; }
.step-item { flex: 1; text-align: center; position: relative; background: var(--surface); padding: 30px 20px; border-radius: var(--radius); box-shadow: 0 4px 12px rgba(0,0,0,0.04); }
.step-icon { font-size: 2rem; margin-bottom: 12px; color: var(--brand); }
.step-item h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step-item p { font-size: 0.85rem; color: var(--text-muted); }
.download-center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 30px; }
.btn-group-big { display: flex; gap: 20px; justify-content: center; }
.btn-group-big .btn-primary, .btn-group-big .btn-secondary { padding: 18px 48px; font-size: 1.2rem; border-radius: 40px; }
.qr-area { display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--text-muted); font-size: 0.9rem; }
.qr-box { width: 140px; height: 140px; background: #eee; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; color: #999; border: 2px dashed #ccc; }

/* 页脚 */
.site-footer { background: var(--brand-deep); color: rgba(255,255,255,0.7); padding: 60px 24px 30px; position: relative; z-index: 2; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand h3 { color: #fff; font-size: 1.4rem; margin-bottom: 12px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.6; }
.footer-col h4 { color: #fff; margin-bottom: 16px; font-size: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 0.8rem; line-height: 1.8; }
.footer-bottom a { text-decoration: underline; }

/* 通用辅助类 */
.hidden-mobile { display: initial; }
.mobile-only { display: none; }

/* 响应式 */
@media (max-width: 1024px) {
  .hero-layout { gap: 40px; }
  .hero-text h1 { font-size: 3rem; }
  .bento-grid { grid-template-columns: repeat(3, 1fr); }
  .bento-large { grid-column: span 2; grid-row: span 2; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .stack-section { min-height: auto; padding: 60px 24px; position: relative; top: auto; }
  .big-num { font-size: 15vw; }
}
@media (max-width: 768px) {
  .nav-links, .search-box { display: none; }
  .hero-layout { grid-template-columns: 1fr; text-align: center; }
  .hero-text h1 { font-size: 2.2rem; }
  .hero-stats { justify-content: center; }
  .hero-btns { justify-content: center; }
  .card-stack { height: 350px; margin-top: 20px; }
  .stack-card img { width: 180px; height: 250px; }
  .cf-item { width: 140px; height: 210px; }
  .cf-item.center { transform: translateX(0) scale(1.1); }
  .cf-item.left-1 { transform: translateX(-100px) scale(0.85) rotateY(20deg); }
  .cf-item.right-1 { transform: translateX(100px) scale(0.85) rotateY(-20deg); }
  .cf-item.left-2, .cf-item.right-2 { display: none; }
  .tl-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .rank-item:nth-child(odd), .rank-item:nth-child(even) { margin-left: 0; margin-right: 0; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-large { grid-column: span 2; grid-row: span 1; }
  .bento-wide { grid-column: span 2; }
  .premiere-layout { grid-template-columns: 1fr; }
  .free-grid { grid-template-columns: repeat(2, 1fr); }
  .masonry { columns: 1; }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-a { margin-top: 20px; }
  .steps-row { flex-direction: column; }
  .btn-group-big { flex-direction: column; width: 100%; max-width: 300px; }
  .btn-group-big .btn-primary, .btn-group-big .btn-secondary { width: 100%; padding: 14px 24px; }
  .footer-top { grid-template-columns: 1fr; }
  .hidden-mobile { display: none; }
  .mobile-only { display: initial; }
}
@media (max-width: 480px) {
  .hero-stats { flex-direction: column; gap: 16px; }
  .free-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-large, .bento-wide { grid-column: span 1; }
  .premiere-main { flex-direction: column; }
  .premiere-main img { width: 100%; height: auto; aspect-ratio: 3/4; }
}