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

1 - BuddyPress 会覆盖newvfx主题对应目录的buddypress设置/使用按需加载实现全自动
By jisongbin /2025/8/20

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

/* ================================
   动态列表文字大小样式
================================ */
.gp-theme #buddypress .activity-list .activity-content .activity-inner {
    font-size: 14px;
    font-weight: 400;
    line-height: 26px;
    margin-top: 0;
}


/* ================================
   覆盖 BuddyPress "What's New" 的默认高度
   使动态发布框更紧凑
================================ */
#whats-new {
    height: auto;
    min-height: 70px;
    max-height: none ;
    resize: vertical;
    overflow: visible;
}


/* ================================
   发布动态框颜色
================================ */
#buddypress #whats-new:focus {
    border-color: rgba(80, 80, 80, 0.7) !important;
    outline-color: rgba(80, 80, 80, 0.7);
    box-shadow: 0 0 4px rgba(80, 80, 80, 0.3);
}


/* ================================
   发布框左侧头像
   （注释原无内容，保留占位）
================================ */


/* ================================
   选择显示类型框与下方动态的距离
================================ */
.gp-theme #buddypress div.item-list-tabs#subnav {
    margin: 0 -20px 0px -20px;
    padding: 10px 0;
}


/* ================================
   发表动态框内容距离左侧的间距
   调整输入框整体位置和内边距
================================ */
#buddypress form#whats-new-form #whats-new-content {
    margin-left: 35px !important;   /* 左侧外边距 */
    padding: 0px 0px 20px 20px;     /* 上右下左内边距 */
}


/* ================================
   动态tab在首页上下距离
================================ */
.gp-theme #buddypress div.item-list-tabs {
    margin: 0 -20px 0 -20px;
    padding: 10px 0;
    border-top: 1px solid #F0F0ED;
}


/* ================================
   全局按钮颜色控制（集中区域）
   所有按钮颜色相关样式统一放在此处，便于维护
   保持原始样式，不合并
================================ */

/* 个人主页封面图上的按钮颜色 */
.gp-theme #buddypress .comment-reply-link,
.gp-theme #buddypress a.button,
.gp-theme #buddypress button,
.gp-theme #buddypress div.generic-button a,
.gp-theme #buddypress input[type=button],
.gp-theme #buddypress input[type=reset],
.gp-theme #buddypress input[type=submit],
.gp-theme #buddypress ul.button-nav li a,
a.bp-title-button {
    background-color: #679710;
    border: 0;
    color: #fff;
    font-weight: bold;
    line-height: 1;
    border-radius: 4px;
}

/* BuddyPress 小工具tab颜色 */
.gp-theme .widget.buddypress div.item-options a {
    background-color: #e96969;
}

.gp-theme .widget.buddypress div.item-options a.selected {
    background-color: #679710;
    color: white;
}

/* BuddyPress 登录按钮颜色 */
#gp-profile-desktop-button,
#gp-profile-mobile-button {
    background-color: #333;
}

/* BuddyPress 登录按钮颜色（hover）
#gp-profile-desktop-button:hover,
#gp-profile-mobile-button:hover {
    background-color: #679710;
}
 */
/* 通知计数器颜色 */
.gp-notification-counter {
    background: #e96969;
}

/* 提交按钮 */
.gp-theme #buddypress input[type=submit] {
    background-color: #e96969;
}

/* 动态按钮样式 */
.gp-theme #buddypress div.activity-meta a.button {
    display: inline-block;
    background-color: #e96969;
    margin: 0 2px 0px 0;
}

/* 覆盖 BuddyPress/BBPress 按钮 hover 样式 */
#item-buttons .generic-button a:hover,
#item-buttons .friendship-button a:hover {
    background-color: #608e0d !important;
    color: #fff !important;
    text-decoration: none !important;
}


/* ================================
   媒体与播放器相关样式
================================ */

/* Mejs 播放器样式 */
.mejs-container {
    clear: none;
    max-width: 100%;
}

.mejs-container .mejs-controls .mejs-time {
    display: none;
}

.mejs-container,
.mejs-container .mejs-controls,
.mejs-embed,
.mejs-embed body {
    background: none;
}

#buddypress .mejs-controls .mejs-fullscreen-button>button {
    display: none;
}

#buddypress .mejs-controls .mejs-mute>button {
    display: none;
}

#buddypress .mejs-controls .mejs-pause>button {
    background-position: -20px 0;
    display: none;
}

.mejs-overlay-button {
    background: url(mejs-controls.svg) no-repeat;
    background-position: 0 -39px;
    height: 0px;
    width: 0px;
}

/* FV 播放器冲突解决 */
.flowplayer .fp-play .fp-playbtn,
.flowplayer .fp-pause .fp-playbtn,
.flowplayer .fp-waiting .fp-playbtn {
    display: none;
}

/* 播放条颜色 */
.mejs-controls .mejs-time-rail .mejs-time-loaded {
    background: #ca4c31;
}

/* rtMedia 媒体容器 */
.rtmedia-activity-container *,
.rtmedia-activity-container *:before,
.rtmedia-activity-container *:after {
    line-height: 26px;
}


/* ================================
   响应式布局 - 1024px 及以下
================================ */
@media only screen and (max-width: 1024px) {

    /* ==============================
       全局 Tabs 样式（手机端及桌面端）
       ============================== */

    /* Tab 在手机上的样式——高亮状态背景和文字颜色 */
    .gp-theme #buddypress div.item-list-tabs ul li a span,
    .gp-theme #buddypress div.item-list-tabs ul li.current a span,
    .gp-theme #buddypress div.item-list-tabs ul li.selected a span {
        border: 0;
        background: #ee8600;
        color: #fff;
    }

    /* ==============================
       全站动态流导航（activity-type-tabs）
       ============================== */

    /* 父容器横排设置 */
    .item-list-tabs.activity-type-tabs ul {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    /* 每个 li 项目样式 */
    .item-list-tabs.activity-type-tabs ul li {
        margin-right: 0px;
        white-space: nowrap;
    }

    /* a 标签样式 */
    .item-list-tabs.activity-type-tabs ul li a {
        display: block;
        padding: 8px 12px;
        text-decoration: none;
        color: #333;
    }

    /* 选中状态样式 */
    .item-list-tabs.activity-type-tabs ul li.selected a {
        font-weight: bold;
        color: #77af12;
    }

    /* ==============================
       个人主页次级导航（subnav）——桌面端
       ============================== */

    .item-list-tabs#subnav ul {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0 1px;
        margin: 0;
        list-style: none;
    }

    .item-list-tabs#subnav ul li:not(.last) {
        margin-right: 1px;
        white-space: nowrap;
    }

    .item-list-tabs#subnav ul li:not(.last) a {
        display: block;
        padding: 2px 4px;
        text-decoration: none;
        color: #333;
        font-weight: normal;
        font-size: 12px;
    }

    .item-list-tabs#subnav ul li:not(.last).current a,
    .item-list-tabs#subnav ul li:not(.last).selected a {
        font-weight: bold;
        color: #77af12;
        background: #ee8600;
        border-radius: 2px;
    }

    /* 最后一个选择 li——独立一行 */
    .item-list-tabs#subnav ul li.last {
        display: block;
        width: 100%;
        margin: 5px 0 0 0;
    }

    .item-list-tabs#subnav ul li.last select {
        padding: 1px 2px;
        font-size: 11px;
    }

    .gp-theme.gp-responsive #buddypress div.item-list-tabs#subnav ul li.last {
        float: left;
        margin: 0px 0 0 0;
        padding-left: 20px;
    }

    /* ==============================
       个人主页主导航（object-nav）
       ============================== */

    .item-list-tabs#object-nav ul {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .item-list-tabs#object-nav ul li {
        margin-right: 8px;
        white-space: nowrap;
    }

    .item-list-tabs#object-nav ul li a {
        display: block;
        padding: 8px 12px;
        text-decoration: none;
        color: #333;
        font-weight: normal;
    }

    .item-list-tabs#object-nav ul li.current a,
    .item-list-tabs#object-nav ul li.selected a {
        font-weight: bold;
        color: #77af12;
        background: #ee8600;
        border-radius: 4px;
    }

    .item-list-tabs#object-nav ul li a i {
        margin-right: 4px;
    }

} /* 结束 1024px */


/* ================================
   手机端额外优化
================================ */

/* 手机端动态流左对齐 */
@media (max-width: 768px) {
    .item-list-tabs.activity-type-tabs ul {
        justify-content: flex-start;
    }
}

/* 手机端隐藏rss和动态类型选择（注释状态） */
/*
@media only screen and (max-width: 567px) {
    .gp-theme.gp-responsive #buddypress div.item-list-tabs#subnav ul li.last {
        display: none;
    }

    .gp-theme #buddypress div#subnav.item-list-tabs ul li.feed a {
        display: none;
    }
}
*/


/* ================================
   BuddyPress 活动评论头像样式
   将回复框头像统一设置为 42x42px
================================ */
#buddypress div.activity-comments form div.ac-reply-avatar {
    width: 42px;
    height: 42px;
    float: left;
}

#buddypress div.activity-comments form div.ac-reply-avatar img {
    width: 42px;
    height: 42px;
    object-fit: cover;
}


/* ================================
   发表动态框头像样式
   设置头像浮动和宽度
================================ */
@media (min-width: 768px) {
    #buddypress form#whats-new-form #whats-new-avatar {
        float: left;
        width: 7%;
    }
}

@media (max-width: 768px) {
    #buddypress form#whats-new-form #whats-new-avatar {
        float: left;
        width: 11%;
    }
}


/* 收件箱头像尺寸 */
.gp-theme #buddypress #message-threads img.avatar {
    width: 42px;
}


/* ================================
   主题 gp-theme 下动态内容底部间距
================================ */
.gp-theme #buddypress form#whats-new-form #whats-new-content {
    padding-bottom: 14px !important;
}


/* ================================
   主题 gp-theme 下 textarea 样式
   调整输入框宽度、字体、颜色和边框
================================ */
.gp-theme #buddypress form#whats-new-form textarea {
    width: 99%;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 12.5px;
    padding: 8px 10px 7px 10px;
    margin: 0;
    color: #999;
    border: 1px solid #f7f7f7;
    background: #f7f7f7;
    border-radius: 4px;
}


/* 全站动态顶部广告图样式 */
#custom_slider_wrapper .slide img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}


/* 全局 Tabs 高亮状态背景色（重复规则，保留原始） */
.gp-theme #buddypress div.item-list-tabs ul li a span,
.gp-theme #buddypress div.item-list-tabs ul li.current a span,
.gp-theme #buddypress div.item-list-tabs ul li.selected a span {
    border: 0;
    background: #ee8600;
    color: #fff;
}


/* ================================
   用户头像样式
================================ */

/* 个人主页头像 */
.gp-theme #buddypress div#item-header #item-header-avatar img.avatar {
    border-radius: 100%;
    width: 88px;
    height: 88px;
}

/* 列表头像 */
.gp-theme #buddypress ul.item-list li img.avatar {
    margin-right: 15px;
    border-radius: 100%;
    /* width: 40px;
    height: 40px; */
}

/* 小工具头像圆角 */
.gp-theme .widget.buddypress div.item-avatar img {
    border-radius: 100%;
}

/* 动态列表头像大小 */
#buddypress .activity-list .activity-avatar {
    float: left;
    width: 40px;
    height: 40px;
}

/* 动态列表头像与内容间距 */
.gp-theme #buddypress .activity-list .activity-content {
    margin-left: 49px;
}

/* 重复定义，保留原始 */
#buddypress .activity-list .activity-avatar {
    float: left;
}

/* 动态列表回复内容间距 */
.gp-theme #buddypress .activity-list div.activity-comments ul li:first-child {
    margin-top: 12px;
}

/* 动态内容样式 */
#buddypress .activity-list .activity-content {
    margin: 0 0 -10px 70px;
}

#buddypress .activity-list .activity-content {
    margin-left: 49px;
}

body.activity-permalink #buddypress .activity-list li .activity-content {
    margin-left: 60px;
}

/* 动态时间显示 */
.gp-theme #buddypress .activity-list a.activity-time-since {
    font-size: 12px;
    font-weight: 700;
    display: inline;
}

/* 动态评论样式 */
.gp-theme #buddypress div.activity-comments div.acomment-content {
    margin: 0px 0px -5px 40px;
    font-family: -apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif;
    font-size: 13px;
    letter-spacing: 0.25px;
}

.gp-theme #buddypress div.activity-comments form.ac-form,
.gp-theme #buddypress div.activity-comments li form.ac-form {
    padding-top: 20px;
}

/* BuddyPress 项目选项卡 */
.gp-theme #buddypress div.item-list-tabs ul li {
    margin: 0px 0px 0px 0px;
}

.gp-theme #buddypress div.item-list-tabs ul li.current a,
.gp-theme #buddypress div.item-list-tabs ul li.selected a,
.gp-theme #buddypress div.item-list-tabs ul li a:hover {
    background-color: #ddd;
}

/* 个人资料标题 */
.gp-theme #buddypress div.profile h2 {
    font-size: 13px;
}

/* 动态列表项 */
.gp-theme #buddypress ul.item-list li {
    padding: 12px 0;
}

/* 动态元信息 */
.gp-theme #buddypress .activity-list div.activity-meta {
    margin-top: 5px;
}

/* 喜欢按钮 */
.wpulike-default .wp_ulike_btn {
    color: #616161;
    background-color: #e0e0e0;
}

.wpulike .wp_ulike_general_class {
    margin-bottom: -10px;
    margin-top: -10px;
}

/* 项目头 */
.gp-theme #buddypress div#item-header {
    margin-bottom: 0px;
}

.gp-theme #buddypress div#item-header {
    margin-bottom: 0px;
}

#buddypress div#item-header h2 {
    margin-bottom: 5px;
    background: white;
    width: 100px;
    padding: 3px;
}

#buddypress div#item-header-cover-image .user-nicename a,
#buddypress div#item-header-cover-image .user-nicename {
    font-size: 100%;
    color: #000;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    max-width: 100%;
}


/* ============================================================================
   📌 BuddyPress 专属响应式样式
   ============================================================================ */

@media screen and (max-width: 800px) {
    #buddypress #item-body {
        padding: 0 0 0 0;
    }
}

@media screen and (max-width: 500px) {
    #activity-stream li .media-type-video {
        width: 100%;
    }

    .rtmedia-activity-container li.media-type-video {
        height: 141px;
        width: 250px;
    }
}


/* ================================
   修复 BuddyPress 动态中错误嵌套的 strong 标签
   强制重置字体粗细和大小
================================ */

/* 1. 重置活动内部所有 strong 标签的粗体效果 */
.gp-theme #buddypress .activity-list .activity-inner strong,
.gp-theme #buddypress .activity-list .activity-header strong {
    font-weight: normal !important; /* 强制变为正常粗细 */
}

/* 2. 如果字号也变大了，强制重置字号 */
.gp-theme #buddypress .activity-list .activity-inner strong p,
.gp-theme #buddypress .activity-list .activity-header strong p {
    font-size: 14px !important; /* 与你定义的 .activity-inner 字号保持一致 */
    font-weight: normal !important;
}

/* 3. 特别针对头像链接中的 strong (如第6条看到的 <div class="activity-avatar"><strong>...) */
.gp-theme #buddypress .activity-list .activity-avatar strong {
    font-weight: normal !important;
}

/* ================================
   终极修复：切断父级动态对评论区的样式继承
================================ */

/* 1. 强制重置整个评论容器的基础字体属性 */
.gp-theme #buddypress .activity-comments {
    font-size: 13px !important;
    font-weight: normal !important;
    line-height: 1.5 !important;
    color: #333 !important; /* 防止颜色过深显得像粗体 */
}

/* 2. 强制重置评论列表中的每一项 */
.gp-theme #buddypress .activity-comments ul li {
    font-size: 13px !important;
    font-weight: normal !important;
}

/* 3. 针对评论内容块及其内部所有元素进行“清洗” */
.gp-theme #buddypress .activity-comments .acomment-content,
.gp-theme #buddypress .activity-comments .acomment-content * {
    font-size: 13px !important;
    font-weight: normal !important;
    line-height: 1.6 !important;
}

/* 4. 针对评论头部（用户名、时间） */
.gp-theme #buddypress .activity-comments .acomment-meta,
.gp-theme #buddypress .activity-comments .acomment-meta * {
    font-size: 12px !important;
    font-weight: normal !important;
}

/* 5. 特别处理：如果父级 li 有 strong 标签包裹，强制其内部链接和文本恢复正常 */
.gp-theme #buddypress .activity-item.has-comments strong,
.gp-theme #buddypress .activity-item.has-comments strong * {
    font-weight: normal !important;
    font-size: 13px !important;
}
/* ============================================================================ */
/* ============================== BP上传功能 By jisongbin原创开发=============================== */
/* ============================================================================ */
/* ================
   炫彩按钮样式
   ================ */
.artistic-button {
    /* 渐变背景：粉 → 红 → 橙 */
    background: linear-gradient(135deg, #ff7eb9, #ff758c, #e96969);

    /* 文字样式 */
    color: #fff;
    font-weight: 400;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    /* 内边距与圆角 */
    padding: 7px 7px;
    border: none;
    border-radius: 12px;

    /* 阴影与过渡 */
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 悬停状态：轻微上移并发光 */
.artistic-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.25),
                0 0 10px rgba(255,255,255,0.3);
}

/* 点击状态：微缩并收敛阴影 */
.artistic-button:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}


/* ================
   媒体网格布局
   ================ */

/* 容器：使用 Grid 布局 */
.bp-media-grid {
    display: grid;
    gap: 4px;          /* 图片间距 */
    line-height: 0;    /* 去掉文字行高，避免间隙 */
    /* margin-top: 14px; // 可选：顶部间距 */
}

/* 单张图片：显示为中图（保持比例） */
.bp-media-count-1 { grid-template-columns: 1fr; }
.bp-media-count-1 img {
    width: 100%;
    height: auto;
}

/* 多张图片（2-9 张）：统一最多四列 */
.bp-media-count-2,
.bp-media-count-3,
.bp-media-count-4,
.bp-media-count-5,
.bp-media-count-6,
.bp-media-count-7,
.bp-media-count-8,
.bp-media-count-9 {
    grid-template-columns: repeat(4, 1fr);
}

/* 图片样式：缩略图填充、圆角 */
.bp-media-grid img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;   /* 保持裁剪，不变形 */
    border-radius: 4px;
}

/* ============================================================================
   📌 Safari 移动端防自动放大（按钮字体 ≥16px）
   ============================================================================ */

@media (max-width: 768px) {
    #whats-new-submit #aw-whats-new-submit {
        font-size: 16px;
        line-height: 1.2;
        padding: 6px 12px;
        border-radius: 6px;
        transform: scale(0.81);
        transform-origin: center;
    }

    .gp-theme #buddypress input[type=submit] {
        font-size: 16px;
        line-height: 1.2;
        padding: 6px 14px;
        border-radius: 6px;
        background-color: #e96969;
        color: #fff;
        border: none;
        transform: scale(0.81);
        transform-origin: center;
    }
}

/* ============================================================================
   桌面现代化（2026-11-25）：动态流卡片化 + 按钮圆角统一，色系不变
   ============================================================================ */
@media screen and (min-width: 801px) {
    .gp-theme #buddypress .activity-list li.activity {
        background: #fbfbf9;
        border: 1px solid #ecece7;
        border-radius: 12px;
        padding: 14px 16px;
        margin-bottom: 12px;
        transition: border-color .15s ease;
    }
    .gp-theme #buddypress .activity-list li.activity:hover {
        border-color: #ddddd6;
    }
    .gp-theme #buddypress a.button,
    .gp-theme #buddypress button,
    .gp-theme #buddypress div.generic-button a,
    .gp-theme #buddypress input[type=submit],
    .gp-theme #buddypress ul.button-nav li a {
        border-radius: 8px;
        transition: background-color .15s ease, border-color .15s ease, color .15s ease;
    }
}

/*! ================================
   Apple 风格美化层（2026-12-01，追加于文件尾，同权重后来者胜）
   token 见 style.css :root（--apple-*）。
   ================================ */

/* —— 动态流：头像圆 + 内容卡圆角 + 发丝分隔 —— */
.gp-theme #buddypress div.activity-avatar img.avatar,
.gp-theme #buddypress .avatar {
    border-radius: 50%;
}
.gp-theme #buddypress .activity-list li div.activity-content {
    border-radius: var(--apple-radius-card, 18px);
}
.gp-theme #buddypress .activity-list li.activity-item {
    border-bottom: 1px solid var(--apple-hairline, rgba(0,0,0,.08));
}

/* —— 动态头部：作者名重、时间轻 —— */
.gp-theme #buddypress .activity-header a {
    font-weight: 600;
    letter-spacing: -0.01em;
}
.gp-theme #buddypress .activity-header,
.gp-theme #buddypress .activity-meta {
    color: var(--apple-text-2, #6e6e73);
}

/* —— 发布框：大圆角 + 珊瑚聚焦环 —— */
.gp-theme #buddypress #whats-new-form textarea,
.gp-theme #buddypress #whats-new,
.gp-theme #buddypress #whats-new-content #whats-new-textarea textarea {
    border-radius: var(--apple-radius-ctl, 12px);
}
.gp-theme #buddypress #whats-new:focus {
    border-color: var(--nvfx-accent, #e96969) !important;
    outline: none;
    box-shadow: 0 0 0 4px rgba(233, 105, 105, 0.12) !important;
}

/* —— 导航 tabs：胶囊化（现 pill 基础上圆角更连续） —— */
.gp-theme #buddypress div.item-list-tabs ul li a {
    border-radius: var(--apple-pill, 9999px);
    transition: background-color .18s ease, color .18s ease;
}
.gp-theme #buddypress div.item-list-tabs ul li a:hover {
    background: var(--apple-surface-2, #f5f5f7);
}
.gp-theme #buddypress div.item-list-tabs ul li.selected a,
.gp-theme #buddypress div.item-list-tabs ul li.current a {
    background: var(--apple-surface-2, #f5f5f7);
    font-weight: 600;
}

/* —— 通用表单：大圆角 + 柔焦 —— */
.gp-theme #buddypress form.standard-form textarea,
.gp-theme #buddypress form.standard-form input[type=text],
.gp-theme #buddypress form.standard-form input[type=email],
.gp-theme #buddypress form.standard-form input[type=password],
.gp-theme #buddypress form.standard-form select {
    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 #buddypress form.standard-form textarea:focus,
.gp-theme #buddypress form.standard-form input:focus {
    outline: none;
    border-color: var(--nvfx-accent, #e96969);
    box-shadow: 0 0 0 4px rgba(233, 105, 105, 0.12);
}

/* —— 按钮：胶囊 + 按压反馈 —— */
.gp-theme #buddypress a.button,
.gp-theme #buddypress button,
.gp-theme #buddypress div.generic-button a,
.gp-theme #buddypress input[type=submit],
.gp-theme #buddypress ul.button-nav li a {
    border-radius: var(--apple-pill, 9999px);
}
.gp-theme #buddypress a.button:active,
.gp-theme #buddypress div.generic-button a:active,
.gp-theme #buddypress input[type=submit]:active {
    transform: scale(0.97);
}
.gp-theme #buddypress a.activity-read-button,
.gp-theme #buddypress .acomment-options a {
    transition: background-color .18s ease, color .18s ease;
}

/*! ================================
   Apple 现代化层 v2 · 动态流卡片化（2026-12-01）
   首页 = BuddyPress activity（bp-custom.php 扩展）。
   每条动态独立圆角卡；徽章中性化；原生下拉改造成胶囊；评论区内嵌卡。
   ================================ */

/* —— 每条动态 = 独立圆角卡（灰底页面浮白卡，Apple 分组列表观感） —— */
.gp-theme #buddypress .activity-list li.activity-item,
.gp-theme #buddypress .activity-list li .activity {
    background: var(--apple-surface, #fff);
    border: 1px solid var(--apple-hairline, rgba(0,0,0,.08));
    border-radius: var(--apple-radius-card, 18px);
    padding: 18px 20px !important;
    margin-bottom: 14px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    transition: box-shadow .2s ease, border-color .2s ease;
}
.gp-theme #buddypress .activity-list li.activity-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.07);
}
/* 卡片化后不再需要行间硬线 */
.gp-theme #buddypress .activity-list li.activity-item {
    border-bottom: 1px solid var(--apple-hairline, rgba(0,0,0,.08));
}

/* —— 徽章中性化：橙实心块 → 浅灰胶囊（单一强调色原则） —— */
.gp-theme #buddypress div.item-list-tabs ul li a span.count,
.gp-theme #buddypress div.item-list-tabs ul li a span {
    background: var(--apple-surface-2, #f5f5f7) !important;
    color: var(--apple-text-2, #6e6e73) !important;
    border-radius: var(--apple-pill, 9999px);
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 600;
}

/* —— 原生筛选下拉：胶囊 + 自绘箭头空间 —— */
.gp-theme #buddypress #activity-filter-by,
.gp-theme #buddypress select {
    appearance: none;
    -webkit-appearance: none;
    background: var(--apple-surface-2, #f5f5f7);
    border: none;
    border-radius: var(--apple-pill, 9999px);
    padding: 6px 30px 6px 14px;
    font-size: 13px;
    color: var(--apple-text, #1d1d1f);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M1 1l4 4 4-4' stroke='%236e6e73' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 11px center;
}
.gp-theme #buddypress #activity-filter-by:focus,
.gp-theme #buddypress select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(233, 105, 105, 0.15);
}
/* 「显示：」标签弱化 */
.gp-theme #buddypress .activity-filter-select label {
    color: var(--apple-text-2, #6e6e73);
    font-size: 13px;
}

/* —— 动态头部：名字重、动作灰、时间灰 —— */
.gp-theme #buddypress .activity-header .activity-links,
.gp-theme #buddypress .activity-header {
    color: var(--apple-text-2, #6e6e73);
}
.gp-theme #buddypress .activity-header a {
    color: var(--apple-text, #1d1d1f);
}
.gp-theme #buddypress .activity-header a:hover {
    color: var(--nvfx-accent, #e96969);
}
.gp-theme #buddypress .activity-header a strong,
.gp-theme #buddypress .activity-header .user-link {
    font-weight: 600;
}
.gp-theme #buddypress .activity-header .activity-perma-link,
.gp-theme #buddypress .activity-header a.mini-button,
.gp-theme #buddypress .activity-header .posted a {
    font-weight: 400;
}

/* —— 正文排版：更大行高，色接近黑 —— */
.gp-theme #buddypress .activity-list .activity-content .activity-inner {
    color: var(--apple-text, #1d1d1f);
    line-height: 1.75;
    margin-top: 6px;
}
.gp-theme #buddypress .activity-list .activity-content .activity-inner a {
    color: var(--nvfx-accent, #e96969);
    text-underline-offset: 3px;
}

/* —— 卡内操作钮（评论/收藏…）：浅灰胶囊，hover 才显 —— */
.gp-theme #buddypress .activity-content .activity-links a,
.gp-theme #buddypress .activity-content .acomment-reply,
.gp-theme #buddypress .activity-content .ab-button {
    border: none;
    background: transparent;
    border-radius: var(--apple-pill, 9999px);
    padding: 5px 14px;
    color: var(--apple-text-2, #6e6e73);
    font-size: 13px;
    transition: background-color .18s ease, color .18s ease;
}
.gp-theme #buddypress .activity-content .activity-links a:hover,
.gp-theme #buddypress .activity-content .acomment-reply:hover,
.gp-theme #buddypress .activity-content .ab-button:hover {
    background: var(--apple-surface-2, #f5f5f7);
    color: var(--apple-text, #1d1d1f);
}

/* v5.3 · 评论区顶线穿过「评论/收藏」钮（meta 底 y652 vs 线 y648，gap=-4）：mt 16px。
   权重提到 .activity-list 级是因 Rocket 合并版(plain bp.css)与新 ?v= 版双份加载，同级后者会被压 */
.gp-theme #buddypress .activity-list div.activity-comments {
    margin-top: 20px !important;
}

/* —— 评论：时间线灰线 + 评论者头像正圆已在 v1，此处补评论列表卡内缩进 —— */
.gp-theme #buddypress div.activity-comments {
    background: transparent;
    margin: 6px 0 0;
    border-top: 1px solid var(--apple-hairline, rgba(0,0,0,.08));
    padding-top: 4px;
}
.gp-theme #buddypress div.activity-comments ul {
    list-style: none;
    margin: 0;
}
.gp-theme #buddypress ul.activity-comments > li {
    background: transparent;
    border: none;
    padding: 10px 0 10px 4px;
}
.gp-theme #buddypress ul.activity-comments > li .content {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}
.gp-theme #buddypress div.activity-comments form .ac-form-content textarea {
    border-radius: var(--apple-pill, 9999px);
    border: none;
    background: var(--apple-surface-2, #f5f5f7);
    min-height: 40px;
}

/*! RSS 订阅钮：橙实心方块(最Web2.0元素)→中性浅灰胶囊（实测 select 已胶囊化，唯 RSS 钮 r=4 橙底待改） */
.gp-theme #buddypress a.bp-tooltip[href*="feed"],
.gp-theme #buddypress .activity-header a.feed,
.gp-theme #buddypress a.rss-link {
    background: var(--apple-surface-2, #f5f5f7) !important;
    color: var(--apple-text-2, #6e6e73) !important;
    border: none !important;
    border-radius: var(--apple-pill, 9999px) !important;
    padding: 4px 14px !important;
    font-size: 12px;
    font-weight: 600;
    transition: background-color .18s ease, color .18s ease;
}
.gp-theme #buddypress a.bp-tooltip[href*="feed"]:hover,
.gp-theme #buddypress .activity-header a.feed:hover,
.gp-theme #buddypress a.rss-link:hover {
    background: var(--apple-text-2, #6e6e73) !important;
    color: #fff !important;
}

/* v5.1 · 修复：动态「评论/收藏」钮 — 原 bp.css 旧规则 div.activity-meta a.button 是珊瑚红实心，
   v2 给 .acomment-reply 的灰字透明底权重不够(差一个元素级)，红底+灰字看不清（用户报 2026-12-01）。
   定案：保留红底 CTA，字改白。 */
.gp-theme #buddypress div.activity-meta a.button,
.gp-theme #buddypress div.activity-meta a.acomment-reply,
.gp-theme #buddypress div.activity-meta .ab-button {
    color: #fff;
}
.gp-theme #buddypress div.activity-meta a.button:hover,
.gp-theme #buddypress div.activity-meta a.acomment-reply:hover,
.gp-theme #buddypress div.activity-meta .ab-button:hover {
    color: #fff;
    filter: brightness(.94);
}
