/* ============================================================
   AIZP 客服 — TUIKit 风格对话页面样式覆盖
   参照腾讯云 TUIChat H5 组件视觉规范
   ============================================================ */

/* ========== 全局基础 ========== */
html, body, button, input, textarea, pre {
    font-family: "HarmonyOS Sans SC", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif !important;
    -webkit-font-smoothing: antialiased;
}

body {
    background: #EDEDED !important;
}

/* ========== 顶部导航栏 ========== */
.header {
    height: 56px !important;
    line-height: 56px !important;
    background: #FFFFFF !important;
    color: #181818 !important;
    border-bottom: 1px solid #E8E8E8 !important;
    border-radius: 0 !important;
    padding: 0 16px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04) !important;
}

.header img {
    border-radius: 50% !important;
}

/* ========== 对话内容区域 ========== */
.content {
    background: #F5F5F5 !important;
    top: 56px !important;
    bottom: 160px !important;
}

.conversation {
    padding: 16px 12px !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* ========== 消息项 ========== */
.chatmsg, .chatmsg_no {
    margin-bottom: 16px !important;
    padding: 0 4px !important;
}

/* ========== 头像 ========== */
.chatmsg .my-circle,
.chatmsg_no .my-circle,
.se_pic {
    width: 36px !important;
    height: 36px !important;
    border-radius: 6px !important;
    object-fit: cover !important;
}

/* ========== 消息气泡 — 客户（右侧/自己发的） ========== */
.customer {
    background: #007DFF !important;
    color: #FFFFFF !important;
    border-radius: 12px 4px 12px 12px !important;
    padding: 10px 14px !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    max-width: 70% !important;
    box-shadow: 0 1px 2px rgba(0,125,255,0.1) !important;
    margin-top: 4px !important;
}

.customer a {
    color: #FFFFFF !important;
    text-decoration: underline !important;
}

/* ========== 消息气泡 — 客服（左侧/对方发的） ========== */
.service {
    background: #FFFFFF !important;
    color: #181818 !important;
    border-radius: 4px 12px 12px 12px !important;
    padding: 10px 14px !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    max-width: 70% !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
    margin-top: 4px !important;
}

.service a {
    color: #007DFF !important;
}

/* ========== 客服名称 ========== */
.service-name {
    font-size: 12px !important;
    color: #999999 !important;
    margin-bottom: 2px !important;
}

/* ========== 时间戳 ========== */
.showtime {
    color: #B2B2B2 !important;
    font-size: 12px !important;
    margin: 12px 0 !important;
    text-align: center !important;
}

/* ========== 底部输入区域 ========== */
.footer {
    height: 160px !important;
    border-top: 1px solid #E8E8E8 !important;
    background: #FFFFFF !important;
    box-shadow: 0 -1px 4px rgba(0,0,0,0.04) !important;
}

.msg-input {
    margin: 12px 16px 8px !important;
    height: 80px !important;
    border: none !important;
    outline: none !important;
    resize: none !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    color: #181818 !important;
    background: transparent !important;
}

.msg-input::placeholder {
    color: #C0C4CC !important;
}

/* ========== 工具栏 ========== */
.msg-toolbar {
    bottom: 50px !important;
    left: 16px !important;
    height: 28px !important;
}

.msg-toolbar a {
    width: 28px !important;
    height: 28px !important;
    margin-right: 12px !important;
    opacity: 0.65 !important;
}

.msg-toolbar a:hover {
    opacity: 1 !important;
}

/* ========== 发送按钮 ========== */
.msg-toolbar-footer {
    bottom: 12px !important;
    right: 16px !important;
}

.msg-toolbar-footer .msg-send-btn {
    background: #007DFF !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    height: 36px !important;
    width: 72px !important;
    border: none !important;
}

.msg-toolbar-footer .msg-send-btn:hover {
    background: #0060CC !important;
}

.msg-toolbar-footer .showinfo {
    background: #007DFF !important;
    border-radius: 0 8px 8px 0 !important;
    height: 36px !important;
}

/* ========== 表情面板 ========== */
.layui-layer {
    border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12) !important;
}

/* 表情包图片 */
.emoji-panel img,
li[onclick*="emoji"] img,
.layui-layer-content img[src*="emoji"] {
    width: 28px !important;
    height: 28px !important;
    margin: 4px !important;
    cursor: pointer !important;
}

/* ========== 评价弹窗 ========== */
.bg .dialog {
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15) !important;
    overflow: hidden !important;
}

.bg .title {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #181818 !important;
    border-bottom: 1px solid #F0F0F0 !important;
}

button.submit {
    background: #007DFF !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    height: 36px !important;
    width: 80px !important;
}

button.reset {
    background: #F5F5F5 !important;
    color: #666666 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    height: 36px !important;
    width: 80px !important;
}

/* ========== 离线留言弹窗 ========== */
.offline-item input {
    border-radius: 8px !important;
    border: 1px solid #E4E7ED !important;
    height: 36px !important;
    font-size: 14px !important;
    padding: 0 12px !important;
}

.offline-item input:focus {
    border-color: #007DFF !important;
    box-shadow: 0 0 0 2px rgba(0,125,255,0.1) !important;
    outline: none !important;
}

/* ========== 关键词推荐条 ========== */
.keyword .swiper-slide {
    border-radius: 16px !important;
    border: 1px solid #E4E7ED !important;
    font-size: 13px !important;
    color: #666666 !important;
    padding: 0 12px !important;
    height: 28px !important;
    line-height: 28px !important;
}

.keyword .swiper-slide:hover {
    border-color: #007DFF !important;
    color: #007DFF !important;
    background: #E6F2FF !important;
}

/* ========== 系统通知消息 ========== */
.chatmsg_notice {
    text-align: center !important;
    color: #999999 !important;
    font-size: 12px !important;
    margin-bottom: 16px !important;
    padding: 4px 12px !important;
}

/* ========== 图片消息 ========== */
.customer img,
.service img {
    border-radius: 8px !important;
    max-width: 200px !important;
}

/* ========== 响应式 — 移动端适配 ========== */
@media (max-width: 768px) {
    .header {
        height: 48px !important;
        line-height: 48px !important;
        font-size: 15px !important;
    }
    
    .content {
        top: 48px !important;
        bottom: 140px !important;
    }
    
    .footer {
        height: 140px !important;
    }
    
    .msg-input {
        height: 60px !important;
        margin: 8px 12px !important;
        font-size: 14px !important;
    }
    
    .customer, .service {
        max-width: 80% !important;
        font-size: 14px !important;
    }
    
    .chatmsg .my-circle,
    .chatmsg_no .my-circle,
    .se_pic {
        width: 32px !important;
        height: 32px !important;
    }
}

/* ========== 表情面板网格 ========== */
.emoji-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 8px !important;
    padding: 12px !important;
    list-style: none !important;
    margin: 0 !important;
}

.emoji-grid li {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
}

.emoji-grid li:hover {
    background: #F0F0F0 !important;
}

.emoji-grid li img {
    width: 28px !important;
    height: 28px !important;
}

.wl_faces_main {
    max-height: 200px !important;
    overflow-y: auto !important;
}

.tool_box {
    background: #FFFFFF !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12) !important;
    border: none !important;
}

/* ========== 消息中表情图片尺寸限制 ========== */
.chatmsg img[src*="emoji"],
.chatmsg img[src*="emo_"],
.chatmsg_no img[src*="emoji"],
.chatmsg_no img[src*="emo_"] {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    cursor: default !important;
}
/* 输入框中的表情图片 */
#text_in img[src*="emoji"],
#text_in img[src*="emo_"],
.msg-input img[src*="emoji"],
.msg-input img[src*="emo_"],
.edit-ipt img[src*="emoji"],
.edit-ipt img[src*="emo_"] {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

/* ---------- round8: header 标题文字颜色修复（inline color:#ffffff 白底白字）---------- */
.header span, .header div, .header #services, .header #status {
    color: #181818 !important;
}
.header #status {
    color: #86909c !important;
    font-size: 13px !important;
}

/* ============================================================
   Round14/15: PC 端同款新样式（与 H5 tim-theme.css 对齐）
   渐变顶栏 + 顶栏头像/在线状态/声音图标 + 无消息头像 + meta 行
   + sys-notice 居中提示 + 欢迎卡片 + 玻璃发送按钮 + 打字光标
   + 动态丝绸背景透明化
   ============================================================ */

/* ---------- 顶栏：蓝色渐变 + 头像 + 状态 ---------- */
.header.wl-header {
    display: flex !important;
    align-items: center !important;
    height: 56px !important;
    line-height: normal !important;
    padding: 0 18px !important;
    background: #e8f2fb !important;
    border-bottom: none !important;
    border-radius: 12px 12px 0 0 !important;
    box-shadow: 0 4px 12px #bcd4e8 !important;
    position: relative !important;
}
.header.wl-header #services,
.header.wl-header span,
.header.wl-header div {
    color: #0a2540 !important;
}
.header.wl-header #status {
    color: #00b3d9 !important;
}
.wl-header-avatar {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    margin-right: 10px !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 2px 6px #bcd4e8 !important;
    background: #fff;
    flex: none;
}
.header.wl-header #services {
    font-size: 16px !important;
    font-weight: 600 !important;
}
.wl-header-status {
    font-size: 13px !important;
    font-weight: 400 !important;
    opacity: 0.92;
    margin-left: 2px;
}
.wl-header-status.wl-off { opacity: 0.65; }
.wl-header-sound {
    position: absolute !important;
    right: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    opacity: 0.9;
}
.wl-header-sound:hover { opacity: 1; }

/* ---------- 消息：去头像 + meta 行 ---------- */
.conversation .my-circle,
.conversation .se_pic,
.conversation .cu_pic { display: none !important; }

.chatmsg .outer-left, .chatmsg_no .outer-left {
    margin-left: 4px !important;
    left: 8px !important;
    position: relative !important;
    top: auto !important;
    right: auto !important;
}
.chatmsg .outer-right {
    margin-right: 4px !important;
    right: 8px !important;
    position: relative !important;
    float: right;
    top: auto !important;
}
.chatmsg.wl-noavatar, .chatmsg_no.wl-noavatar {
    position: relative !important;
    height: auto !important;
    overflow: hidden;
}

.wl-msg-meta, .msg-meta {
    font-size: 12px !important;
    color: #9aa0aa !important;
    margin: 0 0 4px 10px !important;
    text-align: left;
    clear: both;
}
.msg-meta-right { text-align: right; margin-right: 10px !important; }

/* ---------- 居中系统提示 ---------- */
.wl-sys-li { text-align: center !important; height: auto !important; }
.wl-sys-notice, .sys-notice span {
    display: inline-block;
    background: rgba(0,0,0,0.045);
    color: #86909c !important;
    font-size: 12px !important;
    border-radius: 12px;
    padding: 4px 14px;
    margin: 8px auto;
}
li.sys-notice { text-align: center; list-style: none; }

/* ---------- 欢迎卡片（el-x-welcome 风格） ---------- */
.wl-welcome-li { list-style: none; padding: 4px 8px; }
.wl-welcome-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #f3f7ff 0%, #eef1ff 55%, #f6f0ff 100%);
    border: 1px solid #e3ebff;
    border-radius: 14px;
    padding: 16px 18px;
    max-width: 520px;
    box-shadow: 0 2px 10px rgba(43,109,232,0.08);
}
.wl-welcome-icon img {
    width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
    border: 2px solid #fff; box-shadow: 0 1px 5px rgba(0,0,0,0.12);
}
.wl-welcome-title { font-size: 16px; font-weight: 600; color: #1d2129; }
.wl-welcome-desc { font-size: 13px; color: #6b7280; margin-top: 4px; line-height: 1.5; }

/* ---------- 玻璃质感发送按钮 ---------- */
.msg-toolbar-footer .msg-send-btn.wl-send-btn {
    background: #e8f2fb !important;
    color: #3d94e6 !important;
    border-radius: 10px 0 0 10px !important;
    border: none !important;
    box-shadow: 6px 6px 12px #bcd4e8, -6px -6px 12px #ffffff !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-weight: 600 !important;
    letter-spacing: 2px;
    transition: transform .15s ease, box-shadow .15s ease;
}
.msg-toolbar-footer .msg-send-btn.wl-send-btn:hover {
    background: #e8f2fb !important;
    transform: translateY(-1px);
    box-shadow: 4px 4px 8px #bcd4e8, -4px -4px 8px #ffffff !important;
}
.msg-toolbar-footer .showinfo.wl-send-btn-side {
    background: #e8f2fb !important;
    border-radius: 0 10px 10px 0 !important;
    border: none !important;
    border-left: 1px solid #dfe2f5 !important;
    box-shadow: 6px 6px 12px #bcd4e8, -6px -6px 12px #ffffff !important;
    height: 36px !important;
}

/* ---------- 流式打字光标 ---------- */
.wl-caret {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: #2B6DE8;
    vertical-align: -0.15em;
    margin-left: 1px;
    animation: wl-blink 0.8s steps(1) infinite;
}
@keyframes wl-blink { 50% { opacity: 0; } }

/* ---------- Round15: 动态丝绸背景透明化 ---------- */
html.wl-silk-on body { background: transparent !important; }
html.wl-silk-on .content { background: transparent !important; }
html.wl-silk-on #container { background: transparent; }
#wl-silk-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
/* 页面主体浮于背景之上 */
html.wl-silk-on body > div { position: relative; z-index: 1; }
/* 半透明白色容器质感（气泡保持白底） */
html.wl-silk-on .footer {
    background: rgba(255,255,255,0.82) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
html.wl-silk-on .service { background: rgba(255,255,255,0.92) !important; }

/* ===== Round16: el-x-bubble 风格 正在输入 loading 气泡 ===== */
.wl-loading-li {
  list-style: none;
  padding: 6px 12px;
  display: block;
}
.wl-loading-bubble {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #fff;
  border-radius: 4px 16px 16px 16px;
  padding: 12px 16px;
  box-shadow: 0 2px 8px rgba(26, 86, 240, 0.08);
}
.wl-loading-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1a56f0;
  opacity: 0.35;
  animation: wlDotBounce 1.2s ease-in-out infinite;
}
.wl-loading-dot:nth-child(2) { animation-delay: 0.15s; }
.wl-loading-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes wlDotBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.35; }
  30% { transform: translateY(-5px); opacity: 1; }
}
.wl-loading-text {
  margin-left: 6px;
  font-size: 13px;
  color: #8a8f99;
}
/* 打字机光标改竖线（对齐示例 suffix:'|'） */
.wl-caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: #1a56f0;
  vertical-align: -0.15em;
  margin-left: 1px;
  animation: wlCaretBlink 0.8s step-end infinite;
}
@keyframes wlCaretBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ===== Round16b: 微信式时间分隔 + 圆点昵称流光标识 + 气泡美化 ===== */

/* 微信式时间分隔条 */
.wl-time-divider {
  list-style: none;
  text-align: center;
  padding: 10px 0 6px;
  display: block;
  clear: both;
}
.wl-time-divider span {
  display: inline-block;
  font-size: 12px;
  color: #9aa0ab;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 8px;
  padding: 2px 10px;
}

/* 消息标识行：小圆点 + 昵称（覆盖旧 msg-meta 样式） */
.msg-meta {
  display: flex !important;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #8a8f99;
  margin: 2px 0 4px 4px !important;
  text-align: left;
}
.msg-meta.msg-meta-right {
  justify-content: flex-end;
  text-align: right !important;
  margin-right: 8px !important;
}
.wl-meta-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #d6dae2 45%, #aeb4c0 100%);
  box-shadow: inset 0 0 1px rgba(0,0,0,0.25), 0 1px 2px rgba(0,0,0,0.12);
  flex: none;
}
.wl-meta-name {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
}
/* 客服昵称玻璃流光：白色高光从左到右扫过 */
.wl-shimmer {
  background: linear-gradient(100deg,
    #6b7280 0%, #6b7280 38%,
    #c7ccd6 46%, #ffffff 50%, #c7ccd6 54%,
    #6b7280 62%, #6b7280 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: wlShimmerSlide 2.8s linear infinite;
}
@keyframes wlShimmerSlide {
  0% { background-position: 120% 0; }
  100% { background-position: -130% 0; }
}

/* 气泡美化：更圆润 + 柔和阴影 */
.chatmsg .service, .chatmsg_no .service {
  border-radius: 4px 18px 18px 18px !important;
  box-shadow: 0 2px 10px rgba(60, 80, 130, 0.08) !important;
  background: rgba(255, 255, 255, 0.92) !important;
}
.chatmsg .customer, .chatmsg_no .customer {
  border-radius: 18px 4px 18px 18px !important;
  box-shadow: 0 2px 10px rgba(26, 86, 240, 0.16) !important;
}

/* ===== Round16c: 蓝白 Neumorphism 新拟态整套风格 =====
 * 基底 #e3ecf7（淡蓝白），暗阴影 #b8c8dd（右下），亮阴影 #ffffff（左上）
 * 客服气泡=凸起（外双阴影）；客户气泡=凹陷（inset）；输入框凹陷；按钮凸起按下凹陷
 */

/* 页面基底：淡蓝白（覆盖在云朵 canvas 之上的内容区保持通透，气泡自身用纯色） */
html.wl-silk-on body { background: transparent !important; }

/* 顶栏：纯色淡蓝白 + 底部软阴影（去渐变） */
.header,
html.wl-silk-on .header {
  background: #e3ecf7 !important;
  box-shadow: 0 4px 12px #b8c8dd !important;
  border: 0 !important;
}
.header span, .header div, .header-title-row #services {
  color: #3b4a63 !important;
  text-shadow: none !important;
}
.header #status { color: #5b8def !important; }
.header #clickbf i, .header #clickbf i.layui-icon { color: #5b7ba6 !important; }

/* 客服气泡：凸起浮雕（外双阴影，纯色不透明） */
.chatmsg .service, .chatmsg_no .service {
  background: #e9f0fa !important;
  border: 0 !important;
  border-radius: 6px 18px 18px 18px !important;
  box-shadow: 6px 6px 12px #b8c8dd, -6px -6px 12px #ffffff !important;
  color: #3b4a63 !important;
}
/* 客户气泡：凹陷内嵌（inset 双阴影） */
.chatmsg .customer, .chatmsg_no .customer {
  background: #ddedfa !important;
  border: 0 !important;
  border-radius: 18px 6px 18px 18px !important;
  box-shadow: inset 4px 4px 8px #b7d3ea, inset -4px -4px 8px #ffffff !important;
  color: #14507f !important;
}
.chatmsg .customer pre, .chatmsg_no .customer pre { color: #14507f !important; }
.chatmsg .service pre, .chatmsg_no .service pre { color: #3b4a63 !important; }

/* 输入区容器：淡蓝白纯色 + 顶部软阴影 */
.foot_all,
html.wl-silk-on .foot_all {
  background: #e3ecf7 !important;
  box-shadow: 0 -4px 12px rgba(184, 200, 221, 0.55) !important;
  border: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
/* 输入框：凹陷 inset，focus 阴影变浅 */
#text_in, #text_in.layui-input, .foot_msg .footer #text_in {
  background: #e3ecf7 !important;
  border: 0 !important;
  border-radius: 14px !important;
  box-shadow: inset 5px 5px 10px #b8c8dd, inset -5px -5px 10px #ffffff !important;
  color: #3b4a63 !important;
  transition: box-shadow 0.3s ease-in-out;
}
#text_in:focus {
  box-shadow: inset 2px 2px 4px #b8c8dd, inset -2px -2px 4px #ffffff !important;
  outline: none !important;
}

/* 发送按钮：凸起，按下凹陷（去渐变玻璃） */
.send-btn, .layui-btn-normal.send-btn, .footer .send-btn {
  background: #e3ecf7 !important;
  color: #3b6fd8 !important;
  border: 0 !important;
  border-radius: 14px !important;
  box-shadow: 6px 6px 12px #b8c8dd, -6px -6px 12px #ffffff !important;
  text-shadow: none !important;
  transition: box-shadow 0.2s ease;
  font-weight: 600;
}
.send-btn::before { display: none !important; }
.send-btn:hover { box-shadow: 4px 4px 8px #b8c8dd, -4px -4px 8px #ffffff !important; }
.send-btn:active {
  box-shadow: inset 4px 4px 8px #b8c8dd, inset -4px -4px 8px #ffffff !important;
  transform: none !important;
}

/* 工具栏图标：凸起小圆钮 */
.msg-toolbar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #e3ecf7;
  box-shadow: 4px 4px 8px #b8c8dd, -4px -4px 8px #ffffff;
  transition: box-shadow 0.2s ease;
  margin-right: 10px;
}
.msg-toolbar a:active {
  box-shadow: inset 3px 3px 6px #b8c8dd, inset -3px -3px 6px #ffffff;
}
.msg-toolbar a i.layui-icon { color: #5b7ba6 !important; }

/* 时间分隔条与系统通知：融入新拟态 */
.wl-time-divider span {
  background: #e3ecf7;
  color: #7d8ca3;
  box-shadow: inset 2px 2px 4px #c9d6e8, inset -2px -2px 4px #ffffff;
}
.sys-notice span, .wl-sys-notice {
  background: #e3ecf7 !important;
  color: #7d8ca3 !important;
  box-shadow: inset 2px 2px 4px #c9d6e8, inset -2px -2px 4px #ffffff !important;
  border: 0 !important;
}

/* 正在输入 loading 气泡：凸起 */
.wl-loading-bubble {
  background: #e9f0fa !important;
  box-shadow: 6px 6px 12px #b8c8dd, -6px -6px 12px #ffffff !important;
}
.wl-loading-dot { background: #5b8def !important; }

/* 圆点与流光配色微调至蓝白系 */
.wl-meta-dot {
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #cfdcee 45%, #9fb4d1 100%);
}

/* ===== Round16d: 全局配色锁定（Stripe 色板）覆盖段 =====
 * Primary #3d94e6 | Secondary #0a2540 | Accent1 #34c3ff | Accent2 #5aa7e8 | Accent3 #7fd4ff | Accent4 #8fc6f0
 * 新拟态基底 #e8f2fb（Primary 极浅衍生），暗阴影 #bcd4e8，亮阴影 #ffffff
 */

/* 顶栏 */
.header,
html.wl-silk-on .header {
  background: #e8f2fb !important;
  box-shadow: 0 4px 12px #bcd4e8 !important;
}
.header span, .header div, .header-title-row #services {
  color: #0a2540 !important;
}
.header #status { color: #00b3d9 !important; }
.header #clickbf i, .header #clickbf i.layui-icon { color: #3d94e6 !important; }

/* 客服气泡：凸起 */
.chatmsg .service, .chatmsg_no .service {
  background: #f2f4fd !important;
  box-shadow: 6px 6px 12px #bcd4e8, -6px -6px 12px #ffffff !important;
  color: #0a2540 !important;
}
.chatmsg .service pre, .chatmsg_no .service pre { color: #0a2540 !important; }

/* 客户气泡：凹陷（天蓝） */
.chatmsg .customer, .chatmsg_no .customer {
  background: #ddedfa !important;
  box-shadow: inset 4px 4px 8px #b7d3ea, inset -4px -4px 8px #ffffff !important;
  color: #14507f !important;
}
.chatmsg .customer pre, .chatmsg_no .customer pre { color: #14507f !important; }

/* 输入区容器 */
.foot_all,
html.wl-silk-on .foot_all {
  background: #e8f2fb !important;
  box-shadow: 0 -4px 12px rgba(188, 212, 232, 0.6) !important;
}
/* 输入框：凹陷 */
#text_in, #text_in.layui-input, .foot_msg .footer #text_in {
  background: #e8f2fb !important;
  box-shadow: inset 5px 5px 10px #bcd4e8, inset -5px -5px 10px #ffffff !important;
  color: #0a2540 !important;
}
#text_in:focus {
  box-shadow: inset 2px 2px 4px #bcd4e8, inset -2px -2px 4px #ffffff !important;
}

/* 发送按钮：凸起，主色文字 */
.send-btn, .layui-btn-normal.send-btn, .footer .send-btn {
  background: #e8f2fb !important;
  color: #3d94e6 !important;
  box-shadow: 6px 6px 12px #bcd4e8, -6px -6px 12px #ffffff !important;
}
.send-btn:hover { box-shadow: 4px 4px 8px #bcd4e8, -4px -4px 8px #ffffff !important; }
.send-btn:active {
  box-shadow: inset 4px 4px 8px #bcd4e8, inset -4px -4px 8px #ffffff !important;
}

/* 工具栏图标钮 */
.msg-toolbar a {
  background: #e8f2fb;
  box-shadow: 4px 4px 8px #bcd4e8, -4px -4px 8px #ffffff;
}
.msg-toolbar a:active {
  box-shadow: inset 3px 3px 6px #bcd4e8, inset -3px -3px 6px #ffffff;
}
.msg-toolbar a i.layui-icon { color: #3d94e6 !important; }

/* 时间分隔条 / 系统通知 */
.wl-time-divider span {
  background: #e8f2fb;
  color: rgba(10, 37, 64, 0.55);
  box-shadow: inset 2px 2px 4px #bcd4e8, inset -2px -2px 4px #ffffff;
}
.sys-notice span, .wl-sys-notice {
  background: #e8f2fb !important;
  color: rgba(10, 37, 64, 0.55) !important;
  box-shadow: inset 2px 2px 4px #bcd4e8, inset -2px -2px 4px #ffffff !important;
}

/* 正在输入 loading 气泡 */
.wl-loading-bubble {
  background: #f2f4fd !important;
  box-shadow: 6px 6px 12px #bcd4e8, -6px -6px 12px #ffffff !important;
}
.wl-loading-dot { background: #3d94e6 !important; }
.wl-loading-text { color: rgba(10, 37, 64, 0.55) !important; }

/* meta 行：圆点 + 昵称 */
.wl-meta-dot {
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #c9c5ff 45%, #8fc6f0 100%);
  box-shadow: inset 0 0 1px rgba(61, 148, 230, 0.35), 0 1px 2px rgba(61, 148, 230, 0.2);
}
.wl-meta-name { color: rgba(10, 37, 64, 0.6); }
/* 客服昵称流光：主色底 + 白高光扫过 */
.wl-shimmer {
  background: linear-gradient(100deg,
    #3d94e6 0%, #3d94e6 38%,
    #8fc6f0 46%, #ffffff 50%, #8fc6f0 54%,
    #3d94e6 62%, #3d94e6 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
}

/* 消息区文字与打字光标 */
.wl-typing-caret, #text_in .wl-stream-caret { color: #3d94e6 !important; }

/* 录音悬浮 HUD 配色 */
#wl-voice-hud { background: rgba(238, 240, 251, 0.96) !important; }
#wl-voice-hud .wl-hud-mic { background: #3d94e6 !important; box-shadow: 0 0 0 12px rgba(61, 148, 230, 0.15) !important; }
#wl-voice-hud .wl-hud-tip, #wl-voice-hud .wl-hud-text { color: #0a2540 !important; }

/* ===== Round16e: PC 端修正段 ===== */
/* 顶栏：覆盖 inline 主题色背景与白色文字 */
.wl-header, .header.wl-header {
  background: #e8f2fb !important;
  background-color: #e8f2fb !important;
  box-shadow: 0 4px 12px #bcd4e8 !important;
}
.wl-header #services { color: #0a2540 !important; font-weight: 600; }
.wl-header #status { color: #00b3d9 !important; }
.wl-header #clickbf i, .wl-header #clickbf i.layui-icon { color: #3d94e6 !important; }

/* PC 发送按钮（layui-btn a 标签）新拟态 */
.msg-send-btn, a.layui-btn.msg-send-btn, .wl-send-btn {
  background: #e8f2fb !important;
  background-image: none !important;
  color: #3d94e6 !important;
  border: none !important;
  box-shadow: 6px 6px 12px #bcd4e8, -6px -6px 12px #ffffff !important;
  border-radius: 10px !important;
}
.msg-send-btn:hover { box-shadow: 4px 4px 8px #bcd4e8, -4px -4px 8px #ffffff !important; }
.msg-send-btn:active { box-shadow: inset 4px 4px 8px #bcd4e8, inset -4px -4px 8px #ffffff !important; }
a.wl-send-btn-side, .showinfo.wl-send-btn-side {
  background: #e8f2fb !important;
  background-image: none !important;
  box-shadow: 6px 6px 12px #bcd4e8, -6px -6px 12px #ffffff !important;
  border-radius: 10px !important;
}
.wl-send-btn-side div { border-left-color: #bcd4e8 !important; }
.wl-send-btn-side img { filter: invert(38%) sepia(74%) saturate(4456%) hue-rotate(230deg) brightness(101%) contrast(102%); }

/* 怎样发截图：不换行、深色文字 */
#paste { white-space: nowrap; width: auto !important; color: rgba(10, 37, 64, 0.6) !important; }

/* PC 输入框（textarea）内嵌背景透明贴合容器 */
#text_in.edit-ipt { background: transparent !important; color: #0a2540 !important; }
.msg-editor-box, .msg-toolbar-footer { background: transparent !important; }

/* ===================== Round17 修复段 ===================== */
/* 1. 客服/客户气泡：宽度收缩自适应内容（修复全宽白块），大圆角 */
.chatmsg .service, .chatmsg_no .service {
  display: inline-block !important;
  width: auto !important;
  max-width: 78% !important;
  border-radius: 4px 20px 20px 20px !important;
  padding: 12px 16px !important;
  background: #f2f4fd !important;
  box-shadow: 6px 6px 14px #bcd4e8, -6px -6px 14px #ffffff !important;
}
.chatmsg .customer, .chatmsg_no .customer {
  display: inline-block !important;
  width: auto !important;
  max-width: 78% !important;
  border-radius: 20px 4px 20px 20px !important;
  padding: 12px 16px !important;
}
.chatmsg .outer-left, .chatmsg_no .outer-left {
  width: auto !important;
  max-width: 92% !important;
  float: none !important;
  display: block !important;
}
/* 客服消息 li 内容整体左对齐、留边距 */
.chatmsg_no .outer-left { margin-left: 10px !important; }
/* pre 不再撑满 */
.chatmsg .service pre, .chatmsg_no .service pre,
.chatmsg .customer pre, .chatmsg_no .customer pre {
  width: auto !important;
  max-width: 100% !important;
  white-space: pre-wrap !important;
  word-break: break-word !important;
  margin: 0 !important;
}
.chatmsg .service pre p, .chatmsg_no .service pre p,
.chatmsg .customer pre p, .chatmsg_no .customer pre p {
  width: auto !important;
}

/* 2. 底部工具栏：收紧靠左排列，不再全宽散开 */
.msg-toolbar {
  justify-content: flex-start !important;
  gap: 22px !important;
  padding-left: 14px !important;
}

/* ===================== Round17 end ===================== */

/* ===================== Round18 修复段 ===================== */
/* 1. 全局字体：加粗加大（用户反馈字体太细） */
body, #wrap, .chatmsg, .chatmsg_no {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif !important;
  -webkit-font-smoothing: antialiased;
}
.chatmsg .service pre, .chatmsg_no .service pre,
.chatmsg .service pre p, .chatmsg_no .service pre p,
.chatmsg .service pre p span, .chatmsg_no .service pre p span,
.chatmsg .customer pre, .chatmsg_no .customer pre,
.chatmsg .customer pre p, .chatmsg_no .customer pre p,
.chatmsg .customer pre p span, .chatmsg_no .customer pre p span {
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.6 !important;
  color: #0a2540 !important;
}
.chatmsg .customer pre, .chatmsg_no .customer pre,
.chatmsg .customer pre p span, .chatmsg_no .customer pre p span {
  color: #14507f !important;
}
/* meta 行昵称加粗 */
.msg-meta .wl-meta-name, .wl-msg-meta .wl-meta-name {
  font-size: 12.5px !important;
  font-weight: 600 !important;
}
/* 时间条 / 系统通知字重 */
.wl-time-divider span, .sys-notice span, .wl-sys-notice {
  font-weight: 500 !important;
  font-size: 12px !important;
}
/* 输入框文字与占位符 */
#text_in, #text_in.layui-input {
  font-size: 15px !important;
  font-weight: 500 !important;
  color: #0a2540 !important;
}
#text_in::placeholder { font-weight: 400 !important; color: #9aa3c0 !important; }
/* 发送按钮文字 */
.send-btn, .send-btn span, a.send-btn {
  font-size: 15px !important;
  font-weight: 700 !important;
}
/* 顶栏标题 */
.header #services, .header span, .header .wl-hd-name {
  font-weight: 700 !important;
}

/* 2. 工具栏：容器加高 52px，按钮缩小到 30px 并垂直居中，不再溢出 */
.msg-toolbar {
  height: 52px !important;
  align-items: center !important;
  overflow: visible !important;
}
.msg-toolbar a {
  width: 30px !important;
  height: 30px !important;
  flex: 0 0 30px !important;
  box-shadow: 3px 3px 6px #bcd4e8, -3px -3px 6px #ffffff !important;
  margin-right: 0 !important;
}
.msg-toolbar a i.layui-icon {
  font-size: 15px !important;
}
.msg-toolbar a img {
  width: 16px !important;
  height: 16px !important;
}
/* ===================== Round18 end ===================== */

/* ===== Round19: 全局配色改为天空蓝白系（参照"佳期"参考图）=====
   色板：主色 #3d94e6 / 深蓝 #2b7cc9 / 浅天蓝 #e3f1fc / 天蓝 #bfdff8 / 亮蓝 #8fc6f0
   文字深藏青 #0a2540 保留；新拟态基底 #e8f2fb；阴影 #bcd4e8 + 白高光 */

/* --- 新拟态基底与阴影全局换蓝 --- */
html.wl-silk-on .header,
html.wl-silk-on .footer,
html.wl-silk-on .msg-toolbar {
  background: rgba(232, 242, 251, 0.86) !important;
}
html.wl-silk-on .header {
  box-shadow: 0 4px 12px rgba(143, 198, 240, 0.45) !important;
}

/* 输入框：蓝调凹陷 */
#text_in {
  background: #e8f2fb !important;
  box-shadow: inset 5px 5px 10px #bcd4e8, inset -5px -5px 10px #ffffff !important;
  color: #0a2540 !important;
}
#text_in:focus {
  box-shadow: inset 2px 2px 4px #bcd4e8, inset -2px -2px 4px #ffffff !important;
}

/* 工具栏圆形图标按钮：蓝调凸起 */
.msg-toolbar a {
  background: #e8f2fb !important;
  box-shadow: 3px 3px 6px #bcd4e8, -3px -3px 6px #ffffff !important;
}
.msg-toolbar a:active {
  box-shadow: inset 3px 3px 6px #bcd4e8, inset -3px -3px 6px #ffffff !important;
}
.msg-toolbar a i, .msg-toolbar a svg, .msg-toolbar a img {
  filter: hue-rotate(-40deg) saturate(1.1);
}

/* 发送按钮：蓝调凸起 + 主蓝文字 */
.wl-send-btn, .footer .send, a.send, #send_btn {
  background: #e8f2fb !important;
  box-shadow: 4px 4px 8px #bcd4e8, -4px -4px 8px #ffffff !important;
  color: #2b7cc9 !important;
}
.wl-send-btn:active, .footer .send:active, a.send:active, #send_btn:active {
  box-shadow: inset 4px 4px 8px #bcd4e8, inset -4px -4px 8px #ffffff !important;
}

/* 麦克风按钮 */
#wl-mic-btn {
  background: #e8f2fb !important;
  box-shadow: 3px 3px 6px #bcd4e8, -3px -3px 6px #ffffff !important;
  color: #2b7cc9 !important;
}
#wl-mic-btn svg, #wl-mic-btn i { color: #2b7cc9 !important; fill: #2b7cc9 !important; }

/* --- 气泡：客服凸起（白→浅天蓝面）、客户凹陷（天蓝调） --- */
.service {
  background: linear-gradient(145deg, #ffffff, #eaf4fd) !important;
  box-shadow: 5px 5px 10px #bcd4e8, -5px -5px 10px #ffffff !important;
  color: #0a2540 !important;
}
.chatmsg .customer, .chatmsg_no .customer {
  background: #ddedfa !important;
  box-shadow: inset 4px 4px 8px #b7d3ea, inset -4px -4px 8px #ffffff !important;
  color: #14507f !important;
}
.chatmsg .customer pre, .chatmsg_no .customer pre,
.chatmsg .customer p, .chatmsg_no .customer p,
.chatmsg .customer span, .chatmsg_no .customer span { color: #14507f !important; }
.service pre, .service p, .service span { color: #0a2540 !important; }

/* --- meta 行：圆点 + 昵称 --- */
.wl-meta-dot, .msg-meta .dot, .wl-msg-meta .dot {
  background: #3d94e6 !important;
  box-shadow: 0 0 4px rgba(61, 148, 230, 0.6) !important;
}
.msg-meta, .wl-msg-meta { color: #4d7ba6 !important; }

/* 客服昵称流光：蓝系 */
.wl-name-shine, .msg-meta .shine {
  color: #2b7cc9 !important;
  background-image: linear-gradient(100deg, #2b7cc9 20%, #8fd0ff 45%, #ffffff 50%, #8fd0ff 55%, #2b7cc9 80%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

/* --- 时间分隔胶囊 --- */
.wl-time-divider span, .wl-time-divider {
  color: #5b87ad !important;
}
.wl-time-divider span {
  background: rgba(227, 241, 252, 0.9) !important;
  box-shadow: 2px 2px 5px #bcd4e8, -2px -2px 5px #ffffff !important;
}

/* --- 顶栏 --- */
.header, #services { color: #0a2540 !important; }
.header .wl-online-status, .wl-status-text { color: #2b7cc9 !important; }
.wl-status-dot { background: #34c3ff !important; box-shadow: 0 0 6px rgba(52, 195, 255, 0.8) !important; }

/* 正在输入 loading 气泡：蓝点 */
.wl-loading-bubble {
  background: linear-gradient(145deg, #ffffff, #eaf4fd) !important;
  box-shadow: 5px 5px 10px #bcd4e8, -5px -5px 10px #ffffff !important;
}
.wl-loading-dot { background: #3d94e6 !important; }

/* 打字机光标 */
.wl-caret { color: #3d94e6 !important; }

/* 系统通知条（转接等） */
.wl-sys-notice, .sys-notice span {
  color: #5b87ad !important;
  background: rgba(227, 241, 252, 0.9) !important;
}

/* 欢迎卡片 */
.wl-welcome-card {
  background: linear-gradient(145deg, #ffffff, #eaf4fd) !important;
  box-shadow: 5px 5px 10px #bcd4e8, -5px -5px 10px #ffffff !important;
}

/* 录音 HUD：蓝系 */
#wl-voice-hud {
  background: rgba(232, 242, 251, 0.96) !important;
  box-shadow: 8px 8px 20px #bcd4e8, -8px -8px 20px #ffffff !important;
}
#wl-voice-hud .wl-hud-mic { background: #3d94e6 !important; box-shadow: 0 0 0 10px rgba(61, 148, 230, 0.15) !important; }
#wl-voice-hud .wl-hud-tip { color: #4d7ba6 !important; }
#wl-voice-hud .wl-hud-text { color: #0a2540 !important; }

/* 常见问题面板（PC 右栏）与滚动条 */
.wl-faq-panel, .keyword { background: rgba(232, 242, 251, 0.8) !important; }
::-webkit-scrollbar-thumb { background: #bfdff8 !important; }

/* 链接与强调色 */
a { color: #2b7cc9; }

/* 残留紫色兜底：body 底色转蓝 */
body { background: #e8f2fb; }

/* ===================== Round44 — H5 壳层布局打磨（不动主色） ===================== */
@keyframes azChatFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.header {
  height: 56px !important;
  padding: 0 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  z-index: 30 !important;
}

.content,
.conversation {
  scroll-behavior: smooth;
}

.conversation {
  padding: 18px 14px 24px !important;
}

.chatmsg,
.chatmsg_no {
  margin-bottom: 14px !important;
  animation: azChatFade .18s ease-out;
}

.customer,
.service {
  padding: 11px 14px !important;
  line-height: 1.55 !important;
  word-break: break-word !important;
}

.footer,
.foot_msg .footer,
html.wl-silk-on .footer {
  padding-bottom: max(10px, env(safe-area-inset-bottom)) !important;
  border-top: 1px solid #e8eef5 !important;
  background: #ffffff !important;
  box-shadow: 0 -4px 16px rgba(28, 61, 89, 0.04) !important;
}

.msg-input,
#text_in,
#text_in.layui-input {
  border-radius: 20px !important;
  min-height: 40px !important;
  padding: 8px 14px !important;
  border: 1px solid #dce8f3 !important;
  background: #f7fafc !important;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease !important;
}

.msg-input:focus,
#text_in:focus,
#text_in.layui-input:focus {
  border-color: #7eb6e0 !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(44, 125, 196, 0.12) !important;
  outline: none !important;
}

.msg-toolbar,
.msg-toolbar-footer {
  gap: 4px !important;
  align-items: center !important;
}

.wl-empty,
.empty-chat,
.no-message,
.conversation:empty::after {
  color: #9db3c6;
}

/* 窄屏：防止输入区被裁切 */
@media (max-width: 768px) {
  .header {
    height: 48px !important;
    line-height: 48px !important;
    padding: 0 12px !important;
  }
  .content {
    top: 48px !important;
    bottom: calc(148px + env(safe-area-inset-bottom)) !important;
  }
  .conversation {
    padding: 14px 10px 20px !important;
  }
  .customer,
  .service {
    max-width: 78% !important;
    font-size: 15px !important;
  }
  .footer,
  .foot_msg .footer {
    padding: 8px 10px max(10px, env(safe-area-inset-bottom)) !important;
  }
}
/* ===================== Round44 end ===================== */
