#asmf-bar,#asmf-spacer{display:none}
#asmf-overlay[hidden]{display:none!important}
#asmf-overlay,#asmf-overlay *,#asmf-bar,#asmf-bar *{box-sizing:border-box}
#asmf-overlay{position:fixed;inset:0;z-index:1100;display:grid;place-items:center;padding:16px;background:rgba(18,31,53,.47);font-family:inherit}
#asmf-dialog{width:100%;max-width:440px;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;border:1px solid #e3eaf5;border-radius:20px;background:#fff;padding:24px;color:#172e50;box-shadow:0 24px 72px #0f274b26;text-align:center;outline:0}
#asmf-dialog .asmf-dialog-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 16px}
#asmf-title{margin:0;padding:0;font-family:inherit;font-size:21px;line-height:1.4;font-weight:700;color:#172e50;text-align:left}
#asmf-dialog button{font-family:inherit;cursor:pointer;appearance:none;-webkit-appearance:none}
#asmf-dialog .asmf-close{flex-shrink:0;min-height:44px;min-width:52px;padding:8px 10px;border:0;border-radius:10px;background:#f1f5fa;color:#73839b;font-size:14px;line-height:1.5}
#asmf-description{margin:0 0 20px;color:#6d809e;font-size:14px;line-height:1.8;text-align:center}
#asmf-dialog .asmf-qr{position:relative;width:min(100%,260px);aspect-ratio:1;margin:0 auto 16px;overflow:hidden;background:#fff}
#asmf-dialog .asmf-qr img{display:block;width:100%;max-width:100%;height:100%;object-fit:contain;-webkit-touch-callout:default;user-select:auto;-webkit-user-select:auto}
/* Focus the supplied 820×1233 WeChat card on its ORIGINAL QR. Saving retains the untouched image. */
#asmf-dialog .asmf-qr-card img{position:absolute;width:141.37931%;max-width:none;height:auto;left:-20.68966%;top:-63.7931%;object-fit:initial}
#asmf-dialog .asmf-save-tip{margin:0 0 18px;color:#788ba5;font-size:13px;line-height:1.7}
#asmf-dialog .asmf-account-label{margin:0 0 6px;color:#284160;font-size:14px;line-height:1.5}
#asmf-dialog .asmf-account{width:100%;margin:0 0 14px;padding:10px 14px;border:1px solid #e0e8f3;border-radius:10px;background:#f7f9fc;color:#203c60;font-size:21px;line-height:1.5;overflow-wrap:anywhere;user-select:text;-webkit-user-select:text}
#asmf-dialog .asmf-copy{display:block;width:100%;min-height:50px;padding:12px 16px;border:0;border-radius:10px;background:#1975ff;color:#fff;font-size:16px;font-weight:650;line-height:1.5}
#asmf-dialog .asmf-copy:hover{background:#0c65eb}
#asmf-dialog .asmf-copy-status{min-height:0;margin:0;color:#6b7f9c;font-size:12px;line-height:1.6}
#asmf-dialog .asmf-copy-status:not(:empty){margin-top:10px}
#asmf-bar a:focus-visible,#asmf-bar button:focus-visible,#asmf-dialog button:focus-visible,#asmf-wechat:focus-visible{outline:3px solid #8ab8ff;outline-offset:3px}
@media(max-width:767px){
    body.asmf-enabled .ceo-app-footer-fixed{display:none!important}
    #asmf-bar{position:fixed;left:0;right:0;bottom:0;z-index:900;display:grid;grid-template-columns:60px 60px minmax(0,1fr);align-items:center;gap:4px;padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px));border-top:1px solid #edf0f5;background:#fff;box-shadow:0 -4px 20px #173a6a05;font-family:inherit}
    #asmf-bar .asmf-home,#asmf-bar .asmf-guide,#asmf-bar .asmf-contact{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;width:100%;min-width:0;min-height:54px;margin:0;padding:5px 0;border:0;border-radius:8px;background:transparent;cursor:pointer;appearance:none;-webkit-appearance:none;color:#73819a;text-decoration:none;font-family:inherit;font-size:12px;font-weight:500;line-height:1.4;white-space:nowrap}
    #asmf-bar .asmf-home{color:#2563eb}
    #asmf-bar .asmf-home svg,#asmf-bar .asmf-guide svg,#asmf-bar .asmf-contact svg{display:block;flex:none;width:24px;height:24px}
    #asmf-bar .asmf-scan{display:flex;justify-content:center;align-items:center;gap:7px;width:100%;min-width:0;min-height:52px;margin:0;padding:10px 12px;border:0;border-radius:12px;background:#1975ff;color:#fff;font-family:inherit;font-size:15px;line-height:1.5;font-weight:700;text-decoration:none;white-space:nowrap;cursor:pointer;appearance:none;-webkit-appearance:none}
    #asmf-bar .asmf-scan svg{flex:0 0 22px;width:22px;height:22px}
    #asmf-bar .asmf-scan:hover{background:#0c65eb}
    #asmf-bar .asmf-scan:disabled{background:#e8eef8;color:#73819a;cursor:not-allowed}
    #asmf-bar .asmf-arrow{font-size:19px;line-height:1}
    #asmf-spacer{display:block;height:calc(76px + env(safe-area-inset-bottom,0px))}
    body.asmf-enabled .ceo-app-gotop{bottom:calc(var(--asmf-bar-height,76px) + 14px)!important}
}
@media(max-height:660px){#asmf-dialog{padding:18px 22px}#asmf-description{margin-bottom:12px}#asmf-dialog .asmf-qr{width:min(100%,210px);margin-bottom:10px}#asmf-dialog .asmf-save-tip{margin-bottom:12px}#asmf-dialog .asmf-dialog-header{margin-bottom:10px}}
