:root{
    --bg:#0a0a0a;
    --bg-soft:#121212;
    --bg-card:#181818;
    --line:#2a2a2a;
    --red:#e0232a;
    --red-deep:#b0161c;
    --white:#f5f5f5;
    --grey:#9a9a9a;
    --radius:14px;
  }
  *{box-sizing:border-box;margin:0;padding:0;}
  html{scroll-behavior:smooth;}
  body{
    background:var(--bg);
    color:var(--white);
    font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,-apple-system,sans-serif;
    line-height:1.7;
    overflow-x:hidden;
    position:relative;
  }
  img{display:block;max-width:100%;}
  a{color:inherit;text-decoration:none;}
  button{font-family:inherit;cursor:pointer;border:none;}

  /* 西瓜下落背景 */
  .melon-layer{
    position:fixed;inset:0;
    pointer-events:none;
    z-index:0;
    overflow:hidden;
  }
  .melon{
    position:absolute;
    top:-80px;
    width:32px;height:32px;
    border-radius:50%;
    background:radial-gradient(circle at 32% 30%, #4caf50 0 30%, #1e7a2c 60%, #0b3d16 100%);
    box-shadow:inset -4px -6px 8px rgba(0,0,0,.45);
    opacity:.22;
    animation:melonFall linear infinite;
  }
  .melon::after{
    content:"";
    position:absolute;inset:6px;
    border-radius:50%;
    border:2px solid rgba(255,255,255,.18);
  }
  @keyframes melonFall{
    0%{transform:translateY(-100px) rotate(0deg);}
    100%{transform:translateY(110vh) rotate(420deg);}
  }
  .m1{left:4%;animation-duration:14s;animation-delay:0s;width:26px;height:26px;}
  .m2{left:16%;animation-duration:18s;animation-delay:3s;width:40px;height:40px;}
  .m3{left:29%;animation-duration:12s;animation-delay:6s;width:22px;height:22px;}
  .m4{left:42%;animation-duration:20s;animation-delay:1.5s;width:34px;height:34px;}
  .m5{left:56%;animation-duration:16s;animation-delay:4.5s;width:28px;height:28px;}
  .m6{left:68%;animation-duration:13s;animation-delay:8s;width:38px;height:38px;}
  .m7{left:81%;animation-duration:19s;animation-delay:2s;width:24px;height:24px;}
  .m8{left:92%;animation-duration:15s;animation-delay:5.5s;width:30px;height:30px;}
  .m9{left:10%;animation-duration:22s;animation-delay:9s;width:20px;height:20px;}
  .m10{left:63%;animation-duration:17s;animation-delay:11s;width:26px;height:26px;}

  .wrap{position:relative;z-index:1;}

  /* 导航 */
  .site-header{
    position:sticky;top:0;z-index:50;
    background:rgba(10,10,10,.92);
    border-bottom:1px solid var(--line);
    backdrop-filter:blur(8px);
  }
  .nav-bar{
    max-width:1180px;margin:0 auto;
    padding:0 18px;
    height:64px;
    display:flex;align-items:center;justify-content:space-between;
  }
  .brand{display:flex;align-items:center;gap:10px;font-size:19px;font-weight:700;letter-spacing:1px;}
  .brand img{height:32px;width:auto;border-radius:6px;}
  .nav-toggle{
    background:transparent;color:var(--white);
    border:1px solid var(--line);border-radius:8px;
    padding:8px 12px;font-size:13px;
    display:flex;align-items:center;gap:6px;
    transition:border-color .25s,color .25s;
  }
  .nav-toggle:hover{border-color:var(--red);color:var(--red);}
  .nav-toggle .bars{display:inline-block;width:16px;height:2px;background:currentColor;position:relative;}
  .nav-toggle .bars::before,.nav-toggle .bars::after{
    content:"";position:absolute;left:0;width:16px;height:2px;background:currentColor;
  }
  .nav-toggle .bars::before{top:-5px;}
  .nav-toggle .bars::after{top:5px;}
  .nav-menu{
    list-style:none;
    max-height:0;overflow:hidden;
    transition:max-height .35s ease;
    border-top:1px solid transparent;
  }
  .nav-menu.open{max-height:520px;border-top-color:var(--line);}
  .nav-menu li{border-bottom:1px solid var(--line);}
  .nav-menu a{
    display:block;padding:12px 20px;font-size:14px;color:var(--grey);
    transition:color .2s,background .2s;
  }
  .nav-menu a:hover{color:var(--white);background:#161616;}
  .nav-inner{max-width:1180px;margin:0 auto;}

  @media(min-width:1024px){
    .nav-toggle{display:none;}
    .nav-menu{
      max-height:none;overflow:visible;display:flex;
      border-top:none;gap:2px;
      max-width:1180px;margin:0 auto;padding:0 18px;
    }
    .nav-menu li{border:none;}
    .nav-menu a{padding:0 12px;height:44px;line-height:44px;font-size:13.5px;border-radius:8px;}
    .nav-menu a:hover{background:#191919;}
  }

  /* 首屏 */
  .hero{
    padding:38px 0 30px;
    border-bottom:1px solid var(--line);
    background:radial-gradient(ellipse at 50% 0%, rgba(224,35,42,.12), transparent 62%);
  }
  .hero-inner{
    max-width:1180px;margin:0 auto;padding:0 18px;
    display:grid;grid-template-columns:1fr;gap:34px;
  }
  .hero-copy h1{
    font-size:26px;line-height:1.4;font-weight:800;letter-spacing:.5px;
  }
  .hero-copy h1 em{color:var(--red);font-style:normal;}
  .hero-sub{
    margin-top:14px;color:var(--grey);font-size:14.5px;max-width:520px;
  }
  .dl-btn{
    display:inline-flex;align-items:center;gap:10px;
    margin-top:24px;
    background:linear-gradient(180deg,#f0333b,var(--red-deep));
    color:#fff;font-size:16px;font-weight:700;
    padding:14px 30px;border-radius:999px;
    box-shadow:0 10px 26px rgba(224,35,42,.34);
    transition:transform .2s,box-shadow .2s;
  }
  .dl-btn:hover{transform:translateY(-2px);box-shadow:0 14px 32px rgba(224,35,42,.5);}
  .dl-btn::after{content:"↓";font-size:17px;}
  .update-time{
    margin-top:12px;font-size:12.5px;color:#777;
    letter-spacing:.4px;
  }

  /* 扑克牌轮播 */
  .carousel{
    position:relative;
    height:400px;
    display:flex;align-items:center;justify-content:center;
    perspective:1200px;
    touch-action:pan-y;
    user-select:none;
  }
  .pcard{
    position:absolute;
    width:168px;height:262px;
    border-radius:12px;overflow:hidden;
    background:#000;
    border:1px solid #333;
    box-shadow:0 14px 30px rgba(0,0,0,.65);
    transition:transform .55s cubic-bezier(.22,.68,.36,1),opacity .55s,filter .55s;
    cursor:pointer;
  }
  .pcard img{width:100%;height:100%;object-fit:cover;}
  .pcard .pbtn{
    position:absolute;top:50%;left:50%;
    width:46px;height:46px;margin:-23px 0 0 -23px;
    border-radius:50%;
    background:rgba(0,0,0,.42);
    border:2px solid rgba(255,255,255,.85);
    display:flex;align-items:center;justify-content:center;
    transition:background .25s,transform .25s;
  }
  .pcard .pbtn::after{
    content:"";display:block;margin-left:3px;
    border-left:14px solid #fff;
    border-top:9px solid transparent;
    border-bottom:9px solid transparent;
  }
  .pcard:hover .pbtn{background:rgba(224,35,42,.7);transform:scale(1.06);}

  /* 播放按钮通用 */
  .thumb{position:relative;cursor:pointer;overflow:hidden;border-radius:var(--radius);background:#111;}
  .thumb img{width:100%;height:100%;object-fit:cover;transition:transform .5s;}
  .thumb:hover img{transform:scale(1.05);}
  .play-mask{
    position:absolute;top:50%;left:50%;
    width:52px;height:52px;margin:-26px 0 0 -26px;
    border-radius:50%;
    background:rgba(0,0,0,.4);
    border:2px solid rgba(255,255,255,.85);
    display:flex;align-items:center;justify-content:center;
    transition:background .25s,transform .25s;
    pointer-events:none;
  }
  .play-mask::after{
    content:"";display:block;margin-left:4px;
    border-left:15px solid #fff;
    border-top:9.5px solid transparent;
    border-bottom:9.5px solid transparent;
  }
  .thumb:hover .play-mask{background:rgba(224,35,42,.78);transform:scale(1.08);}

  /* 滚动横幅 */
  .ticker{
    background:linear-gradient(90deg,#1a0000,#2a0508,#1a0000);
    border-top:1px solid #3a1216;border-bottom:1px solid #3a1216;
    overflow:hidden;white-space:nowrap;
    padding:11px 0;
  }
  .ticker-track{
    display:inline-block;
    animation:tickMove 30s linear infinite;
    font-size:13.5px;color:#e8b6b8;letter-spacing:1px;
  }
  .ticker-track span{margin:0 26px;position:relative;}
  .ticker-track span::before{content:"●";color:var(--red);margin-right:10px;font-size:9px;}
  @keyframes tickMove{
    0%{transform:translateX(0);}
    100%{transform:translateX(-50%);}
  }

  /* 通用区块 */
  .section{
    max-width:1180px;margin:0 auto;
    padding:52px 18px 20px;
  }
  .section-head{margin-bottom:24px;}
  .section-head h2{
    font-size:22px;font-weight:800;letter-spacing:.5px;
    display:flex;align-items:center;gap:10px;
  }
  .section-head h2::before{
    content:"";width:4px;height:20px;border-radius:2px;
    background:var(--red);display:block;
  }
  .section-head p{margin-top:8px;color:var(--grey);font-size:14px;max-width:640px;}

  /* 剧库网格 */
  .grid-6{
    display:grid;grid-template-columns:repeat(2,1fr);gap:14px;
  }
  .lib-card{background:var(--bg-card);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;}
  .lib-card .thumb{aspect-ratio:3/4;border-radius:0;}
  .lib-card .lib-txt{padding:11px 12px 13px;}
  .lib-card h3{font-size:14px;font-weight:700;margin-bottom:5px;}
  .lib-card p{font-size:12.5px;color:var(--grey);line-height:1.55;}

  /* 热播 */
  .grid-hot{
    display:grid;grid-template-columns:repeat(2,1fr);gap:14px;
  }
  .hot-card{background:var(--bg-card);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;}
  .hot-card .thumb{aspect-ratio:3/4;border-radius:0;}
  .hot-card .hot-txt{padding:11px 12px 13px;}
  .hot-card .hot-tag{
    display:inline-block;font-size:11px;color:var(--red);
    border:1px solid rgba(224,35,42,.5);border-radius:5px;
    padding:1px 7px;margin-bottom:6px;
  }
  .hot-card p{font-size:12.5px;color:var(--grey);line-height:1.55;}

  /* 特色 */
  .feature-block{
    background:var(--bg-soft);
    border:1px solid var(--line);
    border-radius:18px;
    padding:30px 22px;
  }
  .feature-block h2{
    font-size:21px;font-weight:800;margin-bottom:16px;
  }
  .feature-block h2 span{color:var(--red);}
  .feature-block p{font-size:14.5px;color:#c9c9c9;margin-bottom:14px;}
  .feature-points{
    display:grid;grid-template-columns:1fr;gap:12px;margin-top:22px;
  }
  .fp{
    border-left:3px solid var(--red);
    background:#151515;border-radius:0 10px 10px 0;
    padding:12px 16px;
  }
  .fp h3{font-size:14.5px;margin-bottom:4px;}
  .fp p{font-size:13px;color:var(--grey);margin:0;}

  /* 排行榜 */
  .rank-list{display:grid;grid-template-columns:1fr;gap:12px;}
  .rank-item{
    display:grid;grid-template-columns:52px 78px 1fr;
    gap:12px;align-items:center;
    background:var(--bg-card);border:1px solid var(--line);
    border-radius:12px;padding:10px;
  }
  .rank-no{
    font-size:22px;font-weight:800;color:#3a3a3a;text-align:center;
    font-style:italic;letter-spacing:-1px;
  }
  .rank-item:nth-child(1) .rank-no,
  .rank-item:nth-child(2) .rank-no,
  .rank-item:nth-child(3) .rank-no{color:var(--red);}
  .rank-item .thumb{aspect-ratio:3/4;border-radius:8px;}
  .rank-item .play-mask{width:34px;height:34px;margin:-17px 0 0 -17px;border-width:1.5px;}
  .rank-item .play-mask::after{border-left-width:10px;border-top-width:6.5px;border-bottom-width:6.5px;margin-left:3px;}
  .rank-info h3{font-size:14px;margin-bottom:4px;}
  .rank-meta{font-size:12px;color:var(--grey);display:flex;gap:14px;flex-wrap:wrap;}
  .rank-meta b{color:var(--red);font-weight:600;}

  /* 弹幕播放区 */
  .danmu-stage{
    position:relative;border-radius:18px;overflow:hidden;
    border:1px solid var(--line);
    aspect-ratio:16/9;background:#000;
  }
  .danmu-stage>img{width:100%;height:100%;object-fit:cover;opacity:.82;}
  .danmu-layer{position:absolute;inset:0;overflow:hidden;pointer-events:none;}
  .dm{
    position:absolute;white-space:nowrap;
    font-size:14px;color:#fff;
    text-shadow:0 1px 4px rgba(0,0,0,.9);
    animation:dmMove linear infinite;
  }
  @keyframes dmMove{
    0%{transform:translateX(100vw);}
    100%{transform:translateX(-120%);}
  }
  .danmu-controls{
    position:absolute;left:0;right:0;bottom:0;
    padding:12px 14px;
    background:linear-gradient(180deg,transparent,rgba(0,0,0,.82));
    display:flex;align-items:center;gap:12px;font-size:12px;color:#ccc;
  }
  .bar{flex:1;height:3px;background:rgba(255,255,255,.24);border-radius:2px;position:relative;}
  .bar::after{content:"";position:absolute;left:0;top:0;height:3px;width:38%;background:var(--red);border-radius:2px;}
  .stage-play{
    position:absolute;top:50%;left:50%;
    width:64px;height:64px;margin:-32px 0 0 -32px;
    border-radius:50%;background:rgba(0,0,0,.42);
    border:2px solid rgba(255,255,255,.9);
    display:flex;align-items:center;justify-content:center;
    cursor:pointer;transition:background .25s,transform .25s;
  }
  .stage-play::after{
    content:"";margin-left:5px;
    border-left:20px solid #fff;
    border-top:12px solid transparent;
    border-bottom:12px solid transparent;
  }
  .stage-play:hover{background:rgba(224,35,42,.8);transform:scale(1.07);}

  /* 历程 */
  .timeline{position:relative;padding-left:24px;}
  .timeline::before{
    content:"";position:absolute;left:6px;top:6px;bottom:6px;
    width:2px;background:linear-gradient(180deg,var(--red),#2a2a2a);
  }
  .tl-item{position:relative;margin-bottom:24px;}
  .tl-item::before{
    content:"";position:absolute;left:-24px;top:7px;
    width:10px;height:10px;border-radius:50%;
    background:var(--red);box-shadow:0 0 0 4px rgba(224,35,42,.18);
  }
  .tl-item h3{font-size:15px;margin-bottom:5px;}
  .tl-item p{font-size:13.5px;color:var(--grey);}

  /* FAQ */
  .faq-item{
    border:1px solid var(--line);border-radius:12px;
    margin-bottom:10px;background:var(--bg-card);overflow:hidden;
  }
  .faq-q{
    width:100%;background:transparent;color:var(--white);
    text-align:left;padding:15px 16px;font-size:14px;font-weight:600;
    display:flex;justify-content:space-between;align-items:center;gap:12px;
  }
  .faq-q::after{
    content:"+";font-size:20px;color:var(--red);font-weight:400;
    transition:transform .25s;flex-shrink:0;line-height:1;
  }
  .faq-item.active .faq-q::after{transform:rotate(45deg);}
  .faq-a{
    max-height:0;overflow:hidden;
    transition:max-height .3s ease;
  }
  .faq-a p{padding:0 16px 16px;font-size:13.5px;color:var(--grey);}
  .faq-item.active .faq-a{max-height:260px;}

  /* 评论 */
  .comment-box{
    background:var(--bg-card);border:1px solid var(--line);
    border-radius:14px;padding:18px;
  }
  .comment-form textarea{
    width:100%;min-height:88px;resize:vertical;
    background:#101010;border:1px solid var(--line);
    border-radius:10px;padding:12px;color:var(--white);
    font-size:14px;line-height:1.6;outline:none;
    transition:border-color .2s;
  }
  .comment-form textarea:focus{border-color:var(--red);}
  .comment-form .form-foot{
    display:flex;justify-content:space-between;align-items:center;
    margin-top:12px;gap:12px;flex-wrap:wrap;
  }
  .comment-form .hint{font-size:12px;color:#777;}
  .btn-submit{
    background:var(--red);color:#fff;font-size:14px;font-weight:600;
    padding:9px 22px;border-radius:999px;transition:background .2s;
  }
  .btn-submit:hover{background:var(--red-deep);}
  .comment-list{margin-top:22px;display:grid;gap:14px;}
  .cmt{
    display:flex;gap:12px;
    background:var(--bg-card);border:1px solid var(--line);
    border-radius:12px;padding:14px;
  }
  .cmt .avatar{
    width:38px;height:38px;flex-shrink:0;border-radius:50%;
    overflow:hidden;border:1px solid var(--line);background:#000;
  }
  .cmt .avatar img{width:100%;height:100%;object-fit:cover;}
  .cmt .c-body h4{font-size:13.5px;margin-bottom:3px;font-weight:600;}
  .cmt .c-body p{font-size:13px;color:var(--grey);}

  /* 截图墙 */
  .wall{
    display:grid;grid-template-columns:repeat(3,1fr);gap:8px;
    margin-top:8px;
  }
  .wall .thumb{aspect-ratio:3/4;border-radius:8px;border:1px solid var(--line);}
  .wall .play-mask{width:30px;height:30px;margin:-15px 0 0 -15px;border-width:1.5px;}
  .wall .play-mask::after{border-left-width:9px;border-top-width:6px;border-bottom-width:6px;margin-left:3px;}

  /* 弹窗 */
  .modal{
    position:fixed;inset:0;z-index:200;
    display:none;align-items:center;justify-content:center;
    padding:20px;
    background:rgba(0,0,0,.76);
  }
  .modal.show{display:flex;}
  .modal-box{
    background:#141414;border:1px solid #333;
    border-radius:16px;padding:28px 24px;
    max-width:380px;width:100%;text-align:center;
    animation:popIn .28s ease;
  }
  @keyframes popIn{
    from{transform:scale(.92);opacity:.5;}
    to{transform:scale(1);opacity:1;}
  }
  .modal-box h3{font-size:18px;margin-bottom:10px;}
  .modal-box p{font-size:13.5px;color:var(--grey);margin-bottom:20px;}
  .modal-box .dl-btn{margin-top:0;font-size:14.5px;padding:12px 26px;}
  .modal-close{
    margin-top:14px;background:transparent;color:#777;
    font-size:13px;text-decoration:underline;
  }

  /* 页脚 */
  .site-footer{
    margin-top:60px;
    border-top:1px solid var(--line);
    padding:28px 18px 34px;
    background:#080808;
  }
  .footer-inner{
    max-width:1180px;margin:0 auto;
    font-size:12px;color:#6b6b6b;line-height:1.9;
  }
  .footer-inner a{color:#7d7d7d;transition:color .2s;}
  .footer-inner a:hover{color:var(--red);}
  .friend-links{margin-top:14px;}
  .friend-links details{border:1px solid #1e1e1e;border-radius:8px;padding:8px 12px;background:#0d0d0d;}
  .friend-links summary{cursor:pointer;font-size:12px;color:#7d7d7d;outline:none;}
  .friend-links .fl-inner{padding-top:8px;display:flex;flex-wrap:wrap;gap:8px 16px;}

  @media(min-width:768px){
    .hero-inner{grid-template-columns:1fr 1fr;align-items:center;gap:30px;}
    .hero-copy h1{font-size:32px;}
    .carousel{height:440px;}
    .pcard{width:190px;height:296px;}
    .grid-6{grid-template-columns:repeat(3,1fr);}
    .grid-hot{grid-template-columns:repeat(3,1fr);}
    .feature-points{grid-template-columns:repeat(3,1fr);}
    .rank-list{grid-template-columns:repeat(2,1fr);}
    .wall{grid-template-columns:repeat(4,1fr);}
    .comment-list{grid-template-columns:repeat(2,1fr);}
  }

  @media(min-width:1024px){
    .hero{padding:56px 0 46px;}
    .hero-copy h1{font-size:38px;line-height:1.35;}
    .hero-sub{font-size:15px;}
    .carousel{height:480px;}
    .pcard{width:210px;height:322px;}
    .section{padding:64px 18px 20px;}
    .section-head h2{font-size:26px;}
    .grid-6{grid-template-columns:repeat(6,1fr);gap:16px;}
    .grid-hot{grid-template-columns:repeat(6,1fr);gap:16px;}
    .rank-list{grid-template-columns:repeat(3,1fr);}
    .rank-item{grid-template-columns:46px 66px 1fr;}
    .wall{grid-template-columns:repeat(6,1fr);}
    .comment-list{grid-template-columns:repeat(3,1fr);}
    .feature-block{padding:44px 40px;}
  }