.xy-pwa-install-wrap{display:block;margin:12px 0 0;text-align:center}
button.xy-pwa-install{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:6px 12px;margin:0;border:1px solid currentColor;border-radius:22px;background:transparent;color:inherit;font:inherit;font-size:14px;line-height:1.4;cursor:pointer;box-shadow:none;opacity:.9}
button.xy-pwa-install:hover{opacity:1;background:rgba(240,74,26,.1)}
.xy-pwa-install svg{width:17px;height:17px;margin-right:7px;flex:none;stroke-width:1.7}
.xy-pwa-install-wrap[hidden],.xy-pwa-install[hidden],.xy-pwa-offline[hidden]{display:none!important}
.xy-pwa-overlay{position:fixed;z-index:2147483000;inset:0;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.45);padding:24px;padding: max(24px,env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left));box-sizing:border-box}
.xy-pwa-dialog{position:relative;width:100%;max-width:500px;max-height:80vh;max-height:80dvh;overflow:auto;box-sizing:border-box;padding:30px;border-radius:24px;background:#fff;color:#333;text-align:left;font:16px/1.65 Arial,sans-serif;box-shadow:0 20px 60px #0003}
.xy-pwa-dialog h2{margin:0 30px 14px 0;color:#f04a1a;font-size:24px;line-height:1.3;font-weight:700}
.xy-pwa-dialog p{margin:0;line-height:1.65;text-align:left;overflow-wrap:break-word}
button.xy-pwa-close{position:absolute;right:10px;top:10px;width:40px;height:40px;min-width:0;padding:0;border:0;border-radius:50%;background:transparent;color:#555;font:28px/1 Arial,sans-serif;cursor:pointer}
.xy-pwa-install:focus-visible,.xy-pwa-close:focus-visible{outline:3px solid #f04a1a;outline-offset:3px}
.xy-pwa-offline{position:fixed;z-index:2147482000;bottom:12px;bottom:calc(12px + env(safe-area-inset-bottom));left:16px;right:16px;max-width:680px;box-sizing:border-box;margin:auto;padding:12px 16px;border:1px solid #efbba7;border-radius:14px;background:#fff5ed;color:#572d1d;box-shadow:0 4px 18px #0002;font:15px/1.5 Arial,sans-serif;text-align:center;pointer-events:none}
html.xy-pwa-standalone{scroll-padding-top:calc(110px + env(safe-area-inset-top))}
html.xy-pwa-standalone body{padding-bottom:env(safe-area-inset-bottom);padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}
html.xy-pwa-standalone .xy-unified-header,html.xy-pwa-standalone .navbar-fixed-top{top:env(safe-area-inset-top)}
html.xy-pwa-standalone body.xy-has-unified-header{padding-top:calc(122px + env(safe-area-inset-top))}
@media(max-width:991px){html.xy-pwa-standalone body.xy-has-unified-header{padding-top:calc(102px + env(safe-area-inset-top))}}
@media(max-width:767px){html.xy-pwa-standalone body.xy-has-unified-header{padding-top:calc(80px + env(safe-area-inset-top))}}
html.xy-pwa-standalone .xy-unified-links.open{max-height:calc(100vh - 110px - env(safe-area-inset-top) - env(safe-area-inset-bottom));max-height:calc(100dvh - 110px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}
html.xy-pwa-standalone .xy-wechat-qr-overlay{padding-top:max(20px,env(safe-area-inset-top));padding-bottom:max(20px,env(safe-area-inset-bottom))}
/* Fixed elements do not inherit body safe-area padding. */
html.xy-pwa-standalone .xy-unified-header{left:env(safe-area-inset-left);right:env(safe-area-inset-right);width:calc(100% - env(safe-area-inset-left) - env(safe-area-inset-right))}
html.xy-pwa-standalone .navbar-fixed-top{left:env(safe-area-inset-left);right:env(safe-area-inset-right);width:auto}
@media(max-width:991px){html.xy-pwa-standalone .xy-unified-header{width:calc(95% - env(safe-area-inset-left) - env(safe-area-inset-right))}}
