/* 多材质目录：沿用原站品牌色，不用示意图充当产品照片。 */
.leaf-material-nav{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px 26px;padding:13px 24px;background:#f4eee6;border-bottom:1px solid var(--line);font-size:12px;color:var(--cocoa)}
.leaf-material-nav>span{font-size:10px;font-weight:700;letter-spacing:.12em}
.leaf-material-nav a{padding:7px 0;text-decoration:none}.leaf-material-nav a:hover,.leaf-material-nav a[aria-current]{text-decoration:underline;text-underline-offset:4px}
.leaf-materials{background:#f4eee6}.leaf-material-intro{max-width:680px;font-size:15px;line-height:1.8;margin:0 0 28px}
.leaf-material-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.leaf-material-card{display:flex;flex-direction:column;align-items:flex-start;background:#fffdf9;border:1px solid #ded1c1;padding:27px 22px;scroll-margin-top:160px}
.leaf-material-card .eyebrow{color:#655449;font-weight:600;font-size:10px;line-height:1.6;letter-spacing:.1em;margin:0 0 18px}
.leaf-material-card h3{font:400 27px/1.2 Georgia,serif;margin:0 0 16px;color:#3a2922}
.leaf-material-card>p:not(.eyebrow){font-size:13px;line-height:1.75;margin:0 0 24px}
.leaf-material-card>a{margin-top:auto;font-size:12px;line-height:1.6}
.leaf-material-more{margin:24px 0 0;font-size:13px;line-height:1.8}
.leaf-sidebar .leaf-category-group{grid-column:1/-1;font-size:10px;font-weight:700;letter-spacing:.12em;margin:18px 0 5px;color:#655449}
.leaf-material-empty{padding:32px 0;max-width:580px}.leaf-material-empty h2{font:400 30px/1.2 Georgia,serif}.leaf-material-empty p{line-height:1.8;margin:20px 0}
.footer-top{grid-template-columns:1.4fr repeat(4,1fr)}
@media(max-width:1100px){.leaf-material-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.footer-top{grid-template-columns:repeat(3,minmax(0,1fr))}.footer-top>div:first-child{grid-column:1/-1}}
@media(max-width:699px){.leaf-material-nav{justify-content:flex-start;gap:6px 20px;padding:12px 22px}.leaf-material-nav>span{flex-basis:100%}.leaf-material-card{padding:23px 20px}.leaf-material-card h3{font-size:25px}.leaf-material-grid{grid-template-columns:1fr}.footer-top{grid-template-columns:repeat(2,minmax(0,1fr))}.leaf-material-intro{font-size:14px}}

.leaf-hero-edit {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 3px;
    background: #f3e8dc;
}
.leaf-hero-edit a { display: block; min-width: 0; overflow: hidden; }
.leaf-hero-edit a:first-child { grid-row: span 2; }
.leaf-hero-edit img { display: block; width: 100%; height: 100%; object-fit: cover; }
.leaf-hero-edit a:focus-visible { outline: 3px solid white; outline-offset: -5px; }

.leaf-theme-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 12px 0 20px; }
.leaf-theme-links a { text-decoration: underline; text-underline-offset: 4px; }
