/* 前台在线客服 */
.dzc-btn{position:fixed;right:22px;bottom:26px;z-index:150;display:flex;align-items:center;gap:6px;border:0;border-radius:999px;background:var(--green);color:#fff;
  min-height:50px;padding:0 18px 0 14px;font-weight:700;font-size:15px;box-shadow:0 10px 26px rgba(23,69,46,.28)}
.dzc-btn svg{width:22px;height:22px;fill:none;stroke:#fff;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round}
.dzc-btn:hover{background:var(--green2)}
.dzc-btn.on{display:none}
.dzc-badge{position:absolute;top:-4px;right:-4px;min-width:20px;height:20px;border-radius:999px;background:var(--red,#d63c2f);color:#fff;font-size:11px;font-style:normal;display:grid;place-items:center;padding:0 5px;border:2px solid #fff}
.dzc{position:fixed;right:22px;bottom:26px;z-index:160;width:370px;height:min(600px,calc(100vh - 60px));background:#fff;border:1px solid var(--line);border-radius:18px;
  box-shadow:0 24px 60px rgba(23,69,46,.25);display:flex;flex-direction:column;overflow:hidden}
.dzc[hidden]{display:none}
.dzc header{display:flex;align-items:center;gap:10px;padding:12px 12px 12px 14px;background:var(--green);color:#fff}
.dzc header b{display:block;font-size:15px}
.dzc header small{font-size:12px;color:#cfe3d4}
.dzc-ava{width:34px;height:34px;border-radius:50%;background:var(--orange);display:grid;place-items:center;font-family:var(--serif);font-weight:900;flex:none}
.dzc-x{margin-left:auto;width:36px;height:36px;border-radius:50%;border:0;background:rgba(255,255,255,.14);color:#fff;font-size:22px;line-height:1}
.dzc-body{flex:1;overflow-y:auto;padding:14px 12px;background:var(--surface2,#f6f7f3);display:flex;flex-direction:column;gap:10px}
.dzc-m{max-width:84%;padding:9px 12px;border-radius:14px;font-size:14px;line-height:1.65;white-space:pre-wrap;word-break:break-word}
.dzc-m small{display:block;font-size:11px;color:var(--muted);margin-bottom:2px}
.dzc-m.bot{align-self:flex-start;background:#fff;border:1px solid var(--line);border-top-left-radius:4px}
.dzc-m.agent{align-self:flex-start;background:var(--orange-soft);border:1px solid #f6cfa6;border-top-left-radius:4px}
.dzc-m.agent small{color:var(--orange-dark);font-weight:700}
.dzc-m.user{align-self:flex-end;background:var(--green);color:#fff;border-top-right-radius:4px}
.dzc-m.pending{opacity:.6}
.dzc-m em{display:block;font-style:normal;font-size:12px;color:#ffd5c2;margin-top:4px}
.dzc-links{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.dzc-links button{border:1px solid var(--line);background:var(--surface2,#f6f7f3);border-radius:999px;padding:3px 10px;font-size:12.5px;color:var(--green);font-weight:700}
.dzc-sys{align-self:center;font-size:12px;color:var(--muted);text-align:center;max-width:90%}
.dzc-quick{display:flex;gap:6px;overflow-x:auto;padding:8px 10px 0;scrollbar-width:none}
.dzc-quick::-webkit-scrollbar{display:none}
.dzc-quick:empty{display:none}
.dzc-quick button{flex:none;border:1px solid var(--line);background:#fff;border-radius:999px;padding:0 12px;min-height:32px;font-size:13px;color:var(--ink)}
.dzc-quick button:last-child{border-color:var(--orange);color:var(--orange-dark);font-weight:700}
.dzc-contact{padding:10px 12px 0;border-top:1px solid var(--line)}
.dzc-contact p{margin:0 0 6px;font-size:12.5px;color:var(--muted)}
.dzc-contact form{display:flex;gap:6px}
.dzc-contact input{min-width:0;flex:1;border:1px solid var(--line);border-radius:8px;padding:0 8px;min-height:34px;font-size:13px}
.dzc-contact button{border:0;border-radius:8px;background:var(--orange);color:#fff;padding:0 12px;font-size:13px;font-weight:700}
.dzc-form{display:flex;gap:8px;padding:10px 12px 12px}
.dzc-form input{flex:1;min-width:0;border:1px solid var(--line);border-radius:999px;padding:0 14px;min-height:42px;font-size:15px;outline:0}
.dzc-form input:focus{border-color:var(--green2)}
.dzc-form button{border:0;border-radius:999px;background:var(--orange);color:#fff;font-weight:700;padding:0 18px}
@media (max-width:899px){
  .dzc-btn{right:12px;bottom:calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom));width:48px;height:48px;min-height:0;padding:0;justify-content:center;border-radius:50%}
  .dzc-btn span{display:none}
  .dzc-btn svg{width:24px;height:24px}
  body.route-detail .dzc-btn,body.has-sumbar .dzc-btn{bottom:calc(var(--tabbar-h) + 88px + env(safe-area-inset-bottom))}
  .dzc{inset:0;width:auto;height:auto;border-radius:0;border:0}
  html.dzc-on,html.dzc-on body{overflow:hidden}
  .dzc-form{padding-bottom:calc(12px + env(safe-area-inset-bottom))}
}

.dzc-ava{background:#fff;overflow:hidden;padding:2px}
.dzc-ava img{width:100%;height:100%;object-fit:contain}
