
/* 文章内容样式 - 必须与TinyMCE编辑器样式保持一致 */
.article-content {
    margin-top:30px;
    line-height: 1.8;
    font-size: 16px;
    color: #333;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 标题样式 */
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    margin: 20px 0 15px;
    font-weight: bold;
    color: #222;
    line-height: 1.4;
}

.article-content h1 { font-size: 24px; border-bottom: 2px solid #f0f0f0; padding-bottom: 10px; }
.article-content h2 { font-size: 22px; border-left: 4px solid #409EFF; padding-left: 10px; }
.article-content h3 { font-size: 20px; }
.article-content h4 { font-size: 18px; }
.article-content h5 { font-size: 16px; }
.article-content h6 { font-size: 14px; color: #666; }

/* 段落样式 */
.article-content p {
    margin-bottom: 15px;
    text-align: justify;
}

/* 列表样式 */
.article-content ul,
.article-content ol {
    margin: 15px 0;
    padding-left: 30px;
}

.article-content li {
    list-style: decimal;
    margin-bottom: 8px;
    line-height: 1.7;
}

/* 链接样式 */
.article-content a {
    color: #409EFF;
    text-decoration: none;
    border-bottom: 1px solid #409EFF;
    padding-bottom: 2px;
}

.article-content a:hover {
    color: #337ecc;
    border-bottom-color: #337ecc;
}

/* 图片样式 */
.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 表格样式 */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.article-content table th {
    background-color: #f8f9fa;
    font-weight: bold;
    text-align: left;
}

.article-content table th,
.article-content table td {
    border: 1px solid #dee2e6;
    padding: 10px;
    line-height: 1.5;
}

.article-content table tr:hover {
    background-color: #f8f9fa;
}

/* 引用样式 */
.article-content blockquote {
    border-left: 4px solid #409EFF;
    padding: 15px 20px;
    margin: 20px 0;
    background-color: #f8f9fa;
    color: #666;
    font-style: italic;
}

/* 代码样式 */
.article-content pre {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.5;
}

.article-content code {
    background-color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    color: #e83e8c;
}

/* 视频样式 */
.article-content video,
.article-content iframe {
    max-width: 100%;
    display: block;
    margin: 20px auto;
    border-radius: 4px;
}

/* 水平线 */
.article-content hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 30px 0;
}
