:root{--ref-red:#ff4444;--ref-blue:#3282ff;--ref-width:480px;--ref-tab-height:54px}
.reference-store{background:#f5f5f5;color:#222;font-family:-apple-system,BlinkMacSystemFont,"Microsoft YaHei","PingFang SC",sans-serif;font-size:14px;line-height:1.42}
.reference-store button,.reference-store a{touch-action:manipulation}.reference-store [hidden]{display:none!important}
.store-shell{position:relative;margin:0 auto;max-width:var(--ref-width);background:#f6f6f6;min-height:100dvh;padding-bottom:calc(var(--ref-tab-height) + env(safe-area-inset-bottom))}
.ref-search{height:48px;padding:6px;display:flex;align-items:center;background:#f6f6f6;position:relative}
.ref-search input{min-height:36px;height:36px;border:1px solid transparent;border-radius:5px;background:#fff;padding:0 12px 0 36px;font-size:14px;color:#333}
.ref-search input::placeholder{color:#a7a7a7}.search-glass{pointer-events:none;position:absolute;left:18px;top:17px;width:12px;height:12px;border:1px solid #bababa;border-radius:50%;z-index:1}.search-glass:after{position:absolute;content:"";width:5px;height:1px;background:#bababa;transform:rotate(45deg);right:-4px;bottom:-2px}
.ref-banner{position:relative;margin:5px 5px 0;height:clamp(100px,29.33vw,140px);overflow:hidden;background:#fff}.ref-slides{position:relative;height:100%}.ref-slide{display:block;width:100%;height:100%;min-height:0!important;border:0!important;border-radius:0!important;padding:0!important;background:none;overflow:hidden}.ref-slide img{display:block;min-height:100%;width:100%;object-fit:cover;object-position:center top}.ref-dots{position:absolute;bottom:6px;left:0;right:0;display:flex;justify-content:center;gap:5px;pointer-events:none}.ref-dots button{border:0;border-radius:99px;background:#dedede;height:3px;min-height:3px;width:12px;padding:0;pointer-events:auto}.ref-dots button[aria-current=true]{background:#46ac25}
.ref-quick{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));background:#fff;padding:0 11px 3px;margin-top:0}.ref-quick button{min-height:78px;min-width:0;display:flex;flex-direction:column;justify-content:flex-start;padding:13px 0 5px;gap:6px;border:none;background:#fff;border-radius:0;color:#666;font-size:13px;font-weight:400;white-space:nowrap}.ref-quick img{width:33px;height:33px;object-fit:contain}
.ref-promos{margin:7px 5px 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;min-height:0;background:#fff}.ref-promos>div{display:grid;grid-template-rows:1fr 1fr;gap:4px}.ref-promos button{display:block;min-height:0;padding:0;border:0;border-radius:0;background:#fff;width:100%;overflow:hidden}.ref-promos img{width:100%;height:auto;aspect-ratio:1;object-fit:cover}.ref-promos>.promo-tall img{aspect-ratio:1/2.02}.ref-promos>div button{display:flex}.ref-promos>div img{height:100%}
.home-group{margin:10px 5px 0;background:#fff;padding:9px 6px}.home-group h2:not(.sr){display:flex;align-items:center;justify-content:center;gap:.7rem;text-align:center;font-size:18px;font-weight:800;color:#313131;margin:5px 0 13px}.home-group h2 span{border-top:2px solid #ffabab;width:20px}.offer-strip{display:grid;grid-auto-flow:column;grid-auto-columns:33.3333%;overflow-x:auto;scroll-snap-type:x proximity;gap:4px}.offer-strip::-webkit-scrollbar{height:4px}.offer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ref-card{position:relative;padding:3px;min-width:0;border-bottom:1px solid #f1f1f1;scroll-snap-align:start}.ref-card button{border:0;border-radius:0;background:#fff;padding:0;display:block;text-align:left;width:100%;height:auto;font-size:13px;color:#262626;min-height:30px}.ref-card img{aspect-ratio:1;object-fit:cover;border-radius:3px}.ref-card h3{font-size:13px;line-height:1.4;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-weight:650;min-height:36px;margin:6px 0 3px}.ref-card .price{font-size:16px}.ref-card .sales{font-size:11px;color:#999}.ref-card-meta{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:3px}.new-banner{width:100%;display:block;margin-bottom:8px}
.ref-tabs,.ref-buybar{position:fixed;left:50%;transform:translateX(-50%);width:min(100%,var(--ref-width));bottom:0;z-index:4;background:#fff;border-top:1px solid #ebebeb;padding:3px 0 max(3px,env(safe-area-inset-bottom));display:flex;align-items:center;justify-content:space-around;min-height:var(--ref-tab-height);box-shadow:0 -1px 5px #00000007}
.ref-tabs button{flex:1;min-width:0;min-height:45px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-weight:400;border:0;border-radius:0;padding:2px 0;background:#fff;color:#aaa;font-size:12px;white-space:nowrap}.ref-tabs img{width:22px;height:22px;object-fit:contain}.ref-tabs button[aria-current=page]{color:var(--ref-red)}.ref-tabs button[aria-current=page]:not([data-view=home]) img{filter:brightness(0) saturate(100%) invert(42%) sepia(78%) saturate(2148%) hue-rotate(338deg) brightness(110%) contrast(99%)}.ref-tabs button:not([aria-current]) [src$="nav-home.png"]{filter:grayscale(1) brightness(.65)}
.ref-catalog-layout{display:grid;grid-template-columns:25% 75%;padding:7px 8px 0 0;background:#f5f5f5;min-height:calc(100dvh - 101px)}.ref-filters{display:flex;flex-direction:column;background:#fff;overflow:auto;height:calc(100dvh - 106px);padding-bottom:6px}.ref-filters button{display:flex;position:relative;text-align:left;justify-content:flex-start;min-height:51px;padding:8px 7px 8px 14px;margin:0;border:none;background:#fff;color:#292929;border-radius:0;line-height:1.35;font-size:14px}.ref-filters button[aria-pressed=true]{color:var(--ref-red)}.ref-filters button[aria-pressed=true]:before{content:"";position:absolute;left:5px;top:38%;width:3px;height:13px;border-radius:2px;background:var(--ref-red)}
.ref-results{min-width:0;display:flex;flex-direction:column;margin-left:7px;background:#fff;overflow:hidden;height:calc(100dvh - 106px)}.ref-sort{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid #f1f1f1}.ref-sort button{border:0;background:#fff;color:#252525;border-radius:0;min-height:43px;padding:0 3px;font-size:14px}.ref-sort button[aria-pressed=true]{color:var(--ref-red)}.ref-list{overflow:auto;padding:0 10px}.ref-list p{padding:12px 4px}.ref-list-item{display:grid;grid-template-columns:72px minmax(0,1fr) 29px;column-gap:9px;padding:10px 0;border-bottom:1px solid #f4f4f4}.ref-list-item .pic-link{background:transparent;padding:0;min-height:0;border:0;border-radius:4px;display:block}.ref-list-item img{width:72px;height:72px;object-fit:cover;border-radius:4px}.ref-list-item h3{font-size:14px;line-height:1.3;margin:0;font-weight:700;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.ref-list-item .name-link{font-weight:inherit;min-height:0;background:transparent;padding:0;text-align:left;border:0;border-radius:0;display:block}.ref-list-item .price{font-size:16px;font-weight:500;display:block;margin-top:9px}.ref-list-item .sales{color:#999;font-size:11px}.ref-cart-icon{align-self:end;display:grid;place-items:center;width:29px;height:29px;min-height:29px;color:#f55454;font-size:16px;padding:0;border-radius:100%;background:#fff0f0;border:0}.reference-store .price{color:var(--ref-red);font-variant-numeric:tabular-nums}
.ref-detail{background:#f5f5f5}.ref-detail-photo{width:100%;height:auto;aspect-ratio:1;position:relative;background:#fff;overflow:hidden}.ref-detail-photo>img{width:100%;height:100%;object-fit:cover}.ref-detail-photo>span{position:absolute;right:12px;bottom:11px;border-radius:20px;background:#4446;color:#fff;padding:1px 11px;font-size:13px}.ref-detail-back{position:absolute;left:10px;top:10px;z-index:1;background:#fff9;border:0;border-radius:30px;min-height:38px;padding:.1rem .55rem;color:#333;font-size:13px}.ref-detail-summary,.ref-spec-line,.ref-service-line,.ref-seller,.ref-description{background:#fff;margin-bottom:8px}.ref-detail-summary{padding:13px 12px 14px}.ref-detail-summary h1{font-size:16px;color:#202020;margin-top:7px;letter-spacing:0;line-height:1.4}.ref-detail-summary .price{font-size:25px}.ref-share{float:right;display:flex;flex-direction:column;gap:3px;background:#fff;border:0;color:#555;padding:0;min-height:0;font-weight:400;font-size:11px}.ref-share img{width:16px;height:16px}.ref-detail-stock{display:flex;justify-content:space-between;margin-top:19px;color:#999;font-size:12px}.ref-spec-line{border:0;border-radius:0;display:flex;justify-content:space-between;width:100%;min-height:48px;font-size:13px;padding:0 12px;color:#444;text-align:left}.ref-spec-line strong,.ref-service-line strong{margin-right:12px;color:#222}.ref-spec-line>img{width:16px;height:16px;margin-left:auto}.ref-service-line{padding:14px 12px;display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px;color:#777}.ref-service-line b{color:#ff6b70}.ref-seller{display:grid;grid-template-columns:41px minmax(0,1fr) auto;gap:7px;align-items:center;padding:11px 12px}.ref-seller>img{width:37px;height:37px;object-fit:contain}.ref-seller strong{display:block;color:#222}.ref-seller p{font-size:11px;color:#a7a7a7;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ref-red{background:#ff4444;color:#fff;border:0;font-size:13px;padding:.5em .9em;min-height:33px;border-radius:30px}.ref-description h2{font-size:15px;text-align:center;background:#f5f5f5;color:#333;padding:16px}.ref-description h2:before,.ref-description h2:after{content:"◆";color:#ffb6b6;margin:0 8px}.ref-description img{width:100%;height:auto}.ref-description>p{padding:1rem;color:#555}.ref-buybar button{border:0;min-height:38px;padding:0}.ref-buybar .favorite{display:flex;flex-direction:column;gap:2px;background:#fff;color:#303030;border-radius:0;font-size:11px;width:55px}.ref-buybar .favorite img{width:22px;height:22px;object-fit:contain}.ref-buybar .favorite[aria-pressed=true] img{filter:brightness(0) saturate(100%) invert(42%) sepia(75%) saturate(2924%) hue-rotate(337deg)}.ref-buybar .duo{display:grid;grid-template-columns:1fr 1fr;flex:1;padding-right:8px}.ref-buybar .duo button{display:grid;place-items:center;background:var(--ref-blue);color:#fff;font-weight:750;border-radius:25px 0 0 25px;font-size:14px}.ref-buybar .duo .buy{background:#ff4141;border-radius:0 25px 25px 0}
.ref-simple{min-height:65vh;background:#fff;padding:18px 14px}.ref-simple h1{font-size:21px}.ref-simple p{margin:12px 0}.ref-profile>div{display:flex;align-items:center;gap:9px;padding:8px 0 19px}.ref-profile img{width:45px;height:45px;object-fit:contain}.ref-profile>button,.ref-profile>a{min-height:46px;display:flex;align-items:center;justify-content:space-between;background:#fff;border:0;border-bottom:1px solid #eee;border-radius:0;width:100%;color:#333;padding:7px;text-decoration:none}.ref-profile>a{font-weight:650}
.reference-store dialog{max-height:min(93dvh,780px);width:min(100%,var(--ref-width));border-radius:15px 15px 0 0;margin:auto auto 0;font-size:16px}.reference-store dialog .solid{background:var(--ref-red)}.reference-store dialog .outline{color:#262626;border-color:#ddd}.reference-store dialog .price{font-size:21px}.reference-store dialog .dialog-head h2{font-size:18px}.ref-spec-preview{display:grid;grid-template-columns:76px 1fr;align-items:center;gap:10px;margin-bottom:12px}.ref-spec-preview img{width:76px;height:76px;object-fit:cover;border-radius:6px}.ref-spec-preview strong{display:block;margin-top:4px}.ref-spec-label{background:#ffecec;border-radius:6px;color:#d63737;display:inline-block;padding:6px 10px}.reference-store .toast{z-index:10;background:#222;bottom:64px}.reference-store.large #main{font-size:1.22em}.reference-store.large .ref-quick button,.reference-store.large .ref-filters button,.reference-store.large .ref-card h3{font-size:15px}.reference-store.large .ref-detail-summary h1,.reference-store.large .ref-list-item h3{font-size:18px}
body.reference-store:has(.ref-catalog:not([hidden])) .ref-search{background:#fff}.reference-store:has(.ref-catalog:not([hidden])) .ref-search input{border-radius:30px;background:#f6f6f6}
@media(max-width:340px){.ref-quick button{font-size:11px}.ref-results{margin-left:3px}.ref-list{padding-inline:4px}.ref-list-item{grid-template-columns:54px minmax(0,1fr) 26px;column-gap:6px}.ref-list-item img{width:54px;height:54px}}
.ref-catalog.single-list .ref-catalog-layout{grid-template-columns:1fr}.ref-cart-icon span{position:relative;display:block;border:1px solid currentColor;border-top-left-radius:2px;width:11px;height:7px;transform:skew(10deg);margin-top:-2px}.ref-cart-icon span:after{content:"";position:absolute;bottom:-4px;left:0;width:2px;height:2px;background:currentColor;border-radius:100%;box-shadow:7px 0 currentColor}.ref-detail-back{width:34px;height:34px;min-height:34px;padding:0;font-weight:500;font-size:26px}.ref-quick button:focus-visible,.ref-tabs button:focus-visible{outline-offset:-2px}
.ref-list-item{position:relative;grid-template-columns:72px minmax(0,1fr);min-height:106px;align-items:start}.ref-list-item .name-link{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.35}.ref-list-item .ref-cart-icon{position:absolute;right:0;bottom:10px}.ref-list-item .price{max-width:calc(100% - 35px)}.ref-list-item .sales{display:block;padding-right:32px}.ref-list-item>div{min-width:0}@media(max-width:340px){.ref-list-item{grid-template-columns:54px minmax(0,1fr)}}
.ref-detail-summary{padding-top:23px;padding-bottom:19px;margin-bottom:10px}.ref-spec-line{min-height:44px;margin-bottom:10px}.ref-service-line{min-height:44px}.ref-seller{min-height:65px;margin-bottom:0}.ref-description h2{min-height:63px;display:flex;align-items:center;justify-content:center}.ref-buybar .favorite{width:56px}.ref-buybar .duo{padding-right:15px}
.ref-zone-title{padding:10px 12px 5px;margin:0;font-size:1.125em;font-weight:750}
