/* ===== 文章样式文件 ===== */
/* 专用于文章详情页和文章列表的样式 */

/* ===== 文章详情页样式 ===== */
.article-detail {
    background: #f8f9fa;
    min-height: calc(100vh - 120px);
}

/* 文章容器布局 */
.article-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px; /* 大幅减少从40px 20px到20px */
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 25px; /* 减少从40px到25px */
    align-items: start;
    /* 容器溢出保护 */
    overflow-x: hidden;
    min-width: 0; /* 确保grid项目可以缩小 */
}

/* 主要文章内容 */
.article-main {
    background: white;
    border-radius: 12px;
    padding: 25px; /* 大幅减少从40px到25px */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* 添加溢出保护 */
    overflow-x: hidden;
    word-wrap: break-word;
    max-width: 100%;
}

/* 文章头部 */
.article-header {
    margin-bottom: 20px; /* 减少从30px到20px */
}

.article-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px; /* 减少从15px到12px */
    padding: 12px; /* 减少从15px到12px */
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* 面包屑导航样式 */
.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.breadcrumb-link {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: #3b82f6;
}

.breadcrumb-separator {
    color: #adb5bd;
}

.article-badge {
    display: inline-block;
    padding: 4px 8px;
    background: #ff6b6b;
    color: white;
    font-size: 0.75rem;
    border-radius: 10px;
    font-weight: 500;
}

.article-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #212529;
    line-height: 1.3;
    margin-bottom: 15px; /* 减少从20px到15px */
    /* 处理英文长单词和标题换行 */
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    max-width: 100%;
}

/* 文章元信息 */
.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0; /* 减少从15px到12px */
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 18px; /* 减少从25px到18px */
}

.meta-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: #6c757d;
}

.meta-icon {
    font-size: 0.85rem;
}

/* 特色图片 */
.article-featured-image {
    margin-bottom: 20px; /* 减少从30px到20px */
    border-radius: 8px;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 文章内容 */
.article-content {
    line-height: 1.5; /* 改为主流标准1.5（从1.8） */
    color: #333;
    font-size: 1.05rem;
    /* 添加文本换行和溢出处理 */
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    /* 确保内容不会水平溢出 */
    max-width: 100%;
    overflow-x: hidden;
}

/* 针对英文内容的特殊处理 */
.article-content p,
.article-content div,
.article-content li {
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* 处理长URL和代码 */
.article-content a {
    word-break: break-all;
    overflow-wrap: break-word;
}

.article-content code {
    background: #f1f3f4;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9em;
    /* 处理代码内容的换行 */
    word-break: break-all;
    white-space: pre-wrap;
}

.article-content pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1em 0; /* 调整为与段落间距一致 */
    /* 确保代码块不会水平溢出 */
    max-width: 100%;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: inherit;
    word-break: normal;
    white-space: pre-wrap;
}

/* 文章表格样式 */
/* 表格包装器 - 用于处理移动端滚动 */
.article-content .table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    -webkit-overflow-scrolling: touch; /* iOS平滑滚动 */
    scrollbar-width: thin; /* Firefox滚动条 */
    scrollbar-color: #cbd5e1 transparent; /* Firefox滚动条颜色 */
}

/* 自定义滚动条样式 - Webkit浏览器 */
.article-content .table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.article-content .table-wrapper::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.article-content .table-wrapper::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.article-content .table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0; /* 移除margin，由包装器控制 */
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    /* 桌面端使用fixed布局，移动端会被覆盖 */
    table-layout: fixed;
    word-wrap: break-word;
}

.article-content table th,
.article-content table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
    color: #212529;
    vertical-align: top;
    /* 单元格内容换行 */
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.article-content table thead {
    background: #f8f9fa;
}

.article-content table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #e9ecef;
    position: relative;
}

.article-content table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
    color: #212529;
    vertical-align: top;
}

.article-content table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.article-content table tbody tr:hover {
    background: #e3f2fd;
    transition: background-color 0.2s ease;
}

/* 表格响应式 */
@media (max-width: 768px) {
    /* 移动端表格包装器 */
    .article-content .table-wrapper {
        margin: 15px -15px; /* 扩展到屏幕边缘 */
        border-radius: 0;
        box-shadow: none;
        border-top: 1px solid #e9ecef;
        border-bottom: 1px solid #e9ecef;
    }
    
    /* 移动端表格样式 */
    .article-content table {
        font-size: 14px;
        margin: 0;
        /* 重置移动端表格布局 */
        table-layout: auto; /* 允许表格自动调整列宽 */
        min-width: 700px; /* 增加最小宽度确保有足够空间 */
        border-radius: 0;
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    .article-content table th,
    .article-content table td {
        padding: 8px 12px; /* 增加内边距 */
        min-width: 140px; /* 增加最小宽度避免内容过度挤压 */
        /* 允许单元格内容换行 */
        white-space: normal;
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    /* 第一列特殊处理，确保时间完整显示 */
    .article-content table th:first-child,
    .article-content table td:first-child {
        min-width: 100px; /* 第一列最小宽度 */
        width: 100px; /* 固定第一列宽度 */
        flex-shrink: 0; /* 防止收缩 */
        text-align: center; /* 居中对齐 */
        font-weight: 600; /* 加粗显示 */
        white-space: nowrap; /* 第一列不换行 */
    }
    
    /* 表格头部在移动端的特殊处理 */
    .article-content table th {
        background: #f8f9fa;
        font-weight: 600;
        font-size: 13px;
        color: #495057;
        position: sticky; /* 使表头粘性固定 */
        top: 0;
        z-index: 10;
        border-bottom: 2px solid #e9ecef;
    }
}

@media (max-width: 480px) {
    /* 超小屏幕表格包装器 */
    .article-content .table-wrapper {
        margin: 12px -15px; /* 在小屏幕上扩展到边缘 */
    }
    
    .article-content table {
        font-size: 13px;
        min-width: 580px; /* 增加最小宽度但保证可读性 */
    }
    
    .article-content table th,
    .article-content table td {
        padding: 6px 10px; /* 适度减少内边距 */
        min-width: 120px; /* 小屏幕下的最小宽度 */
        font-size: 12px;
        line-height: 1.4; /* 增加行高提高可读性 */
    }
    
    /* 超小屏幕第一列处理 */
    .article-content table th:first-child,
    .article-content table td:first-child {
        min-width: 80px; /* 第一列最小宽度 */
        width: 80px; /* 固定第一列宽度 */
        text-align: center; /* 居中对齐 */
        font-weight: 600; /* 加粗显示 */
        white-space: nowrap; /* 第一列不换行 */
        font-size: 11px; /* 小屏幕字体稍小 */
    }
    
    .article-content table th {
        font-size: 12px;
        padding: 8px;
        font-weight: 600;
    }
}

/* 文章标签 */
.article-tags {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0; /* 减少从30px到20px */
    padding: 15px 0; /* 减少从20px到15px */
    border-top: 1px solid #e9ecef;
}

.tags-label {
    font-weight: 600;
    color: #495057;
}

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

.tag-item {
    display: inline-block;
    padding: 6px 12px;
    background: #f8f9fa;
    color: #495057;
    border-radius: 15px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: #3b82f6;
    color: white;
    cursor: pointer;
}

/* 侧边栏 */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px; /* 减少从25px到20px */
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 20px; /* 减少从25px到20px */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 15px; /* 减少从20px到15px */
    padding-bottom: 8px; /* 减少从10px到8px */
    border-bottom: 2px solid #f0f0f0;
}

/* 简化的文章列表样式 */
.simple-list {
    display: flex;
    flex-direction: column;
    gap: 10px; /* 减少从12px到10px */
}

.simple-item {
    padding: 10px 0; /* 减少从12px到10px */
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.simple-item:last-child {
    border-bottom: none;
}

.simple-item:hover {
    background: #f8f9fa;
    margin: 0 -15px;
    padding: 10px 15px; /* 减少从12px到10px */
    border-radius: 6px;
}

.simple-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.simple-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.simple-link:hover .simple-title {
    color: #3b82f6;
}

/* 广告位样式 */
.ad-widget .ad-content {
    text-align: center;
}

.ad-item {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: white;
    transition: transform 0.3s ease;
}

.ad-item:hover {
    transform: translateY(-3px);
}

.ad-item img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.ad-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: white;
}

.ad-item p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 15px;
    line-height: 1.4;
}

.ad-link {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.ad-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* 文章导航 */
.article-navigation {
    background: white;
    border-top: 1px solid #e9ecef;
    padding: 20px 0; /* 减少从30px到20px */
}

.article-nav-links {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px; /* 减少从30px到20px */
}

.article-nav-link {
    display: block;
    padding: 15px; /* 减少从20px到15px */
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.article-nav-link:hover {
    background: #e3f2fd;
    transform: translateY(-2px);
}

.article-nav-label {
    display: block;
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 8px;
}

.article-nav-title {
    display: block;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}

.article-next-link {
    text-align: right;
}

/* ===== 文章列表样式 ===== */
.articles-list {
    margin-top: 20px; /* 减少从30px到20px */
}

.article-item {
    padding: 20px 0; /* 减少从30px到20px */
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.article-item:last-child {
    border-bottom: none;
}

.article-item:hover {
    background: #f8f9fa;
    margin: 0 -20px;
    padding: 20px; /* 减少从30px到20px */
    border-radius: 8px;
}

.article-item-content {
    display: flex;
    flex-direction: column;
    gap: 12px; /* 减少从15px到12px */
}

.article-item-title {
    margin: 0;
}

.article-item-link {
    color: #212529;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.article-item-link:hover {
    color: #3b82f6;
}

.article-item-meta {
    display: flex;
    gap: 15px;
    color: #6c757d;
    font-size: 0.9rem;
}

.article-item-meta .meta-item {
    position: relative;
}

.article-item-meta .meta-item::after {
    content: '•';
    margin-left: 15px;
    color: #adb5bd;
}

.article-item-meta .meta-item:last-child::after {
    display: none;
}

.article-item-excerpt {
    color: #495057;
    line-height: 1.6;
    font-size: 1rem;
    margin: 8px 0; /* 减少从10px到8px */
}

.article-item-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px; /* 减少从10px到8px */
}

.article-item-tags .tag-item {
    display: inline-block;
    padding: 4px 10px;
    background: #f8f9fa;
    color: #495057;
    border-radius: 12px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.article-item-tags .tag-item:hover {
    background: #3b82f6;
    color: white;
    cursor: pointer;
}

/* ===== 响应式设计 - 移动端优化 ===== */
@media (max-width: 768px) {
    /* 文章容器 - 移动端全屏显示 */
    .article-container {
        grid-template-columns: 1fr;
        gap: 15px; /* 减少从20px到15px */
        padding: 0; /* 移除左右padding */
        max-width: 100%; /* 确保全屏 */
    }
    
    /* 文章主体 - 移动端app风格 */
    .article-main {
        padding: 15px; /* 减少从20px到15px */
        border-radius: 0; /* 移除圆角 */
        margin: 0 0 15px 0; /* 减少底部间距从20px到15px */
        box-shadow: none; /* 移除阴影 */
        border-bottom: 1px solid #e9ecef; /* 添加底部分隔线 */
        /* 移动端严格的溢出控制 */
        overflow-x: hidden;
        word-wrap: break-word;
        overflow-wrap: break-word;
        min-width: 0; /* 确保flex/grid布局中正确缩放 */
    }
    
    /* 文章详情页背景调整 */
    .article-detail {
        background: white; /* 移动端使用白色背景 */
    }
    
    /* 文章分类区域 */
    .article-category {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px; /* 减少从10px到8px */
        padding: 10px; /* 减少从12px到10px */
        margin: -15px -15px 12px -15px; /* 延伸到边缘，减少底部间距 */
        border-radius: 0;
    }
    
    /* 面包屑导航 */
    .article-breadcrumb {
        font-size: 0.8rem;
    }
    
    /* 文章标题 */
    .article-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    /* 文章元信息 */
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px; /* 减少从15px到12px */
        padding: 12px 0; /* 减少从15px到12px */
    }
    
    /* 特色图片 - 移动端全宽 */
    .article-featured-image {
        margin: 15px -15px; /* 减少从20px到15px */
        border-radius: 0;
    }
    
    /* 侧边栏 - 移动端样式 */
    .article-sidebar {
        background: #f8f9fa;
        margin: 15px 0 0 0; /* 减少从20px到15px */
        padding: 15px 0; /* 减少从20px到15px */
    }
    
    .sidebar-widget {
        border-radius: 8px;
        margin: 0 15px 12px 15px; /* 减少底部间距从15px到12px */
        padding: 15px; /* 减少从20px到15px */
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        border: 1px solid #e9ecef;
        background: white;
    }
    
    .sidebar-widget:last-child {
        margin-bottom: 0;
    }
    
    /* 文章导航 - 移动端 */
    .article-navigation {
        padding: 15px 0; /* 减少从20px到15px */
        background: #f8f9fa;
    }
    
    .article-nav-links {
        grid-template-columns: 1fr;
        gap: 12px; /* 减少从15px到12px */
        padding: 0 15px;
        max-width: 100%;
    }
    
    .article-nav-link {
        padding: 12px; /* 减少从15px到12px */
        border-radius: 8px;
        margin: 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        border: 1px solid #e9ecef;
    }
    
    .article-next-link {
        text-align: left;
    }
    
    /* 文章列表 - 移动端优化 */
    .article-item {
        padding: 15px; /* 减少从20px到15px */
        margin: 0 -15px; /* 延伸到边缘 */
    }
    
    .article-item:hover {
        margin: 0 -15px;
        padding: 15px; /* 减少从20px到15px */
        border-radius: 0;
    }
    
    .article-item-link {
        font-size: 1.3rem;
    }
    
    .article-item-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .article-breadcrumb {
        font-size: 0.75rem;
    }
    
    .article-title {
        font-size: 1.6rem;
    }
    
    .article-content {
        font-size: 1rem;
        /* 移动端文本溢出保护 */
        overflow-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
        overflow-x: hidden;
        max-width: 100%;
    }
    
    /* 文章内容图片在小屏幕上的处理 */
    .article-content img {
        margin: 0.8em -15px; /* 使用相对单位保持一致性 */
        border-radius: 0;
    }
    
    /* 代码块在小屏幕上的处理 */
    .article-content pre {
        margin: 0.8em -15px; /* 使用相对单位保持一致性 */
        border-radius: 0;
        font-size: 0.85rem;
    }
    
    /* 引用块在小屏幕上的处理 */
    .article-content blockquote {
        margin: 0.8em -15px; /* 使用相对单位保持一致性 */
        border-radius: 0;
    }
} 

/* 文章目录样式 - SEO友好版本 */
.article-toc-container {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-size: 13px;
    line-height: 1.5;
    overflow: hidden;
    transition: all 0.3s ease;
}

.article-toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #3b82f6;
    color: white;
    border-bottom: none;
}

.article-toc-title {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    color: white;
}

.article-toc-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s ease;
}

.article-toc-toggle:hover {
    color: white;
}

.article-toc-nav {
    max-height: 400px;
    overflow-y: auto;
    padding: 6px 0;
}

.article-toc-nav::-webkit-scrollbar {
    width: 4px;
}

.article-toc-nav::-webkit-scrollbar-track {
    background: transparent;
}

.article-toc-nav::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

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

.article-toc-item {
    margin: 0;
}

.article-toc-link {
    display: block;
    padding: 4px 12px;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
    font-size: 13px;
    line-height: 1.4;
}

.article-toc-link:hover {
    color: #3b82f6;
    background-color: #f1f5f9;
}

.article-toc-link.active {
    color: #3b82f6;
    background-color: #eff6ff;
    border-left-color: #3b82f6;
    font-weight: 500;
}

.article-toc-level-1 .article-toc-link {
    font-weight: 500;
    font-size: 14px;
}

.article-toc-level-2 .article-toc-link {
    font-size: 13px;
}

.article-toc-level-3 .article-toc-link,
.article-toc-level-4 .article-toc-link,
.article-toc-level-5 .article-toc-link,
.article-toc-level-6 .article-toc-link {
    font-size: 12px;
    color: #94a3b8;
}

/* 折叠状态 */
.article-toc-container.collapsed .article-toc-nav {
    display: none;
}

.article-toc-container.collapsed {
    max-height: 45px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .article-toc-container {
        margin-bottom: 15px;
    }
    
    .article-toc-header {
        padding: 8px 10px;
    }
    
    .article-toc-title {
        font-size: 13px;
    }
    
    .article-toc-nav {
        max-height: 300px;
        padding: 4px 0;
    }
    
    .article-toc-link {
        padding: 3px 10px;
        font-size: 12px;
    }
}

/* 确保目录在侧边栏中显示良好 */
.article-sidebar .article-toc-container {
    position: static;
    width: 100%;
    max-width: 100%;
    z-index: 1;
}

/* 文章内容中的标题锚点样式 */
.article-content h1[id],
.article-content h2[id],
.article-content h3[id],
.article-content h4[id],
.article-content h5[id],
.article-content h6[id] {
    scroll-margin-top: 80px; /* 为固定头部留出空间 */
}

.article-content h1[id]:target,
.article-content h2[id]:target,
.article-content h3[id]:target,
.article-content h4[id]:target,
.article-content h5[id]:target,
.article-content h6[id]:target {
    animation: highlight-heading 2s ease-in-out;
}

@keyframes highlight-heading {
    0% {
        background-color: #eff6ff;
        box-shadow: 0 0 0 4px #eff6ff;
    }
    100% {
        background-color: transparent;
        box-shadow: none;
    }
} 

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    margin: 1.2em 0 0.6em 0; /* 调整为更合理的间距：上方1.2em，下方0.6em */
    color: #212529;
    font-weight: 600;
    /* 确保标题也不会溢出 */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-content h2 {
    font-size: 1.75rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.article-content h3 {
    font-size: 1.5rem;
}

.article-content p {
    margin-bottom: 0.8em; /* 调整为主流标准：约为行高的50-60%（行高1.5×0.53=0.8） */
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1em 0; /* 使用相对单位，保持与段落间距一致 */
}

.article-content blockquote {
    margin: 1em 0; /* 调整为与段落间距一致 */
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid #3b82f6;
    border-radius: 0 8px 8px 0;
    /* 确保引用块内容不会溢出 */
    word-wrap: break-word;
    overflow-wrap: break-word;
} 