:root{--ref-red:#ff545b;--ref-red-dark:#f23e47;--ref-accent-start:#ff777b;--ref-accent-soft:#fff5f5;--ref-accent-pale:#fff1f2;--ref-accent-border:#ffd6d9;--ref-accent-text:#dc5960;--ref-accent-shadow:rgba(255,84,91,.24);--ref-accent-spinner:#ffe0e2;--ref-orange:#ffad18;--ref-bg:#f3f4f6;--ref-card:#fff;--ref-text:#252b34;--ref-muted:#8d949e;--ref-line:#eceef1;--ref-shadow:0 2px 11px rgba(33,43,54,.055)}
.medical-tagline{display:block!important;max-width:100%;font-size:var(--medical-copy-size,18px)!important;line-height:1.35!important;color:var(--medical-copy-color,#d33f4a)!important;white-space:normal!important;overflow:visible!important;letter-spacing:.2px;text-shadow:0 1px 0 rgba(255,255,255,.6)}
.medical-copy-font-system{font-family:Inter,"PingFang SC","Microsoft YaHei",sans-serif!important}
.medical-copy-font-serif{font-family:Georgia,"Songti SC","SimSun",serif!important}
.medical-copy-font-rounded{font-family:"Trebuchet MS","Microsoft YaHei",sans-serif!important}
.medical-copy-font-art{font-family:"STKaiti","KaiTi","Microsoft YaHei",cursive!important;letter-spacing:1px}
.medical-copy-font-mono{font-family:"Courier New","Microsoft YaHei",monospace!important}
.medical-tagline+ .ref-shop-trust{font-weight:400;color:#d6a62c;font-size:11px}
body.medical-shop[data-medical-theme="blue"]{--ref-red:#2878f0;--ref-red-dark:#1f62d1;--ref-accent-start:#5aa0ff;--ref-accent-soft:#eef5ff;--ref-accent-pale:#e8f2ff;--ref-accent-border:#cfe1fb;--ref-accent-text:#3d73b9;--ref-accent-shadow:rgba(40,120,240,.24);--ref-accent-spinner:#d9e9ff}
body.medical-shop[data-medical-theme="navy"]{--ref-red:#173f73;--ref-red-dark:#0f2f59;--ref-accent-start:#37638f;--ref-accent-soft:#edf2f8;--ref-accent-pale:#e7eef6;--ref-accent-border:#cdd9e7;--ref-accent-text:#365c86;--ref-accent-shadow:rgba(23,63,115,.24);--ref-accent-spinner:#d7e2ef}
body.medical-shop[data-medical-theme="deep-red"]{--ref-red:#8f1f2b;--ref-red-dark:#701621;--ref-accent-start:#b5444e;--ref-accent-soft:#f9eff0;--ref-accent-pale:#f7e9eb;--ref-accent-border:#e7c9cd;--ref-accent-text:#963d47;--ref-accent-shadow:rgba(143,31,43,.24);--ref-accent-spinner:#efd4d7}
body.medical-shop[data-medical-theme="brown"]{--ref-red:#8a5a3b;--ref-red-dark:#69422b;--ref-accent-start:#ad7a58;--ref-accent-soft:#f7f1ed;--ref-accent-pale:#f4ece7;--ref-accent-border:#dfcfc4;--ref-accent-text:#8b654e;--ref-accent-shadow:rgba(138,90,59,.24);--ref-accent-spinner:#eadcd2}
html{background:var(--ref-bg)}
body.medical-shop{margin:0!important;background:var(--ref-bg)!important;color:var(--ref-text);font-family:Inter,"PingFang SC","Microsoft YaHei",sans-serif;font-size:14px;line-height:1.55;min-height:100vh;background-image:none!important}
body.medical-shop *{box-sizing:border-box}
body.medical-shop button,body.medical-shop input,body.medical-shop select,body.medical-shop textarea{font:inherit}
body.medical-shop button,body.medical-shop a,body.medical-shop input{-webkit-tap-highlight-color:transparent}
body.medical-shop button{cursor:pointer}
body.medical-shop a{color:inherit;text-decoration:none}
body.medical-shop button:focus-visible,body.medical-shop a:focus-visible,body.medical-shop input:focus-visible{outline:3px solid var(--ref-accent-shadow);outline-offset:2px}
.store-page-shell{width:min(540px,100%);min-height:100vh;margin:0 auto;background:var(--ref-bg);box-shadow:0 0 0 1px rgba(28,36,46,.025)}
#pjax-container{min-height:calc(100vh - 68px)}
.ref-store{width:100%}
.ref-home{padding:12px 12px 92px}

.ref-search-card{background:var(--ref-card);border-radius:11px;padding:12px;box-shadow:var(--ref-shadow);margin-bottom:12px}
.ref-search-box{height:42px;border:1px solid #e6e8ec;border-radius:999px;display:flex;align-items:center;padding-left:15px;color:#b0b5bd;overflow:hidden;background:#fff}
.ref-search-box svg{width:15px;height:15px;margin-right:9px;fill:none;stroke:currentColor;stroke-width:2}
.ref-search-box input{min-width:0;flex:1;height:100%;border:0;outline:0;background:transparent;color:var(--ref-text);font-size:13px}
.ref-search-box input::placeholder{color:#b3b8c0}
.ref-search-box button{height:34px;min-width:62px;margin-right:4px;border:0;border-radius:999px;color:#fff;font-size:12px;font-weight:700;background:linear-gradient(135deg,var(--ref-accent-start),var(--ref-red));box-shadow:0 3px 9px var(--ref-accent-shadow)}
.ref-notice{display:flex;align-items:flex-start;gap:8px;padding:10px 13px;margin:0 0 12px;background:#fff8e8;border:1px solid #ffedbf;border-radius:9px;color:#9a7627;font-size:12px;box-shadow:var(--ref-shadow)}
.ref-notice svg{width:15px;height:15px;margin-top:2px;color:#e9a91d;fill:none;stroke:currentColor;stroke-width:1.8;flex:0 0 auto}

.ref-shop-card{display:grid;grid-template-columns:76px minmax(0,1fr);gap:13px;background:var(--ref-card);border-radius:11px;padding:14px;box-shadow:var(--ref-shadow);margin-bottom:10px}
.ref-shop-logo{width:76px;height:76px;border-radius:15px;overflow:hidden;border:1px solid #f0f1f3;background:#fff;display:grid;place-items:center}
.ref-shop-logo img{width:100%;height:100%;object-fit:cover}
.ref-shop-copy{min-width:0}
.ref-shop-title-row{display:flex;align-items:center;justify-content:space-between;gap:8px}
.ref-shop-title-row h1,.ref-detail-shop-card h2{margin:0;font-size:16px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#20252d}
.ref-shop-title-row button{border:0;color:#fff;border-radius:999px;padding:6px 11px;font-size:11px;font-weight:700;white-space:nowrap;background:linear-gradient(135deg,var(--ref-accent-start),var(--ref-red));box-shadow:0 3px 9px var(--ref-accent-shadow)}
.ref-shop-copy>p{margin:5px 0 8px;color:#7e858f;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ref-shop-trust{display:flex;align-items:center;gap:11px;white-space:nowrap;color:#d6a62c;font-size:10px;font-weight:400}
.ref-shop-trust b{margin-left:2px;color:#d6a62c;font-size:11px;font-weight:400}
.ref-stats{display:flex;align-items:center;gap:8px;min-height:31px;margin:0 0 10px;padding:6px 11px;border:1px solid var(--ref-accent-border);background:var(--ref-accent-soft);border-radius:8px;color:var(--ref-accent-text);font-size:11px;overflow:hidden;white-space:nowrap}
.ref-stats b{font-size:13px;color:var(--ref-red-dark)}
.ref-stats i{height:13px;width:1px;background:#f1a9ad;flex:0 0 auto}

.ref-product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.ref-product-card{min-width:0;display:block;background:#fff;border-radius:9px;overflow:hidden;box-shadow:var(--ref-shadow);transition:transform .18s,box-shadow .18s}
.ref-product-card:active{transform:scale(.987)}
.ref-product-card:hover{box-shadow:0 7px 22px rgba(33,43,54,.1);color:inherit}
.ref-product-image{position:relative;aspect-ratio:1/1;background:#f5f6f7;overflow:hidden}
.ref-product-image>img{display:block;width:100%;height:100%;object-fit:cover}
.ref-product-copy{padding:9px 10px 10px}
.ref-product-copy h2{height:41px;margin:0 0 7px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;color:#333942;font-size:13px;font-weight:500;line-height:1.55}
.ref-product-copy>div{display:flex;align-items:baseline;justify-content:space-between;gap:5px}
.ref-product-copy strong{color:var(--ref-red-dark);font-size:17px;line-height:1;font-weight:750}
.ref-product-copy strong small{font-size:12px;margin-right:1px}
.ref-product-copy span{color:#a3a8b0;font-size:10px;white-space:nowrap}
.ref-card-prices{display:flex!important;align-items:baseline;gap:5px;min-width:0}.ref-card-original{color:#a3a8b0;font-size:10px;font-weight:400;text-decoration-thickness:1px}.ref-card-views,.ref-card-likes,.ref-card-favorites{color:var(--ref-accent-text)!important;font-size:10px!important}
.ref-sample-badge{position:absolute;left:7px;top:7px;padding:3px 7px;border-radius:999px;color:#fff;background:rgba(37,43,52,.72);font-size:9px;backdrop-filter:blur(4px)}
.ref-sample-cover{position:relative;width:100%;height:100%;display:grid;grid-template-columns:31% 1fr;gap:5px;padding:8px;background:#e8edf3;color:#244b70;overflow:hidden}
.ref-sample-cover:before{content:"";position:absolute;inset:-20%;background:radial-gradient(circle at 80% 20%,rgba(255,255,255,.9),transparent 45%),linear-gradient(145deg,rgba(255,255,255,.28),transparent);z-index:0}
.ref-sample-cover>*{position:relative;z-index:1}
.ref-sample-cover.rose{background:#f5e2df;color:#7a3635}.ref-sample-cover.blue{background:#dfeaf5;color:#1f4c78}.ref-sample-cover.sand{background:#f3ead8;color:#755d2e}.ref-sample-cover.mint{background:#dceeea;color:#255e57}.ref-sample-cover.navy{background:#d9e3ed;color:#173e67}.ref-sample-cover.plum{background:#ebe1ef;color:#654574}
.ref-sample-mini{display:grid;grid-template-rows:repeat(6,1fr);gap:3px}
.ref-sample-mini span,.ref-sample-feature{background:rgba(255,255,255,.88);border:1px solid rgba(48,70,91,.12);border-radius:3px;box-shadow:0 1px 3px rgba(31,45,60,.08)}
.ref-sample-mini span{display:flex;align-items:center;gap:3px;padding:3px}
.ref-sample-mini i{height:100%;width:38%;border-radius:2px;background:currentColor;opacity:.16}
.ref-sample-mini b{font-size:6px;opacity:.65}
.ref-sample-feature{display:flex;flex-direction:column;justify-content:center;padding:9px;text-align:left}
.ref-sample-feature small{font-size:6px;letter-spacing:.6px;opacity:.55}
.ref-sample-feature strong{margin:6px 0;font-size:13px;line-height:1.35}
.ref-sample-feature i{font-style:normal;font-size:7px;opacity:.6}
.ref-sample-cover>em{position:absolute;right:9px;bottom:7px;font-style:normal;font-size:7px;letter-spacing:.5px;opacity:.45}
.ref-empty{grid-column:1/-1;padding:55px 20px;text-align:center;background:#fff;border-radius:10px;color:#a1a7af;box-shadow:var(--ref-shadow)}
.ref-empty svg{width:32px;height:32px;fill:none;stroke:currentColor;stroke-width:1.5}.ref-empty h2{font-size:15px;color:#6b737e;margin:12px 0 4px}.ref-empty p{font-size:11px;margin:0}
.ref-load-more{padding:18px 0 4px;text-align:center;color:#aaaeb5;font-size:11px}
.ref-load-more.error{color:var(--ref-red);cursor:pointer}

.ref-bottom-nav{position:fixed;left:50%;bottom:0;transform:translateX(-50%);z-index:80;width:min(540px,100%);height:68px;padding-bottom:env(safe-area-inset-bottom);display:flex;background:rgba(255,255,255,.97);border-top:1px solid #e6e8eb;box-shadow:0 -5px 18px rgba(26,35,45,.035);backdrop-filter:blur(10px)}
.ref-bottom-nav a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:#a5aab1;font-size:11px}
.ref-bottom-nav svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.ref-bottom-nav a.active{color:var(--ref-red)}
.ref-float-tools{position:fixed;right:max(14px,calc((100vw - 540px)/2 + 14px));bottom:88px;z-index:70;display:flex;flex-direction:column;gap:8px;opacity:.72}
.ref-float-tools button,.ref-float-tools a{display:grid;place-items:center;width:43px;height:43px;border:0;border-radius:50%;background:linear-gradient(135deg,var(--ref-accent-start),var(--ref-red));color:#fff;box-shadow:0 4px 14px var(--ref-accent-shadow)}
.ref-float-tools svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ref-float-tools [data-scroll-top]{visibility:hidden;opacity:0;transform:translateY(8px);transition:.2s}
.ref-float-tools [data-scroll-top].visible{visibility:visible;opacity:1;transform:none}

.ref-dialog{position:fixed;inset:0;margin:auto;width:min(320px,calc(100% - 36px));max-height:88dvh;border:0;border-radius:16px;padding:27px 24px;text-align:center;color:var(--ref-text);box-shadow:0 18px 70px rgba(22,28,38,.26)}
.ref-dialog::backdrop{background:rgba(17,23,31,.68);backdrop-filter:blur(3px)}
.ref-dialog-close{position:absolute;right:12px;top:7px;border:0;background:transparent;color:#9aa0a9;font-size:27px}
.ref-dialog h2{font-size:18px;margin:2px 0 16px}.ref-dialog>img{display:block;width:210px;height:210px;max-width:100%;margin:0 auto;object-fit:contain}.ref-dialog>p{margin:12px 0 0;color:#8e959e;font-size:12px}
.ref-qr-empty{width:200px;height:200px;margin:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;border:1px dashed #d9dce1;border-radius:10px;background:#f7f8f9;color:#a1a7af}.ref-qr-empty svg{width:42px;height:42px;fill:none;stroke:currentColor;stroke-width:1.5}
.ref-preview-dialog{width:min(500px,calc(100% - 24px));padding:23px 18px}.m-example-preview{margin-top:8px}.m-example-preview>img{display:block;width:100%;height:auto}.m-example-preview .ref-sample-cover{aspect-ratio:1/1}.ref-icp{text-align:center;color:#9ca1a9;font-size:10px;padding:10px 15px 86px}
.ref-toast{position:fixed;left:50%;top:50%;z-index:99999;transform:translate(-50%,-42%);opacity:0;padding:10px 17px;border-radius:8px;background:rgba(25,30,38,.88);color:#fff;font-size:12px;transition:.22s;white-space:nowrap}.ref-toast.show{opacity:1;transform:translate(-50%,-50%)}

/* 商品详情 */
.ref-detail{padding:0 0 104px}
.ref-detail-header{position:sticky;top:0;z-index:35;height:45px;display:grid;grid-template-columns:42px 1fr 42px;align-items:center;background:rgba(255,255,255,.98);border-bottom:1px solid #f0f1f3;text-align:center}
.ref-detail-header button{height:45px;border:0;background:transparent;color:#656d77}.ref-detail-header button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.ref-detail-header strong{font-size:14px}
.ref-detail-gallery{background:#fff;position:relative;overflow:hidden}
.ref-detail-gallery .acg-cover{width:100%;display:block;background:#fff;overflow:hidden}
.ref-detail-gallery .item-cover{display:block;width:100%;height:auto;object-fit:contain}
.ref-detail-card{margin:11px 12px 0;padding:14px;background:#fff;border-radius:10px;box-shadow:var(--ref-shadow)}
.ref-price-row{display:flex;align-items:center;justify-content:space-between}.ref-price-stack{display:flex;flex-direction:column;align-items:flex-start;gap:5px}.ref-original-price{color:#a1a6ae;font-size:11px;text-decoration-thickness:1px}.ref-product-info-card .price{color:var(--ref-red-dark)!important;font-size:23px!important;line-height:1;font-weight:750}.ref-view-count-detail{display:inline-flex;align-items:center;min-height:32px;color:var(--ref-accent-text);font-size:16px;font-weight:700}.ref-share-trigger{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#f5f6f7;color:#777f89;cursor:pointer}.ref-share-trigger svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ref-product-info-card h1{margin:12px 0 9px;color:#2b3038;font-size:15px;font-weight:700;line-height:1.65}.ref-product-meta{display:flex;gap:18px;align-items:center;color:#a1a6ae;font-size:10px}.ref-like-button,.ref-favorite-button{padding:0;border:0;background:transparent;color:var(--ref-accent-text);font-size:10px;cursor:pointer}.ref-like-button.liked,.ref-favorite-button.favorited{color:var(--ref-red-dark);font-weight:700}.ref-like-button:disabled,.ref-favorite-button:disabled{opacity:.7}
.ref-delivery-card{display:flex;align-items:center;gap:11px}.ref-delivery-card b{font-size:13px}.ref-delivery-card span,.ref-delivery-card em{padding:4px 10px;border-radius:999px;font-style:normal;font-size:10px}.ref-delivery-card span{background:#eef6ff;color:#4e8ac0;border:1px solid #dcecff}.ref-delivery-card em{background:#edfaf8;color:#4da89a;border:1px solid #d8f1ed}
.ref-detail-shop-card{grid-template-columns:54px minmax(0,1fr);padding:14px}.ref-detail-shop-card .ref-shop-logo{width:54px;height:54px;border-radius:11px}.ref-detail-shop-card h2{font-size:13px}.ref-detail-shop-card .ref-shop-copy>p{font-size:10px;margin:3px 0 6px}.ref-detail-shop-card .ref-shop-trust{font-size:9px;gap:8px;color:#d6a62c}.ref-shop-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:4px}.ref-shop-actions button,.ref-shop-actions a{height:34px;display:flex;align-items:center;justify-content:center;gap:5px;border-radius:999px;font-size:11px;font-weight:600}.ref-shop-actions svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.ref-shop-actions button{border:1px solid var(--ref-accent-border);background:#fff;color:var(--ref-red-dark)}.ref-shop-actions a{border:0;background:linear-gradient(135deg,var(--ref-accent-start),var(--ref-red));color:#fff}
.ref-purchase-card{scroll-margin-top:55px;transition:box-shadow .3s}.ref-purchase-card.ref-attention{box-shadow:0 0 0 3px var(--ref-accent-shadow),var(--ref-shadow)}.ref-purchase-card h2,.item-detail>header h2{margin:0 0 14px;font-size:14px}.ref-purchase-card label{font-size:12px;color:#626a74}.ref-purchase-card .form-control{min-height:40px;border:1px solid #e0e3e8;border-radius:7px;font-size:13px}.ref-purchase-card .sku{border-radius:6px}.ref-purchase-card .qty-group button{border-color:#e0e3e8;background:#f7f8f9;color:#707781}.ref-captcha-group{width:min(245px,100%)}.ref-captcha-group img{height:40px;max-width:108px;object-fit:cover}.m-payment-pending{margin-top:13px;padding:11px 13px;border-radius:7px;background:#fff7e8;color:#9b7b37;font-size:11px;line-height:1.65}
.item-detail{padding:0;overflow:hidden}.item-detail>header{display:flex;align-items:center;padding:14px;border-bottom:1px solid var(--ref-line)}.item-detail>header h2{margin:0}.m-detail-image-count{margin-left:auto;color:#a0a6ae;font-size:10px}.ref-description{overflow:hidden;color:#555e69;font-size:13px;line-height:1.75}.ref-description>.acg-rich,.ref-description>.medical-course-description{padding:14px}.ref-description img{max-width:100%;height:auto}.ref-description .medical-preview-pages{margin:0 -14px -14px;padding:0;background:#fff}.medical-preview-pages figure{margin:0;padding:0;background:#fff}.medical-preview-pages figure+figure{border-top:1px solid #eceef1}.medical-preview-pages img{display:block;width:100%;max-width:none;height:auto;cursor:zoom-in}.medical-preview-pages img:focus-visible{outline:3px solid var(--ref-accent-shadow);outline-offset:-3px}.medical-preview-pages figcaption{display:none}.ref-description .medical-intro{padding:0}.ref-description .medical-file-meta{font-size:11px;color:#8e959e}.ref-safe-note{margin:12px;padding:11px 12px;border-radius:8px;background:#fff7f5;border:1px solid #ffe2df;color:#a66d67;font-size:10px;line-height:1.6;display:flex;align-items:flex-start;gap:5px}.ref-safe-note svg{width:14px;height:14px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ref-detail-buybar{position:fixed;left:50%;bottom:0;transform:translateX(-50%);z-index:90;width:min(540px,100%);height:64px;padding:7px 12px max(7px,env(safe-area-inset-bottom));display:flex;align-items:center;gap:8px;background:rgba(255,255,255,.98);border-top:1px solid #e8e9ec;box-shadow:0 -5px 18px rgba(26,35,45,.045);backdrop-filter:blur(10px)}
.ref-detail-buybar button{border:0;background:transparent;color:#6f7781}.ref-detail-buybar button:not(.ref-buy-now){width:39px;display:flex;flex-direction:column;align-items:center;gap:1px;font-size:9px}.ref-detail-buybar button:not(.ref-buy-now) svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.ref-detail-buybar .ref-buy-now{height:43px;flex:1;margin-left:3px;border-radius:999px;color:#fff;font-size:13px;font-weight:750;background:linear-gradient(135deg,var(--ref-accent-start),var(--ref-red));box-shadow:0 4px 12px var(--ref-accent-shadow)}
body:has(.ref-detail) .ref-bottom-nav{display:none}body:has(.ref-detail) .ref-float-tools{display:none}

/* 订单查询和通用页面 */
.medical-shop .container{max-width:540px;padding:14px 12px 92px!important}.medical-shop .panel{background:#fff;border:0;border-radius:11px;box-shadow:var(--ref-shadow);overflow:hidden}.medical-shop .panel-header{display:flex;align-items:center;gap:8px;padding:14px;border-bottom:1px solid var(--ref-line);background:#fff}.medical-shop .panel-title{margin:0;font-size:14px}.medical-shop .panel-body{padding:15px}.medical-shop .btn-primary{border-color:var(--ref-red);background:var(--ref-red)}.medical-shop .order-query-form .d-flex{flex-direction:column}.medical-shop .order-query-form .d-flex>div{width:100%!important}.medical-shop .btn-search-query{width:100%}
.ref-query{padding-bottom:90px}.ref-query .ref-detail-header a{height:45px;display:grid;place-items:center;color:#656d77}.ref-query .ref-detail-header svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.ref-query-card{margin:12px;padding:20px 16px;background:#fff;border-radius:11px;box-shadow:var(--ref-shadow);text-align:center}.ref-query-icon{width:48px;height:48px;margin:0 auto 12px;border-radius:50%;display:grid;place-items:center;background:var(--ref-accent-pale);color:var(--ref-red)}.ref-query-icon.muted{background:#f3f4f6;color:#9da3ab}.ref-query-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.ref-query-card h1{margin:0;font-size:17px}.ref-query-card h2{margin:0 0 12px;font-size:14px;text-align:left}.ref-query-card>p{margin:6px 0 16px;color:#949ba4;font-size:11px}.ref-query .order-query-form{display:grid;gap:10px}.ref-query .order-query-form .form-control{height:43px;border:1px solid #e1e4e8;border-radius:8px;font-size:13px}.ref-query .btn-search-query{height:42px;border:0;border-radius:999px;color:#fff;font-size:13px;font-weight:700;background:linear-gradient(135deg,var(--ref-accent-start),var(--ref-red));box-shadow:0 4px 12px var(--ref-accent-shadow)}.ref-query .order-list{text-align:left}.ref-spinner{width:28px;height:28px;margin:0 auto 12px;border:3px solid var(--ref-accent-spinner);border-top-color:var(--ref-red);border-radius:50%;animation:ref-spin .8s linear infinite}@keyframes ref-spin{to{transform:rotate(360deg)}}
.medical-auth .auth-wrapper{min-height:100vh;padding:28px 16px;background:var(--ref-bg)!important;display:flex;justify-content:center;align-items:center}.medical-auth .auth-card{width:min(420px,100%);padding:28px;background:#fff;border:0;border-radius:16px;box-shadow:0 12px 40px rgba(30,38,49,.08)}.medical-auth .btn-gradient{border:0;background:linear-gradient(135deg,var(--ref-accent-start),var(--ref-red))!important;color:#fff}.medical-auth .text-link{color:var(--ref-red)}

@media(min-width:700px){.store-page-shell{margin-top:18px;margin-bottom:18px;min-height:calc(100vh - 36px);border-radius:13px;overflow:hidden}.ref-bottom-nav,.ref-detail-buybar{bottom:18px;border-radius:0 0 13px 13px}.ref-home{padding-top:14px}.ref-product-copy h2{font-size:14px}}
@media(max-width:420px){.ref-home{padding-left:10px;padding-right:10px}.ref-shop-card{grid-template-columns:66px minmax(0,1fr);gap:10px;padding:12px}.ref-shop-logo{width:66px;height:66px}.ref-shop-trust,.ref-detail-shop-card .ref-shop-trust{gap:5px;font-size:10px;letter-spacing:-.15px;width:140%;transform:scaleX(.72);transform-origin:left center}.ref-stats{font-size:10px}.ref-product-grid{gap:8px}.ref-product-copy{padding:8px}.ref-product-copy h2{font-size:12px}.ref-product-copy strong{font-size:16px}.ref-float-tools{right:11px}}

/* 移动端紧凑排版：减少无效留白，保留标题、价格和操作的可读性。 */
@media(max-width:600px){
 body.medical-shop{font-size:13px}
 .ref-home{padding:8px 8px 76px}
 .ref-search-card{padding:8px;margin-bottom:8px;border-radius:9px}
 .ref-search-box{height:38px;padding-left:12px}
 .ref-search-box svg{width:14px;height:14px;margin-right:7px}
 .ref-search-box button{height:30px;min-width:54px;margin-right:3px;font-size:11px}
 .ref-notice{gap:6px;padding:7px 9px;margin-bottom:8px;font-size:10px;border-radius:8px}
 .ref-shop-card{grid-template-columns:56px minmax(0,1fr);gap:8px;padding:9px;margin-bottom:8px;border-radius:9px}
 .ref-shop-logo{width:56px;height:56px;border-radius:10px}
 .ref-shop-title-row{gap:5px}
 .ref-shop-title-row h1,.ref-detail-shop-card h2{font-size:14px}
 .ref-shop-title-row button{padding:5px 8px;font-size:10px}
 .ref-shop-copy>p{margin:3px 0 5px;font-size:10px}
 .medical-tagline{font-size:13px!important;line-height:1.25!important}
 .ref-shop-trust,.ref-detail-shop-card .ref-shop-trust{gap:6px;font-size:9px}
 .ref-detail-card.ref-delivery-card{margin:0 0 8px!important;padding:7px 9px;gap:6px;border-radius:8px}
 .ref-delivery-card b{font-size:11px}
 .ref-delivery-card span,.ref-delivery-card em{padding:3px 6px;font-size:9px}
 .ref-stats{min-height:27px;gap:6px;margin-bottom:8px;padding:5px 8px;font-size:9px;border-radius:7px}
 .ref-stats b{font-size:11px}
 .ref-product-grid{gap:7px}
 .ref-product-card{border-radius:8px}
 .ref-product-copy{padding:7px 8px 8px}
 .ref-product-copy h2{height:36px;margin-bottom:5px;font-size:11.5px;line-height:1.45}
 .ref-product-copy strong{font-size:14.5px}
 .ref-product-copy strong small{font-size:10px}
 .ref-product-copy span,.ref-card-original{font-size:9px}
 .ref-load-more{padding:12px 0 2px;font-size:10px;min-height:36px}
 .ref-bottom-nav{height:56px}
 .ref-bottom-nav a{gap:1px;font-size:10px}
 .ref-bottom-nav svg{width:18px;height:18px}
 .ref-float-tools{right:8px;bottom:66px;gap:6px}
 .ref-float-tools button,.ref-float-tools a{width:36px;height:36px}
 .ref-float-tools svg{width:16px;height:16px}
 .ref-detail{padding-bottom:80px}
 .ref-detail-header,.ref-detail-header button{height:40px}
 .ref-detail-header{grid-template-columns:36px 1fr 36px}
 .ref-detail-header strong{font-size:13px}
 .ref-detail-card{margin:8px 8px 0;padding:10px;border-radius:8px}
 .ref-price-stack{gap:3px}
 .ref-product-info-card h1{margin:8px 0 5px;font-size:14px;line-height:1.45}
 .ref-product-info-card .price{font-size:20px!important}
 .ref-original-price{font-size:10px}
 .ref-detail-shop-card{grid-template-columns:46px minmax(0,1fr);padding:10px}
 .ref-detail-shop-card .ref-shop-logo{width:46px;height:46px;border-radius:9px}
 .ref-shop-actions{gap:6px;margin-top:2px}
 .ref-shop-actions button,.ref-shop-actions a{height:30px;font-size:10px}
 .ref-purchase-card h2,.item-detail>header h2{margin-bottom:8px;font-size:13px}
 .ref-purchase-hint{font-size:11px;line-height:1.55}
 .ref-safe-note{margin:8px;padding:8px 9px;font-size:9px;line-height:1.5}
 .ref-detail-buybar{height:54px;padding:5px 8px max(5px,env(safe-area-inset-bottom));gap:5px}
 .ref-detail-buybar button:not(.ref-buy-now){width:34px;font-size:8px}
 .ref-detail-buybar button:not(.ref-buy-now) svg{width:15px;height:15px}
 .ref-detail-buybar .ref-buy-now{height:37px;font-size:12px}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.medical-preview-pages img{cursor:default!important;pointer-events:none;user-select:none}

/* 商品详情页：订单入口与购买按钮并列，订单入口始终位于立即购买左侧。 */
.ref-detail-buybar .ref-order-link{width:39px;display:flex;flex:0 0 auto;flex-direction:column;align-items:center;justify-content:center;gap:1px;color:#6f7781;font-size:9px;text-decoration:none}
.ref-detail-buybar .ref-order-link svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:699px){
 .ref-detail-buybar .ref-order-link{width:34px;font-size:8px}
 .ref-detail-buybar .ref-order-link svg{width:15px;height:15px}
}

/* Launch: prices remain visible before online checkout is enabled. */
.ref-product-copy .ref-card-prices{flex-direction:column;align-items:flex-start;gap:8px;white-space:normal}
.ref-product-copy .ref-card-original{font-size:12px;color:#737b87}
.ref-product-copy strong small{font-size:12px;font-weight:500;margin-right:3px}
.ref-current-price{display:flex;align-items:baseline;gap:7px;color:var(--ref-red-dark)}
.ref-current-price>small{font-size:14px;color:#737b87}
.ref-current-price>strong{font-size:26px;line-height:1.2}
.ref-original-price{font-size:13px;color:#737b87}
.ref-product-meta:empty{display:none}
.ref-purchase-hint{font-size:14px;line-height:1.75;color:#626a74}
button.ref-load-more{display:block;width:100%;border:0;background:transparent;font-size:13px;min-height:44px;cursor:pointer}
button.ref-load-more:disabled{cursor:default;color:#858d99}
.ref-shop-trust,.ref-detail-shop-card .ref-shop-trust{width:auto;transform:none;flex-wrap:wrap;font-size:12px;gap:8px;letter-spacing:normal;color:var(--ref-accent-text)}
.ref-dialog p{font-size:13px;line-height:1.75}
.ref-product-copy h2{font-size:14px;height:44px}
.ref-search-box input{font-size:16px}
.medical-shop button:focus-visible,.medical-shop a:focus-visible{outline:2px solid var(--ref-red);outline-offset:3px}
.ref-payment-choices-hidden{display:none!important}

/* 店铺商品卡片：标题完整展示，避免移动端两行截断导致商品名称不全。 */
.ref-product-copy h2{height:auto;min-height:0;display:block;overflow:visible;-webkit-line-clamp:unset;-webkit-box-orient:initial;white-space:normal;overflow-wrap:anywhere}
.ref-home .ref-card-original{display:none!important}
body.medical-shop .ref-shop-actions button,body.medical-shop .ref-shop-actions a{font-size:13px!important}
body.medical-shop .ref-shop-actions a{color:#fff!important}
@media(max-width:420px){body.medical-shop .ref-shop-actions button,body.medical-shop .ref-shop-actions a{font-size:12px!important}}

/* 全店付款人数展示开关：仅影响商品卡片和详情页文案。 */
body.medical-shop[data-show-paid-count="0"] .ref-paid-count,
body.medical-shop[data-show-paid-count="0"] .ref-detail-paid{display:none!important}
