/* Homepage-only background treatment. No authored copy or navigation altered. */
@layer systemReading{
html:root:has(body.fmc-separators-home){--canvas:#111613;--primary:#f8f5ee;--secondary:#e6e1d8;--action:#f8f5ee}
html:root:has(body.fmc-separators-home) .edition-symbol img{filter:none!important;content:url('https://1850540354.cdn.123clouddisk.com/1850540354/60715222')!important;background:transparent!important}
html:root:has(body.fmc-separators-home) main.discovery-home .quote-block{background:transparent!important;box-shadow:none!important}
html:root:has(body.fmc-separators-home) footer.fmc-appearance-footer .fmc-theme-fieldset{display:none!important}
html:root:has(body.fmc-separators-home) footer.fmc-appearance-footer{grid-template-columns:1fr auto!important}
html:root:has(body.fmc-separators-home) header.edition-header{background:#111613!important}
html:root:has(body.fmc-separators-home) main.discovery-home .quote-block :is(p,strong),html:root:has(body.fmc-separators-home) main.discovery-home .home-links a{color:#f8f5ee!important}
html:root:has(body.fmc-separators-home) header.edition-header :is(a,span){color:#f8f5ee!important}
}
body.fmc-separators-home{background:#111613!important;color:#f8f5ee!important}
.fmc-memory-wall{position:fixed;inset:0;z-index:0;overflow:hidden;pointer-events:none;background:#121713}
.fmc-memory-wall-track{position:absolute;top:0;left:-1.5%;right:-1.5%;display:flex;flex-direction:column;animation:fmc-wall-loop var(--fmc-loop-duration,240s) linear infinite;will-change:transform}
.fmc-memory-wall-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));grid-auto-rows:8px;gap:4px;grid-auto-flow:dense;width:100%;flex:none;align-content:start}
@keyframes fmc-wall-loop{from{transform:translateY(0)}to{transform:translateY(-50%)}}
.fmc-memory-wall-grid img{display:block;width:100%;height:100%;min-width:0;min-height:0;object-fit:cover;background:#222;grid-column:span 2}
.fmc-memory-wall-grid img.fmc-wall-wide{grid-column:span 4}
/* Stable first paint before the deferred layout script computes exact spans. */
.fmc-memory-wall-grid img.fmc-wall-wide{grid-row:span 25}
.fmc-memory-wall-grid img.fmc-wall-regular{grid-row:span 20}
.fmc-memory-wall-grid img.fmc-wall-portrait{grid-row:span 42}
.fmc-memory-wall-grid img.fmc-wall-portrait{object-fit:contain;background:#111613}
.fmc-memory-wall-grid img.fmc-wall-full{object-fit:contain;background:#111613}
/* Let the measured end span replace the fallback start span. */
.fmc-memory-wall-grid img:is(.fmc-wall-wide,.fmc-wall-regular,.fmc-wall-portrait){grid-row-start:auto}
.fmc-memory-wall-grid img.fmc-wall-wide{grid-row-end:span 25}
.fmc-memory-wall-grid img.fmc-wall-regular{grid-row-end:span 20}
.fmc-memory-wall-grid img.fmc-wall-portrait{grid-row-end:span 42}
.fmc-memory-wall:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(9,14,13,.79),rgba(9,14,13,.55) 52%,rgba(9,14,13,.79)),linear-gradient(0deg,rgba(9,14,13,.88),transparent 30%,transparent 69%,rgba(9,14,13,.72))}
body.fmc-separators-home>.site-header,body.fmc-separators-home>.discovery-main,body.fmc-separators-home>.fmc-site-end{position:relative;z-index:1;background:transparent!important;box-shadow:none!important}
body.fmc-separators-home .quote-block,body.fmc-separators-home .quote-block p,body.fmc-separators-home .quote-block strong,body.fmc-separators-home .fmc-latest-issue,body.fmc-separators-home .edition-header a,body.fmc-separators-home .fmc-site-end,body.fmc-separators-home .fmc-site-end a{color:#f8f5ee!important}
body.fmc-separators-home .quote-block{text-shadow:0 2px 15px rgba(0,0,0,.32)}
body.fmc-separators-home .fmc-site-end a:focus-visible,body.fmc-separators-home .site-header a:focus-visible,body.fmc-separators-home .fmc-latest-issue:focus-visible{outline:2px solid #fff;outline-offset:4px}
@media(max-width:700px){.fmc-memory-wall-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.fmc-memory-wall:after{background:linear-gradient(90deg,rgba(9,14,13,.75),rgba(9,14,13,.68)),linear-gradient(0deg,rgba(9,14,13,.9),transparent 42%,rgba(9,14,13,.55))}}
@media(prefers-reduced-motion:reduce){.fmc-memory-wall-track{animation:none!important;will-change:auto}}


/* 2026-12-02 · 性能：饱和滤镜从「每张图」挪到「整块墙」。
   原来 66 张图各带 filter:saturate(.84)，而整块墙在跑 573s 的持续位移动画，
   每帧要对几十张图分别重算滤镜，4K 屏上直接卡顿。
   整块墙是不动的 fixed 容器，把滤镜放到它身上只需每帧过一次。视觉不变。 */
.fmc-memory-wall{filter:saturate(.84)}
