/* 01 — 基础与色彩 */
:root {
    --paper: #fcf7f2;
    --ink: #302b2d;
    --rose: #8b374e;
    --muted: #655b5b;
    --line: #e5d4d3;
    --green: #34594d;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
    line-height: 1.85;
}
a {
    color: inherit;
    text-decoration: none;
}
a:hover {
    color: var(--rose);
    text-decoration: underline;
}
a:focus-visible {
    outline: 3px solid var(--rose);
    outline-offset: 4px;
}
img {
    display: block;
    max-width: 100%;
    height: auto;
}
figure {
    margin: 0;
}
h1, h2, h3 {
    line-height: 1.45;
    margin-top: 0;
    overflow-wrap: anywhere;
}
p {
    margin: 0 0 1em;
    overflow-wrap: anywhere;
}
.wrap {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}
/* 02 — 页眉 */
.site-header {
    border-bottom: 1px solid var(--line);
    background: #fffdfa;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 18px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    color: var(--rose);
    font-size: 24px;
    font-weight: 700;
}
.brand small {
    display: block;
    font-size: 12px;
    letter-spacing: .16em;
    color: var(--muted);
}
nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 14px;
}
/* 03 — 画卷首屏 */
.hero {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 48px;
    align-items: center;
    padding-block: 64px;
}
.hero-copy h1 {
    font-family: "Songti SC", SimSun, serif;
    color: var(--rose);
    font-size: clamp(38px, 6vw, 76px);
    margin: 16px 0;
}
.hero-copy h1 span {
    display: block;
    font-size: clamp(24px, 3.4vw, 40px);
    color: var(--ink);
}
.hero-copy p {
    color: var(--muted);
}
.eyebrow {
    color: var(--green);
    font-size: 13px;
    letter-spacing: .12em;
    font-weight: 600;
}
.hero-art {
    padding: 12px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 48% 48% 4px 4px / 30% 30% 4px 4px;
    overflow: hidden;
}
.hero-art img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: inherit;
}
figcaption {
    font-size: 12px;
    color: var(--muted);
    padding: 8px 0;
    text-align: center;
}
.cta {
    display: inline-block;
    background: var(--rose);
    color: white;
    padding: 12px 22px;
    border-radius: 2px;
}
.cta:hover {
    color: white;
}
/* 04 — 章节交替布局 */
.intro {
    padding: 28px 36px;
    background: #f2e7e5;
    border-left: 4px solid var(--rose);
    margin-bottom: 48px;
}
.intro p {
    margin-bottom: 0;
}
.chapters > h2 {
    font-family: "Songti SC", SimSun, serif;
    font-size: 32px;
    color: var(--rose);
}
.chapter {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    align-items: center;
    gap: 40px;
    padding: 30px 0;
    border-top: 1px solid var(--line);
}
.chapter:nth-of-type(even) {
    grid-template-columns: 1.15fr .85fr;
}
.chapter:nth-of-type(even) .chapter-image {
    order: 2;
}
.chapter-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 4px;
}
.chapter h3 {
    font-size: clamp(22px, 3vw, 32px);
    margin: 12px 0;
}
.chapter p {
    color: var(--muted);
}
.read {
    color: var(--rose);
    font-weight: 700;
}
.closing {
    margin-top: 40px;
}
/* 05 — 内页 */
.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 760px) minmax(180px, 1fr);
    gap: 44px;
    padding-block: 40px;
}
.reading {
    min-width: 0;
    padding-block: 32px;
}
.reading h1 {
    font-size: clamp(28px, 4vw, 46px);
    color: var(--rose);
    margin: 12px 0 24px;
}
.reading h2 {
    margin-top: 32px;
    color: var(--green);
    font-size: 23px;
}
.reading figure img {
    width: 100%;
    max-height: 580px;
    object-fit: contain;
    background: #f2e7e5;
}
.crumb {
    margin-bottom: 20px;
    color: var(--muted);
}
.side {
    align-self: start;
    border-top: 3px solid var(--rose);
    padding: 20px;
    background: #fffdfa;
}
.side a {
    display: block;
    padding-block: 8px;
    border-bottom: 1px solid var(--line);
}
.related a {
    color: var(--rose);
}
/* 06 — 页脚与响应式 */
.site-footer {
    background: #3d2630;
    color: #fff0ed;
    padding-block: 30px;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.site-footer p {
    margin: 6px 0 0;
    font-size: 13px;
}
@media (max-width: 900px) {
    .header-inner {
        flex-wrap: wrap;
    }
    .hero {
        gap: 24px;
        padding-block: 36px;
    }
    .article-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
@media (max-width: 620px) {
    .wrap {
        width: calc(100% - 32px);
    }
    .hero, .chapter, .chapter:nth-of-type(even) {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .chapter:nth-of-type(even) .chapter-image {
        order: 0;
    }
    .intro {
        padding: 20px;
    }
    .hero-art {
        max-width: 440px;
    }
    .chapter {
        padding-block: 24px;
    }
}
