/* ===== 全站字体规范（放大一档，保证小屏/高分屏清晰可读） ===== */
:root {
  --fs-scale: 1.15;
  --text-primary: #2c3e50;
  --text-secondary: #7f8c8d;
}

[data-theme="dark"] {
  --text-primary: #e1e6f5;
  --text-secondary: #939bbd;
}

html {
  font-size: 16px;
}

body {
  font-size: 16px;
  color: var(--text-primary);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
}

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
  color: inherit;
}

[data-theme="dark"] strong {
  color: #f3f6ff;
}

/* 顶部搜索框与导航按钮 */
.navbar .nav-search input,
.navbar .nav-search-btn,
.navbar .nav-btn,
.search-modal input {
  font-size: 14px !important;
}

/* ===== 全站内容宽度与参考站一致（参考站 --container-max-width: 1400px） ===== */
.container,
.navbar-container,
.navbar-inner,
.nav-inner,
.pf-wrap,
.pd-wrap,
.og-page,
.uc-wrap,
.as-wrap,
.as-card,
.cp-page,
.mc-wrap,
.mc-crumb,
.ai-page,
.mcp-page,
.im-wrap,
.ver-page,
.oss-page,
.pvf-page,
.home-top,
.hero-inner,
.ads-section,
.ads-wrap {
  max-width: 1400px;
}

/* ===== 全站字号（正文 16、标题 16、元信息 13、标签 12、按钮 15） ===== */

/* 顶部主导航链接 15px，下拉子项 13px */
.navbar .nav-link,
.navbar .nav-item > a {
  font-size: 15px !important;
}
.navbar .dropdown a,
.navbar .dropdown-menu a {
  font-size: 13px !important;
}

/* 帖子 / 卡片标题与侧栏标题 16px */
.post-card-title,
.post-card-title a,
.sidebar-header,
.section-head,
.pd-uname,
.pd-note-title,
.cp-title {
  font-size: 16px !important;
  line-height: 1.55;
}

/* 时间、作者、浏览、评分等元信息 13px */
.post-card-time,
.post-card-author-name p,
.post-stat,
.notice-meta,
.pd-pub,
.pd-crumb,
.pd-metas,
.lib-crumb,
.ver-crumb,
.mc-crumb {
  font-size: 13px !important;
}

/* 标签（置顶/悬赏/NEW 等）12px */
.tag,
.p-tag,
.pd-inc span,
.rank-badge {
  font-size: 12px !important;
}

/* 按钮与排序标签 */
.btn,
.lib-btn,
.pd-act,
.pd-buy,
.pd-copy,
.pd-open,
.share-modal-footer .btn,
.og-follow {
  font-size: 15px !important;
}
.area-tab,
.sort-tab,
.lib-reset-btn,
.lib-search-btn {
  font-size: 13px !important;
}

/* 列表项正文（首页侧栏 / 板块列表）14px */
.notice-title,
.notice-link,
.pin-title,
.library-item a,
.post-card-tags .tag {
  font-size: 14px !important;
}

/* ===== 各页内联写死的小字号统一提升，避免再出现 10~11px 看不清 ===== */
/* 右侧栏模块标题：全站统一（官方合作伙伴 / 热门帖子 / 贡献榜单 / 评选获奖版本 / 相关推荐） */
.side-title,
.pd-block-head,
.sidebar-card-title,
.og-side-title,
.sidebar-header {
  margin: 0;
  padding: 12px 14px 10px;
  font-size: 15px !important;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.3px;
  border-bottom: 1px solid var(--border-color-light, #ebeef5);
  background: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
[data-theme="dark"] .side-title,
[data-theme="dark"] .pd-block-head,
[data-theme="dark"] .sidebar-card-title,
[data-theme="dark"] .og-side-title,
[data-theme="dark"] .sidebar-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.sidebar-header,
.section-title {
  font-size: 15px !important;
  font-weight: 700;
}
.post-title-link,
.hot-post-item {
  font-size: 15px !important;
}
.post-meta-info,
.post-stats .views,
.sidebar-more,
.section-more {
  font-size: 13px !important;
}
.post-tag {
  font-size: 11px !important;
}

/* 获奖版本 / 排行榜 */
.rank-row,
.rank-name {
  font-size: 14px !important;
}
.rank-text,
.rank-text.dim {
  font-size: 12.5px !important;
}

/* 学堂交流右侧栏：版主 / 合作伙伴 / 会员横幅 */
.mod-stats,
.mod-qq,
.partner-qz p,
.partner-co p,
.partner-co .apply,
.co-apply,
.member-banner-text span,
.member-banner button {
  font-size: 13px !important;
}

/* 其他游戏 */
.og-desc,
.og-author,
.og-stats,
.og-empty,
.og-btn,
.og-switch {
  font-size: 14px !important;
}

/* 帖子详情 / 回复 */
.cp-metabar,
.cp-topbar nav,
.reply-name,
.reply-btn,
.reply-empty {
  font-size: 14px !important;
}

/* 即时通讯 */
.im-friends-title,
.im-friend .last,
.im-badge,
.im-del,
.im-chat-head .status {
  font-size: 13px !important;
}
.msg .bb,
.im-composer textarea {
  font-size: 15px !important;
}

/* ===== 右侧栏统一卡片（以版本专区侧栏为基准，全站一致） ===== */
.sidebar-card {
  background: var(--bg-card, #fff);
  border: 1px solid var(--border-color-light, #ebeef5);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
}
[data-theme="dark"] .sidebar-card {
  border-color: rgba(255, 255, 255, .08);
  background: var(--bg-card, #15171f);
}
.sidebar-card-header {
  display: flex;
  align-items: center;
  padding: 0;
}
.sidebar-card-body {
  padding: 8px 12px 12px;
}
/* 侧栏列表行统一样式 */
.sc-item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 4px;
  border-bottom: 1px dashed rgba(0, 0, 0, .08);
  font-size: 14px;
  color: inherit;
  text-decoration: none;
}
[data-theme="dark"] .sc-item {
  border-bottom-color: rgba(255, 255, 255, .08);
}
.sc-item:last-child {
  border-bottom: none;
}
.sidebar-card-body .sc-item {
  align-items: center;
}
/* 星悦会员横幅 */
.sc-vip {
  background: linear-gradient(160deg, #ff6b8b, #ef3d6a 55%, #d92a55);
  color: #fff;
  text-align: center;
  border-radius: 12px;
  padding: 18px 16px;
  cursor: pointer;
}
.sc-vip-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
}
.sc-vip-sub {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  opacity: .85;
}
.sc-vip-btn {
  margin-top: 12px;
  padding: 7px 22px;
  border: 0;
  border-radius: 18px;
  background: #fff;
  color: #d92a55;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
