/* Shared storefront mobile layout. Desktop rules deliberately excluded. */
.ms-tabs,.ms-menu-button,.ms-filter-button{display:none}
@media(max-width:768px){
 body.ms-mobile{padding-bottom:calc(70px + env(safe-area-inset-bottom))!important;min-width:0}
 body.ms-mobile .container{width:100%;max-width:100%;padding-left:12px;padding-right:12px;box-sizing:border-box}
 body.ms-mobile input:not([type=checkbox]):not([type=radio]),body.ms-mobile select,body.ms-mobile textarea{font-size:16px}
 body.ms-mobile .top-bar,body.ms-mobile .search-tabs,body.ms-mobile .hot-search,body.ms-mobile .header-cart,body.ms-mobile>.main-nav,body.ms-mobile .mobile-tabbar,body.ms-mobile .site-quick-tools{display:none!important}
 body.ms-mobile .header{padding:8px 0;height:auto;position:relative}
 body.ms-mobile .header-content{display:flex!important;flex-direction:row!important;align-items:center;flex-wrap:nowrap!important;gap:8px;padding-top:0;padding-bottom:0;min-height:44px}
 body.ms-mobile .header .logo{display:none!important}
 body.ms-mobile .search-box{flex:1;width:auto;min-width:0;margin:0;max-width:none}
 body.ms-mobile .search-input-wrap{height:44px;width:100%;border-radius:8px;overflow:hidden}
 body.ms-mobile .search-input{min-width:0;width:0;flex:1;padding:0 10px;height:42px}
 body.ms-mobile .search-btn{width:60px;min-width:60px;flex:0 0 60px;height:44px;padding:0!important;white-space:nowrap;line-height:normal}
 .ms-menu-button,.ms-filter-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 12px;border:1px solid #cbdcf0;background:#fff;border-radius:7px;color:#1565c0;white-space:nowrap;font:14px Arial,sans-serif}
 .ms-tabs{position:fixed;display:flex;bottom:0;left:0;right:0;z-index:500;background:#fff;border-top:1px solid #dbe6f2;padding:5px 4px calc(5px + env(safe-area-inset-bottom));box-sizing:border-box}
 .ms-tabs a{position:relative;flex:1;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;min-height:48px;font-size:11px;color:#61758d;text-decoration:none}
 .ms-tabs a[aria-current=page]{color:#1565c0;font-weight:700}.ms-tabs svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
 .ms-badge{position:absolute;top:0;left:56%;background:#ed652e;color:white;border-radius:12px;padding:1px 5px;font-size:10px}.ms-badge[hidden]{display:none}
 body.ms-mobile .list-main{padding-top:8px}body.ms-mobile .list-main .breadcrumb{display:none}
 body.ms-mobile .list-layout{display:block}body.ms-mobile .list-content{min-width:0;width:100%}
 body.ms-mobile .cat-sidebar{display:none!important}body.ms-mobile .filter-bar{padding:8px 0;gap:8px;flex-wrap:wrap;margin-bottom:10px}
 body.ms-mobile .sort-group{display:flex;flex:1;gap:0}body.ms-mobile .sort-btn{padding:12px 6px;font-size:12px;white-space:nowrap}body.ms-mobile .result-info{font-size:12px}
 body.ms-mobile .products-grid,body.ms-mobile .list-content .products-grid,body.ms-mobile .rec-workspace .rec-grid,body.ms-mobile.ai-chat .chat-comparison .chat-product-grid,body.ms-mobile.ai-chat .chat-product-grid,body.ms-mobile .coin-grid:not(.coin-orders){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;overflow:visible!important;width:100%;padding-bottom:0;scroll-snap-type:none}
 body.ms-mobile .product-card,body.ms-mobile .rec-workspace .rec-card,body.ms-mobile.ai-chat .chat-product-grid .chat-product-card{width:100%!important;max-width:none!important;min-width:0!important;min-height:0!important;margin:0;box-sizing:border-box;flex:none;overflow-wrap:anywhere}
 body.ms-mobile .product-card .product-img{height:120px!important;min-height:120px!important;padding:8px!important}body.ms-mobile .product-card .product-img img{max-height:104px!important}
 body.ms-mobile .product-card .product-info{padding:9px!important;gap:5px;min-width:0}
 body.ms-mobile .product-card .product-name{font-size:14px!important;line-height:21px!important;min-height:42px!important;display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal!important;overflow:hidden!important}
 body.ms-mobile .product-card .product-price{padding:8px 0 0!important;gap:2px;flex-wrap:wrap;margin-top:auto}body.ms-mobile .price-value{font-size:17px!important}
 body.ms-mobile .product-card [data-sku-picker]{position:static!important;display:flex;align-items:center;justify-content:center;min-height:44px!important;width:100%!important;margin-top:6px!important;box-sizing:border-box}
 body.ms-mobile .product-card .product-spec{white-space:normal;line-height:1.5;font-size:12px}body.ms-mobile .rec-card .rec-reason{display:none}body.ms-mobile .rec-compare-option{min-height:44px;box-sizing:border-box}
 body.ms-mobile .relate-section{padding:10px!important}body.ms-mobile .rec-heading{flex-wrap:wrap}body.ms-mobile .rec-scenes{gap:4px}body.ms-mobile .rec-scenes button,body.ms-mobile .rec-compare-bar button{min-height:40px}
 body.ms-mobile.ai-chat .chat-answer{width:100%!important;max-width:100%!important;min-width:0;margin-left:0!important}body.ms-mobile.ai-chat .chat-message:has(.chat-comparison){display:block}body.ms-mobile.ai-chat .chat-message:has(.chat-comparison)>.chat-avatar{display:none}
 body.ms-mobile.ai-chat .chat-comparison{padding:0;max-width:100%}body.ms-mobile.ai-chat .chat-product-card{padding:9px!important}body.ms-mobile.ai-chat .chat-product-picture{height:115px!important}body.ms-mobile.ai-chat .chat-product-card h3{font-size:14px;line-height:21px;min-height:42px;margin:8px 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 body.ms-mobile.ai-chat .chat-product-bottom{flex-direction:column;align-items:stretch;gap:6px}body.ms-mobile.ai-chat .chat-product-bottom button{min-height:44px;width:100%}body.ms-mobile.ai-chat .chat-product-bottom strong{font-size:17px}body.ms-mobile.ai-chat .chat-product-grade{font-size:12px;margin:6px 0}
 
 body.ms-mobile .sku-picker{position:fixed;inset:auto 0 0;margin:0!important;width:100%!important;max-width:100%;max-height:85vh;max-height:85dvh;border-radius:16px 16px 0 0;padding:16px 12px calc(12px + env(safe-area-inset-bottom));overflow:auto}
 body.ms-mobile .sku-picker-controls{position:sticky;bottom:0;background:#fff;padding-top:10px;min-height:44px}.sku-picker-head button,.sku-picker-counter button{min-height:44px;min-width:40px}
 body.ms-mobile .detail-layout.detail-refined{display:grid;grid-template-columns:minmax(0,1fr)!important;padding:12px!important}body.ms-mobile .detail-gallery{max-width:280px!important}body.ms-mobile .detail-img{height:250px!important}body.ms-mobile .detail-name{font-size:20px!important}
 body.ms-mobile .detail-refined .detail-actions{position:fixed!important;bottom:0;left:0;right:0;z-index:510;background:white;min-width:0;padding:10px 12px calc(10px + env(safe-area-inset-bottom));box-shadow:0 -2px 12px #17355215;margin:0}
 body.ms-mobile .detail-actions button{min-height:44px!important}body.ms-mobile .detail-tabs,body.ms-mobile .detail-section-nav{overflow-x:auto;flex-wrap:nowrap;white-space:nowrap;top:0}
 body.ms-mobile .co-wrap{--uc-orange:#1565c0;--uc-orange-deep:#104e93;padding-top:12px}body.ms-mobile .co-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:12px 6px;gap:6px}body.ms-mobile .co-step-line{display:none}body.ms-mobile .co-step,body.ms-mobile .co-step-link{gap:4px;justify-content:center;flex-wrap:wrap}body.ms-mobile .co-step-text{font-size:12px}body.ms-mobile .co-step-num{width:22px;height:22px;font-size:12px}
 body.ms-mobile .co-goods-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:12px 0}body.ms-mobile .cg-item{grid-column:1/-1;min-width:0}body.ms-mobile .cg-price,body.ms-mobile .cg-qty{display:block!important;width:auto;text-align:left;font-size:13px}body.ms-mobile .cg-sub{grid-column:1/-1;width:auto;text-align:right}
 body.ms-mobile .cart-row{grid-template-columns:28px minmax(0,1fr) auto;padding:12px 0}body.ms-mobile .ci-price{display:block!important;grid-column:2;font-size:13px}body.ms-mobile .ci-sub{grid-column:3}body.ms-mobile .cart-settle{position:sticky;bottom:64px;background:#fff;z-index:20;padding:12px}.cart-settle-btn{min-height:44px}
 body.ms-mobile .uo-item-price,body.ms-mobile .uo-item-qty{display:block!important;font-size:12px}body.ms-mobile .uo-item{flex-wrap:wrap;gap:8px}
 body.ms-mobile .catalog-hero{padding:16px;margin:8px 0 12px}body.ms-mobile .cat-hero-banner,body.ms-mobile .cat-stats{display:none!important}body.ms-mobile .floor-left,body.ms-mobile .floor-right{padding:12px}body.ms-mobile .floor-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}body.ms-mobile .floor-groups a{padding:12px 8px;overflow-wrap:anywhere}
 body.ms-mobile .coin-card{padding:9px}body.ms-mobile .coin-card img{height:120px}body.ms-mobile .coin-card h2{font-size:14px}body.ms-mobile .coin-card button{min-height:44px}body.ms-mobile .coin-head{padding:16px}.ms-fold{margin:10px 0;border:1px solid #d4e2f1;border-radius:8px;background:white;padding:0 12px}.ms-fold>summary{padding:14px 0;color:#1565c0;font-size:14px;cursor:pointer;min-height:20px}
 body.ms-mobile .calc-workspace{padding:0 12px;margin:16px auto}body.ms-mobile .calc-workspace .layout{display:block;margin-top:12px}body.ms-mobile .calc-workspace .layout>section{padding:14px}body.ms-mobile .calc-workspace form{grid-template-columns:minmax(0,1fr)}body.ms-mobile .calc-workspace h1{font-size:23px}
 body.ms-mobile .footer-compact-row{gap:10px}body.ms-mobile .footer-links-bottom{display:none}body.ms-mobile .info-table{max-width:100%}body.ms-mobile .ms-table-scroll{overflow-x:auto;max-width:100%}
 .ms-drawer{box-sizing:border-box;width:100%;max-width:100%;max-height:85vh;max-height:85dvh;position:fixed;inset:auto 0 0;margin:0;border:0;border-radius:16px 16px 0 0;padding:16px 12px calc(16px + env(safe-area-inset-bottom));color:#254665}.ms-drawer::backdrop{background:#12345666}.ms-drawer header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.ms-drawer button,.ms-drawer a{min-height:44px;box-sizing:border-box}.ms-drawer button{border:1px solid #c5d8ef;background:#fff;color:#1565c0;border-radius:6px;padding:10px}.ms-drawer select{width:100%;padding:12px;border:1px solid #c5d8ef;border-radius:6px;margin:8px 0 16px}.ms-drawer .ms-menu-links{display:grid;grid-template-columns:1fr 1fr;gap:8px}.ms-menu-links a{display:flex;align-items:center;padding:12px;background:#f3f7fc;border-radius:6px;color:#1565c0;text-decoration:none}.ms-drawer footer{display:flex;gap:10px}.ms-drawer footer button{flex:1}.ms-drawer footer button:last-child{background:#1565c0;color:white}
}

/* Mobile purchase flow revision: retain brand header and use readable order cards. */
@media(max-width:768px){
 body.ms-mobile .top-bar{display:block!important;height:auto;min-height:28px;line-height:26px}body.ms-mobile .top-bar>.container{display:flex;flex-wrap:wrap;justify-content:space-between;gap:0 6px}body.ms-mobile .top-bar-left,body.ms-mobile .top-bar-right{gap:6px;flex-wrap:wrap}body.ms-mobile .top-bar a{font-size:10px!important}
 body.ms-mobile .header-content{display:grid!important;grid-template-columns:48px minmax(0,1fr) auto;gap:10px 8px!important}
 body.ms-mobile .header .logo{display:block!important;grid-column:1/3;grid-row:1;margin:0!important;min-width:0;width:auto!important}body.ms-mobile .logo>a{display:flex;align-items:center;gap:7px}body.ms-mobile .logo-icon,body.ms-mobile .logo-icon svg{width:40px!important;height:40px!important}body.ms-mobile .logo-name{font-size:21px!important;white-space:nowrap}body.ms-mobile .logo-sub{font-size:11px!important;display:block!important}
 body.ms-mobile .header-cart{display:block!important;grid-column:3;grid-row:1;margin:0!important}body.ms-mobile .header-cart .cart-btn{padding:0 7px;gap:4px;height:38px;font-size:12px;white-space:nowrap;min-width:0}body.ms-mobile .header-cart svg{width:20px;height:20px}
 body.ms-mobile .ms-menu-button{grid-column:1;grid-row:2;padding:0 6px}body.ms-mobile .search-box{grid-column:2/4;grid-row:2;width:100%!important}
 body.ms-mobile .cart-settle{display:flex;align-items:center;gap:10px;bottom:calc(62px + env(safe-area-inset-bottom));padding:12px;border:1px solid #d8e5f2}body.ms-mobile .cart-settle-right{display:grid!important;grid-template-columns:minmax(0,1fr) 112px;gap:4px 10px;width:100%;min-width:0;align-items:center}body.ms-mobile .cart-settle-selected{grid-column:1;font-size:12px}body.ms-mobile .cart-settle-total{grid-column:1;font-size:11px;line-height:1.5}body.ms-mobile .cart-settle-total b{display:block;margin:2px 0 0;font-size:23px;white-space:nowrap}body.ms-mobile .cart-settle-btn{grid-column:2;grid-row:1/3;flex:none!important;width:112px!important;min-width:112px;height:48px!important;min-height:48px;border-radius:8px;white-space:nowrap!important;padding:0 10px!important;font-size:16px!important;background:#1565c0;color:#fff}
 body.ms-mobile .cart-row{grid-template-columns:24px minmax(0,1fr) auto;gap:8px;padding:12px}body.ms-mobile .ci-main{gap:10px;min-width:0}body.ms-mobile .ci-meta{overflow-wrap:anywhere;font-size:12px}body.ms-mobile .ci-op{white-space:nowrap}body.ms-mobile .cart-title{font-size:21px}
 body.ms-mobile .co-section,body.ms-mobile .co-inv-form{min-width:0;box-sizing:border-box}body.ms-mobile .co-section-head{gap:10px;flex-wrap:wrap}body.ms-mobile .co-inv-form{padding:12px}body.ms-mobile .co-inv-types{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}body.ms-mobile .co-inv-type span{display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px 5px;box-sizing:border-box;text-align:center;font-size:13px}
 body.ms-mobile .co-inv-field{display:flex;flex-direction:column;align-items:stretch!important;gap:6px;margin-bottom:14px}body.ms-mobile .co-inv-label{width:auto;max-width:100%;text-align:left;font-size:13px}body.ms-mobile .co-inv-input{width:100%;min-width:0;max-width:100%;min-height:44px;box-sizing:border-box;flex:none}body.ms-mobile .co-inv-tip{overflow-wrap:anywhere}body.ms-mobile .co-delivery-row{display:grid;grid-template-columns:1fr;gap:8px;align-items:start}body.ms-mobile .co-delivery-name{white-space:nowrap}body.ms-mobile .co-delivery-free{border-radius:6px;white-space:normal;line-height:1.6;padding:6px 10px}body.ms-mobile .co-delivery-sub{font-size:12px}
 body.ms-mobile .uo-wrap{--uc-orange:#1565c0;--uc-orange-deep:#104e93;min-width:0}body.ms-mobile .uo-tabs{overflow-x:auto;justify-content:flex-start;border-bottom-color:#1565c0}body.ms-mobile .uo-tab{flex:0 0 auto!important;min-height:48px;padding:10px 12px;white-space:nowrap;font-size:13px;gap:5px}body.ms-mobile .uo-tab.active:after{background:#1565c0}body.ms-mobile .uo-filter{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:12px}body.ms-mobile .uo-kw{width:100%;min-width:0;grid-column:1/-1;box-sizing:border-box}body.ms-mobile .uo-range{min-width:0;max-width:100%}
 body.ms-mobile .uo-order-head{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding:12px}body.ms-mobile .uo-order-no{display:flex;flex-wrap:wrap;gap:4px 8px;min-width:0;overflow-wrap:anywhere;font-size:12px}body.ms-mobile .uo-copy{white-space:nowrap;min-height:32px;flex:none}body.ms-mobile .uo-order-status{white-space:nowrap;font-size:13px}body.ms-mobile .uo-order-items{padding:0 12px}body.ms-mobile .uo-item{display:grid!important;grid-template-columns:60px minmax(0,1fr) auto;gap:6px 10px;align-items:start}body.ms-mobile .uo-item-thumb{grid-column:1;grid-row:1/4;width:60px;height:60px}body.ms-mobile .uo-item>div:nth-child(2){grid-column:2/4;min-width:0;width:auto!important}body.ms-mobile .uo-item-name{display:block;white-space:normal!important;overflow:visible!important;font-size:14px;line-height:1.5}body.ms-mobile .uo-item-cat{white-space:normal;overflow-wrap:anywhere}body.ms-mobile .uo-item-price{grid-column:2;width:auto!important;text-align:left;white-space:nowrap}body.ms-mobile .uo-item-qty{grid-column:3;width:auto!important;text-align:right;white-space:nowrap}body.ms-mobile .uo-item-sub{grid-column:2/4;width:auto!important;text-align:right}
 body.ms-mobile .uo-order-foot{display:flex;flex-wrap:wrap;gap:8px 12px;padding:12px;justify-content:space-between}body.ms-mobile .uo-order-count,body.ms-mobile .uo-order-total{white-space:nowrap;font-size:12px}body.ms-mobile .uo-order-actions{width:100%;justify-content:flex-end;flex-wrap:wrap;gap:8px}body.ms-mobile .uo-act-btn{white-space:nowrap;min-height:40px;padding:8px 12px}body.ms-mobile .uo-drawer{max-width:100vw;box-sizing:border-box}
}
.co-inv-optional{margin:10px 0}.co-inv-optional>summary{padding:10px 0;cursor:pointer;color:#1565c0;font-size:13px}.co-inv-optional[open]>summary{margin-bottom:8px}

@media(max-width:768px){body.ms-mobile .top-bar-left a[aria-label="商城首页"],body.ms-mobile .top-bar-left a[href="/"],body.ms-mobile .top-bar-left a[href="index.html"],body.ms-mobile .top-bar-left a[href="/index.html"]{display:none!important}}

@media(max-width:768px){body.ms-mobile .ms-phone-label{display:none}body.ms-mobile .top-bar>.container{flex-wrap:nowrap!important;gap:5px;padding-left:8px;padding-right:8px;min-width:0}body.ms-mobile .top-bar-left{flex:0 0 auto;flex-wrap:nowrap!important;gap:0;white-space:nowrap}body.ms-mobile .top-bar-right{display:flex;flex:0 1 auto;min-width:0;margin-left:auto;flex-wrap:nowrap!important;gap:3px;white-space:nowrap}body.ms-mobile .top-bar-right .top-link{padding:0 2px;font-size:10px!important;flex-shrink:0}body.ms-mobile .top-bar-right .username-link{flex:0 1 auto;min-width:20px;max-width:74px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}body.ms-mobile .top-bar-right .site-account-avatar{width:16px;height:16px;vertical-align:middle;margin-right:2px}body.ms-mobile .top-bar-right .divider{margin:0;font-size:9px}body.ms-mobile .top-bar-left a{font-size:10px!important}body.ms-mobile .top-bar-left svg{width:12px;height:12px;margin-right:3px}}
@media(max-width:360px){body.ms-mobile .top-bar-right .username-link{max-width:48px}body.ms-mobile .top-bar-right{gap:1px}body.ms-mobile .top-bar>.container{gap:3px;padding-left:5px;padding-right:5px}body.ms-mobile .top-bar-right .top-link{padding:0 1px}}

/* Shared navigation on every customer-facing mobile page. */
@media(max-width:768px){
body.ms-mobile.product-detail-page,body.ms-mobile.ai-chat{padding-bottom:calc(70px + env(safe-area-inset-bottom))!important}
body.ms-mobile .ms-tabs{display:flex!important;position:fixed;inset:auto 0 0;z-index:2147483001;width:100%;height:auto;max-width:none;margin:0;background:#fff;border:0;border-top:1px solid #dbe6f2;border-radius:0;padding:5px 4px calc(5px + env(safe-area-inset-bottom));box-sizing:border-box;gap:0}
body.ms-mobile .ms-tabs a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:48px;padding:0;margin:0;border:0;border-radius:0;background:transparent;color:#61758d;font-size:11px;line-height:1.4;text-decoration:none;gap:3px}
body.ms-mobile .ms-tabs a[aria-current=page]{color:#1565c0;font-weight:700}
body.ms-mobile.ai-chat .ms-tabs{display:none!important}
body.ms-mobile.ai-chat{padding-bottom:0!important}
body.ms-mobile.ai-chat .chat-surface{height:var(--chat-height,100dvh)!important}
}
@media print{body .ms-tabs{display:none!important}}

@media(max-width:768px){body.ms-mobile.water-ai-page .ms-tabs{display:none!important}body.ms-mobile.water-ai-page{padding-bottom:0!important}}

@media(max-width:768px){body.ms-mobile .cart-settle{position:static!important;inset:auto!important;transform:none!important;z-index:auto;box-shadow:none}}
