
*{margin:0;padding:0;box-sizing:border-box}
html,body{height:100%}
body{font:15px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  background:#f0f2f5;display:flex;flex-direction:column}
.chat-head{flex:0 0 auto;display:flex;align-items:center;gap:11px;background:#1B4B8F;color:#fff;
  padding:11px 16px;padding-top:calc(11px + env(safe-area-inset-top))}
.chat-head img{width:40px;height:40px;border-radius:50%;border:2px solid rgba(255,255,255,.45);object-fit:cover}
.chat-head .nm{font-weight:700;font-size:16.5px}
.chat-head .st{font-size:12.5px;color:#bcd3ef;margin-top:1px}
.chat-head .st i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#4ade80;margin-right:5px}
#msgs{flex:1 1 auto;overflow-y:auto;padding:16px 14px 10px;-webkit-overflow-scrolling:touch}
.row{display:flex;gap:9px;margin-bottom:14px;align-items:flex-end}
.row.me{flex-direction:row-reverse}
.row img{width:32px;height:32px;border-radius:50%;object-fit:cover;flex:0 0 auto}
.bub{max-width:78%;padding:9px 13px;border-radius:14px;font-size:15px;white-space:pre-wrap;word-break:break-word}
.row.bot .bub{background:#fff;border:1px solid #e3e8ef;border-bottom-left-radius:4px}
.row.me .bub{background:#1B4B8F;color:#fff;border-bottom-right-radius:4px}
.typing .bub{color:#8a94a3;letter-spacing:2px}
.chat-foot{flex:0 0 auto;background:#fff;border-top:1px solid #e3e8ef;
  padding:9px 12px;padding-bottom:calc(9px + env(safe-area-inset-bottom));display:flex;gap:9px;align-items:flex-end}
#inp{flex:1;resize:none;border:1px solid #d7dde6;border-radius:12px;padding:9px 12px;
  font-size:16px;font-family:inherit;line-height:1.5;max-height:110px;outline:none;background:#f8fafc}
#inp:focus{border-color:#1B4B8F;background:#fff}
#send{flex:0 0 auto;border:0;background:#1B4B8F;color:#fff;font-size:15px;font-weight:700;
  border-radius:12px;padding:10px 18px;cursor:pointer}
#send:disabled{opacity:.55;cursor:default}
.err-bub .bub{background:#fef2f2;border-color:#fecaca;color:#b91c1c}
/*C3a26*/
.row.askrow{align-items:flex-start}
.ask{max-width:88%;background:#fff;border:1px solid #dbe5f2;border-radius:16px;
  border-bottom-left-radius:6px;box-shadow:0 6px 20px rgba(27,75,143,.10);
  padding:15px 15px 14px;animation:askin .42s cubic-bezier(.2,.9,.3,1) both}
@keyframes askin{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
.ask-hd{display:flex;gap:9px;align-items:flex-start;margin-bottom:12px}
.ask-ic{flex:0 0 auto;width:27px;height:27px;border-radius:9px;color:#fff;font-size:13px;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#1B4B8F,#3b7bd0)}
.ask-t{font-weight:700;font-size:15.5px;color:#12233d;line-height:1.35}
.ask-s{font-size:12.5px;color:#6b7c93;margin-top:3px;line-height:1.45}
.ask-tabs{display:flex;gap:4px;background:#f1f5fa;padding:3px;border-radius:11px;margin-bottom:10px}
.ask-tabs .tab{flex:1;border:0;background:transparent;font:inherit;font-size:13.5px;font-weight:600;
  color:#5b6b82;padding:7px 0;border-radius:9px;cursor:pointer}
.ask-tabs .tab.on{background:#fff;color:#1B4B8F;box-shadow:0 1px 4px rgba(27,75,143,.14)}
.ask-f{margin-bottom:9px}
.ask-f.hide{display:none}
.ask-f>input{width:100%;height:50px;border:1px solid #d7dde6;border-radius:12px;color:#12233d;
  padding:0 13px;font-size:17px;font-family:inherit;background:#f8fafc;outline:none}
.ask-f>input:focus{border-color:#1B4B8F;background:#fff;box-shadow:0 0 0 3px rgba(27,75,143,.10)}
.ph-wrap{display:flex;align-items:center;border:1px solid #d7dde6;border-radius:12px;
  background:#f8fafc;overflow:hidden}
.ph-wrap:focus-within{border-color:#1B4B8F;background:#fff;box-shadow:0 0 0 3px rgba(27,75,143,.10)}
.ph-pfx{flex:0 0 auto;padding:0 11px;font-size:15px;font-weight:600;color:#5b6b82;
  border-right:1px solid #e3e8ef;line-height:50px}
.ph-wrap input{flex:1;height:50px;border:0;background:transparent;box-shadow:none;outline:none;
  font-size:17px;font-family:inherit;color:#12233d;padding:0 13px;-webkit-appearance:none}
.ask-lab{font-size:12.5px;color:#6b7c93;margin:1px 0 7px}
.chips{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:12px}
.chip{border:1px solid #d7dde6;background:#fff;font:inherit;font-size:13.5px;color:#42536b;
  padding:8px 15px;border-radius:999px;cursor:pointer}
.chip:active{transform:scale(.96)}
.chip.on{background:#e8f0fb;border-color:#1B4B8F;color:#1B4B8F;font-weight:700}
.ask-btn{width:100%;height:50px;border:0;border-radius:12px;font:inherit;font-size:16.5px;
  font-weight:700;color:#fff;cursor:pointer;background:linear-gradient(135deg,#1B4B8F,#3b7bd0);
  box-shadow:0 5px 14px rgba(27,75,143,.26)}
.ask-btn:active{transform:translateY(1px);box-shadow:0 3px 9px rgba(27,75,143,.22)}
.ask-btn:disabled{background:#c7d2e0;box-shadow:none;cursor:default}
.ask-tip{font-size:12px;color:#b91c1c;margin-top:8px;text-align:center;min-height:15px;line-height:1.4}
.ask-hint{display:flex;gap:5px;align-items:center;justify-content:center;
  font-size:11.5px;color:#8a94a3;margin-top:8px}
.ask-hint svg{flex:0 0 auto}
.ok{display:flex;gap:11px;align-items:center;padding:6px 2px}
.ok-ic{flex:0 0 auto;width:37px;height:37px;border-radius:50%;background:#10b981;color:#fff;
  font-size:19px;display:flex;align-items:center;justify-content:center;
  animation:pop .38s cubic-bezier(.2,1.3,.4,1) both}
@keyframes pop{from{transform:scale(.4);opacity:0}to{transform:none;opacity:1}}
.ok-t{font-weight:700;font-size:15.5px;color:#0f7a5a}
.ok-s{font-size:13px;color:#5b6b82;margin-top:3px;line-height:1.45}
@media (min-width:760px){#msgs,.chat-foot{max-width:760px;width:100%;margin:0 auto}
  .chat-head{justify-content:center}.chat-head .hwrap{display:flex;gap:11px;align-items:center;width:760px}}
