/* 基础样式：宣纸、朱砂与墨色 */
:root {
    --paper: #f5f1e7;
    --ink: #222321;
    --red: #a12d25;
    --line: #d6cdbb;
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
    line-height: 1.75;
}
a {
    color: inherit;
    text-decoration: none;
}
a:hover {
    color: var(--red);
    text-decoration: underline;
}
a:focus-visible {
    outline: 3px solid #b44a32;
    outline-offset: 4px;
}
img {
    display: block;
    max-width: 100%;
    height: auto;
}
figure {
    margin: 0;
}
figcaption {
    font-size: .8rem;
    color: #625d55;
    margin-top: 8px;
}
h1, h2, h3, p {
    margin: 0 0 14px;
    overflow-wrap: anywhere;
}
h1, h2 {
    font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
    line-height: 1.3;
}
h1 {
    font-size: clamp(2rem, 4.2vw, 4.2rem);
}
h2 {
    font-size: clamp(1.4rem, 2.6vw, 2rem);
}
h3 {
    line-height: 1.5;
    font-size: 1.17rem;
}
.skip {
    position: absolute;
    left: -9999px;
}
.skip:focus {
    left: 10px;
    top: 10px;
    background: white;
    z-index: 5;
    padding: 10px;
}
.wrap, .mast-inner, .masthead nav {
    width: min(1200px, 92%);
    margin-inline: auto;
}
.masthead {
    border-top: 6px solid var(--red);
    border-bottom: 1px solid var(--line);
}
.mast-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0 18px;
    gap: 16px;
}
.brand {
    font-family: SimSun, serif;
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.1;
}
.brand span {
    color: var(--red);
}
.brand small {
    display: block;
    font: 12px/2 sans-serif;
    letter-spacing: .15em;
}
.edition, .eyebrow {
    color: var(--red);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
}
.masthead nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}
/* 首屏：编辑画册式错位布局 */
.hero {
    display: grid;
    grid-template-columns: 1.15fr 1fr .48fr;
    align-items: center;
    gap: 22px;
    padding: 44px 0;
    border-bottom: 2px solid var(--ink);
}
.hero-copy p:not(.eyebrow) {
    max-width: 45ch;
}
.subtitle {
    font-size: 1.15rem;
    color: var(--red);
}
.hero-art img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
}
.hero-small {
    align-self: end;
    margin-bottom: 36px;
}
.hero-small img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}
.button {
    display: inline-block;
    background: var(--red);
    color: #fff;
    padding: 10px 22px;
    margin-top: 8px;
}
.button:hover {
    color: white;
}
/* 专题目录与图文档案 */
.index, #collection, .related {
    padding: 32px 0;
}
.chapter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
}
.chapter {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 3px 12px;
    padding: 18px 12px;
    border-bottom: 1px solid var(--line);
}
.chapter .number {
    grid-row: span 2;
    font: 1.8rem/1.4 Georgia, serif;
    color: var(--red);
}
.chapter span:last-child {
    font-size: .86rem;
    color: #625d55;
}
.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 2px solid var(--ink);
    margin-bottom: 24px;
}
.film-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}
.film-card {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 17px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 20px;
    align-items: start;
}
.cover img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}
.card-copy p:not(.eyebrow) {
    font-size: .91rem;
}
.read {
    color: var(--red);
    font-weight: 700;
    font-size: .9rem;
}
.closing, .topic-intro {
    padding: 28px 0;
    border-top: 1px solid var(--line);
    margin: 16px 0 32px;
}
.crumb {
    font-size: .87rem;
    padding: 22px 0;
    color: #625d55;
}
.essay {
    max-width: 780px;
    margin: 0 auto;
    padding: 20px 0 40px;
}
.essay h1 {
    font-size: clamp(1.9rem, 4vw, 3rem);
}
.essay figure {
    margin: 24px 0;
}
.essay figure img {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    background: #e7e0d2;
}
.essay section {
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}
.essay section p {
    font-size: 1.08rem;
    line-height: 1.95;
}
.footer {
    background: var(--ink);
    color: #f4eee1;
    padding: 32px 0;
    font-size: .9rem;
}
.footbrand {
    font-size: 1.2rem;
    font-weight: bold;
}
/* 移动端：保留真实文本与可访问链接 */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr 1fr;
    }
    .hero-small {
        display: none;
    }
    .film-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 560px) {
    .mast-inner, .hero {
        display: block;
    }
    .edition {
        display: block;
        margin-top: 12px;
    }
    .hero-art {
        margin-top: 20px;
    }
    .hero-art img {
        aspect-ratio: 4/3;
    }
    .chapter-grid {
        grid-template-columns: 1fr;
    }
    .film-card {
        grid-template-columns: minmax(0, .7fr) minmax(0, 1fr);
        gap: 12px;
    }
    .masthead nav {
        gap: 8px 16px;
    }
}

/* 阅读与窄屏防溢出 */
.hero-copy, .card-copy, .chapter, .essay {
    min-width: 0;
    overflow-wrap: anywhere;
}
.masthead nav a[aria-current="page"] {
    color: var(--red);
    text-decoration: underline;
    text-underline-offset: 5px;
}
@media (max-width: 380px) {
    .film-card {
        grid-template-columns: 1fr;
    }
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
