/* =========================================================
   gaokk · 苹果CMS V10 影视模板样式（单文件重构版）
   仿 gaokk.com 布局重构：红橙主色 + 浅灰背景 + 白色卡片
   说明：本文件可整体上传至公开仓库（GitHub）后经
   jsDelivr CDN 远程加载，见 html/public/include.html 注释。
   ========================================================= */

/* ---------- 主题变量 ---------- */
:root {
  --primary: #ff2a14;            /* 主色（红） */
  --primary-dark: #e0200b;
  --primary-soft: #fff0ed;       /* 主色浅底 */
  --bg: #f3f5f7;                 /* 页面背景 */
  --card: #ffffff;               /* 卡片背景 */
  --text: #282828;               /* 主文字 */
  --text-2: #666666;             /* 次级文字 */
  --text-3: #999999;             /* 弱文字 */
  --border: #e8eaee;             /* 边框 */
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 2px 10px rgba(20, 24, 40, .05);
  --shadow-lg: 0 8px 24px rgba(20, 24, 40, .10);
  --maxw: 1200px;
  --header-h: 64px;
}

/* ---------- 基础重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { border: 0; vertical-align: middle; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; outline: none; }
input::placeholder { color: #b4b8c0; }
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.35; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.main { padding: 20px 0 10px; min-height: 60vh; }

/* ---------- SVG 图标 ---------- */
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-sm { width: 14px; height: 14px; }
.icon-lg { width: 26px; height: 26px; }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 22px; border: 0; border-radius: 19px;
  font-size: 14px; cursor: pointer; transition: all .2s; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 6px 16px rgba(255, 42, 20, .30); }
.btn-ghost { background: #fff; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { height: 44px; padding: 0 32px; border-radius: 22px; font-size: 15px; }

/* 通用标签 */
.tag { display: inline-block; padding: 1px 8px; border-radius: 4px;
  background: var(--primary-soft); color: var(--primary); font-size: 12px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: #fff;
  box-shadow: 0 1px 0 var(--border);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: var(--header-h); }

/* Logo */
.brand { flex: none; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 800; color: var(--primary); }
.logo img { height: 34px; width: auto; }

/* 搜索 */
.nav-search { flex: 1; max-width: 560px; margin: 0 auto; position: relative; }
.search-box { position: relative; display: flex; align-items: center; }
.search-input {
  width: 100%; height: 40px; padding: 0 92px 0 18px;
  border: 2px solid var(--primary); border-radius: 20px; background: #fff; font-size: 14px;
  transition: box-shadow .2s;
}
.search-input:focus { box-shadow: 0 0 0 4px rgba(255, 42, 20, .12); }
.search-go {
  position: absolute; right: 3px; top: 3px; width: 34px; height: 34px;
  border: 0; border-radius: 50%; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.search-go:hover { background: var(--primary-dark); }
.search-hot {
  position: absolute; right: 44px; top: 3px; height: 34px; display: flex;
  align-items: center; gap: 10px; color: var(--text-3); font-size: 12px;
  max-width: 45%; overflow: hidden; white-space: nowrap;
}
.search-hot a:hover { color: var(--primary); }

/* 热搜下拉 */
.search-drop {
  position: absolute; top: 46px; left: 0; right: 0; z-index: 50;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 14px 18px; display: none;
}
.search-box.open .search-drop { display: block; }
.search-drop .drop-title { font-size: 13px; color: var(--text-3); margin-bottom: 10px; }
.hot-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hot-tags a {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 12px; border-radius: 14px; background: var(--bg);
  color: var(--text-2); font-size: 13px;
}
.hot-tags a.hot { background: var(--primary-soft); color: var(--primary); }
.hot-tags a:hover { background: var(--primary); color: #fff; }

/* 主导航 */
.nav-menu { display: flex; align-items: center; }
.nav-menu-item { position: relative; padding: 0 14px; }
.nav-menu-item > a {
  display: flex; align-items: center; gap: 5px; height: var(--header-h);
  font-size: 15px; color: var(--text); font-weight: 500;
}
.nav-menu-item > a:hover,
.nav-menu-item.selected > a { color: var(--primary); }
.nav-menu-item.selected > a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 0;
  height: 3px; border-radius: 2px 2px 0 0; background: var(--primary);
}

/* 头部右侧工具 */
.header-tools { display: flex; align-items: center; gap: 4px; flex: none; }
.tool-btn {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; color: var(--text-2);
  background: transparent; border: 0; cursor: pointer; position: relative;
}
.tool-btn:hover { background: var(--bg); color: var(--primary); }

/* 全部分类 / 历史 下拉面板 */
.drop-panel {
  position: absolute; top: calc(var(--header-h) - 6px); right: 0; z-index: 60;
  width: 520px; max-width: 92vw; background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 18px; display: none;
}
.tool-wrap { position: relative; }
.tool-wrap.open .drop-panel { display: block; }
.drop-panel .panel-title { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.drop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.drop-grid a {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 6px; border-radius: 8px; font-size: 13px; color: var(--text-2);
}
.drop-grid a:hover { background: var(--primary-soft); color: var(--primary); }

/* 历史记录 */
.history-list { max-height: 320px; overflow: auto; }
.history-list li { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px dashed var(--border); }
.history-list li:last-child { border-bottom: 0; }
.history-list a { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); font-size: 13px; }
.history-list a:hover { color: var(--primary); }
.history-clear { color: var(--text-3); font-size: 12px; }
.history-clear:hover { color: var(--primary); }
.history-empty { text-align: center; color: var(--text-3); padding: 24px 0; font-size: 13px; }

/* 移动端汉堡 */
.burger { display: none; }

/* 移动端菜单 */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .5);
}
.mobile-menu.open { display: block; }
.mobile-menu-panel {
  position: absolute; left: 0; top: 0; bottom: 0; width: 76%; max-width: 320px;
  background: #fff; padding: 20px; overflow: auto;
  animation: slideIn .25s ease;
}
@keyframes slideIn { from { transform: translateX(-100%); } to { transform: none; } }
.mobile-menu-panel h3 { font-size: 15px; margin-bottom: 12px; color: var(--primary); }
.mobile-menu-panel .mm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.mobile-menu-panel .mm-grid a { padding: 10px 4px; text-align: center; background: var(--bg); border-radius: 8px; font-size: 13px; }
.mobile-menu-panel .mm-grid a:hover { background: var(--primary-soft); color: var(--primary); }
.mm-close { float: right; border: 0; background: none; font-size: 18px; color: var(--text-3); cursor: pointer; }

/* ---------- 首页模块 ---------- */
.module { background: var(--card); border-radius: var(--radius-lg); padding: 0 18px 18px; margin-bottom: 20px; box-shadow: var(--shadow); }
.module-heading { display: flex; align-items: baseline; gap: 10px; padding: 20px 0 14px; }
.module-title { font-size: 19px; font-weight: 700; position: relative; padding-left: 13px; }
.module-title::before {
  content: ""; position: absolute; left: 0; top: 5px; bottom: 5px;
  width: 4px; border-radius: 2px; background: var(--primary);
}
.module-title small { font-size: 13px; color: var(--text-3); font-weight: 400; margin-left: 6px; }
.module-more { margin-left: auto; font-size: 13px; color: var(--text-3); display: inline-flex; align-items: center; gap: 3px; }
.module-more:hover { color: var(--primary); }

/* 海报卡片网格 */
.module-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px 14px; }

/* 横卡列表（今日推荐，5列大卡） */
.module-lines-list .module-items { grid-template-columns: repeat(5, 1fr); gap: 16px 14px; }

.module-item { position: relative; }
.module-item-pic {
  position: relative; aspect-ratio: 3 / 4.25; overflow: hidden;
  border-radius: var(--radius); background: #e9ecf0;
}
.module-item-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.module-item:hover .module-item-pic img { transform: scale(1.07); }

/* 悬停遮罩：播放按钮 */
.module-item-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(10, 12, 18, .35); color: #fff; opacity: 0; transition: opacity .25s;
}
.module-item:hover .module-item-play { opacity: 1; }
.module-item-play .play-circle {
  width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 42, 20, .92);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(255, 42, 20, .5);
}
.module-item-play .icon { width: 20px; height: 20px; margin-left: 3px; }

/* 悬停遮罩：角标信息（年份/评分/类型） */
.module-item-caption {
  position: absolute; left: 8px; right: 8px; bottom: 8px;
  display: flex; gap: 6px; pointer-events: none;
}
.module-item-caption span {
  background: rgba(10, 12, 18, .62); color: #fff; font-size: 11px;
  padding: 1px 7px; border-radius: 4px;
}

/* 悬停遮罩：底部详情（名称/主演/简介） */
.module-item-content {
  position: absolute; inset: 0; padding: 12px; color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  background: linear-gradient(180deg, rgba(10,12,18,0) 20%, rgba(10,12,18,.88) 100%);
  opacity: 0; transform: translateY(12px); transition: all .28s ease; pointer-events: none;
}
.module-item:hover .module-item-content { opacity: 1; transform: none; }
.video-name a { font-size: 14px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.video-name a:hover { color: #ffb3a8; }
.video-tag { font-size: 12px; color: rgba(255, 255, 255, .82); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.video-tag a:hover { color: #ffb3a8; }
.video-text { font-size: 12px; color: rgba(255, 255, 255, .66); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 卡片标题行 */
.module-item-titlebox { margin-top: 8px; }
.module-item-title {
  display: block; font-size: 14px; font-weight: 500; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.module-item-title:hover { color: var(--primary); }
.module-item-text { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* 双栏：主列表 + 侧栏月榜 */
.module-main { flex: 1; min-width: 0; }
.module-side { width: 260px; flex: none; margin-left: 18px; }
.layout-col { display: flex; align-items: stretch; }

/* 月榜 */
.rank-list { counter-reset: rank; }
.rank-item { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px dashed var(--border); }
.rank-item:last-child { border-bottom: 0; }
.rank-no {
  width: 24px; height: 24px; border-radius: 6px; flex: none;
  background: #eef0f3; color: var(--text-3); font-size: 12px; font-style: normal;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.rank-item:nth-child(-n+3) .rank-no { background: var(--primary); color: #fff; }
.rank-item img { width: 42px; height: 58px; object-fit: cover; border-radius: 4px; flex: none; background: #e9ecf0; }
.rank-name {
  flex: 1; min-width: 0; font-size: 13px; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rank-name:hover { color: var(--primary); }
.rank-info { display: block; font-size: 11px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-score { color: var(--primary); font-size: 12px; font-weight: 700; flex: none; }

/* ---------- 面包屑 / 页头 ---------- */
.crumb { display: flex; align-items: center; gap: 8px; padding: 16px 0 12px; color: var(--text-3); font-size: 13px; }
.crumb a:hover { color: var(--primary); }
.crumb .sep { color: #c6cad1; }
.page-head { display: flex; align-items: baseline; gap: 12px; padding: 18px 0 14px; }
.page-title { font-size: 22px; font-weight: 700; position: relative; padding-left: 13px; }
.page-title::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 4px; border-radius: 2px; background: var(--primary);
}
.page-sub { color: var(--text-3); font-size: 13px; }

/* ---------- 筛选栏 ---------- */
.filter-bar { background: #fff; border-radius: var(--radius-lg); padding: 14px 20px; margin-bottom: 18px; box-shadow: var(--shadow); }
.filter-row { display: flex; align-items: flex-start; padding: 6px 0; }
.filter-label { width: 52px; flex: none; color: var(--text-3); line-height: 30px; font-size: 13px; }
.filter-links { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.filter-links a {
  display: inline-block; padding: 3px 13px; border-radius: 15px;
  font-size: 13px; color: var(--text-2); background: var(--bg);
}
.filter-links a:hover { color: var(--primary); }
.filter-links a.current { background: var(--primary); color: #fff; }

/* 排序条 */
.order-bar { display: flex; align-items: center; gap: 6px; padding: 0 0 4px; }
.order-bar a {
  display: inline-block; padding: 4px 16px; border-radius: 17px;
  font-size: 13px; color: var(--text-2); background: var(--bg);
}
.order-bar a.current { background: var(--primary); color: #fff; }
.order-bar a:hover { color: var(--primary); }
.order-bar a.current:hover { color: #fff; }

/* ---------- 分页 ---------- */
.pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; padding: 26px 0 6px; }
.page-link {
  min-width: 38px; height: 38px; padding: 0 12px; line-height: 36px; text-align: center;
  border-radius: 8px; background: #fff; border: 1px solid var(--border);
  color: var(--text-2); font-size: 13px; display: inline-block;
}
.page-link:hover { border-color: var(--primary); color: var(--primary); }
.page-link.current { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-link.disabled { opacity: .5; pointer-events: none; }
.page-total { font-size: 13px; color: var(--text-3); margin-left: 6px; }

/* ---------- 详情页 ---------- */
.detail-card { background: #fff; border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); display: flex; gap: 26px; }
.detail-poster { width: 250px; flex: none; }
.detail-poster img { width: 100%; aspect-ratio: 3 / 4.25; object-fit: cover; border-radius: var(--radius); background: #e9ecf0; }
.detail-info { flex: 1; min-width: 0; }
.detail-title h1 { font-size: 24px; margin-bottom: 6px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px; }
.detail-tags a { background: var(--bg); padding: 2px 12px; border-radius: 14px; font-size: 13px; color: var(--text-2); }
.detail-tags a:hover { background: var(--primary); color: #fff; }
.detail-tags .tag-score { background: var(--primary); color: #fff; font-weight: 600; }
.detail-meta { display: grid; grid-template-columns: 70px 1fr; row-gap: 10px; font-size: 14px; }
.detail-meta dt { color: var(--text-3); }
.detail-meta dd { color: var(--text); word-break: break-all; }
.detail-meta dd a { color: var(--text-2); }
.detail-meta dd a:hover { color: var(--primary); }
.detail-plot { margin-top: 14px; }
.detail-plot p { color: var(--text-2); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.detail-plot.expand p { -webkit-line-clamp: unset; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* 播放列表 */
.playlist { background: #fff; border-radius: var(--radius-lg); padding: 18px; margin-top: 18px; box-shadow: var(--shadow); }
.playlist-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.playlist-tab {
  padding: 6px 18px; border-radius: 18px; background: var(--bg);
  font-size: 13px; color: var(--text-2); cursor: pointer; border: 1px solid transparent;
}
.playlist-tab.current { background: var(--primary); color: #fff; }
.playlist-tab small { opacity: .8; margin-left: 2px; }
.playlist-body { display: none; }
.playlist-body.current { display: block; }
.episode-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 10px; max-height: 320px; overflow: auto; }
.episode-grid a {
  display: block; text-align: center; padding: 8px 4px; border-radius: 8px;
  background: var(--bg); color: var(--text-2); font-size: 13px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.episode-grid a:hover { background: var(--primary); color: #fff; }
.episode-grid a.current { background: var(--primary); color: #fff; }

/* 剧情介绍 */
.vod-content { background: #fff; border-radius: var(--radius-lg); padding: 20px; margin-top: 18px; box-shadow: var(--shadow); }
.vod-content p { color: var(--text-2); font-size: 14px; text-indent: 2em; margin-bottom: 10px; line-height: 1.9; }
.vod-content .toggle-more { color: var(--primary); cursor: pointer; font-size: 13px; user-select: none; }

/* 留言板 */
.gbook-form { background: #fff; border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); margin-bottom: 18px; }
.gbook-form .form-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.gbook-form input[type="text"], .gbook-form textarea {
  border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; background: var(--bg); width: 100%;
}
.gbook-form input[type="text"]:focus, .gbook-form textarea:focus { border-color: var(--primary); background: #fff; }
.gbook-form textarea { min-height: 90px; resize: vertical; }
.gbook-form .verify-row { display: flex; align-items: center; gap: 10px; }
.gbook-list { background: #fff; border-radius: var(--radius-lg); padding: 8px 20px; box-shadow: var(--shadow); }
.gbook-item { padding: 14px 0; border-bottom: 1px dashed var(--border); }
.gbook-item:last-child { border-bottom: 0; }
.gbook-item .gb-head { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.gb-name { font-weight: 600; color: var(--primary); font-size: 13px; }
.gb-time { color: var(--text-3); font-size: 12px; }
.gbook-item .gb-content { color: var(--text-2); font-size: 14px; }

/* 文章 */
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.art-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.art-card .art-pic { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; background: #e9ecf0; }
.art-card .art-body { padding: 12px 14px 14px; }
.art-card .art-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.art-card .art-title:hover { color: var(--primary); }
.art-card .art-desc { font-size: 13px; color: var(--text-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.art-card .art-meta { margin-top: 8px; font-size: 12px; color: var(--text-3); display: flex; gap: 10px; }

/* 文章详情 */
.article { background: #fff; border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.article h1 { font-size: 24px; margin-bottom: 8px; }
.article .art-meta { color: var(--text-3); font-size: 13px; padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.article .art-content { line-height: 1.9; color: var(--text-2); font-size: 15px; }
.article .art-content img { max-width: 100%; border-radius: 8px; }
.article .art-content p { margin-bottom: 12px; }

/* 播放页 */
.player-box { background: #000; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 9; position: relative; }
.player-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-info { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px 2px 2px; }
.player-info h1 { font-size: 18px; }
.player-info .pi-ep { color: var(--primary); font-size: 14px; font-weight: 600; }
.player-nav { margin-left: auto; display: flex; gap: 8px; }

/* 空状态 */
.empty { text-align: center; padding: 60px 0; color: var(--text-3); }
.empty .icon { width: 48px; height: 48px; margin: 0 auto 12px; color: #ccd0d8; }
.empty p { font-size: 14px; }

/* ---------- 页脚 ---------- */
.site-footer { background: #fff; margin-top: 30px; padding: 22px 0; box-shadow: 0 -1px 0 var(--border); }
.footer-inner { text-align: center; color: var(--text-3); font-size: 13px; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 8px; }
.footer-links a:hover { color: var(--primary); }
.footer-copy { line-height: 1.8; }

/* 回到顶部 */
.backtop {
  position: fixed; right: 24px; bottom: 32px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; color: var(--text-2); box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .25s;
}
.backtop.show { opacity: 1; visibility: visible; transform: none; }
.backtop:hover { background: var(--primary); color: #fff; }

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #ccd0d8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #b4b8c0; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 评论（home.js 输出结构） ---------- */
.mac_comment { color: var(--text-2); font-size: 14px; }
.mac_comment .comment_form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; margin-bottom: 16px; }
.mac_comment .comment_content {
  width: 100%; min-height: 84px; border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px; background: var(--bg); resize: vertical; font-size: 14px;
}
.mac_comment .comment_content:focus { border-color: var(--primary); background: #fff; }
.mac_comment .comment_submit {
  height: 36px; padding: 0 22px; border: 0; border-radius: 18px; cursor: pointer;
  background: var(--primary); color: #fff; font-size: 14px; margin-left: auto;
}
.mac_comment .comment_submit:hover { background: var(--primary-dark); }
.mac_comment .comment_face_panel, .mac_comment .comment_face_box { display: none; }
.mac_comment .cmt_wrap .total { color: var(--text-3); font-size: 13px; }
.mac_comment .comment_list .comment_item { padding: 14px 0; border-bottom: 1px dashed var(--border); }
.mac_comment .comment_list .comment_item:last-child { border-bottom: 0; }
.mac_comment .comment_list .comment_head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.mac_comment .comment_list .comment_user { font-weight: 600; color: var(--primary); font-size: 13px; }
.mac_comment .comment_list .comment_time { color: var(--text-3); font-size: 12px; }
.mac_comment .comment_list .comment_content_text, .mac_comment .comment_list .comment_content { color: var(--text-2); font-size: 14px; }
.mac_comment .comment_list .comment_digg, .mac_comment .comment_list .comment_report { font-size: 12px; color: var(--text-3); margin-right: 12px; }
.mac_comment .comment_list .comment_reply { margin-top: 8px; background: var(--bg); border-radius: 8px; padding: 10px 12px; font-size: 13px; }

/* 评论分页 */
.mac_pages { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; padding: 18px 0 6px; }
.mac_pages .page_tip { width: 100%; text-align: center; color: var(--text-3); font-size: 12px; margin-bottom: 4px; }
.mac_pages .page_info { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.mac_pages .page_link {
  min-width: 34px; height: 34px; padding: 0 10px; line-height: 32px; text-align: center;
  border-radius: 8px; background: #fff; border: 1px solid var(--border);
  color: var(--text-2); font-size: 13px; display: inline-block;
}
.mac_pages .page_link:hover { border-color: var(--primary); color: var(--primary); }
.mac_pages .page_input { width: 48px; height: 34px; border: 1px solid var(--border); border-radius: 8px; text-align: center; background: #fff; }
.mac_pages .page_btn { height: 34px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--primary); color: #fff; cursor: pointer; }

/* 搜索联想（home.js MAC.Suggest 输出） */
.mac_suggest_box { position: absolute; top: 44px; left: 0; right: 0; z-index: 80;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.mac_suggest_box ul { list-style: none; padding: 6px 0; max-height: 320px; overflow: auto; }
.mac_suggest_box li { padding: 9px 16px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.mac_suggest_box li:hover, .mac_suggest_box li.current { background: var(--primary-soft); color: var(--primary); }

/* 移动端搜索开关默认隐藏（仅小屏显示） */
.nav-search-toggle { display: none; }

/* 导航不换行 */
.nav-menu-list { white-space: nowrap; overflow: hidden; }
.nav-menu { overflow-x: auto; scrollbar-width: none; }
.nav-menu::-webkit-scrollbar { display: none; }

/* ---------- 回复/报错等小文本 ---------- */
.history-clear-all:hover { color: var(--primary); }

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1080px) {
  .module-lines-list .module-items { grid-template-columns: repeat(4, 1fr); }
  .module-side { width: 230px; }
}

@media (max-width: 900px) {
  .layout-col { flex-direction: column; }
  .module-side { width: 100%; margin: 0 0 20px; }
  .nav-menu { display: none; }
  .burger { display: flex; }
  .nav-search-toggle { display: flex; }
  .header-tools { margin-left: auto; }
  .nav-search { order: 3; max-width: none; flex-basis: 100%; margin: 0; display: none; }
  .nav-search.show { display: block; padding: 8px 0 12px; }
  .header-inner { flex-wrap: wrap; height: auto; padding: 10px 0; }
  .search-drop { position: static; box-shadow: none; padding: 8px 0 0; }
  .search-hot { display: none; }
}

@media (max-width: 640px) {
  .module-lines-list .module-items { grid-template-columns: repeat(3, 1fr); }
  .module-items { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px 10px; }
  .module { padding: 0 12px 12px; }
  .detail-card { flex-direction: column; padding: 16px; }
  .detail-poster { width: 45%; max-width: 200px; margin: 0 auto; }
  .detail-title h1 { font-size: 20px; }
  .page-title { font-size: 19px; }
  .article { padding: 18px; }
  .backtop { right: 14px; bottom: 20px; width: 40px; height: 40px; }
}
