/* ================================
   文章内容样式
   ================================ */

/* 文章内容 */
.post-content-body {
    font-size: var(--content-font-size);
    line-height: var(--content-line-height);
    text-align: justify;
}

.post-content-body h1,
.post-content-body h2,
.post-content-body h3,
.post-content-body h4 {
    margin-top: var(--heading-margin-top);
    margin-bottom: var(--heading-margin-bottom);
    line-height: var(--heading-line-height);
}

.post-content-body h1 {
    font-size: 1.6rem;
    font-weight: 700;
}

.post-content-body h2 {
    font-size: 1.4rem;
    font-weight: 700;
}

.post-content-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.post-content-body h4 {
    font-size: 1.15rem;
    font-weight: 600;
}

.post-content-body p {
    margin-bottom: var(--paragraph-spacing);
}

.post-content-body p.empty-line {
    line-height: var(--empty-line-height);
}

.post-content-body hr {
    margin: var(--hr-spacing) 0;
    border: none;
    border-top: 2px dotted var(--border-wood);
}

.post-content-body ul,
.post-content-body ol {
    margin: 0.6em 0 0.8em 0;
    padding-left: 1.5em;
    list-style-position: outside;
}

.post-content-body ul {
    list-style-type: disc;
}

.post-content-body ol {
    list-style-type: decimal;
}

.post-content-body li {
    margin-bottom: 0.25em;
}

/* 引用块 */
.post-content-body blockquote {
    border-left: 4px solid var(--border-ink);
    margin: 0.8em 0;
    padding: 0.6em 1.0em;
    background-color: rgba(46, 36, 31, 0.03);
    border-radius: 0 4px 4px 0;
    font-style: normal;
}

/* 行内代码 */
.post-content-body code {
    background: rgba(46, 36, 31, 0.08);
    padding: 0.15em 0.35em;
    border-radius: 3px;
    font-family: "SF Mono", "Menlo", "Consolas", monospace;
    font-size: 0.88em;
    color: var(--border-ink);
}

/* 代码块 */
.post-content-body pre {
    background: rgba(46, 36, 31, 0.05);
    padding: 1.0em 1.2em;
    overflow-x: auto;
    border-radius: 6px;
    margin: 1.0em 0;
    border: 1px solid var(--border);
}

/* 代码块内的代码 */
.post-content-body pre code {
    background: none;
    padding: 0;
    font-family: "SF Mono", "Menlo", "Consolas", monospace;
    font-size: 0.88em;
    color: var(--border-ink);
    white-space: pre;
}

/* 表格 */
.post-content-body table {
    border-collapse: collapse;
    width: 100%;
    margin: 1.0em 0;
    font-size: 0.90em;
}

.post-content-body th,
.post-content-body td {
    border: 1px solid var(--border-wood);
    padding: 0.6em 0.8em;
    text-align: left;
}

.post-content-body th {
    background-color: rgba(46, 36, 31, 0.06);
    font-weight: 600;
}

.post-content-body tr:nth-child(even) {
    background-color: rgba(46, 36, 31, 0.02);
}

/* 链接 */
.post-content-body a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 0.30em;
    text-decoration-thickness: 0.10em;
    transition: all 0.2s ease;
}

.post-content-body a:hover {
    text-decoration: none;
}

/* 图片 */
.post-content-body img {
    max-width: 100%;
    height: auto;
    margin: 1.2em auto;
    display: block;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(46, 36, 31, 0.12);
    transition: all 0.3s ease;
}

.post-content-body img:hover {
    box-shadow: 0 4px 16px rgba(46, 36, 31, 0.2);
    transform: translateY(-2px);
}
