/* PbootCMS Markdown 导入文章正文排版
 * 用法：追加到网站 skin/css/style.css 末尾，或作为独立 CSS 在文章模板中引入。
 * 作用域限定在 PbootCMS 文章正文容器 .info，避免影响导航、侧栏和列表。
 */

.info p {
    margin: 0 0 14px;
    padding: 0;
    font-size: 15px;
    line-height: 1.85;
    color: #333;
}

.info h1,
.info h2,
.info h3,
.info h4 {
    margin: 24px 0 12px;
    padding: 0 0 9px;
    font-size: 20px;
    line-height: 1.5;
    font-weight: 700;
    color: #1f3b57;
    border-bottom: 1px solid #e8edf3;
}

.info h3 {
    margin-top: 20px;
    padding-bottom: 0;
    font-size: 17px;
    border-bottom: 0;
}

.info h4 {
    padding-bottom: 0;
    font-size: 15px;
    border-bottom: 0;
}

.info ul,
.info ol {
    margin: 0 0 16px 22px;
    padding: 0;
    max-height: none;
    overflow: visible;
}

.info li {
    margin: 6px 0;
    padding: 0;
    height: auto;
    line-height: 1.8;
    border: 0;
    overflow: visible;
    list-style: disc;
}

.info ol li {
    list-style: decimal;
}

.info table {
    display: table;
    width: 100%;
    margin: 18px 0;
    border: 1px solid #dfe6ee;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.65;
}

.info th,
.info td {
    padding: 10px 12px;
    border: 1px solid #dfe6ee;
    text-align: left;
    vertical-align: top;
    word-break: break-word;
}

.info th {
    background: #f4f8fc;
    color: #1f3b57;
    font-weight: 700;
}

.info tr:nth-child(even) td {
    background: #fbfcfd;
}

.info blockquote {
    margin: 16px 0;
    padding: 10px 16px;
    background: #f7f9fb;
    border-left: 4px solid #3060a5;
    color: #555;
}

.info code {
    padding: 2px 5px;
    background: #f2f4f7;
    border-radius: 3px;
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 13px;
}

.info pre {
    margin: 16px 0;
    padding: 14px 16px;
    background: #f6f8fa;
    border: 1px solid #e3e8ef;
    overflow: auto;
    line-height: 1.6;
    white-space: pre-wrap;
}

.info pre code {
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.info img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 16px auto;
}

.info a {
    color: #3060a5;
    text-decoration: underline;
}

/* Word 导入内容：优先使用文档自带的行内样式，避免被上面的通用规则改写 */
.info .docx-import {
    font-family: "SimSun", "宋体", "Microsoft YaHei", Arial, sans-serif;
    font-size: 10.5pt;
    line-height: 1.5;
    color: #000;
}

.info .docx-import p {
    margin: 0;
    padding: 0;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    background: transparent;
}

.info .docx-import h1,
.info .docx-import h2,
.info .docx-import h3,
.info .docx-import h4,
.info .docx-import h5,
.info .docx-import h6 {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: inherit;
    line-height: inherit;
    font-weight: inherit;
    color: inherit;
}

.info .docx-import ul,
.info .docx-import ol {
    margin: 0.25em 0 0.35em;
    padding-left: 2em;
    max-height: none;
    overflow: visible;
}

.info .docx-import li {
    margin: 0 0 0.18em;
    padding: 0;
    height: auto;
    line-height: inherit;
    border: 0;
    overflow: visible;
    list-style: inherit;
}

.info .docx-import table {
    border: 0;
    margin: 0.6em 0;
    font-size: inherit;
    line-height: inherit;
}

.info .docx-import td {
    border: 0;
    padding: 0;
    text-align: left;
    vertical-align: top;
    word-break: break-word;
}

.info .docx-import tr:nth-child(even) td {
    background: transparent;
}

.info .docx-import img {
    display: inline;
    max-width: 100%;
    height: auto;
    margin: 0;
    vertical-align: middle;
}

.info .docx-import a {
    color: #0563c1;
    text-decoration: underline;
}
