[hidden]{display:none !important}
/* 访客对话页 */
*{margin:0;padding:0;box-sizing:border-box}
html,body{height:100%}
body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  background:#e9edf5;color:#0f172a;-webkit-font-smoothing:antialiased;
  display:flex;align-items:center;justify-content:center;
}
button{font-family:inherit;border:0;background:none;cursor:pointer;color:inherit}
textarea{font-family:inherit;outline:none;resize:none}

.v-shell{
  width:100%;max-width:480px;height:100%;max-height:100dvh;background:#f7f9fc;
  display:flex;flex-direction:column;position:relative;overflow:hidden;
  box-shadow:0 0 0 1px rgba(15,23,42,.06);
}
@media(min-width:520px){ .v-shell{height:92dvh;max-height:860px;border-radius:18px;box-shadow:0 30px 80px -30px rgba(15,23,42,.35)} }

/* 顶部 */
.v-head{
  display:flex;align-items:center;gap:11px;padding:14px 16px;
  background:linear-gradient(135deg,#3b5bfd,#5f7dff);color:#fff;flex:0 0 auto;
}
.v-avatar{
  width:38px;height:38px;border-radius:11px;background:rgba(255,255,255,.22);
  display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;overflow:hidden;flex:0 0 38px;
  border:1px solid rgba(255,255,255,.3)
}
.v-avatar img{width:100%;height:100%;object-fit:cover}
.v-id{flex:1;min-width:0}
.v-name{font-size:14.5px;font-weight:650;letter-spacing:.3px}
.v-state{font-size:11px;opacity:.82;margin-top:2px;display:flex;align-items:center;gap:5px}
.v-state .dot{width:6px;height:6px;border-radius:50%;background:#7ef0c0;box-shadow:0 0 0 3px rgba(126,240,192,.25)}
.v-more{width:30px;height:30px;border-radius:8px;color:rgba(255,255,255,.85);font-size:16px}
.v-more:hover{background:rgba(255,255,255,.16)}
.v-dl{
  flex:0 0 auto;font-size:11.5px;font-weight:600;color:#fff;background:#f43f5e;
  padding:6px 11px;border-radius:8px;white-space:nowrap;box-shadow:0 4px 12px -4px rgba(244,63,94,.6)
}
.v-dl:active{transform:scale(.96)}
.v-banner{background:#fff7ed;color:#b45309;font-size:11.5px;padding:8px 16px;text-align:center;flex:0 0 auto}

/* 消息区 */
.v-msgs{
  flex:1;min-height:0;overflow-y:auto;padding:16px 14px 8px;
  display:flex;flex-direction:column;gap:12px;
  background:
    radial-gradient(circle at 12% 0%,rgba(59,91,253,.05),transparent 340px),
    #f7f9fc;
  -webkit-overflow-scrolling:touch;
}
.v-msgs::before{content:"";margin-top:auto}
.v-msgs::-webkit-scrollbar{width:0}
.v-day{text-align:center;font-size:10.5px;color:#a8b3c4;padding:2px 0}

.vm{display:flex;gap:8px;align-items:flex-start}
.vm.me{flex-direction:row-reverse}
.vm-ava{
  width:30px;height:30px;border-radius:9px;flex:0 0 30px;display:flex;align-items:center;justify-content:center;
  font-size:10.5px;background:#e8edf9;color:#5b6b86;overflow:hidden
}
.vm-ava img{width:100%;height:100%;object-fit:cover}
.vm.me .vm-ava{background:#dfe6ff;color:#3b5bfd}
.vm-body{max-width:76%;display:flex;flex-direction:column;gap:3px}
.vm.me .vm-body{align-items:flex-end}
.vm-bubble{
  padding:9px 12px;border-radius:12px;background:#fff;border:1px solid #e8edf5;
  font-size:13.5px;line-height:1.65;word-break:break-word;white-space:pre-wrap;
  border-top-left-radius:4px;box-shadow:0 1px 2px rgba(15,23,42,.03)
}
.vm.me .vm-bubble{
  background:linear-gradient(135deg,#3b5bfd,#5f7dff);color:#fff;border:0;
  border-top-left-radius:12px;border-top-right-radius:4px;box-shadow:0 6px 16px -8px rgba(59,91,253,.6)
}
.vm-bubble img{display:block;max-width:210px;max-height:210px;border-radius:9px;margin:-2px 0}
.vm-bubble video{display:block;max-width:210px;height:auto;border-radius:9px;margin:-2px 0;background:#000}
.vm-time{font-size:10px;color:#a8b3c4;padding:0 2px}
.vm-fallback{display:block;font-size:12px;color:#2563eb;text-decoration:underline;padding:8px 10px;background:#eef2ff;border-radius:8px}
.vm.welcome .vm-bubble{background:rgba(59,91,253,.06);border-color:rgba(59,91,253,.1);color:#334155}

/* 快捷问题 */
.v-quick{
  display:flex;gap:7px;padding:0 14px 6px;overflow-x:auto;flex:0 0 auto;flex-wrap:nowrap;
}
.v-quick::-webkit-scrollbar{display:none}
.v-quick button{
  flex:0 0 auto;font-size:11.5px;color:#3b5bfd;background:rgba(59,91,253,.07);
  border:1px solid rgba(59,91,253,.16);padding:6px 11px;border-radius:20px;white-space:nowrap
}
.v-quick button:active{background:rgba(59,91,253,.14)}

.v-typing{
  display:flex;align-items:center;gap:4px;font-size:11px;color:#94a3b8;padding:0 18px 6px;flex:0 0 auto
}
.v-typing span[class]{
  width:5px;height:5px;border-radius:50%;background:#a8b3c4;animation:blink 1.2s infinite
}
.v-typing .b2{animation-delay:.2s}.v-typing .b3{animation-delay:.4s}
@keyframes blink{0%,60%,100%{opacity:.25;transform:translateY(0)}30%{opacity:1;transform:translateY(-2px)}}

.v-tip{
  margin:0 14px 6px;background:#fff8e6;color:#92400e;font-size:11.5px;padding:8px 12px;border-radius:9px;flex:0 0 auto
}

/* 输入栏 */
.v-bar{
  display:flex;align-items:flex-end;gap:8px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));
  background:#fff;border-top:1px solid #e8edf5;flex:0 0 auto
}
.v-icon{
  width:32px;height:32px;border-radius:9px;background:#f4f7fd;color:#64748b;font-size:15px;
  display:flex;align-items:center;justify-content:center;flex:0 0 32px
}
.v-icon:active{background:#e8edf9}
.v-bar textarea{
  flex:1;min-height:36px;max-height:96px;padding:9px 12px;border:1px solid #e2e8f2;border-radius:10px;
  background:#f8fafe;font-size:13.5px;line-height:1.5
}
.v-bar textarea:focus{border-color:#b9c7ff;background:#fff}
.v-send{
  height:36px;padding:0 16px;border-radius:10px;background:#3b5bfd;color:#fff;font-size:13px;font-weight:600;flex:0 0 auto
}
.v-send:disabled{background:#c7d2fe}
.v-send:active{transform:scale(.98)}

.v-icon.rec{background:#fee2e2;color:#dc2626}
.vm-bubble audio{max-width:200px;height:34px;display:block}
.v-divider{text-align:center;font-size:10.5px;color:#94a3b8;position:relative;margin:2px 0}
.v-divider::before,.v-divider::after{content:"";display:inline-block;width:42px;height:1px;background:#e2e8f2;vertical-align:middle;margin:0 8px}

.v-emoji-panel{
  position:absolute;left:0;right:0;bottom:56px;background:#fff;border-top:1px solid #eef2f8;
  padding:10px 12px;display:grid;grid-template-columns:repeat(8,1fr);gap:4px;z-index:5;
  box-shadow:0 -10px 30px -20px rgba(15,23,42,.35)
}
.v-emoji-panel button{font-size:17px;padding:4px;border-radius:8px}
.v-emoji-panel button:active{background:#f1f5f9}

.v-empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:#a8b3c4;font-size:12px}

.v-icon svg{display:block}
.v-icon.rec{color:#fff;background:#ef4444;border-color:#ef4444}

/* 引导封面页 */
.v-guide{
  position:absolute;inset:0;z-index:10;display:flex;align-items:center;justify-content:center;padding:24px;
  background:linear-gradient(160deg,#3b5bfd 0%,#5f7dff 100%)
}
.v-guide-card{
  width:100%;max-width:300px;background:#fff;border-radius:20px;padding:30px 22px;text-align:center;
  box-shadow:0 30px 60px -30px rgba(15,23,42,.4)
}
.v-guide-avatar{
  width:64px;height:64px;border-radius:18px;margin:0 auto 14px;background:#eef2ff;color:#3b5bfd;
  display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:700;overflow:hidden
}
.v-guide-avatar img{width:100%;height:100%;object-fit:cover}
.v-guide-name{font-size:17px;font-weight:700;color:#0f172a}
.v-guide-desc{font-size:12.5px;color:#64748b;line-height:1.8;margin:10px 0 20px}
.v-guide-btn{
  width:100%;height:44px;border-radius:12px;background:#3b5bfd;color:#fff;font-size:14px;font-weight:600
}
.v-guide-btn:active{transform:scale(.98)}
