:root {
  --bg-color: #0f0a1a;
  --bg-card: #1a102b;
  --primary: #9d50bb;
  --purple-light: #c084fc;
  --text-main: #f3f4f6;
  --text-muted: #a1a1aa;
  --red-btn: #e53935;
  --red-hover: #d32f2f;
  --border-color: rgba(157, 80, 187, 0.3);
  --bubble-bg: rgba(157, 80, 187, 0.15);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 蓝莓下落的背景动效 */
.blueberry-bg {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.blueberry {
  position: absolute;
  background: radial-gradient(circle at 30% 30%, #6b21a8, #2e1065);
  border-radius: 50%;
  box-shadow: inset -2px -2px 4px rgba(0,0,0,0.5), 0 0 10px rgba(157, 80, 187, 0.5);
  animation: fall linear infinite;
}
.blueberry::after {
  content: '';
  position: absolute;
  top: 15%; left: 50%;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
}
@keyframes fall {
  0% { transform: translateY(-100px) rotate(0deg); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

/* 导航条 */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15, 10, 26, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0;
}
.nav-inner {
  display: flex; justify-content: space-between; align-items: center;
}
.logo-area { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: bold; color: #fff; }
.logo-area img { height: 32px; width: auto; border-radius: 6px; }
.nav-links {
  display: flex; gap: 15px; align-items: center;
}
.nav-links a {
  font-size: 14px; color: var(--text-muted);
  padding: 6px 12px; border-radius: 20px;
  border: 1px solid transparent;
  transition: all 0.3s;
}
.nav-links a:hover, .nav-links a.active {
  color: #fff; background: var(--bubble-bg);
  border-color: var(--primary);
}
.menu-toggle {
  display: none; background: var(--bubble-bg); border: 1px solid var(--primary);
  color: #fff; padding: 6px 12px; border-radius: 8px; cursor: pointer;
  font-size: 14px;
}

/* 首屏 Hero */
.hero {
  padding: 60px 0; display: flex; align-items: center; gap: 40px;
}
.hero-content { flex: 1; }
.hero-content h1 {
  font-size: 42px; line-height: 1.2; margin-bottom: 20px;
  background: linear-gradient(90deg, #fff, var(--purple-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-content p {
  font-size: 16px; color: var(--text-muted); margin-bottom: 30px;
}
.download-btn {
  display: inline-block;
  background: var(--red-btn); color: #fff;
  padding: 14px 32px; border-radius: 30px;
  font-size: 18px; font-weight: bold;
  box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
  transition: transform 0.2s, background 0.2s;
}
.download-btn:hover { background: var(--red-hover); transform: translateY(-2px); }
.update-time {
  margin-top: 15px; font-size: 12px; color: var(--text-muted);
}

/* 轮播图 */
.hero-carousel { flex: 1; position: relative; height: 400px; display: flex; justify-content: center; align-items: center; perspective: 1000px; }
.card-container { position: relative; width: 220px; height: 320px; }
.card {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  border-radius: 12px; overflow: hidden; cursor: pointer;
  transition: all 0.5s ease; box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  border: 2px solid var(--border-color);
}
.card img { width: 100%; height: 100%; object-fit: cover; }
.play-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 50px; height: 50px;
  background: rgba(0,0,0,0.5); border-radius: 50%;
  display: flex; justify-content: center; align-items: center;
  border: 2px solid #fff; pointer-events: none;
}
.play-btn::before {
  content: ''; display: block; width: 0; height: 0;
  border-top: 10px solid transparent; border-bottom: 10px solid transparent;
  border-left: 15px solid #fff; margin-left: 5px;
}
/* 轮播图坐标控制 */
.card:nth-child(1) { transform: translateX(0) scale(0.8) translateZ(-50px); opacity: 0.6; z-index: 1; }
.card:nth-child(2) { transform: translateX(-80px) scale(0.9) translateZ(-20px); opacity: 0.8; z-index: 2; }
.card:nth-child(3) { transform: translateX(-160px) scale(1) translateZ(0); opacity: 1; z-index: 3; }
.card:nth-child(4) { transform: translateX(80px) scale(0.9) translateZ(-20px); opacity: 0.8; z-index: 2; }
.card:nth-child(5) { transform: translateX(160px) scale(0.8) translateZ(-50px); opacity: 0.6; z-index: 1; }
/* 动画轮换效果 */
.carousel-active .card:nth-child(1) { transform: translateX(160px) scale(0.8) translateZ(-50px); opacity: 0.6; }
.carousel-active .card:nth-child(2) { transform: translateX(0) scale(0.8) translateZ(-50px); opacity: 0.6; }
.carousel-active .card:nth-child(3) { transform: translateX(-80px) scale(0.9) translateZ(-20px); opacity: 0.8; }
.carousel-active .card:nth-child(4) { transform: translateX(-160px) scale(1) translateZ(0); opacity: 1; }
.carousel-active .card:nth-child(5) { transform: translateX(80px) scale(0.9) translateZ(-20px); opacity: 0.8; }

/* 滚动的横幅 */
.marquee-wrapper {
  background: var(--bg-card); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);
  overflow: hidden; white-space: nowrap; padding: 15px 0; margin: 40px 0;
}
.marquee-content {
  display: inline-block; animation: marquee 20s linear infinite;
  font-size: 14px; color: var(--purple-light);
}
.marquee-content span { margin: 0 30px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 通用区块标题 */
.section-title {
  font-size: 28px; margin-bottom: 30px; text-align: center;
  color: #fff; position: relative; display: inline-block;
  left: 50%; transform: translateX(-50%);
}
.section-title::after {
  content: ''; position: absolute; bottom: -10px; left: 20%; width: 60%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}
section { padding: 60px 0; }

/* 赤果原创 & 热播（网格布局） */
.grid-section { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.item-card {
  background: var(--bg-card); border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border-color); transition: transform 0.3s;
}
.item-card:hover { transform: translateY(-5px); }
.card-img-wrap { position: relative; cursor: pointer; aspect-ratio: 3/4; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.item-info { padding: 15px; }
.item-info p { font-size: 14px; color: var(--text-muted); }
.item-info h3 { font-size: 16px; margin-bottom: 8px; color: #fff; }

/* 赤果优势 */
.advantage-section {
  background: var(--bg-card); border-radius: 16px; padding: 40px;
  border: 1px solid var(--border-color); text-align: center;
  max-width: 800px; margin: 0 auto;
}
.advantage-section p {
  font-size: 16px; line-height: 1.8; color: var(--text-main); text-align: justify;
}

/* 赤果排行榜 */
.rank-list { display: flex; flex-direction: column; gap: 15px; max-width: 800px; margin: 0 auto; }
.rank-item {
  display: flex; align-items: center; background: var(--bg-card); border-radius: 10px;
  padding: 15px; border: 1px solid var(--border-color); cursor: pointer; transition: background 0.3s;
}
.rank-item:hover { background: rgba(157, 80, 187, 0.1); }
.rank-item img { width: 60px; height: 80px; object-fit: cover; border-radius: 6px; margin-right: 20px; }
.rank-info { flex: 1; }
.rank-info h3 { font-size: 16px; margin-bottom: 5px; }
.rank-stats { font-size: 12px; color: var(--text-muted); display: flex; gap: 15px; }

/* 弹幕互动 */
.danmaku-container {
  position: relative; width: 100%; max-width: 800px; margin: 0 auto;
  border-radius: 16px; overflow: hidden; border: 2px solid var(--border-color);
  aspect-ratio: 16/9;
}
.danmaku-container img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }
.danmaku-layer {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; overflow: hidden;
}
.danmaku-item {
  position: absolute; color: #fff; font-weight: bold; font-size: 16px;
  text-shadow: 1px 1px 2px #000; white-space: nowrap;
  animation: danmaku-move 8s linear infinite;
}
@keyframes danmaku-move {
  from { transform: translateX(100vw); }
  to { transform: translateX(-100%); }
}

/* 赤果历史 */
.history-section { text-align: center; max-width: 800px; margin: 0 auto; }
.history-section p { font-size: 15px; color: var(--text-muted); margin-bottom: 15px; text-align: left; }

/* 常见问题手风琴 */
.faq-section { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--bg-card); border-radius: 8px; margin-bottom: 10px;
  border: 1px solid var(--border-color); overflow: hidden;
}
.faq-question {
  padding: 15px 20px; font-size: 16px; cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; font-weight: bold;
}
.faq-question::after {
  content: '+'; font-size: 20px; color: var(--primary); transition: transform 0.3s;
}
.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  padding: 0 20px; background: rgba(0,0,0,0.2); font-size: 14px; color: var(--text-muted);
}
.faq-item.active .faq-answer { max-height: 200px; padding: 15px 20px; }

/* 网友热议 */
.comments-section { max-width: 800px; margin: 0 auto; }
.comment-list { display: flex; flex-direction: column; gap: 15px; margin-bottom: 30px; }
.comment-item {
  display: flex; gap: 15px; background: var(--bg-card); padding: 15px; border-radius: 8px;
  border: 1px solid var(--border-color);
}
.comment-avatar { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--primary); }
.comment-content { flex: 1; }
.comment-user { font-size: 14px; font-weight: bold; color: var(--purple-light); margin-bottom: 5px; }
.comment-text { font-size: 14px; color: var(--text-main); }
.comment-form { display: flex; flex-direction: column; gap: 10px; }
.comment-form textarea {
  width: 100%; padding: 15px; border-radius: 8px; border: 1px solid var(--border-color);
  background: var(--bg-card); color: #fff; resize: vertical; min-height: 100px; font-family: inherit;
}
.comment-form button {
  align-self: flex-end; background: var(--primary); color: #fff; border: none;
  padding: 10px 20px; border-radius: 6px; cursor: pointer; font-size: 14px;
}

/* 弹窗 */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.8); z-index: 1000; display: none;
  justify-content: center; align-items: center;
}
.modal-content {
  background: var(--bg-card); padding: 30px; border-radius: 12px;
  border: 1px solid var(--primary); text-align: center; max-width: 90%; width: 320px;
}
.modal-content h3 { margin-bottom: 15px; color: var(--purple-light); }
.modal-content p { font-size: 14px; margin-bottom: 20px; color: var(--text-muted); }
.modal-close {
  background: var(--red-btn); color: #fff; border: none; padding: 10px 20px;
  border-radius: 6px; cursor: pointer;
}

/* 页脚 */
footer {
  text-align: center; padding: 30px 20px; border-top: 1px solid var(--border-color);
  font-size: 12px; color: var(--text-muted);
}
footer a { color: var(--text-muted); text-decoration: underline; }
footer a:hover { color: #fff; }

/* 响应式 */
@media (max-width: 1024px) {
  .hero { flex-direction: column; text-align: center; padding: 40px 0; }
  .hero-content h1 { font-size: 32px; }
  .hero-carousel { height: 350px; }
  .grid-section { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; width: 100%; background: var(--bg-color); padding: 20px; border-bottom: 1px solid var(--border-color); }
  .nav-links.show { display: flex; }
  .menu-toggle { display: block; }
}
@media (max-width: 768px) {
  .grid-section { grid-template-columns: 1fr; }
  .hero-carousel { height: 300px; }
  .card-container { width: 180px; height: 270px; }
  .card:nth-child(2) { transform: translateX(-50px) scale(0.9) translateZ(-20px); }
  .card:nth-child(3) { transform: translateX(-100px) scale(1) translateZ(0); }
  .card:nth-child(4) { transform: translateX(50px) scale(0.9) translateZ(-20px); }
  .card:nth-child(5) { transform: translateX(100px) scale(0.8) translateZ(-50px); }
  .carousel-active .card:nth-child(1) { transform: translateX(100px) scale(0.8) translateZ(-50px); }
  .carousel-active .card:nth-child(2) { transform: translateX(0) scale(0.8) translateZ(-50px); }
  .carousel-active .card:nth-child(3) { transform: translateX(-50px) scale(0.9) translateZ(-20px); }
  .carousel-active .card:nth-child(4) { transform: translateX(-100px) scale(1) translateZ(0); }
  .carousel-active .card:nth-child(5) { transform: translateX(50px) scale(0.9) translateZ(-20px); }
  .advantage-section { padding: 20px; }
  .danmaku-container { aspect-ratio: 4/3; }
}