/* 社交和博客页面 - 白色背景黑色字主题 */

/* ==================== 全局覆盖 - 强制覆盖所有黑色背景 ==================== */
div.we-social-container,
div.social-container,
div.tags-sidebar,
div.we-social-create-box,
div.we-social-post,
div.social-post,
div.post-comments,
div.no-posts,
div.no-posts .empty-state,
div.tag-header,
div.we-social-posts-container {
    background: #ffffff !important;
}

/* 强制覆盖所有边框颜色 */
div.tags-sidebar,
div.we-social-post,
div.social-post,
div.post-comments,
div.no-posts,
div.tag-header,
div.product-card {
    border-color: #e8e8e8 !important;
}

/* 强制覆盖所有文本颜色 */
div.post-content,
div.post-username,
div.post-time,
div.tags-list .tag-item,
span.tags-sidebar-title,
div.tag-info,
div.tag-title,
div.tag-count,
div.tag-stats,
div.blog-content,
div.page-title,
div.blog-post-title a,
div.blog-post-meta,
div.blog-post-description,
div.comments-header h4,
div.comment-content,
div.comment-username,
div.comment-floor,
div.product-title,
div.product-price {
    color: #333 !important;
}

/* 强制覆盖所有滚动条 */
.tags-sidebar::-webkit-scrollbar-track {
    background: #f5f5f5 !important;
}

.tags-sidebar::-webkit-scrollbar-thumb {
    background: #ccc !important;
}

/* 强制覆盖所有输入框 */
input.comment-input,
textarea.comment-input,
input.reply-input,
textarea.reply-input {
    background: #ffffff !important;
    border-color: #e0e0e0 !important;
    color: #333 !important;
}

input.comment-input:focus,
textarea.comment-input:focus,
input.reply-input:focus,
textarea.reply-input:focus {
    border-color: #333 !important;
    outline: none !important;
}

input.comment-input::placeholder,
textarea.comment-input::placeholder,
input.reply-input::placeholder,
textarea.reply-input::placeholder {
    color: #999 !important;
}

/* 强制覆盖所有分割线 */
.post-header,
.post-footer,
.post-comments,
.comment-item {
    border-color: #f0f0f0 !important;
}

/* ==================== 社交页面 ==================== */
.we-social-container,
.social-container {
    background: #ffffff !important;
    min-height: calc(100vh - 200px) !important;
}

/* 标签侧边栏 */
.tags-sidebar {
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 20px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #e8e8e8 !important;
}

.tags-sidebar::-webkit-scrollbar-track {
    background: #f5f5f5 !important;
    border-radius: 3px !important;
}

.tags-sidebar::-webkit-scrollbar-thumb {
    background: #ccc !important;
    border-radius: 3px !important;
}

.tags-sidebar-header {
    border-bottom: 1px solid #eee !important;
}

.tags-sidebar-title {
    color: #333 !important;
}

.btn-close-sidebar {
    color: #666 !important;
}

.btn-close-sidebar:hover {
    color: #333 !important;
}

/* 标签列表 */
.tags-list .tag-item {
    background: #f5f5f5 !important;
    border: 1px solid #e0e0e0 !important;
    color: #333 !important;
    transition: all 0.3s ease !important;
}

.tags-list .tag-item:hover {
    background: #e8e8e8 !important;
    border-color: #d0d0d0 !important;
    color: #000 !important;
    transform: translateX(4px) !important;
}

.tags-list .tag-item.active {
    background: linear-gradient(135deg, #333 0%, #1a1a1a 100%) !important;
    color: #fff !important;
    border-color: #333 !important;
}

/* 发布动态按钮 */
.we-social-create-box .btn-create-post {
    background: linear-gradient(135deg, #333 0%, #1a1a1a 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.we-social-create-box .btn-create-post:hover {
    background: linear-gradient(135deg, #000 0%, #333 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* 动态卡片 */
.we-social-post,
.social-post {
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #e8e8e8 !important;
    margin-bottom: 20px !important;
    transition: box-shadow 0.3s ease !important;
}

.we-social-post:hover,
.social-post:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
}

/* 动态头部 */
.post-header {
    border-bottom: 1px solid #f0f0f0 !important;
    padding: 15px 20px !important;
}

.post-username {
    color: #333 !important;
    font-weight: 600 !important;
}

.post-time {
    color: #999 !important;
    font-size: 13px !important;
}

/* 编辑/删除按钮 */
.btn-edit-post,
.btn-delete-post {
    background: #f5f5f5 !important;
    color: #666 !important;
    border: 1px solid #e0e0e0 !important;
    transition: all 0.3s ease !important;
}

.btn-edit-post:hover,
.btn-delete-post:hover {
    background: #e8e8e8 !important;
    color: #333 !important;
}

/* 动态内容 */
.post-content {
    color: #333 !important;
    padding: 15px 20px !important;
    line-height: 1.6 !important;
}

/* 标签 */
.post-tags .post-tag {
    background: #f5f5f5 !important;
    color: #666 !important;
    padding: 6px 12px !important;
    border-radius: 16px !important;
    font-size: 13px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border: 1px solid #e0e0e0 !important;
}

.post-tags .post-tag:hover {
    background: #e8e8e8 !important;
    color: #333 !important;
    border-color: #d0d0d0 !important;
}

/* 视频容器 */
.post-video .video-wrapper {
    background: #000 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

/* 产品卡片 */
.post-product .product-card {
    background: #f9f9f9 !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 10px !important;
    padding: 12px !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    transition: all 0.3s ease !important;
}

.post-product .product-card:hover {
    background: #f0f0f0 !important;
    border-color: #d0d0d0 !important;
    transform: translateY(-2px) !important;
}

.post-product .product-info .product-title {
    color: #333 !important;
    font-weight: 600 !important;
    margin-bottom: 4px !important;
}

.post-product .product-info .product-price {
    color: #333 !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

/* 图片 */
.post-images .post-image {
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08) !important;
}

/* 动态底部 */
.post-footer {
    border-top: 1px solid #f0f0f0 !important;
    padding: 12px 20px !important;
}

.btn-like,
.btn-comment {
    background: #f5f5f5 !important;
    color: #666 !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 20px !important;
    padding: 8px 16px !important;
    transition: all 0.3s ease !important;
}

.btn-like:hover,
.btn-comment:hover {
    background: #e8e8e8 !important;
    color: #333 !important;
    border-color: #d0d0d0 !important;
}

.btn-like.liked {
    background: #ffe5e5 !important;
    color: #ff4757 !important;
    border-color: #ffd1d1 !important;
}

/* 评论区域 */
.post-comments {
    background: #f9f9f9 !important;
    border-top: 1px solid #e8e8e8 !important;
    padding: 15px 20px !important;
}

.comment-input {
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    padding: 12px !important;
    color: #333 !important;
}

.comment-input::placeholder {
    color: #999 !important;
}

.btn-submit-comment {
    background: linear-gradient(135deg, #333 0%, #1a1a1a 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.btn-submit-comment:hover {
    background: linear-gradient(135deg, #000 0%, #333 100%) !important;
    transform: translateY(-2px) !important;
}

/* 空状态 */
.no-posts .empty-state,
.no-posts {
    background: #f9f9f9 !important;
    border: 2px dashed #e0e0e0 !important;
    border-radius: 12px !important;
    padding: 40px !important;
    text-align: center !important;
}

.no-posts .empty-state i {
    color: #ccc !important;
    font-size: 48px !important;
    margin-bottom: 16px !important;
}

.no-posts .empty-state p,
.no-posts h4 {
    color: #666 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
}

.no-posts .empty-state small,
.no-posts p {
    color: #999 !important;
    font-size: 14px !important;
}

/* 标签头部 */
.tag-header {
    background: #f9f9f9 !important;
    border-radius: 16px !important;
    padding: 30px !important;
    margin-bottom: 25px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #e8e8e8 !important;
}

.tag-info {
    color: #333 !important;
}

.tag-title {
    color: #333 !important;
}

.tag-stats,
.tag-count {
    color: #999 !important;
}

/* 回复按钮 */
.btn-reply {
    background: transparent !important;
    border: none !important;
    color: #999 !important;
}

/* 回复输入框 */
.reply-input {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    color: #333 !important;
}

.btn-submit-reply {
    background: linear-gradient(135deg, #333 0%, #1a1a1a 100%) !important;
    color: #fff !important;
}

.btn-submit-reply:hover {
    background: linear-gradient(135deg, #000 0%, #333 100%) !important;
}

/* 点赞评论/回复按钮 */
.btn-like-comment,
.btn-like-reply {
    background: #f5f5f5 !important;
    border: 1px solid #e0e0e0 !important;
    color: #999 !important;
}

.btn-like-comment:hover,
.btn-like-reply:hover {
    background: #e8e8e8 !important;
    color: #666 !important;
}

.btn-like-comment.liked,
.btn-like-reply.liked {
    background: #ffe5e5 !important;
    color: #e74c3c !important;
}

/* 分页 */
.we-social-pagination-wrapper .pagination .page-link {
    background: #fff !important;
    color: #333 !important;
    border: 1px solid #e0e0e0 !important;
}

.we-social-pagination-wrapper .pagination .page-link:hover {
    background: #f5f5f5 !important;
    color: #000 !important;
    border-color: #d0d0d0 !important;
}

.we-social-pagination-wrapper .pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #333 0%, #1a1a1a 100%) !important;
    color: #fff !important;
    border-color: #333 !important;
}

/* ==================== 博客页面 ==================== */
/* 博客内容区 */
.blog-content {
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #e8e8e8 !important;
    padding: 20px !important;
}

/* 面包屑 */
.nav-breadcrumb .breadcrumb {
    background: #f9f9f9 !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 10px !important;
    padding: 12px 20px !important;
}

.nav-breadcrumb .breadcrumb-item a {
    color: #666 !important;
}

.nav-breadcrumb .breadcrumb-item a:hover {
    color: #333 !important;
}

.nav-breadcrumb .breadcrumb-item.active {
    color: #999 !important;
}

/* 页面标题 */
.page-title {
    color: #333 !important;
}

/* 博客卡片 */
.blog-masonry-item .blog-item {
    background: #fff !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
}

.blog-masonry-item .blog-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-4px) !important;
}

/* 博客标题 */
.blog-masonry-item .blog-post-title a {
    color: #333 !important;
}

.blog-masonry-item .blog-post-title a:hover {
    color: #000 !important;
}

/* 博客元信息 */
.blog-masonry-item .blog-post-meta {
    color: #999 !important;
}

.blog-masonry-item .blog-post-meta a {
    color: #666 !important;
}

.blog-masonry-item .blog-post-meta a:hover {
    color: #333 !important;
}

/* 博客描述 */
.blog-masonry-item .blog-post-description {
    color: #666 !important;
}

/* 博客分页 */
.blog-pagination .pagination .page-link {
    background: #fff !important;
    color: #333 !important;
    border: 1px solid #e0e0e0 !important;
}

.blog-pagination .pagination .page-link:hover {
    background: #f5f5f5 !important;
    color: #000 !important;
    border-color: #d0d0d0 !important;
}

.blog-pagination .pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #333 0%, #1a1a1a 100%) !important;
    color: #fff !important;
    border-color: #333 !important;
}

/* ==================== 响应式调整 ==================== */
@media (max-width: 767px) {
    #tags-sidebar {
        background: #fff !important;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1) !important;
    }

    .tags-sidebar-header {
        background: #fff !important;
        border-bottom-color: #eee !important;
    }
}
