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

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

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


/* ================================
   动态列表文字大小样式
================================ */
.gp-theme #buddypress .activity-list .activity-content .activity-inner {
    font-size: 14px;
    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;
}

/* 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;
    }
}

/* ============================================================================ */
/* ============================== 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;
    }
}