:root{
  --bg:#0b0c12;
  --panel:#1a1c23;
  --line:rgba(255,255,255,.08);
  --text:#fff;
  --muted:#9ca3af;
  --accent:#a855f7;
  --accent-grad:linear-gradient(90deg,#a855f7 0%,#ec4899 100%);
  --cta-grad:linear-gradient(90deg,#ffd36b 0%,#ff9c2b 100%);
  --radius-lg:16px;
  --radius-md:12px;
  --radius-sm:8px;
  --font:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
}

*{
  box-sizing:border-box;
  -webkit-tap-highlight-color:rgba(0,0,0,0);
}

body{
  margin:0;
  background-color:var(--bg);
  color:var(--text);
  font-family:var(--font);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}

.page{
  max-width:480px;
  margin:0 auto;
  padding-bottom:100px;
  background-color:var(--bg);
}

.header{
  background:
    radial-gradient(circle at 20% 0%,rgba(80,80,120,.4) 0%,rgba(0,0,0,0) 60%),
    radial-gradient(circle at 80% 0%,rgba(168,85,247,.35) 0%,rgba(0,0,0,0) 70%),
    var(--bg);
  border-bottom:1px solid var(--line);
  padding:12px 16px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  position:relative;
}

.brand-left{
  display:flex;
  align-items:center;
  gap:10px;
}

.logo-box{
  width:68px;
  height:68px;
  border-radius:10px;
  overflow:hidden;
  background:#1a1c23;
  border:1px solid rgba(255,255,255,.25);
  box-shadow:
    0 8px 16px rgba(168,85,247,.5),
    0 0 16px rgba(168,85,247,.6);
  flex-shrink:0;
  display:flex;
  align-items:center;
  justify-content:center;
}
.logo-box img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:inherit;
  display:block;
}

.brand-texts{
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.brand-title{
  font-size:18px;
  font-weight:600;
  color:#fff;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
}

.ver-tag{
  font-size:11px;
  line-height:1;
  font-weight:500;
  padding:3px 6px;
  border-radius:6px;
  background:rgba(0,0,0,.4);
  border:1px solid rgba(255,255,255,.25);
  color:#fff;
  box-shadow:
    0 0 8px rgba(168,85,247,.6),
    0 0 20px rgba(236,72,153,.4);
}

.brand-desc{
  font-size:12px;
  color:var(--muted);
  margin-top:2px;
}

.download-top-btn{
  position:relative;
  border:none;
  color:#fff;
  font-size:14px;
  font-weight:600;
  border-radius:999px;
  padding:8px 14px;
  line-height:1.2;
  white-space:nowrap;
  background:linear-gradient(90deg,#a855f7 0%,#ec4899 50%,#a855f7 100%);
  background-size:200% 200%;
  animation:btnGradientMove 4s linear infinite, topPulse 2s ease-in-out infinite;
  box-shadow:0 10px 20px rgba(168,85,247,.5);
}

@keyframes btnGradientMove{
  0%{background-position:0% 50%;}
  50%{background-position:100% 50%;}
  100%{background-position:0% 50%;}
}
@keyframes topPulse{
  0%,100%{
    box-shadow:0 10px 20px rgba(168,85,247,.5),0 0 16px rgba(236,72,153,.7);
  }
  50%{
    box-shadow:0 14px 24px rgba(168,85,247,.7),0 0 32px rgba(236,72,153,1);
  }
}

.tabs{
  position:sticky;
  top:0;
  z-index:20;
  background-color:var(--bg);
  border-bottom:1px solid var(--line);
  padding:8px 8px 4px;
}

.tab-wrap{
  display:flex;
  flex-wrap:wrap;
  row-gap:8px;
  column-gap:8px;
}

.tab-btn{
  flex:1 0 20%;
  text-align:center;
  font-size:14px;
  line-height:1.2;
  padding:10px 4px;
  color:var(--muted);
  font-weight:500;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.08);
  border-radius:var(--radius-sm);
  box-shadow:
    0 10px 20px rgba(0,0,0,.6),
    inset 0 0 10px rgba(168,85,247,.15);
  transition:all .18s;
}

.tab-btn.active{
  color:#fff;
  background:
    radial-gradient(circle at 0% 0%,rgba(236,72,153,.25)0%,rgba(0,0,0,0)70%),
    radial-gradient(circle at 100% 100%,rgba(168,85,247,.3)0%,rgba(0,0,0,0)70%),
    rgba(255,255,255,.07);
  border:1px solid rgba(236,72,153,.6);
  box-shadow:
    0 12px 24px rgba(236,72,153,.4),
    0 0 20px rgba(168,85,247,.6),
    inset 0 0 12px rgba(255,255,255,.2);
  font-weight:600;
}

.section{
  display:none;
}
.section.active{
  display:block;
}

.video-grid{
  padding:16px 12px 4px;
  display:grid;
  grid-template-columns:1fr 1fr;
  grid-gap:20px 14px;
}

.card{
  background:transparent;
  border-radius:var(--radius-md);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

.card-anim{
  animation:fadeUp .5s ease both;
  transition:
    transform .18s,
    box-shadow .18s;
}
.card-anim:hover{
  transform:translateY(-2px) scale(1.03);
}
.card-anim:active{
  transform:scale(.97);
}
.card-anim:hover .thumb{
  box-shadow:
    0 16px 32px rgba(0,0,0,.9),
    0 0 20px rgba(168,85,247,.4);
}

@keyframes fadeUp{
  0%{
    opacity:0;
    transform:translateY(10px) scale(.98);
  }
  100%{
    opacity:1;
    transform:translateY(0) scale(1);
  }
}

.thumb{
  position:relative;
  background-color:var(--panel);
  border-radius:var(--radius-md);
  overflow:hidden;
  width:100%;
  aspect-ratio:484 / 291;
  box-shadow:0 12px 24px rgba(0,0,0,.8);
  border:1px solid rgba(255,255,255,.05);
}

.thumb-img{
  position:absolute;
  inset:0;
  z-index:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.thumb-anim{
  animation:slowZoom 6s ease-in-out infinite alternate;
  will-change:transform;
}
@keyframes slowZoom{
  0%  {transform:scale(1) translateZ(0);}
  100%{transform:scale(1.07) translateZ(0);}
}

.thumb-inner{
  position:absolute;
  inset:0;
  z-index:2;
  padding:10px;
  display:flex;
  align-items:flex-end;
  font-size:13px;
  font-weight:600;
  color:#fff;
  line-height:1.4;
  text-shadow:0 2px 4px rgba(0,0,0,.8);
  background:linear-gradient(to top,rgba(0,0,0,.6) 0%,rgba(0,0,0,0)60%);
  pointer-events:none;
}

.thumb-tag{
  position:absolute;
  z-index:3;
  left:10px;
  top:10px;
  background:var(--accent-grad);
  color:#fff;
  font-size:11px;
  font-weight:600;
  line-height:1.2;
  padding:4px 6px;
  border-radius:var(--radius-sm);
  box-shadow:0 8px 16px rgba(168,85,247,.6);
  border:1px solid rgba(255,255,255,.4);
}

.thumb-badge{
  position:absolute;
  z-index:3;
  right:10px;
  bottom:10px;
  background:rgba(0,0,0,.6);
  border:1px solid rgba(255,255,255,.2);
  border-radius:999px;
  padding:4px 8px;
  font-size:11px;
  line-height:1.2;
  font-weight:500;
  color:#fff;
  box-shadow:0 10px 20px rgba(0,0,0,.8);
}

.badge-live{
  background:rgba(255,0,80,.75);
  border:1px solid rgba(255,80,120,.8);
  box-shadow:
    0 0 8px rgba(255,0,80,.75),
    0 0 16px rgba(255,0,80,.5);
  animation:pulseLive 1.2s infinite alternate;
}
@keyframes pulseLive{
  0%{
    box-shadow:
      0 0 6px rgba(255,0,80,.6),
      0 0 12px rgba(255,0,80,.4);
  }
  100%{
    box-shadow:
      0 0 10px rgba(255,0,80,1),
      0 0 24px rgba(255,0,80,.8);
  }
}

.video-title{
  font-size:14px;
  font-weight:500;
  color:#fff;
  margin-top:10px;
  line-height:1.45;
}

.grid-empty{
  grid-column:1 / -1;
}
.empty-box{
  padding:40px 16px 60px;
  text-align:center;
  color:var(--muted);
  font-size:14px;
}

.download-bar{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  background:rgba(0,0,0,.8);
  backdrop-filter:blur(10px);
  padding:16px;
  z-index:30;
}
.download-bar-inner{
  max-width:480px;
  margin:0 auto;
}

.download-big-btn{
  position:relative;
  width:100%;
  background:var(--cta-grad);
  border:none;
  border-radius:999px;
  color:#000;
  font-size:18px;
  font-weight:600;
  line-height:1.2;
  padding:14px 20px;
  overflow:hidden;
  animation:pulseShadow 2s ease-in-out infinite;
  box-shadow:0 20px 30px rgba(255,156,43,.4),0 0 16px rgba(255,198,80,.6);
}

.download-big-btn::after{
  content:"";
  position:absolute;
  top:0;
  left:-60%;
  width:50%;
  height:100%;
  background:linear-gradient(120deg,rgba(255,255,255,.6)0%,rgba(255,255,255,0)60%);
  transform:skewX(-20deg);
  animation:shine 2.5s infinite;
}

@keyframes shine{
  0%{left:-60%;}
  60%{left:160%;}
  100%{left:160%;}
}

@keyframes pulseShadow{
  0%,100%{
    box-shadow:
      0 20px 30px rgba(255,156,43,.4),
      0 0 16px rgba(255,198,80,.6),
      0 0 32px rgba(255,198,80,.4);
  }
  50%{
    box-shadow:
      0 24px 36px rgba(255,156,43,.6),
      0 0 32px rgba(255,198,80,.9),
      0 0 48px rgba(255,198,80,1);
  }
}

.section[data-section="goddess"] .thumb,
.section[data-section="couple"] .thumb{
  height:365px;
  aspect-ratio:auto;
}

.section[data-section="game"] .game-subcats{
  padding:12px;
  display:grid;
  grid-template-columns:1fr 1fr 1fr 1fr;
  gap:8px;
}
.game-subcat-btn{
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  padding:10px 8px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  font-size:13px;
  line-height:1.3;
  color:#fff;
  text-align:center;
  min-height:64px;
  box-shadow:0 10px 20px rgba(0,0,0,.6),inset 0 0 10px rgba(168,85,247,.15);
  animation:fadeUp .5s ease both;
  transition:transform .18s,box-shadow .18s;
}
.game-subcat-btn:hover{
  transform:translateY(-2px) scale(1.03);
  box-shadow:0 12px 24px rgba(236,72,153,.4),0 0 20px rgba(168,85,247,.6),inset 0 0 12px rgba(255,255,255,.2);
}
.game-subcat-btn:active{
  transform:scale(.97);
}
.game-subcat-icon{
  width:28px;
  height:28px;
  margin-bottom:6px;
  border-radius:6px;
  overflow:hidden;
  background:#1a1c23;
  display:flex;
  align-items:center;
  justify-content:center;
}
.game-subcat-icon img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}
.game-subcat-text{
  color:#fff;
  font-size:13px;
  font-weight:500;
  line-height:1.3;
}

.section[data-section="game"] .game-icon-grid{
  background-color:rgba(255,255,255,.02);
  border-top:1px solid var(--line);
  padding:16px 8px 80px;
  display:grid;
  grid-template-columns:1fr 1fr 1fr 1fr;
  row-gap:20px;
  column-gap:8px;
}
.game-icon-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  animation:fadeUp .5s ease both;
  transition:transform .18s,box-shadow .18s;
}
.game-icon-card:hover{
  transform:translateY(-2px) scale(1.03);
}
.game-icon-card:active{
  transform:scale(.97);
}
.game-icon-card:hover .game-icon-thumb{
  box-shadow:0 16px 32px rgba(0,0,0,.9),0 0 20px rgba(168,85,247,.4);
}
.game-icon-thumb{
  width:68px;
  height:68px;
  border-radius:16px;
  overflow:hidden;
  background:#1a1c23;
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 12px 24px rgba(0,0,0,.8);
  margin-bottom:8px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.game-icon-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  animation:slowZoom 6s ease-in-out infinite alternate;
  will-change:transform;
}
.game-icon-text{
  text-align:center;
}
.game-icon-title{
  color:#fff;
  font-size:13px;
  font-weight:600;
  line-height:1.3;
}
.game-icon-sub{
  color:var(--muted);
  font-size:12px;
  line-height:1.2;
  margin-top:2px;
}

.section[data-section="anime"] .video-grid{
  grid-template-columns:1fr;
}
.section[data-section="anime"] .thumb{
  aspect-ratio:750 / 279;
  height:auto;
}

/* 中间 480px 布局区域 */
    body{
      margin:0;
      background:#0b0c12;
      color:#fff;
      font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;
      -webkit-font-smoothing:antialiased;
    }
    .page{
      max-width:480px;
      margin:0 auto;
      background:#0b0c12;
      min-height:100vh;
      color:#fff;
    }
    .demo-box{
      padding:24px;
      font-size:16px;
      line-height:1.5;
    }
    .btn{
      display:inline-block;
      background:linear-gradient(90deg,#ffd36b 0%,#ff9c2b 100%);
      color:#000;
      font-size:16px;
      font-weight:600;
      border-radius:999px;
      padding:12px 20px;
      border:none;
    }

/* 浮动在线客服按钮 */
.float-kf{
  position: fixed;
  right: 14px;
  bottom: 198px; /* 避开底部 download-bar，可按需调大/调小 */
  z-index: 9999;

  width: 52px;
  height: 52px;
  border-radius: 999px;

  display: flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;
  color: #fff;

  background: linear-gradient(135deg, #ff4d6d, #ff8a00);
  box-shadow: 0 10px 25px rgba(0,0,0,.18);

  -webkit-tap-highlight-color: transparent;
}

.float-kf:active{
  transform: scale(.96);
}

.float-kf .kf-icon{
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1;
}

/* 小红点闪动提示 */
.float-kf .kf-dot{
  position: absolute;
  top: 8px;
  right: 8px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #00ff8a;
  box-shadow: 0 0 0 0 rgba(0,255,138,.55);
  animation: kfPulse 1.6s infinite;
}

@keyframes kfPulse{
  0%{ box-shadow: 0 0 0 0 rgba(0,255,138,.55); }
  70%{ box-shadow: 0 0 0 10px rgba(0,255,138,0); }
  100%{ box-shadow: 0 0 0 0 rgba(0,255,138,0); }
}

/* 小屏适配 */
@media (max-width: 375px){
  .float-kf{
    width: 48px;
    height: 48px;
    right: 12px;
    bottom: 88px;
  }
}

.float-kf .kf-img{
  width: 48px;
  height: 48px;
  display: block;
}