 /* 新增收藏样式 */
    .favorite-section {
        display: inline-block;
        margin-left: 5px;
        cursor: pointer;
        transition: all 0.3s ease;
        user-select: none;
    }

    .favorite-icon {
        color: #6c757d;
        transition: all 0.3s ease;
    }

    .favorite-icon.favorited {
        color: #ffc107;
    }

    .favorite-icon:hover {
        color: #ffc107;
        transform: scale(1.1);
    }
    
     /* 其他原有样式保持不变 */
    .container.custom-container {
        max-width: 1400px;
    }
    .article-tags {
        padding: 15px;
        background-color: #f8f9fa;
        border-radius: 5px;
        border-left: 3px solid #007bff;
    }

    .tags-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .tag-badge {
        display: inline-block;
        padding: 4px 12px;
        background-color: #e9f5ff;
        border-radius: 15px;
        color: #007bff;
        text-decoration: none;
        transition: all 0.3s ease;
        font-size: 0.9rem;
        border: 1px solid #cce5ff;
    }

    .tag-badge:hover {
        background-color: #007bff;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 2px 5px rgba(0, 123, 255, 0.3);
    }

    .mr-2 {
        margin-right: 0.5rem;
    }

    /* 分享按钮样式 */
    .share-section {
        padding: 15px;
        background-color: #f8f9fa;
        border-radius: 5px;
        border-left: 3px solid #6c757d;
    }

    .share-buttons {
        display: flex;
        gap: 8px;
    }

    .share-btn {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50% !important;
    }

    .wechat-btn:hover {
        background-color: #28a745;
        color: white !important;
    }

    .weibo-btn:hover {
        background-color: #dc3545;
        color: white !important;
    }

    .qq-btn:hover {
        background-color: #17a2b8;
        color: white !important;
    }

    .qzone-btn:hover {
        background-color: #ffc107;
        color: #212529 !important;
    }

    .douban-btn:hover {
        background-color: #007bff;
        color: white !important;
    }

    .copy-btn:hover {
        background-color: #6c757d;
        color: white !important;
    }

    /* 评论区域样式 */
    .comment-section {
        border-top: 1px solid #eee;
        padding-top: 5px;
        border-top: 1px solid #eee;
        padding-top: 20px;
        max-height: 500px; /* 设置最大高度，可以根据需求调整 */
        overflow-y: auto; /* 启用垂直滚动条 */
    }

    /* 评论回复样式 */
    .replies {
        border-left: 2px solid #eee;
    }

    .comment-item, .reply-item {
        padding: 15px;
        background-color: #f9f9f9;
        border-radius: 5px;
        margin-bottom: 15px;
        transition: all 0.3s ease;
        position: relative;
    }

    .comment-item:hover, .reply-item:hover {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        transform: translateY(-2px);
        background-color: #f1f1f1;
    }

    .reply-btn {
        padding: 0.15rem 0.5rem;
        font-size: 0.8rem;
    }

    .rounded-circle {
        border-radius: 50% !important;
    }

    .comment-ip {
        font-size: 0.8rem;
        color: #6c757d;
        margin-left: 0.5rem;
    }

    .comment-ip i {
        margin-right: 0.2rem;
    }

    /* 评论内容样式 */
    .comment-content {
        max-height: 200px;
        overflow-y: auto;
        padding: 10px 15px;
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        line-height: 1.6;
        font-size: 0.95rem;
        word-break: break-word;
        scrollbar-width: thin; /* Firefox支持 */
    }

    /* 滚动条样式 */
    .comment-content::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }

    .comment-content::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    .comment-content::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 3px;
    }

    .comment-content::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }

    /* 悬停时更明显的滚动条 */
    .comment-content:hover::-webkit-scrollbar-thumb {
        background: #a8a8a8;
    }

    /* 表情选择器样式 */
    .emotion-picker {
        position: relative;
        display: inline-block;
        margin-bottom: 10px;
    }

    .emotion-trigger {
        cursor: pointer;
        color: #6c757d;
        font-size: 1.2rem;
        margin-right: 10px;
        transition: all 0.3s;
    }

    .emotion-trigger:hover {
        color: #007bff;
        transform: scale(1.1);
    }

    .emotion-panel {
        position: absolute;
        bottom: 100%;
        left: 0;
        width: 300px;
        background: white;
        border: 1px solid #ddd;
        border-radius: 5px;
        padding: 10px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        display: none;
    }

    .emotion-grid {
        display: grid;
        grid-template-columns: repeat(8, 1fr);
        gap: 5px;
        max-height: 200px;
        overflow-y: auto;
    }

    .emotion-item {
        font-size: 1.5rem;
        cursor: pointer;
        text-align: center;
        padding: 5px;
        border-radius: 3px;
    }

    .emotion-item:hover {
        background-color: #f0f0f0;
        transform: scale(1.2);
    }

    .comment-content-container {
        position: relative;
        margin-top: 10px;
    }

    .like-section {
        display: inline-block;
        margin-left: 5px;
        cursor: pointer;
        transition: all 0.3s ease;
        user-select: none;
    }

    .like-icon {
        color: #6c757d;
        transition: all 0.3s ease;
    }

    .like-icon.liked {
        color: #dc3545;
    }

    .like-icon:hover {
        color: #dc3545;
        transform: scale(1.1);
    }

    .like-count {
        margin-left: 3px;
        font-size: 0.9em;
        color: #6c757d;
    }

    /* 新增分享功能专用样式 - 不修改其他样式 */
    .share-section {
        padding: 15px;
        background-color: #f8f9fa;
        border-radius: 5px;
        border-left: 3px solid #6c757d;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .share-buttons {
        display: flex;
        gap: 8px;
        min-width: max-content;
        padding-bottom: 5px; /* 为滚动条留空间 */
    }

    .share-btn {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50% !important;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        position: relative;
        flex-shrink: 0; /* 防止按钮被压缩 */
    }

    /* 解决移动端点击无响应问题 */
    .share-btn::after {
        content: '';
        position: absolute;
        top: -10px;
        left: -10px;
        right: -10px;
        bottom: -10px;
    }

    /* 微信分享按钮特殊样式 */
    #wechatShareBtn {
        position: relative;
        z-index: 1;
    }

    @media (max-width: 576px) {
        /* 仅缩小小屏幕的分享按钮 */
        .share-buttons .share-btn {
            width: 22px;
            height: 22px;
            font-size: 0.8rem;
        }
        
        /* 确保分享区域不换行也不超出 */
        .share-section {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            white-space: nowrap;
        }
        
        .share-buttons {
            display: inline-flex;
            flex-wrap: nowrap;
        }
    }

    /* 强制容器层级和可见性控制 */
    #wechatQrcode {
        position: relative;
        z-index: 1;
        overflow: hidden;
        margin: 0 auto;
    }

    /* 清除所有伪元素干扰 */
    #wechatQrcode::before,
    #wechatQrcode::after {
        content: none !important;
        display: none !important;
    }

    /* 确保canvas绝对定位 */
    #wechatQrcode canvas {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
    }

    /* 小屏幕点击优化 */
    @media (max-width: 576px) {
        #wechatShareBtn {
            position: relative;
            z-index: 100;
        }
        
        #wechatShareBtn::after {
            content: '';
            position: absolute;
            top: -15px;
            left: -15px;
            right: -15px;
            bottom: -15px;
        }
    }

    /* 移动端适配 */
    @media (max-width: 768px) {
        #wechatModal .modal-dialog {
            margin: 1rem;
            max-width: 300px;
        }
        
        #wechatQrcode canvas {
            width: 100% !important;
            height: auto !important;
        }
        
        #wechatModal .modal-body {
            padding: 15px;
        }
        
        #wechatModal .modal-body p {
            font-size: 0.9rem;
        }
    }
    
/* 文章导航 - 最终版 */
.article-navigation-container {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    margin: 25px 0;
    padding: 12px 0;
    font-size: 14px;
}

.article-navigation-container .nav-link {
    color: #495057;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-block;
    padding: 2px 0;
}

.article-navigation-container .nav-link:hover {
    color: #212529;
    text-decoration: underline;
}

.article-navigation-container .prev-article {
    text-align: left;
    flex: 1;
}

.article-navigation-container .next-article {
    text-align: right;
    flex: 1;
}

/* 移动端适配 */
@media (max-width: 767px) {
    .article-navigation-container {
        padding: 10px 0;
    }
    
    /* 隐藏占位元素 */
    .article-navigation-container .prev-article:empty,
    .article-navigation-container .next-article:empty {
        display: none;
    }
}

/* 新增内容保护样式 */
.article-content {
    /* 强制创建新的块级格式化上下文 */
    display: flow-root;
    /* 清除浮动影响 */
    overflow: auto;
    /* 确保内容不会溢出 */
    max-width: 100%;
    /* 重置可能被继承的样式 */
    float: none !important;
    position: static !important;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .article-content {
        /* 移除可能影响布局的属性 */
        transform: none !important;
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
    }
}