/* ============ video-cms 前台样式 · 暗色影院主题 ============ */
:root {
  --bg: #0f1116;
  --surface: #1a1d24;
  --surface-2: #222633;
  --text: #e8e8e8;
  --muted: #9aa0aa;
  --accent: #e50914;
  --accent-2: #ff2b3a;
  --border: #262a33;
  --radius: 8px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
/* PC 全屏布局：内容铺满视口宽度，两侧留边距 */
.container { width: 100%; margin: 0 auto; padding: 0 32px; }

/* ---- Header ---- */
.site-header {
  background: #14161c;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 60px; position: relative; }
/* 站点名（h1 或 div，内含首页链接）：重置默认外边距/字号，保持原视觉 */
.logo { font-size: 22px; font-weight: 700; color: var(--accent); white-space: nowrap; margin: 0; line-height: 1.2; }
.logo a { color: inherit; }
.main-nav { display: flex; gap: 20px; flex: 1; overflow-x: auto; }
.main-nav a { font-size: 15px; color: var(--muted); white-space: nowrap; padding: 4px 0; transition: color .15s; }
.main-nav a:hover { color: var(--accent); }
.main-nav a.active { color: var(--accent); font-weight: 600; }
/* 搜索：🔍 图标常驻，点击后输入框在 header 下方整条滑出 */
.search-box { display: inline-flex; align-items: center; flex: none; }
.search-box input {
  position: absolute; left: 0; right: 0; top: 100%;
  width: 100%; height: 0; padding: 0 16px; opacity: 0; overflow: hidden; pointer-events: none;
  border: none; border-top: 1px solid var(--border); border-radius: 0;
  background: var(--surface); color: var(--text); outline: none; font-size: 15px;
  transition: height .18s ease, opacity .15s;
}
.search-box.open input { height: 46px; opacity: 1; pointer-events: auto; }
.search-box input::placeholder { color: #6b7280; }
.search-btn {
  flex: none; width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; background: none; color: var(--muted); cursor: pointer;
  transition: color .15s, transform .15s;
}
.search-btn:hover { color: var(--accent); transform: translateY(-1px); }
.search-box.open .search-btn { color: var(--accent); }
.search-btn svg { display: block; width: 24px; height: 24px; }
/* 顶部 Telegram 图标：靠最右，跟随主题色，hover 变强调色 */
.tg-link {
  display: inline-flex; align-items: center; justify-content: center;
  flex: none; width: 36px; height: 36px; color: var(--muted);
  transition: color .15s, transform .15s;
}
.tg-link:hover { color: var(--accent); transform: translateY(-1px); }
.tg-link svg { display: block; width: 22px; height: 22px; }
/* APP 下载按钮（顶部图标，点击随机跳 player_download 广告） */
.app-dl-btn { flex: none; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: none; background: none; color: var(--muted); cursor: pointer; transition: color .15s, transform .15s; }
.app-dl-btn:hover { color: var(--accent); transform: translateY(-1px); }
.app-dl-btn svg { display: block; width: 24px; height: 24px; }
/* 汉堡菜单按钮：默认隐藏，仅手机端显示（见媒体查询） */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 36px; height: 36px; padding: 7px; background: none; border: none; cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .2s; }
/* 展开时三横线变 X */
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* 抽屉遮罩：默认隐藏，划出导航时显示（始于 header 下方，保留顶部可点击关闭） */
/* z-index 必须低于 .site-header 的 100：header(sticky) 自成层叠上下文，
   抽屉 .main-nav 被困在该上下文里（实际等级=header 的 100）。遮罩若 >100
   会盖住抽屉，导致点菜单只命中遮罩、收起弹窗而不跳转。故设为 90。 */
.nav-overlay { display: none; position: fixed; top: 60px; left: 0; right: 0; bottom: 0; z-index: 90; background: rgba(0,0,0,.55); }
.nav-overlay.show { display: block; }

/* ---- Main ---- */
.main-content { padding: 24px 32px 40px; }
.block { margin-bottom: 34px; }
.block-title {
  font-size: 18px; margin-bottom: 16px; padding-left: 10px;
  border-left: 4px solid var(--accent); display: flex; align-items: center;
}
.block-title .more { margin-left: auto; font-size: 13px; color: var(--muted); font-weight: normal; }
.block-title .more:hover { color: var(--accent); }

/* ---- Hero 轮播 Banner ---- */
/* 全宽轮播：位于 body 下、main 之前，铺满整屏宽度，无圆角 */
.hero { position: relative; margin-bottom: 0; overflow: hidden; background: #000; }
.hero-slide { display: none; position: relative; height: 650px; }
.hero-slide.active { display: block; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-size: cover; background-position: center;
  filter: blur(26px) brightness(.38); transform: scale(1.12);
}
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,17,22,.85), rgba(15,17,22,.35)); }
.hero-inner { position: relative; z-index: 1; height: 100%; display: block; padding: 0; }
/* 影片大图：固定高度（=轮播高度），宽度铺满整个轮播 */
.hero-poster { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: hidden; }
.hero-poster img { width: 100%; height: 100%; object-fit: cover; }
/* 广告 slide：整图铺满，点击跳转 */
.hero-ad .hero-ad-link { display: block; width: 100%; height: 100%; }
.hero-ad .hero-ad-link img { width: 100%; height: 100%; object-fit: fill; display: block; }
/* 文字信息叠加在大图底部，加渐变保证可读 */
.hero-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; color: #fff; padding: 26px 44px 30px;
  background: linear-gradient(to top, rgba(0,0,0,.88), rgba(0,0,0,.45) 55%, transparent); }
.hero-rank-tag { display: inline-block; background: var(--accent); color: #fff; font-size: 12px; padding: 2px 10px; border-radius: 3px; margin-bottom: 12px; }
.hero-title { font-size: 28px; font-weight: 700; margin-bottom: 12px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-meta { color: #c9ccd3; font-size: 13px; margin-bottom: 14px; }
.hero-meta span + span::before { content: "·"; margin: 0 8px; opacity: .6; }
.hero-sub { color: #b6bac2; font-size: 14px; margin-bottom: 20px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-play { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff;
  padding: 10px 24px; border-radius: 24px; font-size: 15px; transition: background .15s; }
.hero-play:hover { background: var(--accent-2); }
.hero-play i { display: inline-block; width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent #fff; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
  width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.4); color: #fff;
  border: none; cursor: pointer; font-size: 20px; line-height: 40px; text-align: center; transition: background .15s;
}
.hero-arrow:hover { background: var(--accent); }
.hero-prev { left: 14px; }
.hero-next { right: 14px; }
.hero-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 6; display: flex; gap: 8px; }
.hero-dots b { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; transition: .15s; }
.hero-dots b.active { background: var(--accent); width: 22px; border-radius: 5px; }

/* ---- Grid & Card（海报卡片）---- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
/* 轮播上方文字广告条：PC 一行 12 个，移动端一行 6 个，只显示广告名称 */
.ad-textbar-wrap { background: var(--surface); border-bottom: 1px solid var(--border); }
.ad-textbar { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; padding: 12px 0; }
.ad-txt { display: block; padding: 8px 8px; background: var(--surface-2); border-radius: 6px; color: var(--text); font-size: 13px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .15s, background .15s; }
.ad-txt:hover { color: var(--accent); background: var(--surface); text-decoration: none; }

/* 首页广告块：PC 一行 4 个，移动端一行 1 个 */
.ad-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
/* 列表网格内插入的广告块：整行铺满（每 8 个卡片后插一组） */
.video-grid > .ad-block { grid-column: 1 / -1; margin: 0; }
/* 播放页广告块（播放区域上/下各一组：文字条 + top_banner 横幅） */
.detail-ads { margin: 16px 0; }
.detail-ads .ad-textbar { padding: 0; margin-bottom: 14px; }
.detail-ads .ad-block { margin: 0; }
.ad-cell { display: block; border-radius: 8px; overflow: hidden; background: var(--surface); line-height: 0; }
.ad-cell img { width: 100%; height: auto; display: block; }
/* 不同广告位的横幅固定高度，图片拉伸铺满(fill) */
.ad-list .ad-cell img { height: 100px; object-fit: fill; }
.ad-top .ad-cell img { height: 60px; object-fit: fill; }

/* ---- 弹窗广告 ---- */
.pop-ad-mask { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.66); padding: 20px; }
.pop-ad-mask.on { display: flex; animation: pop-ad-fade .18s ease; }
@keyframes pop-ad-fade { from { opacity: 0; } to { opacity: 1; } }
.pop-ad-box { position: relative; max-width: 100%; animation: pop-ad-in .2s ease; }
@keyframes pop-ad-in { from { transform: translateY(14px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.pop-ad-close { position: absolute; top: -14px; right: -14px; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: #333; border: none; font-size: 22px; line-height: 36px; text-align: center; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.4); z-index: 3; transition: transform .15s; }
.pop-ad-close:hover { transform: rotate(90deg); }
/* 单图弹窗：固定 350×500，图片铺满 */
.pop-ad-single { width: 350px; height: 500px; max-width: 92vw; max-height: 86vh; }
.pop-ad-single .pop-ad-img { display: block; width: 100%; height: 100%; line-height: 0; border-radius: 12px; overflow: hidden; }
.pop-ad-single img { display: block; width: 100%; height: 100%; object-fit: fill; }
/* 多图标弹窗：固定 350×500，一行 5 个；关闭按钮在盒内、内容纵向滚动、无横向滚动条 */
.pop-ad-icons { width: 350px; height: 500px; max-width: 92vw; max-height: 86vh; background: var(--surface); border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.5); overflow: visible; }
.pop-ad-icons-scroll { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; padding: 18px 14px 16px; border-radius: 14px; }
.pop-ad-icons-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px 8px; }
.pop-ad-icon { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text); font-size: 11px; text-align: center; min-width: 0; }
.pop-ad-icon:hover { text-decoration: none; }
.pop-ad-icon img { width: 100%; aspect-ratio: 1 / 1; object-fit: fill; border-radius: 12px; background: rgba(255,255,255,.06); }
.pop-ad-icon span { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.video-card {
  display: block; background: var(--surface); border-radius: 8px; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.video-card:hover { transform: translateY(-4px); box-shadow: 0 8px 22px rgba(0,0,0,.5); }
.thumb { position: relative; aspect-ratio: 3/4; background: #000; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.video-card:hover .thumb img { transform: scale(1.06); }
.thumb .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; background: rgba(0,0,0,.32); transition: opacity .25s; }
.video-card:hover .thumb .play { opacity: 1; }
.thumb .play i { width: 48px; height: 48px; border-radius: 50%; background: rgba(229,9,20,.92);
  display: flex; align-items: center; justify-content: center; }
.thumb .play i::before { content: ""; width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff; margin-left: 3px; }
.cat-badge { position: absolute; top: 6px; left: 6px; background: rgba(229,9,20,.92); color: #fff; font-size: 11px; padding: 6px 7px; border-radius: 3px; }
.duration {
  position: absolute; right: 6px; bottom: 6px;
  background: rgba(0,0,0,.75); color: #fff; font-size: 12px;
  padding: 1px 6px; border-radius: 3px;
}
.card-body { padding: 8px 10px 10px; }
.card-title {
  font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  height: 39px;
}
.card-meta { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--muted); }
.card-meta .cat { color: var(--accent); }

/* ---- Breadcrumb ---- */
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 8px; opacity: .45; }
.breadcrumb .cur { color: var(--text); }

/* ---- Detail ---- */
.video-detail .detail-title { font-size: 24px; margin-bottom: 16px; }
/* 播放区固定高度 —— PC 与手机统一 650px。
   高度直接落在初始就存在的 .player 容器与 #dplayer 占位元素上，
   在 DPlayer(JS) 初始化前即占满空间，避免渲染时布局抖动(CLS)。 */
.player { background: #000; border-radius: 8px; overflow: hidden; margin-bottom: 16px; height: 650px; position: relative; }
/* 播放器下方 APP 下载按钮（整条 CTA） */
.app-dl-bar { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin: 0 0 16px; padding: 13px 16px; background: var(--accent); color: #fff; border-radius: 8px; font-size: 15px; font-weight: 600; transition: background .15s, transform .15s; }
.app-dl-bar:hover { background: var(--accent-2); color: #fff; text-decoration: none; transform: translateY(-1px); }
.app-dl-bar svg { display: block; }
/* 播放前广告浮层（movie_ad）：铺满播放区域，点关闭后渲染播放器 */
.preroll-ad { position: absolute; inset: 0; z-index: 5; background: #000; }
.preroll-ad-link { display: block; width: 100%; height: 100%; line-height: 0; }
.preroll-ad-link img { width: 100%; height: 100%; object-fit: contain; display: block; }
.preroll-ad-close { position: absolute; top: 12px; right: 12px; z-index: 6; background: rgba(0,0,0,.6); color: #fff; border: 1px solid rgba(255,255,255,.5); border-radius: 5px; padding: 6px 12px; font-size: 13px; cursor: pointer; transition: background .15s; }
.preroll-ad-close:hover { background: rgba(0,0,0,.85); }
#dplayer,
.player .dplayer { width: 100%; height: 650px; }
.player .dplayer-video-wrap { height: 650px; }
.player .dplayer-video-wrap video,
.player .dplayer-video { width: 100%; height: 100%; object-fit: contain; background: #000; }
/* 修复：强制铺满的 video 会盖住底部控制条，导致「播放时」进度条点击/拖动失效（暂停时控制条在上才有效）。
   把视频压到底层、控制条与其遮罩提到视频之上并恢复可点击。 */
.player .dplayer-video-current { z-index: 0; }
.player .dplayer-controller-mask,
.player .dplayer-controller { z-index: 12; }
.player .dplayer-bar-wrap { pointer-events: auto; cursor: pointer; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.detail-meta a { color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tag { background: var(--surface-2); color: #c2c6cf; font-size: 13px; padding: 3px 13px; border-radius: 14px; transition: .15s; }
.tag:hover { background: var(--accent); color: #fff; }

/* ---- 标签云 ---- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; padding: 6px 0 4px; }
.tag-cloud .tag { display: inline-flex; align-items: baseline; gap: 6px; line-height: 1.5; }
.tag-cloud .tc-count { font-size: 11px; color: var(--muted); }
.tag-cloud .tag:hover .tc-count { color: #fff; }
.tag-l1 { font-size: 13px; }
.tag-l2 { font-size: 15px; }
.tag-l3 { font-size: 17px; }
.tag-l4 { font-size: 20px; }
.tag-l5 { font-size: 24px; font-weight: 600; }
.description { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 18px; margin-bottom: 28px; }
.description h2 { font-size: 16px; margin-bottom: 10px; }
.description p { color: #c2c6cf; }

/* ---- Misc ---- */
.search-summary { margin-bottom: 16px; color: var(--muted); }
.search-summary strong { color: var(--accent); }
.empty { padding: 60px 0; text-align: center; color: var(--muted); }

/* ---- Pagination ---- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 28px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 36px; height: 36px; padding: 0 10px; line-height: 36px; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 4px; font-size: 14px; color: var(--text);
}
.pagination a:hover { color: var(--accent); border-color: var(--accent); }
.pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }
.pagination .dots { background: transparent; border: none; }

/* ---- Footer ---- */
.site-footer { background: #14161c; border-top: 1px solid var(--border); color: var(--muted); padding: 30px 0 0; font-size: 13px; margin-top: 10px; }
/* PC 端三列均匀：列1=站点名+描述，列2/3=导航组 */
.site-footer .foot-main { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 48px; padding-bottom: 22px; }
.site-footer .foot-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
/* 列1：品牌（站点名 + 站点描述，各占一行） */
.site-footer .foot-brand-name { color: var(--text); font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.site-footer .foot-desc { line-height: 1.8; opacity: .9; }
/* 导航组：小标题独占一行 + 下方链接横向流式、左对齐、自动换行 */
.site-footer .foot-group h4 { margin: 0 0 8px; color: var(--text); font-size: 14px; font-weight: 600; }
.site-footer .foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer .foot-links a { color: var(--muted); transition: color .15s; }
.site-footer .foot-links a:hover { color: var(--accent); }
.site-footer .foot-contact { display: inline-flex; align-items: center; gap: 6px; }
.site-footer .foot-contact svg { flex: none; }
/* 最底部整行：版权(站点名+备案号) + 免责声明，横跨整宽 */
.site-footer .foot-bottom { border-top: 1px solid var(--border); padding: 16px 0 22px; text-align: center; line-height: 1.9; }
.site-footer .foot-bottom .disclaimer { display: block; margin-top: 4px; font-size: 12px; opacity: .75; }

/* 返回顶部悬浮按钮：默认隐藏，滚动一段距离后由 JS 加 .show 显示 */
.back-to-top {
  position: fixed; right: 22px; bottom: 26px; z-index: 120;
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 50%; cursor: pointer;
  background: var(--surface-2); color: var(--text);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .2s, transform .2s, visibility .2s, background .15s, color .15s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---- 页脚上方快捷功能区 ---- */
.quick-bar { display: flex; justify-content: space-evenly; gap: 10px; flex-wrap: wrap; max-width: 900px; margin: 0 auto; padding: 24px 16px; }
.quick-item { display: inline-flex; flex-direction: column; align-items: center; gap: 7px; min-width: 88px; padding: 10px 14px; border-radius: 12px; color: var(--muted); font-size: 14px; transition: color .15s, background .15s, transform .15s; }
.quick-item:hover { color: var(--accent); background: var(--surface-2); text-decoration: none; transform: translateY(-2px); }
.quick-item svg { display: block; }
/* 按各图标在 24 网格内的留白差异，单独设尺寸让视觉大小一致 */
.qi-home svg { width: 27px; height: 27px; }
.qi-search svg { width: 28px; height: 28px; }
.qi-download svg { width: 30px; height: 30px; }
.qi-tg svg { width: 25px; height: 25px; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .container { padding: 0 12px; }
  .main-content { padding: 18px 12px 30px; }
  .header-inner { gap: 10px; }
  .nav-toggle { display: flex; order: 5; }   /* 汉堡菜单移到最右 */
  .logo { font-size: 18px; }
  /* 图标组靠右：搜索/下载/TG/汉堡 一起推到右侧 */
  .search-box { margin-left: auto; }
  .search-box input { width: 100%; }
  /* 功能区移动端紧凑（PC 端才加宽增大） */
  .quick-bar { max-width: none; }
  .quick-item { min-width: 64px; font-size: 12px; padding: 8px 10px; }
  .qi-home svg { width: 23px; height: 23px; }
  .qi-search svg { width: 24px; height: 24px; }
  .qi-download svg { width: 26px; height: 26px; }
  .qi-tg svg { width: 21px; height: 21px; }
  /* 导航栏改为左侧划出的抽屉（off-canvas） */
  .main-nav {
    display: flex; flex-direction: column; gap: 0; flex: none;
    position: fixed; top: 60px; left: 0; bottom: 0;
    width: 240px; max-width: 78vw;
    background: var(--surface); border-right: 1px solid var(--border);
    padding: 8px 0; overflow-y: auto; z-index: 200;
    transform: translateX(-100%); transition: transform .25s ease;
  }
  .main-nav.open { transform: translateX(0); box-shadow: 4px 0 18px rgba(0,0,0,.5); }
  .main-nav a { width: 100%; padding: 13px 20px; font-size: 16px; border-bottom: 1px solid var(--border); }
  /* 抽屉菜单当前项：左侧色条 + 淡底，更醒目 */
  .main-nav a.active { background: rgba(229,9,20,.10); box-shadow: inset 3px 0 0 var(--accent); }
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .ad-grid { grid-template-columns: 1fr; gap: 12px; }
  .ad-textbar { grid-template-columns: repeat(4, 1fr); gap: 6px; }

  /* Hero 手机端：大图固定高度铺满，文字底部叠加 */
  .hero-slide { height: 240px; }
  .hero-info { padding: 16px 16px 18px; }
  .hero-title { font-size: 18px; }
  .hero-sub { display: none; }

  /* 手机端播放区：影片为竖版(封面 3:4)，用 3:4 宽高比按屏宽固定高度。
     aspect-ratio 是纯 CSS，渲染时即按容器宽度算出并预留高度，
     在 DPlayer(JS) 初始化前就锁定，彻底消除布局抖动(CLS)。
     想更高/更矮改这里的比例即可：9/16 更高、4/3 更矮。 */
  .player { height: auto; aspect-ratio: 3 / 4; }
  #dplayer,
  .player .dplayer,
  .player .dplayer-video-wrap { height: 100%; }

  /* 页脚窄屏：三列自动变单列 */
  .site-footer .foot-main { grid-template-columns: 1fr; gap: 22px; }
  .back-to-top { right: 14px; bottom: 18px; width: 38px; height: 38px; }
}

/* ===== SEO / 可访问性增强 ===== */
.skip-link{position:absolute;left:-9999px;top:0;z-index:2000;background:var(--accent);color:#fff;padding:10px 16px;border-radius:0 0 var(--radius) 0;font-size:14px;box-shadow:0 2px 8px rgba(0,0,0,.35);}
.skip-link:focus{left:0;}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
.list-breadcrumb{font-size:13px;color:var(--muted);margin:2px 0 12px;line-height:1.6;}
.list-breadcrumb a{color:var(--muted);text-decoration:none;}
.list-breadcrumb a:hover{color:var(--accent);}
.list-breadcrumb .sep{margin:0 6px;color:var(--border);}

/* ===== 404 页（跟随模板主题色变量）===== */
.error-404{text-align:center;padding:40px 16px 24px;}
.e404-code{font-size:90px;font-weight:800;color:var(--accent);line-height:1;letter-spacing:3px;}
.e404-title{font-size:24px;margin:8px 0;color:var(--text);}
.e404-desc{color:var(--muted);margin-bottom:20px;}
.e404-search{display:flex;max-width:420px;margin:0 auto 16px;gap:8px;}
.e404-search input{flex:1;padding:10px 14px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);font-size:15px;color:var(--text);}
.e404-search input::placeholder{color:var(--muted);}
.e404-search button{padding:10px 22px;background:var(--accent);color:#fff;border:none;border-radius:var(--radius);cursor:pointer;font-size:15px;}
.e404-search button:hover{background:var(--accent-2);}
.e404-home{display:inline-block;padding:9px 22px;border:1px solid var(--border);border-radius:var(--radius);color:var(--muted);text-decoration:none;}
.e404-home:hover{border-color:var(--accent);color:var(--accent);}
