:root{
  --bg:#090b14;
  --panel:#12182a;
  --line:#26314d;
  --text:#ecf2ff;
  --sub:#9eaccf;
  --pri:#52d0ff;
  --pri2:#8f7bff;
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);font:14px/1.6 Arial,"Microsoft YaHei",sans-serif}
a{text-decoration:none;color:inherit}
img{display:block;width:100%}
.img-fallback{
  width:100% !important;
  max-width:100% !important;
  height:auto !important;
  max-height:none;
  aspect-ratio:3/4;
  object-fit:cover !important;
  background:#16213a;
}
.container{max-width:1240px;margin:0 auto;padding:0 14px}

.site-head{position:sticky;top:0;z-index:50;background:#090d18e8;border-bottom:0;backdrop-filter:blur(8px)}
.top-nav{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) minmax(148px,260px);
  align-items:center;
  gap:10px 12px;
  min-height:50px;
  max-width:1240px;width:100%;
  margin:6px auto;
  border:1px solid #293558;border-radius:14px;
  background:linear-gradient(120deg,#121a31,#0f1b2f 55%,#1c1833);
  padding:4px 16px;
  box-shadow:0 10px 24px #00000045,inset 0 1px 0 #8fd8ff1f;
}
.top-nav .logo{grid-column:1;z-index:2}
.top-nav .pc-nav{
  grid-column:2;
  z-index:3;
  position:relative;
  min-width:0;
}
.top-nav .search-row.top-inline.search-row--compact{
  grid-column:3;
  margin-left:0;
  flex:none;
  width:100%;
  max-width:260px;
  min-width:0;
  justify-self:end;
  z-index:1;
  position:relative;
}
.top-nav .head-tools{grid-column:3;justify-self:end;z-index:1}
.logo{display:flex;align-items:center;text-decoration:none}
.logo img{height:26px;width:auto;max-width:140px;object-fit:contain}
.logo-text{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:32px;padding:0 14px;
  font-size:17px;font-weight:700;line-height:1.2;
  color:#0e6578;
  background:linear-gradient(180deg,#eef9fc 0%,#d7f0f8 100%);
  border:1px solid #9fd4e6;border-radius:10px;
  white-space:nowrap;letter-spacing:.08em;
  box-shadow:inset 0 1px 0 #ffffffcc;
}
html[data-theme="dark"] .logo-text{
  color:#b8ecff;
  background:linear-gradient(180deg,#1a3344 0%,#152838 100%);
  border-color:#3d6a80;
  box-shadow:inset 0 1px 0 #ffffff14;
}
.pc-nav{
  display:flex;
  gap:10px;
  flex:1 1 auto;
  min-width:0;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  -ms-overflow-style:none;
}
.pc-nav::-webkit-scrollbar{display:none}
.pc-nav a{
  flex:0 0 auto;
  position:relative;
  z-index:1;
  white-space:nowrap;color:var(--sub);
  border:1px solid #314164;
  border-radius:999px;
  padding:5px 12px;
  background:#141d33;
  touch-action:manipulation;
}
.pc-nav a:hover,.pc-nav a.active{color:#06111f;background:linear-gradient(90deg,var(--pri),#7bc7ff);border-color:transparent}
.head-tools{display:none;gap:8px}
.icon-btn{border:1px solid var(--line);padding:5px 11px;border-radius:999px;background:#1d2130;color:var(--sub);cursor:pointer}
.search-row{display:flex;gap:12px;align-items:center;padding:8px 14px}
.search-form{display:flex;gap:8px;flex:1}
.search-form select,.search-form input,.search-form button{height:34px;border:1px solid var(--line);background:#171b28;color:var(--text);border-radius:999px}
.search-form input{flex:1;padding:0 10px}
.search-form button{padding:0 12px}
.rank-link{color:var(--sub)}
.top-inline{padding:0;flex:0 1 clamp(300px,36vw,460px);min-width:300px;background:#1a1e2b;border:1px solid var(--line);border-radius:8px;padding:3px 6px}
.top-inline.search-row--compact{
  min-width:168px;
  max-width:260px;
}
.top-inline .search-form{gap:6px}
.top-inline .search-form select{width:58px;flex:0 0 58px}
.top-inline .search-form input{min-width:80px}
.search-form--vod input{flex:1;min-width:0;max-width:168px}
.search-form--vod button{flex:0 0 auto;white-space:nowrap}
.top-inline .rank-link{font-size:12px;white-space:nowrap}

.m-nav{position:fixed;inset:0;background:#0008;display:none;z-index:60;pointer-events:none}
.m-nav.show{display:block;pointer-events:auto}
.m-nav.show .m-nav-panel{pointer-events:auto}
.m-nav-panel{width:min(320px,80vw);height:100%;background:#212534;padding:14px;overflow:auto}
.m-nav-panel>a,.m-nav-panel details>a{display:block;padding:7px 0;color:var(--sub)}
.m-nav-panel summary{padding:7px 0;cursor:pointer}

.hero{margin:12px 0}
.hero-focus{position:relative;height:320px;border-radius:10px;overflow:hidden;border:1px solid var(--line);background:#111}
.hero-slides-auto{position:absolute;inset:0}
.hero-cover{position:absolute;inset:0;opacity:0;transition:opacity .55s ease;background-size:cover;background-position:center center;filter:saturate(1.05) contrast(1.02);transform:translateZ(0)}
.hero-cover.is-active{opacity:1;z-index:2}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,#0004 0%,#0001 50%,#0006 100%)}
.hero-right{position:absolute;right:14px;top:14px;bottom:58px;width:230px;background:#111b;border:1px solid #ffffff1f;border-radius:8px;overflow:hidden;backdrop-filter:blur(4px)}
.hero-right ul{margin:0;padding:0;list-style:none}
.hero-right li{border-bottom:1px solid #ffffff14}
.hero-right li:last-child{border-bottom:0}
.hero-right a{display:flex;justify-content:space-between;gap:8px;padding:9px 10px}
.hero-right li.is-active{background:#ffffff14}
.hero-right span{flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.hero-right em{font-style:normal;color:var(--sub);font-size:12px;white-space:nowrap}
.hero-quick{display:flex;border-top:1px solid #ffffff18}
.hero-quick a{flex:1;text-align:center;padding:8px 0;font-size:12px;color:#f4c46c}
.hero-cats{position:absolute;left:0;right:258px;bottom:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;background:linear-gradient(180deg,#0f132600,#0f1326dd)}
.hero-cat{padding:9px 12px;border-right:1px solid #ffffff14}
.hero-cat:last-child{border-right:0}
.hero-cat-title{font-size:20px;font-weight:700}
.hero-cat-sub{display:flex;gap:8px;margin-top:4px}
.hero-cat-sub a{font-size:12px;color:#d0d7ea}

.module{background:linear-gradient(180deg,#121a2f,#10182a);border:1px solid var(--line);border-radius:14px;padding:12px;margin-bottom:14px;box-shadow:0 8px 20px #0000002e}
.module.lazy-render{
  content-visibility:auto;
  contain-intrinsic-size:900px;
}
.module h2{margin:0 0 10px;font-size:24px;display:flex;justify-content:space-between;align-items:center}
.module .more{font-size:12px;color:var(--sub)}
.hot-init-data{display:none}
.module-guess{background:linear-gradient(120deg,#101a31,#121830 60%,#18142e)}
.hot-slider{width:100%}
.hot-stage{
  position:relative;
  min-height:324px;
  border-radius:12px;
  overflow:hidden;
  border:1px solid #2f364b;
  background:#0f1119;
}
.hot-stage-bg-link{position:absolute;inset:0;display:block}
.hot-stage-bg{
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transform:scale(1.04);
  filter:blur(14px) saturate(1.08) brightness(.68);
  transition:opacity .35s ease,transform .35s ease;
}
.hot-stage.is-loaded .hot-stage-bg{opacity:1;transform:scale(1)}
.hot-stage-fill{
  position:absolute;
  top:0;
  bottom:0;
  width:22%;
  z-index:2;
  object-fit:cover;
  opacity:0;
  filter:blur(10px) saturate(1.05) brightness(.9);
  transform:scale(1.06);
  transition:opacity .3s ease;
  pointer-events:none;
}
.hot-stage-fill-left{left:0;object-position:right center}
.hot-stage-fill-right{right:320px;object-position:left center}
.hot-stage.is-loaded .hot-stage-fill{opacity:.5}
.hot-stage-main{
  position:absolute;
  top:12px;
  left:12px;
  right:320px;
  bottom:12px;
  z-index:3;
  width:calc(100% - 332px);
  height:calc(100% - 24px);
  object-fit:contain;
  object-position:center center;
  transform:none;
  padding:0;
  opacity:0;
  transition:opacity .28s ease;
  filter:drop-shadow(0 8px 20px #00000066);
}
.hot-stage-main#hot-focus-main{
  object-fit:contain !important;
  object-position:center center !important;
}
.hot-stage.is-loaded .hot-stage-main{opacity:1}
.hot-stage-mask{
  position:absolute;inset:0;
  background:
    linear-gradient(90deg,#00000070 0%,#0000002c 42%,#0000008a 100%),
    linear-gradient(180deg,#00000010 0%,#0000008c 100%);
}
.hot-stage-content{
  position:relative;
  z-index:4;
  min-height:324px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:16px;
}
.hot-meta{
  width:min(310px,42%);
  margin-left:auto;
  margin-bottom:84px;
  background:#0f1422b8;
  border:1px solid #ffffff1e;
  border-radius:10px;
  padding:12px;
  backdrop-filter:blur(3px);
}
.hot-meta h3{margin:0 0 6px;font-size:24px;line-height:1.3}
.hot-meta h3 a{
  color:#fff;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  text-overflow:ellipsis;
  word-break:break-all;
}
.hot-meta p{margin:0 0 9px;color:#d7dcf0}
.hot-play-btn{
  display:inline-block;
  padding:7px 14px;
  border-radius:999px;
  border:1px solid #ffffff3b;
  background:#ffffff1a;
  color:#fff;
}
.hot-thumbs{
  position:absolute;
  right:16px;
  left:calc(46% + 12px);
  bottom:14px;
  display:flex;
  gap:10px;
  justify-content:space-between;
  padding:4px 0;
  overflow:hidden;
  max-width:calc(54% - 32px);
}
.hot-thumb-item{
  flex:1 1 0;
  min-width:0;
  max-width:92px;
  width:auto;
  height:96px;
  border:2px solid #ffffff38;
  border-radius:8px;
  overflow:hidden;
  background:#121726;
  transition:.2s ease;
}
.hot-thumb-item.is-active{
  border-color:#ffd24d;
  transform:translateY(-2px);
  box-shadow:0 6px 18px #00000066;
}
.hot-thumb-item a,.hot-thumb-item img{display:block;width:100%;height:100%}
.hot-thumb-item img{object-fit:cover}
.seo-hero{position:relative;overflow:hidden;min-height:180px}
.seo-hero-bg{
  position:absolute;inset:0;
  background:
    radial-gradient(900px 260px at -10% -30%, #5a3bff33, transparent 60%),
    radial-gradient(700px 240px at 110% 130%, #ff3f8e33, transparent 62%),
    linear-gradient(130deg,#1f2537 0%,#171b28 65%,#151827 100%);
}
.seo-hero-content{position:relative;z-index:2;padding:6px 8px}
.seo-hero h1{margin:2px 0 10px;font-size:30px;line-height:1.35}
.seo-hero p{margin:0 0 12px;color:var(--sub);max-width:980px}
.seo-hero-links{display:flex;flex-wrap:wrap;gap:8px}
.seo-hero-links a{
  padding:5px 12px;border:1px solid #4a5066;border-radius:999px;
  background:#ffffff0d;color:#dfe6ff;
}
.seo-hero-links a:hover{border-color:var(--pri);color:#fff}
.split{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:12px}
.sub-links{font-size:12px;display:inline-flex;gap:8px;margin-left:10px}
.sub-links a{color:var(--sub)}
.module-channel{
  background:linear-gradient(145deg,#0f1a35,#101a2d 58%,#0e1730);
  border-color:#2d3f65;
}
.channel-head{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  gap:8px 12px;
  padding:8px 10px;
  border:1px solid #314976;
  border-radius:10px;
  background:linear-gradient(90deg,#13213f,#1a2340);
}
.channel-title{
  grid-column:1;
  position:relative;
  z-index:2;
  flex:0 0 auto;
}
.channel-title a{font-size:27px;letter-spacing:.5px}
.channel-links{
  grid-column:2;
  margin-left:0;
  justify-self:end;
  min-width:0;
  max-width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  position:relative;
  z-index:1;
}
.channel-links a{
  flex:0 0 auto;
  touch-action:manipulation;
}

.vod-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.guess-random-grid{grid-auto-flow:dense}
.vod-grid-scroll{display:flex;gap:10px;overflow:auto}
.vod-grid-scroll{scrollbar-width:none;-ms-overflow-style:none}
.vod-grid-scroll::-webkit-scrollbar{display:none}
.vod-grid-scroll .vod-card{min-width:150px}
.module-guess .vod-grid-scroll .vod-card{min-width:170px}
.channel-grid{grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-flow:row}
.guess-random-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
/* 首页分类区块：电脑 8 条 / 手机 9 条（多拉的条目用 CSS 收起，封面过滤后仍够数） */
.channel-grid .vod-card:nth-child(n+9){display:none}
/* 猜你喜欢：电脑 10 条 / 手机 9 条 */
.guess-random-grid .vod-card:nth-child(n+11){display:none}
.channel-main{display:flex;flex-direction:column;gap:12px}
.module-subshow{
  background:linear-gradient(120deg,#111a33,#0f1c34 58%,#151d37);
}
.subshow-groups{display:flex;flex-direction:column;gap:12px}
.subshow-groups .subshow-group:nth-child(n+6){display:none}
.subshow-group{
  border:1px solid #2a4068;
  border-radius:10px;
  background:#0f1b34;
  padding:10px;
}
.subshow-group h3{
  margin:0 0 8px;
  font-size:14px;
  color:#8dd7ff;
}
.subshow-group h3 a{color:inherit}
.channel-sub-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.subshow-card{min-height:100%}
.square-card img{aspect-ratio:1/1;object-fit:cover}
.channel-sub-grid .vod-card a{display:block}
.channel-sub-grid .vod-card h3{max-height:1.35em;font-size:12px;white-space:nowrap;text-overflow:ellipsis}
.channel-sub-grid .vod-card p{font-size:11px}
.vod-card{background:#141d32;border:1px solid #2a3653;border-radius:10px;overflow:hidden;min-width:0}
.vod-card a{display:block;overflow:hidden}
.vod-card img{width:100%;max-width:100%;height:auto;aspect-ratio:3/4;object-fit:cover;background:#0f1119}
.vod-grid{min-width:0}
.vod-card h3{
  margin:8px 8px 2px;
  font-size:13px;
  line-height:1.35;
  max-height:1.35em;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.vod-card h3 a{
  display:block;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  color:inherit;
}
.vod-card p{
  margin:0 8px 8px;
  color:var(--sub);
  font-size:12px;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.vod-card .desc{height:34px;overflow:hidden}
.vod-card.big{grid-column:span 2}

.rank ol{margin:0;padding:0;list-style:none}
.rank li{display:flex;align-items:center;gap:7px;border-bottom:1px dashed var(--line);padding:8px 0}
.rank .no{font-size:12px;color:var(--pri);min-width:34px}
.rank li a{flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.rank li em{font-style:normal;font-size:12px;color:var(--sub)}
.channel-rank .no{min-width:42px;text-align:left}
.channel-rank li{
  align-items:center;
  display:grid;
  grid-template-columns:44px minmax(0,1fr) auto;
  gap:8px;
}
.channel-rank{
  border:1px solid #34507a;
  border-radius:12px;
  background:linear-gradient(180deg,#0f1d3a,#111a30);
}
.channel-rank h2{padding:8px 10px;border-radius:8px;background:#ffffff0f}
.channel-rank h2 em{font-size:12px;color:#84d9ff;font-style:normal}

.detail-main{display:grid;grid-template-columns:240px minmax(0,1fr);gap:12px;background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:10px 12px;margin-bottom:12px}
.detail-head-block{
  margin:0 0 12px;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:8px;
  overflow:hidden;
}
.detail-head-block .crumb-bar{
  margin:0;
  padding:6px 12px;
  font-size:12px;
  line-height:1.4;
  border:none;
  border-radius:0;
  border-bottom:1px solid var(--line);
  background:rgba(255,255,255,.03);
}
.detail-head-block .detail-main{
  margin:0;
  border:none;
  border-radius:0;
  background:transparent;
}
.detail-main .info h1{
  margin:0 0 6px;
  font-size:20px;
  line-height:1.3;
  font-weight:600;
}
.detail-main .info .detail-meta-row{
  margin:0 0 3px;
  font-size:13px;
  line-height:1.45;
  color:var(--sub);
}
.detail-main .info .detail-meta-row span{
  margin-right:10px;
}
.detail-main .info .detail-intro,
.detail-main .info .pan-intro-spin{
  margin:0 0 4px;
  max-height:4.35em;
  overflow:hidden;
}
.pan-page .detail-main .info .detail-intro,
.pan-page .detail-main .info .pan-detail-intro{
  max-height:none;
  overflow:visible;
  line-height:1.65;
  word-break:break-word;
}
.detail-main .actions{
  margin-top:6px;
}
.two-col{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:12px}
.detail-page.two-col .detail-hot-kw-row{grid-column:1 / -1;margin-top:8px}
.side-col{background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:10px;height:max-content}
.poster img{border-radius:6px;object-fit:cover;aspect-ratio:3/4}
.actions{display:flex;gap:8px;margin-top:10px}
.btn{padding:7px 12px;border-radius:6px;color:#fff;font-size:13px}
.btn.play{background:#ff9f2f}
.btn.fav{background:#ff5579}
.player-box{
  position:relative;
  width:100%;
  max-width:100%;
  background:#000;
  aspect-ratio:16/9;
  border-radius:8px;
  overflow:hidden;
}
.player-box .MacPlayer,
.player-box iframe,
.player-box video,
.player-box embed,
.player-box object{
  display:block;
  width:100% !important;
  max-width:100%;
  height:100% !important;
  border:0;
}
.player-box .MacPlayer{
  position:absolute;
  inset:0;
  z-index:1;
}
.player-ops{display:flex;gap:8px;margin-top:10px}
.player-ops a{padding:5px 10px;border:1px solid var(--line);border-radius:6px;color:var(--sub)}
.pan-page .player-ops--pan{
  flex-wrap:nowrap;
  align-items:center;
  gap:8px;
}
.pan-page .player-ops--pan .pan-play-title{
  flex:0 1 auto;
  width:fit-content;
  max-width:calc(100% - 220px);
  min-width:0;
  margin:0;
  padding:6px 12px;
  border:1px solid #3d6a8a;
  border-radius:8px;
  background:rgba(255,255,255,.06);
  color:#ecf2ff;
  font-size:14px;
  font-weight:600;
  line-height:1.35;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
@media (max-width:768px){
  .pan-page .player-ops--pan .pan-play-title{
    max-width:calc(100% - 200px);
  }
}
html[data-theme="light"] .pan-page .player-ops--pan .pan-play-title{
  border-color:#9cc4d0;
  background:#f4fafc;
  color:#142428;
}
.pan-page .pan-play-intro{
  margin:12px 0 0;
  padding:10px 12px;
  line-height:1.65;
  color:var(--sub);
  font-size:14px;
  border:1px solid var(--line);
  border-radius:8px;
  background:rgba(255,255,255,.03);
}
html[data-theme="light"] .pan-page .pan-play-intro{
  background:#f6f8fc;
}
.pan-page .player-ops--pan > a{
  flex:0 0 auto;
}
.pan-play-banner{text-align:center;margin:14px 0 6px}
.pan-play-kw{
  display:inline-block;
  max-width:100%;
  margin:0;
  padding:9px 24px;
  border-radius:999px;
  border:1px solid #314164;
  background:linear-gradient(120deg,#141d33,#1a2342);
  color:#ecf2ff;
  font-size:14px;
  font-weight:600;
  line-height:1.45;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 4px 14px rgba(0,0,0,.2);
}
html[data-theme="light"] .pan-play-kw{
  background:linear-gradient(180deg,#fff,#f0f6fa);
  border-color:#9cc4d0;
  color:#142428;
  box-shadow:0 2px 10px rgba(20,60,90,.1);
}
.play-list,.guess-like,.list-page,.player-panel{background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:10px;margin-bottom:12px}
.line-select-wrap{margin:8px 0 10px}
.line-select{
  width:100%;max-width:320px;height:34px;
  border:1px solid var(--line);border-radius:999px;
  background:#171b28;color:var(--text);padding:0 12px;
}
.ep-panel{display:none}
.ep-panel.active{display:block}
.ep-list{display:flex;gap:8px;flex-wrap:wrap}
.ep-list a{padding:4px 9px;border:1px solid var(--line);border-radius:6px;color:var(--sub)}
.ep-list a.on{border-color:var(--pri);color:#fff;background:#ffffff10}

.site-foot{border-top:1px solid var(--line);margin-top:14px;padding:16px 0;color:var(--sub);text-align:center}
.site-foot-map{margin:8px 0;font-size:13px}
.site-foot-map a{color:var(--pri);text-decoration:underline}
.site-foot-map a:hover{color:#fff}
.pan-sitemap-page h1{font-size:20px;margin:0 0 12px}
.pan-sitemap-page .sitemap-note{font-size:13px;color:var(--sub);margin-bottom:18px}
.pan-sitemap-page h2{font-size:16px;margin:22px 0 10px;color:var(--pri)}
.pan-sitemap-page ul{list-style:none;padding:0;margin:0}
.pan-sitemap-page li{margin:6px 0;font-size:14px;word-break:break-all}
.pan-sitemap-page li a{color:#eaf3ff;text-decoration:none;border-bottom:1px dashed #ffffff30}
.pan-sitemap-page li a:hover{color:var(--pri);border-bottom-color:var(--pri)}
.floating-actions{
  position:fixed;
  right:16px;
  bottom:18px;
  z-index:88;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.floating-btn{
  width:44px;
  height:44px;
  border-radius:50%;
  border:1px solid #3a4e79;
  background:linear-gradient(145deg,#16223d,#101a2f);
  color:#eaf3ff;
  font-size:18px;
  cursor:pointer;
  box-shadow:0 8px 18px #0000004a,inset 0 1px 0 #9cd8ff2e;
}
.floating-btn:hover{
  background:linear-gradient(145deg,#21345f,#172746);
}
.paging-wrap{display:flex;gap:6px;justify-content:center}
.page-btn{
  min-width:34px;
  height:32px;
  padding:0 10px;
  border:1px solid var(--line);
  border-radius:8px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#151f36;
  color:var(--text);
}
.page-btn.active{
  background:linear-gradient(90deg,var(--pri),#7bc7ff);
  color:#08182c;
  border-color:transparent;
}

html[data-theme="light"]{
  --bg:#eef3ff;--panel:#ffffff;--line:#cbd8f4;--text:#18233b;--sub:#526386;--pri:#0fa4ff;--pri2:#7467ff;
}

/* Light theme readability tuning */
html[data-theme="light"] .site-head{background:#edf4ffe8}
html[data-theme="light"] .top-nav{
  background:linear-gradient(120deg,#ffffff,#edf5ff 55%,#eef0ff);
  box-shadow:0 8px 18px #2c3b6b24,inset 0 1px 0 #ffffff;
  border-color:#c8d9ff;
}
html[data-theme="light"] .pc-nav a{
  background:#f8faff;
  border-color:#c8d2ea;
  color:#34405c;
}
html[data-theme="light"] .pc-nav a:hover,
html[data-theme="light"] .pc-nav a.active{
  background:linear-gradient(90deg,#3fb7ff,#8da0ff);
  border-color:transparent;
  color:#fff;
}
html[data-theme="light"] .icon-btn{
  background:#f7f9ff;
  border-color:#cad4ec;
  color:#33405e;
}
html[data-theme="light"] .top-inline{
  background:#f8faff;
  border-color:#c8d2ea;
}
html[data-theme="light"] .search-form select,
html[data-theme="light"] .search-form input,
html[data-theme="light"] .search-form button{
  background:#ffffff;
  border-color:#cad4ec;
  color:#25304a;
}
html[data-theme="light"] .search-form input::placeholder{color:#7b86a2}
/* 分页：默认按钮写死深色底，浅色主题需单独提亮 */
html[data-theme="light"] .page-btn{
  background:#ffffff;
  border-color:#cad4ec;
  color:#25304a;
}
html[data-theme="light"] a.page-btn:hover{
  border-color:#3fb7ff;
  color:#0576c7;
  background:#f0f7ff;
}
html[data-theme="light"] .page-btn.active{
  background:linear-gradient(90deg,#3fb7ff,#8da0ff);
  color:#ffffff;
  border-color:transparent;
}
html[data-theme="light"] .module h2{color:#1e2a45}
html[data-theme="light"] .module .more,
html[data-theme="light"] .sub-links a,
html[data-theme="light"] .rank-link{color:#4f5f84}
html[data-theme="light"] .seo-hero-bg{
  background:
    radial-gradient(900px 260px at -10% -30%, #8a63ff2b, transparent 60%),
    radial-gradient(700px 240px at 110% 130%, #ff639a26, transparent 62%),
    linear-gradient(130deg,#ffffff 0%,#f5f7ff 65%,#eef2ff 100%);
}
html[data-theme="light"] .seo-hero h1{color:#1f2a44}
html[data-theme="light"] .seo-hero p{color:#516285}
html[data-theme="light"] .seo-hero-links a{
  background:#ffffff;
  border-color:#cad4ec;
  color:#32405e;
}
html[data-theme="light"] .seo-hero-links a:hover{
  border-color:#ff9fc2;
  color:#bf266a;
}
html[data-theme="light"] .vod-card{
  background:#fbfcff;
  border-color:#d7deef;
}
html[data-theme="light"] .module-channel{
  background:linear-gradient(145deg,#f9fbff,#edf2ff 58%,#f6f8ff);
  border-color:#c9d7f5;
}
html[data-theme="light"] .channel-head{
  background:linear-gradient(90deg,#f4f8ff,#edf3ff);
  border-color:#ccdaf7;
}
html[data-theme="light"] .channel-rank{
  background:linear-gradient(180deg,#f8fbff,#eef3ff);
  border-color:#cadafa;
}
html[data-theme="light"] .module-subshow{
  background:linear-gradient(120deg,#f6f9ff,#edf3ff 58%,#f2f6ff);
}
html[data-theme="light"] .subshow-group{
  background:#f4f8ff;
  border-color:#d0ddfa;
}
html[data-theme="light"] .subshow-group h3{color:#2f7fc1}
html[data-theme="light"] .vod-card h3{color:#1f2a44}
html[data-theme="light"] .vod-card p{color:#5a6687}
html[data-theme="light"] .rank .no{color:#d3246d}
html[data-theme="light"] .rank li a{color:#273452}
html[data-theme="light"] .rank li em{color:#5a6687}
html[data-theme="light"] .line-select{
  background:#ffffff;
  border-color:#cad4ec;
  color:#273452;
}
html[data-theme="light"] .ep-list a{
  background:#f8faff;
  border-color:#cad4ec;
  color:#3b4a6f;
}
html[data-theme="light"] .ep-list a.on{
  border-color:#ff8eb7;
  color:#b81f63;
  background:#ffe8f2;
}
html[data-theme="light"] .floating-btn{
  background:linear-gradient(145deg,#ffffff,#e9f1ff);
  border-color:#c7d6f6;
  color:#2b3d66;
  box-shadow:0 8px 16px #6a80b829,inset 0 1px 0 #fff;
}

/* 浅色主题：首页「今日热点」「猜你喜欢」与下方分类区统一为浅底 */
html[data-theme="light"] .module:not(.module-channel):not(.module-subshow){
  background:linear-gradient(145deg,#f9fbff,#edf2ff 58%,#f6f8ff);
  border-color:#c9d7f5;
  box-shadow:0 8px 18px #2c3b6b18;
}
html[data-theme="light"] .module-guess{
  background:linear-gradient(120deg,#f6f9ff,#edf3ff 60%,#f2f5ff);
  border-color:#c9d7f5;
}
html[data-theme="light"] .hot-stage{
  border-color:#cad4ec;
  background:linear-gradient(180deg,#fbfdff,#eef3ff);
}
html[data-theme="light"] .hot-stage-mask{
  background:
    linear-gradient(90deg,rgba(255,255,255,.62) 0%,rgba(255,255,255,.28) 42%,rgba(232,240,255,.78) 100%),
    linear-gradient(180deg,rgba(255,255,255,.12) 0%,rgba(20,40,70,.2) 100%);
}
html[data-theme="light"] .hot-meta{
  background:rgba(255,255,255,.94);
  border-color:#c8d6ee;
  box-shadow:0 6px 16px rgba(30,55,90,.12);
}
html[data-theme="light"] .hot-meta h3 a{color:#1a2744}
html[data-theme="light"] .hot-meta p{color:#4a5d7d}
html[data-theme="light"] .hot-play-btn{
  border-color:#7eb8e0;
  background:linear-gradient(90deg,#e9f6ff,#dff0ff);
  color:#0b5a8a;
}
html[data-theme="light"] .hot-thumb-item{
  background:#f0f4fc;
  border-color:#c5d3ea;
}
html[data-theme="light"] .hot-thumb-item.is-active{
  border-color:#d9a21a;
  box-shadow:0 6px 14px rgba(30,50,80,.18);
}

/* 桌面端第二行导航默认隐藏（仅窄屏「影院式」顶栏使用） */
.m-subnav-wrap{display:none}

@media (max-width:1024px){
  .split{grid-template-columns:1fr}
  .hero-focus{height:260px}
  .hero-right{width:200px}
  .hero-cats{right:220px}
  .two-col{grid-template-columns:1fr}
  .side-col{display:none}
  .rank{display:none}
  .vod-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .guess-random-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .channel-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .channel-sub-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .hot-stage-fill-right{right:280px}
  .hot-stage,.hot-stage-content{min-height:292px}
  .hot-stage-main{
    top:10px;
    left:10px;
    right:290px;
    bottom:10px;
    width:calc(100% - 300px);
    height:calc(100% - 20px);
  }
  .hot-meta{width:min(280px,46%)}
  .hot-meta h3{font-size:24px}
  .hot-meta{margin-bottom:74px}
  .hot-thumbs{
    left:calc(50% + 12px);
    right:12px;
    bottom:12px;
  }
}
/* 面包屑：与旧系统「当前位置：首页 > 分类 > 《片名》」一致 */
.crumb-bar{
  margin:0 0 12px;
  padding:6px 0;
  font-size:12px;
  line-height:1.4;
  color:#8a96b0;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  border-radius:6px;
}
.crumb-bar .crumb-label{color:#9aa8c4;margin-right:2px}
.crumb-bar a{color:#9aa8c4;text-decoration:none}
.crumb-bar a:hover{color:var(--pri)}
.crumb-bar .crumb-sep{margin:0 5px;color:#5c6a82}
.crumb-bar .crumb-current{color:#dce6ff}
html[data-theme="light"] .detail-head-block .crumb-bar{
  background:#f0f2f6;
  border-bottom-color:#e5e8ee;
}
html[data-theme="light"] .crumb-bar{
  color:#666;
  background:#f5f6f8;
  border-color:#e8eaee;
}
.detail-page .detail-head-block .crumb-bar,
.pan-page .detail-head-block .crumb-bar{
  background:transparent;
}
html[data-theme="light"] .detail-page .detail-head-block .crumb-bar,
html[data-theme="light"] .pan-page .detail-head-block .crumb-bar{
  background:#f0f2f6;
}
html[data-theme="light"] .crumb-bar .crumb-label{color:#888}
html[data-theme="light"] .crumb-bar a{color:#666}
html[data-theme="light"] .crumb-bar a:hover{color:#e67e00}
html[data-theme="light"] .crumb-bar .crumb-sep{color:#bbb}
html[data-theme="light"] .crumb-bar .crumb-current{color:#333}
/* 播放页面包屑：强制单行，超出省略号 */
.play-page .crumb-bar--oneline{
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  max-width:100%;
  overflow:hidden;
  white-space:nowrap;
}
.play-page .crumb-bar--oneline .crumb-prefix{
  flex:0 0 auto;
  white-space:nowrap;
}
.play-page .crumb-bar--oneline .crumb-tail{
  flex:1 1 auto;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.play-page .crumb-bar--oneline .crumb-tail a,
.play-page .crumb-bar--oneline .crumb-tail .crumb-current{
  display:inline;
}
.crumb{margin:0 0 10px;font-size:13px;color:var(--sub);line-height:1.5}
.crumb a{color:var(--sub)}
.crumb a:hover{color:var(--pri)}
.pan-page .detail-page-grid{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:18px;align-items:start}
.pan-page .pan-page-kw{grid-column:1/-1;margin-top:8px}
.detail-page.two-col .pan-page-kw,.play-page.two-col .pan-page-kw{width:100%;margin-top:16px;clear:both}
.pan-intro-spin{line-height:1.65;max-height:4.95em;overflow:hidden}
.pan-page .pan-detail-intro{max-height:none;overflow:visible}
.detail-main .vod-score{margin-left:8px;color:var(--pri);font-size:18px;font-weight:600}
.play-list .play-line-label{margin:0 0 8px;font-size:14px;color:var(--sub);font-weight:600}
.play-list .ep-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:4px}
.play-list .ep-scroll .ep-list{display:flex;flex-wrap:nowrap;gap:8px;min-width:min-content}
.play-list .ep-scroll .ep-list a{flex:0 0 auto;white-space:nowrap}
.pan-page .pan-playlist .pan-ep-list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  min-width:0;
}
.pan-page .pan-playlist .pan-ep-list a{
  flex:0 0 auto;
  white-space:nowrap;
  min-width:52px;
  text-align:center;
}

/* 泛详情/播放：主栏与推荐区防止大图撑破手机屏 */
.pan-page .detail-page-grid > .main-col{min-width:0;max-width:100%}
.pan-page .guess-like .vod-grid{min-width:0}
.pan-page .guess-like .vod-card{min-width:0}

@media (max-width:900px){
  .pan-page .detail-page-grid{grid-template-columns:1fr}
}
@media (max-width:768px){
  main.container.pan-page.detail-page,
  main.container.pan-page.play-page{overflow-x:hidden}
  .pan-page .guess-like,
  .pan-page .play-list,
  .pan-page .player-panel,
  .pan-page .detail-main{overflow:hidden;max-width:100%}
  .pan-page .guess-like .vod-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
  }
  .pan-page .guess-like .vod-card img{
    width:100%;
    max-width:100%;
    aspect-ratio:3/4;
    object-fit:cover;
  }
  .pan-page .detail-main .poster{
    max-width:min(240px,46vw);
  }
  .pan-page .detail-main .poster img{
    width:100%;
    max-width:100%;
    height:auto;
    aspect-ratio:3/4;
    object-fit:cover;
  }
}
@media (max-width:768px){
  .crumb-bar{
    margin:0 0 10px;
    padding:7px 10px;
    font-size:12px;
    border-radius:4px;
  }
  .crumb-bar .crumb-sep{margin:0 4px}
}
@media (max-width:768px){
  .pc-nav{display:none}
  .head-tools{display:none}
  .top-inline{display:none}
  .seo-hero{min-height:150px}
  .seo-hero h1{font-size:20px}
  .hero-focus{height:220px}
  .hero-right{display:none}
  .hero-cats{right:0;grid-template-columns:repeat(2,minmax(0,1fr))}
  .vod-grid,.m-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .guess-random-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .channel-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .channel-grid .vod-card:nth-child(n+9){display:block}
  .channel-grid .vod-card:nth-child(n+10){display:none}
  .guess-random-grid .vod-card:nth-child(n+10){display:none}
  .guess-random-grid .vod-card:nth-child(n+11){display:none}
  .channel-sub-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  /* 手机端今日热点：全幅背景轮播 + 右侧信息卡 + 底部缩略图（恢复轮播展示） */
  .hot-stage,.hot-stage-content{min-height:300px}
  .hot-stage-fill{display:none}
  .hot-stage-bg{
    filter:none;
    transform:none;
  }
  .hot-stage.is-loaded .hot-stage-bg{
    opacity:1;
    transform:none;
  }
  .hot-stage-main{display:none}
  .hot-stage-mask{
    background:
      linear-gradient(90deg,rgba(0,0,0,.08) 0%,rgba(0,0,0,.12) 38%,rgba(255,255,255,.72) 100%),
      linear-gradient(180deg,rgba(0,0,0,.02) 45%,rgba(0,0,0,.42) 100%);
  }
  html[data-theme="light"] .hot-stage-mask{
    background:
      linear-gradient(90deg,rgba(255,255,255,.15) 0%,rgba(255,255,255,.35) 36%,rgba(255,255,255,.88) 100%),
      linear-gradient(180deg,rgba(255,255,255,.05) 50%,rgba(20,40,70,.14) 100%);
  }
  .hot-stage-content{
    justify-content:flex-end;
    padding:10px 10px 12px;
  }
  .hot-meta{
    width:min(48%,188px);
    margin-left:auto;
    margin-bottom:78px;
    padding:8px 10px;
    border-radius:8px;
    background:#0d1220c8;
    border-color:#ffffff28;
    box-shadow:0 4px 14px rgba(0,0,0,.25);
  }
  .hot-meta h3{font-size:15px;line-height:1.3;margin-bottom:4px}
  .hot-meta h3 a{color:#fff}
  .hot-meta p{font-size:11px;margin-bottom:6px;color:#d7dcf0}
  .hot-play-btn{
    padding:5px 10px;
    font-size:12px;
    border-radius:6px;
  }
  html[data-theme="light"] .hot-meta{
    background:rgba(255,255,255,.94);
    border-color:#c8d6ee;
    box-shadow:0 4px 14px rgba(30,55,90,.12);
  }
  html[data-theme="light"] .hot-meta h3 a{color:#1a2744}
  html[data-theme="light"] .hot-meta p{color:#4a5d7d}
  html[data-theme="light"] .hot-play-btn{
    border-color:#7eb8e0;
    background:linear-gradient(90deg,#e9f6ff,#dff0ff);
    color:#0b5a8a;
  }
  .hot-thumbs{
    display:flex;
    left:8px;
    right:8px;
    bottom:8px;
    justify-content:space-between;
    gap:8px;
    max-width:none;
  }
  .hot-thumb-item{
    flex:1 1 0;
    min-width:0;
    max-width:none;
    width:auto;
    height:72px;
    border-radius:6px;
  }
  .subshow-groups{gap:10px}
  .subshow-group{padding:8px}
  .channel-sub-grid{
    display:flex;
    gap:8px;
    overflow:auto;
    scrollbar-width:none;
    -ms-overflow-style:none;
  }
  .channel-sub-grid::-webkit-scrollbar{display:none}
  .channel-sub-grid .subshow-card{
    min-width:120px;
    flex:0 0 120px;
  }
  .play-list h3{
    margin:8px 0 6px;
    font-size:13px;
  }
  .ep-list{
    max-height:220px;
    overflow:auto;
    scrollbar-width:thin;
  }
  .floating-actions{
    right:10px;
    bottom:14px;
  }
  .floating-btn{
    width:38px;
    height:38px;
    font-size:16px;
  }
  .detail-main{
    grid-template-columns:minmax(168px,42vw) minmax(0,1fr);
    align-items:start;
    column-gap:12px;
  }
  .detail-main .poster{align-self:start;width:100%}
  .detail-main .poster img{
    width:100%;
    max-width:100%;
    height:auto;
    aspect-ratio:3/4;
    object-fit:cover;
    display:block;
  }
  .detail-main .info{min-width:0;word-break:break-word}
  .search-row{padding-top:0}
}

/* 小屏手机：详情区改为「海报在上、信息在下」，与封面宽度对齐、避免细窄侧栏 */
@media (max-width:480px){
  .detail-main{
    grid-template-columns:1fr;
    row-gap:14px;
    justify-items:stretch;
  }
  .detail-main .poster{
    max-width:min(320px,88vw);
    width:100%;
    margin:0 auto;
    justify-self:center;
  }
  .detail-main .poster img{width:100%;height:auto;aspect-ratio:3/4;object-fit:cover}
  .detail-main .info{width:100%;min-width:0}
  .detail-main .info h1{font-size:clamp(19px,5.2vw,24px);line-height:1.25}
}

/* —— 窄屏顶栏：Logo + 紧凑搜索同一行；无「导航/搜索/历史/换肤」按钮；下排横向分类 —— */
@media (max-width:768px){
  .m-subnav-wrap{
    display:block;
    max-width:1240px;
    margin:0 auto;
    padding:0 4px 4px;
    position:relative;
    z-index:4;
    pointer-events:auto;
  }
  .m-subnav{
    display:flex;
    align-items:center;
    min-height:0;
    width:100%;
  }
  /* 手机端：居中紧凑排列，项间距约两字宽，禁止横向滑动 */
  .m-subnav-scroll{
    display:flex;
    flex-wrap:nowrap;
    align-items:center;
    justify-content:center;
    gap:2ch;
    width:100%;
    min-height:0;
    overflow:hidden;
    padding:4px 2px;
    border-top:1px solid rgba(255,255,255,.12);
    box-sizing:border-box;
  }
  .m-subnav-scroll a{
    flex:0 1 auto;
    min-width:0;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    position:relative;
    z-index:1;
    touch-action:manipulation;
    min-height:0;
    padding:4px 0;
    border:none;
    border-radius:0;
    font-size:clamp(12px,3.45vw,17px);
    font-weight:500;
    line-height:1.35;
    letter-spacing:0;
    text-align:center;
    white-space:nowrap;
    word-break:keep-all;
    color:rgba(240,250,252,.92);
    background:transparent;
    box-shadow:none;
  }
  .m-subnav-scroll a.active{
    color:#f5d76e;
    font-weight:600;
    background:transparent;
    border:none;
    box-shadow:none;
  }
  html[data-theme="light"] .m-subnav-scroll{
    border-top-color:rgba(80,130,140,.35);
  }
  html[data-theme="light"] .m-subnav-scroll a{
    color:#1a4550;
    background:transparent;
  }
  html[data-theme="light"] .m-subnav-scroll a.active{
    color:#c97800;
    font-weight:400;
    background:transparent;
  }

  body{
    padding-top:var(--mobile-head-h,96px);
  }
  .site-head{
    position:fixed;
    top:0;
    left:0;
    right:0;
    z-index:50;
    background:linear-gradient(180deg,#0c2830 0%,#103842 55%,#124a58 100%);
    border-bottom:1px solid rgba(255,255,255,.1);
    transition:box-shadow .25s ease;
  }
  .site-head.is-top-collapsed{
    box-shadow:0 4px 16px rgba(0,0,0,.18);
  }
  .site-head-top{
    overflow:hidden;
    max-height:var(--site-head-top-visible,120px);
    opacity:1;
    transition:none;
    will-change:max-height,opacity;
  }
  .site-head-top.is-head-ease{
    transition:max-height .58s cubic-bezier(.22,1,.36,1),opacity .52s ease;
  }
  .site-head.is-top-collapsed .site-head-top{
    pointer-events:none;
    border:none;
  }
  .site-head.is-top-collapsed .m-subnav-wrap,
  .site-head.is-top-collapsed .m-subnav-scroll,
  .site-head.is-top-collapsed .m-subnav-scroll a{
    pointer-events:auto;
  }
  .site-head.is-top-collapsed .m-subnav-wrap{
    padding-top:0;
  }
  .site-head.is-top-collapsed .m-subnav-scroll{
    border-top:none;
    padding:5px 0;
  }
  html[data-theme="light"] .site-head{
    background:linear-gradient(180deg,#dff2f6,#cfe8ef 60%,#c5e3ec);
    border-bottom-color:#8fb8c4;
  }

  .site-head .container.top-nav{
    display:flex;
    flex-direction:row;
    flex-wrap:nowrap;
    align-items:center;
    justify-content:flex-start;
    gap:10px;
    max-width:1240px;
    width:100%;
    margin:0 auto;
    border-radius:0;
    border-width:0 0 1px 0;
    padding:10px 14px;
    background:linear-gradient(118deg,rgba(0,0,0,.12) 0%,rgba(255,255,255,.06) 100%);
    border-color:rgba(255,255,255,.18);
    box-shadow:none;
  }
  html[data-theme="light"] .site-head .container.top-nav{
    background:rgba(255,255,255,.55);
    border-color:rgba(100,150,160,.35);
  }

  .top-nav .head-tools{display:none !important}

  .top-nav .logo{
    flex:0 0 auto;
    align-self:center;
    margin-right:0;
  }
  .top-nav .logo img{
    height:22px;
    max-width:100px;
    width:auto;
  }
  .top-nav .logo-text{
    min-height:36px;
    padding:0 14px;
    font-size:clamp(15px,4.2vw,20px);
    border-radius:8px;
    letter-spacing:.04em;
    white-space:nowrap;
    word-break:keep-all;
    flex-shrink:0;
  }

  .top-nav .search-row.top-inline{
    display:flex !important;
    flex:0 1 auto;
    min-width:0;
    width:auto;
    max-width:min(220px,52vw);
    margin:0 0 0 auto;
    padding:0;
    background:transparent;
    border:0;
  }
  .top-nav .search-row.top-inline.search-row--compact{
    flex:0 1 auto;
    min-width:0;
    max-width:min(220px,52vw);
    margin-left:auto;
  }
  .top-nav .search-row.top-inline .search-form{
    width:100%;
    flex:1;
    min-width:0;
    gap:6px;
    justify-content:flex-end;
  }
  .top-nav .search-row.top-inline .search-form input{
    flex:1;
    min-width:0;
    max-width:none;
    height:34px;
    font-size:13px;
    padding:0 10px;
    border-radius:6px;
    background:rgba(255,255,255,.95);
    color:#142428;
    border-color:rgba(255,255,255,.5);
  }
  html[data-theme="light"] .top-nav .search-row.top-inline .search-form input{
    background:#fff;
    border-color:#8ebfcf;
  }
  .top-nav .search-row.top-inline .search-form button{
    flex:0 0 auto;
    height:34px;
    padding:0 12px;
    font-size:13px;
    border-radius:6px;
    background:rgba(255,255,255,.14);
    color:#f4fdff;
    border-color:rgba(255,255,255,.28);
  }
  html[data-theme="light"] .top-nav .search-row.top-inline .search-form button{
    background:#fff;
    color:#1a3040;
    border-color:#8ebfcf;
  }
}

@media (max-width:380px){
  .m-subnav-wrap{
    padding:0 2px 8px;
  }
  .m-subnav-scroll{
    gap:1.5ch;
    padding:3px 0;
  }
  .m-subnav-scroll a{
    padding:3px 0;
    font-size:clamp(11px,3.2vw,15px);
  }
  .top-nav .logo-text{
    font-size:clamp(14px,3.8vw,18px);
    padding:0 10px;
  }
}

/* 手机首页：分类标题与「最新/子类」单行展示，过长横向滑动 */
@media (max-width:768px){
  .channel-head{
    display:flex;
    flex-wrap:nowrap;
    align-items:center;
    gap:6px 8px;
    overflow:hidden;
  }
  .channel-title{
    flex:0 0 auto;
    white-space:nowrap;
    word-break:keep-all;
  }
  .channel-title a{
    font-size:clamp(18px,5.2vw,24px);
    white-space:nowrap;
  }
  .channel-links,
  .channel-head .sub-links{
    display:inline-flex;
    flex:1 1 auto;
    flex-wrap:nowrap;
    align-items:center;
    min-width:0;
    margin-left:0;
    gap:6px;
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    -ms-overflow-style:none;
    white-space:nowrap;
  }
  .channel-links::-webkit-scrollbar,
  .channel-head .sub-links::-webkit-scrollbar{display:none}
  .channel-links a,
  .channel-head .sub-links a{
    flex:0 0 auto;
    white-space:nowrap;
    word-break:keep-all;
    font-size:clamp(11px,3.2vw,12px);
  }
  /* 最多 6 项：最新 + 4 子类 + 更多（与参考站一致，多出的子类不显示） */
  .channel-head .channel-links > a:nth-child(n+6):not(:last-child){
    display:none !important;
  }
}

/* 热门搜索：与「猜你喜欢/.module」区分底图；4 列×5 行，行间虚线、列间无竖线（对齐参考稿） */
.jpkr-kw-section.pan-hot-kw-brand{
  margin-top:20px;
  padding:14px 16px 10px;
  border-radius:12px;
  border:1px solid #334468;
  background:linear-gradient(168deg,#171f36 0%,#131a2d 45%,#101628 100%);
  box-shadow:0 6px 18px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.05);
}
.jpkr-kw-section.pan-hot-kw-brand h2{
  margin:0 0 12px;
  font-size:17px;
  font-weight:700;
  color:#f0f4ff;
  letter-spacing:.02em;
}
.jpkr-kw-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:0;
  background:transparent;
  border:0;
  border-radius:0;
}
.jpkr-kw-cell{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding:10px 8px 10px 4px;
  min-height:42px;
  border:0;
  border-bottom:1px dashed rgba(158,172,207,.38);
}
.jpkr-kw-cell:nth-last-child(-n+4){border-bottom:0}
.jpkr-kw-title{
  flex:1;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#e8eeff;
  font-size:13px;
}
.jpkr-kw-title:hover{color:var(--pri)}
.jpkr-kw-tag{
  flex:0 0 auto;
  font-size:12px;
  color:#8b9cc4;
  white-space:nowrap;
}
html[data-theme="light"] .jpkr-kw-section.pan-hot-kw-brand{
  background:linear-gradient(180deg,#fbfcff,#f3f6fb);
  border-color:#c5d0e3;
  box-shadow:0 4px 14px rgba(20,40,80,.08);
}
html[data-theme="light"] .jpkr-kw-section.pan-hot-kw-brand h2{color:#1a2333}
html[data-theme="light"] .jpkr-kw-title{color:#243044}
html[data-theme="light"] .jpkr-kw-tag{color:#6b7a90}
html[data-theme="light"] .jpkr-kw-cell{border-bottom-color:rgba(100,118,150,.35)}
@media (max-width:900px){
  .jpkr-kw-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .jpkr-kw-cell:nth-last-child(-n+4){border-bottom:1px dashed rgba(158,172,207,.38)}
  .jpkr-kw-cell:nth-last-child(-n+2){border-bottom:0}
  html[data-theme="light"] .jpkr-kw-cell:nth-last-child(-n+4){border-bottom-color:rgba(100,118,150,.35)}
}
