@charset "utf-8";
/* ============================================================
   酷影聚 KUYINGJU · 全新精简版
   kyj.css —— 全站基础样式 + 首页
   本套样式完全独立，不再引用 /template/default 下任何文件
   ============================================================ */

/* ---------- 基础 ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent;
  scrollbar-width:none;-ms-overflow-style:none}
html::-webkit-scrollbar,body::-webkit-scrollbar{width:0!important;height:0!important;display:none!important}
body{margin:0;background:#f7f8fa;color:#303133;font-size:14px;line-height:1.5;
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",Arial,sans-serif;}
a{color:inherit;text-decoration:none}
img{border:0;vertical-align:middle}
input,button{font-family:inherit;font-size:14px;outline:none}
h1,h2,h3,h4,p{margin:0;font-weight:normal}
.container-center{max-width:640px;margin:0 auto;padding:0 14px;min-height:100vh;display:flex;flex-direction:column}

/* ---------- 顶栏 ---------- */
.top-bar{display:flex;align-items:center;gap:10px;padding:14px 0 10px}
.search-wrap{flex:1;min-width:0;position:relative}
.search-input{width:100%;height:38px;border:0;border-radius:8px;background:#f1f2f4;color:#303133;
  padding:0 14px 0 38px;font-size:14px;
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 24 24' fill='none' stroke='%239aa0a8' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:13px center;cursor:pointer}
.search-input::placeholder{color:#9aa0a8}
.top-icon{flex:0 0 auto;width:36px;height:38px;display:flex;flex-direction:column;align-items:center;
  justify-content:center;gap:1px;color:#7c828b;font-size:11px}
.top-icon svg{width:20px;height:20px;display:block}

/* ---------- 轮播 ---------- */
.kyj-swiper{position:relative;border-radius:14px;overflow:hidden;margin:4px 0 20px;
  background:linear-gradient(135deg,#4f6ef7 0%,#7a5cf0 60%,#a35ef0 100%);
  box-shadow:0 6px 18px rgba(79,110,247,.22);aspect-ratio:16/5}
.kyj-track{display:flex;height:100%;overflow-x:auto;scroll-snap-type:x mandatory;
  scrollbar-width:none;-ms-overflow-style:none}
.kyj-track::-webkit-scrollbar{display:none}
.kyj-slide{position:relative;flex:0 0 100%;height:100%;scroll-snap-align:start;overflow:hidden}
.kyj-slide .slide-pic{position:absolute;inset:0}
.kyj-slide .slide-pic img{width:100%;height:100%;object-fit:cover;object-position:center 30%;display:block}
.kyj-slide .slide-mask{position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(20,24,50,.72) 0%,rgba(20,24,50,.34) 55%,rgba(20,24,50,0) 100%)}
.kyj-slide .slide-info{position:absolute;left:16px;bottom:14px;right:42%;color:#fff;z-index:2}
.kyj-slide .slide-tag{display:inline-block;max-width:100%;font-size:10px;padding:2px 8px;border-radius:10px;
  background:rgba(255,255,255,.22);margin-bottom:6px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.kyj-slide .slide-name{font-size:19px;font-weight:800;letter-spacing:.3px;margin-bottom:3px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kyj-slide .slide-sub{font-size:11px;color:rgba(255,255,255,.86);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kyj-dots{position:absolute;right:11px;bottom:11px;z-index:3;display:flex;gap:6px}
.kyj-dots i{width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.4);display:block;
  cursor:pointer;transition:background .2s}
.kyj-dots i.on{background:#fff}

/* ---------- 榜单 ---------- */
.db-hot-list{margin-bottom:22px}
.db-hot-head{display:flex;align-items:center;justify-content:space-between;gap:8px;
  flex-wrap:wrap;margin-bottom:11px}
  
.db-hot-title{font-size:17px;font-weight:600;line-height:1.3}

.db-hot-page{display:flex;align-items:center}
.db-pg-txt{font-size:12px;color:#8a9099;white-space:nowrap}
.db-pg-btn{display:inline-block;width:18px;height:18px;border-radius:50%;background-color:#6d99d2;
  background-repeat:no-repeat;background-position:center;margin-left:6px;cursor:pointer;
  transition:background-color .2s}
.db-pg-btn:hover{background-color:#5e86c4}
.db-pg-btn.db-pg-dis{cursor:default;opacity:.45}
.db-pg-btn.db-pg-dis:hover{background-color:#6d99d2}
.db-pg-prev{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.25' d='M7 1 3.172 4.828a.25.25 0 0 0 0 .344L7 9'/%3E%3C/svg%3E")}
.db-pg-next{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.25' d='m3 1 3.828 3.828a.25.25 0 0 1 0 .344L3 9'/%3E%3C/svg%3E")}
.db-hot-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.db-hot-card{position:relative;width:100%}
.db-hot-link{display:block}
.db-hot-cover{position:relative;width:100%;aspect-ratio:2/3;border-radius:9px;overflow:hidden;
  background:#eceef1;box-shadow:0 1px 4px rgba(0,0,0,.05)}
.db-hot-cover img{width:100%;height:100%;object-fit:cover;display:block}
.db-hot-score{position:absolute;right:5px;top:5px;background:rgba(0,0,0,.55);color:#ffb347;
  font-size:11px;font-weight:700;padding:1px 5px;border-radius:6px;line-height:1.5}
.db-hot-remarks{position:absolute;right:4px;bottom:4px;max-width:92%;background:rgba(0,0,0,.55);
  color:#fff;font-size:10px;line-height:1.4;padding:1px 5px;border-radius:6px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:break-all}
.db-hot-name{font-size:12px;color:#303133;margin-top:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.db-hot-actor{font-size:11px;color:#9aa0a8;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ---------- 友情链接 ---------- */
.link-bar{margin:20px 0 0;padding:14px 12px 6px;background:#fff;border-radius:12px}
.link-bar h3{font-size:15px;font-weight:700}
.link-list{display:flex;flex-wrap:wrap;margin:8px -5px 0}
.link-item{display:flex;align-items:center;justify-content:center;gap:6px;
  width:calc(20% - 10px);margin:5px;padding:9px 6px;border-radius:8px;background:#fff;
  border:1px solid #eceef1;color:#4b5563;font-size:13px;transition:transform .25s,color .25s;
  text-align:center}
.link-item:hover{transform:translateY(-2px);color:#111827}
.link-item img{width:22px;height:22px;border-radius:6px;object-fit:cover;display:block;flex:0 0 auto}
.link-item span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.link-item.noimg{width:auto;padding:8px 14px;border-color:transparent;background:transparent}

/* ---------- 页脚 ---------- */
.site-footer{margin-top:auto;padding:20px 16px 24px;text-align:center;color:#9aa4b8;font-size:12px}
.site-footer .sf-brand{font-size:14px;font-weight:700;color:#6b7280;letter-spacing:2px}
.site-footer .sf-copy{margin-top:5px;font-size:11px;color:#b0b8c8}

/* ---------- 状态 ---------- */
.kyj-loading{padding:40px 20px;text-align:center;color:#8e9aae;font-size:14px}
.kyj-empty{padding:34px 20px;text-align:center;color:#8e9aae;font-size:14px;line-height:1.9}
.kyj-empty a{color:#4f6ef7}
.kyj-notice{margin:0 0 16px;padding:10px 13px;border-radius:9px;background:#fff8e6;
  border:1px solid #ffe4b3;color:#a86a00;font-size:12px;line-height:1.6}

/* ---------- 返回顶部 ---------- */
.float-top{position:fixed;right:16px;bottom:34px;width:40px;height:40px;border:0;border-radius:50%;
  background:rgba(30,34,42,.72);color:#fff;display:flex;align-items:center;justify-content:center;
  cursor:pointer;opacity:0;visibility:hidden;transform:translateY(8px);
  transition:opacity .2s,transform .2s,visibility .2s;z-index:20}
.float-top.show{opacity:1;visibility:visible;transform:none}

/* ---------- 移动端 ---------- */
@media (max-width:767px){
  .kyj-swiper{aspect-ratio:16/7;border-radius:12px}
  .kyj-slide .slide-info{left:13px;right:28%;bottom:12px}
  .kyj-slide .slide-name{font-size:16px}
  .db-hot-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
  .db-hot-name{font-size:12.5px}
  .db-hot-actor{font-size:11.5px}
  .link-item{width:calc(33.333% - 10px);font-size:12px;padding:8px 4px}
  .link-item span{white-space:normal;text-overflow:clip}
  .link-item img{width:20px;height:20px}
}
/* ---------- 友情链接 ---------- */
.link-bar{margin:20px 0 4px;padding:0;background:none;border-radius:0}
.link-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.link-bar h3{font-size:16px;font-weight:700;letter-spacing:.5px;line-height:1.3;color:#25292f;margin:0}
.link-apply{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;
  height:28px;padding:0 12px;border-radius:999px;border:1px solid #22c55e;
  color:#16a34a;font-size:12px;line-height:1;background:#fff;text-decoration:none;white-space:nowrap;
  transition:background .2s,color .2s}
.link-apply:hover{background:#22c55e;color:#fff}
.link-list{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0 2px}
.link-item{display:inline-flex;align-items:center;justify-content:flex-start;gap:7px;
  height:44px;padding:0 16px;border-radius:10px;background:#fff;
  border:1px solid #eceef1;color:#4b5563;font-size:13px;text-decoration:none;
  flex:0 0 auto;transition:border-color .2s,box-shadow .2s,color .2s}
.link-item:hover{border-color:#cfe8d8;box-shadow:0 4px 14px rgba(17,24,39,.06);color:#111827}
.link-item img{width:22px;height:22px;border-radius:6px;object-fit:cover;display:block;flex:0 0 auto;
  transform-origin:50% 100%}
.link-item span{flex:0 0 auto;white-space:nowrap;overflow:visible;text-overflow:clip;max-width:none}
.link-item.noimg{padding:0 14px}
.link-item .lf{flex:0 0 auto;width:22px;height:22px;border-radius:6px;background:#eef0f3;
  color:#7b8390;font-size:12px;font-weight:600;line-height:22px;text-align:center;
  transform-origin:50% 100%}
.link-none{font-size:13px;color:#9aa0a8;padding:2px 0 4px}
.link-none a{color:#16a34a;text-decoration:none}

/* 净版入场：逐张淡入上浮（一次性） */
.link-item{opacity:0;transform:translateY(10px);
  transition:opacity .32s ease,transform .32s ease,border-color .2s,box-shadow .2s,color .2s}
.link-item.in{opacity:1;transform:none}

/* 图标 hover 跳动 */
@keyframes kyjJump{
  0%{transform:translate(0)}
  10%{transform:translateY(8px) scaleX(1.2) scaleY(.8)}
  30%{transform:translateY(-5px) scaleX(1) scaleY(1) rotate(5deg)}
  50%{transform:translateY(3px) scale(1) rotate(0)}
  55%{transform:translateY(0) scaleX(1.1) scaleY(.9) rotate(0)}
  70%{transform:translateY(-5px) scaleX(1) scaleY(1) rotate(-2deg)}
  80%{transform:translateY(0) scaleX(1) scaleY(1) rotate(0)}
  85%{transform:translateY(0) scaleX(1.05) scaleY(.95) rotate(0)}
  to{transform:translateY(0) scaleX(1) scaleY(1)}
}
.link-item:hover img,
.link-item:hover .lf{animation:kyjJump 1.2s ease 1}

@media (max-width:767px){
  .link-bar h3{font-size:15px}
  .link-apply{height:26px;padding:0 10px;font-size:12px}
  .link-list{gap:8px;margin-top:10px}
  .link-item{height:40px;padding:0 12px;font-size:12px;gap:6px}
  .link-item img{width:20px;height:20px}
}
/* 后台配置的轮播（m=slide）：广告跳链接、视频跳搜索 */
.kyj-slide.custom .slide-pic img{object-position:center}
.kyj-slide.custom .slide-name{text-shadow:0 2px 12px rgba(0,0,0,.55)}



.link-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0 2px}
.link-item{width:100%;min-width:0;height:42px;padding:0 6px;justify-content:center;gap:4px}
.link-item img,.link-item .lf{width:17px;height:17px;line-height:17px;font-size:9px}
.link-item span{flex:0 0 auto;min-width:0;overflow:visible;text-overflow:clip;white-space:nowrap;
 font-size:12px;letter-spacing:0;text-align:center}

@media (min-width:768px){
  .link-list{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
  .link-item{height:44px;padding:0 8px;gap:5px}
  .link-item img,.link-item .lf{width:19px;height:19px;line-height:19px;font-size:11px}
  .link-item span{font-size:12.5px;letter-spacing:0}
}



.db-new{display:inline-block;vertical-align:1px;background:#3aa858;color:#fff;
 font-size:11px;font-style:normal;font-weight:600;line-height:15px;
 padding:0 4px;border-radius:3px;margin-right:4px}



@media (max-width:767px){
  .link-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .link-item{width:100%;margin:0;padding:0 6px}
  .link-item span{overflow:visible;text-overflow:clip;font-size:12px}
}
.link-item{width:100%;margin:0}