/* 9.6：品牌页面共用商城宽度；缺少 LOGO 时保留可点击的品牌名称。 */
.yunge-brand-picker {padding-top:32px;padding-bottom:48px;min-height:50vh}
.yunge-brand-picker h1 {font-size:30px;margin-bottom:12px}
.yunge-brand-picker h2,.yunge-brand-carousel h2 {font-size:24px;margin-bottom:20px}
/* 所有品牌作为首张卡片排版，不再预留独立一行的间距。 */
.yunge-brand-all {font-weight:700}
.yunge-brand-grid {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:20px}
.yunge-brand-tile {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:20px;border:1px solid #e6e2dc;border-radius:6px;background:#fff;text-align:center;min-width:0;color:#242424}
.yunge-brand-tile:hover,.yunge-brand-tile:focus-visible {border-color:#9a7547;box-shadow:0 3px 12px #0001}
.yunge-brand-tile img {width:100%;height:100px;object-fit:contain}
.yunge-brand-tile span {overflow-wrap:anywhere;font-size:14px}
.yunge-brand-carousel {padding-top:32px;padding-bottom:32px}
.yunge-brand-track {display:flex;gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
.yunge-brand-track .yunge-brand-tile {flex:0 0 calc((100% - 80px)/5);scroll-snap-align:start}
.yunge-carousel-arrows {display:flex;justify-content:flex-end;gap:12px;margin-top:16px}
.yunge-carousel-arrows button {border:1px solid #ddd;background:#fff;color:#333;min-width:44px;min-height:40px}
.yunge-mobile-sort,.yunge-banner-dots {display:none}
.yunge-load-status {display:flex;justify-content:center;align-items:center;flex-direction:column;gap:12px;padding:28px}
.yunge-load-status button {background:#222;color:#fff;border:0;padding:12px 24px;border-radius:4px}
.yunge-load-status [hidden],.woocommerce-pagination[hidden],.yunge-footer-group[hidden] {display:none!important}
/* 同一全局页脚在首页和商品页使用一致样式；折叠按钮桌面呈现为普通栏目标题。 */
.yunge-footer-toggle {font:inherit;color:inherit;text-align:left;border:0;padding:0;background:transparent;width:100%;opacity:1}
.yunge-footer-toggle:disabled {cursor:default;color:inherit;background:transparent;opacity:1}
.weapp-registration-terms {font-size:12px;line-height:1.7;margin:16px 0;color:#666}
.weapp-registration-terms a {text-decoration:underline}
@media (max-width:1024px) {
 .yunge-brand-grid {grid-template-columns:repeat(3,minmax(0,1fr))}
 .yunge-brand-track .yunge-brand-tile {flex-basis:calc((100% - 40px)/3)}
}
@media (max-width:767px) {
 /* 非首页只隐藏内容页脚，底部导航和 wp_footer 业务脚本继续保留。 */
 body:not(.home) .yunge-content-footer {display:none!important}
 .yunge-footer-toggle {display:flex;justify-content:space-between;align-items:center;min-height:44px;cursor:pointer}
 .yunge-footer-toggle:after {content:'+';font-size:22px}
 .yunge-footer-toggle[aria-expanded=true]:after {content:'−'}
 .yunge-footer-group {padding-bottom:16px}
 .yunge-brand-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .yunge-brand-tile {padding:14px}
 .yunge-brand-tile img {height:75px}
 .yunge-brand-track {gap:12px}
 .yunge-brand-track .yunge-brand-tile {flex-basis:calc((100% - 12px)/2)}
 body.tax-product_cat .yunge-shop-content ul.products,body.post-type-archive-product .yunge-shop-content ul.products {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
 body.tax-product_cat .yunge-product-card,body.post-type-archive-product .yunge-product-card {grid-template-rows:auto 1fr!important}
 body.tax-product_cat .yunge-product-card__image,body.post-type-archive-product .yunge-product-card__image {height:auto!important;min-height:0!important;aspect-ratio:1;max-height:none}
 .yunge-shop-content ul.products:before,.yunge-shop-content ul.products:after {display:none!important}
 .yunge-shop-content ul.products>li.product {width:auto!important;min-width:0;margin:0!important;float:none!important}
 .yunge-shop-content .yunge-product-card__body {padding:10px}
 .yunge-shop-content .yunge-product-card h3 {font-size:14px;overflow-wrap:anywhere}
 .yunge-shop-content .yunge-product-card__bottom {flex-wrap:wrap}
 .yunge-shop-toolbar {display:flex!important;flex-wrap:wrap!important;gap:10px!important}
 .yunge-shop-toolbar .woocommerce-ordering {display:none!important}
 .yunge-mobile-sort {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;border:1px solid #ddd;border-radius:4px}
 .yunge-mobile-sort a,.yunge-mobile-sort button {display:block;text-align:center;min-height:44px;padding:10px 4px;background:white;color:#333;border:0;font-size:14px;font-weight:500}
 .yunge-mobile-sort [aria-current=true] {color:#9a7547;font-weight:700}
 .yunge-mobile-sort>:not(:first-child) {border-left:1px solid #ddd}
 .yunge-shop-layout>.yunge-filter-open,.elementor-widget-yunge-archive-filters .yunge-filter-open {display:none!important}
 /* 不改图片及链接，只将现有三张手机 Banner 变成单屏滑动。 */
 .yunge-hero-banners__grid,.yunge-hero-banners__grid.e-con {display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;gap:0!important;grid-template-rows:none!important;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:0!important}
 .yunge-hero-banners__grid .yunge-hero-visual {display:none!important}
 .yunge-hero-banners__grid>.yunge-hero-card {flex:0 0 100%!important;width:100%!important;min-width:100%;min-height:415px;scroll-snap-align:start}
 .yunge-banner-dots {display:flex;justify-content:center;gap:10px;padding:12px}
 .yunge-banner-dots button {width:10px;height:10px;min-height:10px;border:0;border-radius:50%;background:#d0c6bb;padding:0}
 .yunge-banner-dots button[aria-pressed=true] {background:#84613c}
 .yunge-mobile-nav {padding-bottom:env(safe-area-inset-bottom)!important;box-shadow:0 -2px 12px #0000000d;background:#fff!important}
 .yunge-mobile-nav .is-active,.yunge-mobile-nav .is-active a {color:#9a7547!important}
 .yunge-mobile-nav .is-active img {filter:sepia(.6)}
 .yunge-mobile-nav a:focus-visible,.yunge-brand-tile:focus-visible {outline:2px solid #9a7547;outline-offset:2px}
}
