/* 顶部导航分类下拉（2026-09-10 新增，独立文件避免污染 style2.css） */
.header-links ul li.nav-has-sub{position:relative}
.header-links ul li.nav-has-sub>a:after{content:"\25be";margin-left:5px;font-size:10px;opacity:.7}
.header-links ul li.nav-has-sub>ul.type-sub{display:none;position:absolute;top:100%;left:3px;min-width:140px;background:#10151d;box-shadow:0 1px 2px rgba(0,0,0,.6);border-radius:3px;padding:6px 0;z-index:99999;list-style:none;margin:0}
.header-links ul li.nav-has-sub:hover>ul.type-sub{display:block}
.header-links ul li.nav-has-sub>ul.type-sub li{width:100%;float:none;margin:0}
.header-links ul li.nav-has-sub>ul.type-sub a{display:block;line-height:32px;color:#dadada;padding:0 16px;font-size:13px;border-radius:0;margin:0;border:0}
.header-links ul li.nav-has-sub>ul.type-sub a:hover{color:#fff;background:#ff6575}
@media(max-width:767px){.header-links ul li.nav-has-sub>ul.type-sub{position:static;display:block;padding-left:20px}.header-links ul li.nav-has-sub>ul.type-sub a{line-height:34px}}

/* ===== 竖屏封面分类（AI短剧等，2026-09-10 新增）=====
   用法：给 .home-img-box 加 class="type-portrait" 即可。
   3:4 竖版（133.33%）；想更细长改 177.78% 即 9:16。 */
.type-portrait .video-item .featured-content-image,
.type-portrait .video-item .video-image{padding-bottom:133.33%}
.type-portrait .video-item .featured-content-image img,
.type-portrait .video-item .video-image img{position:absolute;top:0;left:0;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}
@media(max-width:767px){
  .type-portrait .video-item .featured-content-image,
  .type-portrait .video-item .video-image{padding-bottom:133.33%}
}

/* ===== 封面统一撑满（2026-09-13）=====
   原 style2.css 的 img{height:auto} 让封面按原始比例走，导致高矮不一：
   宽图底下留白、竖图被裁一半。这里让 img 绝对定位撑满 16:9 容器。
   object-fit:cover = 裁剪填满不变形（推荐）；想「变形拉伸」就把 cover 换成 fill。 */
.video-item .featured-content-image img,
.video-item .video-image img{position:absolute;top:0;left:0;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}

/* ===== 标题行右侧按钮（最新发布/最多观看/最热好评、观看更多）同行对齐（2026-09-13）=====
   原因：style2.css 里 .category-count .order-link{float:right;padding:10px 10px 5px 0}，
   浮动块高度比标题高时父容器不计入其高度，按钮会溢出 .category-count 的底边框 → 看着「掉下来」。
   改 flex：标题在左、按钮在右，垂直居中；窄屏自动换行。 */
.category-count{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 10px}
.category-count .title{margin:0;line-height:1.4}
.category-count .order-link{float:none;padding:0;margin-left:auto}
.category-count .order-link .btn{margin:0}
@media(max-width:767px){
  .category-count{align-items:flex-start}
}
