/* 首页系列区对齐最新设计；只作用于本区，实体、媒体及后台字段保持原来源。 */
.yumin-home-products { position:relative; isolation:isolate; overflow:hidden; padding:108px 0; color:#fff; background:#00928e; font-family:YuminHomeHero,Inter,Arial,sans-serif; }
.yumin-home-products__art { display:none; }
.yumin-home-products .yumin-home-content-rail { width:min(1184px,calc(100% - 56px)); margin-inline:auto; }
.yumin-home-products .yumin-home-section-heading { margin-bottom:clamp(28px,3.4vw,42px); }
.yumin-home-products .yumin-home-section-heading h2 { margin:0; color:#fff; font-size:clamp(30.4px,3vw,43.2px); font-weight:700; line-height:1.12; letter-spacing:-.02em; }
.yumin-home-products .yumin-home-section-heading p { max-width:452px; margin:14px 0 0; color:rgba(255,255,255,.85); font-size:15.52px; line-height:1.72; }
/* 箭头浮在外缘，不再从轮播内容中扣除两侧64px。滚动框保留阴影与上浮空间。 */
.yumin-home-products__carousel { --range-columns:3; --range-gap:24px; position:relative; }
.yumin-home-products__carousel .yumin-home-products__grid { display:flex; align-items:stretch; gap:24px; overflow-x:auto; overflow-y:hidden; max-width:none; margin:-10px -4px -14px; padding:10px 4px 34px; scroll-padding-inline:4px; scroll-snap-type:x mandatory; scrollbar-width:none; overscroll-behavior-x:contain; touch-action:pan-x pan-y; }
.yumin-home-products__grid::-webkit-scrollbar { display:none; }
.yumin-home-products__carousel.is-gliding .yumin-home-products__grid { scroll-snap-type:none; }
.yumin-home-products .yumin-entity-card { position:relative; display:flex; flex-direction:column; flex:0 0 calc((100% - (var(--range-columns) - 1)*24px)/var(--range-columns)); min-width:0; overflow:hidden; border:0; border-radius:12px; background:#fff; color:#0c2c2f; scroll-snap-align:start; box-shadow:0 10px 26px rgba(0,48,45,.18); transition:transform .42s cubic-bezier(.22,.61,.36,1),box-shadow .42s cubic-bezier(.22,.61,.36,1); }
.yumin-home-products__media { position:relative; flex:none; aspect-ratio:4/3; overflow:hidden; background:#f1f8f7; }
.yumin-home-products .yumin-home-products__media img { display:block; width:100%; height:100%; object-fit:cover; transition:transform 1.2s cubic-bezier(.16,1,.3,1); }
.yumin-home-products .yumin-entity-card__body { display:flex; flex:1; flex-direction:column; align-items: stretch; gap:9px; padding:20px 22px 24px; text-align: left; }
.yumin-home-products .yumin-entity-card h3 { width: 100%; margin:0; color:#0c2c2f; font-size:17px; font-weight:700; line-height:1.25; letter-spacing:-.02em; overflow-wrap: anywhere; }
.yumin-home-products .yumin-entity-card p { flex: 1 1 auto; width: 100%; margin:0; color:#5b7377; font-size:13.5px; line-height:1.6; }
.yumin-home-products .yumin-entity-card .yumin-button { align-self: stretch; justify-self: stretch; position:static; display:flex; align-items:center; justify-content:center; width:100%; box-sizing:border-box; min-height:46px; gap:9px; margin:16px 0 0; padding:11px 18px; border:1px solid #dce9e8; border-radius:999px; color:#285156; background:transparent; font-size:13.5px; font-weight:650; line-height:1.65; text-decoration:none; box-shadow:none; transform:none; transition:border-color .42s cubic-bezier(.22,.61,.36,1),color .42s cubic-bezier(.22,.61,.36,1); }
/* 整卡沿用现有链接，原生支持新标签页；编辑画布不铺设点击层，保留可视化编辑。 */
body:not(.wp-admin):not(.editor-styles-wrapper) .yumin-home-products .yumin-button::after { position:absolute; inset:0; z-index:1; border-radius:12px; content:""; }
.yumin-home-products .yumin-home-products__arrow { width:20px; height:10px; flex:none; transition:transform .42s cubic-bezier(.22,.61,.36,1); }
.yumin-home-products .yumin-entity-card:focus-within { box-shadow:0 22px 48px rgba(0,48,45,.3); }
.yumin-home-products .yumin-button:focus-visible { outline:3px solid #0a3e42; outline-offset:3px; }
.yumin-home-products__controls { position:absolute; inset:0; z-index:4; pointer-events:none; }
.yumin-home-products__controls button { position:absolute; top:42%; display:grid; place-items:center; width:60px; height:60px; padding:0; border:0; border-radius:50%; background:#fff; color:#007e7a; box-shadow:0 12px 30px rgba(0,48,45,.3); transform:translateY(-50%); pointer-events:auto; cursor:pointer; transition:background .42s cubic-bezier(.22,.61,.36,1),color .42s cubic-bezier(.22,.61,.36,1),transform .42s cubic-bezier(.22,.61,.36,1); }
.yumin-home-products__controls [data-range-prev] { left:-72px; }
.yumin-home-products__controls [data-range-next] { right:-72px; }
.yumin-home-products__controls svg { width:25px; height:25px; fill:none; stroke:currentColor; stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round; }
.yumin-home-products__controls button:focus-visible,.yumin-home-products__dots button:focus-visible { outline:3px solid #fff; outline-offset:4px; }
.yumin-home-products__controls[hidden],.yumin-home-products__dots[hidden] { display:none; }
.yumin-home-products__dots { display:flex; justify-content:center; gap:8px; margin-top:26px; }
.yumin-home-products__dots button { flex:none; width:8px; height:8px; padding:0; border:0; border-radius:999px; background:rgba(255,255,255,.42); cursor:pointer; transition:width .42s cubic-bezier(.22,.61,.36,1),background .42s cubic-bezier(.22,.61,.36,1); }
.yumin-home-products__dots button[aria-current="true"] { width:26px; background:#fff; }
.yumin-home-products__illustration { position:absolute; right:10px; bottom:10px; padding:3px 8px; border-radius:12px; background:rgba(255,255,255,.94); color:#285156; font:11px/1.5 Arial,sans-serif; }
@media(hover:hover) and (prefers-reduced-motion:no-preference) {
 .yumin-home-products .yumin-entity-card:hover { transform:translateY(-8px); box-shadow:0 22px 48px rgba(0,48,45,.3); }
 .yumin-home-products .yumin-entity-card:hover .yumin-home-products__media img { transform:scale(1.08); }
 .yumin-home-products .yumin-entity-card:hover .yumin-home-products__arrow { transform:translateX(5px); }
 .yumin-home-products .yumin-entity-card:hover .yumin-button { border-color:#00928e; color:#007e7a; }
 .yumin-home-products__controls button:hover:not(:disabled) { background:#007e7a; color:#fff; transform:translateY(-50%) scale(1.08); }
 .yumin-home-products__controls button:active:not(:disabled) { transform:translateY(-50%) scale(.98); }
}
@media(max-width:1360px) { .yumin-home-products__controls [data-range-prev] { left:-34px; } .yumin-home-products__controls [data-range-next] { right:-34px; } }
@media(max-width:1100px) { .yumin-home-products__controls [data-range-prev] { left:-8px; } .yumin-home-products__controls [data-range-next] { right:-8px; } }
@media(max-width:1080px) { .yumin-home-products__carousel { --range-columns:2; } }
@media(max-width:640px) { .yumin-home-products { padding:64px 0; } .yumin-home-products .yumin-home-content-rail { width:calc(100% - 40px); } .yumin-home-products__carousel { --range-columns:1; } .yumin-home-products__controls button { width:46px; height:46px; } .yumin-home-products__controls svg { width:20px; height:20px; } .yumin-home-products__controls [data-range-prev] { left:8px; } .yumin-home-products__controls [data-range-next] { right:8px; } }
@media(prefers-reduced-motion:reduce) { .yumin-home-products .yumin-entity-card,.yumin-home-products .yumin-home-products__media img,.yumin-home-products .yumin-button,.yumin-home-products .yumin-home-products__arrow,.yumin-home-products__controls button,.yumin-home-products__dots button { transition:none; transform:none; } .yumin-home-products__controls button { transform:translateY(-50%); } }
