/* 金色漫剧宇宙：基础设计 */
:root {
    color-scheme: dark;
    --bg: #11101a;
    --panel: #201d2b;
    --gold: #ffce76;
    --text: #f6f2eb;
    --muted: #c8c1d2;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.8 system-ui, "Microsoft YaHei", sans-serif;
}
a {
    color: inherit;
    text-decoration: none;
}
a:hover, a:focus-visible {
    color: var(--gold);
    text-decoration: underline;
}
img {
    display: block;
    width: 100%;
    height: auto;
}
figure {
    margin: 0;
}
figcaption, small {
    color: var(--muted);
    font-size: 13px;
}
h1, h2, h3 {
    line-height: 1.35;
    margin: 0 0 12px;
}
p {
    margin: 0 0 14px;
}
.masthead {
    max-width: 1440px;
    margin: auto;
    padding: 22px 5%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid #383044;
}
.brand {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 2px;
}
.brand span, .eyebrow, .chapter-label a {
    color: var(--gold);
}
nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.shell {
    max-width: 1320px;
    padding: 32px 28px 60px;
    margin: auto;
}
.hero {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    background: linear-gradient(135deg, #30233e, #17141e);
    border: 1px solid #625039;
    gap: 22px;
    padding: 26px;
    align-items: center;
}
.hero h1 {
    font-size: clamp(28px, 4vw, 51px);
}
.hero figure img {
    aspect-ratio: 16/9;
    object-fit: cover;
}
.eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
}
.cta {
    display: inline-block;
    background: var(--gold);
    color: #17121b;
    font-weight: 700;
    padding: 10px 18px;
}
.cta:hover {
    color: #17121b;
}
.index, .feature, .chapter {
    margin-top: 40px;
}
.route {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
}
.route a {
    display: flex;
    flex-direction: column;
    padding: 18px;
    background: var(--panel);
    border-top: 2px solid var(--gold);
}
.route span {
    font-size: 32px;
    color: var(--gold);
    font-weight: 300;
}
.feature-grid, .pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.feature-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
}
.tile {
    background: var(--panel);
    padding: 12px;
    border-bottom: 2px solid #54425d;
    min-width: 0;
}
.tile img {
    aspect-ratio: 16/8;
    object-fit: cover;
    margin-bottom: 14px;
}
.tile h3 {
    font-size: 19px;
}
.tile p, .hero-copy p, .chapter-label p {
    color: var(--muted);
}
.chapter {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 24px;
    border-top: 1px solid #40354b;
    padding-top: 26px;
}
.chapter-label h2 {
    font-size: 30px;
}
.intro, .reading {
    padding: 28px;
    background: var(--panel);
    margin-bottom: 32px;
}
.reading {
    max-width: 850px;
    margin: 20px auto 40px;
}
.reading figure {
    margin: 20px 0 30px;
}
.reading figure img {
    max-height: 400px;
    object-fit: contain;
    background: #14121a;
}
.reading section {
    margin-top: 28px;
}
.lead {
    color: var(--muted);
    font-size: 19px;
}
.footer {
    border-top: 1px solid #40354b;
    padding: 35px 5%;
    text-align: center;
    color: var(--muted);
}
@media (max-width: 800px) {
    .hero, .chapter, .feature-grid {
        grid-template-columns: 1fr;
    }
    .route {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .shell {
        padding: 18px 15px 40px;
    }
    .hero, .reading {
        padding: 18px;
    }
    nav {
        gap: 12px;
    }
}
@media (max-width: 480px) {
    .pair {
        grid-template-columns: 1fr;
    }
}

/* 当前导航与窄屏可读性 */
nav a[aria-current="page"] {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 5px;
}
.hero-copy,
.chapter-label {
    min-width: 0;
    overflow-wrap: anywhere;
}
@media (max-width: 480px) {
    .route a {
        padding: 12px;
    }
    .masthead {
        padding: 16px;
    }
}
