*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{font:14px/1.5 -apple-system,"PingFang SC","Microsoft YaHei",sans-serif;background:#f5f5f5;color:#222;padding-bottom:58px}
a{color:inherit;text-decoration:none}
ul,ol{list-style:none}
img{display:block;max-width:100%}

/* header */
.m-header{position:sticky;top:0;z-index:50;background:#fff;padding:10px 12px 0;border-bottom:0}
.m-search{display:flex;align-items:center;height:36px;background:#f2f2f2;border-radius:18px;padding:0 12px;gap:8px}
.m-search-ico{width:16px;height:16px;border:0;background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.47 6.47 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");flex:0 0 auto;cursor:pointer}
.m-search input{flex:1;border:0;outline:0;background:transparent;height:36px;font-size:14px;color:#333;min-width:0}
.m-tabs{display:flex;gap:0;overflow-x:auto;-webkit-overflow-scrolling:touch;background:#fff;padding:0 4px;border-bottom:1px solid #eee;scrollbar-width:none}
.m-tabs::-webkit-scrollbar{display:none}
.m-tabs a{flex:0 0 auto;padding:12px 12px 10px;font-size:14px;color:#333;white-space:nowrap;position:relative}
.m-tabs a.on{font-weight:700;color:#e60012}
.m-tabs a.on:after{content:"";position:absolute;left:50%;bottom:0;width:20px;height:2px;margin-left:-10px;background:#e60012}

.page{padding:0 0 20px;min-height:60vh}

/* banner */
.m-banner{background:#111;overflow:hidden}
.m-banner img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.m-banner a{display:block}
.m-banner.empty-banner .ph{height:160px;display:flex;align-items:center;justify-content:center;color:#fff;background:#333;font-size:14px}

/* icons */
.m-icons{background:#fff;margin:0 0 8px;padding:14px 6px 6px}
.m-icons ul{display:flex;flex-wrap:wrap}
.m-icons li{width:25%;text-align:center;margin-bottom:12px}
.m-icons a{display:block}
.m-icons i{width:44px;height:44px;margin:0 auto 6px;border-radius:50%;background:linear-gradient(135deg,#ff6a6a,#e60012);color:#fff;display:flex;align-items:center;justify-content:center;font-style:normal;font-size:18px;font-weight:600}
.m-icons span{display:block;font-size:12px;color:#333;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:0 4px}

/* sections + goods grid */
.m-sec{background:#fff;margin:0 0 8px;padding:12px 10px 4px}
.m-sec-hd{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;padding:0 2px}
.m-sec-hd h2{font-size:16px;font-weight:700;margin:0}
.m-sec-hd .more{font-size:12px;color:#999}
.m-goods{display:flex;flex-wrap:wrap;margin:0 -4px}
.m-goods li{width:50%;padding:0 4px 12px}
.m-goods a{display:block;background:#fff}
.m-goods .thumb{position:relative;aspect-ratio:1;background:#f7f7f7;overflow:hidden;border-radius:4px}
.m-goods .thumb img{width:100%;height:100%;object-fit:cover}
.m-goods .info{padding:8px 2px 0}
.m-goods h3{font-size:13px;font-weight:500;line-height:1.35;max-height:2.7em;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:0}
.m-goods .sub{color:#999;font-size:11px;margin:4px 0 0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.m-goods .price{margin-top:6px;color:#e60012;font-size:15px;font-weight:700}
.m-goods .price em{font-style:normal;font-size:12px;margin-right:1px}
.m-goods .price del{margin-left:6px;color:#bbb;font-size:11px;font-weight:400}
.gph{display:flex;align-items:center;justify-content:center;width:100%;height:100%;font-size:36px;color:#e60012;background:#f7f7f7}
.gph.big{font-size:72px;min-height:280px}

/* list */
.m-list-top{display:flex;align-items:baseline;justify-content:space-between;padding:12px 12px 8px;background:#fff}
.m-list-top h1{font-size:17px;font-weight:700;margin:0}
.m-list-top .total{font-size:12px;color:#999}
.m-subtabs{display:flex;overflow-x:auto;-webkit-overflow-scrolling:touch;background:#fff;padding:0 8px;border-bottom:1px solid #eee;scrollbar-width:none}
.m-subtabs::-webkit-scrollbar{display:none}
.m-subtabs a{flex:0 0 auto;padding:10px 12px;font-size:13px;color:#666;white-space:nowrap;position:relative}
.m-subtabs a.on{color:#222;font-weight:700}
.m-subtabs a.on:after{content:"";position:absolute;left:12px;right:12px;bottom:0;height:2px;background:#222}
.m-order{display:flex;flex-wrap:wrap;gap:8px;padding:10px 12px;background:#fff;margin-bottom:8px}
.m-order a{font-size:12px;color:#666;padding:5px 10px;border:1px solid #e5e5e5;border-radius:14px;background:#fff}
.m-order a.on{color:#e60012;border-color:#e60012;background:#fff5f5}
.m-goods{background:#fff;padding:8px 8px 0}
.m-pager{display:flex;align-items:center;justify-content:center;gap:16px;padding:16px;background:#fff;font-size:13px;color:#666}
.m-pager a{color:#e60012}
.m-empty{text-align:center;color:#999;padding:40px 12px;background:#fff}

/* detail */
.m-detail{padding-bottom:64px}
.m-gallery{background:#fff}
.m-gallery .main{aspect-ratio:1;background:#f7f7f7;display:flex;align-items:center;justify-content:center;overflow:hidden}
.m-gallery .main img{width:100%;height:100%;object-fit:contain}
.m-gallery .thumbs{display:flex;gap:8px;padding:10px 12px;overflow-x:auto}
.m-gallery .thumbs li{flex:0 0 56px;width:56px;height:56px;border:1px solid #e8e8e8;overflow:hidden;cursor:pointer}
.m-gallery .thumbs li.on{border-color:#e60012}
.m-gallery .thumbs img{width:100%;height:100%;object-fit:cover}
.m-pinfo{background:#fff;padding:14px 14px 12px;margin-bottom:8px}
.m-pinfo h1{font-size:17px;font-weight:700;line-height:1.4;margin:0}
.m-pinfo .feat{margin:8px 0 0;color:#e60012;font-size:13px}
.m-pinfo .price-box{margin-top:12px;padding:12px;background:#f7f7f7}
.m-pinfo .now{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 0}
.m-pinfo .now .lab{color:#999;font-size:12px;margin-right:8px}
.m-pinfo .now em{color:#e60012;font-style:normal;font-size:14px}
.m-pinfo .now b{color:#e60012;font-size:24px;font-weight:700}
.m-pinfo .org{margin-left:12px;font-size:12px;color:#999}
.m-pinfo .org del{text-decoration:line-through}
.m-pinfo .meta{margin-top:8px;font-size:12px;color:#999}
.m-pinfo .row{margin-top:12px;font-size:13px;color:#666}
.m-pinfo .row .lab{color:#999;margin-right:10px}
.m-body-card{background:#fff;padding:14px;margin-bottom:8px}
.m-body-card h2{font-size:15px;font-weight:700;margin:0 0 12px;padding-bottom:10px;border-bottom:1px solid #f0f0f0}
.m-body-card .body{font-size:14px;line-height:1.8;word-break:break-word}
.m-body-card .body img{max-width:100%;height:auto;margin:8px 0}
.m-body-card .body p{margin:0 0 1em}
.m-detail-gallery{margin-top:14px}
.m-detail-img{margin:0 0 8px}
.m-detail-img img{width:100%;height:auto;display:block}

.m-buybar{position:fixed;left:0;right:0;bottom:0;z-index:60;display:flex;height:52px;background:#fff;border-top:1px solid #eee;padding:6px 12px;gap:10px;box-shadow:0 -2px 8px rgba(0,0,0,.06)}
.m-buybar .back{flex:0 0 72px;height:40px;line-height:38px;text-align:center;border:1px solid #ddd;color:#333;font-size:14px}
.m-buybar .buy{flex:1;height:40px;line-height:40px;text-align:center;background:#e60012;color:#fff;font-size:16px;font-weight:600}
.m-buybar .buy.disabled{background:#ccc}
body.is-detail{padding-bottom:52px}
body.is-detail .m-tabbar{display:none}

/* footer + tabbar */
.m-foot{text-align:center;color:#999;font-size:11px;padding:18px 12px 12px;line-height:1.7}
.m-foot .note{margin-top:6px}
.m-tabbar{position:fixed;left:0;right:0;bottom:0;z-index:55;height:52px;background:#fff;border-top:1px solid #eee;display:flex;padding-bottom:env(safe-area-inset-bottom)}
.m-tabbar a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:#666;font-size:10px}
.m-tabbar a.on,.m-tabbar a.home.on{color:#e60012}
.m-tabbar i{width:22px;height:22px;display:block;background:center/contain no-repeat}
.m-tabbar .i-cate{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M3 6h18v2H3V6zm0 5h18v2H3v-2zm0 5h18v2H3v-2z'/%3E%3C/svg%3E")}
.m-tabbar .i-hot{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M13.5.67s.74 2.65.74 4.8c0 2.06-1.35 3.73-3.41 3.73-2.07 0-3.63-1.67-3.63-3.73l.03-.36C5.21 7.51 4 10.62 4 14c0 4.42 3.58 8 8 8s8-3.58 8-8C20 8.61 17.41 3.8 13.5.67z'/%3E%3C/svg%3E")}
.m-tabbar .i-home{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'/%3E%3C/svg%3E")}
.m-tabbar .i-search{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.47 6.47 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E")}
.m-tabbar .i-more{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M4 8h4V4H4v4zm6 12h4v-4h-4v4zm-6 0h4v-4H4v4zm0-6h4v-4H4v4zm6 0h4v-4h-4v4zm6-10v4h4V4h-4zm-6 4h4V4h-4v4zm6 6h4v-4h-4v4zm0 6h4v-4h-4v4z'/%3E%3C/svg%3E")}
.m-tabbar a.on .i-cate{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e60012'%3E%3Cpath d='M3 6h18v2H3V6zm0 5h18v2H3v-2zm0 5h18v2H3v-2z'/%3E%3C/svg%3E")}
.m-tabbar a.on .i-hot{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e60012'%3E%3Cpath d='M13.5.67s.74 2.65.74 4.8c0 2.06-1.35 3.73-3.41 3.73-2.07 0-3.63-1.67-3.63-3.73l.03-.36C5.21 7.51 4 10.62 4 14c0 4.42 3.58 8 8 8s8-3.58 8-8C20 8.61 17.41 3.8 13.5.67z'/%3E%3C/svg%3E")}
.m-tabbar a.on .i-home,.m-tabbar a.home.on .i-home{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e60012'%3E%3Cpath d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'/%3E%3C/svg%3E")}

/* ads float keep */
.ad-float{position:fixed;left:0;right:0;z-index:1000;background:rgba(0,0,0,.82);text-align:center}
.ad-float-top{top:0}
.ad-float-bottom{bottom:52px}
.ad-inner img,.ad-inner iframe{max-width:100%;height:auto;display:block;margin:0 auto;max-height:80px}
.ad-close{position:absolute;right:6px;top:4px;width:22px;height:22px;line-height:20px;border:0;border-radius:50%;background:rgba(0,0,0,.55);color:#fff;font-size:16px;padding:0}
body.has-ad-top{padding-top:72px}
body.has-ad-bottom .page{padding-bottom:90px}

.tags a{display:inline-block;background:#f3f5f9;border-radius:12px;padding:2px 10px;margin:0 4px 8px 0;font-size:12px}
