/* 游戏简洁站主题样式 */
:root {
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-card: #ffffff;
  --text-1: #1f2937;
  --text-2: #4b5563;
  --text-3: #9ca3af;
  --border: #e5e7eb;
  --accent: #2563eb;
  --accent-2: #1d4ed8;
  --accent-hover: #1d4ed8;
  --radius: 10px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --accent-soft: rgba(37, 99, 235, 0.08);
  --header-bg: rgba(255, 255, 255, 0.92);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 4px 14px rgba(0, 0, 0, 0.08);
  --code-bg: #f4f6f8;
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #0f172a;
  --bg-soft: #1e293b;
  --bg-card: #1e293b;
  --text-1: #e5e7eb;
  --text-2: #94a3b8;
  --text-3: #64748b;
  --border: #334155;
  --accent: #60a5fa;
  --accent-2: #3b82f6;
  --accent-hover: #3b82f6;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  --accent-soft: rgba(96, 165, 250, 0.15);
  --header-bg: rgba(15, 23, 42, 0.92);
  color-scheme: dark;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; transition: color .15s ease; }
::selection { background: var(--accent-soft); color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* 固定顶部导航 */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; height: 62px; gap: 16px; justify-content: space-between; }
.logo a, .logo a h1 { font-size: 22px; font-weight: 700; color: var(--text-1); letter-spacing: .5px; }
.logo a:hover { color: var(--accent); }
.main-nav { flex: 1; display: flex; justify-content: center; min-width: 0; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-list > li > a { display: block; padding: 7px 14px; border-radius: 6px; font-size: 15px; color: var(--text-2); font-weight: 500; }
.nav-list > li > a:hover, .nav-list > li > a.selected { color: var(--accent); background: var(--accent-soft); }
.nav-list .sub-nav { display: none; position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); min-width: 160px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-hover); padding: 8px; z-index: 100; }
.nav-list > li:hover > .sub-nav { display: block; }
.nav-list .sub-nav li a { display: block; padding: 7px 12px; border-radius: 6px; font-size: 14px; color: var(--text-2); white-space: nowrap; }
.nav-list .sub-nav li a:hover { color: var(--accent); background: var(--accent-soft); }
.header-actions { display: flex; align-items: center; gap: 4px; }
.header-btn { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); cursor: pointer; }
.header-btn:hover { background: var(--accent-soft); color: var(--accent); }
.header-btn svg { width: 18px; height: 18px; }
.menu-toggle { display: none; }
.reading-progress { position: fixed; top: 0; left: 0; width: 0; height: 3px; background: var(--accent); z-index: 1300; }
.search-panel { display: none; border-top: 1px solid var(--border); padding: 12px 0; background: var(--bg-card); }
.search-panel.open { display: block; }
.search-form { display: flex; gap: 8px; }
.search-form input { flex: 1; padding: 9px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--text-1); font-size: 14px; }
.search-form button { padding: 9px 18px; background: var(--accent); color: #fff; border: 0; border-radius: 6px; cursor: pointer; font-size: 14px; }
.search-form button:hover { background: var(--accent-2); }

/* 通用两栏布局 */
main.container.layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; margin-top: 28px; padding-top: 10px; }
.main-col { min-width: 0; }
.side-col { min-width: 0; }

/* 侧栏模块卡片 */
.widget { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; box-shadow: var(--shadow-card); }
.widget-title { font-size: 16px; font-weight: 600; color: var(--text-1); padding-bottom: 8px; margin-bottom: 12px; border-bottom: 1px dashed var(--border); }
.widget-body { /* 无额外 padding，继承 .widget 容器 */ }
.widget-list { list-style: none; padding: 0; margin: 0; }
.widget-list li { padding: 6px 0; border-bottom: 1px dashed var(--border); }
.widget-list li:last-child { border-bottom: none; }
.widget-body a { color: var(--text-2); text-decoration: none; transition: color .2s ease; }
.widget-body a:hover { color: var(--accent); }
.widget-list li img { max-width: 24px; max-height: 24px; border-radius: 50%; vertical-align: middle; margin-right: 6px; }
.widget .tag-chip { display: inline-block; background: var(--bg-soft); padding: 2px 8px; border-radius: 999px; font-size: 12px; margin: 2px 4px 2px 0; }

/* 页面头部（分类/标签/搜索） */
.page-head { margin-bottom: 20px; }
.breadcrumb { font-size: 13px; color: var(--text-3); margin-bottom: 8px; }
.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 6px; color: var(--text-3); }
.page-title { font-size: 24px; font-weight: 700; color: var(--text-1); }
.page-desc { color: var(--text-3); margin-top: 6px; font-size: 14px; }

/* ========== 统一列表卡片（首页"最新发布" / 分类页 / 标签页 / 搜索结果） ========== */
.post-list { display: flex; flex-direction: column; gap: 16px; }

/* 卡片本体：首页用 .post-multi，分类页用 .post-item（两者可共存） */
.post-item,
.post-multi,
.post-istop {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.post-item:hover,
.post-multi:hover,
.post-istop:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-soft);
}

/* 缩略图（后台开启列表图时才会输出） */
.post-thumb { display: block; margin-bottom: 10px; }
.post-thumb img { display: block; width: 100%; height: auto; border-radius: calc(var(--radius) - 2px); }

/* 标题：首页是裸 h2，分类页是 h2.post-title */
.post-item .post-title,
.post-multi h2,
.post-multi h3,
.post-istop h2,
.post-istop h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-1);
  margin-bottom: 6px;
}
.post-item .post-title a,
.post-multi h2 a,
.post-multi h3 a,
.post-istop h2 a,
.post-istop h3 a { color: var(--text-1); }
.post-item .post-title a:hover,
.post-multi h2 a:hover,
.post-multi h3 a:hover,
.post-istop h2 a:hover,
.post-istop h3 a:hover { color: var(--accent); }

/* 摘要：分类页 p.post-excerpt（游戏分类被标签替代），两行截断 */
.post-item .post-excerpt,
.post-multi p.intro,
.post-istop p.intro {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.7;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 游戏字段标签 */
.post-item .post-game-tags,
.post-multi .post-game-tags,
.post-istop .post-game-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.game-tag {
  display: inline-block;
  padding: 2px 9px;
  font-size: 12px;
  line-height: 1.6;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  white-space: nowrap;
}

/* 元信息行：首页 .meta（标题下方），分类页 .post-meta（标题上方） */
.post-item .post-meta,
.post-multi .meta,
.post-istop .meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-3);
  margin-top: 8px;
}
.post-item .post-meta-item { display: inline-flex; align-items: center; gap: 4px; }
.post-item .post-meta a,
.post-multi .meta a { color: var(--text-2); }
.post-item .post-meta a:hover,
.post-multi .meta a:hover { color: var(--accent); }
.post-item .post-meta svg,
.post-item .post-foot svg,
.post-multi .meta svg { width: 14px; height: 14px; flex-shrink: 0; vertical-align: -2px; }

/* 置顶徽章 */
.post-item .post-flag,
.post-istop .post-flag {
  display: inline-block;
  padding: 1px 8px;
  font-size: 12px;
  line-height: 1.6;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
}

/* 底部栏：阅读量 / 评论数 / 阅读全文 */
.post-item .post-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  font-size: 12px;
  color: var(--text-3);
}
.post-item .post-more {
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
}
.post-item .post-more:hover { color: var(--accent-hover); }

/* 空列表提示 */
.post-empty { text-align: center; padding: 60px 20px; color: var(--text-3); }

/* 单篇文章详情 */
.post-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 28px 32px; box-shadow: var(--shadow-card); margin-bottom: 20px; }
.post-title-lg { font-size: 26px; font-weight: 700; color: var(--text-1); line-height: 1.4; margin: 12px 0 14px; }
.post-meta-row { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--text-3); align-items: center; }
.post-meta-row svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px; }
.meta-author { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-weight: 500; }
.meta-avatar { width: 22px; height: 22px; border-radius: 50%; }
.post-abstract { background: var(--bg-soft); border-left: 3px solid var(--accent); padding: 12px 16px; margin: 20px 0; font-size: 14px; color: var(--text-2); line-height: 1.7; border-radius: 0 6px 6px 0; }
.post-abstract strong { color: var(--accent); margin-right: 6px; }
.post-content { font-size: 15px; line-height: 1.85; color: var(--text-1); }
.post-content h2, .post-content h3, .post-content h4 { margin: 24px 0 12px; font-weight: 700; }
.post-content p { margin-bottom: 16px; }
.post-content code { background: var(--code-bg); padding: 2px 6px; border-radius: 4px; font-size: 13px; }
.post-content pre { background: var(--code-bg); padding: 16px; border-radius: 6px; overflow-x: auto; margin-bottom: 16px; }
.post-content blockquote { border-left: 3px solid var(--accent); padding: 8px 16px; margin: 16px 0; background: var(--bg-soft); color: var(--text-2); border-radius: 0 6px 6px 0; }
.post-content img { border-radius: 6px; margin: 12px 0; }

/* 标签 */
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--border); }
.tag-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; font-size: 12px; background: var(--bg-soft); color: var(--text-2); border-radius: 14px; }
.tag-chip:hover { background: var(--accent-soft); color: var(--accent); }
.tag-chip svg { width: 12px; height: 12px; }

/* 游戏下载按钮 */
.game-info-panel { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px; padding: 16px; margin: 20px 0; }
.game-info-panel .game-fields { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.game-info-panel .game-fields .gf-label { color: var(--text-3); font-size: 12px; }
.game-info-panel .game-fields .gf-value { font-weight: 600; margin-top: 2px; }
.dl-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.dl-btn { display: inline-block; padding: 10px 18px; background: var(--accent); color: #fff !important; border-radius: 6px; font-weight: 600; font-size: 14px; transition: background-color .15s ease; }
.dl-btn:hover { background: var(--accent-2); color: #fff !important; }
@media(max-width: 480px) { .dl-btn { display: block; text-align: center; } }

/* 上下篇导航 */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.post-nav-item { display: block; padding: 14px 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-card); transition: border-color .15s ease, box-shadow .15s ease; }
.post-nav-item:hover { border-color: var(--accent); box-shadow: var(--shadow-hover); }
.post-nav-item.is-next { text-align: right; }
.post-nav-label { display: block; font-size: 12px; color: var(--text-3); margin-bottom: 4px; }
.post-nav-title { font-size: 14px; color: var(--text-1); font-weight: 500; }
.post-nav-item.is-disabled { opacity: .5; cursor: default; }

/* 相关文章 */
.related-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 18px 20px; margin-bottom: 20px; }
.card-title { font-size: 16px; font-weight: 600; color: var(--text-1); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.related-list li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.related-list li:last-child { border-bottom: none; }
.related-list li a { color: var(--text-1); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.related-list li a:hover { color: var(--accent); }
.related-list li time { color: var(--text-3); font-size: 12px; margin-left: 10px; flex-shrink: 0; }

/* ========== 作者信息卡：样式见文件末尾 L507-L525 ========== */

/* 分页 */
.pagebar { text-align: center; padding: 20px 0; }
.pagebar a, .pagebar span { display: inline-block; padding: 6px 12px; margin: 0 2px; border: 1px solid var(--border); border-radius: 4px; font-size: 14px; color: var(--text-2); }
.pagebar a:hover { border-color: var(--accent); color: var(--accent); }
.pagebar .current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* 评论 */
.comment-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 18px 20px; }

/* 404 */
.error-404 { text-align: center; padding: 80px 20px; }
.error-404 h1 { font-size: 60px; color: var(--accent); margin-bottom: 12px; }
.error-404 p { color: var(--text-2); font-size: 16px; }

/* 首页专属布局（与 index.php 内联样式呼应，提炼到这里覆盖） */
.game-home { display: grid; grid-template-columns: 7fr 3fr; gap: 28px; margin: 28px auto; max-width: 1200px; padding: 0 16px; }
.gh-main { min-width: 0; }
.gh-side { min-width: 0; }
.gh-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; box-shadow: var(--shadow-card); transition: box-shadow .2s ease; }
.gh-section { margin-bottom: 20px; }
.gh-card h2 { font-size: 17px; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--bg-soft); color: var(--text-1); font-weight: 600; }
.gh-entry { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px dashed var(--border); }
.gh-entry:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.gh-entry h3 { font-size: 15px; margin: 0 0 6px; font-weight: 500; }
.gh-entry h3 a { color: var(--text-1); }
.gh-entry h3 a:hover { color: var(--accent); }
.gh-entry p { margin: 0; color: var(--text-3); font-size: 13px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gh-aside { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 18px; box-shadow: var(--shadow-card); }
.gh-aside h3 { font-size: 15px; margin: 0 0 12px; color: var(--text-1); font-weight: 600; border-left: 3px solid var(--accent); padding-left: 8px; }
.gh-aside ol { margin: 0; padding-left: 20px; }
.gh-aside li { margin-bottom: 8px; font-size: 13px; line-height: 1.6; }
.gh-aside li a { color: var(--text-2); }
.gh-aside li a:hover { color: var(--accent); }

/* 页脚 */
.site-footer { border-top: 1px solid var(--border); padding: 24px 0; margin-top: 40px; text-align: center; font-size: 13px; color: var(--text-3); background: var(--bg); }
.footer-copy, .footer-extra, .footer-powered { margin: 4px 0; }
.footer-powered a { color: var(--text-2); }
.footer-powered a:hover { color: var(--accent); }

/* 移动端响应式 */
@media(max-width: 768px) {
  body { font-size: 14px; }
  main.container.layout { grid-template-columns: 1fr; margin-top: 20px; padding-top: 0; }
  .game-home { grid-template-columns: 1fr; }
  .site-header { position: sticky; }
  .nav-list { position: fixed; top: 62px; left: 0; right: 0; flex-direction: column; background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 12px; display: none; box-shadow: var(--shadow-hover); }
  .nav-list.open { display: flex; }
  .nav-list > li > a { padding: 10px 16px; width: 100%; text-align: left; }
  .menu-toggle { display: inline-flex; }
  .post-card { padding: 20px; }
  .post-title-lg { font-size: 22px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-item.is-next { text-align: left; }
  .game-info-panel .game-fields { grid-template-columns: repeat(2, 1fr); }
  .dl-btn { display: block; margin: 6px 0; text-align: center; }
  .post-meta-row { gap: 10px; }
}
@media(max-width: 480px) {
  .game-info-panel .game-fields { grid-template-columns: 1fr; }
  .container { padding: 0 14px; }
}

/* ========== 固定导航栏遮挡修正（追加，不覆盖原有内容） ========== */
/* .site-header 桌面端 position:fixed，header-inner height:62px + 1px border = 63px，加 9px 间距 */
body { padding-top: 72px; }

/* 移动端 sticky 导航不遮挡，清除 padding */
@media(max-width: 768px) { body { padding-top: 0; } }

/* ========== 全局图标兜底（追加，不覆盖原有内容） ========== */
/* 字体图标库：FontAwesome / Bootstrap Icons / Material Icons 等 */
i[class*="fa-"], i[class*="fa "], i[class*="icon-"], i[class*=" bi-"], i[class*="material-"] {
  font-size: 16px;
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
}

/* 内联 SVG（header.php 的菜单/搜索/深浅色按钮等） */
svg { width: 20px; height: 20px; vertical-align: middle; }

/* 导航栏内 SVG 图标（header-btn 按钮） */
.site-header svg, .header-btn svg { width: 18px; height: 18px; }

/* 下载按钮 / .dl-btn 内的图标 */
.dl-btn svg, .dl-btn i, .dl-btn img,
.download-btn svg, .download-btn i, .download-btn img {
  width: 16px; height: 16px; object-fit: contain;
}

/* 列表卡片里的 SVG（meta 行、相关文章等） */
.post-meta-row svg, .post-foot svg, .breadcrumb svg,
.tag-chip svg, .pagebar svg, .related-card svg, .related-list svg {
  width: 14px; height: 14px;
}

/* 阅读进度、无文字图标场景的兜底 */
.reading-progress svg, .site-footer svg { width: 16px; height: 16px; }

/* ========== 返回顶部按钮（全新追加，原主题无此规则） ========== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  transition: background-color .15s ease, transform .15s ease, opacity .25s ease;
  opacity: 0;
  pointer-events: none;
}
.back-to-top:hover { background: #1d4ed8; transform: translateY(-2px); }
.back-to-top svg { width: 20px; height: 20px; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; }

/* ========== 留言本 / 评论区 ========== */
/* 表单 */
.comment-form-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-top: 16px; }
.comment-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.comment-field { display: flex; flex-direction: column; gap: 4px; }
.comment-field label { font-size: 13px; color: var(--text-2); }
.comment-field label i { color: #ef4444; font-style: normal; }
.comment-field .text { width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; background: var(--bg); color: var(--text-1); outline: none; transition: border-color .2s ease; font-family: inherit; }
.comment-field .text:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15); }
.comment-field-textarea .text { min-height: 100px; resize: vertical; }
.comment-captcha { width: 90px; height: 40px; border-radius: 4px; cursor: pointer; object-fit: cover; margin-top: 4px; }
.comment-submit { text-align: right; margin-top: 12px; }
.comment-submit .btn.btn-primary { background: var(--accent); color: #fff; border: none; padding: 8px 20px; border-radius: 6px; font-size: 14px; cursor: pointer; transition: background-color .2s ease; }
.comment-submit .btn.btn-primary:hover { background: var(--accent-hover); }

/* 评论头 + 列表 */
.comment-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.comment-count { background: var(--bg-soft); padding: 1px 8px; border-radius: 999px; font-size: 12px; color: var(--text-3); margin-left: 6px; font-weight: normal; }
#cancel-reply { font-size: 13px; color: var(--text-3); cursor: pointer; text-decoration: none; transition: color .2s ease; }
#cancel-reply:hover { color: var(--accent); }
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--border); }
.comment-avatar { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; overflow: hidden; }
.comment-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.comment-main { flex: 1; min-width: 0; }
.comment-name a { font-weight: 600; color: var(--text-1); text-decoration: none; }
.comment-name a:hover { color: var(--accent); }
.comment-time { font-size: 12px; color: var(--text-3); margin-left: 8px; }
.comment-reply { font-size: 12px; color: var(--text-3); margin-left: 8px; text-decoration: none; transition: color .2s ease; }
.comment-reply:hover { color: var(--accent); }
.comment-text { font-size: 14px; line-height: 1.75; color: var(--text-1); margin-top: 6px; }
.comment-children { margin-left: 52px; padding-left: 12px; border-left: 2px dashed var(--border); list-style: none; margin-top: 8px; }
.comment-children .comment-item { border-bottom: none; padding-bottom: 0; }

/* 评论分页 */
.comment-page { text-align: center; margin-top: 16px; }
.comment-page a { padding: 4px 10px; border: 1px solid var(--border); border-radius: 4px; color: var(--text-2); font-size: 13px; margin: 0 2px; text-decoration: none; transition: all .15s ease; }
.comment-page a:hover { color: var(--accent); border-color: var(--accent); }
.comment-page a.current { background: var(--accent); color: #fff; border-color: var(--accent); }
.comment-page a.disabled { color: var(--text-3); cursor: not-allowed; opacity: .6; }

/* ========== 页脚友情链接栏 ========== */
.footer-links { background: var(--bg-soft); padding: 20px 0; margin-top: 24px; border-top: 1px solid var(--border); }
.footer-links-title { font-size: 14px; font-weight: 600; color: var(--text-1); margin-bottom: 12px; text-align: center; }
.footer-links-body { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; }
.footer-links-body a { font-size: 13px; color: var(--text-3); text-decoration: none; transition: color .2s ease; }
.footer-links-body a:hover { color: var(--accent); }
.footer-links-body ul { list-style: none !important; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; }
.footer-links-body li { list-style: none !important; margin: 0; padding: 0; }
.footer-links-body ol { list-style: none !important; padding: 0; margin: 0; }

/* ========== SVG 图标尺寸统一约束 ========== */
.dl-btn { display: inline-flex !important; align-items: center; gap: 6px; }
.dl-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.section-title { display: flex; align-items: center; gap: 6px; }
.section-title svg { width: 18px; height: 18px; flex-shrink: 0; }
.widget-title svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ========== 热门游戏前三名排名图标 ========== */
.hot-rank { display: inline-flex; align-items: center; margin-right: 4px; flex-shrink: 0; }
.hot-rank svg { width: 16px; height: 16px; }
.hot-rank-1 { color: #f59e0b; }
.hot-rank-2 { color: #9ca3af; }
.hot-rank-3 { color: #b45309; }

/* ========== 可乐插件：软件信息显示模板（详情页） ========== */
.kel-soft-info { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin: 20px 0; }
.kel-soft-info-title { font-size: 15px; font-weight: 600; color: var(--text-1); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px dashed var(--border); }
.kel-soft-item { display: flex; align-items: baseline; gap: 8px; padding: 6px 0; font-size: 14px; }
.kel-soft-label { color: var(--text-3); min-width: 60px; flex-shrink: 0; }
.kel-soft-value { color: var(--text-1); }
.kel-soft-dl-btn { display: inline-flex; align-items: center; margin-top: 12px; padding: 8px 18px; background: var(--accent); color: #fff; border-radius: 6px; font-size: 14px; text-decoration: none; transition: background .2s; }
.kel-soft-dl-btn:hover { background: var(--accent-hover); }
.kel-soft-qrcode { width: 120px; height: 120px; border-radius: 8px; margin-top: 12px; display: block; }

/* ========== 游戏库列表缩略图（120x120 图标，无图时显示默认游戏图标） ========== */
.post-item .game-thumb { float: left; width: 120px; height: 120px; margin: 0 14px 10px 0; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.post-item .game-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.post-item.post-multi { overflow: hidden; }
.post-item .game-thumb-fallback { display: flex; align-items: center; justify-content: center; color: #fff; opacity: .85; }
.post-item .game-thumb-fallback svg { flex-shrink: 0; }

/* ========== 文章详情页：作者信息卡 ========== */
.author-card { display: flex; align-items: center; gap: 12px; padding: 16px 20px; margin: 24px 0; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); }
.author-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-name { font-size: 15px; font-weight: 600; color: var(--text-1); }
.author-link { font-size: 13px; color: var(--accent); text-decoration: none; margin-left: auto; }
.author-link:hover { text-decoration: underline; }
.author-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  flex-shrink: 0;
}

/* ========== 首页顶部广告位 ========== */
.home-ad-banner { max-width: 1200px; margin: 16px auto; padding: 0 16px; }
.home-ad-banner a { display: block; padding: 12px 20px; background: var(--accent); color: #fff; text-align: center; border-radius: var(--radius); font-size: 14px; text-decoration: none; transition: background .2s; }
.home-ad-banner a:hover { background: var(--accent-hover); }
.home-ad-banner .home-ad-text { display: block; padding: 12px 20px; background: var(--accent); color: #fff; text-align: center; border-radius: var(--radius); font-size: 14px; }

/* ========== 翻页条（pagebar） ========== */
.pagebar { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 24px 0; flex-wrap: wrap; }
.pagebar a, .pagebar span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: 6px; font-size: 14px; text-decoration: none; box-sizing: border-box; }
.pagebar-link { border: 1px solid var(--border); color: var(--text-2); background: var(--bg); transition: all .2s; }
.pagebar-link:hover { border-color: var(--accent); color: var(--accent); }
.pagebar-current { background: var(--accent); color: #fff; border: 1px solid var(--accent); font-weight: 600; }
.pagebar-prev, .pagebar-next { border: 1px solid var(--border); color: var(--text-2); padding: 0 14px; }
.pagebar-prev:hover, .pagebar-next:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 600px) {
  .pagebar a, .pagebar span { min-width: 32px; height: 32px; font-size: 13px; }
}
