/*文章页css*/
/* article.css - 文章页面样式 */
/* 微软雅黑字体，首行缩进，简洁阅读体验 */

/* 基础样式 */
.article-container {
    font-family: "Microsoft YaHei", "微软雅黑", "MicrosoftJhengHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
	margin: 30px auto;
}

/* 标题样式 */
.article-container h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 24px 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #222;
}

.article-container h2 {
	text-indent: 2em;
    font-size: 18px;
    font-weight: 600;
    margin: 16px 0 16px 0;
    color: #2c3e50;
}

.article-container h3 {
	text-indent: 2em;
    font-size: 16px;
    font-weight: 600;
    margin: 18px 0 12px 0;
    color: #34495e;
}

/* 段落样式 - 首行缩进2字符 */
.article-container p {

	font-size: 16px;
	line-height: 2.6em;
    text-align: justify;
    text-indent: 2em; /* 首行缩进2字符 */
    word-wrap: break-word;
    word-break: break-word;
}

/* 特殊段落（如首段）可不缩进 */
.article-container p.no-indent {
    text-indent: 0;
}

/* 链接样式 */
.article-container a {
    color: #0066cc;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 102, 204, 0.2);
    padding-bottom: 1px;
    transition: all 0.2s ease;
}

.article-container a:hover {
    color: #ff6600;
    border-bottom: 1px solid rgba(255, 102, 0, 0.5);
}

.article-container a:visited {
    color: #663399;
}

/* 图片样式 */
.article-container img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 12px auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.article-container img.inline {
    display: inline;
    margin: 0 5px;
    vertical-align: middle;
    box-shadow: none;
    border-radius: 2px;
}

.article-container .image-caption {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: -15px;
    margin-bottom: 20px;
    font-style: italic;
    text-indent: 0; /* 图片说明不需要缩进 */
}

/* 列表样式 */
.article-container ul, 
.article-container ol {
    margin: 16px 0 16px 24px;
    padding-left: 20px;
}

.article-container li {
    margin-bottom: 8px;
    text-indent: 0; /* 列表项不需要缩进 */
}

.article-container ul li {
    list-style-type: disc;
}

.article-container ol li {
    list-style-type: decimal;
}

/* 引用块样式 */
.article-container blockquote {
    border-left: 4px solid #e0e0e0;
    padding: 12px 20px;
    margin: 20px 0;
    background-color: #f9f9f9;
    font-style: italic;
    color: #555;
    text-indent: 0; /* 引用块不需要缩进 */
}

.article-container blockquote p {
    margin-bottom: 10px;
    text-indent: 0;
}

/* 代码样式 */
.article-container code {
    font-family: "Courier New", Consolas, Monaco, monospace;
    background-color: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 14px;
    color: #c7254e;
    text-indent: 0; /* 代码不需要缩进 */
}

.article-container pre {
    background-color: #f5f5f5;
    padding: 16px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 20px 0;
    border-left: 3px solid #ddd;
    text-indent: 0; /* 代码块不需要缩进 */
}

.article-container pre code {
    background-color: transparent;
    padding: 0;
    color: #333;
    font-size: 14px;
}

/* 表格样式 */
.article-container table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    text-indent: 0; /* 表格不需要缩进 */
}

.article-container th, 
.article-container td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
}

.article-container th {
    background-color: #f8f8f8;
    font-weight: 600;
}

.article-container tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* 分隔线 */
.article-container hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 30px 0;
}

/* 文本强调 */
.article-container strong, 
.article-container b {
    font-weight: 700;
    color: #222;
}

.article-container em, 
.article-container i {
    font-style: italic;
}
