/*
 * 红果漫剧页面样式
 * 原生 CSS，围绕暖白背景、莓红识别、暖橙辅助和深紫灰正文构建。
 */
:root {
    --berry: #E85D75;
    --berry-deep: #D93F63;
    --orange: #F2A65A;
    --ink: #2F2530;
    --text: #332D34;
    --muted: #756A73;
    --paper: #FFF9F6;
    --soft: #F8EEF0;
    --white: #FFFFFF;
    --line: rgba(47, 37, 48, .12);
    --line-strong: rgba(47, 37, 48, .2);
    --shadow-sm: 0 8px 24px rgba(75, 42, 52, .08);
    --shadow-md: 0 18px 48px rgba(75, 42, 52, .12);
    --shadow-lg: 0 32px 80px rgba(75, 42, 52, .16);
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-xl: 38px;
    --shell: 1180px;
    --header-h: 78px;
    --ease: cubic-bezier(.2,.75,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    color: var(--text);
    background: var(--paper);
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.72;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
::selection { background: rgba(232,93,117,.2); color: var(--ink); }
:focus-visible { outline: 3px solid rgba(217,63,99,.5); outline-offset: 4px; }
[hidden] { display: none !important; }

.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--white);
    transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(255,249,246,.92);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(14px);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.site-header.is-scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 10px 30px rgba(47,37,48,.06);
    background: rgba(255,249,246,.97);
}
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand-mark { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-mark__logo {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(232,93,117,.15), rgba(242,166,90,.18));
    box-shadow: inset 0 0 0 1px rgba(232,93,117,.12);
}
.brand-mark__logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-mark__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-mark__text strong { color: var(--ink); font-size: 18px; letter-spacing: .02em; }
.brand-mark__text small { color: var(--muted); margin-top: 5px; font-size: 12px; }
.primary-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.primary-nav a {
    padding: 10px 13px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.primary-nav a:hover, .primary-nav a.is-active { color: var(--ink); background: var(--soft); }
.primary-nav a:active { transform: translateY(1px); }
.header-action {
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--white);
    background: var(--berry-deep);
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(217,63,99,.22);
}
.nav-toggle {
    display: none;
    border: 0;
    background: transparent;
    padding: 8px 0;
    align-items: center;
    gap: 9px;
    font-weight: 800;
}
.nav-toggle i, .nav-toggle i::before, .nav-toggle i::after {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
    content: "";
    transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle i { position: relative; }
.nav-toggle i::before { position: absolute; transform: translateY(-7px); }
.nav-toggle i::after { position: absolute; transform: translateY(7px); }
.nav-toggle[aria-expanded="true"] i { background: transparent; }
.nav-toggle[aria-expanded="true"] i::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] i::after { transform: rotate(-45deg); }

.eyebrow {
    margin: 0 0 12px;
    color: var(--berry-deep);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}
h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1.18; letter-spacing: -.025em; }
h1 { font-size: clamp(38px, 6vw, 72px); }
h2 { font-size: clamp(30px, 4vw, 48px); }
h3 { font-size: 21px; }
p { margin: 0; }
.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform .2s var(--ease), box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--berry-deep); color: var(--white); box-shadow: 0 12px 28px rgba(217,63,99,.22); }
.button--primary:hover { box-shadow: 0 16px 36px rgba(217,63,99,.28); }
.button--ghost { background: rgba(255,255,255,.58); color: var(--ink); border: 1px solid var(--line-strong); }
.button--ghost:hover { background: var(--white); }
.button--dark { background: var(--ink); color: var(--white); box-shadow: 0 12px 26px rgba(47,37,48,.15); }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--berry-deep); font-weight: 900; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }

.hero-home {
    position: relative;
    overflow: hidden;
    padding: 76px 0 54px;
    background:
        radial-gradient(circle at 12% 20%, rgba(242,166,90,.18), transparent 28%),
        radial-gradient(circle at 88% 5%, rgba(232,93,117,.16), transparent 30%),
        linear-gradient(180deg, #fff9f6 0%, #fff6f3 100%);
}
.hero-home::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -130px;
    width: 420px;
    aspect-ratio: 1;
    border: 1px solid rgba(232,93,117,.14);
    border-radius: 50%;
    box-shadow: 0 0 0 42px rgba(232,93,117,.04), 0 0 0 88px rgba(242,166,90,.035);
}
.hero-home__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.03fr .97fr; gap: 64px; align-items: center; }
.hero-home__copy h1 { max-width: 760px; }
.hero-home__lead { margin-top: 24px; max-width: 660px; color: var(--muted); font-size: 19px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 38px 0 0; }
.hero-facts div { padding: 14px 0; border-top: 1px solid var(--line); }
.hero-facts dt { color: var(--muted); font-size: 12px; }
.hero-facts dd { margin: 5px 0 0; color: var(--ink); font-size: 14px; font-weight: 800; }
.hero-home__visual { position: relative; min-height: 560px; display: flex; align-items: center; justify-content: center; }
.hero-home__visual > img {
    width: min(100%, 500px);
    aspect-ratio: 7 / 8;
    object-fit: cover;
    border-radius: 34px 96px 34px 34px;
    box-shadow: var(--shadow-lg);
}
.hero-note {
    position: absolute;
    display: grid;
    gap: 3px;
    min-width: 185px;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 18px;
    background: rgba(255,255,255,.9);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
}
.hero-note span { color: var(--berry-deep); font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.hero-note strong { color: var(--ink); font-size: 14px; }
.hero-note--top { top: 14%; left: -18px; }
.hero-note--bottom { right: -12px; bottom: 12%; }

.story-ribbon { padding: 28px 0 14px; }
.story-ribbon__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ribbon-item {
    position: relative;
    overflow: hidden;
    min-height: 184px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,.72);
    box-shadow: var(--shadow-sm);
    transition: transform .22s var(--ease), box-shadow .22s ease, border-color .22s ease;
}
.ribbon-item::after { content: "→"; position: absolute; right: 20px; bottom: 16px; color: var(--berry-deep); font-size: 22px; font-weight: 900; }
.ribbon-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(232,93,117,.28); }
.ribbon-item span { color: var(--berry-deep); font-size: 12px; font-weight: 900; }
.ribbon-item strong { display: block; margin-top: 8px; color: var(--ink); font-size: 20px; line-height: 1.28; }
.ribbon-item p { margin-top: 8px; max-width: 92%; color: var(--muted); font-size: 13px; line-height: 1.7; }

.section { padding: 90px 0; }
.section--soft { background: var(--soft); }
.section--closing { padding-top: 34px; }
.section-heading { max-width: 720px; margin-bottom: 36px; }
.section-heading h2 + p, .section-heading p:not(.eyebrow) { margin-top: 16px; color: var(--muted); font-size: 17px; }
.section-heading--split { max-width: none; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(260px, .7fr); gap: 44px; align-items: end; }
.section-heading--split > p { margin: 0; }
.section-heading--narrow { max-width: 760px; }
.section-foot { display: flex; justify-content: center; margin-top: 34px; }

.story-grid { display: grid; gap: 20px; }
.story-grid--feature { grid-template-columns: repeat(3, 1fr); }
.story-grid--compact { grid-template-columns: repeat(3, 1fr); }
.story-grid--library { grid-template-columns: repeat(2, 1fr); }
.story-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--white);
    box-shadow: 0 10px 32px rgba(47,37,48,.07);
    transition: transform .25s var(--ease), box-shadow .25s ease, border-color .25s ease;
}
.story-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(232,93,117,.26); }
.story-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); }
.story-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.story-card:hover .story-card__media img { transform: scale(1.035); }
.story-card__status { position: absolute; left: 14px; bottom: 14px; padding: 6px 10px; border-radius: 999px; color: var(--white); background: rgba(47,37,48,.82); font-size: 11px; font-weight: 900; backdrop-filter: blur(7px); }
.story-card__body { padding: 20px; }
.story-card__meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--berry-deep); font-size: 11px; font-weight: 900; }
.story-card__meta span + span::before { content: "·"; margin-right: 8px; color: var(--muted); }
.story-card h3 { margin-top: 8px; }
.story-card h3 a:hover { color: var(--berry-deep); }
.story-card__body > p { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.story-card__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.story-card__tags span { padding: 4px 8px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: 11px; }
.story-card--compact { display: grid; grid-template-columns: 42% 58%; min-height: 220px; }
.story-card--compact .story-card__media { height: 100%; aspect-ratio: auto; }
.story-card--compact .story-card__body { padding: 18px; }
.story-card--compact h3 { font-size: 18px; }
.story-card--compact .story-card__body > p { font-size: 13px; }

.web-feature { padding: 80px 0; background: var(--ink); color: rgba(255,255,255,.84); }
.web-feature__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.web-feature__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 32px; box-shadow: 0 28px 70px rgba(0,0,0,.24); }
.web-feature__copy .eyebrow { color: #ffb3bf; }
.web-feature__copy h2 { color: var(--white); }
.web-feature__copy > p:not(.eyebrow) { margin-top: 18px; color: rgba(255,255,255,.7); font-size: 17px; }
.check-list { margin: 26px 0; padding: 0; list-style: none; display: grid; gap: 13px; }
.check-list li { position: relative; padding-left: 28px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .63em; width: 11px; height: 11px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px rgba(242,166,90,.13); }
.check-list strong { color: var(--white); }
.web-feature .button--dark { background: var(--white); color: var(--ink); }

.content-spectrum { padding: 92px 0; }
.content-spectrum__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.content-spectrum__intro { position: sticky; top: calc(var(--header-h) + 30px); }
.content-spectrum__intro p:not(.eyebrow) { margin-top: 18px; color: var(--muted); font-size: 17px; }
.spectrum-list { border-top: 1px solid var(--line-strong); }
.spectrum-list a { display: grid; grid-template-columns: 52px 1fr auto; gap: 20px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line-strong); transition: padding-left .2s ease, color .2s ease; }
.spectrum-list a:hover { padding-left: 8px; color: var(--berry-deep); }
.spectrum-list span { color: var(--berry-deep); font-size: 12px; font-weight: 900; }
.spectrum-list strong { font-size: 21px; }
.spectrum-list small { color: var(--muted); font-size: 13px; }

.desktop-teaser { padding: 38px 0 92px; }
.desktop-teaser__grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 48px; align-items: center; padding: 40px; border-radius: var(--radius-xl); background: linear-gradient(135deg, rgba(248,238,240,.95), rgba(255,255,255,.9)); border: 1px solid var(--line); }
.desktop-teaser__grid p:not(.eyebrow) { margin: 16px 0 20px; color: var(--muted); }
.desktop-teaser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-sm); }
.closing-panel { display: flex; justify-content: space-between; gap: 38px; align-items: center; padding: 36px 40px; border-radius: 30px; background: var(--ink); color: rgba(255,255,255,.74); }
.closing-panel h2 { color: var(--white); }
.closing-panel p:not(.eyebrow) { margin-top: 10px; }
.closing-panel .eyebrow { color: #ffb6c1; }

.page-hero { padding: 54px 0 74px; overflow: hidden; background: linear-gradient(180deg, rgba(248,238,240,.78), rgba(255,249,246,0)); }
.page-hero__grid { display: grid; grid-template-columns: 1fr .86fr; gap: 70px; align-items: center; }
.page-hero__lead { margin-top: 22px; max-width: 690px; color: var(--muted); font-size: 18px; }
.page-hero__image { position: relative; }
.page-hero__image::before { content: ""; position: absolute; inset: 12% -8% -8% 18%; background: rgba(242,166,90,.14); border-radius: 50%; filter: blur(1px); }
.page-hero__image img { position: relative; z-index: 1; width: 100%; aspect-ratio: 1.18 / 1; object-fit: cover; border-radius: 34px 90px 34px 34px; box-shadow: var(--shadow-lg); }
.page-hero__image--framed img { border-radius: 28px; }
.breadcrumbs { margin-bottom: 26px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 12px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: rgba(117,106,115,.5); }
.breadcrumbs a:hover { color: var(--berry-deep); }

.guide-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.guide-card { min-height: 280px; padding: 26px; border-radius: 24px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.guide-card__number { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%; background: var(--soft); color: var(--berry-deep); font-size: 12px; font-weight: 900; }
.guide-card h3 { margin-top: 42px; }
.guide-card p { margin-top: 12px; color: var(--muted); font-size: 14px; }
.reading-lane { padding: 80px 0; background: var(--soft); }
.reading-lane__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.reading-lane__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 30px; box-shadow: var(--shadow-md); }
.reading-lane__copy > p:not(.eyebrow) { margin-top: 18px; color: var(--muted); font-size: 17px; }
.split-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.split-links a { display: grid; gap: 4px; padding: 18px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); }
.split-links a:hover { border-color: rgba(232,93,117,.28); box-shadow: var(--shadow-sm); }
.split-links strong { color: var(--ink); }
.split-links span { color: var(--muted); font-size: 12px; }
.web-qa__grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 70px; align-items: start; }
.web-qa__grid > div:first-child { position: sticky; top: calc(var(--header-h) + 26px); }
.web-qa__grid > div:first-child > p:not(.eyebrow) { margin-top: 14px; color: var(--muted); }
.web-qa__grid img { margin-top: 26px; border-radius: 24px; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item h3 { font-size: 16px; }
.faq-item button { width: 100%; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 0; border: 0; background: transparent; text-align: left; font-weight: 900; cursor: pointer; }
.faq-item button span { color: var(--berry-deep); font-size: 22px; transition: transform .2s ease; }
.faq-item button[aria-expanded="true"] span { transform: rotate(45deg); }
.faq-panel { padding: 0 40px 24px 0; color: var(--muted); }

.desktop-tip-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.desktop-tip { position: relative; overflow: hidden; padding: 28px; min-height: 250px; border: 1px solid var(--line); border-radius: 24px; background: var(--white); }
.desktop-tip > span { color: var(--berry-deep); font-size: 12px; font-weight: 900; }
.desktop-tip h3 { margin-top: 32px; }
.desktop-tip p { margin-top: 12px; color: var(--muted); }
.desktop-tip small { display: block; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink); font-size: 12px; }
.desktop-workflow { padding: 80px 0; background: var(--ink); color: rgba(255,255,255,.76); }
.desktop-workflow__grid { display: grid; grid-template-columns: 1fr .76fr; gap: 74px; align-items: center; }
.desktop-workflow h2 { color: var(--white); }
.desktop-workflow .eyebrow { color: #ffb3bf; }
.step-list { margin: 34px 0 0; padding: 0; list-style: none; display: grid; gap: 0; }
.step-list li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.12); }
.step-list li:last-child { border-bottom: 1px solid rgba(255,255,255,.12); }
.step-list > li > span { display: flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(232,93,117,.16); color: #ffb3bf; font-size: 12px; font-weight: 900; }
.step-list strong { color: var(--white); }
.step-list p { margin-top: 5px; color: rgba(255,255,255,.62); font-size: 14px; }
.desktop-workflow__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 100px 28px 28px 28px; }

.library-head { padding: 52px 0 34px; background: linear-gradient(180deg, rgba(248,238,240,.72), rgba(255,249,246,0)); }
.library-head__row { display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: end; }
.library-head__row > div:first-child > p:not(.eyebrow) { margin-top: 16px; max-width: 760px; color: var(--muted); }
.library-head__count { display: flex; flex-direction: column; align-items: flex-end; padding: 14px 18px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); }
.library-head__count strong { color: var(--berry-deep); font-size: 30px; line-height: 1; }
.library-head__count span { margin-top: 6px; color: var(--muted); font-size: 11px; }
.library-shell { padding: 28px 0 94px; }
.library-layout { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 42px; align-items: start; }
.filter-panel { position: sticky; top: calc(var(--header-h) + 22px); display: grid; gap: 26px; }
.filter-group { display: grid; gap: 5px; }
.filter-group h2 { margin-bottom: 8px; font-size: 14px; }
.filter-group a { padding: 9px 11px; border-radius: 10px; color: var(--muted); font-size: 13px; font-weight: 700; }
.filter-group a:hover, .filter-group a[aria-current="page"] { color: var(--berry-deep); background: var(--soft); }
.filter-note { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.filter-note img { aspect-ratio: 4 / 3; object-fit: cover; }
.filter-note p { padding: 13px 14px 15px; color: var(--muted); font-size: 12px; }
.results-bar { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.results-bar div { display: flex; gap: 10px; align-items: baseline; }
.results-bar span { color: var(--muted); font-size: 12px; }
.results-bar strong { color: var(--ink); font-size: 14px; }
.results-bar a { color: var(--berry-deep); font-size: 12px; font-weight: 900; }
.empty-state { padding: 70px 34px; border: 1px dashed var(--line-strong); border-radius: 24px; text-align: center; }
.empty-state p { margin: 12px auto 24px; max-width: 520px; color: var(--muted); }

.story-detail__hero { padding: 44px 0 72px; background: linear-gradient(180deg, rgba(248,238,240,.7), rgba(255,249,246,0)); }
.story-detail__hero-grid { display: grid; grid-template-columns: minmax(280px, .74fr) minmax(0,1.26fr); gap: 68px; align-items: center; }
.story-detail__cover { position: relative; }
.story-detail__cover img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow-lg); }
.story-detail__cover > span { position: absolute; left: 18px; bottom: 18px; padding: 7px 12px; border-radius: 999px; background: rgba(47,37,48,.86); color: var(--white); font-size: 12px; font-weight: 900; }
.story-detail__intro h1 { font-size: clamp(42px, 6vw, 70px); }
.story-detail__hook { margin-top: 22px; color: var(--ink); font-size: 21px; font-weight: 800; line-height: 1.55; }
.story-detail__intro > p:not(.eyebrow):not(.story-detail__hook) { margin-top: 16px; color: var(--muted); font-size: 17px; }
.story-detail__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.story-detail__tags span { padding: 6px 10px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: 12px; }
.story-detail__facts { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 28px 0 20px; }
.story-detail__facts div { padding-top: 12px; border-top: 1px solid var(--line); }
.story-detail__facts dt { color: var(--muted); font-size: 11px; }
.story-detail__facts dd { margin: 4px 0 0; color: var(--ink); font-size: 14px; font-weight: 900; }
.story-reading-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 74px; padding-top: 20px; padding-bottom: 96px; align-items: start; }
.story-reading { max-width: 760px; }
.story-reading section { padding: 34px 0; border-bottom: 1px solid var(--line); }
.story-reading h2 { font-size: 30px; }
.story-reading p { margin-top: 16px; color: #4d444c; font-size: 18px; line-height: 2; }
.story-lead { padding-top: 14px !important; }
.story-ending { border-bottom: 0 !important; padding: 34px !important; border-radius: 24px; background: var(--soft); }
.story-ending p { color: var(--text); }
.story-aside { height: 100%; }
.aside-card { padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: var(--white); box-shadow: var(--shadow-sm); }
.aside-card--sticky { position: sticky; top: calc(var(--header-h) + 24px); }
.aside-label { color: var(--berry-deep); font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.aside-card h2 { margin: 8px 0 14px; font-size: 20px; }
.aside-card a { display: block; padding: 10px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 700; }
.aside-card a:hover { color: var(--berry-deep); }
.related-stories { border-top: 1px solid var(--line); }

.not-found { min-height: 70vh; display: flex; align-items: center; padding: 70px 0; }
.not-found__grid { display: grid; grid-template-columns: 1fr .8fr; gap: 60px; align-items: center; }
.not-found__grid p:not(.eyebrow) { margin-top: 18px; max-width: 620px; color: var(--muted); font-size: 18px; }
.not-found__grid img { width: 100%; aspect-ratio: 1.15 / 1; object-fit: cover; border-radius: 30px; }

.site-footer { margin-top: 20px; padding: 68px 0 24px; background: #281f29; color: rgba(255,255,255,.66); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .75fr .75fr .95fr; gap: 44px; }
.brand-mark--footer .brand-mark__text strong { color: var(--white); }
.brand-mark--footer .brand-mark__text small { color: rgba(255,255,255,.52); }
.footer-brand > p { margin-top: 18px; max-width: 360px; font-size: 13px; }
.footer-column h2, .footer-note h2 { color: var(--white); font-size: 14px; }
.footer-column ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.footer-column a { font-size: 13px; }
.footer-column a:hover { color: #ffb3bf; }
.footer-note p { margin-top: 14px; font-size: 13px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; }
.footer-bottom a:hover { color: var(--white); }

.reveal-ready { opacity: 0; transform: translateY(16px); }
.reveal-in { opacity: 1; transform: translateY(0); transition: opacity .5s var(--ease), transform .5s var(--ease); }

@media (max-width: 1100px) {
    :root { --shell: 960px; }
    .hero-home__grid, .page-hero__grid { gap: 40px; }
    .story-grid--compact { grid-template-columns: repeat(2,1fr); }
    .guide-grid { grid-template-columns: repeat(2,1fr); }
    .footer-grid { grid-template-columns: 1.3fr .8fr .8fr; }
    .footer-note { grid-column: 1 / -1; max-width: 620px; }
}

@media (max-width: 860px) {
    :root { --header-h: 68px; }
    .shell { width: min(calc(100% - 28px), var(--shell)); }
    .site-header__inner { gap: 14px; }
    .brand-mark__text small { display: none; }
    .header-action { display: none; }
    .nav-toggle { display: inline-flex; margin-left: auto; }
    .primary-nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        display: grid;
        align-content: start;
        gap: 4px;
        max-height: calc(100vh - var(--header-h));
        padding: 18px 20px 26px;
        background: rgba(255,249,246,.985);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 20px 46px rgba(47,37,48,.12);
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform .25s var(--ease), opacity .2s ease;
    }
    .primary-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .primary-nav a { padding: 14px 12px; border-radius: 12px; font-size: 15px; }
    .hero-home { padding-top: 48px; }
    .hero-home__grid, .page-hero__grid, .web-feature__grid, .content-spectrum__grid, .reading-lane__grid,
    .desktop-workflow__grid, .story-detail__hero-grid, .not-found__grid { grid-template-columns: 1fr; }
    .hero-home__copy { order: 1; }
    .hero-home__visual { min-height: 480px; }
    .hero-home__visual > img { width: min(88%, 500px); }
    .hero-note--top { left: 1%; }
    .hero-note--bottom { right: 1%; }
    .story-ribbon__grid { grid-template-columns: 1fr; }
    .ribbon-item { min-height: 0; }
    .story-grid--feature { grid-template-columns: repeat(2,1fr); }
    .section-heading--split { grid-template-columns: 1fr; gap: 14px; }
    .content-spectrum__intro, .web-qa__grid > div:first-child { position: static; }
    .spectrum-list small { display: none; }
    .desktop-teaser__grid { grid-template-columns: 1fr; padding: 28px; }
    .web-qa__grid { grid-template-columns: 1fr; gap: 38px; }
    .library-layout { grid-template-columns: 1fr; }
    .filter-panel { position: static; grid-template-columns: repeat(2,1fr); padding: 18px; border-radius: 20px; background: var(--soft); }
    .filter-note { grid-column: 1 / -1; display: grid; grid-template-columns: 120px 1fr; align-items: center; }
    .filter-note img { height: 100%; }
    .story-grid--library { grid-template-columns: repeat(2,1fr); }
    .story-reading-layout { grid-template-columns: 1fr; gap: 24px; }
    .story-reading { max-width: none; }
    .aside-card--sticky { position: static; }
    .footer-grid { grid-template-columns: repeat(2,1fr); }
    .footer-brand { grid-column: 1 / -1; }
    .footer-note { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
    body { font-size: 15px; }
    h1 { font-size: 39px; }
    h2 { font-size: 30px; }
    .hero-home { padding: 34px 0 30px; }
    .hero-home__lead, .page-hero__lead { font-size: 16px; }
    .hero-facts { grid-template-columns: 1fr; gap: 4px; }
    .hero-facts div { display: flex; justify-content: space-between; gap: 18px; }
    .hero-home__visual { min-height: 390px; }
    .hero-home__visual > img { width: 88%; border-radius: 26px 62px 26px 26px; }
    .hero-note { min-width: 150px; padding: 11px 12px; }
    .hero-note strong { font-size: 12px; }
    .section { padding: 66px 0; }
    .story-grid--feature, .story-grid--compact, .story-grid--library { grid-template-columns: 1fr; }
    .story-card--compact { grid-template-columns: 38% 62%; }
    .story-card--compact .story-card__body > p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .web-feature, .reading-lane, .desktop-workflow { padding: 62px 0; }
    .split-links, .guide-grid, .desktop-tip-grid { grid-template-columns: 1fr; }
    .guide-card { min-height: 0; }
    .guide-card h3 { margin-top: 28px; }
    .spectrum-list a { grid-template-columns: 42px 1fr; }
    .desktop-teaser { padding-bottom: 66px; }
    .closing-panel { flex-direction: column; align-items: flex-start; padding: 28px; }
    .page-hero { padding: 34px 0 58px; }
    .page-hero__image img { border-radius: 26px 56px 26px 26px; }
    .library-head__row { grid-template-columns: 1fr; }
    .library-head__count { align-items: flex-start; width: fit-content; }
    .filter-panel { grid-template-columns: 1fr; }
    .filter-note { grid-column: auto; }
    .story-detail__hero { padding-top: 30px; }
    .story-detail__hook { font-size: 18px; }
    .story-detail__facts { grid-template-columns: 1fr; }
    .story-reading p { font-size: 16px; line-height: 1.9; }
    .story-ending { padding: 24px !important; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand, .footer-note { grid-column: auto; }
    .footer-bottom { flex-direction: column; gap: 6px; }
}

@media (max-width: 420px) {
    .shell { width: min(calc(100% - 22px), var(--shell)); }
    .brand-mark__logo { width: 40px; height: 40px; }
    .brand-mark__text strong { font-size: 16px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .button { width: 100%; }
    .story-card--compact { grid-template-columns: 1fr; }
    .story-card--compact .story-card__media { aspect-ratio: 4 / 3; }
    .filter-note { grid-template-columns: 1fr; }
    .library-head__count { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
    .reveal-ready { opacity: 1; transform: none; }
}

@media print {
    .site-header, .site-footer, .hero-actions, .filter-panel, .story-aside { display: none !important; }
    body { background: #fff; color: #000; }
    .shell { width: 100%; }
    main { padding: 0; }
    .story-reading { max-width: none; }
    .story-reading p { color: #222; }
}
