/* Floating enquiry widget — Dejiabao / ictprobe.com
   Written for this site only; palette and type follow assets/site.css. */

#lhask { --g:#108346; --gd:#0c6a38; --gold:#dab360; --cream:#fbf6ea; --ink:#122017;
         --ink2:#4a5b50; --line:#dfe3d8; --mono:"SFMono-Regular",Consolas,"Liberation Mono",monospace;
         position:fixed; z-index:90; bottom:18px; right:16px;
         font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif; }

#lhask .lh-btn { display:inline-flex; align-items:center; gap:9px; cursor:pointer;
    background:var(--g); color:#fff; border:0; border-radius:999px; padding:12px 18px 12px 14px;
    font-size:14px; font-weight:650; letter-spacing:.01em; line-height:1;
    box-shadow:0 8px 22px rgba(12,39,27,.28); transition:background .16s ease,transform .16s ease; }
#lhask .lh-btn:hover { background:var(--gd); transform:translateY(-1px); }
#lhask .lh-btn:focus-visible { outline:3px solid var(--gold); outline-offset:3px; }
#lhask .lh-btn .dot { width:9px; height:9px; border-radius:50%; background:#8ef0b0; flex:0 0 auto;
    box-shadow:0 0 0 0 rgba(142,240,176,.7); animation:lhpulse 2.6s ease-out infinite; }
@keyframes lhpulse { 0%{box-shadow:0 0 0 0 rgba(142,240,176,.65)} 70%{box-shadow:0 0 0 9px rgba(142,240,176,0)} 100%{box-shadow:0 0 0 0 rgba(142,240,176,0)} }
@media (prefers-reduced-motion:reduce){ #lhask .lh-btn .dot{animation:none} #lhask .lh-panel{transition:none} }

#lhask .lh-panel { position:absolute; right:0; bottom:64px; width:min(336px,calc(100vw - 32px));
    max-height:calc(100vh - 96px); overflow:auto;
    background:#fff; border:1px solid var(--line); border-top:3px solid var(--gold);
    border-radius:6px; box-shadow:0 18px 44px rgba(12,39,27,.24);
    opacity:0; visibility:hidden; transform:translateY(8px); transition:opacity .16s ease,transform .16s ease,visibility .16s; }
#lhask.open .lh-panel { opacity:1; visibility:visible; transform:translateY(0); }
#lhask.open .lh-btn { background:var(--gd); }

#lhask .lh-head { padding:14px 38px 12px 16px; background:var(--cream); border-bottom:1px solid var(--line); }
#lhask .lh-head h3 { margin:0; font-family:Georgia,"Times New Roman",serif; font-weight:400;
    font-size:19px; line-height:1.22; color:var(--ink); }
#lhask .lh-head p { margin:6px 0 0; font:500 11px/1.5 var(--mono); letter-spacing:.05em;
    text-transform:uppercase; color:var(--ink2); }
#lhask .lh-x { position:absolute; top:9px; right:9px; width:26px; height:26px; border:0; background:transparent;
    cursor:pointer; color:var(--ink2); font-size:17px; line-height:1; border-radius:4px; }
#lhask .lh-x:hover { background:#efe9dc; color:var(--ink); }

#lhask a.lh-row, #lhask button.lh-row { display:flex; align-items:center; gap:11px; width:100%;
    padding:12px 16px; border:0; border-bottom:1px solid var(--line); background:#fff; cursor:pointer;
    text-align:left; text-decoration:none; color:var(--ink); font-size:14px; }
#lhask a.lh-row:hover, #lhask button.lh-row:hover { background:var(--cream); }
#lhask a.lh-row:focus-visible, #lhask button.lh-row:focus-visible { outline:3px solid var(--gold); outline-offset:-3px; }
#lhask .lh-row .k { flex:0 0 auto; width:30px; height:30px; border-radius:5px; background:#e8f2ea;
    color:var(--g); display:grid; place-items:center; }
#lhask .lh-row .k svg { width:16px; height:16px; }
#lhask .lh-row .t { display:block; font-weight:650; }
#lhask .lh-row .s { display:block; font:500 11.5px/1.45 var(--mono); color:var(--ink2); margin-top:2px; }
#lhask .lh-row .go { margin-left:auto; color:#9aa79c; font-size:15px; }
#lhask .lh-foot { padding:10px 16px 12px; background:var(--cream); font:500 11px/1.5 var(--mono);
    color:var(--ink2); letter-spacing:.02em; }
#lhask .lh-foot b { color:var(--ink); font-weight:650; }

@media (max-width:640px){
    #lhask { bottom:calc(12px + env(safe-area-inset-bottom,0px)); right:12px; }
    #lhask .lh-btn { padding:11px 15px 11px 13px; font-size:13.5px; }
    #lhask .lh-panel { position:fixed; left:12px; right:12px; bottom:calc(66px + env(safe-area-inset-bottom,0px));
        width:auto; max-height:min(70vh,480px); overflow:auto; -webkit-overflow-scrolling:touch; }
}
