/* 设计变量与全局基础 */
:root {
    --ink: #14283d;
    --paper: #fffdf6;
    --yellow: #f4cf48;
    --muted: #52616c;
    --line: #d8d5c9;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
    line-height: 1.75;
    overflow-wrap: anywhere;
}
a {
    color: inherit;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
a:focus-visible {
    outline: 3px solid #bd7a00;
    outline-offset: 4px;
}
img {
    display: block;
    width: 100%;
    height: auto;
}
figure, h1, h2, h3, p {
    margin: 0;
}
.wrap {
    width: min(1200px, 92%);
    margin-inline: auto;
}
.skip {
    position: absolute;
    left: 12px;
    top: -100px;
}
.skip:focus {
    top: 12px;
    background: white;
    z-index: 10;
}
/* 页眉与导航 */
.masthead {
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}
.brandline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
}
.brand {
    font-size: 28px;
    font-weight: 900;
}
.brand span, .edition {
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
}
.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    padding: 10px 0 16px;
    font-weight: 700;
}
/* 首屏：左右对照的杂志封面 */
.hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    margin-top: 28px;
    background: var(--ink);
    color: white;
}
.hero-copy {
    padding: clamp(24px, 4vw, 60px);
    align-self: center;
}
.kicker {
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    margin-bottom: 16px;
}
.hero .kicker {
    color: var(--yellow);
}
h1 {
    font-size: clamp(27px, 3.7vw, 48px);
    line-height: 1.35;
    font-weight: 900;
}
.hero-copy p, .intro p {
    margin-top: 20px;
}
.cta {
    display: inline-block;
    margin-top: 24px;
    background: var(--yellow);
    color: var(--ink);
    padding: 12px 20px;
    font-weight: 800;
}
.hero-art {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.hero-art img {
    flex: 1;
    min-height: 0;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
figcaption {
    font-size: 12px;
    padding: 9px 12px;
    background: var(--yellow);
    color: var(--ink);
}
/* 主题索引与文章卡片 */
.section {
    margin-block: 42px;
}
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    border-bottom: 2px solid var(--ink);
    padding-bottom: 10px;
}
h2 {
    font-size: clamp(22px, 2.5vw, 30px);
    line-height: 1.4;
}
.section-head span, .tag {
    color: var(--muted);
    font-size: 13px;
}
.index-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}
.index-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 16px;
    background: var(--paper);
    padding: 20px;
}
.num {
    grid-row: span 2;
    color: #8b6400;
    font-size: 26px;
    font-weight: 900;
}
.index-item strong {
    font-size: 20px;
}
.index-item span:last-child {
    color: var(--muted);
    font-size: 14px;
}
.story-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 20px;
    margin-top: 18px;
}
.story-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.tile {
    min-width: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 18px;
}
.tile img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.tag {
    display: block;
    margin-top: 12px;
}
h3 {
    font-size: 19px;
    line-height: 1.5;
    margin: 5px 0 8px;
}
.tile p {
    color: var(--muted);
    font-size: 15px;
}
.note {
    padding: 30px;
    background: #f8e9a7;
}
.note p {
    margin-block: 12px;
}
/* 内页与公共页脚 */
.crumb {
    color: var(--muted);
    font-size: 14px;
    margin-block: 24px;
}
.intro {
    padding: 26px 0;
    border-bottom: 2px solid var(--ink);
}
.reading {
    max-width: 800px;
    margin-inline: auto;
}
.article-image {
    margin-block: 24px;
}
.article-image img {
    max-width: 520px;
    margin-inline: auto;
}
.reading section {
    margin-block: 28px;
}
.reading section p {
    font-size: 17px;
    margin-top: 12px;
}
.footer {
    margin-top: 50px;
    background: var(--ink);
    color: white;
    padding: 30px 0;
    font-size: 14px;
}
.footer p {
    margin-top: 8px;
}
/* 响应式布局 */
@media (max-width: 760px) {
    .hero {
        grid-template-columns: 1fr;
    }
    .hero-art img {
        aspect-ratio: 4 / 3;
    }
    .index-grid, .story-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .brandline {
        flex-wrap: wrap;
    }
}
@media (max-width: 440px) {
    .index-grid, .story-grid, .story-grid.two {
        grid-template-columns: 1fr;
    }
    .section-head {
        flex-wrap: wrap;
    }
    .brand span {
        display: block;
    }
}

/* 当前栏目及窄屏防溢出 */
.nav a[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 5px;
}
.hero > *, .story-grid > *, .index-grid > * {
    min-width: 0;
}
