:root{color-scheme:light;--canvas:#f3f4f6;--ink:#292d30;--muted:#92969c;--line:#eff0f2;--green:#35bb50;--price:#ff763a;font:16px/1.55 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--canvas)}

*{box-sizing:border-box;scrollbar-width:thin;scrollbar-color:#bbc0c5 transparent}
html{scrollbar-gutter:stable}
::-webkit-scrollbar{width:6px;height:6px;background:transparent}
::-webkit-scrollbar-track,::-webkit-scrollbar-corner{background:transparent}
::-webkit-scrollbar-thumb{background:#bbc0c5;border-radius:6px}
.app-shell,.card,form,.facts,.report,.product-summary,.product-card{min-width:0;max-width:100%}
.card{overflow-wrap:anywhere}
.tabs{max-width:100%;overscroll-behavior-x:contain;scrollbar-width:none}
.tabs::-webkit-scrollbar{display:none}
.tabs>*{flex-shrink:0}
.row>*{min-width:0}
#pagination{flex-wrap:wrap}
body{margin:0;min-width:0;padding-bottom:env(safe-area-inset-bottom)}
body.with-tabbar{padding-bottom:calc(74px + env(safe-area-inset-bottom))}
body.with-dock{padding-bottom:calc(var(--dock-height,90px) + 14px)}
body.with-checkout{--dock-height:120px}
button,input{font:inherit}
button,a,input{ -webkit-tap-highlight-color:transparent}
a{color:inherit;text-decoration:none}
button{cursor:pointer}
button:disabled{cursor:wait;opacity:.55}
button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid #218c37;outline-offset:3px}
h1,h2,p{margin:0}
h2{font-size:18px;line-height:1.4}
p{margin-top:8px}
small,.small{font-size:12px}
strong{font-weight:650}
img{display:block;max-width:100%;object-fit:contain}
[hidden]{display:none!important}
.grow{flex:1;min-width:0}
.muted{color:#767c84}
.price{color:var(--price);white-space:nowrap;font-size:19px}
.row{display:flex;gap:14px;justify-content:space-between;align-items:center}
.topbar{position:sticky;top:0;z-index:15;height:50px;background:#fff;border-bottom:1px solid var(--line)}
.topbar-inner{height:100%;max-width:720px;margin:auto;display:grid;grid-template-columns:40px 1fr 40px;align-items:center;padding:0 12px}
.topbar h1{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;outline:none;text-align:center;font-size:17px;font-weight:600}
.icon-button{min-width:40px;min-height:44px;border:0;background:none;font-size:29px;padding:0;color:#454a50}
.icon-button[hidden]{display:block!important;visibility:hidden}
#header-help{font-size:18px}
#back{display:grid;place-items:center;width:40px;height:44px;line-height:1}
.direction-icon{display:block;width:22px;height:22px;flex:0 0 22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#back .direction-icon{width:24px;height:24px}
.app-shell{max-width:720px;margin:0 auto;padding:12px 12px 24px}
.card{background:#fff;border-radius:12px;padding:16px;margin-bottom:12px}
.primary,.secondary{border:0;display:inline-flex;justify-content:center;align-items:center;min-height:44px;padding:10px 24px;border-radius:24px;font-size:15px}
.primary{background:var(--green);color:white}
.secondary{background:#fff;border:1px solid #dfe3e7;color:#5b626b}
.wide{width:100%;min-height:49px}
.text-button{border:0;background:none;padding:8px 12px}
.home-search{min-height:54px;display:flex;gap:12px;align-items:center;background:#fff;border-radius:12px;padding:12px 20px;color:var(--muted)}
.home-search>span{font-size:27px;line-height:1}
.tabs{display:flex;align-items:center;gap:28px;padding:20px 14px 23px;overflow:auto;white-space:nowrap}
.tabs button{border:0;background:none;padding:0;color:inherit;font-size:16px}
.tabs .active{position:relative;font-weight:700;color:#252a2e}
.tabs .active:after{content:"";position:absolute;left:50%;bottom:-10px;width:24px;height:10px;transform:translateX(-50%);background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 12'%3E%3Cpath d='M3 3 Q14 15 25 3' fill='none' stroke='%2335bb50' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat;pointer-events:none}
.product-card{position:relative;display:flex;align-items:center;gap:16px;padding:17px;background:#fff;border-radius:13px;margin-bottom:14px;min-height:116px}
.product-card.featured{border:1px solid #f7cacc}
.product-cover{width:78px;height:78px;flex-shrink:0;object-fit:cover;border-radius:10px;background:#f6f7f8}
.product-card h2{font-size:18px;margin-right:30px}
.product-card p,.product-summary p{color:var(--muted);font-size:15px;line-height:1.4;margin-top:6px}
.recommended{position:absolute;right:0;top:0;border-radius:0 12px 0 12px;background:#f75860;color:white;font-size:12px;padding:4px 12px}
.chevron{font-size:28px;color:#b4b7bc}
.product-summary{display:flex;align-items:flex-start;gap:14px}
.product-summary .price{font-size:20px}
.product-summary h2{font-size:19px}
.prose{line-height:1.85;font-size:14px}
.prose h2{margin-bottom:12px;font-size:17px}
.notice{border:1px solid #ffe5a1;background:#fff5d3;color:#857447;border-radius:9px;padding:12px 16px;font-size:13px;line-height:1.5;margin:12px 0 14px}
.report{padding:0 20px 12px}
.report-title{font-size:18px;font-weight:500;text-align:center;padding:18px 0;border-bottom:1px solid var(--line)}
dl{margin:0}
dd{margin:0;overflow-wrap:anywhere;white-space:pre-wrap}
.report dl>div{display:grid;grid-template-columns:30% minmax(0,1fr);gap:12px;align-items:center;min-height:49px;border-bottom:1px dashed #e5e7ea;font-size:14px;padding:12px 0}
.report dt{color:#90949a}
.report dd{text-align:right}
.report .image-row{min-height:134px}
.image-row img{max-width:110px;max-height:110px;margin-left:auto}
.report dl>div:last-child{border-bottom:0}
.action-area{margin:18px 0 0}
.facts{font-size:15px}
.facts>div{display:flex;gap:20px;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--line);align-items:baseline}
.facts>div:first-child{padding-top:0}
.facts>div:last-child{border:0;padding-bottom:0}
.facts>div>:first-child{color:#8d9299;flex-shrink:0}
.facts>div>:last-child{text-align:right;overflow-wrap:anywhere;max-width:74%;font-weight:400}
.facts .price{font-weight:650!important}
label{font-size:15px}
input:not([type=checkbox]){width:100%;min-height:47px;border:1px solid #e7e9ec;border-radius:7px;padding:10px 12px;outline-offset:1px;background:#fff;color:var(--ink);margin-top:12px}
input::placeholder{color:#b6bbc1}
.required{color:#f28a8f;font-size:12px}
.reminder{background:#fffae8;border:1px solid #f7d999;border-radius:8px;padding:14px 16px;color:#cb8735;font-size:13px;margin-top:18px}
.reminder>strong{font-size:16px}
.reminder p{margin-top:5px}
.payment-option{display:flex;gap:14px;align-items:center;margin-top:20px;background:#eff8ff;border:1px solid #55bc72;border-radius:9px;padding:16px}
.payment-option p{font-size:13px;color:var(--muted);margin-top:2px}
.wechat{position:relative;width:34px;height:34px;flex-shrink:0;background:#07c160}
.wechat i{position:absolute;width:22px;height:18px;left:3px;top:6px;border-radius:50%;background:#fff}
.wechat i:before{content:"••";position:absolute;color:#07c160;font-size:11px;letter-spacing:3px;left:5px;top:-2px}
.wechat i:after{content:"";position:absolute;bottom:-3px;left:3px;border-top:6px solid #fff;border-right:6px solid transparent}
.wechat i+i{left:13px;top:14px;width:18px;height:15px;border:1px solid #07c160}
.wechat i+i:before{font-size:9px;left:3px}
.selected{background:var(--green);border-radius:50%;color:white;width:20px;height:20px;text-align:center;line-height:20px;font-size:14px}
.agreement{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:0;font-size:12px;margin-bottom:8px;min-height:30px}
.agreement label{min-height:30px;cursor:pointer;display:flex;align-items:center;font-size:12px;color:#7d838a}
.agreement input{accent-color:var(--green);width:17px;height:17px;margin:0 5px 0 0}
.protocol-link{display:inline-flex;align-items:center;min-height:30px;color:#2caa48;font-size:12px}
.guide-images{display:flex;overflow:auto;scroll-snap-type:x mandatory;margin-top:15px;scrollbar-width:none;overscroll-behavior-x:contain}
.guide-images::-webkit-scrollbar{display:none}
.guide-images img{flex:0 0 100%;width:100%;min-width:100%;height:320px;scroll-snap-align:start}
#payment-feedback:empty{display:none}
#payment-feedback{color:#c06043;background:#fff0ed;padding:10px;border-radius:7px;font-size:13px;margin-bottom:12px}
.tabbar{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:space-around;padding:10px 0 calc(10px + env(safe-area-inset-bottom));border-top:1px solid #dddfe2;background:#fafbfc;z-index:10}
.tabbar a{display:flex;flex-direction:column;align-items:center;min-width:70px;gap:2px;color:#a3a7ac;font-size:12px}
.tabbar a.active{color:var(--green)}
.tab-icon{width:27px;height:27px;object-fit:contain}
.order-tabs{gap:24px;padding-left:6px}
.order-card h2{font-size:16px;overflow-wrap:anywhere}
.order-card .facts{font-size:13px;margin:16px 0}
.order-card .facts>div{padding:4px 0;border:0}
.order-card .price{font-size:17px}
#pagination{display:flex;gap:12px;align-items:center;justify-content:center;font-size:12px;padding:16px 0}
.status-card{text-align:center;padding:26px}
.status-icon{display:block;font-size:36px;color:var(--green)}
.status-card p{font-size:13px;color:#898f96}
.order-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:22px;flex-wrap:wrap}
.serial-value{font-family:ui-monospace,monospace;font-size:17px!important;font-weight:600!important}
.free-search{display:flex;align-items:center;background:white;border-radius:10px;padding:0 7px}
.free-search input{margin:0;border:0}
.free-search button{flex-shrink:0;font-size:14px}
.divider{display:flex;align-items:center;gap:12px;color:#91969d;font-size:13px;font-weight:400;margin:20px 0}
.divider:before,.divider:after{content:"";height:1px;background:#e4e7eb;flex:1}
.faq{border-bottom:1px solid var(--line);padding:16px 0}
.faq summary{font-size:14px;cursor:pointer;font-weight:600}
.faq p{font-size:13px;color:#858b93;line-height:1.85;padding-top:8px}
.profile{text-align:center;padding:24px 0 28px}
.avatar{width:56px;height:56px;border-radius:50%;overflow:hidden;background:#eceef0;margin:0 auto 10px}
.avatar img{width:100%;height:100%;object-fit:cover}
.profile h2{font-size:17px;font-weight:400}
.profile .login-button{color:#28a947;font-size:14px}
.menu{background:white;border-radius:12px;overflow:hidden;margin-bottom:12px}
.menu-row{width:100%;border:0;background:#fff;display:flex;gap:13px;align-items:center;padding:17px 16px;border-bottom:1px solid var(--line);font-size:15px;text-align:left;min-height:62px}
.menu-row:last-child{border-bottom:0}
.menu-row.separate{border-radius:12px;margin-bottom:12px}
.menu-icon{width:22px;height:22px;flex-shrink:0}
.menu-row .chevron{font-size:24px;line-height:1}
.account-note{padding:6px 4px}
.about-hero{display:flex;align-items:center;gap:16px}
.about-icon{width:55px;height:55px;border-radius:12px}
.profile-identity{display:flex;gap:14px;align-items:center;padding-bottom:20px}
.profile-identity .avatar{margin:0;flex:0 0 56px}
.profile-identity>div{min-width:0}
.profile-identity h2{overflow-wrap:anywhere}
.profile-identity p{margin-top:4px}
.section-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.service-list{list-style:none;counter-reset:service;padding:0;margin:0}
.service-list li{counter-increment:service;position:relative;padding:16px 0 16px 36px;border-bottom:1px solid var(--line)}
.service-list li:last-child{border-bottom:0;padding-bottom:0}
.service-list li:before{content:"0" counter(service);position:absolute;left:0;color:var(--green);font-size:13px}
.service-list p{color:#767c84;margin-top:4px}
.terms-header{padding-top:22px;padding-bottom:22px}
.section-index{display:inline-block;color:var(--green);font-size:13px;margin-right:12px;font-weight:500}
.terms-section p{white-space:pre-wrap}
.empty{padding:55px 22px;text-align:center}
.empty p{color:#959ba2;font-size:14px}
.empty .primary,.empty .secondary{margin-top:20px}
dialog{border:0;border-radius:17px;color:var(--ink);width:min(420px,calc(100% - 36px));padding:0;max-height:85svh;overflow:auto}
dialog::backdrop{background:#0007}
.dialog-body{padding:25px}
.dialog-body h2{text-align:center;font-size:20px;margin-bottom:17px}
.dialog-body p{font-size:14px;color:#7b828a}
.confirm-serial{display:block;font-size:clamp(20px,5.5vw,27px);font-family:ui-monospace,monospace;text-align:center;overflow-wrap:anywhere;letter-spacing:1px;background:#f5f7f8;border-radius:8px;padding:17px 10px;margin:15px 0;color:#242a30}
.dialog-body .reminder p{color:#b27c32;font-size:12px}
.dialog-actions{display:flex;gap:10px;margin-top:23px}
.dialog-actions>*{flex:1;padding:10px 9px;font-size:14px}
#toast{position:fixed;bottom:100px;left:50%;transform:translateX(-50%);background:#252a2ee8;color:#fff;padding:12px 20px;border-radius:9px;font-size:14px;max-width:90vw;opacity:0;pointer-events:none;z-index:30}
#toast.show{opacity:1}

@media(min-width:900px){.topbar{height:58px}
.app-shell{padding-top:25px}
.tabbar{left:50%;right:auto;transform:translateX(-50%);width:720px;border-radius:14px 14px 0 0}
.product-card{min-height:128px}
.product-cover{width:86px;height:86px}
.products{display:grid;gap:0}
.product-summary{padding:23px}
.card{padding:24px}
.report{padding:0 24px 12px}
}

@media(max-width:380px){.app-shell{padding:12px 10px 25px}
.product-cover{width:65px;height:65px}
.product-card{gap:12px;padding:13px}
.product-card h2{font-size:17px}
.product-card p{font-size:13px}
.card{padding:16px}
.product-summary{gap:10px}
.product-summary h2{font-size:16px}
.product-summary p{font-size:12px}
.product-summary .price{font-size:17px}
.report{padding:0 15px 10px}
.report dl>div{font-size:13px}
.tabs{gap:22px}
.dialog-body{padding:20px}
}

@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important}
}

.faq summary{list-style:none;position:relative;padding-right:22px}
.faq summary::-webkit-details-marker{display:none}
.faq summary:after{content:"";position:absolute;right:2px;top:6px;width:7px;height:7px;border-right:1px solid #b7bdc5;border-bottom:1px solid #b7bdc5;transform:rotate(45deg)}
.faq[open] summary:after{transform:rotate(225deg);top:10px}

/* Match the paid mini program: fixed actions, one price in the page itself. */
.operation-dock{position:fixed;z-index:20;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:720px;margin:0;background:#fff;border-top:1px solid var(--line);padding:12px 14px calc(12px + env(safe-area-inset-bottom))}
.operation-dock .wide{min-height:46px}
.checkout-dock #payment-feedback{max-height:100px;overflow:auto;margin:0 0 8px}
.guide-controls{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:12px}
.guide-arrow{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;min-width:36px;min-height:36px;padding:0;border-radius:50%;border:1px solid #dcebdd;background:#f0f8ef;color:#49ad5f;line-height:1;appearance:none}
.guide-arrow:disabled{cursor:default;opacity:.35}
.guide-dots{display:flex;gap:0;align-items:center}
.guide-dots button{border:0;background:none;width:26px;height:36px;padding:9px;position:relative}
.guide-dots button:after{content:"";display:block;width:7px;height:7px;border-radius:5px;background:#d6d9de}
.guide-dots button.active:after{background:var(--green);width:16px;margin-left:-4px}
.field-error{color:#cf654d;font-size:12px;line-height:1.5;margin-top:7px}
.field-error:empty{display:none}
input[aria-invalid=true]{border-color:#d26a57;background:#fffafa}
.help-search{display:flex;align-items:center;background:#f7f8fa;border-radius:25px;margin-top:15px;padding:0 12px;gap:8px}
.help-search input{border:0;background:none;margin:0;min-width:0;padding-left:0;font-size:14px}
.help-search input::-webkit-search-cancel-button{display:none}
.search-icon{width:13px;height:13px;border:1.5px solid #a4aab1;border-radius:50%;position:relative;flex-shrink:0;margin-right:3px}
.search-icon:after{content:"";position:absolute;bottom:-4px;right:-3px;width:6px;height:1.5px;background:#a4aab1;transform:rotate(45deg)}
#faq-clear{font-size:23px;min-height:44px;padding:0 7px;color:#a4aab1}
.faq-empty{text-align:center;color:#969ca4;font-size:13px;padding:25px 0}
.faq-empty button{margin-top:15px}
.status-muted{color:#969da5}
.copy-value{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap;justify-content:flex-end}
.copy-button{border:0;background:none;color:#39a952;font-size:12px;min-height:30px;padding:0 3px}
#toast{bottom:calc(var(--dock-height,80px) + 16px)}
.primary:active{background:#269d40}
.secondary:active,.menu-row:active,.product-card:active{background:#f7faf7}
@media(max-width:420px){.product-cover{width:68px;height:68px}.product-card{gap:12px;min-height:106px;padding:14px}.product-card p{font-size:13px}.product-summary h2{font-size:17px}.product-summary p{font-size:13px}.product-summary .price{font-size:18px}.report dl>div{min-height:43px}.prose{font-size:13px}.payment-option{padding:14px}.checkout-dock{padding-left:12px;padding-right:12px}.topbar h1{font-size:16px}}

.loading-card{display:flex;justify-content:center;align-items:center;gap:10px;color:#91979e;font-size:14px;min-height:150px}
.loading-spinner{width:19px;height:19px;border:2px solid #e2e9e3;border-top-color:var(--green);border-radius:50%;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

#orders-list{margin-top:14px}

#quota-status{min-height:64px}
