/* 广告位 / 分页 / 文字链 / 固定位 等补充样式 (原由 SDK JS 内联注入 · PHP 直出版搬到这里) */
@keyframes ok-shine{0%{left:-100%}100%{left:100%}}
.ok-dl-pulse::after{content:"";position:absolute;top:0;left:-100%;width:60%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,0.35),transparent);animation:ok-shine 2s infinite;}
#textbox-top:not(:empty){background:linear-gradient(180deg,#1a1a2e 0%,#16213e 100%);padding:0;overflow:hidden;width:100%;box-sizing:border-box;}
.okay-text-ad{width:100%;padding:2px 4px;border-bottom:1px solid rgba(255,255,255,0.08);display:flex;align-items:center;box-sizing:border-box;overflow:hidden;}
.okay-text-ad__label{flex-shrink:0;text-align:center;margin-right:4px;max-width:44px;}
.promo .okay-text-ad__tag,.okay-text-ad__tag{display:inline-block !important;padding:3px 5px !important;border-radius:4px;text-decoration:none;white-space:nowrap;color:#fff;font-weight:700;font-size:10px;line-height:14px !important;margin:0;}
.okay-text-ad__tag--0{background:linear-gradient(135deg,#e74c3c,#c0392b);}
.okay-text-ad__tag--1{background:linear-gradient(135deg,#f39c12,#d68910);}
.okay-text-ad__tag--2{background:linear-gradient(135deg,#9b59b6,#8e44ad);}
.okay-text-ad__tag--3{background:linear-gradient(135deg,#e91e63,#c2185b);}
.okay-text-ad__tag--4{background:linear-gradient(135deg,#ff5722,#e64a19);}
.okay-text-ad__links{flex:1;min-width:0;display:grid;grid-template-columns:repeat(4,1fr);gap:6px 2px;}
.promo .okay-text-ad__links a,.okay-text-ad__links a{text-align:center;padding:2px 0 !important;text-decoration:none;white-space:nowrap;display:block !important;color:#ddd;font-size:13px;line-height:16px !important;overflow:hidden;text-overflow:ellipsis;margin:0;}
@media (min-width:1025px){
  .okay-text-ad{padding:5px 8px;}
  .okay-text-ad__label{max-width:70px;}
  .promo .okay-text-ad__tag,.okay-text-ad__tag{padding:4px 10px !important;font-size:13px;line-height:18px !important;}
  .okay-text-ad__links{gap:6px 10px;}
  .promo .okay-text-ad__links a,.okay-text-ad__links a{font-size:14px;line-height:18px !important;}
}
#float_right li:empty,#float_left li:empty{display:none;}
.pagination a{display:inline-block;margin:0 4px;padding:6px 12px;border-radius:6px;background:#fff;color:#ea580c;text-decoration:none;border:1px solid #fcd9c4;}
.pagination .current{display:inline-block;margin:0 6px;color:#888;}
.ep-btn:hover{opacity:.9;}

/* 顶/底固定广告位为空时不给 body 留 100px (CSS 兜底 · JS hideEmptyFloats 同义) */
body:not(:has(#topFloat .unit > *)){padding-top:0;}
body:not(:has(#bottomFloat .unit > *)){padding-bottom:0;}
