/* 文章内容容器 - 核心优化：居中、最大宽度、舒适留白 */
.article-content {
    line-height: 2; /* 中文最佳阅读行高 */
    color: #2c3e50; /* 护眼正文色，不刺眼 */
    font-size: 17px; /* 标准舒适字号 */
    margin: 0 auto; /* 页面居中 */
    padding: 10px 20px; /* 两侧留白，手机端不贴边 */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
    word-break: break-all;
    overflow-wrap: break-word;
}
/* ============== 标题层级（结构最分明！一眼区分主次） ============== */
.article-content h1 {
    font-size: 26px;
    font-weight: 700;
    margin: 30px 0 20px;
    color: #1a237e;
    border-left: 5px solid #1a237e;
    padding-left: 15px;
}
.article-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 28px 0 18px;
    color: #283593;
    border-left: 4px solid #283593;
    padding-left: 15px;
}
.article-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 25px 0 15px;
    color: #3949ab;
}
.article-content h4 {
    font-size: 20px;
    font-weight: 600;
    margin: 22px 0 12px;
    color: #5c6bc0;
}

/* ============== 段落（中文阅读习惯：首行缩进） ============== */
.article-content p {
    margin: 0 0 18px;
    text-indent: 2em; /* 首行缩进2字符，标准中文排版 */
    letter-spacing: 0.5px; /* 文字轻微间距，更易读 */
}

/* ============== 列表（层级清晰，不拥挤） ============== */
.article-content ul,
.article-content ol {
    margin: 15px 0;
    padding-left: 30px;
}
.article-content li {
    margin: 8px 0;
    line-height: 1.9;
}

/* ============== 表格（现代化美观版，支持隔行变色+hover） ============== */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.article-content th {
    background: #4a5fc3;
    color: #fff;
    font-weight: 600;
    padding: 12px 15px;
    text-align: center;
}
.article-content td {
    border: 1px solid #e0e0e0;
    padding: 12px 15px;
    text-align: center;
}
.article-content tr:nth-child(even) {
    background-color: #f8f9ff;
}
.article-content tr:hover {
    background-color: #eef2ff; /* 鼠标悬浮高亮，提升体验 */
}

/* ============== 引用块（重点内容标注，区别普通文字） ============== */
.article-content blockquote {
    margin: 20px 0;
    padding: 15px 20px;
    background: #f7f9fc;
    border-left: 6px solid #5c6bc0;
    color: #546e7a;
    border-radius: 0 4px 4px 0;
}
.article-content blockquote p {
    text-indent: 0; /* 引用取消缩进 */
    margin: 0;
}

/* ============== 图片（自适应居中，美观圆角） ============== */
.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ============== 链接、加粗、代码（统一美观） ============== */
.article-content a {
    color: #304ffe;
    text-decoration: none;
    font-weight: 500;
}
.article-content a:hover {
    text-decoration: underline;
    color: #1a237e;
}
.article-content strong {
    font-weight: 700;
    color: #d32f2f; /* 重点文字标红，突出强调 */
}
.article-content code {
    background: #f1f3f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
    color: #d32f2f;
}
.article-keywords, .article-tags {
    margin: 15px 0;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
}

.article-keywords a, .article-tags a {
    color: #0066cc;
    text-decoration: none;
    margin-right: 8px;
}

.article-keywords a:hover, .article-tags a:hover {
    text-decoration: underline;
}

/* 标签云样式 */
.article-tags .tag {
    display: inline-block;
    padding: 3px 8px;
    background: #e6f2ff;
    border-radius: 3px;
    margin-bottom: 5px;
}

.article-tags .tag:hover {
    background: #cce5ff;
    text-decoration: none;
}
/* 文章列表整体容器 */
.news-section {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* 列头标题样式 */
.news-section-title {
    padding: 18px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #0066cc;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
}

/* 标题左侧装饰线 */
.news-section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: #0066cc;
    margin-right: 12px;
    border-radius: 2px;
}

/* 2列文章列表容器 */
.news-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0; /* 移除内部间距，改用边框分隔 */
    padding: 0;
}

/* 单个文章项样式 */
.news-item {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    border-right: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

/* 移除最后一列的右边框 */
.news-item:nth-child(2n) {
    border-right: none;
}

/* 移除最后一行的下边框 */
.news-item:nth-last-child(-n+2) {
    border-bottom: none;
}

/* 鼠标悬停效果 */
.news-item:hover {
    background: #fafbfc;
}

/* 文章标题样式 */
.news-item .title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-item .title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-item .title a:hover {
    color: #0066cc;
}

/* 文章摘要样式 */
.news-item .sum {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 底部信息栏 */
.news-item .foot {
    font-size: 12px;
    color: #999;
    overflow: hidden;
}

.news-item .foot a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-item .foot a:hover {
    color: #0052a3;
    text-decoration: underline;
}

/* 响应式适配：屏幕小于768px时自动变为1列 */
@media (max-width: 768px) {
    .news-section {
        margin: 20px 0;
        border-radius: 4px;
    }
    
    .news-section-title {
        padding: 15px;
        font-size: 16px;
    }
    
    .news-list-grid {
        grid-template-columns: 1fr;
    }
    
    .news-item {
        border-right: none !important;
        padding: 15px;
    }
    
    .news-item:nth-last-child(-n+2) {
        border-bottom: 1px solid #f0f0f0;
    }
    
    .news-item:last-child {
        border-bottom: none;
    }
}
/* 全局模块容器，和热点文章保持一致 */
.encyclopedia-container {
    margin: 30px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* 单个百科模块样式 */
.encyclopedia-module {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* 模块标题栏（和你截图的样式一致） */
.encyclopedia-title {
    padding: 18px 20px;
    background: #f5f7fa;
    border-bottom: 2px solid #0066cc;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
}

.encyclopedia-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: #0066cc;
    margin-right: 12px;
    border-radius: 2px;
}

/* 文章列表样式 */
.encyclopedia-list {
    list-style: none;
    padding: 15px 20px;
    margin: 0;
}

.encyclopedia-list li {
    padding: 8px 0;
    border-bottom: 1px dotted #eee;
    font-size: 15px;
    line-height: 1.6;
}

.encyclopedia-list li:last-child {
    border-bottom: none;
}

.encyclopedia-list li a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.encyclopedia-list li a:hover {
    color: #0066cc;
}

/* 响应式适配：手机端自动变成单列 */
@media (max-width: 768px) {
    .encyclopedia-container {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 20px 0;
    }
    .encyclopedia-title {
        padding: 15px;
        font-size: 16px;
    }
    .encyclopedia-list {
        padding: 15px;
    }
}