@charset "UTF-8";
/* ============================================================================
   _base / style.css —— 公共骨架样式（类名契约 + 中性默认外观）

   五套主题都遵循这里的**类名**（.wrap .grid .card .hdr .ftr ...），
   各自只覆盖 CSS 变量与少量结构性规则。所以：
     · 这里改类名 = 五套主题一起坏，不要轻易改；
     · 主题里改变量 = 只影响自己。
   移动优先：基础样式是手机形态，再用 min-width 断点向上增强。
   ========================================================================== */

/* ---------------------------------------------------------------- 变量 */
:root {
  --bg: #f5f7fa;
  --bg-soft: #ffffff;
  --card: #ffffff;
  --fg: #1b1f26;
  --fg-2: #4a5568;
  --muted: #8a94a6;
  --line: #e5e9f0;
  --brand: #2f6df6;
  --brand-fg: #ffffff;
  --brand-soft: rgba(47, 109, 246, .10);
  --accent: #ff6b3d;
  --ok: #16a34a;
  --warn: #d97706;
  --err: #dc2626;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
  --shadow-hover: 0 6px 28px rgba(16, 24, 40, .14);
  --wrap: 1240px;
  --gap: 16px;
  --head-h: 60px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-title: var(--font);
  --transition: .22s cubic-bezier(.4, 0, .2, 1);
}

/* ---------------------------------------------------------------- 基础重置 */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.7 var(--font);
  word-break: break-word;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
/* 缩略图加载占位：img 未加载完（透明）时显示背景占位（浅灰底+影片图标），
   加载完成被图覆盖。所有主题的卡片海报/封面/头像都受益，无需逐个改模板。 */
img[loading="lazy"] {
  background: #eef0f4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Crect width='100' height='100' fill='%23eef0f4'/%3E%3Cpath d='M35 28v44l34-22z' fill='%23cdd5e6'/%3E%3C/svg%3E") center / 28% no-repeat;
  min-height: 40px;
}
a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-title); font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
h1 { font-size: 24px; }
h2 { font-size: 19px; }
h3 { font-size: 16px; }
p { margin: 0 0 10px; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gap); }

/* ---------------------------------------------------------------- 面包屑 */
.breadcrumb { font-size: 13px; color: var(--fg-dim, #888); padding: 10px 0 0; }
.breadcrumb .crumb-in { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.breadcrumb a { color: var(--fg-dim, #888); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); text-decoration: underline; }
.breadcrumb .crumb-sep { opacity: .5; user-select: none; }
.breadcrumb .crumb-cur { color: var(--fg, #222); font-weight: 600; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  padding: 10px 16px; background: var(--brand); color: var(--brand-fg);
}
.skip:focus { left: 8px; top: 8px; }

/* ---------------------------------------------------------------- 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: var(--bg-soft); color: var(--fg); font-size: 14px; font-weight: 600;
  transition: all var(--transition); white-space: nowrap;
}
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn-main { background: var(--brand); border-color: var(--brand); color: var(--brand-fg); }
.btn-main:hover { filter: brightness(1.08); color: var(--brand-fg); }
.btn-ghost { background: transparent; }

/* ---------------------------------------------------------------- 头部 */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: var(--bg-soft); border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(12px);
}
.hdr-in {
  display: flex; align-items: center; gap: 12px;
  min-height: var(--head-h);
}
.brand { display: inline-flex; align-items: center; gap: 9px; flex: none; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 4px 12px var(--brand-soft);
}
.brand-text { font-weight: 800; font-size: 17px; letter-spacing: -.02em; white-space: nowrap; }

.nav-toggle { display: none; }
.nav {
  order: 4; flex: 1 1 100%;
  display: flex; flex-direction: row; flex-wrap: nowrap; gap: 4px;
  padding: 10px 0 14px; border-top: 1px solid var(--line);
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  flex: none; white-space: nowrap; padding: 8px 14px;
  font-size: 15px; color: var(--fg-2); border-radius: var(--radius-pill);
}
.nav a.on { color: var(--brand); font-weight: 700; background: var(--brand-soft); }

/* 紧凑小搜索框：所有断点都固定宽度，不再独占整行 */
.search { order: 5; display: flex; flex: 0 1 200px; gap: 8px; margin-left: auto; padding: 0; }
.search input {
  flex: 1 1 auto; min-width: 0; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: var(--bg); color: var(--fg);
}
.search input::placeholder { color: var(--muted); }
.search button { display: none; }

/* ---------------------------------------------------------------- 首屏 */
.hero {
  padding: 30px 0 26px;
  background: linear-gradient(160deg, var(--brand-soft), transparent 70%);
  border-bottom: 1px solid var(--line);
}
.hero-title { font-size: 26px; margin-bottom: 8px; }
.hero-sub { color: var(--fg-2); max-width: 640px; margin-bottom: 12px; }
.hero-stat { color: var(--muted); font-size: 14px; }
.hero-stat strong { color: var(--brand); font-size: 17px; }

/* ---------------------------------------------------------------- 区块 */
.block { padding: 22px 0; }
.block-top { padding-top: 16px; }
.block-hd {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.block-hd h1, .block-hd h2 { position: relative; padding-left: 11px; }
.block-hd h1::before, .block-hd h2::before {
  content: ""; position: absolute; left: 0; top: .18em; bottom: .18em;
  width: 4px; border-radius: 2px; background: var(--brand);
}
.block-hd .count { color: var(--muted); font-size: 13px; margin-left: auto; }
.more { margin-left: auto; font-size: 13px; color: var(--muted); }
.block-empty {
  margin: 0; padding: 26px 0; text-align: center;
  color: var(--muted); font-size: 14px;
  background: var(--bg-soft, rgba(127,127,127,.06));
  border-radius: 10px;
}
.block-empty a { color: var(--brand); }
.more:hover { color: var(--brand); }

/* ---------------------------------------------------------------- 网格与卡片 */
.grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
}
.card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: all var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: transparent; }
.card-link { display: block; }
.card-pic {
  position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.card-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-pic img { transform: scale(1.045); }
.card-noimg {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  font-size: 22px; font-weight: 700; color: var(--muted);
  background: repeating-linear-gradient(45deg, var(--bg), var(--bg) 8px, var(--card) 8px, var(--card) 16px);
}
.card-badge, .card-score {
  position: absolute; padding: 2px 7px; border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 700; line-height: 1.6; color: #fff;
}
.card-badge { left: 6px; top: 6px; background: rgba(0, 0, 0, .62); backdrop-filter: blur(4px); }
.card-score { right: 6px; bottom: 6px; background: var(--accent); }
.card-name {
  padding: 8px 9px 0; font-size: 13.5px; font-weight: 600; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta {
  padding: 3px 9px 9px; margin: 0; font-size: 11.5px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-meta .dot { margin: 0 3px; opacity: .55; }

/* ---------------------------------------------------------------- 分类宫格 */
.catgrid { display: grid; gap: 9px; grid-template-columns: repeat(auto-fill, minmax(102px, 1fr)); }
.catgrid a {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  padding: 12px 13px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-size: 14px; transition: all var(--transition);
}
.catgrid a:hover { background: var(--brand); border-color: var(--brand); color: var(--brand-fg); }
.cat-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-ico { font-size: 15px; opacity: .85; }

/* ---------------------------------------------------------------- 榜单 */
.ranks { display: grid; gap: 7px; }
.rank {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.rank-no {
  flex: none; width: 23px; height: 23px; display: grid; place-items: center;
  border-radius: 6px; background: var(--bg); color: var(--muted);
  font-size: 12px; font-weight: 700;
}
.rank:nth-child(1) .rank-no { background: var(--accent); color: #fff; }
.rank:nth-child(2) .rank-no { background: var(--brand); color: #fff; }
.rank:nth-child(3) .rank-no { background: var(--warn); color: #fff; }
.rank-name { flex: 1 1 auto; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-type { flex: none; font-size: 12px; color: var(--muted); }
.rank-hits { flex: none; font-size: 12px; color: var(--brand); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- 专题 */
.topics { display: grid; gap: 11px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.topic {
  display: flex; flex-direction: column; gap: 5px; padding: 15px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: all var(--transition);
}
.topic:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.topic-pic { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-sm); }
.topic-pic img { width: 100%; height: 100%; object-fit: cover; }
.topic-name { font-weight: 700; font-size: 15px; }
.topic-sum { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.topic-desc { color: var(--fg-2); max-width: 780px; }
.topic-desc br + br { display: block; content: ''; margin-top: 6px; }
.topic-desc p { margin: 0 0 8px; }

/* ---------------------------------------------------------------- 资讯 */
.artlist { display: grid; gap: 6px; }
.artlist li { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.artlist li a { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.art-time { flex: none; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.artcards { display: grid; gap: 11px; grid-template-columns: 1fr; }
.artcard a { display: flex; flex-direction: column; gap: 5px; padding: 15px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); transition: all var(--transition); }
.artcard a:hover { border-color: var(--brand); }
.artcard-name { font-weight: 700; font-size: 15px; }
.artcard-sum { font-size: 13px; color: var(--fg-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.artcard-time { font-size: 12px; color: var(--muted); }

/* 极窄屏：三列放不下时退回两列，防止换行错位 */
@media (max-width: 379px) {
  .ftr-in { grid-template-columns: repeat(2, 1fr); }
  .ftr-in .ftr-col:first-child { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------- 面包屑 / 筛选 */
.crumb { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.crumb a { color: var(--fg-2); }
.crumb .sep { opacity: .5; }

.filters { display: grid; gap: 9px; }
.filter-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.filter-label { flex: none; font-size: 13px; color: var(--muted); width: 40px; }
.chip {
  display: inline-block; padding: 5px 13px; border: 1px solid var(--line);
  border-radius: var(--radius-pill); background: var(--bg-soft);
  font-size: 13px; color: var(--fg-2); transition: all var(--transition);
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.on { background: var(--brand); border-color: var(--brand); color: var(--brand-fg); font-weight: 600; }

.bigsearch { display: flex; gap: 9px; max-width: 560px; margin: 12px 0; }
.bigsearch input {
  flex: 1 1 auto; min-width: 0; padding: 11px 17px;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: var(--bg-soft); color: var(--fg);
}
.bigsearch button { flex: none; padding: 11px 24px; border: 0; border-radius: var(--radius-pill); background: var(--brand); color: var(--brand-fg); font-weight: 600; }

/* ---------------------------------------------------------------- 分页 */
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 22px 0 6px; flex-wrap: wrap; }
.pg { padding: 9px 20px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--bg-soft); font-size: 14px; }
.pg:hover { border-color: var(--brand); color: var(--brand); }
.pg-now { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- 详情页 */
.detail-hd { display: grid; gap: 18px; margin-bottom: 22px; grid-template-columns: 1fr; }
.detail-pic {
  width: 158px; aspect-ratio: 2 / 3; border-radius: var(--radius);
  overflow: hidden; background: var(--bg); border: 1px solid var(--line); justify-self: center;
}
.detail-pic img { width: 100%; height: 100%; object-fit: cover; }
.detail-noimg { display: grid; place-items: center; height: 100%; font-size: 30px; font-weight: 700; color: var(--muted); }
.detail-name { font-size: 23px; margin-bottom: 6px; }
.detail-sub { color: var(--muted); font-size: 14px; }
.facts { display: grid; gap: 7px; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); margin: 13px 0; }
.facts li { display: flex; gap: 6px; font-size: 13.5px; }
.facts li span { flex: none; color: var(--muted); }
.facts li strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.facts .score { color: var(--accent); font-size: 15px; }
.line { font-size: 13.5px; color: var(--fg-2); margin-bottom: 6px; }
.line .k { display: inline-block; min-width: 40px; color: var(--muted); }
.detail-acts { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 15px; }
.detail-acts .hint { font-size: 12.5px; color: var(--muted); }
.detail-acts .hint a { text-decoration: underline; }

.prose { margin: 20px 0; }
.prose h2 { margin-bottom: 9px; }
.prose-body { color: var(--fg-2); font-size: 14.5px; line-height: 1.9; }
.prose-body img { border-radius: var(--radius-sm); margin: 8px 0; }
.prose-body h2, .prose-body h3 { color: var(--fg); margin: 16px 0 8px; }
.prose-body a { color: var(--brand); text-decoration: underline; }
.prose-body blockquote { margin: 12px 0; padding: 10px 15px; border-left: 3px solid var(--brand); background: var(--brand-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
/* AI 正文配图：<figure> 里 <a> 包 <img>，点图直达该影片详情页；figcaption 是图注 */
.prose-body .ai-figure { margin: 18px 0; text-align: center; }
.prose-body .ai-figure-link { display: block; text-decoration: none; }
.prose-body .ai-figure img {
  width: 100%; max-width: 520px; height: auto; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--radius-sm); background: var(--bg-soft);
}
.prose-body .ai-figure-link:hover img { opacity: .92; }
.prose-body .ai-figure figcaption {
  margin-top: 6px; font-size: 12.5px; line-height: 1.7; color: var(--muted);
}
/* SEO 描述：与剧情简介同区展示，左侧色条 + 浅底做区分；为空时模板不渲染这一块 */
.vod-seo-desc { margin-top: 12px; padding: 10px 14px; border-left: 3px solid var(--brand); background: var(--brand-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.ai-note { margin-top: 8px; font-size: 12px; color: var(--muted); }

.eps { margin: 20px 0; }
.eps h2 { margin-bottom: 11px; }
.eps-group { margin-bottom: 15px; }
.eps-line { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; font-size: 14px; color: var(--fg-2); }
.eps-line .tag { padding: 1px 7px; border-radius: var(--radius-pill); background: var(--brand-soft); color: var(--brand); font-size: 11px; font-weight: 700; }
.eps-list { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
.eps-list a {
  display: block; padding: 8px 6px; text-align: center; font-size: 13px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: all var(--transition);
}
.eps-list a:hover { border-color: var(--brand); }
.eps-list a.on { background: var(--brand); border-color: var(--brand); color: var(--brand-fg); font-weight: 700; }

/* ---------------------------------------------------------------- 播放页 */
.play-block { padding-top: 16px; }
.play-title { font-size: 19px; margin-bottom: 12px; }
.play-ep { margin-left: 8px; font-size: 14px; font-weight: 500; color: var(--muted); }
.player-box {
  position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000;
  border-radius: var(--radius); overflow: hidden;
}
.player-video { width: 100%; height: 100%; display: block; background: #000; }
.player-fallback { display: none; padding: 20px; color: #e8ecf3; text-align: center; }
.player-box.no-player video, .player-box.no-player .player-fallback-acts { display: none; }
.player-box.no-player { aspect-ratio: auto; }
.player-box.no-player .player-fallback { display: block; }
.player-fallback-acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 12px 0; }
.player-fallback .btn { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); color: #fff; }
.player-hint { font-size: 12px; opacity: .6; }
/* 详情页内嵌播放器：无片源时的占位态 */
.detail-play { padding-top: 4px; }
.player-empty {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 20px; text-align: center;
  color: #aab3c0; font-size: 14px;
  background: radial-gradient(ellipse at center, #1a1e26 0%, #000 100%);
}
.player-empty-title { font-size: 17px; color: #e8ecf3; margin: 0; }
.player-empty p { margin: 0; }
.play-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 11px 0 0; font-size: 13px; color: var(--muted);
}
.play-meta .spacer { flex: 1 1 auto; }
.play-meta .score { color: var(--accent); font-size: 15px; }

/* ---------------------------------------------------------------- 评论 */
.comments { margin: 24px 0; }
.comments h2 { margin-bottom: 13px; }
/* 评论：头像 + 主体两列。头像由 AI 补评论时本地生成（/upload/avatar/*.svg），
   没有头像的老评论/游客评论走 /assets/avatar-default.svg 兜底。 */
.cmt { display: flex; gap: 10px; align-items: flex-start; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.cmt-avatar { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #eef1f6; }
.cmt-main { flex: 1 1 auto; min-width: 0; }
.cmt-nick { font-weight: 700; font-size: 13.5px; }
.cmt-time { margin-left: 9px; font-size: 12px; color: var(--muted); }
.cmt-body { margin: 5px 0 0; font-size: 14px; color: var(--fg-2); white-space: pre-wrap; }
.cmt-form { margin-top: 18px; }
.cmt-form .row { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 9px; }
.cmt-form input, .cmt-form textarea {
  width: 100%; padding: 10px 14px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--bg-soft); color: var(--fg); resize: vertical;
}
.cmt-form .row input { flex: 1 1 180px; width: auto; }
.cmt-form button { margin-top: 10px; }
.cmt-tip { margin-top: 9px; font-size: 13px; color: var(--muted); }
.cmt-tip.ok { color: var(--ok); }
.cmt-tip.err { color: var(--err); }

/* ---------------------------------------------------------------- 站点地图 */
.map-lead { color: var(--muted); font-size: 13.5px; }
.map-lead a { color: var(--brand); }
.mapcats, .mapvods { display: grid; gap: 7px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.mapcats li, .mapvods li {
  display: flex; align-items: baseline; gap: 8px; padding: 8px 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden;
}
.mapcats li a, .mapvods li a { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.map-time { flex: none; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- 文章详情 */
.artdetail-hd { margin-bottom: 16px; }
.artdetail-hd h1 { font-size: 25px; margin-bottom: 8px; }
.artdetail-meta { color: var(--muted); font-size: 13px; }
.artdetail-meta .dot { margin: 0 6px; opacity: .5; }
.artdetail-pic { margin: 0 0 18px; }
.artdetail-pic img { width: 100%; border-radius: var(--radius); }
.artdetail-sum {
  margin: 0 0 18px; padding: 13px 16px; font-size: 14px; color: var(--fg-2);
  background: var(--brand-soft); border-left: 3px solid var(--brand); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.artdetail-body { font-size: 15.5px; line-height: 2; }
.artdetail-acts { margin: 26px 0 10px; }

/* ---------------------------------------------------------------- 404 */
.errpage { padding: 56px 0 70px; text-align: center; }
.errpage-code { font-size: 66px; font-weight: 800; line-height: 1; margin: 0; color: var(--brand); opacity: .22; }
.errpage h1 { font-size: 21px; margin: 6px 0 10px; }
.errpage-desc { color: var(--muted); max-width: 460px; margin: 0 auto 20px; }
.errpage-acts { display: flex; gap: 11px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.errpage .bigsearch { margin: 0 auto; }

/* ---------------------------------------------------------------- 页脚 */
.ftr { margin-top: 34px; padding-top: 26px; background: var(--bg-soft); border-top: 1px solid var(--line); }
.ftr-in { display: grid; gap: 20px; grid-template-columns: 1fr; padding-bottom: 22px; }
.ftr-brand { font-weight: 800; font-size: 16px; margin-bottom: 6px; }
.ftr-desc { font-size: 13px; color: var(--muted); }
.ftr-title { font-size: 13.5px; font-weight: 700; margin-bottom: 9px; }
.ftr-col ul { display: grid; gap: 6px; }
.ftr-col a { font-size: 13px; color: var(--fg-2); }
/* taglist 需压过上面的 .ftr-col ul（grid 竖排），故用更高优先级选择器。
   横向铺开（row 流）：每行 3-5 个标签（列宽 ≥58px 自动适配栏宽），固定 4 行封顶，
   不再按列竖着摞。 */
.ftr-col ul.taglist {
  display: grid; grid-auto-flow: row;
  grid-template-rows: repeat(4, auto);
  grid-template-columns: repeat(auto-fill, minmax(58px, max-content));
  gap: 6px 10px; align-content: start; justify-content: start;
}
.taglist a { padding: 3px 10px; background: var(--bg); border-radius: var(--radius-pill); font-size: 12.5px; }
.ftr-bottom { padding: 14px 0 22px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.ftr-bottom .sep { margin: 0 6px; opacity: .5; }
.ftr-note { margin-top: 6px; opacity: .8; }

.empty { padding: 34px 18px; text-align: center; color: var(--muted); font-size: 14px; }
.empty a { color: var(--brand); text-decoration: underline; }

/* ---------------------------------------------------------------- 首页轮播 */
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.home-hero { padding: 14px 0 4px; }
.home-stat {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 12px 0 0; font-size: 13px; color: var(--muted);
}
.home-stat-title { font-weight: 700; color: var(--fg-2); }
.home-stat strong { color: var(--brand); font-size: 15px; }
.home-stat .dot { opacity: .5; }
.home-stat a { color: var(--muted); }
.home-stat a:hover { color: var(--brand); }

.slider { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.slider-view { position: relative; aspect-ratio: 16 / 7; background: var(--bg); }
.slide {
  position: absolute; inset: 0; display: flex; align-items: flex-end;
  opacity: 0; visibility: hidden; transition: opacity .55s ease, visibility .55s;
}
.slide.on { opacity: 1; visibility: visible; }
.slide-media { position: absolute; inset: 0; background: #10131c; }
/* 大图轮播（见 _slider.tpl）：海报按容器尺寸 object-fit: cover 自动居中截取铺满，
   object-position 纵向偏上（30%），竖版海报裁切时优先保留片名与人脸。 */
.slide-media .slide-pic {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
}
.slide-fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  overflow: hidden;
  font-size: clamp(20px, 4vw, 34px); font-weight: 800; letter-spacing: .12em;
  color: rgba(255, 255, 255, .85);
  background: linear-gradient(125deg, var(--brand) 0%, var(--accent) 100%);
}
.slide-fallback::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(90% 70% at 80% 10%, rgba(255,255,255,.22), transparent 60%);
}
/* 占位广告位：斜纹 + 品牌渐变 + 右下角"广告"角标（纯 CSS，无外链） */
.slide-ad-bg {
  font-size: 0;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 16px, transparent 16px 32px),
    linear-gradient(125deg, #1d2540 0%, var(--brand) 70%, var(--accent) 130%);
}
.slide-ad-mark {
  position: absolute; right: 14px; bottom: 12px; z-index: 2;
  padding: 3px 10px; border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, .38); color: rgba(255, 255, 255, .82);
  font-size: 11px; font-weight: 700; letter-spacing: .18em; text-indent: .18em;
}
/* 文字衬托：黑渐变（底部 80% 不透明 → 顶部降到 30%），
   高度按屏幕自适应：桌面 190px，移动端 172px——文字恒定可读，上方图片保持清晰 */
.slide::before {
  content: ""; position: absolute; inset: auto 0 0 0; z-index: 1;
  height: min(160px, 50%); pointer-events: none;
  background: linear-gradient(0deg, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, .1) 100%);
}
@media (max-width: 819.98px) {
  .slide::before { height: min(172px, 55%); }
}
.slide-cap {
  position: relative; z-index: 2; width: 100%; max-width: 640px; padding: 14px 16px 30px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .65), 0 2px 14px rgba(0, 0, 0, .5);
}
.slide-tag, .slide-title, .slide-desc, .slide-meta { color: #fff; }
.slide-tag { font-size: 11.5px; opacity: .92; margin-bottom: 3px; }
.slide-title {
  font-size: clamp(17px, 4.6vw, 24px); margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* 移动端 16:7 画面放不下两行简介，会撑爆遮罩层造成文字与画面错位，窄屏先隐藏 */
.slide-desc {
  display: none;
  font-size: 13px; line-height: 1.65; opacity: .88;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.slide-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 6px 0 0; font-size: 12px; opacity: .95; }
.slide-meta .dot { opacity: .5; }
.slide-cta {
  padding: 4px 13px; border-radius: var(--radius-pill); margin-left: 6px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 12.5px;
}
.slide:hover .slide-cta { filter: brightness(1.1); }
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgba(10, 14, 24, .42); color: #fff; font-size: 20px; line-height: 1;
  backdrop-filter: blur(6px); transition: background var(--transition);
}
.slider-btn:hover { background: rgba(10, 14, 24, .68); }
.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }
.slider-dots {
  position: absolute; left: 0; right: 0; bottom: 10px; z-index: 3;
  display: flex; justify-content: center; gap: 7px;
}
.slider-dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .45); transition: all var(--transition);
}
.slider-dot.on { background: #fff; width: 20px; border-radius: var(--radius-pill); }

/* ---------------------------------------------------------------- 首页双列（最近更新 + 热门榜） */
.home-duo { display: grid; gap: 18px; }
.home-duo-side .block-hd { margin-bottom: 10px; }
.home-duo-side .ranks { gap: 8px; }
.rank-hot { background: var(--accent) !important; color: #fff !important; }
.rank-hits { margin-left: auto; flex: none; font-size: 12px; color: var(--muted); }
.rank-type {
  flex: none; max-width: 7em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 11.5px; color: var(--muted);
}

/* ================================================================ 断点 */
@media (min-width: 640px) {
  .grid { gap: 14px; grid-template-columns: repeat(auto-fill, minmax(152px, 1fr)); }
  .card-name { font-size: 14px; padding: 10px 11px 0; }
  .card-meta { padding: 4px 11px 11px; font-size: 12px; }
  /* ≥640px 画面够高，恢复轮播简介与常规字号 */
  .slide-cap { padding: 18px 20px 24px; }
  .slide-tag { font-size: 12px; margin-bottom: 4px; }
  .slide-title { font-size: clamp(18px, 3vw, 27px); margin-bottom: 5px; }
  .slide-desc { display: -webkit-box; }
  .slide-meta { gap: 7px; margin: 8px 0 0; font-size: 12.5px; }
  .topics { gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .artcards { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  .ftr-in { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .ftr-in .ftr-col:first-child { grid-column: auto; }
  .detail-hd { grid-template-columns: 210px 1fr; align-items: start; gap: 24px; }
  .detail-pic { width: 100%; justify-self: start; }
  .detail-name { font-size: 27px; }
  h1 { font-size: 26px; }
  h2 { font-size: 20px; }
  .play-title { font-size: 22px; }
  .artdetail-hd h1 { font-size: 28px; }
}

@media (min-width: 900px) {
  :root { --gap: 20px; }
  h1 { font-size: 28px; }
  .hero { padding: 44px 0 38px; }
  .hero-title { font-size: 34px; }
  .block { padding: 28px 0; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(166px, 1fr)); gap: 16px; }
  .ftr-in { grid-template-columns: 1.6fr 1fr 1fr; align-items: start; }
  /* 品牌栏不再通栏：三栏一行排布，避免第二行右侧空一格的错位 */
  .ftr-in .ftr-col:first-child { grid-column: auto; }
  .home-hero { padding: 20px 0 6px; }
  .slider-view { aspect-ratio: 16 / 6; }
  .slider-btn { width: 42px; height: 42px; font-size: 22px; }
  .slide-cap {
    padding: 26px 30px 30px;
  }
  .home-duo { grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; }

  /* 桌面端：导航横排 */
  .hdr-in { gap: 20px; }
  .nav {
    order: 2; flex: 1 1 auto; display: flex; flex-direction: row;
    gap: 4px; padding: 0; border: 0; align-items: center;
  }
  .nav a { padding: 6px 11px; font-size: 14px; border-radius: var(--radius-pill); }
  .nav a:hover { background: var(--brand-soft); }
  .nav a.on { background: var(--brand-soft); }
  .search { order: 3; flex: 0 0 230px; margin-left: auto; }
  .search input { padding: 8px 15px; }
  .search button {
    display: inline-flex; flex: none; align-items: center;
    padding: 8px 16px; border: 0; border-radius: var(--radius-pill);
    background: var(--brand); color: var(--brand-fg); font-weight: 600;
  }
  .block-top { padding-top: 22px; }
}

@media (min-width: 1200px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); }
}

/* 打印：去掉装饰，保留正文 */
@media print {
  .hdr, .ftr, .pager, .search, .nav-toggle, .cmt-form, .player-box { display: none !important; }
  body { background: #fff; }
}

/* 尊重系统的"减少动态效果"设置 */
/* ---------- 移动端 App 式底部导航（桌面端隐藏） ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; background: var(--bg);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);            /* iOS 刘海屏安全区 */
}
.tabbar a {
  flex: 1 1 0; display: flex; flex-direction: column; align-items: center;
  gap: 2px; padding: 7px 0 5px; text-decoration: none;
  color: var(--fg-2); font-size: 11px;
}
.tabbar a svg { display: block; width: 20px; height: 20px; flex: none; fill: currentColor; opacity: .8; }
.tabbar a.on { color: var(--brand); }
.tabbar a.on svg { opacity: 1; }
body { padding-bottom: 56px; }                             /* 避免内容被 tabbar 挡住 */

@media (min-width: 900px) {
  .tabbar { display: none; }
  body { padding-bottom: 0; }
}

@media print {
  .tabbar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------ 页脚 v3（三栏横排）
   ① 左：站点简介（品牌名 + 介绍，靠左）
   ② 中：站内导航 —— 标题与站点名同字号加粗，链接单行居中
   ③ 右：热门标签 —— 胶囊横向流，大屏整栏靠右 */
.ftr-title { font-size: 16px; font-weight: 800; margin-bottom: 10px; }
.ftr-nav { text-align: center; }
.ftr-navlinks {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 4px 10px; margin: 0;
}
.ftr-navlinks a { font-size: 13px; color: var(--fg-2); }
.ftr-navlinks a:hover { color: var(--brand); }
.ftr-navlinks .sep { opacity: .45; }
.ftr-col ul.taglist, .ftr-tags .taglist {
  display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 6px;
}
@media (min-width: 900px) {
  .ftr-in { grid-template-columns: minmax(240px, 1.35fr) auto minmax(230px, 1fr); align-items: start; }
  .ftr-in .ftr-col:first-child { grid-column: auto; }
  .ftr-tags { justify-self: end; text-align: right; }
  .ftr-tags .taglist { justify-content: flex-end; }
  /* PC：站内导航与热门标签顶部齐平（两块都从同一行顶部开始，不被主题的上间距顶偏） */
  footer.ftr .ftr-in .ftr-nav,
  footer.ftr .ftr-in .ftr-tags { align-self: start; margin-top: 0; }
}

/* ------------------------------------------------------------ 页脚 v3.3（移动端：左右两块 —— 左块「简介 + 站内导航」/ 右块「热门标签」+ 字号随屏自适应）
   窄屏塞不下三列，改为左右两块（不是上下三段）：
   ① 左块：站点简介（上，整段靠左）+ 站内导航（下，贴左下角）
   ② 右块：热门标签（整体靠右成块，块内「热门标签」标题与胶囊一律靠左，标题与站点名顶部齐平）
   ③ 底部版权行（© 年份 站点名 + 说明）居中
   所有文字一律左对齐，只有最底部的版权行居中。
   （_base/style.css 被所有主题共同引用，写在这里 = 12 套主题同时生效；
     选择器刻意带上元素名 footer.ftr 提高优先级，压过各主题自己的窄屏规则。） */
@media (max-width: 899px) {
  /* 容器：左右两列 —— 左列放简介+导航，右列放标签（右列整体靠右） */
  footer.ftr .ftr-in, footer.dk-footer .dk-footer-in {
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 14px 16px; align-items: start;
  }
  /* ① 左块上：站点简介（左上角，整段靠左） */
  footer.ftr .ftr-in .ftr-col:first-child,
  footer.dk-footer .dk-footer-in .dk-footer-brand {
    grid-column: 1; grid-row: 1; justify-self: start; text-align: left; margin-bottom: 0;
  }
  /* ② 左块下：站内导航（左下角） */
  footer.ftr .ftr-in .ftr-nav,
  footer.dk-footer .dk-footer-in .dk-footer-nav {
    grid-column: 1; grid-row: 2; align-self: end; justify-self: start; text-align: left;
  }
  footer.ftr .ftr-in .ftr-nav .ftr-navlinks,
  footer.dk-footer .dk-footer-in .dk-footer-nav .dk-footer-navlinks { justify-content: flex-start; }
  /* ③ 右块：热门标签（整体靠右；块内文字与胶囊靠左，标题与站点名顶部齐平） */
  footer.ftr .ftr-in .ftr-tags,
  footer.dk-footer .dk-footer-in .dk-footer-tagscol {
    grid-column: 2; grid-row: 1 / span 2; justify-self: end; text-align: left;
  }
  footer.ftr .ftr-in .ftr-tags .taglist,
  footer.dk-footer .dk-footer-in .dk-footer-tags { justify-content: flex-start; }
  /* 移动端：热门标签标题与站点名称顶部齐平 —— 清掉主题给标签块加的上间距
     （如 default 的 .ftr-default .ftr-tags{margin-top:14px}），否则标签整块比站点名低一截 */
  footer.ftr .ftr-in .ftr-tags,
  footer.dk-footer .dk-footer-in .dk-footer-tagscol { align-self: start; margin-top: 0; }
  /* ④ 底部版权行 + 说明：居中 */
  footer.ftr .ftr-bottom, footer.ftr .ftr-bottom p, footer.ftr .ftr-note,
  footer.dk-footer .dk-footer-bar, footer.dk-footer .dk-footer-bar p, footer.dk-footer .dk-footer-note {
    text-align: center; justify-content: center;
  }

  /* 字号自适应：12px（320px 屏）→ 13.5px（≥400px 屏）平滑过渡 */
  footer.ftr .ftr-brand, footer.dk-footer .dk-footer-name { font-size: clamp(15px, 4.6vw, 19px); }
  footer.ftr .ftr-title, footer.dk-footer .dk-footer-cap {
    font-size: clamp(13.5px, 3.9vw, 16px); margin-bottom: 8px;
  }
  footer.ftr .ftr-desc, footer.ftr .ftr-note, footer.ftr .ftr-bottom p,
  footer.dk-footer .dk-footer-desc, footer.dk-footer .dk-footer-bar p, footer.dk-footer .dk-footer-note {
    font-size: clamp(12px, 3.4vw, 13.5px); line-height: 1.75;
  }
  footer.ftr .ftr-navlinks a, footer.ftr .ftr-in .ftr-tags .taglist a,
  footer.dk-footer .dk-footer-navlinks a, footer.dk-footer .dk-footer-tags a {
    font-size: clamp(12px, 3.3vw, 13.5px);
  }
}

/* 640px 以下（手机竖屏）沿用「左简介+导航 / 右标签」两块，只收紧间距与胶囊间隙 */
@media (max-width: 639px) {
  footer.ftr .ftr-in, footer.dk-footer .dk-footer-in {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 12px 12px;
  }
  footer.ftr .ftr-in .ftr-tags .taglist, footer.dk-footer .dk-footer-tags { gap: 5px; }
}

/* ===== 筛选条数量徽章：数字独立小色块，跟在年份/地区名后面（全主题统一）。
   .fcount（chip 类主题）/ .sx_count（conch 兼容）；conch 的 compat.css 后加载可再覆盖 ===== */
.fcount, .sx_count, .chip em, .filter-row .chip em, .filter-row a.chip .chip_count,
.screen_list a em, .list_nav a em {
  display: inline-block !important;
  min-width: 17px !important;
  padding: 1px 5px !important;
  margin-left: 6px !important;
  border-radius: 999px !important;
  background: rgba(0, 0, 0, .35) !important;
  color: #fff !important;
  font-style: normal !important;
  font-size: 10.5px !important;
  line-height: 15px !important;
  font-weight: 600 !important;
  text-align: center !important;
  vertical-align: 1px !important;
  opacity: 1 !important;
}
/* 选中态（亮底胶囊，如金色 on）上用更深的块保证对比 */
.chip.on .fcount, .chip.on em, .chip.on .sx_count { background: rgba(0, 0, 0, .45) !important; }
