:root {
  --bg-color: #f5f6f8;
  --white: #ffffff;
  --yellow: #ffcc00;
  --yellow-hover: #ffb300;
  --text-main: #222222;
  --text-light: #666666;
  --border-color: #eaeaea;
  --bubble-bg: rgba(255, 255, 255, 0.4);
  --bubble-border: rgba(255, 204, 0, 0.3);
}

* { 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);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* 动画背景气泡 */
.bubble-bg {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.bubble {
  position: absolute;
  background: var(--bubble-bg);
  border: 1px solid var(--bubble-border);
  border-radius: 50%;
  animation: floatUp 15s infinite ease-in;
  opacity: 0.6;
}
@keyframes floatUp {
  0% { transform: translateY(100vh) scale(0.5); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateY(-20vh) scale(1.5); opacity: 0; }
}

/* 小猫下落动效 */
.cat-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 100; overflow: hidden; }
.cat {
  position: absolute;
  font-size: 24px;
  animation: fall linear forwards;
  opacity: 0.8;
}
@keyframes fall {
  0% { transform: translateY(-50px) rotate(0deg); }
  100% { transform: translateY(110vh) rotate(360deg); }
}

/* 导航条 */
header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bubble-border);
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}
.logo-area { display: flex; align-items: center; gap: 10px; font-weight: bold; font-size: 18px; color: var(--text-main); }
.logo-area img { height: 32px; border-radius: 6px; }
.nav-links { display: flex; gap: 15px; font-size: 14px; color: var(--text-light); }
.nav-links a:hover { color: var(--text-main); }
.menu-toggle {
  display: none;
  background: var(--yellow);
  border: none;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
  color: var(--text-main);
}

/* 首屏 */
.hero {
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .hero { flex-direction: row; align-items: center; justify-content: space-between; }
  .hero-text { flex: 1; padding-right: 40px; }
  .hero-carousel { flex: 1; }
}
.hero-text h1 { font-size: 32px; margin-bottom: 15px; line-height: 1.3; }
.hero-text p { color: var(--text-light); font-size: 16px; margin-bottom: 25px; }
.btn-download {
  display: inline-block;
  background: var(--yellow);
  color: var(--text-main);
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 16px;
  text-align: center;
  transition: all 0.3s;
  box-shadow: 0 4px 10px rgba(255, 204, 0, 0.3);
}
.btn-download:hover { background: var(--yellow-hover); transform: translateY(-2px); }
.update-time { font-size: 12px; color: #999; margin-top: 15px; display: block; }

/* 轮播图 */
.hero-carousel { position: relative; overflow: hidden; border-radius: 12px; aspect-ratio: 3/4; max-width: 400px; margin: 0 auto; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.carousel-inner { display: flex; transition: transform 0.5s ease; height: 100%; }
.carousel-item { min-width: 100%; height: 100%; position: relative; }
.carousel-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 播放按钮浮层 */
.play-overlay {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 60px; height: 60px; background: rgba(255,255,255,0.4);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: 2px solid rgba(255,255,255,0.8); backdrop-filter: blur(2px); transition: 0.3s;
}
.play-overlay::after {
  content: ''; display: block; width: 0; height: 0;
  border-left: 18px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 6px;
}
.play-overlay:hover { background: rgba(255,204,0,0.6); border-color: var(--yellow); }

/* 滚动横幅 */
.ticker-wrap {
  width: 100%; overflow: hidden; background: var(--white); padding: 10px 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);
  margin: 40px 0;
}
.ticker { display: flex; white-space: nowrap; animation: ticker 20s linear infinite; }
.ticker-item { padding: 0 30px; font-size: 14px; color: var(--text-light); display: flex; align-items: center; }
.ticker-item::before { content: '★'; color: var(--yellow); margin-right: 8px; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* 通用区块与网格 */
section { padding: 50px 20px; max-width: 1200px; margin: 0 auto; }
.section-title { font-size: 24px; margin-bottom: 30px; text-align: center; font-weight: bold; }
.grid-6 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
@media (min-width: 768px) { .grid-6 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .grid-6 { grid-template-columns: repeat(6, 1fr); } }

.card { background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.03); position: relative; }
.card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.card p { padding: 10px; font-size: 13px; text-align: center; color: var(--text-main); font-weight: bold; }

/* one优势 */
.advantage-box {
  background: var(--white); padding: 30px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.04); text-align: center; line-height: 1.8; font-size: 15px; color: var(--text-light);
}
.advantage-box strong { color: var(--text-main); font-size: 16px; }

/* 排行榜 */
.rank-item { display: flex; align-items: center; background: var(--white); padding: 10px; border-radius: 8px; gap: 15px; margin-bottom: 10px; }
.rank-item img { width: 60px; height: 80px; border-radius: 6px; object-fit: cover; }
.rank-info { flex: 1; }
.rank-info h4 { font-size: 15px; margin-bottom: 5px; }
.rank-data { font-size: 12px; color: var(--text-light); display: flex; gap: 15px; }

/* 弹幕区 */
.danmu-container {
  position: relative; width: 100%; max-width: 800px; margin: 0 auto; border-radius: 12px; overflow: hidden; background: #000; aspect-ratio: 16/9;
}
.danmu-container img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }
.danmu { position: absolute; color: #fff; font-weight: bold; white-space: nowrap; text-shadow: 1px 1px 2px #000; font-size: 16px; animation: fly linear forwards; }
@keyframes fly { 0% { transform: translateX(100vw); } 100% { transform: translateX(-100%); } }

/* 常见问题 */
.faq-item { background: var(--white); margin-bottom: 10px; border-radius: 8px; overflow: hidden; }
.faq-q { padding: 15px 20px; font-weight: bold; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-a { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s; color: var(--text-light); font-size: 14px; }
.faq-item.active .faq-a { padding: 0 20px 15px 20px; max-height: 200px; }

/* 网友热议 */
.comment-box { background: var(--white); padding: 20px; border-radius: 12px; }
.comment-box textarea { width: 100%; height: 80px; border: 1px solid var(--border-color); border-radius: 8px; padding: 10px; font-family: inherit; resize: none; margin-bottom: 10px; }
.comment-btn { background: var(--yellow); border: none; padding: 8px 20px; border-radius: 20px; font-weight: bold; cursor: pointer; color: var(--text-main); }
.comment-list { margin-top: 20px; display: flex; flex-direction: column; gap: 15px; }
.comment-item { display: flex; gap: 10px; }
.comment-item img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.comment-content p { font-size: 14px; color: var(--text-main); }
.comment-content span { font-size: 12px; color: var(--text-light); }

/* 弹窗 */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 200; align-items: center; justify-content: center; }
.modal.active { display: flex; }
.modal-content { background: var(--white); padding: 30px; border-radius: 12px; text-align: center; max-width: 300px; width: 80%; }
.modal-content h3 { margin-bottom: 15px; font-size: 18px; }
.modal-content p { color: var(--text-light); margin-bottom: 20px; font-size: 14px; }

/* 页脚 */
footer { text-align: center; padding: 40px 20px; font-size: 12px; color: #999; background: var(--white); border-top: 1px solid var(--border-color); }
footer a { color: #999; }
footer a:hover { color: var(--text-main); }

/* 响应式导航 */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; width: 100%; background: var(--white); padding: 15px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
  .nav-links.show { display: flex; }
  .menu-toggle { display: block; }
  .hero-text h1 { font-size: 24px; }
}