/**
 * 故事页样式
 * 英雄区 / 章节速览 / 正文（首字下沉 + 引文）/ 篇章卡片
 */

/* ============ 英雄区 ============ */
.story-hero { text-align: center; padding: 5rem 0 3rem; }
.story-hero h1 { font-size: clamp(2.8rem, 7vw, 5rem); line-height: 1.08; margin: 0.8rem 0 1.2rem; }
.story-hero .accent { color: var(--accent-red); position: relative; }
.story-lead { color: var(--text-secondary); font-size: 1.15rem; letter-spacing: 0.04em; }

/* ============ 章节速览 ============ */
.chapter-nav {
    display: flex; flex-wrap: wrap; gap: 0.8rem;
    justify-content: center;
    max-width: 820px; margin: 0 auto 4rem;
    padding-bottom: 2rem; border-bottom: 1px solid var(--line);
}
.chapter-nav a {
    font-size: 0.82rem; letter-spacing: 0.06em;
    color: var(--text-secondary);
    border: 1px solid var(--line-strong); border-radius: 999px;
    padding: 0.45rem 1.1rem;
    transition: all 0.35s var(--ease-out);
}
.chapter-nav a:hover { background: var(--text-primary); color: #fff; border-color: var(--text-primary); }
.chapter-nav a.active { background: var(--accent-red); color: #fff; border-color: var(--accent-red); }

/* ============ 正文 ============ */
.story-content { max-width: 800px; margin: 0 auto; padding-bottom: 4rem; }
.story-body { font-size: 1.12rem; color: var(--text-primary); }
.story-body p { margin-bottom: 1.6rem; text-align: justify; text-shadow: 0 1px 3px rgba(251, 250, 246, 0.75); }
.drop-cap::first-letter,
.drop-cap {
    /* 首字下沉 */
}
.drop-cap::first-letter {
    float: left;
    font-family: var(--font-serif);
    font-size: 4.2rem;
    line-height: 0.78;
    margin: 0.15rem 0.6rem 0 0;
    color: var(--accent-red);
}

.story-body h2 {
    font-size: 2rem; margin: 3.5rem 0 1.5rem;
    position: relative; display: inline-block;
}
.story-body h2::after {
    content: ''; position: absolute; bottom: -6px; left: 0;
    width: 46%; height: 2px; background: var(--accent-red);
}

/* 引文 */
.pull-quote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    color: var(--text-primary);
    text-align: center;
    margin: 3.5rem 0;
    padding: 2.5rem 2rem;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    position: relative;
}
.pull-quote.end { background: rgba(255, 255, 255, 0.5); border-radius: var(--radius); }
.pull-quote cite {
    display: block; margin-top: 1rem;
    font-style: normal; font-family: var(--font-sans);
    font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--accent-red);
}

/* ============ 篇章卡片 ============ */
.story-arcs { margin-top: 4rem; }
.story-arc {
    --c: var(--accent-rose);
    position: relative;
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(8px);
    border: 1px solid var(--line);
    border-left: 3px solid var(--c);
    border-radius: var(--radius);
    padding: 2.5rem 2.5rem 2.2rem;
    margin-bottom: 2.5rem;
    overflow: hidden;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s ease;
}
.story-arc:nth-of-type(1) { --c: var(--accent-red); }
.story-arc:nth-of-type(2) { --c: var(--accent-moon); }
.story-arc:nth-of-type(3) { --c: var(--accent-gold); }
.story-arc:nth-of-type(4) { --c: var(--accent-jade); }
.story-arc:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--c); }
.arc-index {
    position: absolute; top: 1rem; right: 1.6rem;
    font-family: var(--font-serif);
    font-size: 4.5rem; color: var(--c);
    opacity: 0.18; line-height: 1; pointer-events: none;
}
.story-arc-header { margin-bottom: 1.2rem; }
.story-arc h3 { font-size: 1.7rem; margin-bottom: 0.3rem; }
.arc-subtitle {
    display: block; font-family: var(--font-sans);
    font-size: 0.78rem; color: var(--c);
    text-transform: uppercase; letter-spacing: 0.12em;
}
.story-arc-content p { font-size: 1rem; line-height: 1.75; color: var(--text-secondary); margin-bottom: 1rem; }
.story-arc-content p:last-child { margin-bottom: 0; }

@media (max-width: 600px) {
    .story-arc { padding: 2rem 1.5rem; }
    .arc-index { font-size: 3.2rem; }
}
