/* 文章内容区样式隔离：覆盖模板 .single-post .post-content 的默认样式 */

.single-post .post-content {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.single-post .post-content p,
.single-post .post-content h1,
.single-post .post-content h2,
.single-post .post-content h3,
.single-post .post-content h4,
.single-post .post-content h5,
.single-post .post-content h6,
.single-post .post-content ul,
.single-post .post-content ol,
.single-post .post-content li,
.single-post .post-content blockquote,
.single-post .post-content pre,
.single-post .post-content code,
.single-post .post-content table,
.single-post .post-content th,
.single-post .post-content td,
.single-post .post-content strong,
.single-post .post-content em,
.single-post .post-content span,
.single-post .post-content a,
.single-post .post-content img,
.single-post .post-content br,
.single-post .post-content hr,
.single-post .post-content div {
    font-family: inherit;
    text-transform: none;
    letter-spacing: normal;
    word-spacing: normal;
    border: none;
    background: transparent;
}

.single-post .post-content p {
    font-size: 16px !important;
    color: #333 !important;
    line-height: 1.8 !important;
    margin: 0 0 1em 0 !important;
    padding: 0;
}

.single-post .post-content h1,
.single-post .post-content h2,
.single-post .post-content h3,
.single-post .post-content h4,
.single-post .post-content h5,
.single-post .post-content h6 {
    margin: 1.2em 0 0.6em 0 !important;
    padding: 0 !important;
    font-weight: bold !important;
    color: #333 !important;
    line-height: 1.4 !important;
}

.single-post .post-content h1 { font-size: 2em !important; }
.single-post .post-content h2 { font-size: 1.5em !important; }
.single-post .post-content h3 { font-size: 1.17em !important; }
.single-post .post-content h4 { font-size: 1em !important; color: #333 !important; }
.single-post .post-content h5 { font-size: 0.83em !important; }
.single-post .post-content h6 { font-size: 0.67em !important; }

.single-post .post-content ul,
.single-post .post-content ol {
    margin: 0 0 1em 2em !important;
    padding: 0;
}

.single-post .post-content li {
    margin: 0 0 0.3em 0 !important;
    padding: 0;
    list-style: inherit;
}

.single-post .post-content blockquote {
    margin: 1em 0 !important;
    padding: 0.5em 1em !important;
    border-left: 4px solid #ddd !important;
    background: #f9f9f9 !important;
    color: #666 !important;
    font-style: normal !important;
}

.single-post .post-content blockquote::before,
.single-post .post-content blockquote::after {
    content: none !important;
    position: static !important;
}

.single-post .post-content a {
    color: #1a73e8 !important;
    text-decoration: underline !important;
}

.single-post .post-content a:hover {
    color: #1557b0 !important;
}

.single-post .post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1em 0;
}

.single-post .post-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1em;
}

.single-post .post-content th,
.single-post .post-content td {
    border: 1px solid #ddd !important;
    padding: 8px 12px !important;
    text-align: left;
}

.single-post .post-content th {
    background: #f5f5f5 !important;
    font-weight: bold;
}

.single-post .post-content pre,
.single-post .post-content code {
    font-family: Consolas, Monaco, "Courier New", monospace;
    background: #f5f5f5;
}

.single-post .post-content code {
    padding: 2px 4px;
    border-radius: 3px;
}

.single-post .post-content pre {
    padding: 10px;
    overflow-x: auto;
    border-radius: 4px;
    margin-bottom: 1em;
}

.single-post .post-content pre code {
    background: transparent;
    padding: 0;
}

.single-post .post-content hr {
    border: 0;
    border-top: 1px solid #ddd;
    margin: 1.5em 0;
}

.single-post .post-content strong {
    font-weight: bold;
    color: inherit;
}

.single-post .post-content em {
    font-style: italic;
}

/* 覆盖模板 .single-post .post-content p:last-child { margin: 0px; } */
.single-post .post-content p:last-child {
    margin-bottom: 1em !important;
}
