/* n1 帝国CMS 全站模板 · 黑红风格（外部引用 /okle/css/n1tpl.css） */
:root{--red:#e8262d;--red2:#ff3b42;--ink:#15171a;--gray:#7d848c;--line:#e7e9ec}
*,::before,::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:#f2f3f5;color:var(--ink);font:14px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Microsoft YaHei",sans-serif}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%;border:0}
ol,ul{margin:0;padding:0;list-style:none}
time{font-style:normal}
.w{max-width:1200px;margin:0 auto;padding:0 12px}

/* ---------- 顶部 ---------- */
.h{background:#0d0d0d;border-bottom:2px solid var(--red)}
.h .w{display:flex;align-items:center;gap:16px;height:56px}
.logo{flex:none;display:flex;align-items:center;height:34px;padding:0 14px;background:var(--red);color:#fff;font-size:15px;font-weight:700;letter-spacing:.4px;border-radius:3px;white-space:nowrap}
.logo:hover{background:var(--red2)}
.s{flex:1 1 auto;display:flex;align-items:center;max-width:620px;height:34px;background:#1b1b1b;border:1px solid #2e2e2e;border-radius:3px;overflow:hidden}
.s select{flex:0 0 72px;height:100%;padding:0 4px;border:0;border-right:1px solid #2e2e2e;background:#1b1b1b;color:#d8d8d8;font-size:12px;outline:0;cursor:pointer;color-scheme:dark}
.s input[type=text]{flex:1 1 auto;min-width:0;height:100%;padding:0 11px;border:0;outline:0;background:transparent;color:#fff;font-size:13px}
.s input[type=text]::placeholder{color:#767676}
.s button{flex:0 0 46px;height:100%;display:flex;align-items:center;justify-content:center;border:0;background:var(--red);color:#fff;cursor:pointer}
.s button:hover{background:var(--red2)}

/* ---------- 唯一导航板块 ---------- */
.nv{background:#141414}
.nv .row{display:grid;grid-template-columns:78px repeat(8,minmax(0,1fr));border-top:1px solid #232323}
.nv .row:first-child{border-top:0}
.nv .cat{display:flex;align-items:center;justify-content:center;height:42px;background:#0a0a0a;color:#fff;font-size:14px;font-weight:700;letter-spacing:1px}
.nv .cat:hover{color:var(--red2)}
.nv .i{display:flex;align-items:center;justify-content:center;height:42px;color:#b8b8b8;font-size:13px;white-space:nowrap;border-left:1px solid #1e1e1e}
.nv .i:hover{color:#fff;background:#1e1e1e;box-shadow:inset 0 -2px 0 var(--red)}

/* ---------- 面包屑 ---------- */
.bc{display:flex;flex-wrap:wrap;align-items:center;gap:5px;padding:12px 0 0;font-size:12px;color:var(--gray)}
.bc a{color:#4a5158}
.bc a:hover{color:var(--red)}
.bc .sp{color:#c3c7cc}
.bc em{font-style:normal;color:var(--gray);max-width:58%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ---------- 标题 ---------- */
.h1{margin:12px 0 14px;font-size:21px;font-weight:700;line-height:1.3;padding-left:11px;border-left:4px solid var(--red)}
.h1 small{font-size:12px;font-weight:400;color:var(--gray);margin-left:8px}
.h2{margin:0 0 12px;font-size:16px;font-weight:700;padding-left:10px;border-left:3px solid var(--red)}
.pn{background:#fff;border:1px solid var(--line);border-radius:4px;padding:14px;margin:0 0 14px}

/* ---------- 视频缩略图卡片 ---------- */
.vg{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px 12px}
.c{min-width:0}
.th{position:relative;display:block;aspect-ratio:16/10;background:#1a1a1a;border-radius:3px;overflow:hidden}
.th img{width:100%;height:100%;object-fit:cover;transition:transform .25s}
.c:hover .th img{transform:scale(1.04)}
.th .d{position:absolute;right:0;bottom:0;padding:2px 5px;background:rgba(0,0,0,.7);color:#fff;font-size:11px;line-height:1.4}
.th.ph{display:flex;align-items:center;justify-content:center;background:#f4f5f6;border:1px solid var(--line);color:#aab0b6;font-size:12px}
.c h3{margin:7px 0 0;font-size:13px;font-weight:400;line-height:1.45;color:#222}
.c h3 a{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.c h3 a:hover{color:var(--red)}


/* ---------- 图片 / 小说 文字列表（无缩略图） ---------- */
.tl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 26px}
.tl li{min-width:0;border-bottom:1px dashed #ecedef}
.tl a{display:flex;align-items:center;gap:9px;height:38px;min-width:0;font-size:13px}
.tl i{flex:0 0 18px;color:#c8ccd1;font-size:12px;font-style:normal;text-align:right}
.tl .t{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#222}
.tl a:hover .t{color:var(--red)}
.tl .k{flex:none;font-size:11px;color:#9aa0a6}
.tl time{flex:none;font-size:11px;color:#a8adb2}


/* ---------- 分页 ---------- */
.pg{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin:20px 0 0}
.pg a,.pg em{min-width:34px;height:32px;display:flex;align-items:center;justify-content:center;padding:0 10px;background:#fff;border:1px solid var(--line);border-radius:3px;font-size:13px;font-style:normal;color:#4a5158}
.pg a:hover{border-color:var(--red);color:var(--red)}
.pg em{background:var(--red);border-color:var(--red);color:#fff;font-weight:700}

/* ---------- 详情页 ---------- */
.dt h1{margin:0 0 10px;font-size:22px;font-weight:700;line-height:1.35}
.meta{display:flex;flex-wrap:wrap;gap:12px;font-size:12px;color:var(--gray);margin:0 0 14px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.meta b{color:var(--red);font-weight:400}
/* 播放器：poster + 原生控制条，点播放才加载 hls.js */
.vpwrap{position:relative;margin:0 0 16px;background:#000;border-radius:4px;overflow:hidden}
.vp{display:block;width:100%;aspect-ratio:16/9;background:#000;object-fit:contain;outline:none}
.vintro{margin:0 0 16px;padding:12px 14px;background:#f7f8f9;border-left:3px solid var(--red);border-radius:0 3px 3px 0}
.vintro p{margin:0;font-size:13px;line-height:1.85;color:#4a5158}
/* 正文图集：全部图片一页铺开（不分页） */
.gal-list{margin:0 0 18px;text-align:center}
.gal-list img{display:block;width:100%;max-width:1024px;height:auto;margin:0 auto 10px;border-radius:3px;background:#f4f5f6}
.gal-list img:last-child{margin-bottom:0}
.txt{margin:0 0 6px;font-size:15px;line-height:1.9;color:#2b2f33}
.txt p{margin:0 0 12px}
.ntxt{margin:0 0 18px;padding:18px 20px;background:#fff;border:1px solid var(--line);border-radius:4px;font-size:15px;line-height:2.05}
.ntxt p{margin:0 0 14px;text-indent:2em}
.ntxt p:last-child{margin-bottom:0}
.chap{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 26px}
.chap li{min-width:0;border-bottom:1px dashed #ecedef}
.chap a{display:flex;align-items:center;height:38px;font-size:13px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chap a:hover{color:var(--red)}

/* ---------- 本栏目热门 ---------- */
.hl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 26px}
.hl li{min-width:0;border-bottom:1px dashed #ecedef}
.hl a{display:flex;align-items:center;gap:9px;height:38px;font-size:13px;min-width:0}
.hl i{flex:0 0 18px;height:18px;display:flex;align-items:center;justify-content:center;background:#eef0f2;color:#8a9099;font-size:11px;font-style:normal;border-radius:2px}
.hl li:nth-child(-n+3) i{background:var(--red);color:#fff;font-weight:700}
.hl span{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hl a:hover span{color:var(--red)}
.hl em{flex:none;font-size:11px;color:#a8adb2;font-style:normal}

/* ---------- 搜索结果 ---------- */
.cnt{font-size:13px;color:var(--gray);margin:0 0 12px}
.res li{padding:12px 0;border-bottom:1px solid var(--line)}
.res a.t{font-size:15px;color:#15171a}
.res a.t:hover{color:var(--red);text-decoration:underline}
.res .m{margin-left:8px;font-size:11px;color:#9aa0a6}
.res .s{margin:5px 0 0;font-size:12px;color:#7d848c;line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* ---------- 预览导航 ---------- */
.plist li{display:flex;align-items:baseline;gap:12px;padding:11px 0;border-bottom:1px solid var(--line)}
.plist a{font-size:15px;color:#15171a}
.plist a:hover{color:var(--red);text-decoration:underline}
.plist span{font-size:12px;color:var(--gray)}

/* ---------- 页脚（无导航链接） ---------- */
.f{margin-top:26px;background:#0d0d0d;border-top:2px solid var(--red);color:#8b8f95}
.f .w{padding:16px 12px}
.f p{margin:0;font-size:12px;line-height:1.7}


/* ---------- 广告位（全部由本地 JS 输出：/ad/*.js） ---------- */
.ad-banner,.ad-bottom{margin:0}
.ad-banner a,.ad-bottom a{display:block;height:60px;border-radius:3px;overflow:hidden;background:#f4f5f6}
.ad-banner img,.ad-bottom img{display:block;width:100%;height:60px;object-fit:fill}
.ad-bottom{margin:18px 0 0}
.ad-ph{display:flex;align-items:center;justify-content:center;height:100%;color:#a7adb4;font-size:12px;letter-spacing:1px;border:1px dashed #d9dde1;border-radius:3px}
.ad-float{position:fixed;left:0;right:0;bottom:0;z-index:90;display:flex;justify-content:center;padding:6px 0;background:rgba(13,13,13,.92)}
.ad-float a{display:block;width:100%;max-width:1200px;height:60px;background:#f4f5f6;border-radius:3px;overflow:hidden}
.ad-float img{display:block;width:100%;height:60px;object-fit:contain}
.ad-float__x{position:absolute;right:8px;top:2px;width:24px;height:24px;border:0;border-radius:50%;background:rgba(0,0,0,.55);color:#fff;font-size:15px;line-height:1;cursor:pointer}
/* 播放器覆盖广告：播放前 / 暂停 */
.ad-over{position:absolute;inset:0;z-index:5;background:#000}
.ad-over__l{display:block;width:100%;height:100%}
.ad-over__l img{display:block;width:100%;height:100%;object-fit:contain}
.ad-over .ad-ph{height:100%;border:0;background:#141414;color:#6b7178}
.ad-over__bar{position:absolute;right:8px;bottom:46px;display:flex;align-items:center;gap:10px;padding:6px 10px;background:rgba(0,0,0,.62);border-radius:3px;color:#fff;font-size:12px}
.ad-over__t b{color:var(--red);font-weight:700}
.ad-over__x{border:1px solid rgba(255,255,255,.5);background:transparent;color:#fff;font-size:12px;padding:3px 10px;border-radius:3px;cursor:pointer}
.ad-over__x:disabled{opacity:.45;cursor:default}
.ad-over--pause{background:rgba(0,0,0,.55)}
.ad-over__play{position:absolute;left:50%;bottom:46px;transform:translateX(-50%);padding:7px 18px;border:0;border-radius:3px;background:var(--red);color:#fff;font-size:13px;cursor:pointer}

/* ---------- 移动端 ---------- */
@media(max-width:900px){
.vg{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:767px){
.w{padding:0 10px}
.h .w{gap:8px;height:52px}
.logo{height:30px;padding:0 9px;font-size:14px}
.s{height:32px}
.s select{flex:0 0 62px;font-size:11px}
.s button{flex:0 0 40px}
.nv .row{grid-template-columns:56px repeat(4,minmax(0,1fr))}
.nv .cat{grid-row:span 2;height:auto;font-size:13px;letter-spacing:0}
.nv .i{height:33px;font-size:12px}
.bc{padding:10px 0 0}
.h1{margin:10px 0 12px;font-size:17px}
.h2{font-size:15px}
.pn{padding:12px 10px}
.vg{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 10px}
.c h3{font-size:12px}
.tl,.hl,.chap{grid-template-columns:minmax(0,1fr)}
.tl a,.hl a,.chap a{height:36px;font-size:13px}
.dt h1{font-size:17px}
.txt{font-size:14px;line-height:1.85}
.ad-banner a,.ad-bottom a,.ad-banner img,.ad-bottom img{height:50px}
.ad-float a,.ad-float img{height:50px}
.ntxt{padding:14px 14px;font-size:14px;line-height:1.95}
.ntxt p{margin:0 0 12px}
.vintro{padding:10px 12px}
.vintro p{font-size:12px;line-height:1.8}
.player .play svg{width:50px;height:50px;padding:12px}
}

/* ---------- 帝国CMS 生成页补充 ---------- */
/* 正文图集里帝国自带的 <br><br> 间隔改为由 margin 控制 */
.gal-list br{display:none}
/* 详情页正文里的原站内联样式兜底 */
.gal-list img[width]{height:auto}
.ntxt img{display:block;max-width:100%;height:auto;margin:0 auto 10px}
/* 相关推荐/热门 空占位不塌陷 */
.tl:empty,.hl:empty{display:none}
