.ec-quick-dialog{box-sizing:border-box;padding:0;border:1px solid #b7c9d6;border-radius:14px;width:min(640px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 40px);color:#102232;background:#fff;box-shadow:0 18px 70px #0006;overflow:auto;overscroll-behavior:contain}
.ec-quick-dialog:not([open]){display:none}
.ec-quick-dialog::backdrop{background:#03101bd1}
.ec-quick-dialog [hidden]{display:none!important}
.ec-dialog-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 18px;background:#101f30;color:#fff}
.ec-dialog-head h2{font-size:21px;line-height:1.4;margin:0;color:inherit}
.ec-dialog-close{display:flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;margin:0;border:1px solid #718496;border-radius:8px;background:transparent;color:#fff;font-size:29px;line-height:1;cursor:pointer}
.ec-quick-dialog :is(button,a,input,select,[tabindex]):focus-visible{outline:3px solid #237daa;outline-offset:3px}
.ec-quick-dialog button,.ec-quick-dialog select,.ec-quick-dialog input{font:inherit;box-sizing:border-box}
#ec-contact-panel{padding:20px 24px 22px}
.ec-dialog-intro{font-size:15px;line-height:1.65;margin:0 0 20px;color:#40596e}
.ec-contact-grid{display:grid;grid-template-columns:190px minmax(0,1fr);gap:22px;align-items:start}
.ec-contact-qr .wechat-qr-frame{width:190px;max-width:100%;margin:0 auto}
.ec-contact-qr>a{display:block;margin-top:12px;text-align:center;color:#087443;font-size:14px;text-underline-offset:4px}
.ec-contact-fields{min-width:0}
.ec-contact-fields>label{display:block;font-size:13px;font-weight:650;margin:0 0 6px}
.ec-copy-row{display:flex;min-width:0;margin-bottom:15px}
.ec-copy-row input{width:100%;min-width:0;height:44px;padding:8px 10px;background:#f3f7f9;color:#102232;border:1px solid #a4b8c7;border-radius:7px 0 0 7px;font-size:14px}
.ec-copy-row button{flex:none;padding:8px 11px;min-height:44px;background:#eaf4ee;color:#126e47;border:1px solid #a4b8c7;border-left:0;border-radius:0 7px 7px 0;font-size:12px;font-weight:600;cursor:pointer}
.ec-primary-action{display:flex;justify-content:center;align-items:center;min-height:44px;padding:8px 15px;border-radius:7px;background:#c62530;color:#fff!important;text-decoration:none;font-size:14px;font-weight:650;box-sizing:border-box}
.ec-contact-hint{font-size:12px;line-height:1.65;color:#4a6377;margin:12px 0 0}
.ec-copy-status{font-size:13px;color:#126e47;margin:12px 0 0;min-height:0}
.ec-copy-status:empty{display:none}
.ec-contact-links{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;border-top:1px solid #d8e1e8;padding-top:16px;margin-top:18px;font-size:14px}
.ec-contact-links a{color:#ad202b;text-underline-offset:3px}
.ec-quick-dialog.ec-image-dialog{width:min(1240px,calc(100vw - 40px));height:min(920px,calc(100dvh - 40px));overflow:hidden}
.ec-image-dialog[open]{display:flex;flex-direction:column}
#ec-screen-panel{display:flex;flex:1;min-height:0;flex-direction:column}
.ec-screen-tabs{display:flex;gap:8px;flex-wrap:wrap;padding:14px 18px 10px;border-bottom:1px solid #d8e1e8}
.ec-screen-tabs button{flex:1;min-height:42px;padding:8px 12px;border:1px solid #a8bdcd;border-radius:7px;color:#193449;background:#f5f8fa;font-size:14px;cursor:pointer}
.ec-screen-tabs button[aria-pressed=true]{background:#c62530;border-color:#c62530;color:#fff}
.ec-screen-tools{display:flex;align-items:center;flex-wrap:wrap;gap:9px;padding:10px 18px;font-size:13px}
.ec-screen-tools select{max-width:170px;height:40px;padding:7px 24px 7px 9px;border:1px solid #9fb5c5;border-radius:6px;background:#fff;color:#102232}
.ec-zoom-tools{margin-left:auto;display:flex;gap:6px}
.ec-zoom-tools button{min-width:40px;min-height:40px;padding:7px 10px;border:1px solid #9fb5c5;border-radius:6px;background:#f3f7fa;color:#102232;cursor:pointer;font-size:14px}
.ec-zoom-tools button:disabled{opacity:.4;cursor:default}
.ec-screen-viewport{position:relative;flex:1;min-height:120px;overflow:auto;overscroll-behavior:contain;background:#eaf0f4;padding:12px;box-sizing:border-box;touch-action:pan-x pan-y pinch-zoom}
#ec-screen-image{display:block;max-width:none;height:auto;margin:0 auto;background:#fff;border:1px solid #c4d1dc;box-sizing:border-box}
#ec-screen-loading{position:absolute;inset:20px;text-align:center;color:#40596e;pointer-events:none;margin:0}
.ec-screen-note{font-size:13px;line-height:1.6;padding:11px 18px;margin:0;border-top:1px solid #d8e1e8;background:#fff;flex:none}
html.ec-modal-open{overflow:hidden}
html.ec-modal-open :is(.client-contact,.site-back-to-top){visibility:hidden}
@media(max-width:760px){
 .ec-quick-dialog{width:100%;max-height:94dvh;margin:auto 0 0;border-radius:15px 15px 0 0;border-bottom:0}
 .ec-dialog-head{padding:10px 16px}.ec-dialog-head h2{font-size:19px}
 #ec-contact-panel{padding:14px 18px calc(18px + env(safe-area-inset-bottom))}
 .ec-dialog-intro{font-size:13px;margin-bottom:13px}
 .ec-contact-grid{grid-template-columns:128px minmax(0,1fr);gap:14px}
 .ec-contact-qr .wechat-qr-frame{width:128px}
 .ec-copy-row{flex-wrap:wrap;gap:0;margin-bottom:11px}
 .ec-copy-row input{border-radius:6px 6px 0 0;height:38px;font-size:13px;padding:7px}
 .ec-copy-row button{width:100%;border:1px solid #a4b8c7;border-top:0;border-radius:0 0 6px 6px;min-height:36px;padding:5px 9px}
 .ec-contact-hint{grid-column:1/-1;font-size:12px}
 .ec-contact-fields>label{font-size:12px}
 .ec-contact-links{font-size:13px;margin-top:14px;padding-top:12px}
 .ec-contact-qr>a{font-size:12px;line-height:1.6}
 .ec-quick-dialog.ec-image-dialog{width:100%;height:100dvh;max-height:100dvh;margin:0;border-radius:0;border:0}
 .ec-screen-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:10px 12px}
 .ec-screen-tabs button{font-size:12px;padding:7px 4px;min-width:0;overflow-wrap:anywhere}
 .ec-screen-tools{padding:8px 12px;gap:7px}
 .ec-screen-tools select{font-size:12px;max-width:120px}
 .ec-screen-tools>label{display:none}
 .ec-zoom-tools button{font-size:12px;padding:7px;min-width:36px}
 .ec-screen-note{font-size:12px;padding:9px 12px calc(9px + env(safe-area-inset-bottom))}
}
@media(max-width:359px){.ec-contact-grid{grid-template-columns:108px minmax(0,1fr);gap:11px}.ec-contact-qr .wechat-qr-frame{width:108px}#ec-contact-panel{padding-inline:14px}.ec-screen-tools select{max-width:105px}.ec-zoom-tools{gap:4px}.ec-zoom-tools button{padding:6px;min-width:33px}}
@media(max-height:480px){
 .ec-image-dialog .ec-dialog-head{padding:6px 12px}.ec-image-dialog .ec-dialog-head h2{font-size:17px}
 .ec-image-dialog .ec-dialog-close{width:38px;height:38px}
 .ec-screen-tabs{padding:6px 12px}.ec-screen-tabs button{min-height:34px;padding-block:5px}
 .ec-screen-tools{padding:6px 12px}.ec-screen-tools select{height:34px}.ec-zoom-tools button{min-height:34px;padding-block:5px}
 .ec-screen-viewport{min-height:50px}.ec-screen-note{max-height:64px;overflow:auto;padding-block:7px;box-sizing:border-box}
}
@media(prefers-reduced-motion:reduce){.ec-quick-dialog{scroll-behavior:auto}}
