* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background-color: #0a0a0a;
  color: #e0e0e0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; object-fit: cover; }

/* 导航条 */
.nav-toggle {
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 1000;
  background: #cc0000;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px 15px;
  font-size: 16px;
  cursor: pointer;
  font-weight: bold;
}
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100vh;
  background: #111;
  border-right: 1px solid #222;
  padding: 20px;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 999;
  overflow-y: auto;
}
.sidebar.active { transform: translateX(0); }
.sidebar ul { list-style: none; margin-top: 50px; }
.sidebar li { margin-bottom: 20px; }
.sidebar a { font-size: 18px; color: #ccc; transition: color 0.2s; display: block; padding: 8px 10px; border-radius: 4px; }
.sidebar a:hover { color: #fff; background: #cc0000; }

/* 布局主体 */
.main-content {
  transition: margin-left 0.3s ease;
  padding: 20px;
}
@media (min-width: 1024px) {
  .sidebar { transform: translateX(0); }
  .main-content { margin-left: 250px; }
  .nav-toggle { display: none; }
}

/* 首屏 */
.hero {
  padding: 60px 20px 40px;
  text-align: center;
  background: linear-gradient(180deg, rgba(204,0,0,0.15) 0%, transparent 100%);
  border-bottom: 1px solid #222;
}
.logo-wrap { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 20px; }
.logo-wrap img { height: 40px; border-radius: 8px; }
.logo-wrap span { font-size: 24px; font-weight: bold; color: #fff; }
.hero h1 { font-size: 32px; color: #fff; margin-bottom: 15px; line-height: 1.3; }
.hero h1 span { color: #cc0000; }
.hero p { font-size: 16px; color: #aaa; margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; }
.btn-download {
  display: inline-block;
  background: #ffcc00;
  color: #000;
  font-size: 18px;
  font-weight: bold;
  padding: 15px 40px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(255, 204, 0, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-download:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(255, 204, 0, 0.5); }

/* 滚动横幅 */
.ticker-wrap { width: 100%; overflow: hidden; background: #1a0000; border-top: 1px solid #330000; border-bottom: 1px solid #330000; padding: 10px 0; margin: 30px 0; }
.ticker { display: inline-block; white-space: nowrap; animation: ticker 20s linear infinite; color: #ff6666; font-size: 14px; font-weight: bold; }
@keyframes ticker { 0% { transform: translateX(100vw); } 100% { transform: translateX(-100%); } }

/* 轮播图 */
.carousel-section { margin: 40px 0; text-align: center; }
.section-title { font-size: 24px; color: #fff; margin-bottom: 20px; text-align: left; border-left: 4px solid #cc0000; padding-left: 12px; }
.section-subtitle { font-size: 14px; color: #888; margin-bottom: 30px; text-align: left; }
.carousel { position: relative; max-width: 900px; margin: 0 auto; overflow: hidden; border-radius: 12px; }
.carousel-track { display: flex; transition: transform 0.4s ease; }
.carousel-slide { min-width: 100%; position: relative; }
.carousel-slide img { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; }
.play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 60px; height: 60px; background: rgba(0,0,0,0.5); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer; border: 2px solid #fff;
}
.play-btn::after { content: ''; display: block; width: 0; height: 0; border-top: 12px solid transparent; border-bottom: 12px solid transparent; border-left: 20px solid #fff; margin-left: 5px; }

/* 卡片网格 */
.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: #161616; border-radius: 8px; overflow: hidden; position: relative; }
.card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.card-text { padding: 10px; font-size: 13px; color: #ccc; }

/* 榜单 */
.rank-list { display: flex; flex-direction: column; gap: 15px; }
.rank-item { display: flex; align-items: center; background: #161616; border-radius: 8px; padding: 10px; gap: 15px; }
.rank-item img { width: 60px; height: 80px; border-radius: 4px; }
.rank-info { flex: 1; }
.rank-title { font-size: 16px; font-weight: bold; color: #fff; margin-bottom: 5px; }
.rank-stats { font-size: 12px; color: #ffcc00; }
.rank-num { font-size: 24px; font-weight: bold; color: #cc0000; font-style: italic; width: 30px; text-align: center; }

/* 弹幕互动 */
.danmu-box { position: relative; max-width: 600px; margin: 0 auto; border-radius: 12px; overflow: hidden; background: #000; }
.danmu-box img { width: 100%; aspect-ratio: 16/9; object-fit: cover; opacity: 0.7; }
.danmu-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; overflow: hidden; }
.danmu-item { position: absolute; white-space: nowrap; color: #fff; font-size: 14px; font-weight: bold; text-shadow: 1px 1px 2px #000; animation: danmu-move 8s linear infinite; }
@keyframes danmu-move { from { transform: translateX(100%); } to { transform: translateX(-100%); } }
.danmu-item:nth-child(1) { top: 10%; animation-duration: 6s; }
.danmu-item:nth-child(2) { top: 30%; animation-duration: 8s; animation-delay: 2s; }
.danmu-item:nth-child(3) { top: 50%; animation-duration: 7s; animation-delay: 4s; }
.danmu-item:nth-child(4) { top: 70%; animation-duration: 9s; animation-delay: 1s; }
.danmu-item:nth-child(5) { top: 90%; animation-duration: 5s; animation-delay: 3s; }

/* 历史 */
.history-text { background: #161616; padding: 20px; border-radius: 8px; color: #bbb; font-size: 15px; line-height: 1.8; }
.history-text p { margin-bottom: 15px; }

/* 常见问题 */
.faq-item { border-bottom: 1px solid #333; }
.faq-q { padding: 15px; cursor: pointer; font-weight: bold; color: #fff; display: flex; justify-content: space-between; align-items: center; }
.faq-q::after { content: '+'; font-size: 20px; color: #cc0000; }
.faq-item.active .faq-q::after { content: '-'; }
.faq-a { padding: 0 15px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; color: #aaa; font-size: 14px; }
.faq-item.active .faq-a { max-height: 200px; padding-bottom: 15px; }

/* 评论 */
.comment-box { background: #161616; padding: 20px; border-radius: 8px; margin-top: 20px; }
.comment-form textarea { width: 100%; height: 80px; background: #0a0a0a; border: 1px solid #333; color: #fff; padding: 10px; border-radius: 6px; resize: none; margin-bottom: 10px; font-family: inherit; }
.comment-form button { background: #cc0000; color: #fff; border: none; padding: 10px 20px; border-radius: 6px; cursor: pointer; }
.comment-list { margin-top: 20px; display: flex; flex-direction: column; gap: 15px; }
.comment-item { display: flex; gap: 10px; background: #111; padding: 10px; border-radius: 6px; }
.comment-item img { width: 40px; height: 40px; border-radius: 50%; }
.comment-content { flex: 1; }
.comment-name { font-size: 12px; color: #888; margin-bottom: 4px; }
.comment-text { font-size: 14px; color: #ccc; }

/* 底部 */
footer { margin-top: 60px; padding: 30px 20px; border-top: 1px solid #222; text-align: center; color: #666; font-size: 12px; }
footer time { display: block; margin-top: 8px; font-size: 11px; color: #444; }

/* 弹窗 */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 2000; justify-content: center; align-items: center; }
.modal.active { display: flex; }
.modal-content { background: #1a1a1a; padding: 30px; border-radius: 12px; text-align: center; max-width: 90%; width: 400px; border: 1px solid #333; }
.modal-content h3 { color: #fff; margin-bottom: 15px; font-size: 20px; }
.modal-content p { color: #aaa; margin-bottom: 20px; font-size: 14px; }
.modal-btn { background: #ffcc00; color: #000; padding: 10px 20px; border-radius: 20px; font-weight: bold; border: none; cursor: pointer; }
.modal-btn-close { background: #333; color: #fff; padding: 10px 20px; border-radius: 20px; font-weight: bold; border: none; cursor: pointer; margin-left: 10px; }

/* 内裤下落效果 */
.falling-wrap { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; overflow: hidden; }
.falling-item { position: absolute; top: -50px; font-size: 24px; opacity: 0.15; animation: fall linear infinite; }
@keyframes fall { 0% { transform: translateY(0) rotate(0deg); } 100% { transform: translateY(105vh) rotate(360deg); } }