/* H5 shell: maps WeChat built-in component defaults and phone frame onto the exported mini-program styles. */
:root{--app-width:min(100vw,480px);--rpx:calc(var(--app-width) / 750);--app-height:100vh;--gutter:max(0px,calc((100vw - var(--app-width)) / 2));--status-bar-height:0px;--window-top:0px;--window-bottom:0px;color-scheme:light}
@supports(height:100dvh){:root{--app-height:100dvh}}
html{background:#e9e6f4;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0 auto!important;width:var(--app-width);min-height:var(--app-height);position:relative;overflow-x:hidden;-webkit-tap-highlight-color:transparent;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","HarmonyOS Sans SC","Microsoft YaHei","Helvetica Neue",Arial,sans-serif}
@media(min-width:481px){html{background:radial-gradient(ellipse 60% 50% at 80% 0,rgba(255,94,156,.18),transparent 70%),radial-gradient(ellipse 60% 60% at 0 100%,rgba(108,75,255,.2),transparent 70%),#eeebf8}body{box-shadow:0 0 0 1px rgba(108,75,255,.06),0 30px 80px rgba(48,30,140,.16)}}
*,*:before,*:after{box-sizing:border-box}
#app{min-height:var(--app-height);position:relative}
a{color:inherit;text-decoration:none}
img{display:inline-block;max-width:none;object-fit:cover;border:0}
img[data-mode=fit]{object-fit:contain}
button{position:relative;display:block;margin-left:auto;margin-right:auto;padding-left:14px;padding-right:14px;box-sizing:border-box;font-size:18px;text-align:center;text-decoration:none;line-height:2.55555556;border-radius:5px;-webkit-tap-highlight-color:transparent;overflow:hidden;color:#000;background-color:#f8f8f8;border:0;font-family:inherit;cursor:pointer}
button:after{content:" ";width:200%;height:200%;position:absolute;top:0;left:0;border:1px solid rgba(0,0,0,.2);transform:scale(.5);transform-origin:0 0;box-sizing:border-box;border-radius:10px;pointer-events:none}
button[disabled]{color:rgba(0,0,0,.3);background-color:#f7f7f7;cursor:not-allowed}
input,textarea{font:inherit;color:inherit;border:0;outline:0;background:none;padding:0;margin:0;min-width:0;display:block}
textarea{resize:none;width:300px;height:150px}
input::placeholder,textarea::placeholder{color:#b6b3c7}
[role=button],[data-go],[data-action]{cursor:pointer}
:focus-visible{outline:2px solid #6c4bff;outline-offset:2px}
.h5-scroll-x{overflow-x:auto;overflow-y:hidden;white-space:nowrap;scrollbar-width:none;-webkit-overflow-scrolling:touch;display:block}
.h5-scroll-y{overflow-y:auto;overflow-x:hidden;scrollbar-width:none;-webkit-overflow-scrolling:touch;display:block;overscroll-behavior:contain}
.h5-scroll-x::-webkit-scrollbar,.h5-scroll-y::-webkit-scrollbar{display:none}
.customer-tabs,.bottom-bar,.showcase-order-bar,.pay-bar,.h5-fixed-bottom,.composer-fixed{left:var(--gutter)!important;right:var(--gutter)!important}
/* Swiper */
.h5-swiper{position:relative;overflow:hidden}
.h5-swiper-track{display:flex;height:100%;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;scroll-behavior:smooth}
.h5-swiper-track::-webkit-scrollbar{display:none}
.h5-swiper-track>*{flex:0 0 100%;height:100%;scroll-snap-align:start}
/* Header */
.h5-header{position:sticky;top:0;z-index:50;display:grid;grid-template-columns:44px 1fr 44px;align-items:center;height:48px;padding:0 6px;background:rgba(246,245,251,.9);backdrop-filter:blur(18px) saturate(1.5);-webkit-backdrop-filter:blur(18px) saturate(1.5);border-bottom:1px solid rgba(235,232,245,.8)}
.h5-header h1{margin:0;text-align:center;font-size:17px;font-weight:700;color:#1d1a33;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.h5-header>div{display:flex;justify-content:flex-end}
.h5-back{width:40px;height:40px;padding:0;margin:0;border-radius:50%;background:transparent;display:flex;align-items:center;justify-content:center}
.h5-back:after{display:none}
.h5-back img{width:22px;height:22px;object-fit:contain}
.h5-back:active{background:rgba(108,75,255,.08)}
.h5-chevron{width:calc(24 * var(--rpx));height:calc(24 * var(--rpx));object-fit:contain;flex-shrink:0}
.h5-overlay-back{position:fixed;top:calc(12px + env(safe-area-inset-top));left:calc(var(--gutter) + 12px);z-index:60;width:36px;height:36px;padding:0;margin:0;border-radius:50%;background:rgba(19,15,44,.42);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);display:flex;align-items:center;justify-content:center}
.h5-overlay-back:after{display:none}
.h5-overlay-back img{width:18px;height:18px;object-fit:contain;filter:none}
/* Loading, empty, toast */
.h5-loading{min-height:50vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;color:#8a85a5;font-size:14px;letter-spacing:1px}
.h5-loading i{width:34px;height:34px;border-radius:50%;border:3px solid #e6e0ff;border-top-color:#6c4bff;animation:h5-spin .8s linear infinite}
@keyframes h5-spin{to{transform:rotate(360deg)}}
.h5-empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:56px 28px;color:#7d7899;font-size:14px;line-height:1.6}
.h5-empty img{width:120px;height:120px;object-fit:contain}
.h5-empty strong{color:#1d1a33;font-size:16px}
.h5-empty p{margin:0}
#toast{position:fixed;left:50%;top:42%;z-index:9999;transform:translate(-50%,-50%) scale(.92);max-width:min(78vw,360px);padding:12px 18px;border-radius:14px;background:rgba(29,26,51,.88);color:#fff;font-size:14px;line-height:1.6;text-align:center;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;backdrop-filter:blur(8px)}
#toast.visible{opacity:1;transform:translate(-50%,-50%) scale(1)}
.h5-primary,.h5-outline,.h5-ghost{margin:0;border-radius:999px;font-size:15px;font-weight:650;line-height:44px;padding:0 22px}
.h5-primary{color:#fff;background:linear-gradient(115deg,#6c4bff,#a05cff 55%,#ff5e9c);box-shadow:0 10px 22px rgba(108,75,255,.28)}
.h5-outline{color:#5b3df0;background:#fff;border:1px solid #e2dbfe}
.h5-ghost{color:#5b3df0;background:#efebff}
.h5-primary:after,.h5-outline:after,.h5-ghost:after{display:none}
.h5-primary[disabled]{background:#e6e3ef;color:#a09bb8;box-shadow:none}
/* Dialogs and sheets */
dialog{border:0;padding:0;color:#1d1a33}
dialog::backdrop{background:rgba(19,15,44,.5);backdrop-filter:blur(3px)}
.h5-dialog{width:min(86vw,340px);border-radius:22px;padding:24px 22px 18px;box-shadow:0 30px 70px rgba(19,15,44,.3);animation:h5-pop .25s cubic-bezier(.2,.9,.3,1.2)}
.h5-dialog h2{margin:0 0 8px;font-size:18px;text-align:center}
.h5-dialog p{margin:0;color:#6f6a88;font-size:14px;line-height:1.7;text-align:center}
.h5-dialog-actions{display:flex;gap:10px;margin-top:20px}
.h5-dialog-actions button{flex:1;margin:0;border-radius:999px;font-size:15px;line-height:42px;background:#f3f0fb;color:#4c4766}
.h5-dialog-actions button:after{display:none}
.h5-dialog-actions .h5-primary{color:#fff}
@keyframes h5-pop{from{opacity:0;transform:scale(.9)}}
.h5-sheet{position:fixed;inset:auto 0 0 0;margin:0 auto;width:var(--app-width);max-width:var(--app-width);max-height:88vh;border-radius:26px 26px 0 0;padding:22px 20px calc(20px + env(safe-area-inset-bottom));box-shadow:0 -20px 60px rgba(19,15,44,.25);animation:h5-sheet .32s cubic-bezier(.2,.8,.2,1);overflow:auto}
.h5-sheet h2{margin:0 0 6px;font-size:19px;font-weight:800}
.h5-sheet .h5-sheet-sub{margin:0 0 16px;color:#7d7899;font-size:13px;line-height:1.7}
.h5-sheet-close{position:absolute;right:12px;top:12px;width:34px;height:34px;padding:0;margin:0;border-radius:50%;background:#f3f0fb;display:flex;align-items:center;justify-content:center}
.h5-sheet-close:after{display:none}
.h5-sheet-close img{width:14px;height:14px;object-fit:contain}
@keyframes h5-sheet{from{transform:translateY(100%)}}
.h5-preview{max-width:100vw;max-height:100vh;width:100vw;height:100vh;background:rgba(10,8,24,.94);display:flex;align-items:center;justify-content:center}
.h5-preview img{max-width:100%;max-height:100%;object-fit:contain}
.h5-preview-close{position:absolute;top:14px;right:14px;margin:0;font-size:14px;line-height:34px;border-radius:999px;background:rgba(255,255,255,.16);color:#fff}
.h5-preview-close:after{display:none}
/* Login */
.h5-login-hero{display:flex;align-items:center;gap:14px;margin-bottom:16px}
.h5-login-hero img{width:56px;height:56px;border-radius:16px;object-fit:contain;background:linear-gradient(135deg,#f1ecff,#ffeaf3);padding:6px}
.h5-login-steps{display:grid;gap:10px;margin:0 0 16px;padding:0;list-style:none;counter-reset:s}
.h5-login-steps li{display:flex;gap:10px;align-items:flex-start;color:#4c4766;font-size:13px;line-height:1.6;counter-increment:s}
.h5-login-steps li:before{content:counter(s);flex:none;width:20px;height:20px;border-radius:50%;background:linear-gradient(135deg,#6c4bff,#ff5e9c);color:#fff;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center}
.h5-qr{display:flex;flex-direction:column;align-items:center;gap:10px;padding:16px;border-radius:20px;background:linear-gradient(180deg,#f7f4ff,#fff);border:1px solid #ece7ff;margin-bottom:14px}
.h5-qr canvas,.h5-qr img{width:200px;height:200px;border-radius:12px;background:#fff;padding:10px;box-shadow:0 10px 26px rgba(76,55,190,.12)}
.h5-qr small{color:#8a85a5;font-size:12px;text-align:center;line-height:1.6;word-break:break-all}
.h5-login-state{display:flex;align-items:center;justify-content:center;gap:8px;color:#5b3df0;font-size:13px;font-weight:650;margin-bottom:12px}
.h5-login-state i{width:8px;height:8px;border-radius:50%;background:#6c4bff;animation:pw-glow 1.6s infinite}
.h5-login-state.failed{color:#e5484d}.h5-login-state.failed i{background:#e5484d;animation:none}
.h5-login-actions{display:grid;gap:10px}
.h5-legal{margin:12px 0 0;color:#a09bb8;font-size:12px;text-align:center;line-height:1.7}
.h5-legal a{color:#5b3df0}
/* Generic list pages built on role-ui theme */
.h5-page{min-height:var(--app-height);background:#f6f5fb;padding-bottom:calc(24px + env(safe-area-inset-bottom))}
.h5-page .page-inner{padding-top:4px}
.h5-tabs{display:flex;gap:8px;padding:10px 12px;position:sticky;top:48px;z-index:40;background:rgba(246,245,251,.94);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.h5-tabs .filter{flex:none}
.h5-sub-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;padding-top:14px;margin-top:14px;border-top:1px solid #f3f1f9}
.h5-sub-actions button{margin:0;font-size:13px;line-height:34px;padding:0 16px;border-radius:999px}
.h5-fixed-bottom{position:fixed;bottom:0;z-index:90;display:flex;gap:10px;padding:10px 14px calc(10px + env(safe-area-inset-bottom));background:rgba(255,255,255,.95);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-top:1px solid #ece8f7}
.h5-fixed-bottom button{flex:1}
.h5-bottom-space{height:calc(84px + env(safe-area-inset-bottom))}
.h5-form{display:grid;gap:14px}
.h5-field{display:grid;gap:8px}
.h5-field>span{font-size:14px;font-weight:650;color:#4c4766}
.h5-field input,.h5-field textarea,.h5-field select{width:100%;border:1px solid #ebe8f5;border-radius:14px;background:#faf9fe;padding:12px 14px;font-size:15px;color:#1d1a33;font-family:inherit}
.h5-field textarea{height:110px;line-height:1.6}
.h5-field select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,#8a85a5 50%),linear-gradient(135deg,#8a85a5 50%,transparent 50%);background-position:calc(100% - 20px) 50%,calc(100% - 15px) 50%;background-size:5px 5px;background-repeat:no-repeat}
.h5-field input:focus,.h5-field textarea:focus,.h5-field select:focus{border-color:#9a7dff;background:#fff;box-shadow:0 0 0 3px rgba(108,75,255,.12)}
.h5-stars{display:flex;gap:6px}
.h5-stars button{margin:0;padding:0;width:34px;height:34px;line-height:34px;font-size:24px;background:none;color:#ddd8ee}
.h5-stars button:after{display:none}
.h5-stars button.on{color:#ffc65c}
.h5-upload{display:flex;gap:8px;flex-wrap:wrap}
.h5-upload img,.h5-upload label{width:76px;height:76px;border-radius:14px}
.h5-upload label{display:flex;align-items:center;justify-content:center;border:1.5px dashed #d0cbe6;color:#9c97b6;font-size:26px;cursor:pointer;background:#faf9fe}
.h5-upload input{display:none}
.h5-note{color:#8a85a5;font-size:12px;line-height:1.7}
.h5-rich{font-size:14px;line-height:1.85;color:#5f5a7c;word-break:break-word}
.h5-rich img{max-width:100%;height:auto;display:block;border-radius:12px;margin:8px 0}
.h5-rich p{margin:4px 0}
/* Chat */
.h5-chat{height:var(--app-height);display:flex;flex-direction:column;background:#f6f5fb}
.h5-chat .chat-scroll{flex:1;height:auto;overflow-y:auto}
.h5-chat .composer{padding-bottom:calc(10px + env(safe-area-inset-bottom))}
.h5-chat .message-input{display:block;width:100%}
.h5-chat .image-bubble img{width:150px;max-height:220px;object-fit:cover;border-radius:12px;display:block}
.h5-image-pick{margin:0;width:38px;height:38px;padding:0;border-radius:12px;background:#f3f0ff;display:flex;align-items:center;justify-content:center;flex:none}
.h5-image-pick:after{display:none}
.h5-image-pick img{width:22px;height:22px;object-fit:contain}
.h5-chat .composer .primary{flex:none}
/* Pull to refresh hint */
.h5-refresh{display:block;margin:12px auto;font-size:12px;line-height:30px;border-radius:999px;background:#efebff;color:#5b3df0;padding:0 16px}
.h5-refresh:after{display:none}
@media (prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
/* Native select sits invisibly over the mini-program select row so the system picker opens on tap. */
.select-field{position:relative}
.h5-native-select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font-size:16px}
/* Pay sheet, coupons, menu */
.h5-pay-amount{display:flex;align-items:baseline;justify-content:space-between;padding:14px 16px;border-radius:16px;background:linear-gradient(120deg,#f3efff,#fff0f6);margin-bottom:12px}
.h5-pay-amount span{color:#6f6a88;font-size:13px}.h5-pay-amount strong{color:#ff4f63;font-size:26px}
.h5-pay-methods{display:grid;gap:10px}
.h5-pay-method{display:flex;align-items:center;gap:12px;padding:14px;border:1.5px solid #ebe8f5;border-radius:16px;cursor:pointer;transition:border-color .2s,background .2s}
.h5-pay-method input{display:none}
.h5-pay-method img{width:32px;height:32px;object-fit:contain}
.h5-pay-method span{flex:1;display:grid;gap:2px}.h5-pay-method strong{font-size:15px}.h5-pay-method small{color:#8a85a5;font-size:12px}
.h5-pay-method i{width:20px;height:20px;border-radius:50%;border:2px solid #d0cbe6}
.h5-pay-method.on{border-color:#9a7dff;background:#f8f5ff}.h5-pay-method.on i{border:6px solid #6c4bff}
.h5-pay-method.disabled{opacity:.5;cursor:not-allowed}
.h5-coupon-list{display:grid;gap:10px;max-height:52vh;overflow:auto}
.h5-coupon{display:flex;gap:14px;align-items:center;margin:0;padding:14px;text-align:left;border-radius:16px;background:#fff7f8;border:1.5px solid #f6d2e2;line-height:1.5}
.h5-coupon:after{display:none}
.h5-coupon strong{color:#ff4f63;font-size:22px;min-width:64px}
.h5-coupon span{display:grid}.h5-coupon b{font-size:14px;color:#1d1a33}.h5-coupon small{font-size:12px;color:#8a85a5}
.h5-coupon.on{border-color:#ff5e9c;background:linear-gradient(120deg,#fff0f6,#f3efff)}
.h5-menu{padding:10px 12px calc(12px + env(safe-area-inset-bottom))}
.h5-menu button{width:100%;margin:0;background:none;border-radius:12px;font-size:16px;line-height:52px;color:#1d1a33}
.h5-menu button:after{display:none}
.h5-menu button:last-child{color:#7d7899;border-top:1px solid #f1eef8}
.h5-coupon-grid{display:grid;gap:12px}
.h5-coupon-card{display:flex;min-height:100px;border-radius:20px;overflow:hidden;background:#fff;box-shadow:0 10px 24px rgba(76,55,190,.08)}
.h5-coupon-value{width:110px;flex:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#fff;background:linear-gradient(135deg,#ff6a4d,#ff5e9c)}
.h5-coupon-value strong{font-size:28px}.h5-coupon-value small{font-size:14px}.h5-coupon-value span{font-size:12px;opacity:.9}
.h5-coupon-copy{flex:1;padding:14px;display:flex;flex-direction:column;gap:6px;justify-content:center;align-items:flex-start}
.h5-coupon-copy strong{font-size:15px}.h5-coupon-copy span{font-size:12px;color:#8a85a5}
.h5-coupon-copy button{margin:4px 0 0;line-height:30px;font-size:13px;padding:0 16px}
.h5-coupon-copy em{font-style:normal;font-size:12px;color:#a09bb8}
.h5-coupon-card.used{filter:grayscale(1);opacity:.6}
.h5-promotions{padding:0 0 24px}
.h5-promo-detail{margin:0 0 8px}
.h5-promo-rules{margin:-6px 24px 12px;padding:12px 14px;border-radius:0 0 16px 16px;background:#fff;color:#5f5a7c;font-size:13px;line-height:1.7}
.h5-promo-rules p{margin:4px 0}.h5-promo-rules small{color:#a09bb8}
.h5-links{display:flex;justify-content:flex-end;color:#5b3df0;font-size:14px}
.h5-support-hint{display:flex;align-items:center;gap:8px;margin:10px 12px 0;padding:10px 12px;border-radius:14px;background:#fff}
.h5-support-hint img{width:28px;height:28px;object-fit:contain}
.h5-identity-form{display:block}
.h5-route-loading{min-height:var(--app-height);padding:28px 18px 90px;background:#f6f4fb;color:#a69ab5;display:flex;flex-direction:column;gap:18px;align-items:stretch;font-size:12px;text-align:center}
.h5-skeleton{border-radius:20px;background:linear-gradient(100deg,#ede8f5 20%,#f7f3fc 45%,#ede8f5 70%);background-size:230% 100%;animation:h5-shimmer 1.2s linear infinite}
.h5-skeleton.hero{height:140px}.h5-skeleton.line{height:46px}.h5-skeleton.grid{height:260px}
@keyframes h5-shimmer{to{background-position:-180% 0}}
.h5-login-tabs{display:flex;gap:4px;padding:4px;border-radius:14px;background:#eeebf8;margin:22px 0}
.h5-login-tabs button{flex:1;margin:0;border-radius:11px;background:transparent;color:#81759c;font-size:14px;line-height:42px;padding:0 8px}
.h5-login-tabs button:after{display:none}
.h5-login-tabs button[aria-pressed=true]{background:#fff;color:#6742ed;font-weight:700;box-shadow:0 3px 12px #6c4bff14}
.h5-password-form label{display:block;color:#514669;font-size:13px;font-weight:600;margin:15px 0 8px}
.h5-password-form input{width:100%;height:48px;border:1px solid #e4dff0;border-radius:12px;background:#faf9fd;padding:0 14px;font-size:16px}
.h5-password-form input:focus{border-color:#8b67ff;box-shadow:0 0 0 3px #8b67ff15}
.h5-password-form .h5-primary{width:100%;margin:24px 0 0}
.h5-login-error{color:#bf3e66;font-size:13px;line-height:1.5;margin:12px 0 0}
.h5-login-error[hidden]{display:none}
.h5-account-help{color:#9488aa;font-size:12px;line-height:1.6;text-align:center;margin:14px 0}

/* The storefront brand remains readable at small mobile widths. */
.h5-brand-kicker{display:flex;align-items:center;gap:8px;letter-spacing:1.4px;font-size:11px}
.h5-brand-kicker{display:flex;align-items:center;gap:7px}
.h5-brand-kicker span{min-width:0;line-height:1.4}
.h5-brand-kicker .h5-brand-mark{width:26px;height:26px;border-radius:8px;object-fit:contain;flex-shrink:0}
.h5-staff-entry{display:flex;justify-content:center;gap:32px;margin-top:20px;padding-top:16px;border-top:1px solid #e9e5f3;font-size:14px}
.h5-staff-entry a{color:#6b46e8;text-decoration:none}
#app .h5-role-surface img.utility-chevron{width:calc(24 * var(--rpx));height:calc(24 * var(--rpx));max-width:16px;max-height:16px;object-fit:contain;flex:0 0 auto;padding:0;border:0;background:transparent}

/* Customer identity forms: stable focus and readable desktop/mobile controls. */
.h5-code-row{display:flex;gap:10px;align-items:stretch}.h5-code-row input{min-width:0;flex:1}.h5-code-row button{flex:0 0 120px;white-space:nowrap;padding:10px}.h5-access-consent{display:flex;gap:9px;align-items:flex-start;font-size:12px!important;line-height:1.7}.h5-access-consent input{width:18px!important;height:18px!important;flex:0 0 18px;margin-top:2px}.h5-access-consent a{color:var(--primary,#6d67da)}.h5-account-hero{text-align:center}.h5-account-hero img{width:76px;height:76px;object-fit:contain}.h5-account-hero h2{font-size:22px}.h5-account-row{width:100%;background:none;border:0;text-align:left;font:inherit;color:inherit;cursor:pointer}.h5-account-row small{display:block;font-size:13px;color:#798294;margin-top:7px}.h5-account-row:disabled{opacity:.75;cursor:default}

.h5-password-form .h5-access-consent{display:flex;align-items:flex-start;margin:8px 0}.h5-code-row button{height:48px;min-height:48px;border-radius:16px}
