:root {
  --bg: #0b0b0d;
  --bg-soft: #141417;
  --bg-card: #1a1a1f;
  --red: #e02b2b;
  --red-deep: #a81c1c;
  --text: #f2f2f4;
  --text-muted: #9b9ba5;
  --line: #2a2a31;
  --radius: 12px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* 香蕉皮掉落装饰 */
.banana-layer { position: fixed; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.banana {
  position: absolute; top: -80px; font-size: 22px; opacity: .55;
  animation: fall linear infinite;
  filter: drop-shadow(0 0 4px rgba(224,43,43,.4));
}
@keyframes fall {
  0% { transform: translateY(-80px) rotate(0deg); }
  100% { transform: translateY(110vh) rotate(360deg); }
}

/* 顶部移动导航 */
.mobile-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: rgba(11,11,13,.95);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.topbar-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; }
.topbar-brand img { height: 30px; width: auto; border-radius: 6px; }
.nav-toggle {
  background: var(--red); color: #fff; border: none;
  padding: 6px 14px; border-radius: 20px; font-size: 14px; cursor: pointer;
}
.nav-toggle:active { background: var(--red-deep); }

/* 左侧导航 */
.side-nav {
  position: fixed; left: 0; top: 0; bottom: 0; width: 200px;
  background: var(--bg-soft); border-right: 1px solid var(--line);
  z-index: 60; padding: 20px 0; overflow-y: auto;
  transition: transform .3s ease;
}
.side-nav.collapsed { transform: translateX(-100%); }
.side-nav-head { display: flex; flex-direction: column; align-items: center; padding: 0 16px 20px; border-bottom: 1px solid var(--line); }
.side-nav-head img { height: 38px; width: auto; border-radius: 8px; margin-bottom: 10px; }
.side-nav-head .brand-name { font-size: 17px; font-weight: 700; letter-spacing: 1px; }
.side-nav ul { list-style: none; padding: 16px 0; }
.side-nav li { margin-bottom: 2px; }
.side-nav li a {
  display: block; padding: 10px 24px; font-size: 15px; color: var(--text-muted);
  border-left: 3px solid transparent; transition: all .2s;
}
.side-nav li a:hover { color: #fff; background: rgba(224,43,43,.1); border-left-color: var(--red); }
.side-nav li a.active { color: #fff; border-left-color: var(--red); }

/* 主内容 */
.main-wrap { margin-left: 200px; position: relative; z-index: 2; }
.mobile-nav-drop {
  display: none; background: var(--bg-soft); border-bottom: 1px solid var(--line);
  padding: 0 16px;
}
.mobile-nav-drop.open { display: block; }
.mobile-nav-drop ul { list-style: none; padding: 10px 0; }
.mobile-nav-drop li a { display: block; padding: 10px 4px; color: var(--text-muted); border-bottom: 1px solid var(--line); font-size: 15px; }

/* 首屏 */
.hero {
  position: relative; padding: 50px 48px 40px;
  background: radial-gradient(circle at 20% 0%, rgba(168,28,28,.35) 0%, transparent 55%),
              radial-gradient(circle at 90% 100%, rgba(224,43,43,.18) 0%, transparent 50%),
              var(--bg);
  overflow: hidden;
}
.hero-inner { display: flex; gap: 40px; align-items: center; flex-wrap: wrap; }
.hero-text { flex: 1 1 340px; min-width: 0; }
.hero-text h1 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.3; margin-bottom: 16px; letter-spacing: .5px; }
.hero-text h1 em { color: var(--red); font-style: normal; }
.hero-text p.sub { color: var(--text-muted); font-size: 16px; margin-bottom: 26px; max-width: 520px; }
.download-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: #fff; font-size: 17px; font-weight: 700;
  padding: 14px 34px; border-radius: 30px;
  box-shadow: 0 6px 24px rgba(224,43,43,.45);
  transition: .2s;
}
.download-btn:hover { background: var(--red-deep); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(224,43,43,.6); }
.download-btn .arrow { font-size: 20px; }
.update-time { margin-top: 14px; font-size: 13px; color: var(--text-muted); }
.hero-time-note { display: block; margin-top: 4px; font-size: 12px; color: #5e5e68; }

/* 轮播 */
.carousel-wrap { flex: 1 1 400px; max-width: 560px; min-width: 0; position: relative; }
.carousel-stage { position: relative; height: 340px; perspective: 1200px; }
.carousel-card {
  position: absolute; top: 50%; left: 50%; width: 200px; height: 300px;
  margin: -150px 0 0 -100px; border-radius: 10px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.7); transition: .5s ease;
  background: #222;
}
.carousel-card img { width: 100%; height: 100%; object-fit: cover; }
.carousel-card.pos-0 { transform: translateX(0) translateZ(120px) rotateY(0deg) scale(1); z-index: 5; }
.carousel-card.pos-1 { transform: translateX(130px) translateZ(0) rotateY(-25deg) scale(.86); z-index: 4; }
.carousel-card.pos-2 { transform: translateX(240px) translateZ(-80px) rotateY(-40deg) scale(.72); z-index: 3; }
.carousel-card.pos--1 { transform: translateX(-130px) translateZ(0) rotateY(25deg) scale(.86); z-index: 4; }
.carousel-card.pos--2 { transform: translateX(-240px) translateZ(-80px) rotateY(40deg) scale(.72); z-index: 3; }
.carousel-card.pos-hidden { opacity: 0; transform: translateX(0) translateZ(-300px) scale(.5); z-index: 1; }
.carousel-dots { text-align: center; margin-top: 16px; }
.carousel-dots button { width: 8px; height: 8px; border-radius: 50%; border: none; background: #4a4a52; margin: 0 4px; cursor: pointer; }
.carousel-dots button.active { background: var(--red); width: 20px; border-radius: 5px; }
.carousel-arrows { position: absolute; top: 50%; width: 100%; display: flex; justify-content: space-between; transform: translateY(-50%); pointer-events: none; padding: 0 -10px; }
.carousel-arrows span { pointer-events: auto; cursor: pointer; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.6); border-radius: 50%; font-size: 20px; color: #fff; border: 1px solid var(--line); }

/* 区块通用 */
.section { padding: 54px 48px; border-top: 1px solid var(--line); position: relative; }
.section-title { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.section-title::before { content: ""; display: inline-block; width: 6px; height: 20px; background: var(--red); margin-right: 10px; vertical-align: -2px; border-radius: 3px; }
.section-desc { color: var(--text-muted); margin-bottom: 30px; font-size: 15px; }
.img-grid { display: grid; gap: 18px; }
.thumb { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-card); cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.thumb:hover img { transform: scale(1.06); }
.thumb .play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(0,0,0,.45); border: 2px solid rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; padding-left: 4px;
  transition: .25s; backdrop-filter: blur(2px);
}
.thumb:hover .play-btn { background: rgba(224,43,43,.85); border-color: #fff; transform: translate(-50%,-50%) scale(1.1); }
.thumb .thumb-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 12px 10px; font-size: 13px; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
}
.thumb .thumb-cap .stat { display: block; color: var(--red); font-size: 12px; margin-top: 2px; }

.thumb-grid-3 { grid-template-columns: repeat(3, 1fr); }
.thumb-grid-2 { grid-template-columns: repeat(2, 1fr); }
.thumb-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* 亮点 */
.highlight-box {
  background: var(--bg-card); border-left: 4px solid var(--red);
  border-radius: var(--radius); padding: 28px 30px; font-size: 15.5px; line-height: 2;
  color: #dcdce2;
}
.highlight-box strong { color: var(--red); }

/* 滚动横幅 */
.marquee { background: var(--red); color: #fff; overflow: hidden; white-space: nowrap; padding: 10px 0; font-size: 14px; font-weight: 600; }
.marquee-inner { display: inline-block; animation: marquee 22s linear infinite; }
.marquee-inner span { margin-right: 42px; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* 弹幕播放区 */
.danmu-player { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; max-width: 900px; margin: 0 auto; }
.danmu-player > img { width: 100%; display: block; }
.danmu-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.danmu-item {
  position: absolute; left: 100%; white-space: nowrap; font-size: 15px; font-weight: 600;
  color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.9);
  animation: danmu-move linear infinite;
}
.danmu-item.hot { color: #ff5252; }
@keyframes danmu-move { 0% { transform: translateX(0); } 100% { transform: translateX(-180vw); } }
.player-bar {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 16px;
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  font-size: 13px; color: #ddd; pointer-events: none;
}
.player-bar .pb-play { width: 30px; height: 30px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; }
.progress-line { flex: 1; height: 4px; background: rgba(255,255,255,.25); border-radius: 2px; overflow: hidden; }
.progress-line i { display: block; width: 42%; height: 100%; background: var(--red); border-radius: 2px; }
.danmu-tip { text-align: center; color: var(--text-muted); font-size: 13px; margin-top: 12px; }

/* 历程 */
.timeline { list-style: none; position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; margin-bottom: 22px; color: #d4d4da; font-size: 15px; }
.timeline li::before { content: ""; position: absolute; left: -26px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(224,43,43,.2); }
.timeline li strong { display: block; color: #fff; margin-bottom: 2px; }

/* 常见问题 */
.faq-item { background: var(--bg-card); border-radius: 10px; margin-bottom: 10px; overflow: hidden; border: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: none; color: var(--text); font-size: 15px; padding: 16px 18px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.faq-q::after { content: "＋"; color: var(--red); font-size: 18px; transition: .2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; padding: 0 18px; color: var(--text-muted); font-size: 14px; }
.faq-item.open .faq-a { max-height: 200px; padding-bottom: 16px; }

/* 网友热议 */
.comment-form { background: var(--bg-card); padding: 18px; border-radius: var(--radius); margin-bottom: 22px; border: 1px solid var(--line); }
.comment-form textarea { width: 100%; min-height: 80px; background: var(--bg); border: 1px solid var(--line); color: #fff; padding: 10px; border-radius: 8px; resize: vertical; font-family: inherit; font-size: 14px; }
.comment-form .cf-row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; gap: 12px; flex-wrap: wrap; }
.comment-form input { flex: 1; min-width: 120px; background: var(--bg); border: 1px solid var(--line); color: #fff; padding: 9px 10px; border-radius: 8px; font-size: 14px; }
.submit-btn { background: var(--red); border: none; color: #fff; padding: 9px 24px; border-radius: 8px; cursor: pointer; font-weight: 600; }
.submit-btn:hover { background: var(--red-deep); }
.comments { display: flex; flex-direction: column; gap: 16px; }
.comment { display: flex; gap: 12px; background: var(--bg-card); padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); }
.comment img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.comment .c-body .c-name { font-size: 14px; color: #fff; font-weight: 600; margin-bottom: 2px; }
.comment .c-body .c-time { font-size: 12px; color: #666; margin-bottom: 6px; }
.comment .c-body .c-text { font-size: 14px; color: #c8c8d0; }

/* 底部下载区 */
.download-band { text-align: center; padding: 60px 24px; background: radial-gradient(circle at 50% 40%, rgba(168,28,28,.35), transparent 65%); }
.download-band h2 { font-size: 26px; margin-bottom: 10px; }
.download-band p { color: var(--text-muted); margin-bottom: 24px; }

/* 页脚 */
.site-footer { border-top: 1px solid var(--line); padding: 30px 48px; text-align: center; color: #5e5e68; font-size: 12px; line-height: 2; }
.site-footer a { color: #5e5e68; transition: .2s; }
.site-footer a:hover { color: var(--red); }

/* 弹窗 */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.8); z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.show { display: flex; }
.modal-card { background: var(--bg-soft); border-radius: 16px; padding: 34px 30px; max-width: 380px; width: 100%; text-align: center; border: 1px solid var(--line); position: relative; }
.modal-card h3 { font-size: 20px; margin-bottom: 8px; }
.modal-card p { color: var(--text-muted); font-size: 14px; margin-bottom: 22px; }
.modal-close { position: absolute; top: 12px; right: 16px; background: none; border: none; color: #888; font-size: 22px; cursor: pointer; }

/* 响应式 768px */
@media (max-width: 767px) {
  .side-nav { display: none; }
  .mobile-topbar { display: flex; }
  .main-wrap { margin-left: 0; }
  .hero { padding: 30px 18px; }
  .hero-inner { flex-direction: column; gap: 30px; }
  .hero-text { flex: 1 1 100%; text-align: center; }
  .hero-text p.sub { margin-left: auto; margin-right: auto; }
  .carousel-wrap { width: 100%; max-width: 100%; }
  .carousel-stage { height: 260px; }
  .carousel-card { width: 150px; height: 225px; margin: -112px 0 0 -75px; }
  .carousel-card.pos-0 { transform: translateX(0) translateZ(80px) scale(1); }
  .carousel-card.pos-1 { transform: translateX(90px) rotateY(-25deg) scale(.85); }
  .carousel-card.pos-2 { transform: translateX(160px) rotateY(-40deg) scale(.7); }
  .carousel-card.pos--1 { transform: translateX(-90px) rotateY(25deg) scale(.85); }
  .carousel-card.pos--2 { transform: translateX(-160px) rotateY(40deg) scale(.7); }
  .carousel-arrows span { width: 30px; height: 30px; font-size: 16px; }
  .section { padding: 36px 18px; }
  .thumb-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .thumb-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .thumb-grid-2 { grid-template-columns: 1fr; }
  .site-footer { padding: 24px 18px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .side-nav { width: 170px; }
  .main-wrap { margin-left: 170px; }
  .hero { padding: 40px 28px; }
  .section { padding: 44px 28px; }
  .thumb-grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .mobile-topbar { display: none; }
  .mobile-nav-drop { display: none !important; }
}