:root{
  --bg:#120a1c;
  --bg-soft:#1d1129;
  --card:#241534;
  --purple:#8f4fff;
  --purple-light:#b98bff;
  --yellow:#ffd23f;
  --red:#e8323c;
  --text:#f3ecff;
  --muted:#b6a7cc;
}
*{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;
  position:relative;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}

/* 水果下落背景 */
.fruit-rain{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:0;
  overflow:hidden;
}
.fruit{
  position:absolute;
  top:-80px;
  font-size:26px;
  opacity:0.18;
  animation:fall linear infinite;
}
@keyframes fall{
  0%{transform:translateY(-80px) rotate(0deg);}
  100%{transform:translateY(110vh) rotate(360deg);}
}
.fruit:nth-child(1){left:5%;animation-duration:14s;animation-delay:0s;}
.fruit:nth-child(2){left:18%;animation-duration:18s;animation-delay:2s;font-size:34px;}
.fruit:nth-child(3){left:32%;animation-duration:12s;animation-delay:5s;}
.fruit:nth-child(4){left:48%;animation-duration:20s;animation-delay:1s;font-size:30px;}
.fruit:nth-child(5){left:63%;animation-duration:16s;animation-delay:7s;}
.fruit:nth-child(6){left:78%;animation-duration:13s;animation-delay:3s;font-size:32px;}
.fruit:nth-child(7){left:90%;animation-duration:17s;animation-delay:6s;}
.fruit:nth-child(8){left:41%;animation-duration:22s;animation-delay:9s;font-size:28px;}

/* 导航 */
.nav{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(18,10,28,0.78);
  backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(143,79,255,0.25);
}
.nav-inner{
  max-width:1200px;
  margin:0 auto;
  padding:10px 16px;
  display:flex;
  align-items:center;
  gap:12px;
}
.nav-brand{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:700;
  color:var(--yellow);
  white-space:nowrap;
}
.nav-brand img{height:30px;width:auto;border-radius:6px;}
.bubble-wrap{
  flex:1;
  position:relative;
}
.bubble-nav{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  list-style:none;
  padding:6px 4px;
  transition:max-height .35s ease,opacity .35s ease;
  max-height:200px;
  overflow:hidden;
}
.bubble-nav.collapsed{
  max-height:0;
  opacity:0;
  padding:0;
}
.bubble-nav a{
  display:inline-block;
  padding:5px 12px;
  border-radius:20px;
  font-size:13px;
  background:rgba(143,79,255,0.14);
  border:1px solid rgba(185,139,255,0.35);
  color:var(--text);
  white-space:nowrap;
  transition:background .25s,transform .25s;
}
.bubble-nav a:hover{
  background:rgba(255,210,63,0.2);
  border-color:var(--yellow);
  transform:translateY(-2px);
}
.nav-toggle{
  background:rgba(143,79,255,0.2);
  border:1px solid var(--purple-light);
  color:var(--yellow);
  border-radius:8px;
  padding:6px 12px;
  font-size:13px;
  cursor:pointer;
  white-space:nowrap;
}
.nav-toggle:hover{background:var(--purple);color:#fff;}

/* 首屏 */
.hero{
  position:relative;
  z-index:1;
  max-width:1200px;
  margin:0 auto;
  padding:48px 16px 40px;
  display:grid;
  gap:32px;
}
.hero-text h1{
  font-size:34px;
  line-height:1.35;
  margin-bottom:16px;
  color:#fff;
}
.hero-text h1 span{color:var(--yellow);}
.hero-text p{
  color:var(--muted);
  margin-bottom:12px;
  font-size:15px;
  max-width:520px;
}
.hero-badge{
  display:inline-block;
  background:rgba(143,79,255,0.22);
  border:1px solid var(--purple-light);
  color:var(--yellow);
  border-radius:20px;
  padding:4px 14px;
  font-size:13px;
  margin-bottom:16px;
}
.download-btn{
  display:inline-block;
  background:linear-gradient(135deg,var(--red),#ff6b4a);
  color:#fff;
  font-weight:700;
  padding:14px 32px;
  border-radius:40px;
  font-size:17px;
  box-shadow:0 8px 24px rgba(232,50,60,0.4);
  transition:transform .25s,box-shadow .25s;
  margin-top:8px;
}
.download-btn:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 30px rgba(232,50,60,0.55);
}
.hero-visual{
  position:relative;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  flex-wrap:nowrap;
}
/* 扑克牌轮播 */
.slider{
  position:relative;
  width:100%;
  max-width:520px;
  height:360px;
  user-select:none;
}
.slider-card{
  position:absolute;
  top:0;
  left:50%;
  width:170px;
  height:250px;
  border-radius:14px;
  overflow:hidden;
  transform-origin:50% 100%;
  transition:transform .5s cubic-bezier(.22,.61,.36,1),opacity .5s;
  box-shadow:0 12px 30px rgba(0,0,0,0.55);
  cursor:pointer;
  border:2px solid rgba(255,210,63,0.25);
}
.slider-card img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.play-dot{
  position:absolute;
  top:50%;
  left:50%;
  width:44px;
  height:44px;
  margin:-22px 0 0 -22px;
  border-radius:50%;
  background:rgba(18,10,28,0.55);
  border:2px solid rgba(255,255,255,0.75);
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
}
.play-dot::after{
  content:"";
  border-left:14px solid #fff;
  border-top:9px solid transparent;
  border-bottom:9px solid transparent;
  margin-left:4px;
}
.slider-mask{position:absolute;inset:0;}

/* 滚动横幅 */
.ticker{
  position:relative;
  z-index:1;
  background:linear-gradient(90deg,rgba(143,79,255,0.35),rgba(255,210,63,0.25),rgba(143,79,255,0.35));
  border-top:1px solid rgba(255,210,63,0.3);
  border-bottom:1px solid rgba(255,210,63,0.3);
  overflow:hidden;
  padding:10px 0;
  margin:24px 0;
}
.ticker-track{
  display:flex;
  width:max-content;
  animation:scrollLeft 28s linear infinite;
}
.ticker-track span{
  padding:0 32px;
  font-size:14px;
  color:var(--yellow);
  white-space:nowrap;
}
@keyframes scrollLeft{
  from{transform:translateX(0);}
  to{transform:translateX(-50%);}
}

/* 通用区块 */
.section{
  position:relative;
  z-index:1;
  max-width:1200px;
  margin:0 auto;
  padding:48px 16px;
}
.section-head{
  margin-bottom:28px;
}
.section-head h2{
  font-size:26px;
  color:var(--yellow);
  position:relative;
  padding-left:16px;
}
.section-head h2::before{
  content:"";
  position:absolute;
  left:0;
  top:6px;
  bottom:6px;
  width:5px;
  border-radius:3px;
  background:linear-gradient(var(--purple),var(--yellow));
}
.section-head p{
  color:var(--muted);
  font-size:14px;
  margin-top:6px;
  padding-left:16px;
}

/* 漫库 */
.manga-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:16px;
}
.manga-card{
  background:var(--card);
  border-radius:14px;
  overflow:hidden;
  border:1px solid rgba(143,79,255,0.22);
  transition:transform .3s,border-color .3s;
  cursor:pointer;
}
.manga-card:hover{
  transform:translateY(-4px);
  border-color:var(--yellow);
}
.manga-thumb{
  position:relative;
  padding-top:133%;
  overflow:hidden;
}
.manga-thumb img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.manga-card p{
  padding:10px 12px;
  font-size:13.5px;
  color:var(--muted);
  min-height:56px;
}

/* 特色 */
.feature-block{
  background:linear-gradient(135deg,rgba(143,79,255,0.16),rgba(29,17,41,0.9));
  border:1px solid rgba(185,139,255,0.3);
  border-radius:18px;
  padding:28px 22px;
  font-size:15px;
  color:#e9e1f7;
}
.feature-block strong{color:var(--yellow);}

/* 热播 */
.hot-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:16px;
}
.hot-card{
  background:var(--card);
  border-radius:14px;
  overflow:hidden;
  border:1px solid rgba(255,210,63,0.18);
  cursor:pointer;
  transition:transform .3s;
}
.hot-card:hover{transform:translateY(-4px);}
.hot-thumb{
  position:relative;
  padding-top:133%;
}
.hot-thumb img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.hot-card p{
  padding:10px 12px;
  font-size:13.5px;
  color:var(--yellow);
  min-height:52px;
}

/* 排行榜 */
.rank-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.rank-item{
  display:flex;
  align-items:center;
  gap:14px;
  background:var(--card);
  border-radius:12px;
  padding:10px;
  border:1px solid rgba(143,79,255,0.2);
  cursor:pointer;
}
.rank-no{
  font-size:22px;
  font-weight:800;
  width:34px;
  text-align:center;
  color:var(--purple-light);
  flex-shrink:0;
}
.rank-item:nth-child(-n+3) .rank-no{color:var(--yellow);}
.rank-cover{
  width:58px;
  height:78px;
  border-radius:8px;
  overflow:hidden;
  flex-shrink:0;
}
.rank-cover img{width:100%;height:100%;object-fit:cover;}
.rank-info{flex:1;min-width:0;}
.rank-info h3{font-size:15px;margin-bottom:6px;color:#fff;}
.rank-stats{
  display:flex;
  gap:14px;
  font-size:12px;
  color:var(--muted);
}
.rank-stats b{color:var(--yellow);font-weight:600;}

/* 弹幕互动 */
.danmu-stage{
  position:relative;
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(185,139,255,0.3);
  background:#000;
  cursor:pointer;
}
.danmu-stage > img{
  width:100%;
  height:auto;
  max-height:460px;
  object-fit:cover;
  opacity:0.85;
}
.danmu-layer{
  position:absolute;
  inset:0;
  overflow:hidden;
  pointer-events:none;
}
.danmu-line{
  position:absolute;
  white-space:nowrap;
  font-size:14px;
  color:#fff;
  text-shadow:0 1px 3px rgba(0,0,0,0.9);
  animation:danmuMove linear infinite;
}
@keyframes danmuMove{
  from{transform:translateX(100%);}
  to{transform:translateX(-110%);}
}
.danmu-line:nth-child(1){top:8%;animation-duration:9s;}
.danmu-line:nth-child(2){top:22%;animation-duration:12s;animation-delay:2s;color:var(--yellow);}
.danmu-line:nth-child(3){top:38%;animation-duration:10s;animation-delay:4s;}
.danmu-line:nth-child(4){top:54%;animation-duration:13s;animation-delay:1s;color:var(--purple-light);}
.danmu-line:nth-child(5){top:70%;animation-duration:11s;animation-delay:5s;}
.danmu-line:nth-child(6){top:85%;animation-duration:9.5s;animation-delay:3s;color:var(--yellow);}

/* 历史 */
.history-text{
  background:var(--bg-soft);
  border-radius:16px;
  padding:24px 20px;
  border:1px solid rgba(143,79,255,0.22);
  font-size:15px;
  color:#ddd2ee;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.history-text p strong{color:var(--yellow);}

/* 常见问题 */
.faq-list{display:flex;flex-direction:column;gap:10px;}
.faq-item{
  background:var(--card);
  border-radius:12px;
  border:1px solid rgba(143,79,255,0.22);
  overflow:hidden;
}
.faq-q{
  width:100%;
  text-align:left;
  background:none;
  border:none;
  color:var(--text);
  font-size:15px;
  padding:14px 16px;
  cursor:pointer;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  font-family:inherit;
}
.faq-q::after{
  content:"+";
  color:var(--yellow);
  font-size:20px;
  transition:transform .3s;
}
.faq-item.open .faq-q::after{transform:rotate(45deg);}
.faq-a{
  max-height:0;
  overflow:hidden;
  transition:max-height .35s ease;
  padding:0 16px;
  color:var(--muted);
  font-size:14px;
}
.faq-item.open .faq-a{max-height:220px;padding-bottom:14px;}

/* 网友热议 */
.comment-form{
  background:var(--card);
  border-radius:14px;
  padding:18px;
  border:1px solid rgba(143,79,255,0.22);
  margin-bottom:22px;
}
.comment-form textarea{
  width:100%;
  min-height:90px;
  resize:vertical;
  background:#150c21;
  border:1px solid rgba(185,139,255,0.3);
  border-radius:10px;
  padding:12px;
  color:var(--text);
  font-family:inherit;
  font-size:14px;
  outline:none;
}
.comment-form textarea:focus{border-color:var(--yellow);}
.comment-form button{
  margin-top:12px;
  background:var(--purple);
  color:#fff;
  border:none;
  padding:10px 26px;
  border-radius:24px;
  font-size:14px;
  cursor:pointer;
  font-family:inherit;
}
.comment-form button:hover{background:var(--purple-light);color:var(--bg);}
.comment-list{display:flex;flex-direction:column;gap:14px;}
.comment-item{
  display:flex;
  gap:12px;
  background:var(--card);
  border-radius:12px;
  padding:14px;
  border:1px solid rgba(143,79,255,0.18);
}
.comment-avatar{
  width:40px;
  height:40px;
  border-radius:50%;
  overflow:hidden;
  flex-shrink:0;
  border:1px solid var(--purple-light);
}
.comment-avatar img{width:100%;height:100%;object-fit:cover;}
.comment-body h3{font-size:14px;color:var(--yellow);margin-bottom:4px;}
.comment-body p{font-size:14px;color:var(--muted);}

/* 页脚 */
.footer{
  position:relative;
  z-index:1;
  text-align:center;
  padding:32px 16px 40px;
  border-top:1px solid rgba(143,79,255,0.18);
  color:#7d6f92;
  font-size:12px;
  line-height:2;
}
.footer a{color:#9c8ab5;}
.footer a:hover{color:var(--yellow);}

/* 弹窗 */
.modal-mask{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.72);
  z-index:100;
  align-items:center;
  justify-content:center;
  padding:20px;
}
.modal-mask.show{display:flex;}
.modal-box{
  background:var(--bg-soft);
  border:1px solid var(--purple-light);
  border-radius:18px;
  padding:28px 22px;
  max-width:360px;
  width:100%;
  text-align:center;
  box-shadow:0 20px 50px rgba(0,0,0,0.6);
}
.modal-box h3{color:var(--yellow);font-size:19px;margin-bottom:10px;}
.modal-box p{color:var(--muted);font-size:14px;margin-bottom:20px;}
.modal-box .download-btn{font-size:15px;padding:11px 26px;}
.modal-close{
  display:block;
  margin:16px auto 0;
  background:none;
  border:none;
  color:var(--muted);
  font-size:13px;
  cursor:pointer;
  font-family:inherit;
}

/* 768 断点 */
@media (min-width:768px){
  .hero{
    grid-template-columns:1fr 1fr;
    align-items:center;
    padding:64px 24px 48px;
  }
  .hero-text h1{font-size:40px;}
  .slider{height:420px;}
  .slider-card{width:210px;height:310px;}
  .manga-grid,.hot-grid{grid-template-columns:repeat(3,1fr);}
  .section{padding:64px 24px;}
  .section-head h2{font-size:30px;}
  .feature-block{padding:36px 32px;font-size:16px;}
}

/* 1024 断点 */
@media (min-width:1024px){
  .hero-text h1{font-size:46px;}
  .manga-grid{grid-template-columns:repeat(6,1fr);}
  .hot-grid{grid-template-columns:repeat(6,1fr);}
  .slider{height:460px;}
  .slider-card{width:230px;height:340px;}
  .rank-list{display:grid;grid-template-columns:repeat(2,1fr);}
  .comment-list{display:grid;grid-template-columns:repeat(2,1fr);}
  .footer{font-size:12.5px;}
}