/* 前台使用清晰的系统中英文字体，缩小字距；后台主题保持独立。 */
body.storefront{--paper:#fff;--surface:#fff;--ink:#202020;--muted:#666;--line:#e8e8e8;--accent:#202020;--accent-hover:#333;--accent-soft:#f4f4f4;--site-header-height:72px;--storefront-font:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",Arial,sans-serif;--bs-body-font-family:var(--storefront-font);--bs-body-bg:#fff;--bs-body-color:#202020;--bs-primary-rgb:32,32,32;background:#fff;color:var(--ink);font-family:var(--storefront-font);font-size:15px;font-weight:400;line-height:1.65;letter-spacing:0;-webkit-font-smoothing:antialiased}
.storefront .site-header{position:relative;top:auto;z-index:40;display:grid;grid-template-columns:1fr 160px 1fr;gap:0;min-height:72px;padding:14px 40px;border:0;background:#fff}
.header-left,.storefront .site-header-actions{display:flex;align-items:center;gap:4px}
.storefront .brand{justify-self:center;justify-content:center;width:160px;height:44px}
.storefront .brand-name{padding:0;font-family:var(--storefront-font);font-size:32px;font-weight:500;line-height:44px;letter-spacing:2px}
.storefront .site-header-actions{justify-self:end;gap:16px}
.storefront .language-toggle{min-width:44px;min-height:44px;padding:8px 0;border:0;background:transparent;color:inherit;font-size:12px}
.currency-control select{width:90px;min-height:44px;padding:8px 5px;border:0;background:transparent;color:inherit;font-size:12px}
.header-search,.storefront .sidebar-toggle{display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:10px;border:0;border-radius:0;background:transparent;color:inherit}
.header-search svg{width:22px;height:22px}
.storefront .sidebar-toggle{display:none}
.storefront .sidebar-toggle-label{display:none}
.storefront .sidebar-toggle svg{transform:none!important;transition:none}
.search-drawer{position:absolute;top:100%;left:0;right:0;z-index:45;display:flex;justify-content:center;gap:16px;padding:24px 50px;background:#fff;box-shadow:0 6px 10px #0000000d}
.storefront .search-field{flex:0 1 740px;height:52px;padding:0 16px;border:1px solid #bbb;border-radius:0;background:#fff}
.search-close{width:44px;height:52px;padding:0;border:0;background:transparent;font-size:28px;line-height:1}
.storefront .catalog-layout{display:flex;flex-direction:column;min-height:calc(100dvh - 72px);transition:none}
.storefront .catalog-sidebar{position:relative;top:auto;z-index:30;display:grid;grid-template-rows:1fr;flex-shrink:0;width:100%;height:auto;padding:0 40px;border:0;border-bottom:1px solid #eee;background:#fff;transition:grid-template-rows .24s ease,opacity .18s ease,visibility 0s}
.storefront .sidebar-inner{min-width:0}
.storefront .sidebar-content{display:block;min-height:0;margin:0}
.storefront .category-nav{display:flex;flex-direction:row;justify-content:safe center;gap:32px;margin:0;padding:0;overflow:auto;scrollbar-width:none}
.storefront .category-nav::-webkit-scrollbar{display:none}
.storefront .category-button{flex:0 0 auto;justify-content:center;width:auto;min-height:48px;padding:12px 0;border:0;border-radius:0;background:transparent;color:#202020;font-size:14px;font-weight:500;line-height:23px;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}
.storefront .category-button:hover,.storefront .category-button.is-active{background:transparent;color:#121212}
.storefront .category-button.is-active>span:first-child{border-bottom:1px solid #aaa}
.storefront .category-number,.mobile-menu-heading,.menu-backdrop{display:none}
.storefront .is-sidebar-collapsed .catalog-sidebar{grid-template-rows:0fr;padding-top:0;padding-bottom:0;border:0;opacity:0;visibility:hidden}
.storefront .catalog-main{display:flex;flex-direction:column;width:100%;padding:0;overflow:clip;scroll-margin-top:20px}
.storefront .catalog-heading{display:flex;flex:none;align-items:center;justify-content:flex-end;min-height:60px;margin:0;padding:16px 40px 10px;scroll-margin-top:20px}
.storefront .catalog-results{display:flex;gap:18px;min-height:34px}
.storefront .result-count{margin:0;color:#666;font-size:14px;line-height:25.2px;white-space:nowrap}
.storefront .view-switch{gap:2px;border:0;border-radius:0}
.storefront .view-button{width:30px;height:30px;min-height:30px;padding:6px;border:0;border-radius:0;background:transparent;color:#777}
.storefront .view-button.is-active{background:#f7f7f7;color:#121212}
.storefront .catalog-toolbar{display:flex;align-items:center;min-height:76px;margin:0;padding:0 10px 24px;border:0}
.storefront .catalog-filters{display:flex;align-items:center;flex:1;gap:20px;min-width:0}
.storefront .filter-field{flex:0 0 auto}
.storefront .sort-field{display:flex;align-items:center;gap:12px;margin-left:auto}
.sort-label{flex-shrink:0;white-space:nowrap}
.storefront .filter-toggle{display:none}
.storefront .active-filters{margin:0;padding:0 10px 24px}
.storefront .filter-chip{min-height:36px;padding:6px 10px;border-radius:20px;background:#f5f5f5}
.storefront .product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:55px 5px;margin:0 5px;padding:0}
.storefront .product-grid.is-list{grid-template-columns:1fr}
.storefront .catalog-message{margin:20px 10px;padding:35px 20px;border:0;background:#fafafa}
.storefront-config-notice{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 10px 24px;padding:12px 16px;background:#f6f6f6;color:#555;font-size:13px}
.configuration-retry{flex-shrink:0;min-height:44px;padding:8px 12px;border:1px solid #ddd;background:#fff;color:#222;font:inherit}
.storefront .catalog-pagination{order:0;margin:50px 0 70px}
.storefront .catalog-pagination p{font-size:13px}
.storefront .catalog-pagination .btn{border:1px solid #111;border-radius:0;background:#fff;font-size:14px}
.storefront .catalog-footer{display:grid;grid-template-columns:1fr 1fr 1.25fr;align-items:start;gap:60px;margin-top:64px;padding:70px 50px 0;border-top:1px solid #eee;color:#666;font-size:14px;line-height:1.8}
.footer-column h2{margin:0 0 24px;color:#121212;font-size:16px;font-weight:500;line-height:1.3;letter-spacing:.6px}
.footer-column nav,.footer-column #footer-contact-links{display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.footer-category-link,.footer-search,.footer-channel{display:inline-block;min-height:32px;padding:0;border:0;background:none;color:inherit;font-size:14px;text-align:left;text-decoration:none}
.footer-category-link:hover,.footer-search:hover,.footer-channel:hover{text-decoration:underline;text-underline-offset:4px}
.footer-contact-text{display:flex;flex-direction:column;gap:4px;max-width:100%;min-width:0;font-size:14px;user-select:text}
.footer-contact-text .contact-value{max-width:100%;overflow-wrap:anywhere;white-space:pre-wrap}
.footer-column p{margin:0 0 20px}
#footer-contact-note{margin-top:18px;font-size:12px}
.footer-bottom{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:20px;min-height:120px;margin-top:40px;border-top:1px solid #eee;font-size:12px}
.footer-wordmark{font-family:inherit;font-size:12px;letter-spacing:inherit}
.storefront .back-to-top{gap:10px;min-height:44px;color:inherit;font-size:12px;text-decoration:none}
@media(max-width:989px){
 .storefront{--site-header-height:56px}
 .storefront .site-header{grid-template-columns:1fr 100px 1fr;min-height:56px;height:56px;padding:6px 15px}
 .storefront .brand{width:100px;height:34px}
 .storefront .brand-name{font-size:23px;line-height:34px;letter-spacing:1.2px}
 .storefront .sidebar-toggle{display:grid}
 .header-left{gap:0}
 .storefront .site-header-actions{gap:0}
 .storefront .language-toggle{min-width:32px;font-size:10px}
 .currency-control select{width:73px;padding:5px 0;font-size:10px}
 .storefront .header-left>.header-search{width:36px;padding:6px}
 .search-drawer{padding:16px 15px;gap:8px}
 .storefront .search-field{height:46px}
 .search-close{height:46px}
 .storefront .catalog-layout{min-height:calc(100dvh - 56px)}
 .storefront .catalog-sidebar{position:fixed;inset:0 auto 0 0;z-index:65;display:block;width:min(350px,90vw);height:100dvh;padding:20px;border:0;overflow:auto;transform:translateX(0);opacity:1;visibility:visible;transition:transform .24s ease,opacity .18s ease,visibility 0s}
 .storefront .sidebar-inner,.storefront .sidebar-content{display:block;min-height:0;overflow:visible}
 .mobile-menu-heading{display:flex;align-items:center;justify-content:space-between;min-height:44px;margin-bottom:22px;font-size:18px;font-weight:500}
 .mobile-menu-heading button{width:44px;height:44px;border:0;background:none;font-size:30px}
 .storefront .category-nav{flex-direction:column;align-items:stretch;gap:0;overflow:visible}
 .storefront .category-button{justify-content:flex-start;min-height:52px;padding:12px 0;border-bottom:1px solid #eee;font-size:14px;letter-spacing:1px}
 .storefront .category-button.is-active>span:first-child{border:0}
 .storefront .is-sidebar-collapsed .catalog-sidebar{padding:20px;transform:translateX(-100%);visibility:hidden;opacity:0;pointer-events:none}
 .menu-backdrop{position:fixed;inset:0;z-index:60;display:block;width:100vw;height:100dvh;padding:0;border:0;background:#0006}
 .is-sidebar-collapsed .menu-backdrop{display:none}
 .storefront-menu-open{overflow:hidden}
 .storefront .catalog-heading{padding-left:16px;padding-right:16px}
 .storefront .catalog-toolbar{min-height:95px;align-items:flex-start;padding-top:15px;padding-bottom:30px}
 .storefront .filter-toggle{display:flex;align-items:center;gap:8px;min-height:40px;padding:4px 0;border:0;border-radius:0;background:transparent;color:#121212;font-size:15px}
 .storefront .catalog-filters{display:none;flex:1;flex-wrap:wrap;justify-content:flex-start;gap:12px}
 .storefront .catalog-filters.is-open{display:flex;order:2;flex-basis:100%;min-height:60px;padding:18px 0 0}
 .storefront .sort-field{position:absolute;top:15px;right:5px;display:flex;margin-left:auto}
 .storefront .catalog-toolbar{position:relative}
 .storefront .catalog-toolbar{flex-wrap:wrap}
 .storefront .view-button{width:28px}
 .storefront .catalog-results{gap:12px}
 .storefront .catalog-footer{gap:40px 30px;margin-top:48px;padding:45px 20px 0}
}
@media(max-width:767px){
 .storefront .catalog-heading{justify-content:flex-start;min-height:60px;padding-top:16px;padding-bottom:10px}
 .storefront .catalog-results{width:100%;flex-direction:row;justify-content:space-between;align-items:center}
 .storefront .catalog-toolbar{min-height:80px;padding-top:8px;padding-bottom:30px}
 .storefront .sort-field{top:8px}
 .storefront .sort-field{gap:8px}
 .storefront .catalog-footer{grid-template-columns:1fr;gap:32px}
 .footer-column h2{margin-bottom:18px;font-size:15px}
 .footer-bottom{min-height:100px;margin-top:5px;font-size:11px}
}
@media(max-width:749px){.storefront .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 5px}}
@media(max-width:370px){
 .storefront .site-header{grid-template-columns:1fr 74px 1fr;padding-right:8px;padding-left:8px}
 .storefront .brand{width:74px}
 .storefront .brand-name{font-size:22px}
 .storefront .header-left>.header-search{width:32px;padding:6px}
 .currency-control select{width:65px;font-size:9px}
 .storefront .language-toggle{min-width:28px}
}
