/* ====================================================
   在地观察 · 正文排版（仅作用于 .observation-content 内部）
   公共样式见 assets/css/style.css
   ==================================================== */

.observation-content > * + * {
    margin-top: 2rem;
}

.observation-content p {
    margin: 0;
}

/* ---- 标题 ---- */
.observation-content h2 {
    font-family: Georgia, 'Source Han Serif CN', 'Songti SC', STSong, serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
    color: #1A1C1A;
    margin-top: 2.75rem;
}
.observation-content h3 {
    font-family: Georgia, 'Source Han Serif CN', 'Songti SC', STSong, serif;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.5;
    color: #1A1C1A;
    margin-top: 2.25rem;
}

/* ---- 图片：不带 caption 的流式插图 ---- */
.observation-content img {
    display: block;
    width: 100%;
    height: auto;
    filter: grayscale(1) brightness(0.95);
}

.observation-content figure {
    margin: 2rem 0;
    padding: 0.25rem;
    border: 1px solid rgba(26, 28, 26, 0.2);
    background-color: #FAF8F3;
}

.observation-content figure img {
    max-height: 640px;
    object-fit: cover;
}

/* 编辑器输出的裸图（无 figure 包裹）同样加纸张边框 */
.observation-content > img,
.observation-content > p > img {
    padding: 0.25rem;
    border: 1px solid rgba(26, 28, 26, 0.2);
    background-color: #FAF8F3;
}

.observation-content figcaption {
    padding: 0.5rem 0.25rem 0.25rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-align: right;
    color: rgba(26, 28, 26, 0.5);
}

/* ---- 引用 ---- */
.observation-content blockquote {
    margin: 2.5rem 0;
    padding-left: 1.5rem;
    border-left: 2px solid #C85A3C;
    font-family: Georgia, 'Source Han Serif CN', 'Songti SC', STSong, serif;
    font-style: italic;
    color: rgba(26, 28, 26, 0.8);
}

/* ---- 列表 ---- */
.observation-content ul {
    list-style: none;
    padding-left: 0;
}
.observation-content ul > li {
    position: relative;
    padding-left: 1.25rem;
}
.observation-content ul > li + li {
    margin-top: 0.5rem;
}
.observation-content ul > li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: #C85A3C;
}
.observation-content ol {
    list-style: decimal;
    padding-left: 1.5rem;
}
.observation-content ol > li + li {
    margin-top: 0.5rem;
}

/* ---- 行内元素与其它 ---- */
.observation-content a {
    color: #C85A3C;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}
.observation-content a:hover {
    color: #1A1C1A;
}
.observation-content strong {
    font-weight: 700;
    color: #1A1C1A;
}
.observation-content hr {
    margin: 3rem 0;
    border: 0;
    border-top: 1px solid rgba(26, 28, 26, 0.1);
}

/* ---- 表格 ---- */
.observation-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.observation-content th,
.observation-content td {
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(26, 28, 26, 0.15);
    text-align: left;
}
.observation-content th {
    background-color: rgba(132, 150, 130, 0.1);
    font-weight: 700;
}
