/*--------------------------------------------------------------------------------------

1 - bbPress自定义样式，会覆盖newvfx主题对应目录的bbpress设置，按需加载全自动
会覆盖newvfx主题对应目录的bbpress设置
--------------------------------------------------------------------------------------*/

/* ============================================================================ */
/* ================================ bbPress ================================ */
/* ============================================================================ */

/* 论坛版块标题样式 */

/* 论坛版块描述标题样式 */
.gp-theme #bbpress-forums .bbp-forum-home.bbp-forums .bbp-has-subforums .bbp-forum-info > .bbp-forum-title,
.gp-theme #bbpress-forums .bbp-topics .bbp-header,
.gp-theme #bbpress-forums .bbp-replies .bbp-header,
.gp-theme #bbpress-forums .bbp-search-results .bbp-header {
    background-color: #f0f0ed;
    color: #555;
}

/* 论坛内容字体 */
#bbpress-forums div.bbp-forum-content,
#bbpress-forums div.bbp-reply-content,
#bbpress-forums div.bbp-topic-content {
    font-size: 14px;
    letter-spacing: 0.4px;
}

/* 列表样式 */
#bbpress-forums div.bbp-topic-content ul li,
#bbpress-forums div.bbp-reply-content ul li {
    list-style-type: disc;
    line-height: 28px;
}

#bbpress-forums div.bbp-topic-content ol li,
#bbpress-forums div.bbp-reply-content ol li {
    list-style-type: decimal;
    line-height: 28px;
}

#bbpress-forums div.bbp-topic-content ol li li,
#bbpress-forums div.bbp-reply-content ol li li {
    list-style-type: lower-alpha;
    line-height: 28px;
}

#bbpress-forums div.bbp-topic-content ol li li li,
#bbpress-forums div.bbp-reply-content ol li li li {
    list-style-type: upper-roman;
    line-height: 28px;
}

#bbpress-forums div.bbp-topic-content ul,
#bbpress-forums div.bbp-reply-content ul,
#bbpress-forums div.bbp-topic-content ol,
#bbpress-forums div.bbp-reply-content ol {
    margin: 0 15px 15px;
}

/* 论坛头像间距 */
#bbpress-forums div.bbp-reply-author img.avatar,
#bbpress-forums div.bbp-topic-author img.avatar {
    margin-top: 12px;
}

#bbpress-forums div.bbp-reply-author img.avatar,
#bbpress-forums div.bbp-topic-author img.avatar {
    width: 42px;
    margin-top: 10;
}

/* 论坛行背景交替 */
#bbpress-forums div.odd,
#bbpress-forums ul.odd {
    background-color: #f2f2ef;
}

/* 超级置顶 Emoji */
#bbpress-forums ul.super-sticky li.bbp-topic-title a.bbp-topic-permalink::before {
    content: "📌";        /* Emoji 图标 */
    float: left;
    padding-top: 3px;
    font-size: 12px;      /* 调整大小 */
    line-height: 1;
    color: #9400D3;       /* 可选颜色 */
}


/* 收藏按钮未收藏状态 */
a.favorite-toggle::before {
    content: "❤️";               /* 显示空心星或心形符号，表示未收藏 */
    display: inline-block;      /* 保证可以设置 margin 和宽度 */
    margin-right: 4px;          /* 图标和文字之间的间距 */
    color: red;                 /* 图标颜色，可按需求修改 */
    font-weight: bold;          /* 加粗显示图标 */
}

/* 收藏按钮已收藏状态 */
a.favorite-toggle.favorited::before {
    content: "♥";               /* 已收藏显示实心心符号 */
}

/* 订阅按钮未订阅状态 */
#subscription-toggle a.subscription-toggle[href*="bbp_subscribe"]::before {
    content: "🔔";               /* 显示空铃铛表示未订阅 */
    margin-right: 5px;          /* 图标和文字之间的间距 */
}

/* 订阅按钮已订阅状态 */
#subscription-toggle a.subscription-toggle[href*="bbp_unsubscribe"]::before {
    content: "🔕";               /* 显示关闭的铃铛表示已取消订阅 */
    margin-right: 5px;          /* 图标和文字之间的间距 */
}

/* 给每个标签前加图标并缩小 */
.bbp-topic-tags a::before {
    content: "🏷️";        /* 标签图标 */
    margin-right: 4px;     /* 图标和文字间距 */
    font-size: 0.65em;      /* 缩小图标大小，可根据需要调整 */
    vertical-align: middle; /* 垂直居中对齐文字 */
}

/* 论坛分页 */
.bbp-pagination {
    float: left;
    width: 100%;
    margin-bottom: 0px;
}

/* 关闭社区帖子内弹出图片下方的小图 */
.pp_gallery {
    display: none;
}

/* 私密回复背景 */
.topic .bbp-private-reply {
    background: #e4e4e4;
}

/* 隐藏“全部标记为已读”按钮 */
.bbpress_mark_all_read_wrapper {
    display: none;
}

/* 论坛角色样式 */
.gp-theme #bbpress-forums div.bbp-forum-author .bbp-author-role,
.gp-theme #bbpress-forums div.bbp-topic-author .bbp-author-role,
.gp-theme #bbpress-forums div.bbp-reply-author .bbp-author-role {
    font-style: normal;
    font-weight: bold;
    margin: 0 12px;
    border-radius: 11px;
    line-height: 21px;
    padding: 0 10px;
    background: #e96969;
    color: #fff;
}

/* 论坛搜索框提交按钮位置 */
.gp-theme #buddypress div.dir-search input[type=submit] {
    top: 27px;
    height: 60%;
}
.gp-theme #bbp-search-form {
overflow: hidden;
position: relative;
margin-bottom: 20px;
 margin-top: 10px;
}
/* 隐藏论坛搜索表单
.gp-theme #bbpress-forums div.bbp-search-form {
    display: none;
}
*/
.gp-theme #bbpress-forums div.bbp-search-form {
   position: -webkit-sticky;
   display: block;
}

/* 论坛标题样式 */
.gp-theme #bbpress-forums div.bbp-forum-title h3,
.gp-theme #bbpress-forums div.bbp-topic-title h3,
.gp-theme #bbpress-forums div.bbp-reply-title h3 {
    font-size: 12px;
    line-height: 16px;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* 论坛内容中的代码块 */
#bbpress-forums div.bbp-reply-content code,
#bbpress-forums div.bbp-reply-content pre,
#bbpress-forums div.bbp-topic-content code,
#bbpress-forums div.bbp-topic-content pre {
    display: block;
    background-color: #eaeaea;
}

/* 论坛链接颜色 */
.gp-theme #bbpress-forums .bbp-header div.bbp-reply-content a {
    color: #3F51B5;
}

/* 论坛字体大小 */
#bbpress-forums ul.bbp-forums,
#bbpress-forums ul.bbp-lead-topic,
#bbpress-forums ul.bbp-replies,
#bbpress-forums ul.bbp-search-results,
#bbpress-forums ul.bbp-topics {
    font-size: 13px;
}

/* 论坛面包屑与标签 */
#bbpress-forums div.bbp-breadcrumb p,
#bbpress-forums div.bbp-topic-tags p {
    margin-bottom: 0px;
}

#bbpress-forums div.bbp-topic-tags {
    clear: none;
}

/* 论坛头像最小高度（移动端） */
@media only screen and (max-width: 480px) {
    #bbpress-forums .bbp-body div.bbp-reply-author,
    #bbpress-forums .bbp-body div.bbp-topic-author {
        min-height: 80px;
    }
}

/* ============================================================================
   📌 bbPress 专属样式
   ============================================================================ */

/* 平板及以上 */
@media screen and (min-width: 800px) {
    .gp-theme #bbpress-forums .bbp-topics .bbp-author-avatar {
        display: initial;
    }

    .gp-theme.forum #bbpress-forums .bbp-topic-freshness-author .avatar {
        display: initial;
    }
}

/* 手机端 */
@media screen and (max-width: 800px) {
    .gp-theme #bbpress-forums p.bbp-topic-meta {
        display: none;
    }

    .gp-theme #bbpress-forums .gp-forum-home.bbp-forums .bbp-has-subforums .bbp-forum-info > .bbp-forum-title,
    .gp-theme #bbpress-forums .bbp-topics .bbp-header,
    .gp-theme #bbpress-forums .bbp-replies .bbp-header,
    .gp-theme #bbpress-forums .bbp-search-results .bbp-header {
        padding: 1px 20px;
    }

/* 隐藏角色 */
.gp-theme #bbpress-forums div.bbp-forum-author .bbp-author-role,
.gp-theme #bbpress-forums div.bbp-topic-author .bbp-author-role,
.gp-theme #bbpress-forums div.bbp-reply-author .bbp-author-role {
    display: none;
}
}

/* 超小屏 */
@media screen and (max-width: 500px) {
    #bbpress-forums .bbp-body div.bbp-reply-author,
    #bbpress-forums .bbp-body div.bbp-topic-author {
        min-height: 60px;
    }

    #bbpress-forums div.bbp-reply-author img.avatar,
    #bbpress-forums div.bbp-topic-author img.avatar {
        width: 42px;
        margin-top: 10;
    }
    /* 手机上 头像和名字的间距 */
    .gp-theme #bbpress-forums div.bbp-reply-author {
        margin: -15px 10px 10px;
        padding-left: 56px;
    }
}

/* ============================================================================
   Reddit 式跟帖布局（2026-11-25 样式升级）
   桌面：作者行内联紧凑 + 嵌套螺纹竖线；手机：去负 margin/min-height 大空白
   色系沿用原暖灰 + 珊瑚 accent（--nvfx-accent）
   ============================================================================ */

/* 作者行：头像+昵称+角色徽章 一行内联 */
.gp-theme #bbpress-forums div.bbp-reply-author,
.gp-theme #bbpress-forums div.bbp-topic-author {
    float: none !important;
    width: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    gap: 8px;
}
.gp-theme #bbpress-forums div.bbp-reply-author img.avatar,
.gp-theme #bbpress-forums div.bbp-topic-author img.avatar {
    width: 26px; height: 26px;
    margin: 0 !important;
    border-radius: 50%;
    object-fit: cover;
}
.gp-theme #bbpress-forums div.bbp-reply-author a.bbp-author-name,
.gp-theme #bbpress-forums div.bbp-topic-author a.bbp-author-name {
    width: auto; padding: 0;
    font-size: 13px; font-weight: 600;
    line-height: 1.2;
}
.gp-theme #bbpress-forums div.bbp-reply-author .bbp-author-role,
.gp-theme #bbpress-forums div.bbp-topic-author .bbp-author-role {
    margin: 0; padding: 0 8px;
    font-size: 11px; line-height: 18px;
    border-radius: 999px;
}

/* 正文：对齐昵称下方，行高舒适 */
.gp-theme #bbpress-forums div.bbp-reply-content,
.gp-theme #bbpress-forums div.bbp-topic-content {
    margin-left: 34px !important;
    padding-top: 6px;
    font-size: 14px;
    line-height: 1.65;
    letter-spacing: 0.2px;
}

/* 嵌套螺纹：每层一条竖线，hover 变 accent（Reddit 感） */
#bbpress-forums ul.bbp-replies-list,
#bbpress-forums ul.bbp-replies-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
#bbpress-forums ul.bbp-replies-list > li,
#bbpress-forums ul.bbp-lead-topic > li {
    padding: 12px 0 6px 14px;
}
#bbpress-forums ul.bbp-replies-list ul {
    margin: 6px 0 0 13px;
    padding-left: 16px;
    border-left: 2px solid #e4e4df;
    transition: border-color .15s ease;
}
#bbpress-forums ul.bbp-replies-list ul:hover {
    border-left-color: var(--nvfx-accent, #e96969);
}

/* 表头修复：上方 Reddit 化规则把 div.bbp-reply-author 改成 float:none 占满整行，
   导致「作者/帖子」塌成阶梯两行 — 表头行恢复单行两列（作者短列 + 帖子对齐正文列） */
.gp-theme #bbpress-forums li.bbp-header div.bbp-reply-author,
.gp-theme #bbpress-forums li.bbp-header div.bbp-topic-author,
.gp-theme #bbpress-forums li.bbp-header div.bbp-forum-author {
    float: left !important;
    width: 40px !important;
    display: block !important;
    margin-top: 0 !important; /* 盖掉下方头像距顶7px规则（那也命中表头里的author） */
    white-space: nowrap;
    line-height: 20px;
}
.gp-theme #bbpress-forums li.bbp-header div.bbp-reply-content,
.gp-theme #bbpress-forums li.bbp-header div.bbp-topic-content,
.gp-theme #bbpress-forums li.bbp-header div.bbp-forum-content {
    float: none !important;
    width: auto !important;
    display: block !important;
    margin-left: 40px !important;
    padding-top: 0 !important;
    margin-top: 0 !important; /* 移动端某规则给 reply-content mt:10px 会串染表头 */
    line-height: 20px;
    clear: none !important; /* 插件 .bbp-header .bbp-reply-content{clear:both} 在手机 flex 下把「帖子」顶到第二行 */
}

/* 手机端头像距顶 7px（超小屏负 margin 布局会覆盖桌面规则，须单列） */
@media screen and (max-width: 800px) {
    #bbpress-forums ul.bbp-replies-list > li div.bbp-reply-author,
    #bbpress-forums ul.bbp-replies-list > li div.bbp-topic-author,
    #bbpress-forums ul.bbp-lead-topic > li div.bbp-reply-author,
    #bbpress-forums ul.bbp-lead-topic > li div.bbp-topic-author {
        margin: 5px 0 2px !important; /* 手机：头像距上5px、距下2px（用户指定） */
    }
    #bbpress-forums ul.bbp-replies-list > li div.bbp-reply-content,
    #bbpress-forums ul.bbp-lead-topic > li div.bbp-reply-content,
    #bbpress-forums ul.bbp-replies-list > li div.bbp-topic-content,
    #bbpress-forums ul.bbp-lead-topic > li div.bbp-topic-content {
        padding-top: 0 !important; /* 作者行与头像等高后，2px margin 即净距 */
        margin-top: 0 !important;  /* 清掉移动端给 reply-content 的 mt:10px */
    }
    /* 头像压线真凶：bbpress.min.css @max-480 给 .bbp-body 作者行加 border-bottom:1px #efefef
       + min-height:80px + padding，旧浮动布局遗留。Reddit 化 flex 行下该线正好切过头像底部，须硬清 */
    #bbpress-forums .bbp-body div.bbp-reply-author,
    #bbpress-forums .bbp-body div.bbp-topic-author {
        border-bottom: none !important;
        min-height: 0 !important;
        padding: 0 !important;
        width: auto !important;
        box-sizing: border-box;
    }
    /* 「作者/帖子」表头桌面+手机全站隐藏（用户指定 2026-12-01，见下方全局规则） */
    /* 手机：头像与昵称间距 7px（用户指定）——压掉父主题 author-name 的 padding 0 12px */
    .gp-theme #bbpress-forums div.bbp-reply-author a.bbp-author-link,
    .gp-theme #bbpress-forums div.bbp-topic-author a.bbp-author-link {
        gap: 7px !important; /* 真间距在 author-link flex；中间 <br> 也算一个 item，双 gap=16 */
    }
    .gp-theme #bbpress-forums div.bbp-reply-author a.bbp-author-link br,
    .gp-theme #bbpress-forums div.bbp-topic-author a.bbp-author-link br {
        display: none !important; /* 去掉多余 flex item，只剩一个 gap */
    }
    .gp-theme #bbpress-forums div.bbp-reply-author,
    .gp-theme #bbpress-forums div.bbp-topic-author {
        gap: 7px !important;
    }
    .gp-theme #bbpress-forums div.bbp-reply-author a.bbp-author-name,
    .gp-theme #bbpress-forums div.bbp-topic-author a.bbp-author-name,
    .gp-theme #bbpress-forums div.bbp-reply-author .bbp-author-name,
    .gp-theme #bbpress-forums div.bbp-topic-author .bbp-author-name {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important; /* 插件 .bbp-author-name{margin:0 12px} */
    }
}
/* 「作者/帖子」表头行全站隐藏（Reddit 化后单列布局下已无意义） */
.gp-theme #bbpress-forums li.bbp-header {
    display: none !important;
}
.gp-theme #bbpress-forums li.bbp-header {
    padding: 15px 14px;
}

/* 头像距顶压线：桌面端作者行下移 7px（手机 <801px 不动） */
@media screen and (min-width: 801px) {
    .gp-theme #bbpress-forums div.bbp-reply-author,
    .gp-theme #bbpress-forums div.bbp-topic-author {
        margin-top: 7px !important;
    }
}

/* 斑马纹保留（odd 浅灰叠 even 白，见上方 #f2f2ef 规则）；仅回复列表加极浅顶线 */
#bbpress-forums ul.bbp-replies-list > li + li {
    border-top: 1px solid #ecece7;
}

/* 元信息/管理链接：小字弱色 */
#bbpress-forums .bbp-reply-meta,
#bbpress-forums .bbp-topic-meta,
#bbpress-forums .bbp-admin-links {
    font-size: 12px;
    color: #8a8a86;
}
#bbpress-forums .bbp-admin-links a {
    color: #8a8a86;
}
#bbpress-forums .bbp-admin-links a:hover {
    color: var(--nvfx-accent, #e96969);
}

/* 手机端：紧凑螺纹，去掉大空白 */
@media screen and (max-width: 800px) {
    .gp-theme #bbpress-forums div.bbp-reply-author img.avatar,
    .gp-theme #bbpress-forums div.bbp-topic-author img.avatar {
        width: 28px; height: 28px;
    }
    .gp-theme #bbpress-forums div.bbp-reply-content,
    .gp-theme #bbpress-forums div.bbp-topic-content {
        margin-left: 0 !important;
        padding-top: 6px;
        font-size: 14px;
    }
    #bbpress-forums ul.bbp-replies-list ul {
        margin-left: 7px;
        padding-left: 10px;
    }
    #bbpress-forums ul.bbp-replies-list > li {
        padding: 10px 0 4px;
    }
}

/* 作者链接内部（头像span+昵称span）也需内联：外层 flex 不够
   inline-flex：作为 flex 子项仍等效 flex；但在 p.bbp-topic-meta「由 xx 发表在 xx 中」
   行内流里若用 display:flex 会块级占满整行宽 → 文字被拆成三行散乱（2026-11-28 修复） */
.gp-theme #bbpress-forums a.bbp-author-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    vertical-align: middle;
}
.gp-theme #bbpress-forums p.bbp-topic-meta a.bbp-author-link,
.gp-theme #bbpress-forums p.bbp-reply-meta a.bbp-author-link {
    width: auto;
}
.gp-theme #bbpress-forums .bbp-author-avatar,
.gp-theme #bbpress-forums .bbp-author-name {
    display: inline-block;
}

/* 父主题把头像 img float/定位导致 span 塌陷：强制容器尺寸与 img 归位 */
.gp-theme #bbpress-forums .bbp-author-avatar {
    display: inline-flex !important;
    width: 26px; height: 26px;
    flex: 0 0 auto;
}
.gp-theme #bbpress-forums .bbp-author-avatar img {
    float: none !important;
    position: static !important;
    width: 100% !important; height: 100% !important;
    margin: 0 !important;
    border-radius: 50%;
    object-fit: cover;
}
.gp-theme #bbpress-forums span.bbp-author-name {
    display: inline-block !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
}
@media screen and (max-width: 800px) {
    .gp-theme #bbpress-forums .bbp-author-avatar { width: 28px; height: 28px; }
}

/* 手机：顶层(无嵌套)话题/回复离左边线一点距离 */
@media screen and (max-width: 800px) {
    #bbpress-forums ul.bbp-replies-list > li,
    #bbpress-forums ul.bbp-lead-topic > li {
        padding-left: 10px;
    }
}

/*! ================================
   Apple 风格美化层（2026-12-01，追加于文件尾，同权重后来者胜）
   原则：大圆角卡片 + 发丝分隔线 + SF 字重层级 + 克制的悬停。
   色系 token 见 style.css :root（--apple-*）；暗色由 token 与 dark-mode.css 自然适配。
   ================================ */

/* —— 帖子/回复卡：圆角 + 发丝线，替代硬边框感 —— */
.gp-theme #bbpress-forums ul.bbp-replies-list > li,
.gp-theme #bbpress-forums ul.bbp-lead-topic > li {
    border-bottom: 1px solid var(--apple-hairline, rgba(0,0,0,.08));
}
.gp-theme #bbpress-forums .bbp-reply-content,
.gp-theme #bbpress-forums .bbp-topic-content {
    color: var(--apple-text, #1d1d1f);
    line-height: 1.7;
}
.gp-theme #bbpress-forums div.bbp-reply-content a,
.gp-theme #bbpress-forums div.bbp-topic-content a {
    text-underline-offset: 3px;
}

/* —— 作者名/元信息：SF 层级（名重、日期轻灰） —— */
.gp-theme #bbpress-forums .bbp-author-name,
.gp-theme #bbpress-forums a.bbp-author-name {
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--apple-text, #1d1d1f);
}
.gp-theme #bbpress-forums .bbp-reply-content p.bbp-topic-meta,
.gp-theme #bbpress-forums .bbp-reply-post-date,
.gp-theme #bbpress-forums .bbp-topic-post-date {
    color: var(--apple-text-2, #6e6e73);
    font-size: 12px;
}

/* —— 操作区（引用/回复/点赞钮）：胶囊化 + 轻悬停 —— */
.gp-theme #bbpress-forums .bbp-reply-content a.bbp-reply-quote-link,
.gp-theme #bbpress-forums .reply-link a,
.gp-theme #bbpress-forums .bbp-reply-options a {
    border-radius: var(--apple-pill, 9999px);
    padding: 4px 12px;
    transition: background-color .18s ease, color .18s ease;
}
.gp-theme #bbpress-forums .bbp-reply-content a.bbp-reply-quote-link:hover,
.gp-theme #bbpress-forums .reply-link a:hover,
.gp-theme #bbpress-forums .bbp-reply-options a:hover {
    background: var(--apple-surface-2, #f5f5f7);
}

/* —— 引用块：浅灰圆角卡 —— */
.gp-theme #bbpress-forums blockquote {
    background: var(--apple-surface-2, #f5f5f7);
    border: none;
    border-left: 3px solid var(--nvfx-accent, #e96969);
    border-radius: 0 var(--apple-radius-ctl, 12px) var(--apple-radius-ctl, 12px) 0;
    color: var(--apple-text-2, #6e6e73);
}

/* —— 代码块：Apple 终端灰卡 —— */
.gp-theme #bbpress-forums code,
.gp-theme #bbpress-forums pre {
    background: var(--apple-surface-2, #f5f5f7);
    border-radius: 10px;
}

/* —— 表单（发帖/回复框）：大圆角 + 柔焦聚焦 —— */
.gp-theme #bbpress-forums fieldset.bbp-form input[type=text],
.gp-theme #bbpress-forums fieldset.bbp-form input[type=email],
.gp-theme #bbpress-forums fieldset.bbp-form input[type=url],
.gp-theme #bbpress-forums fieldset.bbp-form select,
.gp-theme #bbpress-forums fieldset.bbp-form textarea,
#bbpress-forums div.bbp-the-content-wrapper textarea {
    border-radius: var(--apple-radius-ctl, 12px);
    border-color: var(--apple-hairline, rgba(0,0,0,.08));
    transition: box-shadow .18s ease, border-color .18s ease;
}
.gp-theme #bbpress-forums fieldset.bbp-form input:focus,
.gp-theme #bbpress-forums fieldset.bbp-form textarea:focus,
#bbpress-forums div.bbp-the-content-wrapper textarea:focus {
    outline: none;
    border-color: var(--nvfx-accent, #e96969);
    box-shadow: 0 0 0 4px rgba(233, 105, 105, 0.12);
}
#bbpress-forums div.bbp-the-content-wrapper input.bbp-submit-submit,
.gp-theme #bbpress-forums fieldset.bbp-form input[type=submit],
.gp-theme #bbpress-forums button[type=submit] {
    border-radius: var(--apple-pill, 9999px);
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.gp-theme #bbpress-forums fieldset.bbp-form input[type=submit]:active,
.gp-theme #bbpress-forums button[type=submit]:active {
    transform: scale(0.97);
}

/* —— 话题列表页标题：字重层级 —— */
.gp-theme #bbpress-forums .bbp-forum-title,
.gp-theme #bbpress-forums .bbp-topic-permalink {
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--apple-text, #1d1d1f);
}
.gp-theme #bbpress-forums .bbp-forum-title:hover,
.gp-theme #bbpress-forums .bbp-topic-permalink:hover {
    color: var(--nvfx-accent, #e96969);
}

/*! ================================
   Apple 现代化层 v4 · 论坛列表页（/school 独立模板 = bbPress 话题归档）（2026-12-01）
   对象：分页钮小方块、话题行数字折行、[热][顶]老标签、搜索区。勿动间距骨架。
   ================================ */

/* —— 分页：老式描边方块 → 圆点胶囊组 —— */
#bbpress-forums .gp-theme .bbp-pagination-links a,
.gp-theme .bbp-pagination-links a,
.gp-theme .bbp-pagination-links span.current,
.gp-theme .bbp-pagination-links span {
    display: inline-block;
    min-width: 30px;
    border: none !important;
    border-radius: var(--apple-pill, 9999px) !important; /* 插件 #bbpress-forums ID 权重压制，须 !important */
    text-align: center;
    padding: 5px 9px;
    color: var(--apple-text, #1d1d1f);
    background: transparent;
    transition: background-color .18s ease;
}
.gp-theme .bbp-pagination-links a:hover {
    background: var(--apple-surface-2, #f5f5f7);
}
.gp-theme .bbp-pagination-links span.current {
    background: var(--apple-text, #1d1d1f) !important; /* 同被插件 #bbpress-forums ID 权重压 */
    color: #fff !important;
    font-weight: 600;
}

/* —— 话题行数字列：禁止千分位折行 —— */
.gp-theme #bbpress-forums .bbp-topic-count,
.gp-theme #bbpress-forums .bbp-forum-count,
.gp-theme #bbpress-forums li.bbp-topic-count,
.gp-theme #bbpress-forums li.bbp-forum-freshness {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    color: var(--apple-text-2, #6e6e73);
}
.gp-theme #bbpress-forums .bbp-topic-count b,
.gp-theme #bbpress-forums .bbp-topic-count span.bbp-topic-count {
    white-space: nowrap;
    display: inline-block;
}

/* —— [热] [顶] 老色签 → 中性小胶囊 —— */
.gp-theme #bbpress-forums .bbp-topic-hot,
.gp-theme #bbpress-forums span.bbp-topic-hot,
.gp-theme #bbpress-forums .bbp-topic-sticky {
    display: inline-block;
    background: var(--apple-surface-2, #f5f5f7);
    color: var(--apple-text-2, #6e6e73);
    border-radius: var(--apple-pill, 9999px);
    padding: 1px 8px;
    font-size: 11px;
    font-weight: 600;
    vertical-align: middle;
}

/* —— 置顶行淡黄底 → 极浅中性（保留可辨但去旧论坛味） —— */
.gp-theme #bbpress-forums ul.bbp-topics li.super-sticky,
.gp-theme #bbpress-forums ul.bbp-topics li.sticky {
    background: rgba(233, 105, 105, 0.05) !important;
}

/* —— 论坛页搜索框：胶囊 —— */
.gp-theme #bbpress-forums #bbp-search-form #bbp_search,
.gp-theme .bbp-search-form input[type=search],
.gp-theme .bbp-search-form input[type=text] {
    border-radius: var(--apple-pill, 9999px);
    border: 1px solid var(--apple-hairline, rgba(0,0,0,.08));
    background: var(--apple-surface-2, #f5f5f7);
    padding: 8px 18px;
}
.gp-theme #bbpress-forums #bbp-search-form #bbp_search:focus {
    outline: none;
    border-color: var(--nvfx-accent, #e96969);
    box-shadow: 0 0 0 4px rgba(233,105,105,.12);
}

/* —— 话题标题：无衬线 + hover 珊瑚（行骨架 padding/margin 不动） —— */
.gp-theme #bbpress-forums li.bbp-topic-title a.bbp-topic-permalink {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--apple-text, #1d1d1f);
}
.gp-theme #bbpress-forums li.bbp-topic-title a.bbp-topic-permalink:hover {
    color: var(--nvfx-accent, #e96969);
}

/* v5.3 · 暗色斑马纹兜底：行元素为 ul.loop-item-N.even/odd（非 ul.bbp-topics 直系 li），
   dark-mode.css 把两态都刷成 #1c1c1e → odd 需提亮。用属性选择器直达真实结构 */
html[data-theme="dark"] #bbpress-forums li[class*=loop-item].odd,
html[data-theme="dark"] #bbpress-forums div[class*=loop-item].odd,
html[data-theme="dark"] #bbpress-forums ul[class*=loop-item].odd,
html[data-theme="dark"] #bbpress-forums li[class*=loop-item].sticky.odd,
html[data-theme="dark"] #bbpress-forums .bbp-topics li.odd,
html[data-theme="dark"] .loop-item.odd {
    background: #26262a !important;
}
/* 暗色下话题行内正文/元信息文字随 token 兜底翻亮 */
html[data-theme="dark"] #bbpress-forums li[class*=loop-item],
html[data-theme="dark"] #bbpress-forums .bbp-topic-permalink {
    color: var(--apple-text, #f5f5f7) !important;
}
