
/* 基础样式 */
.news-flash-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    color: #333;
    line-height: 1.6;
    font-size: 14px;
    padding: 20px 0;
}

/* 阅读进度条 */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    z-index: 9999;
    transition: width 0.1s ease;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

/* 夜间模式下的进度条 */
body.dark-mode .reading-progress-bar {
    background: linear-gradient(90deg, #4dabf7 0%, #667eea 100%);
    box-shadow: 0 2px 4px rgba(77, 171, 247, 0.3);
}

/* 加载动画 */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-size: 16px;
    color: #666;
}

.loading::before {
    content: "";
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 成功脉冲动画 */
.success-pulse {
    animation: success-pulse 0.6s ease-in-out;
}

@keyframes success-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0.4);
    }
}

/* 引用块样式 */
blockquote {
    background-color: #f5f5f5;
    border-left: 4px solid #d9d9d9;
    padding: 15px 20px;
    margin: 15px 0;
    border-radius: 0 8px 8px 0;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    transition: all 0.3s ease;
}

blockquote:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateX(4px);
}

blockquote.red {
    background-color: #fff0f0;
    border-left: 4px solid #ff4d4f;
}

blockquote.blue {
    background-color: #f0f7ff;
    border-left: 4px solid #1890ff;
}

blockquote.green {
    background-color: #f6ffed;
    border-left: 4px solid #52c41a;
}

/* 新增引用块颜色选项 */
blockquote.yellow {
    background-color: #fffbe6;
    border-left: 4px solid #faad14;
}

blockquote.purple {
    background-color: #f9f0ff;
    border-left: 4px solid #722ed1;
}

blockquote.orange {
    background-color: #fff7e6;
    border-left: 4px solid #fa8c16;
}

blockquote.gray {
    background-color: #f5f5f5;
    border-left: 4px solid #d9d9d9;
}

/* 错误脉冲动画 */
.error-pulse {
    animation: error-pulse 0.6s ease-in-out;
}

@keyframes error-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0.4);
    }
}

/* 搜索高亮样式 */
.news-flash-search-highlight {
    background-color: #ffff00;
    color: #000000;
    padding: 0 2px;
    border-radius: 2px;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 按钮加载状态 */
.btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.btn.loading::after {
    content: "";
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
}

/* 模态框动画 */
.modal {
    animation: fadeIn 0.3s ease;
}

.modal-body {
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* 表单输入焦点效果 */
.form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
    transition: all 0.3s ease;
}

/* 标签页切换动画 */
.tab-content {
    animation: fadeIn 0.3s ease;
}

/* 加载更多按钮动画 */
.load-more-btn {
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.load-more-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 基础样式调整 */
    .news-flash-page {
        padding: 10px 0;
    }
    
    .news-flash-page .container {
        padding: 0 10px;
    }
    
    /* 标题样式调整 */
    .news-flash-header h1 {
        font-size: 20px;
    }
    
    /* 按钮组样式调整 */
    .news-flash-actions {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .news-flash-actions .btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    /* 卡片样式调整 */
    .news-flash-item {
        border-radius: 12px;
        margin-bottom: 12px;
    }

    .news-flash-item-content,
    .news-flash-item-inner {
        padding: 14px 16px;
    }

    .news-flash-item-title {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .news-flash-item-excerpt {
        font-size: 13px;
        -webkit-line-clamp: 2;
        margin-bottom: 10px;
    }

    .news-flash-item-footer-meta {
        margin-top: 10px;
        padding-top: 10px;
        gap: 5px;
    }

    .news-flash-item-footer-meta .meta-item {
        padding: 3px 8px !important;
        font-size: 11px !important;
    }
    
    /* 移动端隐藏某些元素 */
    .news-flash-item-thumbnail {
        margin-top: 10px;
    }
    
    /* 响应式表格 */
    .table-responsive {
        overflow-x: auto;
    }
    
    /* 移动端模态框调整 */
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        margin: 0;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    /* 移动端表单调整 */
    .form-control {
        font-size: 14px;
        padding: 8px;
    }
    
    /* 移动端按钮调整 */
    .btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    /* 移动端评论区调整 */
    .comments-list {
        padding-left: 10px;
    }
    
    .comment-item {
        padding: 10px;
    }
    
    /* 移动端分页调整 */
    .news-flash-pagination {
        font-size: 14px;
    }
    
    .news-flash-pagination a,
    .news-flash-pagination span {
        padding: 6px 10px;
    }
    
    /* 移动端搜索框调整 */
    .search-form {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-form .form-control {
        width: 100%;
    }
    
    /* 移动端分类导航调整 */
    .category-nav {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
    }
    
    .category-nav a {
        display: inline-block;
        margin-right: 10px;
    }
    
    /* 移动端详情页调整 */
    .news-flash-single-content {
        font-size: 16px;
        line-height: 1.7;
    }
    
    /* 移动端编辑器调整 */
    .wp-editor-container {
        font-size: 14px;
    }
    
    /* 移动端统计页面调整 */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* 移动端管理页面调整 */
    .admin-page {
        padding: 10px;
    }
    
    .admin-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* 移动端标签页调整 */
    .my-knowledge-nav {
        flex-wrap: wrap;
    }
    
    .my-knowledge-nav .nav-tab {
        flex: 1;
        min-width: 100px;
        font-size: 13px;
        padding: 8px;
    }
    
    /* 移动端筛选器调整 */
    #filter-options {
        flex-direction: column;
        gap: 10px;
    }
    
    #filter-options .filter-group {
        width: 100%;
    }
    
    /* 移动端头像调整 */
    .user-avatar {
        width: 32px;
        height: 32px;
    }
    
    /* 移动端点赞收藏按钮调整 */
    .like-button,
    .favorite-button {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    /* 移动端Banner调整 */
    .banner-image-preview {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    /* 超小屏幕调整 */
    .news-flash-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .news-flash-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .news-flash-item-title {
        font-size: 16px;
    }
    
    .news-flash-item-excerpt {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .btn {
        font-size: 13px;
        padding: 6px 12px;
    }
}

.news-flash-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 标题样式 */
.news-flash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.news-flash-header-left {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.news-flash-header-count {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 400;
    white-space: nowrap;
}

/* 按钮组样式 */
.news-flash-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ========================================
   现代化操作按钮系统
   圆润图标 + 渐变色彩 + 精致交互
   ======================================== */

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border: none;
    background: #ffffff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap;
    -webkit-user-select: none;
    user-select: none;
    color: #475569;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f5;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #e8e8f0;
}

.action-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.action-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 11px;
    flex-shrink: 0;
    border-radius: 50%;
    color: #fff;
    transition: all 0.25s ease;
}

.action-btn-icon:only-child {
    margin: 0;
}

.action-btn-text {
    letter-spacing: 0.02em;
    font-weight: 500;
}

/* ghost - 夜间模式切换 */
.action-btn.action-btn-ghost {
    background: #ffffff;
}

.action-btn.action-btn-ghost .action-btn-icon {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.action-btn.action-btn-ghost:hover {
    background: #f5f3ff;
    border-color: #e0e0ff;
}

.action-btn.action-btn-ghost:hover .action-btn-icon {
    transform: scale(1.1) rotate(-15deg);
    box-shadow: 0 3px 12px rgba(99, 102, 241, 0.4);
}

/* outline - 我的知识 */
.action-btn.action-btn-outline {
    background: #ffffff;
    color: #475569;
}

.action-btn.action-btn-outline .action-btn-icon {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.action-btn.action-btn-outline:hover {
    background: #eff6ff;
    border-color: #dbeafe;
    color: #1e40af;
}

.action-btn.action-btn-outline:hover .action-btn-icon {
    transform: scale(1.1);
    box-shadow: 0 3px 12px rgba(59, 130, 246, 0.4);
}

/* primary - 发布（核心操作） */
.action-btn.action-btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    font-weight: 600;
    border: none;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.action-btn.action-btn-primary .action-btn-icon {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    box-shadow: none;
}

.action-btn.action-btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
    border-color: transparent;
}

.action-btn.action-btn-primary:hover .action-btn-icon {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.1);
}

.action-btn.action-btn-primary:active {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.3);
}

/* 深色模式 */
body.dark-mode .action-btn {
    background: #1e293b;
    color: #cbd5e1;
    border-color: #334155;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

body.dark-mode .action-btn:hover {
    background: #334155;
    color: #e2e8f0;
    border-color: #475569;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .action-btn:active {
    background: #475569;
}

body.dark-mode .action-btn.action-btn-ghost {
    background: #1e293b;
}

body.dark-mode .action-btn.action-btn-ghost:hover {
    background: #2e1065;
    border-color: #4c1d95;
}

body.dark-mode .action-btn.action-btn-outline {
    background: #1e293b;
}

body.dark-mode .action-btn.action-btn-outline:hover {
    background: #172554;
    border-color: #1e3a5f;
    color: #93c5fd;
}

body.dark-mode .action-btn.action-btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

body.dark-mode .action-btn.action-btn-primary:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.5);
}

/* 响应式 */
@media (max-width: 768px) {
    .action-btn {
        height: 32px;
        padding: 0 10px;
        font-size: 12px;
        gap: 4px;
        border-radius: 16px;
    }

    .action-btn-icon {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
}

/* 兼容旧版 btn 类名 */
.news-flash-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.news-flash-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.news-flash-actions .btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.news-flash-actions .btn-success {
    background: #10b981;
    color: white;
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
}

.news-flash-actions .btn-info {
    background: #0ea5e9;
    color: white;
    border: 1px solid rgba(14, 165, 233, 0.2);
    box-shadow: 0 1px 3px rgba(14, 165, 233, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
}

.news-flash-actions .btn-icon-only {
    padding: 8px;
    min-width: 36px;
    min-height: 36px;
    justify-content: center;
    gap: 0;
}

.news-flash-actions .btn-icon-only i {
    margin: 0;
    font-size: 16px;
}

.news-flash-header h1 {
    margin: 0;
    font-size: 24px;
    color: #2c3e50;
    font-weight: 600;
}

/* 详情页分类标签美化（专题标签样式优化） */
.news-flash-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 0;
    align-items: center;
}

.news-flash-single-meta span.news-flash-specials {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

.news-flash-single-meta span.news-flash-specials::before {
    content: "|";
    margin-right: 6px;
    color: #e0e0e0;
    font-size: 12px;
}

.news-flash-single-meta span.news-flash-specials a {
    background-color: #f0f7ff;
    color: #2c5282;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.news-flash-single-meta span.news-flash-specials a:hover {
    background-color: #e6f2ff;
    color: #1a365d;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 移动端响应式调整 */
@media (max-width: 768px) {
    .news-flash-single-meta span.news-flash-specials {
        margin-top: 8px;
        width: 100%;
        justify-content: center; /* 可选：居中对齐 */
    }
    
    .news-flash-single-meta span.news-flash-specials::before {
        display: none;
    }
}

/* 互动按钮组样式 */
.news-flash-action-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 32px 0;
    margin: 32px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

/* 分享弹窗 - 标准现代化设计 */
.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.25s ease;
    backdrop-filter: blur(2px);
}

.share-modal {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 400px;
    animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.share-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.share-modal-close {
    width: 28px;
    height: 28px;
    border: none;
    background: #f9fafb;
    border-radius: 6px;
    font-size: 18px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.share-modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.share-modal-body {
    padding: 24px;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.share-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: #f9fafb;
    border-radius: 8px;
    text-decoration: none;
    color: #6b7280;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.share-item:hover {
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #e5e7eb;
}

.share-item i {
    font-size: 24px;
    transition: transform 0.2s ease;
}

.share-item:hover i {
    transform: scale(1.05);
}

.share-item span {
    font-size: 12px;
    font-weight: 500;
    color: #4b5563;
}

/* 各平台品牌色 */
.share-item.weibo i {
    color: #e6162d;
}

.share-item.wechat i {
    color: #07c160;
}

.share-item.qq i {
    color: #1296db;
}

.share-item.twitter i {
    color: #1da1f2;
}

.share-item.facebook i {
    color: #1877f2;
}

.share-item.linkedin i {
    color: #0077b5;
}

.share-item.email i {
    color: #ea4335;
}

.share-item.copy-link i {
    color: #6b7280;
}

/* 中国用户LinkedIn微妙提示样式 */
.share-item.china-notice {
    position: relative;
}

.share-item.china-notice::before {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background: #f59e0b;
    border-radius: 50%;
    z-index: 1;
}

/* 夜间模式下的提示样式 */
body.dark-mode .share-item.china-notice::before {
    background: #d97706;
}

/* 动画效果 */
@keyframes likeAnimation {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}

@keyframes favoriteAnimation {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.2) rotate(-10deg);
    }
    75% {
        transform: scale(1.2) rotate(10deg);
    }
}

/* 夜间模式 - 互动按钮区域 */
body.dark-mode .news-flash-action-buttons {
    border-top-color: #404040;
    border-bottom-color: #404040;
}

body.dark-mode .share-modal {
    background: #1f2937;
}

body.dark-mode .share-modal-header {
    border-bottom-color: #374151;
}

body.dark-mode .share-modal-header h3 {
    color: #f9fafb;
}

body.dark-mode .share-modal-close {
    background: #374151;
    color: #9ca3af;
}

body.dark-mode .share-modal-close:hover {
    background: #4b5563;
    color: #f3f4f6;
}

body.dark-mode .share-item {
    background: #374151;
    color: #e5e7eb;
    border-color: transparent;
}

body.dark-mode .share-item:hover {
    background: #4b5563;
    border-color: #6b7280;
}

body.dark-mode .share-item span {
    color: #d1d5db;
}

/* 微信二维码弹窗 - 精致设计 */
.wechat-qrcode-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: fadeIn 0.25s ease;
}

.wechat-qrcode-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    max-width: 320px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.wechat-qrcode-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: none;
    background: #f9fafb;
    border-radius: 6px;
    font-size: 16px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.wechat-qrcode-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.wechat-qrcode-content h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.qrcode-image {
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid #e5e7eb;
}

.qrcode-image img {
    width: 160px;
    height: 160px;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
}

.wechat-qrcode-content p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

/* Toast提示 - 精致设计 */
.share-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-60px);
    background: #10b981;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
    z-index: 10002;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-toast::before {
    content: "✓";
    font-weight: 600;
}

.share-toast.show {
    transform: translateX(-50%) translateY(0);
}

/* 夜间模式 - 微信二维码 */
body.dark-mode .wechat-qrcode-content {
    background: #2d2d2d;
}

body.dark-mode .wechat-qrcode-content h4 {
    color: #e0e0e0;
}

body.dark-mode .wechat-qrcode-content p {
    color: #adb5bd;
}

body.dark-mode .qrcode-image {
    background: #3a3a3a;
}

body.dark-mode .wechat-qrcode-close:hover {
    background: #404040;
    color: #e0e0e0;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .news-flash-action-buttons {
        gap: 12px;
        padding: 24px 0;
    }
    
    .share-modal {
        width: 95%;
        max-width: 360px;
        border-radius: 12px;
    }
    
    .share-modal-header {
        padding: 16px 20px 12px 20px;
    }
    
    .share-modal-header h3 {
        font-size: 15px;
    }
    
    .share-modal-body {
        padding: 20px;
    }
    
    .share-buttons {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
    
    .share-item {
        padding: 12px 8px;
    }
    
    .share-item i {
        font-size: 20px;
    }
    
    .share-item span {
        font-size: 11px;
    }
    
    .wechat-qrcode-content {
        padding: 20px;
        max-width: 280px;
    }
    
    .qrcode-image {
        padding: 12px;
    }
    
    .qrcode-image img {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 480px) {
    .news-flash-action-buttons {
        gap: 8px;
    }
    
    .share-modal {
        width: 95%;
        max-width: 320px;
    }
    
    .share-modal-header {
        padding: 14px 16px 10px 16px;
    }
    
    .share-modal-body {
        padding: 16px;
    }
    
    .share-buttons {
        gap: 10px;
    }
    
    .share-item {
        padding: 10px 6px;
        border-radius: 6px;
    }
    
    .share-item i {
        font-size: 18px;
    }
    
    .share-item span {
        font-size: 10px;
    }
}

/* 悬浮文章目录样式 - 优化版 */
.news-flash-toc-floating {
    position: fixed;
    top: 120px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.news-flash-toc-icon {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #495057;
    font-size: 18px;
    position: relative;
}

.news-flash-toc-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    padding: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
}

.news-flash-toc-icon:hover {
    background-color: #f8f9fa;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
    transform: scale(1.05);
}

.news-flash-toc-icon:hover::after {
    opacity: 1;
}

.news-flash-toc-icon.active {
    background-color: #667eea;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3), 0 2px 6px rgba(0, 0, 0, 0.08);
}

.news-flash-toc-icon.active::after {
    opacity: 0;
}

.news-flash-toc-popup {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    width: 300px;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    margin-top: 12px;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.news-flash-toc-popup.show {
    max-height: 600px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.news-flash-toc-popup-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f3f5;
    background-color: rgba(248, 249, 250, 0.8);
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-flash-toc-popup-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #212529;
    letter-spacing: -0.01em;
}

.news-flash-toc-close {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6c757d;
    transition: all 0.2s;
    font-size: 14px;
    flex-shrink: 0;
    user-select: none;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.news-flash-toc-close:hover {
    background-color: #e9ecef;
    color: #212529;
}

.news-flash-toc-close i {
    pointer-events: none;
}

.news-flash-toc-popup-content {
    max-height: 500px;
    overflow-y: auto;
    padding: 8px 0;
}

/* 自定义滚动条 */
.news-flash-toc-popup-content::-webkit-scrollbar {
    width: 6px;
}

.news-flash-toc-popup-content::-webkit-scrollbar-track {
    background: transparent;
}

.news-flash-toc-popup-content::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 3px;
}

.news-flash-toc-popup-content::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}

.news-flash-toc-empty {
    text-align: center;
    color: #adb5bd;
    font-size: 13px;
    padding: 32px 20px;
    font-style: italic;
}

.news-flash-toc {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-flash-toc li {
    margin: 0;
    position: relative;
}

.news-flash-toc a {
    color: #495057;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    line-height: 1.5;
    border-left: 2px solid transparent;
    position: relative;
}

.news-flash-toc a:hover {
    background-color: #f8f9fa;
    color: #212529;
    border-left-color: #dee2e6;
}

.news-flash-toc a.toc-h2 {
    font-weight: 600;
    font-size: 14px;
    padding-left: 20px;
}

.news-flash-toc a.toc-h3 {
    font-size: 13px;
    padding-left: 36px;
    font-weight: 500;
}

.news-flash-toc a.toc-h4 {
    font-size: 12px;
    padding-left: 52px;
    font-weight: normal;
    color: #6c757d;
}

/* 滚动时高亮当前目录项 */
.news-flash-toc a.active {
    background-color: #f0f4ff;
    color: #667eea;
    font-weight: 600;
    border-left-color: #667eea;
}

.news-flash-toc a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 60%;
    background: linear-gradient(180deg, transparent, #667eea, transparent);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .news-flash-toc-floating {
        top: auto;
        bottom: 80px;
        right: 16px;
    }
    
    .news-flash-toc-icon {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
    
    .news-flash-toc-popup {
        width: calc(100vw - 32px);
        max-width: 320px;
        right: 0;
    }
    
    .news-flash-toc-popup.show {
        max-height: 70vh;
    }
}

/* 文章标题样式 */
.news-flash-single-content h1,
.news-flash-single-content h2,
.news-flash-single-content h3,
.news-flash-single-content h4,
.news-flash-single-content h5,
.news-flash-single-content h6 {
    position: relative;
    scroll-margin-top: 80px;
    font-weight: 600;
    line-height: 1.3;
    margin: 32px 0 16px;
    color: #1e293b;
    transition: all 0.3s ease;
}

/* H1 样式 */
.news-flash-single-content h1 {
    font-size: 28px;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-bottom: 12px;
    border-bottom: 3px solid #e2e8f0;
}

/* H2 样式 */
.news-flash-single-content h2 {
    font-size: 24px;
    color: #334155;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}

.news-flash-single-content h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
}

/* H3 样式 */
.news-flash-single-content h3 {
    font-size: 20px;
    color: #475569;
    padding-left: 12px;
    border-left: 4px solid #6366f1;
}

/* H4 样式 */
.news-flash-single-content h4 {
    font-size: 18px;
    color: #64748b;
    background-color: #f8fafc;
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
}

/* H5 样式 */
.news-flash-single-content h5 {
    font-size: 16px;
    color: #7c8a9a;
    font-weight: 500;
    padding-left: 12px;
    border-left: 3px solid #cbd5e1;
}

/* H6 样式 */
.news-flash-single-content h6 {
    font-size: 14px;
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 标题悬停效果 */
.news-flash-single-content h1:hover,
.news-flash-single-content h2:hover,
.news-flash-single-content h3:hover,
.news-flash-single-content h4:hover,
.news-flash-single-content h5:hover,
.news-flash-single-content h6:hover {
    transform: translateX(4px);
}

/* 夜间模式标题样式 */
body.dark-mode .news-flash-single-content h1,
body.dark-mode .news-flash-single-content h2,
body.dark-mode .news-flash-single-content h3,
body.dark-mode .news-flash-single-content h4,
body.dark-mode .news-flash-single-content h5,
body.dark-mode .news-flash-single-content h6 {
    color: #f8fafc;
}

body.dark-mode .news-flash-single-content h1 {
    border-bottom-color: #334155;
}

body.dark-mode .news-flash-single-content h2 {
    color: #e2e8f0;
    border-bottom-color: #334155;
}

body.dark-mode .news-flash-single-content h2::after {
    background: linear-gradient(90deg, #8b5cf6 0%, #a78bfa 100%);
}

body.dark-mode .news-flash-single-content h3 {
    color: #cbd5e1;
    border-left-color: #8b5cf6;
}

body.dark-mode .news-flash-single-content h4 {
    color: #94a3b8;
    background-color: #334155;
}

body.dark-mode .news-flash-single-content h5 {
    color: #94a3b8;
    border-left-color: #475569;
}

body.dark-mode .news-flash-single-content h6 {
    color: #64748b;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-flash-single-content h1 {
        font-size: 24px;
        margin: 24px 0 12px;
    }
    
    .news-flash-single-content h2 {
        font-size: 20px;
        margin: 24px 0 12px;
    }
    
    .news-flash-single-content h3 {
        font-size: 18px;
        margin: 20px 0 10px;
    }
    
    .news-flash-single-content h4 {
        font-size: 16px;
        margin: 16px 0 8px;
    }
    
    .news-flash-single-content h5 {
        font-size: 15px;
        margin: 16px 0 8px;
    }
    
    .news-flash-single-content h6 {
        font-size: 13px;
        margin: 12px 0 6px;
    }
}

@media (max-width: 480px) {
    .news-flash-single-content h1 {
        font-size: 22px;
    }
    
    .news-flash-single-content h2 {
        font-size: 18px;
    }
    
    .news-flash-single-content h3 {
        font-size: 16px;
    }
    
    .news-flash-single-content h4 {
        font-size: 15px;
        padding: 6px 12px;
    }
}

/* 夜间模式下的目录样式 */
body.dark-mode .news-flash-toc-floating {
    /* 夜间模式下的悬浮目录容器样式 */
}

body.dark-mode .news-flash-toc-icon {
    background-color: rgba(45, 45, 45, 0.95);
    border-color: #404040;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
    color: #e0e0e0;
}

body.dark-mode .news-flash-toc-icon:hover {
    background-color: rgba(58, 58, 58, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.2);
}

body.dark-mode .news-flash-toc-icon.active {
    background-color: #667eea;
    color: #ffffff;
}

body.dark-mode .news-flash-toc-popup {
    background-color: rgba(45, 45, 45, 0.95);
    border-color: #404040;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.dark-mode .news-flash-toc-popup-header {
    background-color: rgba(58, 58, 58, 0.8);
    border-bottom-color: #404040;
}

body.dark-mode .news-flash-toc-popup-header h3 {
    color: #e0e0e0;
}

body.dark-mode .news-flash-toc-close {
    color: #adb5bd;
}

body.dark-mode .news-flash-toc-close:hover {
    background-color: #404040;
    color: #e0e0e0;
}

body.dark-mode .news-flash-toc-empty {
    color: #6c757d;
}

body.dark-mode .news-flash-toc a {
    color: #e0e0e0;
}

body.dark-mode .news-flash-toc a:hover {
    background-color: #404040;
    color: #ffffff;
    border-left-color: #595959;
}

body.dark-mode .news-flash-toc a.active {
    background-color: rgba(102, 126, 234, 0.15);
    color: #a5b4fc;
    border-left-color: #667eea;
}

body.dark-mode .news-flash-toc li::before {
    color: #6c757d;
}

body.dark-mode .news-flash-toc-popup-content::-webkit-scrollbar-thumb {
    background: #404040;
}

body.dark-mode .news-flash-toc-popup-content::-webkit-scrollbar-thumb:hover {
    background: #595959;
}

/* 夜间模式 */
body.dark-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

/* 侧边栏夜间模式样式 */
body.dark-mode .news-flash-sidebar {
    background-color: transparent !important;
}

body.dark-mode .sidebar-module {
    background: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

body.dark-mode .sidebar-module:hover {
    border-color: #475569 !important;
}

body.dark-mode .sidebar-module h3 {
    color: #f1f5f9 !important;
    border-bottom-color: #334155 !important;
}

body.dark-mode .sidebar-module h3 i {
    color: #818cf8 !important;
}

body.dark-mode .category-list a {
    color: #94a3b8 !important;
}

body.dark-mode .category-list a:hover,
body.dark-mode .category-list a.active {
    color: #60a5fa !important;
}

body.dark-mode .category-list .count {
    background: #334155 !important;
    color: #94a3b8 !important;
}

/* 搜索模块夜间模式样式 */
body.dark-mode .search-module-header h3 {
    color: #f1f5f9 !important;
}

body.dark-mode .search-input-wrapper {
    background: #0f172a !important;
    border-color: #334155 !important;
}

body.dark-mode .search-input-wrapper:focus-within {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
}

body.dark-mode .search-input-wrapper input[type="text"] {
    background: transparent !important;
    color: #f1f5f9 !important;
}

body.dark-mode .search-input-wrapper input[type="text"]::placeholder {
    color: #64748b !important;
}

/* 分页器夜间模式 */
body.dark-mode .news-flash-pagination ul {
    background: #1e293b !important;
    border-color: #334155 !important;
}

body.dark-mode .news-flash-pagination a,
body.dark-mode .news-flash-pagination span {
    color: #94a3b8 !important;
}

body.dark-mode .news-flash-pagination a:hover {
    background: #334155 !important;
    color: #f1f5f9 !important;
}

body.dark-mode .news-flash-pagination .current {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4) !important;
}

/* 统一元标签样式 - 确保高度一致 */
body.dark-mode .news-flash-meta-actions {
    font-size: 12px !important;
    gap: 15px !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}

body.dark-mode .news-flash-meta-actions .meta-item {
    font-size: 12px !important;
    gap: 6px !important;
    align-items: center !important;
    display: flex !important;
    height: 32px !important;
    padding: 0 8px !important;
    margin: 0 !important;
    line-height: 32px !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
}

body.dark-mode .news-flash-meta-actions .meta-item i {
    font-size: 12px !important;
    opacity: 0.8 !important;
    color: #94a3b8 !important;
    line-height: 32px !important;
    vertical-align: middle !important;
}

body.dark-mode .news-flash-meta-actions .meta-item span {
    font-size: 12px !important;
    color: #94a3b8 !important;
    line-height: 32px !important;
    vertical-align: middle !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.dark-mode .news-flash-meta-actions .meta-action-btn {
    font-size: 12px !important;
    padding: 0 12px !important;
    border-radius: 16px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    line-height: 32px !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

body.dark-mode .news-flash-meta-actions .meta-action-btn i {
    font-size: 12px !important;
    line-height: 32px !important;
    vertical-align: middle !important;
}

/* 修复标签高度统一 */
body.dark-mode .news-flash-source,
body.dark-mode .news-flash-categories,
body.dark-mode .news-flash-specials {
    height: 32px !important;
    line-height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
    padding: 0 12px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

body.dark-mode .news-flash-source a,
body.dark-mode .news-flash-categories a,
body.dark-mode .news-flash-specials a {
    height: 32px !important;
    line-height: 32px !important;
    vertical-align: middle !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
}

/* 直接针对TinyMCE编辑器的深色模式样式 */
body.dark-mode iframe {
    background-color: #222 !important;
}

/* TinyMCE编辑器内容区域样式 */
body.dark-mode .mce-container,
body.dark-mode .mce-container-body,
body.dark-mode .mce-content-body {
    background-color: #222 !important;
    color: #e0e0e0 !important;
}

/* TinyMCE编辑器内部样式覆盖 */
body.dark-mode .mce-content-body * {
    background-color: #222 !important;
    color: #e0e0e0 !important;
}

/* TinyMCE工具栏样式 */
body.dark-mode .mce-toolbar-grp,
body.dark-mode .mce-statusbar {
    background-color: #333 !important;
    border-color: #444 !important;
}

/* TinyMCE按钮样式 */
body.dark-mode .mce-btn {
    background-color: #333 !important;
    border-color: #444 !important;
    color: #e0e0e0 !important;
}

body.dark-mode .mce-btn:hover {
    background-color: #444 !important;
    border-color: #555 !important;
}

body.dark-mode .news-flash-page {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode .news-flash-page .container {
    background-color: #2a2a2a;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    padding: 20px;
}

body.dark-mode .news-flash-header {
    border-bottom-color: #444;
}

body.dark-mode .news-flash-header h1 {
    color: #e0e0e0;
}

body.dark-mode .search-module {
    background: #333;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

body.dark-mode .search-module-header h3 {
    color: #e0e0e0;
}

body.dark-mode .search-input-wrapper {
    border-color: #444;
    background-color: #2a2a2a;
}

body.dark-mode .search-input-wrapper input[type="text"] {
    color: #e0e0e0;
}

body.dark-mode .search-input-wrapper input[type="text"]::placeholder {
    color: #999;
}

body.dark-mode .search-btn {
    background: #337ab7;
}

body.dark-mode .search-btn:hover {
    background: #23527c;
}

body.dark-mode .category-module {
    background: #333;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

body.dark-mode .category-module-header h3 {
    color: #e0e0e0;
}

body.dark-mode .category-module {
    background: #333 !important;
}

body.dark-mode .category-item {
    background: #333 !important;
}

body.dark-mode .category-item a {
    background: #333 !important;
    color: #e0e0e0 !important;
    border-color: #444 !important;
}

body.dark-mode .category-item a:hover {
    background-color: #444 !important;
    border-color: #555 !important;
}

body.dark-mode .category-item.active a {
    background-color: #337ab7 !important;
    color: #fff !important;
    border-color: #2980b9 !important;
}

body.dark-mode .category-child {
    background: #333 !important;
}

body.dark-mode .category-child a {
    background: #333 !important;
    color: #e0e0e0 !important;
}

body.dark-mode .category-child a:hover {
    background-color: #444 !important;
}

body.dark-mode .category-child a.active {
    background-color: #337ab7 !important;
    color: #fff !important;
}

body.dark-mode .category-parent {
    background: #333 !important;
}

body.dark-mode .parent-header {
    background: #333 !important;
}

body.dark-mode .category-children {
    background: #333 !important;
    border-color: #444 !important;
}

body.dark-mode .category-children.children-open {
    background: #333 !important;
}

body.dark-mode .toggle-all-categories {
    background: #333 !important;
    color: #e0e0e0 !important;
    border-color: #444 !important;
}

body.dark-mode .toggle-all-categories:hover {
    background: #444 !important;
    border-color: #555 !important;
}

body.dark-mode .toggle-all-categories i {
    color: #e0e0e0 !important;
}

body.dark-mode .category-count {
    background-color: #444 !important;
    color: #e0e0e0 !important;
}

body.dark-mode .category-count-small {
    background-color: #444 !important;
    color: #e0e0e0 !important;
}

body.dark-mode .category-item {
    border-color: #444 !important;
}

body.dark-mode .category-child {
    border-color: #444 !important;
}

body.dark-mode .category-content {
    background: #333 !important;
    color: #e0e0e0 !important;
}

body.dark-mode .category-content .category-icon {
    color: #e0e0e0 !important;
}

body.dark-mode .category-content .category-title {
    color: #e0e0e0 !important;
}

body.dark-mode .category-content .category-meta {
    color: #999 !important;
}

body.dark-mode .category-all {
    background: #333 !important;
    border-color: #444 !important;
}

body.dark-mode .category-group {
    background: #333 !important;
    border-color: #444 !important;
}

body.dark-mode .category-group.active-group {
    background: #333 !important;
}

body.dark-mode .category-parent {
    border-color: #444 !important;
}

body.dark-mode .toggle-btn {
    background: #333 !important;
    color: #e0e0e0 !important;
    border-color: #444 !important;
}

body.dark-mode .toggle-btn:hover {
    background: #444 !important;
    border-color: #555 !important;
}

body.dark-mode .toggle-icon {
    color: #e0e0e0 !important;
}

body.dark-mode .news-flash-content {
    background-color: #2a2a2a !important;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    padding: 20px;
}

body.dark-mode .news-flash-list {
    background-color: transparent !important;
}

/* ========================================
   文章卡片 - 深色模式
   ======================================== */

body.dark-mode .news-flash-item {
    background: #1e293b !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid #334155 !important;
    color: #e2e8f0 !important;
}

body.dark-mode .news-flash-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 4px 10px rgba(0, 0, 0, 0.3) !important;
    border-color: #475569 !important;
}

body.dark-mode .news-flash-item-content,
body.dark-mode .news-flash-item-inner {
    background-color: transparent !important;
    color: #e2e8f0 !important;
}

body.dark-mode .news-flash-item-meta {
    color: #94a3b8 !important;
}

body.dark-mode .news-flash-item-meta span {
    color: #94a3b8 !important;
}

body.dark-mode .news-flash-item-meta a {
    color: #94a3b8 !important;
}

body.dark-mode .news-flash-item-meta a:hover {
    color: #60a5fa !important;
}

body.dark-mode .news-flash-item-meta .post-category a {
    background: linear-gradient(135deg, #1e3a5f, #1e2d4a) !important;
    color: #60a5fa !important;
}

body.dark-mode .news-flash-item-meta .post-category a:hover {
    background: linear-gradient(135deg, #1e40af, #1e3a8a) !important;
    color: #93c5fd !important;
}

body.dark-mode .news-flash-item-title a {
    color: #f1f5f9 !important;
}

body.dark-mode .news-flash-item-title a:hover {
    color: #60a5fa !important;
}

body.dark-mode .news-flash-item-excerpt {
    color: #94a3b8 !important;
}

body.dark-mode .news-flash-item-footer-meta {
    border-top-color: #334155 !important;
    color: #94a3b8 !important;
    background: transparent !important;
}

body.dark-mode .news-flash-item-footer-meta .meta-item {
    background: #334155 !important;
    color: #94a3b8 !important;
}

body.dark-mode .news-flash-item-footer-meta .meta-item:hover {
    background: #475569 !important;
    color: #cbd5e1 !important;
}

body.dark-mode .news-flash-item-footer-meta .meta-item i {
    color: inherit !important;
}

body.dark-mode .news-flash-item-footer-meta .meta-item.likes {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #f87171 !important;
}

body.dark-mode .news-flash-item-footer-meta .meta-item.comments {
    background: rgba(34, 197, 94, 0.15) !important;
    color: #4ade80 !important;
}

body.dark-mode .news-flash-item-footer-meta .meta-item.priority.normal {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #60a5fa !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
}

body.dark-mode .news-flash-item-footer-meta .meta-item.priority.important {
    background: rgba(234, 88, 12, 0.15) !important;
    color: #fb923c !important;
    border-color: rgba(234, 88, 12, 0.3) !important;
}

body.dark-mode .news-flash-item-footer-meta .meta-item.priority.urgent {
    background: rgba(220, 38, 38, 0.15) !important;
    color: #f87171 !important;
    border-color: rgba(220, 38, 38, 0.3) !important;
}

body.dark-mode .news-flash-item-footer-meta .meta-item.priority.recommended {
    background: rgba(22, 163, 74, 0.15) !important;
    color: #4ade80 !important;
    border-color: rgba(22, 163, 74, 0.3) !important;
}

body.dark-mode .news-flash-single {
    background: #1e293b !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid #334155 !important;
    color: #e2e8f0 !important;
}

body.dark-mode .news-flash-single-title {
    color: #e0e0e0 !important;
}

body.dark-mode .news-flash-single-meta {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #94a3b8 !important;
}

body.dark-mode .news-flash-single-meta span {
    color: #94a3b8 !important;
}

body.dark-mode .news-flash-single-meta a {
    color: #60a5fa !important;
    background: #1e3a5f !important;
}

body.dark-mode .news-flash-single-meta a:hover {
    color: #93c5fd !important;
}

body.dark-mode .news-flash-meta-actions {
    background-color: #222 !important;
    color: #999 !important;
    border-color: #444 !important;
}

body.dark-mode .news-flash-meta-actions .meta-item {
    color: #999 !important;
    background-color: #333 !important;
    border-color: #444 !important;
}

body.dark-mode .news-flash-meta-actions .meta-item i {
    color: #999 !important;
}

body.dark-mode .news-flash-meta-actions .meta-item span {
    color: #999 !important;
}

body.dark-mode .news-flash-meta-actions .meta-action-btn {
    background-color: #333 !important;
    color: #999 !important;
    border-color: #444 !important;
}

body.dark-mode .news-flash-meta-actions .meta-action-btn:hover {
    background-color: #444 !important;
    border-color: #555 !important;
    color: #e0e0e0 !important;
}

body.dark-mode .news-flash-meta-actions .meta-action-btn i {
    color: #999 !important;
}

body.dark-mode .news-flash-meta-actions .meta-action-btn:hover i {
    color: #e0e0e0 !important;
}

body.dark-mode .news-flash-source {
    color: #999 !important;
}

body.dark-mode .news-flash-source a {
    color: #999 !important;
}

body.dark-mode .news-flash-source a:hover {
    color: #337ab7 !important;
}

body.dark-mode .news-flash-categories {
    color: #999 !important;
}

body.dark-mode .news-flash-categories a {
    color: #999 !important;
}

body.dark-mode .news-flash-categories a:hover {
    color: #337ab7 !important;
}

body.dark-mode .news-flash-specials {
    color: #999 !important;
}

body.dark-mode .news-flash-specials a {
    color: #999 !important;
    background-color: #444 !important;
    border-color: #555 !important;
}

body.dark-mode .news-flash-specials a:hover {
    background-color: #555 !important;
    border-color: #666 !important;
    color: #e0e0e0 !important;
}

body.dark-mode .news-flash-single-content {
    color: #e0e0e0 !important;
    background-color: #333 !important;
}

body.dark-mode .news-flash-single-content h2, 
body.dark-mode .news-flash-single-content h3, 
body.dark-mode .news-flash-single-content h4 {
    color: #e0e0e0 !important;
}

body.dark-mode .news-flash-single-content a {
    color: #337ab7 !important;
}

body.dark-mode .news-flash-single-content a:hover {
    color: #23527c !important;
}

/* 夜间模式下的引用块样式 */
body.dark-mode .news-flash-single-content blockquote,
body.dark-mode .news-flash-single-content blockquote.gray {
    background-color: #2d2d2d;
    border-left-color: #595959;
    color: #d9d9d9;
}

body.dark-mode .news-flash-single-content blockquote.red {
    background-color: #2a1215;
    border-left-color: #ff4d4f;
    color: #ff7875;
}

body.dark-mode .news-flash-single-content blockquote.blue {
    background-color: #111d2c;
    border-left-color: #1890ff;
    color: #69c0ff;
}

body.dark-mode .news-flash-single-content blockquote.green {
    background-color: #162312;
    border-left-color: #52c41a;
    color: #95de64;
}

/* 新增引用块颜色选项 - 夜间模式 */
body.dark-mode .news-flash-single-content blockquote.yellow {
    background-color: #231e0a;
    border-left-color: #faad14;
    color: #ffd666;
}

body.dark-mode .news-flash-single-content blockquote.purple {
    background-color: #22162e;
    border-left-color: #722ed1;
    color: #b37feb;
}

body.dark-mode .news-flash-single-content blockquote.orange {
    background-color: #231a10;
    border-left-color: #fa8c16;
    color: #ffb366;
}

body.dark-mode .news-flash-single-thumbnail {
    background-color: #333 !important;
    border-color: #444 !important;
}

body.dark-mode .tip {
    background-color: #444 !important;
    color: #e0e0e0 !important;
    border-color: #555 !important;
}

body.dark-mode .tip.info {
    background-color: #27ae60 !important;
    color: #fff !important;
    border-color: #2ecc71 !important;
}

body.dark-mode .tip.info.fresh {
    background-color: #27ae60 !important;
    color: #fff !important;
    border-color: #2ecc71 !important;
}

body.dark-mode .tip.info.old {
    background-color: #f39c12 !important;
    color: #fff !important;
    border-color: #e67e22 !important;
}

body.dark-mode .tip.info.obsolete {
    background-color: #e74c3c !important;
    color: #fff !important;
    border-color: #c0392b !important;
}

body.dark-mode .news-flash-tags {
    background-color: #333 !important;
    color: #e0e0e0 !important;
    border-color: #444 !important;
}

body.dark-mode .news-flash-tags .tags-label {
    color: #e0e0e0 !important;
}

body.dark-mode .news-flash-tags .tag-item {
    background-color: #444 !important;
    color: #e0e0e0 !important;
    border-color: #555 !important;
}

body.dark-mode .news-flash-tags .tag-item:hover {
    background-color: #555 !important;
    border-color: #666 !important;
    color: #fff !important;
}

body.dark-mode .news-flash-like-container {
    background-color: #333 !important;
    color: #e0e0e0 !important;
    border-color: #444 !important;
}

body.dark-mode .news-flash-like-container .like-button {
    background-color: #337ab7 !important;
    color: #fff !important;
    border-color: #2e6da4 !important;
}

body.dark-mode .news-flash-like-container .like-button:hover {
    background-color: #23527c !important;
    border-color: #122b40 !important;
    color: #fff !important;
}

body.dark-mode .news-flash-like-container .like-button.liked {
    background-color: #e74c3c !important;
    border-color: #c0392b !important;
    color: #fff !important;
}

body.dark-mode .news-flash-like-container .like-text {
    color: #fff !important;
}

body.dark-mode .news-flash-like-container .like-count {
    color: #fff !important;
}

body.dark-mode .news-flash-like-container .like-button i {
    color: #fff !important;
}

/* 热门文章样式 */
.news-flash-hot-posts {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.news-flash-hot-posts h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

.news-flash-hot-posts ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-flash-hot-posts li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-flash-hot-posts li:last-child {
    border-bottom: none;
}

.news-flash-hot-posts li a {
    color: #34495e;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 14px;
    flex: 1;
    margin-right: 10px;
    line-height: 1.4;
}

.news-flash-hot-posts li a:hover {
    color: #3498db;
    text-decoration: underline;
}

.news-flash-hot-posts .heat-score {
    font-size: 12px;
    color: #95a5a6;
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

/* 深色模式下的热门文章样式 */
body.dark-mode .news-flash-hot-posts {
    background: #2d3748;
    border-color: #4a5568;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

body.dark-mode .news-flash-hot-posts h3 {
    color: #e2e8f0;
    border-bottom-color: #4a5568;
}

body.dark-mode .news-flash-hot-posts li {
    border-bottom-color: #4a5568;
}

body.dark-mode .news-flash-hot-posts li a {
    color: #e2e8f0;
}

body.dark-mode .news-flash-hot-posts li a:hover {
    color: #63b3ed;
}

body.dark-mode .news-flash-hot-posts .heat-score {
    color: #a0aec0;
    background: #4a5568;
}

/* 编辑器夜间模式样式 */
body.dark-mode .wp-editor-container {
    background-color: #333 !important;
    color: #e0e0e0 !important;
    border-color: #444 !important;
}

body.dark-mode .wp-editor-tabs {
    background-color: #444 !important;
    border-color: #555 !important;
}

body.dark-mode .wp-editor-tabs .wp-switch-editor {
    background-color: #444 !important;
    color: #e0e0e0 !important;
    border-color: #555 !important;
}

body.dark-mode .wp-editor-tabs .wp-switch-editor.active {
    background-color: #333 !important;
    color: #e0e0e0 !important;
    border-color: #444 !important;
}

body.dark-mode .quicktags-toolbar {
    background-color: #444 !important;
    color: #e0e0e0 !important;
    border-color: #555 !important;
}

body.dark-mode .quicktags-toolbar input {
    background-color: #333 !important;
    color: #e0e0e0 !important;
    border-color: #555 !important;
}

body.dark-mode .quicktags-toolbar input:hover {
    background-color: #555 !important;
    border-color: #666 !important;
    color: #fff !important;
}

body.dark-mode .wp-editor-area {
    background-color: #222 !important;
    color: #e0e0e0 !important;
    border-color: #444 !important;
}

body.dark-mode .mce-container {
    background-color: #333 !important;
    color: #e0e0e0 !important;
}

body.dark-mode .mce-toolbar {
    background-color: #444 !important;
    color: #e0e0e0 !important;
    border-color: #555 !important;
}

body.dark-mode .mce-statusbar {
    background-color: #444 !important;
    color: #e0e0e0 !important;
    border-color: #555 !important;
}

body.dark-mode .mce-menu-item {
    background-color: #444 !important;
    color: #e0e0e0 !important;
}

body.dark-mode .mce-menu-item:hover {
    background-color: #555 !important;
    color: #fff !important;
}

body.dark-mode .mce-textbox {
    background-color: #222 !important;
    color: #e0e0e0 !important;
    border-color: #444 !important;
}

body.dark-mode .mce-btn {
    background-color: #444 !important;
    color: #e0e0e0 !important;
    border-color: #555 !important;
}

body.dark-mode .mce-btn:hover {
    background-color: #555 !important;
    border-color: #666 !important;
    color: #fff !important;
}

body.dark-mode .mce-btn.mce-active {
    background-color: #337ab7 !important;
    color: #fff !important;
    border-color: #2e6da4 !important;
}

body.dark-mode .mce-listbox .mce-text {
    color: #e0e0e0 !important;
}

body.dark-mode .mce-combobox .mce-text {
    color: #e0e0e0 !important;
}

body.dark-mode .mce-window {
    background-color: #333 !important;
    color: #e0e0e0 !important;
    border-color: #444 !important;
}

body.dark-mode .mce-window-head {
    background-color: #444 !important;
    color: #e0e0e0 !important;
    border-color: #555 !important;
}

body.dark-mode .mce-window-body {
    background-color: #333 !important;
    color: #e0e0e0 !important;
    border-color: #444 !important;
}

body.dark-mode .mce-window-body .mce-form {
    background-color: #333 !important;
    color: #e0e0e0 !important;
}

body.dark-mode .mce-window-body .mce-form label {
    color: #e0e0e0 !important;
}

body.dark-mode .mce-window-body .mce-form input,
body.dark-mode .mce-window-body .mce-form textarea,
body.dark-mode .mce-window-body .mce-form select {
    background-color: #222 !important;
    color: #e0e0e0 !important;
    border-color: #444 !important;
}

body.dark-mode .mce-window-footer {
    background-color: #444 !important;
    color: #e0e0e0 !important;
    border-color: #555 !important;
}

body.dark-mode .mce-btn.mce-primary {
    background-color: #337ab7 !important;
    color: #fff !important;
    border-color: #2e6da4 !important;
}

body.dark-mode .mce-btn.mce-primary:hover {
    background-color: #23527c !important;
    border-color: #122b40 !important;
    color: #fff !important;
}

body.dark-mode .mce-btn.mce-secondary {
    background-color: #444 !important;
    color: #e0e0e0 !important;
    border-color: #555 !important;
}

body.dark-mode .mce-btn.mce-secondary:hover {
    background-color: #555 !important;
    border-color: #666 !important;
    color: #fff !important;
}

body.dark-mode .wp-media-buttons {
    background-color: #444 !important;
    color: #e0e0e0 !important;
    border-color: #555 !important;
}

body.dark-mode .wp-media-buttons button {
    background-color: #337ab7 !important;
    color: #fff !important;
    border-color: #2e6da4 !important;
}

body.dark-mode .wp-media-buttons button:hover {
    background-color: #23527c !important;
    border-color: #122b40 !important;
    color: #fff !important;
}

/* 修复可视化编辑器内容区域的夜间模式样式 */
body.dark-mode .mce-content-body {
    background-color: #222 !important;
    color: #e0e0e0 !important;
}

body.dark-mode .mce-content-body p,
body.dark-mode .mce-content-body h1,
body.dark-mode .mce-content-body h2,
body.dark-mode .mce-content-body h3,
body.dark-mode .mce-content-body h4,
body.dark-mode .mce-content-body h5,
body.dark-mode .mce-content-body h6,
body.dark-mode .mce-content-body ul,
body.dark-mode .mce-content-body ol,
body.dark-mode .mce-content-body table,
body.dark-mode .mce-content-body blockquote,
body.dark-mode .mce-content-body pre,
body.dark-mode .mce-content-body code {
    color: #e0e0e0 !important;
    background-color: #222 !important;
}

body.dark-mode .mce-content-body a {
    color: #337ab7 !important;
}

body.dark-mode .mce-content-body a:hover {
    color: #23527c !important;
}

body.dark-mode .mce-content-body img {
    border-color: #444 !important;
    background-color: #222 !important;
}

body.dark-mode .mce-content-body hr {
    border-color: #444 !important;
}

body.dark-mode .mce-content-body input,
body.dark-mode .mce-content-body textarea,
body.dark-mode .mce-content-body select,
body.dark-mode .mce-content-body button {
    background-color: #333 !important;
    color: #e0e0e0 !important;
    border-color: #444 !important;
}

body.dark-mode .mce-content-body input:hover,
body.dark-mode .mce-content-body textarea:hover,
body.dark-mode .mce-content-body select:hover,
body.dark-mode .mce-content-body button:hover {
    background-color: #444 !important;
    border-color: #555 !important;
    color: #fff !important;
}

body.dark-mode .news-flash-related {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    box-shadow: 0 2px 12px rgba(0,0,0,0.4), 0 1px 3px rgba(0,0,0,0.3);
    border-color: rgba(71, 85, 105, 0.5);
}

body.dark-mode .news-flash-related::before {
    background: linear-gradient(90deg, #4dabf7 0%, #667eea 50%, #4dabf7 100%);
}

body.dark-mode .news-flash-related h3 {
    color: #f1f5f9;
    border-bottom-color: #334155;
}

body.dark-mode .news-flash-related-item {
    background: #1e293b;
    border-color: rgba(71, 85, 105, 0.4);
    box-shadow: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
}

body.dark-mode .news-flash-related-item::before {
    background: linear-gradient(135deg, rgba(77, 171, 247, 0.08) 0%, rgba(102, 126, 234, 0.08) 100%);
}

body.dark-mode .news-flash-related-item:hover {
    box-shadow: 0 12px 24px rgba(0,0,0,0.5), 0 4px 8px rgba(0,0,0,0.3);
    border-color: rgba(77, 171, 247, 0.4);
}

body.dark-mode .news-flash-related-thumbnail {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

body.dark-mode .news-flash-related-title a {
    color: #e2e8f0;
}

body.dark-mode .news-flash-related-item:hover .news-flash-related-title a {
    color: #60a5fa;
}

body.dark-mode .news-flash-related-content time {
    color: #94a3b8;
}

.dark-mode-toggle {
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.dark-mode-toggle:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.dark-mode-toggle i {
    font-size: 14px;
    transition: all 0.3s ease;
}

.dark-mode-toggle.dark-mode-active {
    background-color: #343a40;
    color: #fff;
    border-color: #495057;
}

.dark-mode-toggle.dark-mode-active:hover {
    background-color: #495057;
    border-color: #6c757d;
}

body.dark-mode .dark-mode-toggle {
    background-color: #444;
    color: #e0e0e0;
    border-color: #555;
}

body.dark-mode .dark-mode-toggle:hover {
    background-color: #555;
    border-color: #666;
}

body.dark-mode .dark-mode-toggle i {
    color: #f1c40f;
}

body.dark-mode .dark-mode-toggle.dark-mode-active {
    background-color: #333;
    color: #e0e0e0;
    border-color: #444;
}

body.dark-mode .dark-mode-toggle.dark-mode-active i {
    color: #f1c40f;
}

body.dark-mode .dark-mode-toggle.dark-mode-active:hover {
    background-color: #222;
    border-color: #333;
}

/* 模态框夜间模式样式 */
body.dark-mode .news-flash-modal {
    background-color: rgba(0, 0, 0, 0.8) !important;
}

body.dark-mode .news-flash-modal .modal-content {
    background-color: #333 !important;
    color: #e0e0e0 !important;
    border-color: #444 !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5) !important;
}

body.dark-mode .news-flash-modal h3 {
    color: #e0e0e0 !important;
    border-bottom-color: #444 !important;
}

body.dark-mode .news-flash-modal input[type="text"],
body.dark-mode .news-flash-modal input[type="url"],
body.dark-mode .news-flash-modal textarea,
body.dark-mode .news-flash-modal select {
    background-color: #222 !important;
    color: #e0e0e0 !important;
    border-color: #444 !important;
}

body.dark-mode .news-flash-modal input[type="text"]::placeholder,
body.dark-mode .news-flash-modal input[type="url"]::placeholder,
body.dark-mode .news-flash-modal textarea::placeholder {
    color: #999 !important;
}

body.dark-mode .news-flash-modal .form-group label {
    color: #e0e0e0 !important;
}

body.dark-mode .news-flash-modal .btn {
    background-color: #337ab7 !important;
    color: #fff !important;
    border-color: #2e6da4 !important;
}

body.dark-mode .news-flash-modal .btn:hover {
    background-color: #23527c !important;
    border-color: #122b40 !important;
}

body.dark-mode .news-flash-modal .btn-secondary {
    background-color: #444 !important;
    color: #e0e0e0 !important;
    border-color: #555 !important;
}

body.dark-mode .news-flash-modal .btn-secondary:hover {
    background-color: #555 !important;
    border-color: #666 !important;
}

body.dark-mode .news-flash-modal .close-modal {
    color: #e0e0e0 !important;
}

body.dark-mode .news-flash-modal .close-modal:hover {
    color: #fff !important;
    background-color: #444 !important;
}

body.dark-mode .news-flash-modal .form-message {
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

body.dark-mode .news-flash-modal .form-message.success {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
    color: #d1fae5;
    border-color: #059669;
}

body.dark-mode .news-flash-modal .form-message.success::before {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
}

body.dark-mode .news-flash-modal .form-message.success::after {
    color: #6ee7b7;
}

body.dark-mode .news-flash-modal .form-message.error {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
    color: #fee2e2;
    border-color: #dc2626;
}

body.dark-mode .news-flash-modal .form-message.error::before {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
}

body.dark-mode .news-flash-modal .form-message.error::after {
    color: #fca5a5;
}

/* 评论模态框夜间模式样式 */
body.dark-mode .comments-modal {
    background: rgba(0, 0, 0, 0.7);
}

body.dark-mode .comments-modal .modal-content {
    background: #0f172a;
    box-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

body.dark-mode .comments-modal .modal-content > h3 {
    background: #0f172a;
    color: #f1f5f9;
    border-bottom-color: #1e293b;
}

body.dark-mode .comments-modal .close-modal {
    color: #94a3b8;
}

body.dark-mode .comments-modal .close-modal:hover {
    background: #1e293b;
    color: #f1f5f9;
}

body.dark-mode .comments-list::-webkit-scrollbar-thumb {
    background: #475569;
}

body.dark-mode .comments-list::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

body.dark-mode .comment-item {
    border-bottom-color: #1e293b;
}

body.dark-mode .comment-author {
    color: #f1f5f9;
}

body.dark-mode .comment-date {
    color: #94a3b8;
}

body.dark-mode .comment-content {
    color: #cbd5e1;
}

body.dark-mode .comment-actions {
    border-top-color: #1e293b;
}

body.dark-mode .quote-comment,
body.dark-mode .reply-comment {
    color: #94a3b8;
}

body.dark-mode .quote-comment:hover,
body.dark-mode .reply-comment:hover {
    color: #f1f5f9;
}

body.dark-mode .comment-page {
    background: #0f172a;
    border-color: #1e293b;
    color: #94a3b8;
}

body.dark-mode .comment-page:hover {
    background: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}

body.dark-mode .comment-page.active {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #f1f5f9;
}

body.dark-mode .comment-form {
    background: #1e293b;
    border-top-color: #334155;
}

body.dark-mode .comment-form h4 {
    color: #f1f5f9;
}

body.dark-mode .comment-form label {
    color: #cbd5e1;
}

body.dark-mode .comment-form input[type="text"],
body.dark-mode .comment-form textarea {
    background: #0f172a;
    border-color: #334155;
    color: #f1f5f9;
}

body.dark-mode .comment-form input[type="text"]:focus,
body.dark-mode .comment-form textarea:focus {
    border-color: #f1f5f9;
    box-shadow: 0 0 0 3px rgba(241, 245, 249, 0.1);
}

body.dark-mode .comment-form input[type="text"]::placeholder,
body.dark-mode .comment-form textarea::placeholder {
    color: #64748b;
}

body.dark-mode .comment-form button[type="submit"] {
    background: #f1f5f9;
    color: #0f172a;
}

body.dark-mode .comment-form button[type="submit"]:hover {
    background: #e2e8f0;
}

body.dark-mode .comment-item.private-comment {
    background: rgba(245, 158, 11, 0.15);
    border-bottom-color: rgba(245, 158, 11, 0.25);
}

body.dark-mode .login-prompt {
    background: #1e293b;
}

body.dark-mode .login-prompt p {
    color: #94a3b8;
}

body.dark-mode .login-prompt a {
    background: #f1f5f9;
    color: #0f172a;
}

body.dark-mode .login-prompt a:hover {
    background: #e2e8f0;
}

body.dark-mode .child-comments .comment-item::before {
    background: #334155;
}

body.dark-mode .quoted-comment {
    background: #1e293b;
    border-left-color: #475569;
}

body.dark-mode .quoted-author {
    color: #f1f5f9;
}

body.dark-mode .quoted-content {
    color: #94a3b8;
}

body.dark-mode .load-more-comments {
    background: #0f172a;
    color: #f1f5f9;
    border-color: #1e293b;
}

body.dark-mode .load-more-comments:hover {
    background: #1e293b;
}

/* 分享模态框夜间模式样式 */
body.dark-mode .news-share-modal {
    background-color: rgba(0, 0, 0, 0.8) !important;
}

body.dark-mode .news-share-modal .modal-overlay {
    background-color: rgba(0, 0, 0, 0.8) !important;
}

body.dark-mode .news-share-modal .nice-popup-content {
    background-color: #333 !important;
    color: #e0e0e0 !important;
    border-color: #444 !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5) !important;
}

body.dark-mode .news-share-modal .share-popup-header {
    background-color: #333 !important;
    color: #e0e0e0 !important;
    border-bottom-color: #444 !important;
}

body.dark-mode .news-share-modal .share-popup-header h4 {
    color: #e0e0e0 !important;
}

body.dark-mode .news-share-modal .close-share-modal {
    color: #e0e0e0 !important;
}

body.dark-mode .news-share-modal .close-share-modal:hover {
    color: #fff !important;
    background-color: #444 !important;
}

body.dark-mode .news-share-modal .share-popup-body {
    background-color: #333 !important;
    color: #e0e0e0 !important;
}

body.dark-mode .news-share-modal .share-options {
    background-color: #333 !important;
    color: #e0e0e0 !important;
}

body.dark-mode .news-share-modal .share-option {
    background-color: #444 !important;
    color: #e0e0e0 !important;
    border-color: #555 !important;
}

body.dark-mode .news-share-modal .share-option:hover {
    background-color: #555 !important;
    border-color: #666 !important;
}

body.dark-mode .news-share-modal .share-option i {
    color: #e0e0e0 !important;
}

/* ========================================
   搜索模块 - 现代化设计
   ======================================== */

.search-module {
    width: 100%;
    padding: 0;
    margin: 0;
}

.search-module-header h3 {
    font-size: 15px;
    margin: 0 0 14px 0;
    color: #1e293b;
    font-weight: 650;
}

.search-form {
    position: relative;
}

.search-module .search-form {
    width: 100%;
    padding: 0;
    margin: 0;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #e8e8f0;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
    padding: 0;
    margin: 0;
    background: #f8fafc;
}

.search-input-wrapper:focus-within {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: #ffffff;
}

.search-input-wrapper input[type="text"] {
    flex: 1;
    padding: 10px 16px;
    border: none;
    outline: none;
    font-size: 13px;
    background: transparent;
    color: #1e293b;
    margin: 0;
    min-width: 0;
}

.search-input-wrapper input[type="text"]::placeholder {
    color: #94a3b8;
}

.search-btn {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 0 22px 22px 0;
    margin: 0;
}

.search-btn:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
}

.search-btn i {
    font-size: 14px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.sidebar-module .search-module-header {
    width: 100%;
    padding: 0;
    margin: 0 0 10px 0;
}

/* 内容限制功能样式 */
.news-flash-restricted-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    margin: 20px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    position: relative;
    transition: all 0.3s ease;
    text-align: center;
    overflow: hidden;
}

.news-flash-restricted-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 12px 12px 0 0;
}

.news-flash-restricted-content.login-restricted::before {
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
}

.news-flash-restricted-content.comment-restricted::before {
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
}

.news-flash-restricted-content.password-restricted::before {
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
}

.news-flash-restricted-content:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* 图标区域 */
.restriction-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    position: relative;
}

.news-flash-restricted-content.login-restricted .restriction-icon {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

.news-flash-restricted-content.comment-restricted .restriction-icon {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: white;
}

.news-flash-restricted-content.password-restricted .restriction-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: white;
}

/* 图标背景装饰 */
.restriction-icon::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.restriction-message {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
    text-align: center;
    line-height: 1.4;
}

.restriction-submessage {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 28px;
    text-align: center;
    line-height: 1.5;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.restriction-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* 按钮样式 */
.restriction-action .btn {
    min-width: 140px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.restriction-action .btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.restriction-action .btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

.restriction-action .btn-secondary {
    background: #f3f4f6;
    color: #4b5563;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.restriction-action .btn-secondary:hover {
    background: #e5e7eb;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.comment-prompt {
    font-size: 14px;
    color: #6b7280;
    text-align: center;
    padding: 16px 24px;
    background-color: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    margin-top: 12px;
}

/* 密码输入表单样式 */
#news-flash-password-form {
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

#news-flash-password-form .form-group {
    width: 100%;
    margin: 0;
}

#news-flash-password-form .form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

#news-flash-password-form .form-control:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

#news-flash-password-form button[type="submit"] {
    width: 100%;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

#news-flash-password-form button[type="submit"]:hover {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
    transform: translateY(-1px);
}

#news-flash-password-form button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 成功和错误消息样式 */
.success-message {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid #bbf7d0;
    text-align: center;
    font-weight: 500;
    margin-top: 16px;
    width: 100%;
    box-shadow: 0 1px 2px rgba(16, 185, 129, 0.1);
}

.error-message {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #b91c1c;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid #fecaca;
    font-size: 13px;
    margin-top: 12px;
    text-align: center;
    width: 100%;
    box-shadow: 0 1px 2px rgba(239, 68, 68, 0.1);
}

/* 夜间模式下的内容限制样式 */
body.dark-mode .news-flash-restricted-content {
    background-color: #1f2937;
    border-color: #374151;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .news-flash-restricted-content:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

body.dark-mode .restriction-message {
    color: #f3f4f6;
}

body.dark-mode .restriction-submessage {
    color: #9ca3af;
}

body.dark-mode .comment-prompt {
    background-color: #374151;
    border-color: #4b5563;
    color: #d1d5db;
}

body.dark-mode #news-flash-password-form .form-control {
    background-color: #374151;
    border-color: #4b5563;
    color: #f3f4f6;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

body.dark-mode #news-flash-password-form .form-control:focus {
    border-color: #a78bfa;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
}

body.dark-mode #news-flash-password-form button[type="submit"] {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

body.dark-mode #news-flash-password-form button[type="submit"]:hover {
    background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
}

body.dark-mode .success-message {
    background: linear-gradient(135deg, #065f46 0%, #047857 100%);
    color: #a7f3d0;
    border-color: #059669;
}

body.dark-mode .error-message {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
    color: #fecaca;
    border-color: #b91c1c;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-flash-restricted-content {
        padding: 24px;
        margin: 16px 0;
    }
    
    .restriction-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
        margin-bottom: 16px;
    }
    
    .restriction-message {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .restriction-submessage {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .restriction-action {
        gap: 12px;
    }
    
    .restriction-action .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    #news-flash-password-form {
        max-width: 100%;
    }
    
    #news-flash-password-form .form-control {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    #news-flash-password-form button[type="submit"] {
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .news-flash-restricted-content {
        padding: 20px;
        margin: 12px 0;
    }
    
    .restriction-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .restriction-message {
        font-size: 14px;
    }
    
    .restriction-submessage {
        font-size: 12px;
        margin-bottom: 16px;
    }
    
    .restriction-action .btn {
        padding: 10px 16px;
        font-size: 12px;
    }
}

/* 评论按钮样式优化 */
.news-flash-comments .comment-toggle {
    background-color: #f8f9fa;
    color: #6c757d;
    padding: 4px 12px;
    border-radius: 10px; /* 圆角设计 */
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.news-flash-comments .comment-toggle:hover {
    background-color: #e9ecef;
    color: #495057;
}

/* 调整元数据区域布局 */
.news-flash-single-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.news-flash-single-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
}

.news-flash-single-meta span i {
    font-size: 12px;
    opacity: 0.8;
    color: #94a3b8;
    width: auto;
    text-align: center;
}

/* 移除分类前的分隔符 */
.news-flash-single-meta span.news-flash-categories::before {
    display: none;
}

/* 为评论按钮前添加分隔符 */
.news-flash-comments::before {
    content: "•";
    margin-right: 10px;
    color: #ddd;
}

/* 统一按钮样式 */
.btn,.like-button {
    font-weight: 600;
    font-size: 14px;
    padding: 10px 26px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
}

.btn i,.like-button i {
     margin-right: 8px;
}

/* 基础按钮样式 */
.btn {
    background-color: #3498db;
    color: #fff;
    border: none;
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.3);
}

.btn:hover {
    background-color: #2980b9;
    color: #fff;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.3);
}

/* 评论提交按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-primary:disabled:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transform: none;
}

.btn-success {
    background-color: #2ecc71;
    box-shadow: 0 2px 6px rgba(46, 204, 113, 0.3);
}

.btn-success:hover {
    background-color: #27ae60;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #95a5a6;
    box-shadow: 0 2px 6px rgba(149, 165, 166, 0.3);
}

.btn-secondary:hover {
    background-color: #7f8c8d;
    box-shadow: 0 4px 12px rgba(149, 165, 166, 0.4);
    transform: translateY(-1px);
}

/* 点赞按钮样式 */
.like-button {
    background: #6366f1;
    color: #fff;
    border: none;
    transition: all 0.2s ease;
    position: relative;
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
    padding: 10px 30px;
    font-size: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow: hidden;
    text-align: center;
}

/* 调整图标垂直位置，使其向下一点并与文字对齐 */
.like-button i {
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(1px); /* 向下调整1px */
}

.like-button:hover {
    background: #4f46e5;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

.like-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
}

.like-button.liked {
    background: #ec4899;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3);
}

.like-button.liked:hover {
    background: #db2777;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
}

.like-button .like-count {
    margin-left: 4px;
    font-weight: 500;
    font-size: 14px;
    opacity: 0.9;
}

/* 点赞动画效果 */
@keyframes likePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.like-button.liked i {
    animation: likePulse 0.4s ease;
    color: #fff;
}

/* 优化图标和文字间距 */
.like-button i {
    font-size: 16px;
    transition: all 0.2s ease;
}

/* 容器居中 */
.news-flash-like-container {
    text-align: center;
    margin: 25px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Yunext风格点赞按钮 */
.like-button.yunext-style {
    background: transparent;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: none;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    gap: 6px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* 调整Yunext风格点赞按钮图标位置 */
.like-button.yunext-style i {
    transform: translateY(1px); /* 向下调整1px */
}

.like-button.yunext-style:hover {
    background: #f9fafb;
    color: #374151;
    border-color: #d1d5db;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
}

.like-button.yunext-style:active {
    background: #f3f4f6;
    border-color: #9ca3af;
}



.like-button.yunext-style.liked {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fecaca;
    box-shadow: 0 1px 3px rgba(239, 68, 68, 0.1);
}

.like-button.yunext-style.liked:hover {
    background: #fecaca;
    color: #dc2626;
    border-color: #fca5a5;
}

.like-button.yunext-style .like-count {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
}

.like-button.yunext-style i {
    font-size: 14px;
    color: inherit;
}

.like-button.yunext-style.liked i {
    color: inherit;
    animation: likePulse 0.4s ease;
}

/* 紧凑风格点赞按钮 */
.hide-print {
    display: block;
}

@media print {
    .hide-print {
        display: none !important;
    }
}

.like-button.compact-style {
    background: transparent;
    color: #6c5ce7;
    border: 2px solid #6c5ce7;
    border-radius: 25px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    justify-content: center;
}

.like-button.compact-style:hover {
    background: rgba(108, 92, 231, 0.05);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.2);
    transform: translateY(-1px);
}

.like-button.compact-style:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(108, 92, 231, 0.15);
}

.like-button.compact-style.liked {
    background: rgba(232, 67, 147, 0.05);
    color: #e84393;
    border-color: #e84393;
}

.like-button.compact-style.liked:hover {
    background: rgba(232, 67, 147, 0.1);
    box-shadow: 0 4px 12px rgba(232, 67, 147, 0.2);
}

.like-button.compact-style .like-text {
    font-size: 14px;
    font-weight: 600;
}

.like-button.compact-style .like-count {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.9;
}

.like-button.compact-style i {
    font-size: 13px;
    transition: all 0.2s ease;
    color: inherit;
}

/* 平滑的点赞动画 */
@keyframes likeSmoothPulse {
    0% { transform: scale(1); }
    30% { transform: scale(1.2); }
    60% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.like-button.compact-style.liked i {
    animation: likeSmoothPulse 0.5s ease-in-out;
    color: inherit;
}

/* 优化容器间距 */
.news-flash-like-container {
    margin: 20px 0 !important;
}

/* 文章元信息样式 */
.news-flash-single-meta {
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin: 12px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.news-flash-source {
    display: inline-block;
    font-size: 13px;
    color: #64748b;
    margin-right: 16px;
}

.news-flash-source a {
    color: #4f46e5;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-flash-source a:hover {
    color: #4338ca;
    text-decoration: underline;
}

.news-flash-categories, .news-flash-specials {
    display: inline-block;
    margin-right: 16px;
}

.news-flash-categories a, .news-flash-specials a {
    display: inline-block;
    padding: 4px 12px;
    background: #e0e7ff;
    color: #4f46e5;
    text-decoration: none;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 6px;
    transition: all 0.2s ease;
}

.news-flash-categories a:hover, .news-flash-specials a:hover {
    background: #c7d2fe;
    color: #4338ca;
    transform: translateY(-1px);
}

/* 元信息操作区 */
.news-flash-meta-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #64748b;
    padding-top: 0;
    border-top: none;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.9;
}

.meta-item i {
    font-size: 12px;
    opacity: 0.8;
    color: #94a3b8;
}

.meta-action-btn {
    background: transparent;
    color: #64748b;
    border: 1px solid #e2e8f0;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.meta-action-btn:hover {
    background: #f1f5f9;
    color: #334155;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.meta-action-btn:active {
    transform: translateY(0);
    background: #e2e8f0;
}

.meta-action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.meta-action-btn:disabled:hover {
    transform: none;
    background: transparent;
    border-color: #e2e8f0;
}

.meta-action-btn i {
    font-size: 12px;
    opacity: 0.8;
    color: #94a3b8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-flash-meta-actions {
        gap: 12px;
        font-size: 12px;
    }
    
    .meta-action-btn {
        padding: 4px 10px;
        font-size: 11px;
    }
    
    .news-flash-source, .news-flash-categories, .news-flash-specials {
        margin-right: 12px;
        margin-bottom: 8px;
    }
}

/* ========================================
   Banner - 现代化设计
   ======================================== */

.news-flash-banner {
    margin-bottom: 28px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    aspect-ratio: 16 / 5;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.news-flash-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.news-flash-banner img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-flash-banner:hover img {
    transform: scale(1.02);
}

/* 添加渐变叠加层，提升视觉层次感 */
.news-flash-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.05) 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Banner内容样式 */
.news-flash-banner-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding: 20px;
}

.news-flash-banner-text {
    text-align: center;
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    max-width: 80%;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 30px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-flash-banner-text {
        font-size: 18px;
        padding: 15px 20px;
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .news-flash-banner-text {
        font-size: 16px;
        padding: 10px 15px;
        max-width: 95%;
    }
}

/* 为不同主题模式添加适配 */
body.dark-mode .news-flash-banner {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
}

body.dark-mode .news-flash-banner::before {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
}

body.dark-mode .news-flash-banner-text {
    background: rgba(255, 255, 255, 0.1);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* 布局样式 */
.news-flash-wrapper {
    display: flex;
    gap: 30px;
}

/* ========================================
   侧边栏 - 现代化卡片风格
   ======================================== */

.news-flash-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.sidebar-module {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid #f0f0f5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: all 0.25s ease;
}

.sidebar-module:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border-color: #e8e8f0;
}

.sidebar-module h3 {
    font-size: 15px;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
    color: #1e293b;
    font-weight: 650;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-module h3 i {
    font-size: 14px;
    color: #6366f1;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #34495e;
    text-decoration: none;
    padding: 6px 0;
    transition: color 0.2s ease;
}

.category-list a:hover,
.category-list a.active {
    color: #3498db;
}

.category-list .count {
    background: #f5f5f5;
    color: #7f8c8d;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

/* 内容区样式 */
.news-flash-content {
    flex-grow: 1;
    min-width: 0;
}

/* 列表样式 */
.news-flash-list {
    display: grid;
    gap: 20px;
}

/* ========================================
   现代化文章卡片系统
   ======================================== */

.news-flash-item {
    background: #ffffff;
    border-radius: 14px;
    padding: 0;
    border: 1px solid #f0f0f5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.news-flash-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.04);
    border-color: #e8e8f0;
}

/* 卡片内容区 */
.news-flash-item-content {
    padding: 20px 22px;
}

.news-flash-item-inner {
    padding: 20px 22px;
}

/* 顶部Meta信息 - 日期/分类/来源 */
.news-flash-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
    font-size: 12px;
    color: #8b8fa3;
}

.news-flash-item-meta .post-date {
    font-weight: 500;
    color: #9ca3af;
    font-variant-numeric: tabular-nums;
}

.news-flash-item-meta .post-category a {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    background: linear-gradient(135deg, #eff6ff, #eef2ff);
    color: #4f6ef7;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    letter-spacing: 0.02em;
}

.news-flash-item-meta .post-category a:hover {
    background: linear-gradient(135deg, #dbeafe, #e0e7ff);
    color: #3b5de7;
    transform: translateY(-1px);
}

.news-flash-item-meta .post-source {
    color: #a0a5b8;
    font-size: 11px;
}

.news-flash-item-meta span:not(:first-child)::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 3px;
    background: #d1d5db;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

.news-flash-item-meta .post-category::before {
    display: none;
}

/* 文章标题 */
.news-flash-item-title {
    margin: 0 0 10px;
    font-size: 17px;
    line-height: 1.5;
    font-weight: 650;
    letter-spacing: -0.01em;
}

.news-flash-item-title a {
    color: #1a1d2e;
    text-decoration: none;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-flash-item-title a:hover {
    color: #4f6ef7;
}

/* 文章摘要 */
.news-flash-item-excerpt {
    color: #6b7280;
    margin-bottom: 14px;
    line-height: 1.7;
    font-size: 13.5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-flash-item-excerpt p {
    margin: 0;
}

/* 缩略图 */
.news-flash-item-thumbnail {
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    position: relative;
}

.news-flash-item-thumbnail a {
    display: block;
    position: relative;
    overflow: hidden;
}

.news-flash-item-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: cover;
}

.news-flash-item:hover .news-flash-item-thumbnail img {
    transform: scale(1.03);
}

.news-flash-item-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f3f4f6;
}

/* 分页样式 */
.news-flash-pagination {
    margin: 30px 0;
    text-align: center;
}

/* 显示样式 - 大图卡片式 (默认) */
.news-flash-style-large-card .news-flash-list {
    grid-template-columns: 1fr;
}

.news-flash-style-large-card .news-flash-item {
    display: flex;
    flex-direction: column;
}

.news-flash-style-large-card .news-flash-item-thumbnail {
    order: 2;
    margin-top: 15px;
    margin-bottom: 15px;
}

.news-flash-style-large-card .news-flash-item-thumbnail img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
}

.news-flash-style-large-card .news-flash-item-sidebar {
    order: 3;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 13px;
    color: #666;
}

/* ========================================
   列表图文式布局 - 现代化左右结构
   ======================================== */

.news-flash-style-list-thumbnail .news-flash-item {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    padding: 0;
}

.news-flash-style-list-thumbnail .news-flash-item-thumbnail {
    flex-shrink: 0;
    width: 220px;
    min-height: 180px;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    position: relative;
}

.news-flash-style-list-thumbnail .news-flash-item-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

.news-flash-style-list-thumbnail .news-flash-item-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-flash-style-list-thumbnail .news-flash-item:hover .news-flash-item-thumbnail img {
    transform: scale(1.05);
}

.news-flash-style-list-thumbnail .news-flash-item-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px 22px;
}

/* 列表图文式元信息样式优化 */
.news-flash-style-list-thumbnail .news-flash-item-sidebar {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    align-items: flex-start;
}

.news-flash-style-list-thumbnail .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 15px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.news-flash-style-list-thumbnail .meta-item:hover {
    background: #e9ecef;
    color: #495057;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.news-flash-style-list-thumbnail .meta-item i {
    font-size: 13px;
    color: #868e96;
}

/* 重要性标签样式 */
.news-flash-style-list-thumbnail .meta-item.priority {
    background: #e7f5ff;
}



/* 我的知识弹窗夜间模式样式 */
body.dark-mode .my-knowledge-modal .modal-content {
    background-color: #333 !important;
    color: #e0e0e0 !important;
}

body.dark-mode .my-knowledge-banner {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    border-bottom-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.dark-mode .my-knowledge-banner::before {
    background: url('data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

body.dark-mode .my-knowledge-banner.style-minimal {
    background: linear-gradient(180deg, #2d3748 0%, #1a202c 100%);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .my-knowledge-banner.style-minimal::after {
    background: linear-gradient(90deg, #9f7aea 0%, #ed8936 100%);
}

body.dark-mode .my-knowledge-banner.style-label {
    background: linear-gradient(90deg, #2d3748 0%, #1a202c 100%);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .my-knowledge-banner.style-label::before {
    background: linear-gradient(135deg, #9f7aea 0%, #ed8936 100%);
    color: #e2e8f0;
}

body.dark-mode .my-knowledge-banner.style-label::after {
    background: linear-gradient(90deg, transparent 0%, #9f7aea 50%, transparent 100%);
}

body.dark-mode .my-knowledge-banner.style-soft {
    background: linear-gradient(180deg, #2d3748 0%, #1a202c 50%, #2d3748 100%);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .my-knowledge-banner.style-soft::before {
    background: linear-gradient(90deg, #9f7aea 0%, #ed8936 50%, #48bb78 100%);
}

body.dark-mode .my-knowledge-user-section {
    background: #444;
}

body.dark-mode .my-knowledge-user-section .stat-item {
    background: #333;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

body.dark-mode .my-knowledge-user-section .stat-number {
    color: #64b5f6;
}

body.dark-mode .my-knowledge-nav {
    border-bottom-color: #444;
}

body.dark-mode .my-knowledge-nav .nav-tab {
    color: #94a3b8;
}

body.dark-mode .my-knowledge-nav .nav-tab:hover {
    background: #444;
    color: #e0e0e0;
}

body.dark-mode .my-knowledge-nav .nav-tab.active {
    color: #60a5fa;
    background: #1e3a5f;
    border-bottom-color: #60a5fa;
}

body.dark-mode .my-knowledge-filter {
    background: #444;
    border-color: #555;
}

body.dark-mode .my-knowledge-filter .search-box input {
    background: #333;
    border-color: #555;
    color: #e0e0e0;
}

body.dark-mode .my-knowledge-filter .search-box input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.3);
}

body.dark-mode .my-knowledge-filter .search-box button {
    background: #2563eb;
}

body.dark-mode .my-knowledge-filter .search-box button:hover {
    background: #1d4ed8;
}

body.dark-mode .my-knowledge-filter .filter-group label {
    color: #ccc;
}

body.dark-mode .my-knowledge-filter .filter-group select {
    background: #333;
    border-color: #555;
    color: #e0e0e0;
}

body.dark-mode .my-knowledge-filter .filter-group select:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.3);
}

body.dark-mode .my-knowledge-body {
    background: #2a2a2a;
}

body.dark-mode .my-post-item, 
body.dark-mode .my-like-item, 
body.dark-mode .my-favorite-item,
body.dark-mode .my-comment-item,
body.dark-mode .my-history-item {
    background: #333;
    border-color: #444;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

body.dark-mode .my-post-item:hover, 
body.dark-mode .my-like-item:hover, 
body.dark-mode .my-favorite-item:hover,
body.dark-mode .my-comment-item:hover,
body.dark-mode .my-history-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border-color: #555;
}

body.dark-mode .my-post-title a, 
body.dark-mode .my-like-title a, 
body.dark-mode .my-favorite-title a,
body.dark-mode .my-comment-post-title a,
body.dark-mode .my-history-title a {
    color: #e0e0e0;
}

body.dark-mode .my-post-title a:hover, 
body.dark-mode .my-like-title a:hover, 
body.dark-mode .my-favorite-title a:hover,
body.dark-mode .my-comment-post-title a:hover,
body.dark-mode .my-history-title a:hover {
    color: #60a5fa;
}

body.dark-mode .my-post-meta, 
body.dark-mode .my-like-meta, 
body.dark-mode .my-favorite-meta,
body.dark-mode .my-comment-meta,
body.dark-mode .my-history-meta {
    color: #999;
}

body.dark-mode .my-post-excerpt, 
body.dark-mode .my-like-excerpt, 
body.dark-mode .my-favorite-excerpt,
body.dark-mode .my-comment-content,
body.dark-mode .my-history-excerpt {
    color: #ccc;
}

body.dark-mode .empty-content {
    background: #444;
    color: #ccc;
}

body.dark-mode .loading {
    color: #999;
}

/* 我的评论样式 */
.my-comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.my-comment-item {
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.my-comment-item:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    border-color: #e0e0e0;
}

.my-comment-post-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.my-comment-post-title a {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.my-comment-post-title a:hover {
    color: #3182ce;
    text-decoration: underline;
}

.my-comment-content {
    margin: 0 0 16px 0;
    color: #4a5568;
    line-height: 1.7;
    font-size: 15px;
    background: #f7fafc;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid #3182ce;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.my-comment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    color: #718096;
    margin-top: 0;
    padding-top: 12px;
    border-top: 1px solid #edf2f7;
}

.my-comment-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.my-comment-meta i {
    font-size: 12px;
    opacity: 0.8;
}

/* 我的发布、点赞、收藏样式优化 */
.my-post-item, .my-like-item, .my-favorite-item {
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.my-post-item:hover, .my-like-item:hover, .my-favorite-item:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    border-color: #e0e0e0;
}

.my-post-title, .my-like-title, .my-favorite-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.my-post-meta, .my-like-meta, .my-favorite-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    color: #718096;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf2f7;
}

.my-post-excerpt, .my-like-excerpt, .my-favorite-excerpt {
    margin: 12px 0;
    color: #4a5568;
    line-height: 1.7;
    font-size: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 浏览历史样式优化 */
.my-history-item {
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.my-history-item:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    border-color: #e0e0e0;
}

.my-history-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.my-history-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    color: #718096;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf2f7;
}

.my-history-excerpt {
    margin: 12px 0;
    color: #4a5568;
    line-height: 1.7;
    font-size: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 优化标签页样式 */
.my-knowledge-nav .nav-tab {
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* 优化搜索筛选区域 */
.my-knowledge-filter {
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
}

/* 优化用户信息区域 */
.my-knowledge-user-section {
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border: 1px solid #e2e8f0;
}

.user-details h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.user-details p {
    font-size: 14px;
    color: #718096;
    margin: 0;
}

/* 优化统计项 */
.user-stats {
    gap: 20px;
}

.stat-item {
    padding: 16px 20px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #3182ce;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.my-comment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: #666;
    margin-top: 10px;
}

.comment-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.my-comments-pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

/* 浏览历史样式 */
.my-history-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.my-history-item {
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.my-history-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.my-history-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.my-history-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.my-history-title a:hover {
    color: #0073aa;
}

.my-history-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.viewed-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.my-history-excerpt {
    margin: 10px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.my-history-pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

/* 夜间模式适配 */
body.dark-mode .my-comment-item, body.dark-mode .my-history-item {
    background: #333;
    border-color: #444;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

body.dark-mode .my-comment-post-title a, body.dark-mode .my-history-title a {
    color: #e0e0e0;
}

body.dark-mode .my-comment-post-title a:hover, body.dark-mode .my-history-title a:hover {
    color: #0073aa;
}

body.dark-mode .my-comment-content {
    background: #444;
    color: #ccc;
    border-left-color: #0073aa;
}

body.dark-mode .my-comment-meta, body.dark-mode .my-history-meta {
    color: #999;
}

body.dark-mode .my-history-excerpt {
    color: #ccc;
}

.news-flash-style-list-thumbnail .meta-item.priority {
    border-color: #d0ebff;
    color: #1864ab;
}

.news-flash-style-list-thumbnail .meta-item.priority:hover {
    background: #d0ebff;
    color: #154c79;
}

.news-flash-style-list-thumbnail .meta-item.priority.important {
    background: #fff5f5;
    border-color: #ffe3e3;
    color: #c92a2a;
}

.news-flash-style-list-thumbnail .meta-item.priority.important:hover {
    background: #ffe3e3;
    color: #a61e1e;
}

.news-flash-style-list-thumbnail .meta-item.priority.urgent {
    background: #fff9db;
    border-color: #ffe9a0;
    color: #a67706;
}

.news-flash-style-list-thumbnail .meta-item.priority.urgent:hover {
    background: #ffe9a0;
    color: #7c5c0a;
}

.news-flash-style-list-thumbnail .meta-item.priority.recommended {
    background: #f0fff4;
    border-color: #c6f6d5;
    color: #22543d;
}

.news-flash-style-list-thumbnail .meta-item.priority.recommended:hover {
    background: #c6f6d5;
    color: #1c4532;
}

/* 我的知识弹窗样式 */
.my-knowledge-modal {
    z-index: 10000;
}

.my-knowledge-modal .modal-content {
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    background-color: #ffffff;
}

.my-knowledge-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
}

/* 模态框标题样式 */
.my-knowledge-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    padding: 18px 20px;
    background-color: #fafcff;
    border-bottom: 1px solid #e2e8f0;
}

/* 左右两栏布局 */
.my-knowledge-layout {
    display: flex;
    gap: 0;
    height: calc(100% - 54px); /* 减去标题高度 */
    overflow: hidden;
}

/* 左侧：用户信息区域 */
.my-knowledge-left {
    width: 280px;
    background: #ffffff;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e8e8e8;
}

/* 用户资料卡片 */
.user-profile-card {
    padding: 4px 20px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    overflow-y: auto;
}

/* 用户头像区域 */
.user-avatar-area {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

/* 用户头像 */
.user-avatar-area .user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 2px solid #f0f4ff;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.2);
    background: #ffffff;
    transition: all 0.3s ease;
}

.user-avatar-area .user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

/* 备用头像 */
.user-avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    border: 2px solid #f0f4ff;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.user-avatar-placeholder:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

/* 用户基本信息 */
.user-basic-info {
    text-align: center;
    padding: 12px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.user-basic-info:hover {
    background: #ffffff;
    border-color: #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.user-name {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: color 0.3s ease;
}

.user-email-address {
    margin: 0 0 12px 0;
    font-size: 12px;
    color: #64748b;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: color 0.3s ease;
}

.user-basic-info:hover .user-name {
    color: #3b82f6;
}

.user-basic-info:hover .user-email-address {
    color: #475569;
}

/* 用户角色徽章 */
.user-role-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #f3f4f6;
    color: #374151;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.user-role-badge:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

/* 用户统计数据区域 */
.user-stats-area {
    width: 100%;
    background: #ffffff;
    border-radius: 16px;
    padding: 8px 20px 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    margin-bottom: 6px;
}

/* 统计标题 */
.stats-header {
    margin-bottom: 8px;
    text-align: center;
}

.stats-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.stats-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: #3b82f6;
    border-radius: 1px;
}

/* 统计数据网格 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* 统计卡片 */
.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 8px;
    background: #f9fafb;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--card-color, #3b82f6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
    background: #ffffff;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

/* 统计图标 */
.stat-card .stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--card-color, #3b82f6);
    position: relative;
    flex-shrink: 0;
    background: var(--card-bg, #eff6ff);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid var(--card-border, #dbeafe);
}

/* 使用简约图标替代emoji */
.stat-card:nth-child(1) {
    --card-bg: #eff6ff;
    --card-border: #dbeafe;
}

.stat-card:nth-child(1) .stat-icon::after {
    content: '✏️';
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.stat-card:nth-child(2) {
    --card-bg: #fef2f2;
    --card-border: #fee2e2;
}

.stat-card:nth-child(2) .stat-icon::after {
    content: '🤍';
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.stat-card:nth-child(3) {
    --card-bg: #fffbeb;
    --card-border: #fef3c7;
}

.stat-card:nth-child(3) .stat-icon::after {
    content: '☆';
    font-size: 16px;
    position: relative;
    z-index: 1;
}

.stat-card:nth-child(4) {
    --card-bg: #f0fdf4;
    --card-border: #dcfce7;
}

.stat-card:nth-child(4) .stat-icon::after {
    content: '💬';
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.stat-card:hover .stat-icon {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--card-color, #3b82f6);
}

/* 图标悬停效果 */
.stat-card:hover .stat-icon::after {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* 统计详情 */
.stat-details {
    position: relative;
    z-index: 1;
}

/* 统计数值 */
.stat-card .stat-value {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1;
    transition: color 0.3s ease;
    display: block;
}

/* 统计标签 */
.stat-card .stat-label {
    font-size: 9px;
    color: #64748b;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
    margin-top: 2px;
}

.stat-card:hover .stat-value {
    color: var(--card-color, #3b82f6);
    transform: translateY(-2px);
}

.stat-card:hover .stat-label {
    color: #334155;
}

/* 发布卡片 */
.stat-card:nth-child(1) {
    --card-color: #3b82f6;
}

/* 点赞卡片 */
.stat-card:nth-child(2) {
    --card-color: #ef4444;
}

/* 收藏卡片 */
.stat-card:nth-child(3) {
    --card-color: #f59e0b;
}

/* 评论卡片 */
.stat-card:nth-child(4) {
    --card-color: #10b981;
}

/* 隐藏原始图标元素 */
.stat-card .stat-icon i {
    display: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .user-stats-area {
        padding: 10px;
    }
    
    .stat-card {
        padding: 8px 6px;
    }
    
    .stat-card .stat-icon {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }
    
    .stat-card .stat-icon::after {
        font-size: 12px;
    }
    
    .stat-card .stat-value {
        font-size: 12px;
    }
    
    .stat-card .stat-label {
        font-size: 8px;
    }
}

/* 用户操作区域 */
.user-actions-area {
    width: 100%;
}

.actions-header {
    margin-bottom: 12px;
}

.actions-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* 操作列表 */
.actions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 定义CSS变量 */
:root {
    --theme-color: #667eea;
    --hover-color: #764ba2;
    --focus-shadow-color: rgba(102, 126, 234, 0.3);
    --this-color: #f1f2f3;
    --this-hover-color: #ffffff;
    --this-bg: var(--theme-color);
    --this-hover-bg: var(--hover-color);
    --this-shadow-bg: var(--focus-shadow-color);
}

/* 操作按钮 */
.action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* 主要操作按钮 */
.primary-action {
    --this-color: #f1f2f3;
    --this-hover-color: #ffffff;
    --this-bg: var(--theme-color);
    --this-hover-bg: var(--hover-color);
    --this-shadow-bg: var(--focus-shadow-color);
    
    color: var(--this-hover-color);
    background: var(--this-bg);
    border-color: var(--this-bg);
    box-shadow: 0 2px 8px var(--this-shadow-bg);
}

.primary-action:hover {
    background: var(--this-hover-bg);
    border-color: var(--this-hover-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 次要操作按钮 */
.secondary-action {
    --this-color: #666;
    --this-bg: rgba(136, 136, 136, .1);
    --this-border: transparent;
    --this-shadow: none;
    --this-hover-color: #444;
    --this-hover-bg: rgba(136, 136, 136, .2);
    
    color: var(--this-color);
    background: var(--this-bg);
    border: 1px solid var(--this-border);
    box-shadow: var(--this-shadow);
    vertical-align: middle;
    border-radius: 6px;
}

.secondary-action:hover {
    color: var(--this-hover-color);
    background: var(--this-hover-bg);
    border-color: var(--this-border);
    transform: translateY(-1px);
    box-shadow: var(--this-shadow);
}

/* 按钮图标 */
.action-button i {
    font-size: 14px;
    transition: all 0.3s ease;
}

.primary-action i {
    color: var(--this-hover-color);
}

.secondary-action i {
    color: var(--this-color);
}

.secondary-action:hover i {
    color: var(--this-hover-color);
}

/* 按钮点击效果 */
.action-button:active {
    transform: translateY(0);
}

.primary-action:active {
    box-shadow: 0 2px 4px var(--this-shadow-bg);
}

.secondary-action:active {
    box-shadow: 0 1px 3px var(--this-shadow-bg);
}

/* 夜间模式适配 */
body.dark-mode .user-profile-card {
    background: #333;
}

body.dark-mode .user-avatar-area .user-avatar {
    border-color: #4a4a4a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body.dark-mode .user-avatar-placeholder {
    border-color: #4a4a4a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body.dark-mode .user-name {
    color: #e0e0e0;
}

body.dark-mode .user-email-address {
    color: #ccc;
}

body.dark-mode .user-role-badge {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4298 100%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

body.dark-mode .stats-title {
    color: #e0e0e0;
}

body.dark-mode .stat-card {
    background: #444;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.dark-mode .stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .stat-card .stat-icon {
    background: #555;
    color: #95de64;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

body.dark-mode .stat-value {
    color: #e0e0e0;
}

body.dark-mode .stat-details .stat-label {
    color: #ccc;
}

body.dark-mode .actions-title {
    color: #e0e0e0;
}

body.dark-mode .primary-action {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4298 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body.dark-mode .primary-action:hover {
    background: linear-gradient(135deg, #4d5db8 0%, #5a3785 100%);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

body.dark-mode .secondary-action {
    background: #444;
    border-color: #555;
    color: #e0e0e0;
}

body.dark-mode .secondary-action:hover {
    background: #4a4a4a;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .secondary-action i {
    color: #ccc;
}

/* Banner区域 */
/* Banner区域 - 默认渐变方案 */
.my-knowledge-banner {
    height: 120px;
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Banner区域 - 默认渐变方案（装饰效果） */
.my-knowledge-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

/* Banner区域 - 简约纯色方案（推荐） */
.my-knowledge-banner.style-minimal {
    height: 70px;
    width: 100%;
    background: linear-gradient(180deg, #fefefe 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* 简约纯色方案装饰点 */
.my-knowledge-banner.style-minimal::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px 3px 0 0;
}

/* Banner区域 - 无Banner方案（紧凑） */
.my-knowledge-banner.style-none {
    display: none;
}

/* Banner区域 - 装饰性标签方案 */
.my-knowledge-banner.style-label {
    height: 50px;
    width: 100%;
    background: linear-gradient(90deg, #fefefe 0%, #f1f5f9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
}

.my-knowledge-banner.style-label::before {
    content: '我的知识';
    font-size: 16px;
    font-weight: 600;
    color: #475569;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

/* 装饰性标签方案的装饰元素 */
.my-knowledge-banner.style-label::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #667eea 50%, transparent 100%);
}

/* Banner区域 - 柔和渐变方案 */
.my-knowledge-banner.style-soft {
    height: 90px;
    width: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #f0f4f8 50%, #e2e8f0 100%);
    position: relative;
    border-bottom: 1px solid #cbd5e1;
    overflow: hidden;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.8);
}

/* 柔和渐变方案的装饰效果 */
.my-knowledge-banner.style-soft::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

/* Banner图片样式 */
.my-knowledge-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    display: block;
    transition: opacity 0.3s ease;
}

.my-knowledge-banner:hover img {
    opacity: 0.9;
}

/* 用户信息和统计 */
.my-knowledge-user-section {
    padding: 20px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    overflow-y: auto;
}

/* 用户头像区域 */
.user-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.user-avatar {
    margin-bottom: 15px;
    position: relative;
    margin-top: -45px;
    z-index: 10;
}

/* 无Banner方案下头像位置调整 */
.my-knowledge-banner.style-none + .my-knowledge-user-section .user-avatar {
    margin-top: 0;
}

.user-avatar img,
.user-avatar .avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 4px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

.user-basic-info {
    width: 100%;
}

.user-name {
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.user-email {
    margin: 0 0 10px 0;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.user-role {
    margin: 0;
    font-size: 11px;
    color: #4CAF50;
    background: #f0fff4;
    padding: 3px 10px;
    border-radius: 12px;
    display: inline-block;
    font-weight: 500;
    border: 1px solid #c6f6d5;
}

/* 用户统计数据 */
.user-stats-section {
    background: #fafafa;
    padding: 18px;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

.stats-title {
    margin: 0 0 12px 0;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.stat-item {
    background: #ffffff;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.stat-header {
    margin-bottom: 6px;
}

.stat-number {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.stat-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 11px;
    color: #666;
    font-weight: 500;
}

.stat-footer i {
    font-size: 13px;
    color: #999;
}

/* 用户操作快捷入口 */
.user-actions-section {
    background: #fafafa;
    padding: 18px;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

.actions-title {
    margin: 0 0 12px 0;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-actions-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #ffffff;
    border-radius: 6px;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.action-item:hover {
    background: #f0f9ff;
    color: #0ea5e9;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.action-item i {
    font-size: 14px;
    width: 18px;
    text-align: center;
    transition: all 0.3s ease;
    color: #999;
}

.action-item:hover i {
    color: #0ea5e9;
}

/* 右侧：内容区域 */
.my-knowledge-right {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0;
    background-color: #ffffff;
}

/* 功能导航样式 */
.my-knowledge-nav {
    display: flex;
    gap: 0;
    background: #ffffff;
    border-bottom: 1px solid #e8e8e8;
    overflow-x: hidden;
    flex-shrink: 0;
    padding: 0 16px;
    height: 50px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 10;
}

.my-knowledge-nav .nav-tab {
    padding: 0 18px;
    background: #ffffff;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    outline: none;
    white-space: nowrap;
    margin-bottom: -1px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 6px 6px 0 0;
    box-shadow: 0 0 0 1px transparent;
}

.my-knowledge-nav .nav-tab:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.02);
}

.my-knowledge-nav .nav-tab.active {
    color: #0ea5e9;
    background: #ffffff;
    border-bottom-color: #0ea5e9;
    box-shadow: 0 0 0 1px #e8e8e8, 0 -2px 0 0 #ffffff;
    margin: 0;
}

/* 搜索和筛选区域 */
.my-knowledge-filter {
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e8e8e8;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.filter-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 固定搜索框样式 */
.search-box-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    background: transparent;
    border: none;
    max-width: 350px;
}

.search-box {
    flex: 1;
    display: flex;
    width: 100%;
    opacity: 1;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    color: #333;
    transition: all 0.2s ease;
    background: #ffffff;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.search-box input:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05);
}

.search-box input::placeholder {
    color: #999;
}

.search-box button {
    position: absolute;
    right: 3px;
    top: 3px;
    bottom: 3px;
    width: 36px;
    padding: 0;
    background: #0ea5e9;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(14, 165, 233, 0.3);
}

.search-box button:hover {
    background: #0284c7;
    box-shadow: 0 2px 6px rgba(14, 165, 233, 0.4);
}

/* 搜索图标 */
.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    z-index: 1;
    font-size: 14px;
}

/* 筛选选项样式 */
.filter-options {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    height: auto;
    margin: 0;
}

.filter-group label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    height: auto;
    line-height: 1;
    margin: 0;
    white-space: nowrap;
}

.filter-group select {
    padding: 9px 32px 9px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    color: #555;
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L2 5h8z'/%3E%3C/svg%3E") no-repeat right 10px center;
    background-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    height: 38px;
    box-sizing: border-box;
    min-width: 90px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.filter-group select:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
    color: #333;
}

/* 自定义滚动条样式 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* 知识页面滚动条 */
.my-knowledge-container::-webkit-scrollbar-track {
    background: #f8f9fa;
}

.my-knowledge-container::-webkit-scrollbar-thumb {
    background: #e0e0e0;
}

.my-knowledge-container::-webkit-scrollbar-thumb:hover {
    background: #d0d0d0;
}

/* 夜间模式滚动条 */
body.dark-mode ::-webkit-scrollbar-track {
    background: #1f2937;
}

body.dark-mode ::-webkit-scrollbar-thumb {
    background: #4b5563;
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

body.dark-mode .my-knowledge-container::-webkit-scrollbar-track {
    background: #1f2937;
}

body.dark-mode .my-knowledge-container::-webkit-scrollbar-thumb {
    background: #374151;
}

body.dark-mode .my-knowledge-container::-webkit-scrollbar-thumb:hover {
    background: #4b5563;
}

/* Firefox滚动条样式 */
* {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

.my-knowledge-container {
    scrollbar-color: #e0e0e0 #f8f9fa;
}

body.dark-mode * {
    scrollbar-color: #4b5563 #1f2937;
}

body.dark-mode .my-knowledge-container {
    scrollbar-color: #374151 #1f2937;
}

/* 夜间模式 */
body.dark-mode .my-knowledge-nav {
    background: #1f2937;
    border-color: #374151;
}

body.dark-mode .my-knowledge-nav .nav-tab {
    color: #6b7280;
}

body.dark-mode .my-knowledge-nav .nav-tab:hover {
    color: #d1d5db;
}

body.dark-mode .my-knowledge-nav .nav-tab.active {
    color: #0ea5e9;
}

body.dark-mode .my-knowledge-filter {
    background: #1f2937;
    border-color: #374151;
}

body.dark-mode .search-box input {
    background: #374151;
    border-color: #4b5563;
    color: #f3f4f6;
}

body.dark-mode .search-icon {
    color: #6b7280;
}

body.dark-mode .filter-group label {
    color: #6b7280;
}

body.dark-mode .filter-group select {
    background-color: #374151;
    border-color: #4b5563;
    color: #d1d5db;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%236b7280' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
}

body.dark-mode .filter-group select:focus {
    border-color: #0ea5e9;
    color: #f3f4f6;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

/* 内容区域 */
.my-knowledge-body {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 12px;
}

/* 列表项样式 */
.my-knowledge-list-item {
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.my-knowledge-list-item:hover {
    border-color: #0ea5e9;
}

.my-knowledge-list-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.my-knowledge-list-item h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    line-height: 1.5;
    flex: 1;
}

.my-knowledge-list-item h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.my-knowledge-list-item h4 a:hover {
    color: #0ea5e9;
}

.my-knowledge-list-item .edit-btn {
    padding: 4px 10px;
    background: #f5f5f5;
    color: #888;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.my-knowledge-list-item .edit-btn:hover {
    background: #e5e5e5;
    color: #666;
}

.my-knowledge-list-item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
    font-size: 11px;
    color: #999;
}

.my-knowledge-list-item-meta .status-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
}

.my-knowledge-list-item-meta .status-publish {
    background: #dcfce7;
    color: #22c55e;
}

.my-knowledge-list-item-meta .status-pending {
    background: #fef3c7;
    color: #f59e0b;
}

.my-knowledge-list-item-meta .status-draft {
    background: #dbeafe;
    color: #3b82f6;
}

.my-knowledge-list-item-tags {
    margin-top: 6px;
}

.my-knowledge-list-item-tags .tag-item {
    display: inline-block;
    padding: 1px 6px;
    background: #f5f5f5;
    color: #888;
    font-size: 10px;
    border-radius: 3px;
    margin-right: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.my-knowledge-list-item-tags .tag-item:hover {
    background: #e5e5e5;
    color: #666;
}

/* 夜间模式 */
body.dark-mode .my-knowledge-list-item {
    background: #1f2937;
    border-color: #374151;
}

body.dark-mode .my-knowledge-list-item:hover {
    border-color: #0ea5e9;
}

body.dark-mode .my-knowledge-list-item h4 a {
    color: #f3f4f6;
}

body.dark-mode .my-knowledge-list-item h4 a:hover {
    color: #0ea5e9;
}

body.dark-mode .my-knowledge-list-item .edit-btn {
    background: #374151;
    color: #9ca3af;
}

body.dark-mode .my-knowledge-list-item .edit-btn:hover {
    background: #4b5563;
    color: #f3f4f6;
}

body.dark-mode .my-knowledge-list-item-meta {
    color: #6b7280;
}

body.dark-mode .my-knowledge-list-item-tags .tag-item {
    background: #374151;
    color: #9ca3af;
}

body.dark-mode .my-knowledge-list-item-tags .tag-item:hover {
    background: #4b5563;
    color: #f3f4f6;
}

.my-knowledge-list-item-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.my-knowledge-list-item-actions .btn {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    font-weight: 500;
    background: #ffffff;
    color: #666;
}

.my-knowledge-list-item-actions .btn-primary {
    background: #0ea5e9;
    color: #ffffff;
    border: 1px solid #0ea5e9;
}

.my-knowledge-list-item-actions .btn-primary:hover {
    background: #0284c7;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.my-knowledge-list-item-actions .btn-secondary {
    background: #f9fafb;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.my-knowledge-list-item-actions .btn-secondary:hover {
    background: #f3f4f6;
    color: #374151;
    border-color: #d1d5db;
}

/* 空状态样式 */
.empty-content {
    text-align: center;
    color: #64748b;
    padding: 60px 20px;
    background: #fafafa;
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    margin: 20px 0;
    font-size: 14px;
}

.empty-content i {
    font-size: 48px;
    color: #cbd5e1;
    margin-bottom: 16px;
    display: block;
}

.empty-content p {
    margin: 0;
    color: #94a3b8;
}

.empty-content .empty-title {
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 我的发布列表样式 */
.my-posts-list, .my-likes-list, .my-favorites-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.my-post-item, .my-like-item, .my-favorite-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 0 0 calc(50% - 12px);
    margin: 0 6px;
    height: 100%;
}

.my-post-item:hover, .my-like-item:hover, .my-favorite-item:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    border-color: #e2e8f0;
}

/* 特色图片样式 */
.my-post-thumbnail, .my-like-thumbnail, .my-favorite-thumbnail {
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: #f1f5f9;
    position: relative;
}

.my-post-thumbnail img, .my-like-thumbnail img, .my-favorite-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.my-post-item:hover .my-post-thumbnail img, .my-like-item:hover .my-like-thumbnail img, .my-favorite-item:hover .my-favorite-thumbnail img {
    transform: scale(1.05);
}

/* 内容区域 */
.my-post-content, .my-like-content, .my-favorite-content {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.my-post-title, .my-like-title, .my-favorite-title {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.my-post-title a, .my-like-title a, .my-favorite-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.my-post-title a:hover, .my-like-title a:hover, .my-favorite-title a:hover {
    color: #6366f1;
}

/* 元数据区域 */
.my-post-meta, .my-like-meta, .my-favorite-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: #94a3b8;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.my-post-meta > span, .my-like-meta > span, .my-favorite-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    vertical-align: middle;
    line-height: 1;
    white-space: nowrap;
}

.post-status {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 500;
    text-transform: capitalize;
}

.post-status.publish {
    background: #d1fae5;
    color: #065f46;
}

.post-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.post-status.draft {
    background: #e0e7ff;
    color: #3730a3;
}

.post-date, .post-views, .post-comments, .post-likes, .post-favorites {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    vertical-align: middle;
}

.post-date i, .post-views i, .post-comments i, .post-likes i, .post-favorites i {
    font-size: 12px;
    width: 14px;
    text-align: center;
}

/* 分类标签 */
.post-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.post-category {
    padding: 2px 8px;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-category:hover {
    background: #e2e8f0;
    color: #475569;
}

/* 摘要区域 */
.my-post-excerpt, .my-like-excerpt, .my-favorite-excerpt {
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 12px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 操作按钮 */
.my-post-actions, .my-like-actions, .my-favorite-actions {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

.my-post-actions .btn, .my-like-actions .btn, .my-favorite-actions .btn {
    padding: 4px 10px;
    font-size: 10px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.my-post-actions .btn-primary, .my-like-actions .btn-primary, .my-favorite-actions .btn-primary {
    background: #6366f1;
    color: #ffffff;
}

.my-post-actions .btn-primary:hover, .my-like-actions .btn-primary:hover, .my-favorite-actions .btn-primary:hover {
    background: #4f46e5;
}

/* 列表容器优化 */
.my-posts-list, .my-likes-list, .my-favorites-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0 -6px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .my-post-item, .my-like-item, .my-favorite-item {
        flex: 0 0 100%;
        margin: 0;
    }
    
    .my-post-title, .my-like-title, .my-favorite-title {
        font-size: 13px;
    }
    
    .my-posts-list, .my-likes-list, .my-favorites-list {
        gap: 12px;
        margin: 0;
    }
    
    .my-post-thumbnail, .my-like-thumbnail, .my-favorite-thumbnail {
        height: 100px;
    }
}

/* 小屏幕设备 */
@media (max-width: 480px) {
    .my-post-thumbnail, .my-like-thumbnail, .my-favorite-thumbnail {
        height: 90px;
    }
    
    .my-post-content, .my-like-content, .my-favorite-content {
        padding: 12px;
    }
    
    .my-post-title, .my-like-title, .my-favorite-title {
        font-size: 12px;
    }
    
    .my-post-meta, .my-like-meta, .my-favorite-meta {
        font-size: 10px;
        gap: 8px;
    }
}

/* 大屏幕设备 */
@media (min-width: 1200px) {
    .my-post-item, .my-like-item, .my-favorite-item {
        flex: 0 0 calc(33.333% - 12px);
    }
}

.empty-content {
    text-align: center;
    color: #64748b;
    padding: 40px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin: 20px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .my-knowledge-modal .modal-content {
        width: 98%;
        margin: 10px;
        max-height: 95vh;
    }
    
    .my-knowledge-layout {
        flex-direction: column;
        height: auto;
    }
    
    .my-knowledge-left {
        width: 100%;
        max-height: 300px;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .my-knowledge-right {
        flex: 1;
    }
    
    .my-knowledge-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    
    .my-knowledge-nav .nav-tab {
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 13px;
        padding: 14px 16px;
    }
    
    .filter-content {
        flex-direction: column;
        align-items: stretch !important;
        gap: 10px;
    }
    
    .filter-options {
        flex-direction: column;
        align-items: stretch !important;
        gap: 10px;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch !important;
        gap: 5px;
    }
    
    .search-box-container {
        flex-direction: column;
        align-items: stretch !important;
        gap: 5px;
    }
    
    .search-toggle {
        width: 100%;
    }
    
    .my-post-meta, .my-like-meta, .my-favorite-meta {
        gap: 10px;
        font-size: 11px;
    }
    
    .my-post-title, .my-like-title, .my-favorite-title {
        font-size: 14px;
    }
}

/* 夜间模式样式 */
body.dark-mode .my-knowledge-modal .modal-content {
    background-color: #1f2937 !important;
    color: #f3f4f6 !important;
    border-color: #374151 !important;
}

body.dark-mode .my-knowledge-content h3 {
    background-color: #111827 !important;
    border-bottom-color: #374151 !important;
    color: #f3f4f6 !important;
}

body.dark-mode .my-knowledge-left {
    background: #1f2937 !important;
    border-right-color: #374151 !important;
    box-shadow: none !important;
}

body.dark-mode .my-knowledge-banner {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%) !important;
}

body.dark-mode .user-avatar-section {
    border-bottom-color: #374151 !important;
}

body.dark-mode .user-avatar img,
body.dark-mode .user-avatar .avatar {
    border-color: #1f2937 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    background: #1f2937 !important;
}

body.dark-mode .user-name {
    color: #f3f4f6 !important;
}

body.dark-mode .user-email {
    color: #9ca3af !important;
}

body.dark-mode .user-role {
    background: #164e63 !important;
    color: #22d3ee !important;
    border-color: #0e7490 !important;
}

body.dark-mode .user-stats-section,
body.dark-mode .user-actions-section {
    background: #111827 !important;
    border-color: #374151 !important;
}

body.dark-mode .stats-title,
body.dark-mode .actions-title {
    color: #9ca3af !important;
}

body.dark-mode .stat-item {
    background: #1f2937 !important;
    border-color: #374151 !important;
    box-shadow: none !important;
}

body.dark-mode .stat-item:hover {
    background: #2d3748 !important;
}

body.dark-mode .stat-number {
    color: #f3f4f6 !important;
}

body.dark-mode .stat-footer {
    color: #9ca3af !important;
}

body.dark-mode .stat-footer i {
    color: #64748b !important;
}

body.dark-mode .action-item {
    background: #1f2937 !important;
    color: #9ca3af !important;
    border-color: #374151 !important;
    box-shadow: none !important;
}

body.dark-mode .action-item:hover {
    background: #2d3748 !important;
    color: #f3f4f6 !important;
    border-color: #4b5563 !important;
}

body.dark-mode .action-item i {
    color: #64748b !important;
}

body.dark-mode .action-item:hover i {
    color: #22d3ee !important;
}

body.dark-mode .my-knowledge-right {
    background-color: #1f2937 !important;
}

body.dark-mode .my-knowledge-nav {
    background: #111827 !important;
    border-bottom-color: #374151 !important;
}

body.dark-mode .my-knowledge-nav .nav-tab {
    color: #9ca3af !important;
}

body.dark-mode .my-knowledge-nav .nav-tab:hover {
    background: #1f2937 !important;
    color: #f3f4f6 !important;
    border-bottom-color: #374151 !important;
}

body.dark-mode .my-knowledge-nav .nav-tab.active {
    background: #1f2937 !important;
    color: #22d3ee !important;
    border-bottom-color: #22d3ee !important;
    border-right-color: #374151 !important;
    border-left-color: #374151 !important;
}

body.dark-mode .my-knowledge-filter {
    background: #111827 !important;
    border-color: #374151 !important;
}

body.dark-mode .search-box input {
    background-color: #1f2937 !important;
    color: #f3f4f6 !important;
    border-color: #374151 !important;
}

body.dark-mode .search-box input:focus {
    border-color: #22d3ee !important;
    box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.1) !important;
}

body.dark-mode .search-box button {
    background: #22d3ee !important;
    color: #0f172a !important;
}

body.dark-mode .search-box button:hover {
    background: #06b6d4 !important;
}

body.dark-mode .search-toggle {
    background: #1f2937 !important;
    color: #9ca3af !important;
    border-color: #374151 !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: none !important;
}

body.dark-mode .search-toggle::before,
body.dark-mode .search-toggle::after {
    content: none !important;
    display: none !important;
}

body.dark-mode .search-toggle i,
body.dark-mode .search-toggle svg,
body.dark-mode .search-toggle span[class^="fa-"],
body.dark-mode .search-toggle span[class*=" fa-"] {
    display: none !important;
}

body.dark-mode .search-toggle:hover {
    background: #2d3748 !important;
    color: #f3f4f6 !important;
    border-color: #4b5563 !important;
}

body.dark-mode .filter-group label {
    color: #9ca3af !important;
}

body.dark-mode .filter-group select {
    background-color: #1f2937 !important;
    color: #f3f4f6 !important;
    border-color: #374151 !important;
    box-shadow: none !important;
}

body.dark-mode .filter-group select:focus {
    border-color: #22d3ee !important;
    box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.1) !important;
}

body.dark-mode .my-knowledge-body {
    background: #1f2937 !important;
}

body.dark-mode .my-knowledge-list-item {
    background: #1f2937 !important;
    border-color: #374151 !important;
    box-shadow: none !important;
}

body.dark-mode .my-knowledge-list-item:hover {
    background: #2d3748 !important;
    border-color: #22d3ee !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .my-knowledge-list-item h4 a {
    color: #f3f4f6 !important;
}

body.dark-mode .my-knowledge-list-item h4 a:hover {
    color: #22d3ee !important;
}

body.dark-mode .my-knowledge-list-item-meta {
    color: #9ca3af !important;
}

body.dark-mode .my-knowledge-list-item-meta .status-publish {
    background: #064e3b !important;
    color: #10b981 !important;
    border-color: #059669 !important;
}

body.dark-mode .my-knowledge-list-item-meta .status-pending {
    background: #451a03 !important;
    color: #f59e0b !important;
    border-color: #92400e !important;
}

body.dark-mode .my-knowledge-list-item-meta .status-draft {
    background: #1e3a8a !important;
    color: #60a5fa !important;
    border-color: #3b82f6 !important;
}

body.dark-mode .my-knowledge-list-item-tags .tag-item {
    background: #2d3748 !important;
    color: #9ca3af !important;
    border-color: #374151 !important;
}

body.dark-mode .my-knowledge-list-item-tags .tag-item:hover {
    background: #22d3ee !important;
    color: #0f172a !important;
    border-color: #22d3ee !important;
}

body.dark-mode .my-knowledge-list-item-actions .btn {
    background: #1f2937 !important;
    color: #9ca3af !important;
    border-color: #374151 !important;
}

body.dark-mode .my-knowledge-list-item-actions .btn:hover {
    background: #2d3748 !important;
    color: #f3f4f6 !important;
    border-color: #4b5563 !important;
}

body.dark-mode .my-knowledge-list-item-actions .btn-primary {
    background: #22d3ee !important;
    color: #0f172a !important;
    border-color: #22d3ee !important;
}

body.dark-mode .my-knowledge-list-item-actions .btn-primary:hover {
    background: #06b6d4 !important;
}

body.dark-mode .empty-content {
    background: #111827 !important;
    border-color: #374151 !important;
    color: #9ca3af !important;
    border-style: dashed !important;
}

body.dark-mode .empty-content i {
    color: #64748b !important;
}

body.dark-mode .empty-content .empty-title {
    color: #9ca3af !important;
}

body.dark-mode .empty-content p {
    color: #64748b !important;
}

/* 列表图文式 - 已统一到上方现代化布局定义 */

.news-flash-style-list-thumbnail .meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-flash-style-list-thumbnail .meta-item i {
    font-size: 13px;
    color: #999;
}

/* ========================================
   底部元信息区 - 精致胶囊标签
   ======================================== */

.news-flash-item-footer-meta {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f3f4f6;
    font-size: 12px;
    color: #6b7280;
}

/* 统一Meta标签胶囊样式 */
.news-flash-item-footer-meta .meta-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    padding: 4px 10px !important;
    border-radius: 8px !important;
    border: none !important;
    transition: all 0.2s ease !important;
    cursor: default;
    background: #f8fafc !important;
    color: #64748b !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.news-flash-item-footer-meta .meta-item:hover {
    background: #f1f5f9 !important;
    color: #475569 !important;
}

/* 图标简洁化 - 覆盖 rounded-icons.css */
.news-flash-item-footer-meta .meta-item i {
    font-size: 11px !important;
    color: inherit !important;
    opacity: 0.7 !important;
    background: none !important;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.news-flash-item-footer-meta .meta-item i:hover {
    transform: none !important;
    background: none !important;
    box-shadow: none !important;
}

/* 阅读量 - 淡灰 */
.news-flash-item-footer-meta .meta-item.views {
    background: #f8fafc !important;
    color: #94a3b8 !important;
}

/* 点赞 - 柔红 */
.news-flash-item-footer-meta .meta-item.likes {
    background: #fef2f2 !important;
    color: #ef4444 !important;
}

.news-flash-item-footer-meta .meta-item.likes:hover {
    background: #fee2e2 !important;
}

/* 评论 - 淡绿 */
.news-flash-item-footer-meta .meta-item.comments {
    background: #f0fdf4 !important;
    color: #22c55e !important;
}

.news-flash-item-footer-meta .meta-item.comments:hover {
    background: #dcfce7 !important;
}

/* 重要性标签 - 各级别颜色 */
.news-flash-item-footer-meta .meta-item.priority {
    font-weight: 600 !important;
    padding: 4px 12px !important;
}

/* 普通 - 蓝 */
.news-flash-item-footer-meta .meta-item.priority.normal {
    background: #eff6ff !important;
    color: #3b82f6 !important;
    border: 1px solid #dbeafe !important;
}

/* 重要 - 橙 */
.news-flash-item-footer-meta .meta-item.priority.important {
    background: #fff7ed !important;
    color: #ea580c !important;
    border: 1px solid #fed7aa !important;
}

/* 紧急 - 红 */
.news-flash-item-footer-meta .meta-item.priority.urgent {
    background: #fef2f2 !important;
    color: #dc2626 !important;
    border: 1px solid #fecaca !important;
}

/* 推荐 - 绿 */
.news-flash-item-footer-meta .meta-item.priority.recommended {
    background: #f0fdf4 !important;
    color: #16a34a !important;
    border: 1px solid #bbf7d0 !important;
}

.news-flash-item-footer-meta .meta-item.priority i {
    opacity: 1 !important;
}

/* 移除不再需要的侧边栏样式 */
.news-flash-item-sidebar {
    display: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-flash-style-list-thumbnail .news-flash-item {
        flex-direction: column;
        gap: 0;
    }
    
    .news-flash-style-list-thumbnail .news-flash-item-thumbnail {
        width: 100%;
        height: 180px;
        min-height: 0;
    }

    .news-flash-style-list-thumbnail .news-flash-item-content {
        padding: 14px 16px;
    }
    
    .news-flash-style-list-thumbnail .news-flash-item-footer-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .news-flash-style-list-thumbnail .news-flash-item-footer-meta .meta-item {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }
}

/* ========================================
   分页器 - 现代化药丸样式
   ======================================== */

.news-flash-pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    gap: 6px;
    background: #f8fafc;
    padding: 6px;
    border-radius: 14px;
    border: 1px solid #f0f0f5;
}

.news-flash-pagination li {
    display: inline;
}

.news-flash-pagination a,
.news-flash-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 6px;
    border-radius: 10px;
    text-decoration: none;
    color: #64748b;
    background: transparent;
    border: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.news-flash-pagination a:hover {
    background: #ffffff;
    color: #1e293b;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.news-flash-pagination .current {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.news-flash-pagination .dots {
    color: #94a3b8;
    background: none;
    box-shadow: none;
}

.news-flash-pagination .prev,
.news-flash-pagination .next {
    font-size: 12px;
    padding: 0 10px;
}

/* ========================================
   详情页 - 现代化排版
   ======================================== */

.news-flash-single {
    background: #ffffff;
    border-radius: 16px;
    padding: 36px 40px;
    border: 1px solid #f0f0f5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    margin-bottom: 30px;
}

/* 详情页标题 */
.news-flash-single-title {
    font-weight: 750;
    color: #0f172a;
    margin-bottom: 20px;
    padding-bottom: 0;
    border-bottom: none;
    letter-spacing: -0.025em;
    line-height: 1.35;
}

/* 小屏幕设备 */
@media (max-width: 767px) {
    .news-flash-single-title {
        font-size: 20px;
    }
}

/* 平板设备 */
@media (min-width: 768px) and (max-width: 1023px) {
    .news-flash-single-title {
        font-size: 22px;
    }
}

/* 大屏幕设备 */
@media (min-width: 1024px) {
    .news-flash-single-title {
        font-size: 26px;
    }
}

.news-flash-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 18px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 28px;
    color: #64748b;
    font-size: 13px;
    border: 1px solid #f0f0f5;
}

.news-flash-single-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.news-flash-single-meta span:not(:first-child)::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 3px;
    background: #cbd5e1;
    border-radius: 50%;
    margin-right: 6px;
}

.news-flash-single-meta a {
   background-color: #f0f7ff;
    color: #2c5282;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.news-flash-single-meta a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.news-flash-single-thumbnail {
    margin: 25px 0;
    border-radius: 8px;
    overflow: hidden;
}

.news-flash-single-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.news-flash-single-content {
    color: #1e293b;
    line-height: 1.85;
    font-size: 16px;
    letter-spacing: 0.01em;
}

.news-flash-single-content p {
    margin-bottom: 18px;
}

.news-flash-single-content a {
    color: #3b82f6;
    text-decoration: none;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.2s ease;
}

.news-flash-single-content a:hover {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.news-flash-single-content img {
    border-radius: 10px;
    margin: 8px 0;
}

.news-flash-single-content ul,
.news-flash-single-content ol {
    padding-left: 24px;
    margin-bottom: 18px;
}

.news-flash-single-content li {
    margin-bottom: 6px;
    line-height: 1.75;
}

.news-flash-single-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin: 28px 0;
}

.news-flash-single-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.news-flash-single-content th {
    background: #f8fafc;
    font-weight: 600;
    color: #1e293b;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
    font-size: 13px;
}

.news-flash-single-content td {
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

.news-flash-single-content tr:last-child td {
    border-bottom: none;
}

.news-flash-single-content code {
    background: #f1f5f9;
    color: #e11d48;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.875em;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.news-flash-single-content pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 20px 24px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 18px 0;
    font-size: 13px;
    line-height: 1.6;
    border: 1px solid #1e293b;
}

.news-flash-single-content pre code {
    background: none;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
}

/* 引用块基础样式 */
.news-flash-single-content blockquote {
    margin: 20px 0;
    padding: 16px 20px;
    border-left: 4px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    font-size: 14.5px;
    line-height: 1.7;
    border-radius: 0 10px 10px 0;
}

.news-flash-single-content blockquote p:last-child {
    margin-bottom: 0;
}

/* 灰色引用块（默认） */
.news-flash-single-content blockquote,
.news-flash-single-content blockquote.gray {
    background: #f8fafc;
    border-left-color: #cbd5e1;
    color: #475569;
}

/* 红色引用块 */
.news-flash-single-content blockquote.red {
    background-color: #fff1f0;
    border-left-color: #ff4d4f;
    color: #cf1322;
}

/* 蓝色引用块 */
.news-flash-single-content blockquote.blue {
    background-color: #e6f7ff;
    border-left-color: #1890ff;
    color: #0050b3;
}

/* 绿色引用块 */
.news-flash-single-content blockquote.green {
    background-color: #f6ffed;
    border-left-color: #52c41a;
    color: #389e0d;
}

/* 新增引用块颜色选项 */
.news-flash-single-content blockquote.yellow {
    background-color: #fffbe6;
    border-left-color: #faad14;
    color: #d48806;
}

.news-flash-single-content blockquote.purple {
    background-color: #f9f0ff;
    border-left-color: #722ed1;
    color: #531dab;
}

.news-flash-single-content blockquote.orange {
    background-color: #fff7e6;
    border-left-color: #fa8c16;
    color: #d46b08;
}

/* 按钮容器样式 */
.news-flash-actions-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.news-flash-single-actions {
    padding-top: 20px;
    border-top: 1px solid #eee;
}



/* 点赞按钮容器 */
.news-flash-like-container {
    margin: 20px 0;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: center;
}

/* 相关知识 */
.news-flash-related {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.02);
    margin-top: 40px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    overflow: hidden;
}

/* 添加装饰性渐变背景 */
.news-flash-related::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 200% 100%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.news-flash-related h3 {
    font-size: 22px;
    margin: 0 0 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
    color: #1e293b;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-flash-related h3::before {
    content: '✨';
    font-size: 20px;
}

.news-flash-related-list {
    display: grid;
    gap: 24px;
    /* 默认自适应布局 */
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* 根据数量适配的布局 */
.news-flash-related-list.count-3 {
    grid-template-columns: repeat(3, 1fr);
}

.news-flash-related-list.count-4 {
    grid-template-columns: repeat(4, 1fr);
}

.news-flash-related-list.count-5 {
    grid-template-columns: repeat(5, 1fr);
}

.news-flash-related-list.count-6 {
    grid-template-columns: repeat(6, 1fr);
}

.news-flash-related-list.count-7 {
    grid-template-columns: repeat(4, 1fr);
}

.news-flash-related-list.count-8 {
    grid-template-columns: repeat(4, 1fr);
}

.news-flash-related-list.count-9 {
    grid-template-columns: repeat(3, 1fr);
}

.news-flash-related-list.count-10 {
    grid-template-columns: repeat(4, 1fr);
}

.news-flash-related-list.count-11 {
    grid-template-columns: repeat(4, 1fr);
}

.news-flash-related-list.count-12 {
    grid-template-columns: repeat(4, 1fr);
}

.news-flash-related-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 0.6);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.news-flash-related-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 1;
}

.news-flash-related-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.06);
    border-color: rgba(102, 126, 234, 0.3);
}

.news-flash-related-item:hover::before {
    opacity: 1;
}

.news-flash-related-thumbnail {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    position: relative;
}

.news-flash-related-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.02) 100%);
    pointer-events: none;
}

.news-flash-related-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-flash-related-item:hover .news-flash-related-thumbnail img {
    transform: scale(1.08);
}

.news-flash-related-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
    color: #94a3b8;
    font-size: 36px;
}

.news-flash-related-content {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

/* 相关知识标题适配 */
.news-flash-related-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 45px;
    flex: 1;
}

.news-flash-related-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.25s ease;
}

.news-flash-related-item:hover .news-flash-related-title a {
    color: #3b82f6;
}

.news-flash-related-content time {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    margin-top: auto;
}

.news-flash-related-content time::before {
    content: '📅';
    font-size: 12px;
}

/* 小屏幕 - 相关知识横向紧凑布局 */
@media (max-width: 767px) {
    .news-flash-related {
        padding: 16px;
        margin: 16px 0;
        border-radius: 12px;
    }
    
    .news-flash-related h3 {
        font-size: 16px;
        margin-bottom: 16px;
        padding-bottom: 10px;
    }
    
    .news-flash-related h3::before {
        font-size: 16px;
    }
    
    .news-flash-related-list {
        /* 小屏幕统一显示1列，但卡片改为横向布局 */
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    
    /* 移动端卡片改为横向布局 */
    .news-flash-related-item {
        display: flex;
        flex-direction: row;
        border-radius: 10px;
        overflow: hidden;
    }
    
    .news-flash-related-thumbnail {
        width: 100px;
        min-width: 100px;
        height: 75px;
        border-radius: 8px 0 0 8px;
    }
    
    .news-flash-related-thumbnail img {
        border-radius: 8px 0 0 8px;
    }
    
    .news-flash-related-content {
        padding: 10px 12px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        flex: 1;
        min-width: 0; /* 防止内容溢出 */
    }
    
    .news-flash-related-title {
        font-size: 14px;
        height: auto;
        line-height: 1.4;
        margin-bottom: 4px;
        -webkit-line-clamp: 2;
    }
    
    .news-flash-related-title a {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .news-flash-related-content time {
        font-size: 11px;
        color: #94a3b8;
    }
    
    .news-flash-related-content time::before {
        font-size: 10px;
        margin-right: 3px;
    }
    
    /* 移动端hover效果调整 */
    .news-flash-related-item:hover {
        transform: translateY(-2px);
    }
    
    .news-flash-related-item:hover .news-flash-related-thumbnail img {
        transform: scale(1.05);
    }
    
    /* 移动端文章标题和meta */
    .news-flash-single-title {
        font-size: 22px;
        padding-bottom: 10px;
        margin-bottom: 15px;
    }
    
    .news-flash-single-meta {
        padding: 12px 15px;
        gap: 12px;
        font-size: 13px;
    }
    
    .news-flash-single-meta span:not(:first-child)::before {
        margin-right: 12px;
    }
}

/* 中等屏幕 */
@media (min-width: 768px) and (max-width: 991px) {
    .news-flash-related-list {
        /* 中等屏幕最多显示2列 */
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* 大屏幕 */
@media (min-width: 992px) and (max-width: 1199px) {
    .news-flash-related-list.count-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .news-flash-related-list.count-4,
    .news-flash-related-list.count-5,
    .news-flash-related-list.count-6,
    .news-flash-related-list.count-7,
    .news-flash-related-list.count-8,
    .news-flash-related-list.count-9,
    .news-flash-related-list.count-10,
    .news-flash-related-list.count-11,
    .news-flash-related-list.count-12 {
        grid-template-columns: repeat(3, 1fr);
    }
}
    .news-flash-related-list.count-8,
    .news-flash-related-list.count-9,
    .news-flash-related-list.count-12 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .news-flash-related-list:not([class*="count-"]) {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 超大屏幕 */
@media (min-width: 1200px) {
    .news-flash-related-list {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .news-flash-related-thumbnail {
        height: 150px;
    }
    
    .news-flash-related-content {
        padding: 18px;
    }
    
    .news-flash-related-title {
        font-size: 16px;
        height: 44px;
    }
}

.no-related,
.no-news-flash {
    text-align: center;
    padding: 30px;
    color: #7f8c8d;
    background-color: #f9f9f9;
    border-radius: 8px;
}

/* 模态框样式 */
.news-flash-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow-y: auto;
}

.modal-content {
    background-color: #fff;
    margin: 50px auto;
    padding: 25px;
    border-radius: 8px;
    width: 90%;
    max-width: 700px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(-30px);}
    to {opacity: 1; transform: translateY(0);}
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #333;
}

#modal-title {
    margin: 0 0 20px;
    color: #2c3e50;
    font-size: 20px;
}

/* 表单样式 */
.news-flash-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #34495e;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.required {
    color: #e74c3c;
}

.form-actions {
    margin-top: 30px;
    display: flex;
    gap: 10px;
}

.form-message {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 12px;
    display: none;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    animation: slideInDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.form-message::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-message.success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid #6ee7b7;
    display: block;
}

.form-message.success::before {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
}

.form-message.success::after {
    content: '✓';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: bold;
    color: #059669;
    animation: checkmark 0.5s ease 0.2s both;
}

@keyframes checkmark {
    0% {
        opacity: 0;
        transform: translateY(-50%) scale(0);
    }
    50% {
        transform: translateY(-50%) scale(1.2);
    }
    100% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

.form-message.error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 1px solid #fca5a5;
    display: block;
}

.form-message.error::before {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
}

.form-message.error::after {
    content: '✗';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: bold;
    color: #dc2626;
    animation: errormark 0.5s ease 0.2s both;
}

@keyframes errormark {
    0% {
        opacity: 0;
        transform: translateY(-50%) rotate(-90deg) scale(0);
    }
    50% {
        transform: translateY(-50%) rotate(0deg) scale(1.2);
    }
    100% {
        opacity: 1;
        transform: translateY(-50%) rotate(0deg) scale(1);
    }
}

/* 响应式样式 */
@media (max-width: 768px) {
    .news-flash-wrapper {
        flex-direction: column;
    }
    
    .news-flash-sidebar {
        width: 100%;
    }
    
    .news-flash-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .news-flash-actions {
        width: 100%;
        display: flex;
        gap: 10px;
    }
    
    .btn,.like-button {
        flex: 1;
        justify-content: center;
    }
    
    .news-flash-pagination ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .news-flash-single {
        padding: 20px;
    }
    
    .news-flash-single-title {
        font-size: 22px;
    }
    
    .modal-content {
        margin: 20px auto;
        padding: 20px;
    }
}

/* 加载状态样式 */
.loading::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(52, 152, 219, 0.3);
    border-radius: 50%;
    border-top-color: #3498db;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 标题截断样式 */
.news-flash-item-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 移动端默认显示8个字 */
.news-flash-item-title {
    max-width: 8em;
}

/* 评论图标样式 */
.news-flash-comments {
    
}

.comment-toggle {
    background: transparent;
    border: none;
    color: #3498db;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
}

.comment-toggle i {
    margin-right: 5px;
}

/* ========================================
   评论弹窗 - 现代化设计
   ======================================== */

.comments-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1001;
    overflow-y: auto;
    animation: fadeIn 0.2s ease;
}

.comments-modal .modal-content {
    max-width: 720px;
    margin: 60px auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #f0f0f5;
}

/* 评论弹窗头部 */
.comments-modal .modal-content > h3 {
    margin: 0;
    padding: 20px 24px;
    background: #ffffff;
    color: #0f172a;
    font-size: 17px;
    font-weight: 650;
    border-bottom: 1px solid #f1f5f9;
    letter-spacing: -0.02em;
}

/* 关闭按钮 */
.comments-modal .close-modal {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: #f8fafc;
    border: 1px solid #f0f0f5;
    color: #64748b;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 50%;
}

.comments-modal .close-modal:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #e2e8f0;
    transform: rotate(90deg);
}

/* 评论列表容器 */
.comments-list {
    list-style: none;
    padding: 24px;
    margin: 0;
    max-height: 500px;
    overflow-y: auto;
}

/* 自定义滚动条 */
.comments-list::-webkit-scrollbar {
    width: 6px;
}

.comments-list::-webkit-scrollbar-track {
    background: transparent;
}

.comments-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.comments-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 评论项 */
.comment-item {
    padding: 16px;
    border-bottom: none;
    margin-bottom: 8px;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.comment-item:hover {
    background: #f1f5f9;
    border-color: #e8e8f0;
}

.comment-item:last-child {
    margin-bottom: 0;
}

/* 评论头部信息 */
.comment-meta {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: 600;
    font-size: 14px;
    color: #0f172a;
    margin: 0;
}

.comment-date {
    color: #94a3b8;
    font-size: 13px;
    margin: 0;
}

/* 评论内容 */
.comment-content {
    color: #334155;
    font-size: 14px;
    line-height: 1.65;
    margin: 0;
    word-wrap: break-word;
}

/* 评论操作按钮 */
.comment-actions {
    display: flex;
    gap: 16px;
    margin-top: 10px;
    padding-top: 0;
    border-top: none;
}

.quote-comment,
.reply-comment {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 13px;
    padding: 0;
    transition: color 0.2s ease;
    font-weight: 500;
}

.quote-comment:hover,
.reply-comment:hover {
    color: #0f172a;
}

/* 评论分页 */
.comments-pagination {
    margin: 20px 24px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.comment-page {
    margin: 0;
    padding: 6px 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    font-size: 13px;
    color: #64748b;
    transition: all 0.2s ease;
    min-width: 36px;
    text-align: center;
    font-weight: 500;
}

.comment-page:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.comment-page.active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.no-comments {
    text-align: center;
    padding: 48px 24px;
    color: #94a3b8;
    font-size: 14px;
}

/* 评论表单样式 */
.comment-form {
    margin: 0;
    padding: 24px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.comment-form h4 {
    margin: 0 0 16px;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
}

.comment-form .form-group {
    margin-bottom: 14px;
}

.comment-form label {
    display: block;
    margin-bottom: 7px;
    font-weight: 500;
    color: #475569;
    font-size: 13px;
}

.comment-form input[type="text"],
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #0f172a;
}

.comment-form input[type="text"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.comment-form textarea {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
}

.comment-form button[type="submit"] {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.comment-form button[type="submit"]:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
}

/* 私密评论勾选框样式 */
.form-group .comment-private-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #64748b;
    user-select: none;
    padding: 0;
    margin-bottom: 0;
}

.form-group .comment-private-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #0f172a;
    cursor: pointer;
    margin: 0;
}

.form-group .comment-private-label span {
    font-weight: 500;
}

/* 评论选项同一行显示 */
.form-group.comment-options {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 0;
}

/* 私密评论标记样式 */
.comment-item.private-comment {
    background: #fef3c7;
    padding: 16px 14px;
    border-radius: 4px;
    border-bottom: 1px solid #fde68a;
}

.comment-item.private-comment .comment-meta::after {
    content: '私密';
    display: inline-block;
    background: #f59e0b;
    color: #ffffff;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 3px;
    margin-left: 8px;
    font-weight: 600;
}

.login-prompt {
    margin: 0;
    padding: 40px 24px;
    background: #f8fafc;
    text-align: center;
}

.login-prompt p {
    margin-bottom: 16px;
    color: #64748b;
    font-size: 14px;
}

.login-prompt a {
    display: inline-block;
    background: #0f172a;
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

.login-prompt a:hover {
    background: #1e293b;
}

/* 嵌套评论样式 */
.child-comments {
    list-style: none;
    padding-left: 24px;
    margin-top: 12px;
}

/* 子评论左侧连接线 */
.child-comments .comment-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

/* 引用评论样式 */
.quoted-comment {
    background: #f8fafc;
    border-left: 2px solid #cbd5e1;
    padding: 10px 12px;
    margin: 8px 0;
    border-radius: 4px;
    font-size: 13px;
}

.quoted-author {
    font-weight: 600;
    color: #0f172a;
}

.quoted-content {
    margin-top: 4px;
    color: #64748b;
    line-height: 1.6;
}

/* 加载更多按钮样式 */
.comments-load-more {
    margin: 20px 24px;
    text-align: center;
}

.load-more-comments {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 13px;
}

.load-more-comments:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.load-more-comments:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 平板设备显示12个字 */
@media (min-width: 768px) {
    .news-flash-item-title {
        max-width: 12em;
    }
}

/* 桌面设备显示18个字 */
@media (min-width: 1024px) {
    .news-flash-item-title {
        max-width: 18em;
    }
}

/* 大屏幕显示22个字

/* 大屏幕显示22个字 */
@media (min-width: 1200px) {
    .news-flash-item-title {
        max-width: 22em;
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 加载更多按钮样式 */
.comments-load-more {
    margin-top: 20px;
    text-align: center;
}

.load-more-comments {
    background-color: #f8f9fa;
    color: #3498db;
    border: 1px solid #3498db;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-comments:hover {
    background-color: #3498db;
    color: white;
}

.load-more-comments:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
/* 移动端评论区适配 */
@media (max-width: 767px) {
    .comments-modal .modal-content {
        margin: 0;
        width: 100%;
        min-height: 100vh;
        border-radius: 0;
    }
    
    .comments-modal .modal-content > h3 {
        padding: 16px 20px;
    }
    
    .comments-modal .close-modal {
        top: 14px;
        right: 16px;
    }
    
    .comments-list {
        padding: 16px 20px;
        max-height: none;
    }
    
    .comment-item {
        padding: 12px 0;
    }
    
    .child-comments {
        padding-left: 16px;
    }
    
    .comment-form {
        padding: 16px 20px;
    }
    
    .comment-form button[type="submit"] {
        width: 100%;
    }
    
    .comments-pagination,
    .comments-load-more {
        margin: 14px 20px;
    }
    
    .load-more-comments {
        width: 100%;
    }
}
    }
    
    .child-comments {
        padding-left: 15px;
    }
    
    .child-comments .comment-item::before {
        left: -10px;
    }
    
    /* 投稿表单 */
    .modal-content {
        width: calc(100% - 20px);
        margin: 10px auto;
        padding: 15px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn,.like-button {
        width: 100%;
        padding: 8px 12px;
        font-size: 13px;
    }
    
    /* 分享模态框 */
    .nice-popup-content {
        width: calc(100% - 20px);
        margin: 10px auto;
    }
    
    .share-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .share-option {
        padding: 10px 5px;
    }
}

/* 平板设备优化 */
@media (min-width: 768px) and (max-width: 1023px) {
    .comments-modal .modal-content {
        width: 90%;
        max-width: 600px;
    }
}

/* 标签样式 */
.news-flash-tags {
    margin: 25px 0;
    padding: 15px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.tags-label {
    display: inline-block;
    margin-right: 10px;
    color: #666;
    font-weight: 500;
}

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

.tag-item {
    display: inline-block;
    padding: 4px 12px;
    background-color: #f5f7fa;
    color: #3498db;
    border-radius: 12px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag-item:hover {
    background-color: #eef2f7;
    color: #2980b9;
    transform: translateY(-1px);
}

/* 标签汇总页整体风格调整 */
.tag-archive-page {
    background-color: #f5f7fa;
    padding: 30px 0 60px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* 头部区域优化 */
.tag-archive-header {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 30px;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.tag-archive-title {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 12px;
    font-weight: 600;
}

.tag-archive-description {
    color: #666;
    font-size: 1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 标签云样式优化 */
.tag-cloud {
    margin: 25px 0 35px;
    text-align: center;
    padding: 20px;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.tag-cloud-item {
    display: inline-block;
    padding: 6px 16px;
    background: #f5f7fa;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #34495e;
    text-decoration: none;
    margin: 0 6px 10px 0;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.tag-cloud-item:hover {
    background: #3498db;
    color: #ffffff;
    transform: translateY(-2px);
}

.tag-cloud-item.active {
    background: #3498db;
    color: #ffffff;
    font-weight: 500;
}

/* 文章网格布局 */
.tag-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

/* 文章卡片样式 */
.tag-post-card {
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.tag-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* 文章缩略图 */
.tag-post-thumbnail {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.tag-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tag-post-card:hover .tag-post-thumbnail img {
    transform: scale(1.05);
}

/* 文章分类角标 */
.tag-post-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #3498db;
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 500;
    z-index: 2;
}

/* 文章内容区域 */
.tag-post-content {
    padding: 20px;
}

.tag-post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #888;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.tag-post-meta time,
.tag-post-meta .views {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tag-post-meta i {
    font-size: 0.9rem;
    color: #3498db;
}

.tag-post-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.4;
    font-weight: 600;
}

.tag-post-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tag-post-title a:hover {
    color: #3498db;
}

.tag-post-excerpt {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 阅读更多按钮 */
.tag-post-readmore {
    display: inline-flex;
    align-items: center;
    color: #3498db;
    font-weight: 500;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag-post-readmore i {
    margin-left: 6px;
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.tag-post-card:hover .tag-post-readmore i {
    transform: translateX(3px);
}

/* 分页样式调整 */
.news-flash-pagination {
    margin: 40px 0 20px;
}

.news-flash-pagination ul {
    gap: 6px;
}

.news-flash-pagination a,
.news-flash-pagination span {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
    border-radius: 4px;
    border: 1px solid #eee;
}

.news-flash-pagination .current {
    background-color: #3498db;
    border-color: #3498db;
}

.news-flash-pagination a:hover {
    border-color: #3498db;
    color: #3498db;
    background-color: #f0f7ff;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .tag-archive-header {
        padding: 25px 15px;
        margin-bottom: 20px;
    }
    
    .tag-archive-title {
        font-size: 1.8rem;
    }
    
    .tag-posts-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .tag-post-thumbnail {
        height: 160px;
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .tag-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/*列表项开始*/


/* 清除浮动 */
.news-flash-item-content::after {
    content: "";
    display: table;
    clear: both;
}

/* 右侧信息区 - 横向排列 */
.news-flash-item-sidebar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    flex-wrap: wrap;
    margin-left: 1px;
}

/* 基础按钮样式 */
.news-flash-item-sidebar .meta-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    color: #495057;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* 悬停效果 */
.news-flash-item-sidebar .meta-item:hover {
    background-color: #f8fafc;
    color: #2d3748;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

/* 图标样式 - 优化显示效果 */
.news-flash-item-sidebar .meta-item i {
    font-size: 14px;
    width: auto;
    text-align: center;
    opacity: 0.9;
    color: #4299e1;
}

/* 阅读量和评论数 - 统一样式 */
.news-flash-item-sidebar .meta-item.views,
.news-flash-item-sidebar .meta-item.comments {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    color: #495057;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* 重要性标记（priority）- 优化样式 */
.news-flash-item-sidebar .meta-item.priority {
    color: white;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    gap: 6px;
    padding: 6px 12px;
}

/* 普通（normal）- 蓝色 */
.news-flash-item-sidebar .meta-item.priority.normal {
    background-color: #4299e1;
}

/* 重要（important）- 橙色 */
.news-flash-item-sidebar .meta-item.priority.important {
    background-color: #ed8936;
}

/* 紧急（urgent）- 红色 */
.news-flash-item-sidebar .meta-item.priority.urgent {
    background-color: #f56565;
}

/* 推荐（recommended）- 绿色 */
.news-flash-item-sidebar .meta-item.priority.recommended {
    background-color: #38a169;
}

/* 重要性标记图标样式 */
.news-flash-item-sidebar .meta-item.priority i {
    color: white;
    opacity: 1;
}


/* 移动端响应式调整 */
@media (max-width: 768px) {
    .news-flash-item-sidebar {
        margin-left: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .news-flash-item-thumbnail {
        float: none;
        display: block;
        margin: 0 auto 10px;
        max-width: 100%;
    }
    
    .news-flash-item-sidebar .meta-item {
        padding: 5px 10px;
        font-size: 12px;
        gap: 5px;
    }
    
    .news-flash-item-sidebar .meta-item i {
        font-size: 13px;
        width: auto;
    }
}
/*列表项结束*/
/*tips start*/
/* 时效性提示标签样式 - 适配不同时期的色彩变化 */
.tip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    margin: 8px 0;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* 基础信息样式 */
.tip.info {
    border: 1px solid;
}

/* 图标通用样式 */
.tip::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    color: white;
    text-align: center;
    line-height: 16px;
    font-size: 10px;
}

/* 最新内容（30天内）- 绿色系 */
.tip.info.fresh {
    background-color: #f6ffed;
    color: #52c41a;
    border-color: #d9f7be;
}

.tip.info.fresh::before {
    background-color: #52c41a;
    content: "✓";
}

/* 普通时效（30-90天）- 蓝色系 */
.tip.info {
    background-color: #f0f7ff;
    color: #1890ff;
    border-color: #e6f7ff;
}

.tip.info::before {
    background-color: #1890ff;
    content: "ⓘ";
}

/* 较旧内容（90-180天）- 橙色系 */
.tip.info.old {
    background-color: #fff7e6;
    color: #fa8c16;
    border-color: #ffe8cc;
}

.tip.info.old::before {
    background-color: #fa8c16;
    content: "!";
}

/* 过时内容（180天以上）- 红色系 */
.tip.info.obsolete {
    background-color: #fff1f0;
    color: #f5222d;
    border-color: #ffccc7;
}

.tip.info.obsolete::before {
    background-color: #f5222d;
    content: "⚠";
}

/* 悬停效果增强 */
.tip:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tip p {
    margin: 0;
    padding: 0;
}
/*tips end*/

/* 编辑按钮调整 */
.edit-news-flash-container {
    display: flex;
    align-items: center;
}

.edit-news-flash.icon-only {
    padding: 4px 8px;
    background: transparent;
    border: 1px solid transparent;
    color: #3498db;
    margin: 0;
}

.edit-news-flash.icon-only:hover {
    background-color: #f0f7ff;
    border-color: #e6f7ff;
    color: #1890ff;
}

.edit-news-flash.icon-only i {
    margin-right: 0; /* 移除图标右侧间距 */
    font-size: 16px;
}

/* 确保元信息区域正确显示 */
.news-flash-single-meta {
    display: flex;
    align-items: center;
    /* 保留原有其他样式 */
}
/*类别开始*/
/* ===== 现代分类侧边栏 ===== */
.news-flash-sidebar {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 24px;
    margin-bottom: 100px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    border: 1px solid #f1f5f9;
    /* 现代化阴影和圆角 */
}

/* 模块头部 */
.category-module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    /* 无边框分隔线 */
}

.category-module-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
}

/* 切换全部按钮 - 现代化设计 */
.toggle-all-categories {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    /* 柔和的背景和边框 */
}

.toggle-all-categories:hover {
    background: #e2e8f0;
    color: #475569;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.toggle-all-categories i {
    font-size: 10px;
    transition: transform 0.2s ease;
}

/* 分类容器 */
.category-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 全部分类特殊样式 */
.category-all {
    margin-bottom: 12px;
}

.category-all a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 16px;
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    font-size: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.category-all a:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #3b82f6;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

.category-all a.active {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #3b82f6;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.2);
}

/* 分类项目 */
.category-item {
    margin-bottom: 4px;
}

/* 父分类 */
.category-parent {
    margin-bottom: 2px;
}

.parent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.parent-header:hover {
    background: #f9fafb;
    color: #1f2937;
    border-color: #f1f5f9;
    transform: translateY(-1px);
}

.parent-header a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.parent-header a.active {
    color: #3b82f6;
    font-weight: 600;
}

/* 分类内容布局 */
.category-content {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.category-icon {
    font-size: 14px;
    opacity: 0.8;
}

.category-title {
    flex: 1;
    font-weight: inherit;
}

.category-meta {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 分类计数 */
.category-count,
.category-count-small {
    background: #f1f5f9;
    color: #64748b;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 500;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
}

.category-count-small {
    font-size: 11px;
    padding: 1px 5px;
    background: #f8f9fa;
    color: #9ca3af;
}

.parent-header a.active .category-count {
    background: #eff6ff;
    color: #3b82f6;
}

/* 切换按钮 */
.toggle-btn {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toggle-btn:hover {
    background: #f3f4f6;
    color: #6b7280;
}

.toggle-icon {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.toggle-btn[aria-expanded="true"] .toggle-icon {
    transform: rotate(90deg);
}

/* 子分类 */
.category-children {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fafafa;
    border-radius: 0 0 8px 8px;
    border: 1px solid #f1f5f9;
    border-top: none;
}

.category-children.children-open {
    max-height: 300px;
}

/* 子分类项 */
.category-child {
    padding: 8px 16px 8px 40px;
    border-bottom: 1px solid #f8f9fa;
}

.category-child:last-child {
    border-bottom: none;
}

.category-child a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: #4b5563;
    font-size: 13px;
    font-weight: 400;
    transition: all 0.2s ease;
}

.category-child a:hover {
    background: #f0f9ff;
    color: #2563eb;
    padding-left: 44px;
}

.category-child a.active {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 500;
}

.category-child a .category-count-small {
    background: #f8f9fa;
    color: #9ca3af;
}

.category-child a.active .category-count-small {
    background: #dbeafe;
    color: #2563eb;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-flash-sidebar {
        padding: 20px;
        margin: 0 -12px 20px -12px;
    }
    
    .category-module-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .category-module-header h3 {
        font-size: 16px;
    }
    
    .parent-header {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .parent-header a {
        gap: 6px;
    }
    
    .category-child {
        padding: 6px 14px 6px 32px;
        font-size: 12px;
    }
    
    .category-children.children-open {
        max-height: 200px;
    }
}

@media (max-width: 480px) {
    .news-flash-sidebar {
        padding: 16px;
    }
    
    .parent-header {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .category-child {
        padding: 5px 12px 5px 28px;
        font-size: 11px;
    }
}

/* 统一图标按钮样式 - 去掉默认边框 */
.views-button, .favorite-button, .edit-news-flash {
    background: transparent;
    color: #64748b;
    border: 1px solid transparent;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
}

/* 统一图标大小 */
.views-button i, .favorite-button i, .edit-news-flash i {
    font-size: 12px;
    margin-right: 0;
    opacity: 0.8;
}

/* 统一图标按钮悬停效果 */
.views-button:hover, .favorite-button:hover, .edit-news-flash:hover {
    background: #f1f5f9;
    color: #334155;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

/* 禁用状态样式 */
.views-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.views-button:disabled:hover {
    transform: none;
    background: transparent;
    color: #64748b;
    border-color: transparent;
}

/* 深色模式下的统一图标按钮样式 */
body.dark-mode .views-button, body.dark-mode .favorite-button, body.dark-mode .edit-news-flash {
    background: transparent;
    color: #94a3b8;
    border: 1px solid transparent;
}

body.dark-mode .views-button:hover, body.dark-mode .favorite-button:hover, body.dark-mode .edit-news-flash:hover {
    background: #1f2937;
    color: #e5e7eb;
    border-color: #4b5563;
}

body.dark-mode .views-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

body.dark-mode .views-button:disabled:hover {
    transform: none;
    background: transparent;
    color: #94a3b8;
    border-color: transparent;
}

/* 详情页操作按钮栏 */
.news-flash-detail-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 4px 0;
}

/* 响应式 */
@media (max-width: 768px) {
    .news-flash-detail-actions {
        margin-bottom: 12px;
        gap: 6px;
    }
}

/* 简洁的Meta信息区域 */
.news-flash-single-meta {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 16px 0;
}

/* 标签 */
.meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
    align-items: center;
    min-height: 24px;
}

.meta-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    font-size: 11px;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.2s ease;
    height: 20px;
    line-height: 1;
}

.meta-tag:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.meta-tag.category {
    background: #dbeafe;
    color: #1e40af;
}

.meta-tag.special {
    background: #dcfce7;
    color: #166534;
}

/* Meta信息行 */
.meta-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 13px;
    color: #6b7280;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 24px;
    line-height: 1.4;
}

.meta-left,
.meta-right {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    min-height: 24px;
    line-height: 1.4;
}

/* 统一所有Meta元素的样式 */
.meta-author,
.meta-date,
.meta-views,
.meta-word-count,
.meta-comments {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #6b7280;
    flex-shrink: 0;
    min-width: fit-content;
    height: 22px;
    padding: 1px 4px;
    border-radius: 3px;
    transition: all 0.2s ease;
    vertical-align: baseline;
    line-height: 1.4;
}

/* 特定Meta元素样式调整 */
.meta-author {
    font-weight: 500;
    color: #374151;
}

.meta-date {
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.meta-date time {
    display: inline;
    vertical-align: baseline;
}

.meta-views {
    color: #6b7280;
}

/* 用户名点击样式 */
.meta-author.user-profile-trigger {
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 1px 4px;
    border-radius: 4px;
    position: relative;
    display: inline-flex;
    align-items: center;
    vertical-align: baseline;
}

.meta-author.user-profile-trigger:hover {
    background: #f3f4f6;
    color: #2563eb;
    transform: translateY(-1px);
}

.meta-author.user-profile-trigger:hover .author-icon {
    background: #dbeafe;
    color: #2563eb;
}

.meta-author.user-profile-trigger:active {
    transform: translateY(0);
    background: #e5e7eb;
}

.author-icon {
    width: 16px;
    height: 16px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 8px;
    flex-shrink: 0;
    margin-right: 4px;
}

/* 统一所有Meta元素中的图标样式 */
.meta-author i,
.meta-date i,
.meta-views i,
.meta-word-count i,
.meta-comments i {
    font-size: 10px;
    width: 12px;
    height: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    vertical-align: middle;
}

/* 特殊处理按钮类型的Meta元素 */
.meta-views,
.meta-comments {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
    min-width: fit-content;
    vertical-align: baseline;
}

.meta-comments {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 1px 4px;
    border-radius: 3px;
    transition: all 0.2s;
    font-size: 12px;
    height: 22px;
    line-height: 1.4;
}

.meta-comments:hover {
    background: #f3f4f6;
    color: #3b82f6;
}

.meta-btn {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 1px 4px;
    border-radius: 3px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 22px;
    line-height: 1.4;
    vertical-align: baseline;
}

.meta-btn:hover {
    background: #f3f4f6;
}

.meta-btn.favorite-button:hover,
.meta-btn .fa-heart.active {
    color: #ef4444;
}

/* 来源信息 */
.meta-source {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f3f4f6;
    font-size: 12px;
    color: #6b7280;
}

.meta-source a {
    color: #3b82f6;
    text-decoration: none;
}

.meta-source a:hover {
    text-decoration: underline;
}

.meta-source i {
    font-size: 11px;
    margin-left: 4px;
}

/* 夜间模式 */
body.dark-mode .news-flash-single-meta {
    background: #1f2937;
    border-color: #374151;
}

body.dark-mode .meta-tag.category {
    background: #1e3a8a;
    color: #93c5fd;
}

body.dark-mode .meta-tag.special {
    background: #14532d;
    color: #86efac;
}

body.dark-mode .meta-info {
    color: #9ca3af;
}

body.dark-mode .meta-author,
body.dark-mode .meta-date,
body.dark-mode .meta-views,
body.dark-mode .meta-word-count,
body.dark-mode .meta-comments {
    color: #9ca3af;
}

body.dark-mode .meta-author {
    color: #e5e7eb;
}

/* 夜间模式用户名点击样式 */
body.dark-mode .meta-author.user-profile-trigger:hover {
    background: #374151;
    color: #60a5fa;
}

body.dark-mode .meta-author.user-profile-trigger:hover .author-icon {
    background: #1e3a8a;
    color: #60a5fa;
}

body.dark-mode .meta-author.user-profile-trigger:active {
    background: #4b5563;
}

body.dark-mode .author-icon {
    background: #374151;
    color: #9ca3af;
}

body.dark-mode .meta-btn {
    color: #9ca3af;
}

body.dark-mode .meta-btn:hover {
    background: #374151;
}

body.dark-mode .meta-comments {
    color: #9ca3af;
}

body.dark-mode .meta-comments:hover {
    background: #374151;
    color: #60a5fa;
}

body.dark-mode .meta-source {
    border-top-color: #374151;
    color: #9ca3af;
}

body.dark-mode .meta-source a {
    color: #60a5fa;
}

/* 响应式 */
@media (max-width: 768px) {
    .meta-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        min-height: auto;
    }
    
    .meta-left,
    .meta-right {
        gap: 8px;
        width: 100%;
        min-height: 28px;
        justify-content: flex-start;
    }
    
    .meta-tags {
        margin-bottom: 8px;
        min-height: 28px;
    }
    
    .meta-author,
    .meta-date,
    .meta-views,
    .meta-word-count,
    .meta-comments {
        height: 24px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .meta-left,
    .meta-right {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .meta-left > *,
    .meta-right > * {
        flex-shrink: 0;
    }
}

/* 夜间模式适配 */
body.dark-mode .news-flash-detail-actions {
    border-bottom-color: #374151;
}

body.dark-mode .news-flash-meta-info {
    border-bottom-color: #374151;
}

body.dark-mode .news-flash-meta-info .meta-item {
    color: #9ca3af;
}

body.dark-mode .meta-share-btn,
body.dark-mode .meta-favorite-btn {
    color: #9ca3af;
}

body.dark-mode .meta-share-btn:hover {
    background: #374151;
    color: #60a5fa;
}

body.dark-mode .meta-favorite-btn:hover {
    background: #374151;
    color: #f87171;
}

/* 防止Meta元素重叠的额外样式 */
.meta-date {
    flex-shrink: 0;
    min-width: fit-content;
    white-space: nowrap;
}

.meta-btn {
    flex-shrink: 0;
    min-width: fit-content;
}

/* 确保Meta容器有足够空间 */
.news-flash-single-meta {
    min-width: 0;
    overflow: visible;
}

.meta-info {
    min-width: 0;
    overflow: visible;
}

/* 标题容器样式 */
.news-flash-title-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    position: relative;
}

.news-flash-title-container .news-flash-single-title {
    flex: 1;
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
    color: #1e293b;
}

/* 内联编辑按钮样式 */
.btn-edit-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    color: #d1d5db;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    margin-top: 4px;
    opacity: 0.6;
}

.btn-edit-inline:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    transform: translateY(-1px);
    opacity: 1;
}

.btn-edit-inline:active {
    transform: translateY(0);
    background: rgba(59, 130, 246, 0.15);
}

.btn-edit-inline i {
    font-size: 14px;
}

/* 夜间模式适配 */
body.dark-mode .news-flash-title-container .news-flash-single-title {
    color: #f1f5f9;
}

body.dark-mode .btn-edit-inline {
    background: transparent;
    color: #6b7280;
    border: none;
    opacity: 0.5;
}

body.dark-mode .btn-edit-inline:hover {
    background: rgba(96, 165, 250, 0.1);
    color: #60a5fa;
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-flash-title-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .news-flash-title-container .news-flash-single-title {
        font-size: 24px;
        line-height: 1.4;
    }
    
    .btn-edit-inline {
        align-self: flex-end;
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .news-flash-title-container {
        gap: 8px;
    }
    
    .news-flash-title-container .news-flash-single-title {
        font-size: 20px;
    }
    
    .btn-edit-inline {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .btn-edit-inline i {
        font-size: 12px;
    }
}
/* 字数统计样式 */
.meta-word-count {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #6b7280;
    flex-shrink: 0;
    min-width: fit-content;
}

.meta-word-count i {
    font-size: 12px;
    opacity: 0.8;
}

/* 夜间模式适配 */
body.dark-mode .meta-word-count {
    color: #9ca3af;
}
/* 图片灯箱样式 */
.news-flash-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: lightboxFadeIn 0.3s ease;
}

.news-flash-lightbox.show {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: lightboxZoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.lightbox-loading {
    color: #ffffff;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lightbox-loading::before {
    content: "";
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 图片点击提示 */
.news-flash-single-content img {
    cursor: pointer;
    transition: all 0.2s ease;
}

.news-flash-single-content img:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* 动画效果 */
@keyframes lightboxFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes lightboxZoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .lightbox-close {
        top: -30px;
        right: -30px;
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
    
    .news-flash-single-content img:hover {
        transform: none;
    }
}

/* ===== Meta元素居中样式 ===== */

/* 简洁的居中布局 */
.meta-info-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 12px 0;
    font-size: 13px;
    color: #666;
}

.meta-info-centered > * {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.meta-info-centered i {
    font-size: 12px;
    opacity: 0.8;
}

.meta-info-centered button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

.meta-info-centered button:hover {
    color: #3b82f6;
}

.meta-info-centered .meta-source a {
    color: #3b82f6;
    text-decoration: none;
}

.meta-info-centered .meta-source a:hover {
    text-decoration: underline;
}

/* 响应式 */
@media (max-width: 768px) {
    .meta-info-centered {
        gap: 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .meta-info-centered {
        flex-direction: column;
        gap: 8px;
    }
}
/* ===== 文章来源信息样式 ===== */

.article-source {
    margin: 16px 0;
    padding: 8px 0;
    font-size: 13px;
    color: #888;
    text-align: right;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
}

.article-source .source-label {
    color: #999;
    margin-right: 4px;
}

.article-source .source-link {
    color: #3b82f6;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.article-source .source-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

.article-source .source-link i {
    font-size: 11px;
    opacity: 0.7;
}

.article-source .source-name {
    color: #666;
}

/* ===== 文章时效性区域间距调整 ===== */

.article-timeliness-section {
    margin-top: 24px;
}

/* 夜间模式适配 */
body.dark-mode .article-source {
    color: #aaa;
    border-top-color: #444;
}

body.dark-mode .article-source .source-label {
    color: #999;
}

body.dark-mode .article-source .source-link {
    color: #60a5fa;
}

body.dark-mode .article-source .source-link:hover {
    color: #93c5fd;
}

body.dark-mode .article-source .source-name {
    color: #aaa;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .article-source {
        text-align: center;
        font-size: 12px;
    }
    
    .article-timeliness-section {
        margin-top: 20px;
    }
}

/* 网络错误提示样式 */
.network-error-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #dc3545;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    z-index: 10000;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.network-error-toast.show {
    opacity: 1;
    transform: translateX(0);
}

/* 重试按钮样式 */
.retry-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 8px;
    transition: background-color 0.2s ease;
}

.retry-btn:hover {
    background: #005a87;
}

/* 错误信息样式优化 */
.error {
    color: #dc3545 !important;
    background: #f8d7da !important;
    border: 1px solid #f5c6cb !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    margin: 16px 0 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

/* 夜间模式适配 */
.dark-mode .error {
    color: #f8d7da !important;
    background: #2d1b1e !important;
    border-color: #5a2a2e !important;
}

.dark-mode .retry-btn {
    background: #0ea5e9;
}

.dark-mode .retry-btn:hover {
    background: #0284c7;
}

.dark-mode .network-error-toast {
    background: #dc2626;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}


/* Toast提示样式 */
.news-flash-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    max-width: 300px;
}

.news-flash-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.news-flash-toast .toast-icon {
    font-size: 18px;
    font-weight: bold;
}

.news-flash-toast.toast-success {
    background: #10b981;
    color: #fff;
}

.news-flash-toast.toast-error {
    background: #ef4444;
    color: #fff;
}

.news-flash-toast.toast-info {
    background: #3b82f6;
    color: #fff;
}

/* 夜间模式适配 */
body.dark-mode .news-flash-toast {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .news-flash-toast {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        font-size: 13px;
    }
}


/* ========================================
   文章反馈功能样式
   ======================================== */

/* 反馈按钮 */
.feedback-toggle {
    cursor: pointer;
    transition: all 0.3s ease;
}

.feedback-toggle:hover {
    color: #f59e0b !important;
}

.feedback-toggle:hover i {
    color: #f59e0b;
}

/* 反馈弹窗 */
.feedback-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
}

.feedback-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.feedback-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 420px;
    animation: feedbackSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

@keyframes feedbackSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.feedback-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

.feedback-modal-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.feedback-modal-close {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 20px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.feedback-modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.feedback-modal-body {
    padding: 20px;
}

.feedback-desc {
    margin: 0 0 16px 0;
    font-size: 14px;
    color: #6b7280;
}

.feedback-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feedback-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f9fafb;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feedback-option:hover {
    background: #f3f4f6;
    border-color: #e5e7eb;
}

.feedback-option input[type="radio"] {
    display: none;
}

.feedback-option input[type="radio"]:checked + .feedback-option-icon + .feedback-option-text {
    color: #f59e0b;
    font-weight: 500;
}

.feedback-option input[type="radio"]:checked ~ .feedback-option-icon {
    color: #f59e0b;
}

.feedback-option:has(input[type="radio"]:checked) {
    background: #fffbeb;
    border-color: #f59e0b;
}

.feedback-option-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 16px;
    color: #9ca3af;
    transition: color 0.2s;
}

.feedback-option-text {
    font-size: 14px;
    color: #374151;
    transition: all 0.2s;
}

.feedback-other-input {
    margin-top: 16px;
}

.feedback-other-input textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.feedback-other-input textarea:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.feedback-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.feedback-cancel {
    padding: 10px 20px;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.feedback-cancel:hover {
    background: #e5e7eb;
    color: #374151;
}

.feedback-submit {
    padding: 10px 20px;
    background: #f59e0b;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s;
}

.feedback-submit:hover {
    background: #d97706;
}

.feedback-submit:disabled {
    background: #fcd34d;
    cursor: not-allowed;
}

/* 夜间模式适配 */
body.dark-mode .feedback-modal-content {
    background: #1f2937;
}

body.dark-mode .feedback-modal-header {
    background: #111827;
    border-bottom-color: #374151;
}

body.dark-mode .feedback-modal-header h4 {
    color: #f9fafb;
}

body.dark-mode .feedback-modal-close {
    color: #9ca3af;
}

body.dark-mode .feedback-modal-close:hover {
    background: #374151;
    color: #f3f4f6;
}

body.dark-mode .feedback-desc {
    color: #9ca3af;
}

body.dark-mode .feedback-option {
    background: #111827;
    border-color: transparent;
}

body.dark-mode .feedback-option:hover {
    background: #1f2937;
    border-color: #374151;
}

body.dark-mode .feedback-option:has(input[type="radio"]:checked) {
    background: #422006;
    border-color: #f59e0b;
}

body.dark-mode .feedback-option-icon {
    color: #6b7280;
}

body.dark-mode .feedback-option-text {
    color: #e5e7eb;
}

body.dark-mode .feedback-other-input textarea {
    background: #111827;
    border-color: #374151;
    color: #f3f4f6;
}

body.dark-mode .feedback-other-input textarea:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

body.dark-mode .feedback-actions {
    border-top-color: #374151;
}

body.dark-mode .feedback-cancel {
    background: #374151;
    color: #d1d5db;
}

body.dark-mode .feedback-cancel:hover {
    background: #4b5563;
    color: #f3f4f6;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .feedback-modal-content {
        width: 95%;
        max-width: none;
        margin: 16px;
    }
    
    .feedback-option {
        padding: 10px 14px;
    }
    
    .feedback-option-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .feedback-actions {
        flex-direction: column;
    }
    
    .feedback-cancel,
    .feedback-submit {
        width: 100%;
    }
}

/* ===== 移动端侧边栏补充（基础样式在 mobile.css） ===== */

/* 默认隐藏移动端专用元素 */
.mobile-sidebar-header {
    display: none;
}

.mobile-category-toggle {
    display: none;
}

.mobile-sidebar-overlay {
    display: none;
}

@media (max-width: 768px) {
    /* 分类模块移动端调整 */
    .news-flash-sidebar .category-module {
        padding: 16px;
        border-radius: 0;
        box-shadow: none;
        border: none;
    }
    
    .news-flash-sidebar .category-module-header {
        display: none;
    }
    
    .news-flash-sidebar .category-list-wrapper {
        padding: 0;
    }
    
    .news-flash-sidebar .category-item {
        margin-bottom: 8px;
    }
    
    .news-flash-sidebar .parent-header {
        padding: 12px 16px;
        border-radius: 8px;
    }
    
    .news-flash-sidebar .category-child {
        padding: 10px 16px 10px 40px;
    }
    
    .news-flash-sidebar .category-all {
        margin-bottom: 12px;
        padding-bottom: 12px;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .news-flash-sidebar .category-all a {
        padding: 12px 16px;
        background: #f8fafc;
        border-radius: 8px;
        display: block;
    }
}

body.dark-mode .news-flash-sidebar .category-all a {
    background: #0f172a;
}

body.dark-mode .news-flash-sidebar .category-all {
    border-bottom-color: #334155;
}

/* ========================================
   面包屑导航
   ======================================== */

.news-flash-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    padding: 12px 0;
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.5;
}

.news-flash-breadcrumb .breadcrumb-item {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.news-flash-breadcrumb a.breadcrumb-item:hover {
    color: #3b82f6;
}

.news-flash-breadcrumb .breadcrumb-item.current {
    color: #334155;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 300px;
    display: inline-block;
    vertical-align: bottom;
}

.news-flash-breadcrumb .breadcrumb-sep {
    color: #cbd5e1;
    font-size: 10px;
    margin: 0 8px;
    display: inline-flex;
    align-items: center;
}

.news-flash-breadcrumb .breadcrumb-item i.fa-home {
    margin-right: 4px;
    font-size: 12px;
}

/* 面包屑深色模式 */
body.dark-mode .news-flash-breadcrumb .breadcrumb-item {
    color: #94a3b8;
}

body.dark-mode .news-flash-breadcrumb a.breadcrumb-item:hover {
    color: #60a5fa;
}

body.dark-mode .news-flash-breadcrumb .breadcrumb-item.current {
    color: #e2e8f0;
}

body.dark-mode .news-flash-breadcrumb .breadcrumb-sep {
    color: #475569;
}

/* 面包屑响应式 */
@media (max-width: 768px) {
    .news-flash-breadcrumb {
        font-size: 12px;
        padding: 8px 0;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .news-flash-breadcrumb::-webkit-scrollbar {
        display: none;
    }

    .news-flash-breadcrumb .breadcrumb-item.current {
        max-width: 160px;
    }

    .news-flash-breadcrumb .breadcrumb-sep {
        margin: 0 5px;
    }
}

/* ========================================
   空状态组件
   ======================================== */

.news-flash-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
    min-height: 400px;
}

.news-flash-empty-state .empty-state-icon {
    margin-bottom: 24px;
    opacity: 0.8;
}

.news-flash-empty-state .empty-state-icon svg {
    width: 120px;
    height: 120px;
}

.news-flash-empty-state .empty-state-title {
    font-size: 20px;
    font-weight: 600;
    color: #334155;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.news-flash-empty-state .empty-state-desc {
    font-size: 14px;
    color: #94a3b8;
    margin: 0 0 28px 0;
    max-width: 360px;
    line-height: 1.6;
}

.news-flash-empty-state .empty-state-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.news-flash-empty-state .empty-state-actions .btn {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.news-flash-empty-state .empty-state-actions .btn-primary {
    background: #3b82f6;
    color: #fff;
    border: none;
}

.news-flash-empty-state .empty-state-actions .btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.news-flash-empty-state .empty-state-actions .btn-success {
    background: #10b981;
    color: #fff;
    border: none;
}

.news-flash-empty-state .empty-state-actions .btn-success:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* 空状态深色模式 */
body.dark-mode .news-flash-empty-state .empty-state-title {
    color: #e2e8f0;
}

body.dark-mode .news-flash-empty-state .empty-state-desc {
    color: #64748b;
}

body.dark-mode .news-flash-empty-state .empty-state-icon svg circle:first-child {
    fill: #1e293b;
    stroke: #334155;
}

body.dark-mode .news-flash-empty-state .empty-state-icon svg rect {
    fill: #0f172a;
    stroke: #475569;
}

body.dark-mode .news-flash-empty-state .empty-state-icon svg line {
    stroke: #334155;
}

/* 空状态响应式 */
@media (max-width: 768px) {
    .news-flash-empty-state {
        padding: 40px 16px;
        min-height: 300px;
    }

    .news-flash-empty-state .empty-state-icon svg {
        width: 96px;
        height: 96px;
    }

    .news-flash-empty-state .empty-state-title {
        font-size: 18px;
    }

    .news-flash-empty-state .empty-state-desc {
        font-size: 13px;
    }

    .news-flash-empty-state .empty-state-actions {
        flex-direction: column;
        width: 100%;
        max-width: 240px;
    }

    .news-flash-empty-state .empty-state-actions .btn {
        justify-content: center;
    }
}

/* ========================================
   搜索自动补全
   ======================================== */

.search-input-wrapper {
    position: relative;
}

.search-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-height: 320px;
    overflow-y: auto;
    display: none;
}

.search-autocomplete.active {
    display: block;
}

.search-autocomplete-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.15s ease;
    text-decoration: none;
    color: #334155;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.search-autocomplete-item:last-child {
    border-bottom: none;
}

.search-autocomplete-item:hover,
.search-autocomplete-item.active {
    background: #f8fafc;
}

.search-autocomplete-item i {
    color: #94a3b8;
    font-size: 12px;
    flex-shrink: 0;
}

.search-autocomplete-item .search-item-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-autocomplete-item .search-item-title mark {
    background: #fef08a;
    color: inherit;
    padding: 0 1px;
    border-radius: 2px;
}

.search-autocomplete-item .search-item-meta {
    font-size: 11px;
    color: #94a3b8;
    flex-shrink: 0;
}

.search-autocomplete-footer {
    padding: 8px 16px;
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 0 0 8px 8px;
}

.search-autocomplete-footer a {
    color: #3b82f6;
    text-decoration: none;
}

.search-autocomplete-footer a:hover {
    text-decoration: underline;
}

/* 搜索结果计数 */
.search-result-count {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 16px;
    padding: 8px 0;
}

.search-result-count strong {
    color: #3b82f6;
    font-weight: 600;
}

/* 搜索自动补全深色模式 */
body.dark-mode .search-autocomplete {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

body.dark-mode .search-autocomplete-item {
    color: #e2e8f0;
    border-bottom-color: #0f172a;
}

body.dark-mode .search-autocomplete-item:hover,
body.dark-mode .search-autocomplete-item.active {
    background: #334155;
}

body.dark-mode .search-autocomplete-item i {
    color: #64748b;
}

body.dark-mode .search-autocomplete-item .search-item-title mark {
    background: #854d0e;
    color: #fef08a;
}

body.dark-mode .search-autocomplete-footer {
    background: #0f172a;
    border-top-color: #334155;
}

body.dark-mode .search-result-count {
    color: #94a3b8;
}

body.dark-mode .search-result-count strong {
    color: #60a5fa;
}
