/**
 * 商品 / 订单消息卡片：自适应布局（增量样式）
 * 由 index.html 在原有样式之后加载，仅补充新结构与响应式约束，
 * 通过 !important 覆盖原有固定宽度，不修改原 CSS 文件。
 */

/* ---------- 1. 客服工作台（PC，chunk-2b2d9b34 scope: data-v-7ce59327） ---------- */

.msg-wrapper .order-wrapper[data-v-7ce59327],
.msg-wrapper .order-wrapper[data-v-6e3cb1d3] {
  width: 320px !important;
  max-width: 100% !important;
  box-sizing: border-box;
  cursor: pointer;
}

.msg-wrapper .order-wrapper[data-v-7ce59327] .img-box,
.msg-wrapper .order-wrapper[data-v-6e3cb1d3] .img-box {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  overflow: hidden;
}

.msg-wrapper .order-wrapper[data-v-7ce59327] .img-box img,
.msg-wrapper .order-wrapper[data-v-6e3cb1d3] .img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.msg-wrapper .order-wrapper[data-v-7ce59327] .order-info,
.msg-wrapper .order-wrapper[data-v-6e3cb1d3] .order-info {
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0;
  margin-left: 10px;
  box-sizing: border-box;
}

.msg-wrapper .order-wrapper[data-v-7ce59327] .order-info .name,
.msg-wrapper .order-wrapper[data-v-7ce59327] .order-info .kf-goods-sub,
.msg-wrapper .order-wrapper[data-v-7ce59327] .order-info .kf-order-line,
.msg-wrapper .order-wrapper[data-v-6e3cb1d3] .order-info .name,
.msg-wrapper .order-wrapper[data-v-6e3cb1d3] .order-info .kf-goods-sub,
.msg-wrapper .order-wrapper[data-v-6e3cb1d3] .order-info .kf-order-line {
  word-break: break-all;
}

/* 客服工作台窄窗口：图片与文字上下排列 */
@media (max-width: 520px) {
  .msg-wrapper .order-wrapper[data-v-7ce59327],
.msg-wrapper .order-wrapper[data-v-6e3cb1d3] {
    flex-wrap: wrap;
  }

  .msg-wrapper .order-wrapper[data-v-7ce59327] .order-info,
.msg-wrapper .order-wrapper[data-v-6e3cb1d3] .order-info {
    width: 100% !important;
    margin-left: 0;
    margin-top: 6px;
  }
}

/* 商品卡可点击态：整卡点击打开商品，鼠标悬停与按下给出明确反馈 */
.msg-wrapper .order-wrapper.kf-goods-card[data-v-7ce59327],
.msg-wrapper .order-wrapper.kf-goods-card[data-v-6e3cb1d3] {
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}

.msg-wrapper .order-wrapper.kf-goods-card[data-v-7ce59327]:hover,
.msg-wrapper .order-wrapper.kf-goods-card[data-v-6e3cb1d3]:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
  border-color: #d7dbe2;
}

.msg-wrapper .order-wrapper.kf-goods-card[data-v-7ce59327]:active,
.msg-wrapper .order-wrapper.kf-goods-card[data-v-6e3cb1d3]:active {
  transform: scale(.995);
}

/* 更窄的客服窗口：图片缩到 48px，价格与销量同行不换行 */
@media (max-width: 420px) {
  .msg-wrapper .order-wrapper[data-v-7ce59327] .img-box,
.msg-wrapper .order-wrapper[data-v-6e3cb1d3] .img-box {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
  }

  .msg-wrapper .order-wrapper[data-v-7ce59327] .order-info .sku,
.msg-wrapper .order-wrapper[data-v-6e3cb1d3] .order-info .sku {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ---------- 2. 客服工作台（手机，chunk-2cd66a35 scope: data-v-79624c4c） ---------- */

.chat-scroll-box .chat-item .product-box[data-v-79624c4c],
.chat-scroll-box .chat-item .product-box[data-v-7a8fd8ef] {
  width: 4.52rem;
  max-width: 100% !important;
  box-sizing: border-box;
}

.chat-scroll-box .chat-item .product-box[data-v-79624c4c] img,
.chat-scroll-box .chat-item .product-box[data-v-7a8fd8ef] img {
  max-width: 100%;
  height: auto;
  display: block;
}

.chat-scroll-box .chat-item .product-box[data-v-79624c4c] .info .name,
.chat-scroll-box .chat-item .product-box[data-v-7a8fd8ef] .info .name {
  word-break: break-all;
}

.chat-scroll-box .chat-item .product-box[data-v-79624c4c] .info .kf-goods-sub,
.chat-scroll-box .chat-item .product-box[data-v-79624c4c] .info .kf-order-line,
.chat-scroll-box .chat-item .product-box[data-v-7a8fd8ef] .info .kf-goods-sub,
.chat-scroll-box .chat-item .product-box[data-v-7a8fd8ef] .info .kf-order-line {
  font-size: .24rem;
  color: #999;
  line-height: 1.5;
  word-break: break-all;
}

/* ---------- 3. 访客聊天页（PC scope: data-v-9484568a / 手机 scope: data-v-6ace7b5a） ---------- */

.chart_list_item_imgOrText[data-v-9484568a],
.chart_list_item_imgOrText[data-v-6ace7b5a],
.chart_list_item_imgOrText[data-v-9484568a],
.chart_list_item_imgOrText[data-v-2ec4738c],
.chart_list_item_imgOrText[data-v-6a6c9b08],
.chart_list_item_imgOrText[data-v-6ace7b5a],
.chart_list_item_imgOrText[data-v-6a6c9b08],
.chart_list_item_imgOrText[data-v-2ec4738c] {
  max-width: 100% !important;
  box-sizing: border-box;
  cursor: pointer;
}

@media (max-width: 767px) {
  .chart_list_item_imgOrText[data-v-9484568a],
  .chart_list_item_imgOrText[data-v-6ace7b5a],
.chart_list_item_imgOrText[data-v-9484568a],
  .chart_list_item_imgOrText[data-v-2ec4738c],
.chart_list_item_imgOrText[data-v-6a6c9b08],
  .chart_list_item_imgOrText[data-v-6ace7b5a],
.chart_list_item_imgOrText[data-v-6a6c9b08],
  .chart_list_item_imgOrText[data-v-2ec4738c] {
    width: auto !important;
    max-width: 86vw !important;
  }
}

/* ---------- 4. 新增文本行（商品副标题 / 订单摘要 / 查看商品） ---------- */

.kf-goods-sub {
  font-size: 12px;
  color: #999;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kf-order-line {
  font-size: 12px;
  color: #666;
  line-height: 1.6;
  word-break: break-all;
}

.kf-goods-link {
  display: inline-block;
  margin-top: 2px;
  font-size: 12px;
  color: #3875ea;
  text-decoration: none;
}

.kf-goods-link:hover {
  text-decoration: underline;
}

/* ---------- 5. 访客咨询页（电脑端 PC，data-v-9484568a） ---------- */

/* 5.1 隐藏右侧广告面板整块（含“这就是一个测试界面，想了解更多请关注我们”文案） */
.pc_customerServer_container .pc_customerServer_container_advertisement[data-v-9484568a],
.pc_customerServer_container_advertisement[data-v-9484568a],
.pc_customerServer_container .pc_customerServer_container_advertisement[data-v-6a6c9b08],
.pc_customerServer_container_advertisement[data-v-6a6c9b08] {
  display: none !important;
}

/* 5.2 收起后容器宽度与左侧聊天区自适配 */
.pc_customerServer_container.max-width_con[data-v-9484568a],
.max-width_con[data-v-9484568a],
.pc_customerServer_container.max-width_advertisement[data-v-9484568a],
.max-width_advertisement[data-v-9484568a],
.pc_customerServer_container.max-width_con[data-v-6a6c9b08],
.max-width_con[data-v-6a6c9b08],
.pc_customerServer_container.max-width_advertisement[data-v-6a6c9b08],
.max-width_advertisement[data-v-6a6c9b08] {
  max-width: 100% !important;
}

.layout_content .layout_customerServer_content[data-v-9484568a],
.layout_content .layout_customerServer_content[data-v-6a6c9b08] {
  border-right: 0 !important;
}
/* 5.3 容器尺寸分档：桌面档收窄为居中卡片，平板/手机档保持整屏 */
/* 桌面档（≥993px）：不再铺满整窗，改为有边界的会话卡片 */
@media (min-width: 993px) {
  .pc_customerServer[data-v-9484568a],
.pc_customerServer[data-v-6a6c9b08] {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    background: #eef1f6 !important;
  }

  /* 会话卡片宽度：880px → 1080px（净增 200px）。
     高度不再写死 720px，改为随视口高度伸缩（上限 780px、留白 10vh），
     宽度同样保留 92vw 上限，窄屏时按比例收缩，不出现横向溢出。 */
  .pc_customerServer_container[data-v-9484568a],
  .pc_customerServer_container.max-width_con[data-v-9484568a],
  .pc_customerServer_container.max-width_advertisement[data-v-9484568a],
.pc_customerServer_container[data-v-6a6c9b08],
  .pc_customerServer_container.max-width_con[data-v-6a6c9b08],
  .pc_customerServer_container.max-width_advertisement[data-v-6a6c9b08] {
    width: min(1080px, 92vw) !important;
    height: min(780px, 90vh) !important;
    max-width: 92vw !important;
    max-height: 90vh !important;
    border-radius: 12px !important;
    box-shadow: 0 18px 46px rgba(20, 42, 84, 0.18) !important;
  }

  /* 气泡宽度随卡片加宽后按 62% / 640px 双重上限收敛：
     文字行不再被拉成横贯整张卡片的长条，阅读节奏与 880px 时保持一致。
     图片、订单卡片沿用原有 60% / 226px 口径，不受影响。 */
  .pc_customerServer_container_content .chart_list_item_text[data-v-9484568a],
.pc_customerServer_container_content .chart_list_item_text[data-v-6a6c9b08] {
    max-width: min(62%, 640px) !important;
  }
}

/* 平板/手机档（≤992px）：沿用整屏铺满口径 */
@media (max-width: 992px) {
  .pc_customerServer_container[data-v-9484568a],
  .pc_customerServer_container.max-width_con[data-v-9484568a],
  .pc_customerServer_container.max-width_advertisement[data-v-9484568a],
.pc_customerServer_container[data-v-6a6c9b08],
  .pc_customerServer_container.max-width_con[data-v-6a6c9b08],
  .pc_customerServer_container.max-width_advertisement[data-v-6a6c9b08] {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    border-radius: 8px !important;
    box-shadow: none !important;
  }
}
 
/* 5.4 电脑端客服头像：恢复显示头部客服头像与消息列表客服侧头像
 * 旧构建（data-v-9484568a）由基础样式给出 30px 圆形；新构建（data-v-6a6c9b08）
 * 把该规则改成了 display:none，只恢复显示而不给尺寸时，头像会按原图尺寸撑高
 * 56px 头部、又被 flex 压缩，表现为左上角图标变形。这里补全几何尺寸并等比裁切。 */
.pc_customerServer_container_header_title[data-v-9484568a] img[data-v-9484568a],
.pc_customerServer_container_header_title img[data-v-9484568a],
.pc_customerServer_container_header_title[data-v-6a6c9b08] img[data-v-6a6c9b08],
.pc_customerServer_container_header_title img[data-v-6a6c9b08] {
  display: inline-block !important;
  flex: 0 0 auto !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  max-width: 30px !important;
  border-radius: 50% !important;
  margin-right: 10px !important;
  object-fit: cover !important;
  object-position: center !important;
  background: rgba(255, 255, 255, 0.35);
}

/* 5.5 电脑端头部标题区：名称过长时单行省略，不挤压头像、不撑破 56px 头部 */
.pc_customerServer_container_header_title[data-v-9484568a],
.pc_customerServer_container_header_title[data-v-6a6c9b08] {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: hidden;
}

.pc_customerServer_container_header_title[data-v-9484568a] span,
.pc_customerServer_container_header_title[data-v-6a6c9b08] span {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.chart_list_item_content .chart_list_item_avatar[data-v-9484568a],
.chart_list_item_content .chart_list_item_avatar[data-v-6a6c9b08] {
  display: block !important;
}

/* 5.6 消息行昵称：电脑端与手机端访客咨询页共用
 * 说明：访客模板本身不渲染消息级昵称节点，昵称由 kefu-chat-resilience.js 注入，
 *       这里只负责定位与排版，不改动任何消息结构。
 * 定位基准：行内左内边距 8px + 头像 33px + 头像右间距 10px = 51px。 */
.chart_list_item_content {
  position: relative;
}

.chart_list_item_content.kf-has-nick {
  padding-top: 24px !important;
}

.chart_list_item_content .kf-msg-nick {
  position: absolute;
  top: 4px;
  left: 51px;
  max-width: 62%;
  font-size: 12px;
  line-height: 16px;
  color: #98a2b3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.chart_list_item_content.right-box .kf-msg-nick {
  left: auto;
  right: 51px;
  text-align: right;
}

/* 5.5 输入区：圆角卡片 + 聚焦高亮 + 胶囊发送按钮 */
.layout_customerServer_content .footer[data-v-9484568a],
.layout_customerServer_content .footer[data-v-6a6c9b08] {
  padding: 12px 16px 10px !important;
  background: #fff !important;
}

.footer ._footer_input[data-v-9484568a],
.footer ._footer_input[data-v-6a6c9b08] {
  background: #f7f8fa !important;
  border: 1px solid #e8ebf0 !important;
  border-radius: 10px !important;
  padding: 6px 10px !important;
  box-sizing: border-box !important;
  transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.footer ._footer_input[data-v-9484568a]:focus-within,
.footer ._footer_input[data-v-6a6c9b08]:focus-within {
  background: #fff !important;
  border-color: #3875ea !important;
  box-shadow: 0 0 0 3px rgba(56, 117, 234, 0.12) !important;
}

.footer ._footer_input > div[data-v-9484568a],
.footer ._footer_input > div[data-v-6a6c9b08] {
  height: 78px !important;
  max-height: 78px !important;
}

.footer ._footer_input-textarea[data-v-9484568a],
.footer ._footer_input-textarea[data-v-6a6c9b08] {
  font-size: 15px !important;
  line-height: 22px !important;
  padding-top: 2px !important;
  color: #333 !important;
}

.footer ._footer_input-textarea[data-v-9484568a]:empty::before,
.footer ._footer_input-textarea[data-v-6a6c9b08]:empty::before {
  content: "请输入你想咨询的内容…";
  color: #b9bfc9;
  pointer-events: none;
}

.footer ._handle[data-v-9484568a],
.footer ._handle[data-v-6a6c9b08] {
  margin: 10px 0 0 !important;
}

.footer ._handle_send[data-v-9484568a],
.footer ._handle_send[data-v-6a6c9b08] {
  width: 74px !important;
  height: 32px !important;
  line-height: 32px !important;
  border-radius: 16px !important;
  margin: 0 !important;
  font-size: 14px !important;
  box-shadow: 0 4px 10px rgba(56, 117, 234, 0.24) !important;
}

.footer ._footer_copyright[data-v-9484568a],
.footer ._footer_copyright[data-v-6a6c9b08] {
  left: 0 !important;
  width: 100% !important;
  bottom: 2px !important;
  padding: 2px 0 !important;
  font-size: 12px !important;
  color: #c8c8c8 !important;
}

@media (max-width: 640px) {
  .pc_customerServer_container[data-v-9484568a],
.pc_customerServer_container[data-v-6a6c9b08] {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    border-radius: 8px !important;
  }

  .layout_customerServer_content .footer[data-v-9484568a],
.layout_customerServer_content .footer[data-v-6a6c9b08] {
    padding: 10px 12px 8px !important;
  }

  .footer ._footer_input > div[data-v-9484568a],
.footer ._footer_input > div[data-v-6a6c9b08] {
    height: 66px !important;
    max-height: 66px !important;
  }
}

/* 5.6 商品开票信息条：取消固定高度、主图等比方形填充（与手机端口径一致） */
.productMessage_container[data-v-9484568a],
.productMessage_container[data-v-6a6c9b08] {
  height: auto !important;
  min-height: 94px !important;
}

.productMessage_container_image[data-v-9484568a],
.productMessage_container_image[data-v-6a6c9b08] {
  flex: 0 0 auto !important;
  width: 77px !important;
  height: 77px !important;
  aspect-ratio: 1 / 1;
  border-radius: 6px !important;
  overflow: hidden !important;
  background: #f5f6f8 !important;
}

.productMessage_container_image img[data-v-9484568a],
.productMessage_container_image img[data-v-6a6c9b08] {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* 5.7 会话内商品卡片：主图保持方形，裁切填充不变形 */
.chart_list_item_imgOrText[data-v-9484568a] .order-wrapper .img-box[data-v-9484568a],
.chart_list_item_imgOrText[data-v-6a6c9b08] .order-wrapper .img-box[data-v-6a6c9b08] {
  position: relative !important;
  width: 100% !important;
  padding-top: 100% !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  background: #f5f6f8 !important;
}

.chart_list_item_imgOrText[data-v-9484568a] .order-wrapper .img-box img[data-v-9484568a],
.chart_list_item_imgOrText[data-v-6a6c9b08] .order-wrapper .img-box img[data-v-6a6c9b08] {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

@media (min-width: 641px) {
  .chart_list_item_imgOrText[data-v-9484568a],
.chart_list_item_imgOrText[data-v-6a6c9b08] {
    width: 226px !important;
    max-width: calc(100vw - 80px) !important;
  }
}

/* 5.8 平板端（641–992px）：App.vue 判定 Tablet 时使用 PC 页面，按平板视口收敛留白与气泡宽度 */
@media (min-width: 641px) and (max-width: 992px) {
  .pc_customerServer_container_header[data-v-9484568a],
.pc_customerServer_container_header[data-v-6a6c9b08] {
    padding: 12px 20px !important;
  }

  .pc_customerServer_container_content .chart_list_item_text[data-v-9484568a],
.pc_customerServer_container_content .chart_list_item_text[data-v-6a6c9b08] {
    max-width: 76% !important;
  }

  .pc_customerServer_container_content .chart_list_item_img[data-v-9484568a],
.pc_customerServer_container_content .chart_list_item_img[data-v-6a6c9b08] {
    max-width: 64% !important;
  }

  .pc_customerServer_container_footer[data-v-9484568a],
.pc_customerServer_container_footer[data-v-6a6c9b08] {
    padding: 12px 20px !important;
    min-height: 170px !important;
  }

  .pc_customerServer_container_footer_emoji[data-v-9484568a],
.pc_customerServer_container_footer_emoji[data-v-6a6c9b08] {
    max-width: 380px !important;
    max-height: 190px !important;
  }

  .productMessage_container_image[data-v-9484568a],
.productMessage_container_image[data-v-6a6c9b08] {
    width: 72px !important;
    height: 72px !important;
  }
}

/* 5.9 平板横屏 / 矮屏：表情面板与输入区高度收敛，避免挤占消息区 */
@media (min-width: 641px) and (max-width: 992px) and (max-height: 600px) {
  .pc_customerServer_container_footer[data-v-9484568a],
.pc_customerServer_container_footer[data-v-6a6c9b08] {
    min-height: 140px !important;
  }

  .pc_customerServer_container_footer_emoji[data-v-9484568a],
.pc_customerServer_container_footer_emoji[data-v-6a6c9b08] {
    max-height: 140px !important;
  }
}

/* ---------- 6. 访客咨询页（手机端 H5，data-v-6ace7b5a） ---------- */

/* 6.0 输入栏外壳：微信同款灰底，四周留白与安全区统一 */
.mobel_customerServer_container_footer[data-v-6ace7b5a],
.mobel_customerServer_container_footer[data-v-2ec4738c] {
  padding: 7px 10px calc(7px + env(safe-area-inset-bottom)) !important;
  background: #f7f7f7 !important;
  border-top: 1px solid #ededed !important;
  box-sizing: border-box !important;
  /* 多行输入时三个圆形按钮与发送按钮跟输入框底边对齐，与微信一致 */
  align-items: flex-end !important;
  justify-content: flex-start !important;
}

/* 6.1 四段式顺序：语音 → 胶囊输入框 → 表情 → 文件（有文字时文件位切换为发送） */
.mobel_customerServer_container_footer[data-v-6ace7b5a] .kf-mi-voice,
.mobel_customerServer_container_footer[data-v-2ec4738c] .kf-mi-voice {
  order: 1;
}

.mobel_customerServer_container_footer_input[data-v-6ace7b5a],
.mobel_customerServer_container_footer_input[data-v-2ec4738c] {
  order: 2;
}

.mobel_customerServer_container_footer_emoji[data-v-6ace7b5a],
.mobel_customerServer_container_footer_emoji[data-v-2ec4738c] {
  order: 3;
}

.mobel_customerServer_container_footer_uploag_image[data-v-6ace7b5a],
.mobel_customerServer_container_footer_uploag_image[data-v-2ec4738c] {
  order: 4;
}

.mobel_customerServer_container_footer .sendMessage[data-v-6ace7b5a],
.mobel_customerServer_container_footer .sendMessage[data-v-2ec4738c] {
  order: 5;
}

/* 6.2 语音 / 表情 / 文件：统一 30px 圆形握持区，纵向与胶囊同高，
       单行时视觉居中、多行时随底边对齐，横向互不挤压 */
.mobel_customerServer_container_footer[data-v-6ace7b5a] .kf-mi-voice,
.mobel_customerServer_container_footer[data-v-6ace7b5a] .mobel_customerServer_container_footer_emoji,
.mobel_customerServer_container_footer[data-v-6ace7b5a] .mobel_customerServer_container_footer_uploag_image,
.mobel_customerServer_container_footer[data-v-2ec4738c] .kf-mi-voice,
.mobel_customerServer_container_footer[data-v-2ec4738c] .mobel_customerServer_container_footer_emoji,
.mobel_customerServer_container_footer[data-v-2ec4738c] .mobel_customerServer_container_footer_uploag_image {
  flex: 0 0 30px !important;
  width: 30px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #2b2b2b !important;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.16s ease;
}

.mobel_customerServer_container_footer[data-v-6ace7b5a] .kf-mi-voice,
.mobel_customerServer_container_footer[data-v-2ec4738c] .kf-mi-voice {
  position: relative;
}

.mobel_customerServer_container_footer[data-v-6ace7b5a] .kf-mi-voice:active,
.mobel_customerServer_container_footer[data-v-6ace7b5a] .mobel_customerServer_container_footer_emoji:active,
.mobel_customerServer_container_footer[data-v-6ace7b5a] .mobel_customerServer_container_footer_uploag_image:active,
.mobel_customerServer_container_footer[data-v-2ec4738c] .kf-mi-voice:active,
.mobel_customerServer_container_footer[data-v-2ec4738c] .mobel_customerServer_container_footer_emoji:active,
.mobel_customerServer_container_footer[data-v-2ec4738c] .mobel_customerServer_container_footer_uploag_image:active {
  opacity: 0.55;
}

.mobel_customerServer_container_footer .kf-mi-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  pointer-events: none;
}

.mobel_customerServer_container_footer .kf-mi-ico svg {
  width: 26px;
  height: 26px;
  display: block;
}

/* 手机端访客页图标略放大，贴近微信输入栏的视觉重量 */
.mobel_customerServer_container_footer[data-v-6ace7b5a] .kf-mi-ico,
.mobel_customerServer_container_footer[data-v-6ace7b5a] .kf-mi-ico svg,
.mobel_customerServer_container_footer[data-v-2ec4738c] .kf-mi-ico,
.mobel_customerServer_container_footer[data-v-2ec4738c] .kf-mi-ico svg {
  width: 28px;
  height: 28px;
}

/* 原 iconfont 字形保留节点仅隐藏，避免破坏既有绑定 */
.mobel_customerServer_container_footer .kf-mi-hidden {
  display: none !important;
}

/* 6.3 胶囊输入框：白底、8px 圆角、40px 基准高度，随内容纵向自适应 */
.mobel_customerServer_container_footer_input[data-v-6ace7b5a],
.mobel_customerServer_container_footer_input[data-v-2ec4738c] {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 8px !important;
  padding: 0 10px !important;
  min-height: 40px !important;
  background: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
}

/* 空态与单行输入态同高：min-height 取胶囊内高（40px），
   与 textarea 的「上下内边距 9px ×2 + 行高 22px」严格相等。
   这样「请输入内容」占位符与输入后的正文落在同一基线位置，
   上下留白各 9px、字形中心正好压在胶囊垂直中线上 */
.mobel_customerServer_container_footer_input_con[data-v-6ace7b5a],
.mobel_customerServer_container_footer_input_con[data-v-2ec4738c] {
  min-height: 40px !important;
  max-height: 106px !important;
  width: 100% !important;
  overflow: hidden !important;
  /* 超过 4 行时由 textarea 内部滚动，避免内容被居中裁掉首尾行 */
  align-items: flex-start !important;
}

/* textarea 与镜像 p 使用同一尺寸，避免换行跳动与 iOS 聚焦缩放（16px 起不触发缩放） */
.mobel_customerServer_container_footer_input_con .font[data-v-6ace7b5a],
.mobel_customerServer_container_footer_input_con .font[data-v-2ec4738c] {
  font-size: 16px !important;
  line-height: 22px !important;
  padding: 9px 0 !important;
  box-sizing: border-box !important;
  word-break: break-word;
}

.mobel_customerServer_container_footer_input_con textarea[data-v-6ace7b5a],
.mobel_customerServer_container_footer_input_con textarea[data-v-2ec4738c] {
  padding: 9px 0 !important;
  font-size: 16px !important;
  line-height: 22px !important;
  color: #1a1a1a !important;
  caret-color: #3875ea !important;
  box-sizing: border-box !important;
  -webkit-appearance: none;
}

.mobel_customerServer_container_footer_input_con textarea[data-v-6ace7b5a]::-webkit-input-placeholder,
.mobel_customerServer_container_footer_input_con textarea[data-v-2ec4738c]::-webkit-input-placeholder {
  color: #b6b6b6 !important;
}

.mobel_customerServer_container_footer_input_con textarea[data-v-6ace7b5a]::placeholder,
.mobel_customerServer_container_footer_input_con textarea[data-v-2ec4738c]::placeholder {
  color: #b6b6b6 !important;
}

/* 6.4 发送按钮：仅在输入框有内容时占据最右一格，其余时间让位给文件图标 */
.mobel_customerServer_container_footer .sendMessage[data-v-6ace7b5a],
.mobel_customerServer_container_footer .sendMessage[data-v-2ec4738c] {
  display: none !important;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  height: 32px !important;
  padding: 0 14px !important;
  margin-left: 6px !important;
  border-radius: 6px !important;
  font-size: 15px !important;
  line-height: 32px !important;
  color: #fff !important;
}

.mobel_customerServer_container_footer.kf-mi-has-text .sendMessage[data-v-6ace7b5a],
.mobel_customerServer_container_footer.kf-mi-has-text .sendMessage[data-v-2ec4738c] {
  display: flex !important;
  background: #3875ea !important;
}

.mobel_customerServer_container_footer.kf-mi-has-text .mobel_customerServer_container_footer_uploag_image[data-v-6ace7b5a],
.mobel_customerServer_container_footer.kf-mi-has-text .mobel_customerServer_container_footer_uploag_image[data-v-2ec4738c] {
  display: none !important;
}

/* 6.5 键盘展开时回收底部安全区，避免输入栏与键盘之间多出一条空白 */
.pc_customerServer_container.kf-mi-kb .mobel_customerServer_container_footer[data-v-6ace7b5a],
.pc_customerServer_container.kf-mi-kb .mobel_customerServer_container_footer[data-v-2ec4738c] {
  padding-bottom: 7px !important;
}

.mobel_customerServer_container_footer .crmchat_link[data-v-6ace7b5a],
.mobel_customerServer_container_footer .crmchat_link[data-v-2ec4738c] {
  font-size: 12px !important;
  opacity: 0.72;
}

/* 6.6 头部头像 / 昵称：可点击进入主站客服中心（/kf/index.html），PC 与手机端共用 */
.pc_customerServer_container_header .pc_customerServer_container_header_title {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.pc_customerServer_container_header .pc_customerServer_container_header_title:active {
  opacity: 0.82;
}

/* 6.1 手机端 H5 咨询页响应式收敛（镜像 mobileCustomerServer.vue 内建样式） */

/* 容器不超出 iframe 视口，避免出现纵向溢出滚动 */
.pc_customerServer_container[data-v-6ace7b5a],
.pc_customerServer_container[data-v-2ec4738c] {
  max-width: 100% !important;
  max-height: 100% !important;
  box-sizing: border-box !important;
}

/* 头部固定高度并预留刘海屏安全区；无 viewport-fit 时 env() 回退为 0，不产生视觉变化 */
.pc_customerServer_container_header[data-v-6ace7b5a],
.pc_customerServer_container_header[data-v-2ec4738c] {
  flex: 0 0 auto !important;
  box-sizing: border-box !important;
  padding: calc(7px + env(safe-area-inset-top)) 14px 7px !important;
}

/* 客服昵称单行省略，窄屏下不挤压右侧关闭按钮 */
.pc_customerServer_container_header_title[data-v-6ace7b5a],
.pc_customerServer_container_header_title[data-v-2ec4738c] {
  flex: 1 !important;
  min-width: 0 !important;
}

.pc_customerServer_container_header_title span[data-v-6ace7b5a],
.pc_customerServer_container_header_title span[data-v-2ec4738c] {
  min-width: 0 !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

/* 内容区允许收缩，保证输入区始终留在视口内 */
.pc_customerServer_container_content[data-v-6ace7b5a],
.pc_customerServer_container_content[data-v-2ec4738c] {
  min-height: 0 !important;
}

/* 图文商品卡片在窄屏与折叠屏下不超出气泡可用宽度 */
.chart_list_item_imgOrText[data-v-6ace7b5a],
.chart_list_item_imgOrText[data-v-2ec4738c] {
  width: 226px !important;
  max-width: calc(100vw - 80px) !important;
}

/* 表情面板跟随视口高度收敛，横屏矮屏时不把输入区挤出画面 */
/* 加一层祖先选择器提升优先级，避免被运行时后插入的 chunk 样式覆盖 */
.pc_customerServer_container .canSelectemoji[data-v-6ace7b5a],
.pc_customerServer_container .canSelectemoji[data-v-2ec4738c] {
  max-height: 38vh !important;
}

@media (max-width: 360px) {
  .pc_customerServer_container_header[data-v-6ace7b5a],
.pc_customerServer_container_header[data-v-2ec4738c] {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .pc_customerServer_container_header_title img[data-v-6ace7b5a],
.pc_customerServer_container_header_title img[data-v-2ec4738c] {
    width: 32px !important;
    height: 32px !important;
    margin-right: 8px !important;
  }

  .chart_list_item_imgOrText[data-v-6ace7b5a],
.chart_list_item_imgOrText[data-v-2ec4738c] {
    width: calc(100vw - 72px) !important;
  }

  .mobel_customerServer_container_footer[data-v-6ace7b5a],
.mobel_customerServer_container_footer[data-v-2ec4738c] {
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom)) !important;
  }

  /* 窄屏收敛：图标与胶囊同步缩小，保证四段式不换行、不重叠 */
  .mobel_customerServer_container_footer[data-v-6ace7b5a] .kf-mi-voice,
  .mobel_customerServer_container_footer[data-v-6ace7b5a] .mobel_customerServer_container_footer_emoji,
  .mobel_customerServer_container_footer[data-v-6ace7b5a] .mobel_customerServer_container_footer_uploag_image,
.mobel_customerServer_container_footer[data-v-2ec4738c] .kf-mi-voice,
  .mobel_customerServer_container_footer[data-v-2ec4738c] .mobel_customerServer_container_footer_emoji,
  .mobel_customerServer_container_footer[data-v-2ec4738c] .mobel_customerServer_container_footer_uploag_image {
    flex: 0 0 27px !important;
    width: 27px !important;
    height: 38px !important;
  }

  .mobel_customerServer_container_footer[data-v-6ace7b5a] .kf-mi-ico,
  .mobel_customerServer_container_footer[data-v-6ace7b5a] .kf-mi-ico svg,
.mobel_customerServer_container_footer[data-v-2ec4738c] .kf-mi-ico,
  .mobel_customerServer_container_footer[data-v-2ec4738c] .kf-mi-ico svg {
    width: 24px;
    height: 24px;
  }

  .mobel_customerServer_container_footer_input[data-v-6ace7b5a],
.mobel_customerServer_container_footer_input[data-v-2ec4738c] {
    margin: 0 6px !important;
    padding: 0 8px !important;
    min-height: 38px !important;
  }

  .mobel_customerServer_container_footer_input_con .font[data-v-6ace7b5a],
  .mobel_customerServer_container_footer_input_con textarea[data-v-6ace7b5a],
.mobel_customerServer_container_footer_input_con .font[data-v-2ec4738c],
  .mobel_customerServer_container_footer_input_con textarea[data-v-2ec4738c] {
    padding: 8px 0 !important;
  }

  .mobel_customerServer_container_footer_input_con[data-v-6ace7b5a],
.mobel_customerServer_container_footer_input_con[data-v-2ec4738c] {
    /* 与 38px 胶囊内高对齐：8 + 22 + 8 = 38 */
    min-height: 38px !important;
    max-height: 104px !important;
  }

  .mobel_customerServer_container_footer .sendMessage[data-v-6ace7b5a],
.mobel_customerServer_container_footer .sendMessage[data-v-2ec4738c] {
    height: 30px !important;
    line-height: 30px !important;
    padding: 0 11px !important;
    font-size: 14px !important;
  }
}

/* 320px 级超窄屏（iPhone SE 一代等）：进一步压缩图标与间距 */
@media (max-width: 320px) {
  .mobel_customerServer_container_footer[data-v-6ace7b5a],
.mobel_customerServer_container_footer[data-v-2ec4738c] {
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)) !important;
  }

  .mobel_customerServer_container_footer[data-v-6ace7b5a] .kf-mi-voice,
  .mobel_customerServer_container_footer[data-v-6ace7b5a] .mobel_customerServer_container_footer_emoji,
  .mobel_customerServer_container_footer[data-v-6ace7b5a] .mobel_customerServer_container_footer_uploag_image,
.mobel_customerServer_container_footer[data-v-2ec4738c] .kf-mi-voice,
  .mobel_customerServer_container_footer[data-v-2ec4738c] .mobel_customerServer_container_footer_emoji,
  .mobel_customerServer_container_footer[data-v-2ec4738c] .mobel_customerServer_container_footer_uploag_image {
    flex: 0 0 25px !important;
    width: 25px !important;
    height: 36px !important;
  }

  .mobel_customerServer_container_footer[data-v-6ace7b5a] .kf-mi-ico,
  .mobel_customerServer_container_footer[data-v-6ace7b5a] .kf-mi-ico svg,
.mobel_customerServer_container_footer[data-v-2ec4738c] .kf-mi-ico,
  .mobel_customerServer_container_footer[data-v-2ec4738c] .kf-mi-ico svg {
    width: 22px;
    height: 22px;
  }

  .mobel_customerServer_container_footer_input[data-v-6ace7b5a],
.mobel_customerServer_container_footer_input[data-v-2ec4738c] {
    margin: 0 5px !important;
    padding: 0 7px !important;
    min-height: 36px !important;
  }

  .mobel_customerServer_container_footer_input_con .font[data-v-6ace7b5a],
  .mobel_customerServer_container_footer_input_con textarea[data-v-6ace7b5a],
.mobel_customerServer_container_footer_input_con .font[data-v-2ec4738c],
  .mobel_customerServer_container_footer_input_con textarea[data-v-2ec4738c] {
    padding: 7px 0 !important;
  }

  .mobel_customerServer_container_footer_input_con[data-v-6ace7b5a],
.mobel_customerServer_container_footer_input_con[data-v-2ec4738c] {
    /* 与 36px 胶囊内高对齐：7 + 22 + 7 = 36 */
    min-height: 36px !important;
  }

  .mobel_customerServer_container_footer .sendMessage[data-v-6ace7b5a],
.mobel_customerServer_container_footer .sendMessage[data-v-2ec4738c] {
    height: 28px !important;
    line-height: 28px !important;
    padding: 0 9px !important;
    font-size: 13px !important;
  }
}

@media (max-height: 480px) {
  .pc_customerServer_container_header[data-v-6ace7b5a],
.pc_customerServer_container_header[data-v-2ec4738c] {
    padding: calc(4px + env(safe-area-inset-top)) 14px 4px !important;
  }

  .pc_customerServer_container_header_title img[data-v-6ace7b5a],
.pc_customerServer_container_header_title img[data-v-2ec4738c] {
    width: 30px !important;
    height: 30px !important;
  }

  .pc_customerServer_container .canSelectemoji[data-v-6ace7b5a],
.pc_customerServer_container .canSelectemoji[data-v-2ec4738c] {
    height: 140px !important;
    max-height: 42vh !important;
  }

  /* 横屏矮屏：输入栏同步收高，保证消息区仍有可视高度 */
  .mobel_customerServer_container_footer[data-v-6ace7b5a],
.mobel_customerServer_container_footer[data-v-2ec4738c] {
    padding: 5px 10px calc(5px + env(safe-area-inset-bottom)) !important;
  }

  .mobel_customerServer_container_footer[data-v-6ace7b5a] .kf-mi-voice,
  .mobel_customerServer_container_footer[data-v-6ace7b5a] .mobel_customerServer_container_footer_emoji,
  .mobel_customerServer_container_footer[data-v-6ace7b5a] .mobel_customerServer_container_footer_uploag_image,
.mobel_customerServer_container_footer[data-v-2ec4738c] .kf-mi-voice,
  .mobel_customerServer_container_footer[data-v-2ec4738c] .mobel_customerServer_container_footer_emoji,
  .mobel_customerServer_container_footer[data-v-2ec4738c] .mobel_customerServer_container_footer_uploag_image {
    height: 34px !important;
  }

  .mobel_customerServer_container_footer_input[data-v-6ace7b5a],
.mobel_customerServer_container_footer_input[data-v-2ec4738c] {
    min-height: 34px !important;
  }

  .mobel_customerServer_container_footer_input_con .font[data-v-6ace7b5a],
  .mobel_customerServer_container_footer_input_con textarea[data-v-6ace7b5a],
.mobel_customerServer_container_footer_input_con .font[data-v-2ec4738c],
  .mobel_customerServer_container_footer_input_con textarea[data-v-2ec4738c] {
    padding: 6px 0 !important;
  }

  .mobel_customerServer_container_footer_input_con[data-v-6ace7b5a],
.mobel_customerServer_container_footer_input_con[data-v-2ec4738c] {
    /* 与 34px 胶囊内高对齐：6 + 22 + 6 = 34 */
    min-height: 34px !important;
    max-height: 84px !important;
  }
}

/* ============================================================
   第七段：访客咨询页「结束对话」按钮（PC / H5 通用）
   由 kefu-session-plus.js 注入，类名 kf-end-chat
   ============================================================ */
.pc_customerServer_container_header .kf-end-chat {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 0 12px;
  height: 26px;
  line-height: 24px;
  font-size: 12px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: background-color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.pc_customerServer_container_header .kf-end-chat:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: #fff;
}

.pc_customerServer_container_header .kf-end-chat:active {
  background: rgba(255, 255, 255, 0.34);
}

.pc_customerServer_container_header .kf-end-chat[disabled] {
  opacity: 0.55;
  cursor: default;
}

/* 关闭按钮与原有「关闭窗口」按钮之间保留间距 */
.pc_customerServer_container_header .kf-end-chat + .pc_customerServer_container_header_handle {
  margin-left: 10px;
}

/* ============================================================
   第八段：客服工作台「转接」面板增强
   由 kefu-transfer-plus.js 注入
   ============================================================ */
.transfer-box .kf-transfer-caption {
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 1.4;
  color: #8a94a6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.transfer-box .kf-transfer-empty {
  padding: 18px 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  color: #98a2b3;
}

.kf-online-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.18);
  vertical-align: middle;
}

/* ============================================================
   第九段：游客手机咨询页商品主图「方形 + 等比填充」
   作用域：data-v-6ace7b5a（mobileCustomerServer.vue）
   ------------------------------------------------------------
   实现口径：
   1) 顶部商品开票信息条主图固定 1:1 方形，object-fit:cover 等比填充，
      非方形原图不拉伸、不裁切变形，图未加载完成时以浅灰底占位避免跳版；
   2) 聊天区商品卡主图用 padding-top:100% 撑成方形（不依赖 aspect-ratio，
      兼容旧版移动端浏览器），图片绝对定位铺满并等比填充；
   3) 宿主气泡已有显式宽度（226px / calc(100vw - 80px)），
      图片改为绝对定位后不会造成卡片宽度塌陷。
   ============================================================ */
.productMessage_container_image[data-v-6ace7b5a],
.productMessage_container_image[data-v-2ec4738c] {
  flex: 0 0 auto !important;
  width: 77px !important;
  height: 77px !important;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  background: #f5f6f8;
}

.productMessage_container_image[data-v-6ace7b5a] img,
.productMessage_container_image[data-v-2ec4738c] img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
}

.chart_list_item_imgOrText[data-v-6ace7b5a] .order-wrapper .img-box,
.chart_list_item_imgOrText[data-v-2ec4738c] .order-wrapper .img-box {
  position: relative !important;
  width: 100% !important;
  height: 0 !important;
  padding-top: 100% !important;
  border-radius: 6px;
  overflow: hidden;
  background: #f5f6f8;
}

.chart_list_item_imgOrText[data-v-6ace7b5a] .order-wrapper .img-box img,
.chart_list_item_imgOrText[data-v-2ec4738c] .order-wrapper .img-box img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* 窄屏：商品条主图随视口收敛，宽高始终相等 */
@media (max-width: 360px) {
  .productMessage_container_image[data-v-6ace7b5a],
.productMessage_container_image[data-v-2ec4738c] {
    width: 64px !important;
    height: 64px !important;
  }
}

/* 超窄屏：再收敛一档 */
@media (max-width: 320px) {
  .productMessage_container_image[data-v-6ace7b5a],
.productMessage_container_image[data-v-2ec4738c] {
    width: 56px !important;
    height: 56px !important;
    margin-right: 10px !important;
  }
}

/* 横屏矮屏：压缩商品条高度，仍保持方形 */
@media (max-height: 480px) {
  .productMessage_container_image[data-v-6ace7b5a],
.productMessage_container_image[data-v-2ec4738c] {
    width: 60px !important;
    height: 60px !important;
  }
}

/* ============================================================
   第十段：商品 / 课程卡片主图加载体验 + 头像兜底
   作用域：访客咨询页（PC / H5）与客服工作台的卡片、消息头像
   ------------------------------------------------------------
   配套脚本：kefu-chat-resilience.js 中的卡片与头像渲染加固
   实现口径：
   1) 卡片主图未加载完成时保持浅灰占位，加载完成后 180ms 淡入，
      不改变原有固定方形与 object-fit 规则；
   2) 主图加载失败时隐藏破图图标，仍保留方形占位块；
   3) 头像为空或加载失败时由脚本替换为内置中性剪影，
      这里只负责底色与裁切一致性，不涉及任何身份数据。
   ============================================================ */

.kf-goods-card .img-box img {
  background-color: #f5f6f8;
  transition: opacity 0.18s ease-out;
}

.kf-goods-card .img-box img.kf-img-fade {
  opacity: 0;
}

.kf-goods-card .img-box img.kf-img-ready {
  opacity: 1;
}

/* 加载失败：隐藏破图图标，保留浅灰占位块，卡片结构不变化 */
.kf-goods-card .img-box img.kf-img-error {
  visibility: hidden;
}

.chart_list_item_avatar img.kf-avatar-fallback,
.pc_customerServer_container_header_title img.kf-avatar-fallback,
.avatar img.kf-avatar-fallback {
  background-color: #eef0f3;
  object-fit: cover;
  object-position: center;
}

@media (prefers-reduced-motion: reduce) {
  .kf-goods-card .img-box img {
    transition: none;
  }
}

/* ============================================================
   第十一段：客服工作台会话区（/kefu/pc_list）可读性与自适应
   作用域：chunk-2b2d9b34（data-v-7ce59327）
   ------------------------------------------------------------
   目标：
   1) 缓解消息过于紧凑：拉开条间距、增加气泡内边距与行高；
   2) 结构层次：时间弱化为分组标识，气泡补一层极浅投影；
   3) 自适应：气泡宽度按会话列宽用 min()/calc() 计算，不写死像素；
   4) 图片调小：限制会话内图片最大高度，等比缩放不变形；
   5) 输入框聚焦：补充 1px 外线框（原样式 :focus-visible{outline:0}）。
   本节只覆盖视觉呈现，不改动任何 DOM 结构与业务逻辑。
   ============================================================ */

/* 11.1 会话滚动内容：原为内联 width:600px（含 20px 内边距会向右溢出，
   横向被 hide-horizontal 裁掉），此处改为随列宽自适应并保持四周留白 */
#chat_scroll {
  width: auto !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding: 18px 20px 20px !important;
}

/* 11.2 消息条目：加大纵向间距，形成清晰的逐条分隔 */
.content-wrapper .container .chat-content .chat-body .chat-item[data-v-7ce59327],
.content-wrapper .container .chat-content .chat-body .chat-item[data-v-6e3cb1d3] {
  margin-bottom: 18px !important;
}

.content-wrapper .container .chat-content .chat-body .chat-item[data-v-7ce59327]:last-child,
.content-wrapper .container .chat-content .chat-body .chat-item[data-v-6e3cb1d3]:last-child {
  margin-bottom: 6px !important;
}

/* 11.3 时间：弱化为分组标识，与消息正文拉开层次 */
.content-wrapper .container .chat-content .chat-body .chat-item .time[data-v-7ce59327],
.content-wrapper .container .chat-content .chat-body .chat-item .time[data-v-6e3cb1d3] {
  margin: 20px 0 14px !important;
  font-size: 12px !important;
  color: #9aa3af !important;
  letter-spacing: .2px;
}

/* 11.4 气泡：内外留白、行高与圆角；宽度随会话列宽自适应 */
.content-wrapper .container .chat-content .chat-body .chat-item .msg-wrapper[data-v-7ce59327],
.content-wrapper .container .chat-content .chat-body .chat-item .msg-wrapper[data-v-6e3cb1d3] {
  max-width: 340px !important;
  max-width: min(340px, calc(100% - 88px)) !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  line-height: 1.62 !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .06) !important;
}

.content-wrapper .container .chat-content .chat-body .chat-item .msg-wrapper .pad16[data-v-7ce59327],
.content-wrapper .container .chat-content .chat-body .chat-item .msg-wrapper .pad16[data-v-6e3cb1d3] {
  padding: 11px 14px !important;
}

.content-wrapper .container .chat-content .chat-body .chat-item .msg-wrapper .txt-wrapper[data-v-7ce59327],
.content-wrapper .container .chat-content .chat-body .chat-item .msg-wrapper .txt-wrapper[data-v-6e3cb1d3] {
  line-height: 1.62 !important;
  word-break: break-word !important;
  overflow-wrap: anywhere;
}

/* 11.5 会话内图片：限制最大显示高度，等比缩放，不裁切不变形 */
.content-wrapper .container .chat-content .chat-body .chat-item .msg-wrapper .img-wraper img[data-v-7ce59327],
.content-wrapper .container .chat-content .chat-body .chat-item .msg-wrapper .img-wraper img[data-v-6e3cb1d3] {
  max-width: 100% !important;
  max-height: 200px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

/* 11.6 输入框描边：常驻 1px 浅灰外线框，聚焦时只加深一档灰，不再使用蓝色；
   outline 不占据布局，不影响输入与发送逻辑 */
.content-wrapper .container .chat-content .chat-textarea .editable[data-v-7ce59327],
.content-wrapper .container .chat-content .chat-textarea .editable[data-v-6e3cb1d3] {
  outline: 1px solid #e3e5e8 !important;
  outline-offset: 0 !important;
  border-radius: 6px !important;
}

.content-wrapper .container .chat-content .chat-textarea .editable[data-v-7ce59327]:focus,
.content-wrapper .container .chat-content .chat-textarea .editable[data-v-7ce59327]:focus-within,
.content-wrapper .container .chat-content .chat-textarea .editable[data-v-6e3cb1d3]:focus,
.content-wrapper .container .chat-content .chat-textarea .editable[data-v-6e3cb1d3]:focus-within {
  outline: 1px solid #c9ccd2 !important;
  outline-offset: 0 !important;
  border-radius: 6px !important;
}

/* 11.7 窄视口自适应：外层容器由固定 1200px 改为 100%，
   会话列改为弹性伸缩，气泡与图片上限同步收紧，避免再次拥挤 */
@media (max-width: 1200px) {
  .content-wrapper[data-v-7ce59327],
.content-wrapper[data-v-6e3cb1d3] {
    width: 100% !important;
    min-width: 1040px;
  }

  .content-wrapper .container .chat-content[data-v-7ce59327],
.content-wrapper .container .chat-content[data-v-6e3cb1d3] {
    width: auto !important;
    flex: 1 1 auto;
    min-width: 0;
  }

  .content-wrapper .container .chat-content .chat-body .chat-item[data-v-7ce59327],
.content-wrapper .container .chat-content .chat-body .chat-item[data-v-6e3cb1d3] {
    margin-bottom: 14px !important;
  }

  .content-wrapper .container .chat-content .chat-body .chat-item .msg-wrapper[data-v-7ce59327],
.content-wrapper .container .chat-content .chat-body .chat-item .msg-wrapper[data-v-6e3cb1d3] {
    max-width: min(300px, calc(100% - 76px)) !important;
  }

  .content-wrapper .container .chat-content .chat-body .chat-item .msg-wrapper .img-wraper img[data-v-7ce59327],
.content-wrapper .container .chat-content .chat-body .chat-item .msg-wrapper .img-wraper img[data-v-6e3cb1d3] {
    max-height: 168px !important;
  }
}

/* ============================================================
   第十二段：商品 / 课程卡片的折叠展示与电脑端版式优化
   作用域：客服工作台 PC（data-v-7ce59327）、访客咨询页 PC（data-v-9484568a）
   ------------------------------------------------------------
   背景（可验证）：主站下发的订单摘要 order_text 由多条记录以 "\n"
   拼接（backend_tp/app/api/controller/Kefu.php 中 buildOrderText），
   而原样式未声明 white-space，换行被折叠成一行，导致订单信息连排拥挤。
   本节处理口径：
   1) 订单摘要按原始换行分行显示，并默认折叠为 3 行；
   2) 折叠 / 展开按钮由 kefu-chat-resilience.js 按需插入，
      仅在内容确实超出时出现，点击不触发卡片的“打开商品”行为；
   3) 卡片宽度与主图尺寸随视口分档，窄窗口改为上下排列；
   4) 只改视觉呈现，不改动 DOM 模板与任何业务字段。
   ============================================================ */

/* 12.1 订单摘要：保留换行、统一行高与断词，作为可折叠的文本块 */
.msg-wrapper .order-wrapper[data-v-7ce59327] .order-info .kf-order-line,
.chart_list_item_imgOrText[data-v-9484568a] .order-wrapper .order-info .kf-order-line,
.msg-wrapper .order-wrapper[data-v-7ce59327] .order-info .kf-order-line,
.chart_list_item_imgOrText[data-v-6a6c9b08] .order-wrapper .order-info .kf-order-line,
.msg-wrapper .order-wrapper[data-v-6e3cb1d3] .order-info .kf-order-line,
.chart_list_item_imgOrText[data-v-9484568a] .order-wrapper .order-info .kf-order-line,
.msg-wrapper .order-wrapper[data-v-6e3cb1d3] .order-info .kf-order-line,
.chart_list_item_imgOrText[data-v-6a6c9b08] .order-wrapper .order-info .kf-order-line {
  display: block;
  margin-top: 5px;
  padding: 6px 8px;
  background: #f7f8fa;
  border: 1px solid #eef0f3;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.55;
  color: #5b6472;
  white-space: pre-line !important;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* 折叠态：3 行高度，超出部分隐藏；展开态恢复完整高度 */
.kf-order-line.kf-order-collapsed {
  max-height: calc(1.55em * 3 + 12px) !important;
  overflow: hidden !important;
}

.kf-order-line.kf-order-open {
  max-height: none !important;
  overflow: visible !important;
}

/* 12.2 折叠 / 展开按钮（由脚本插入，默认不参与点击卡片打开商品） */
.kf-order-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  padding: 1px 9px;
  font-size: 12px;
  line-height: 18px;
  color: #3875ea;
  background: #eef3ff;
  border: 1px solid #dbe4fb;
  border-radius: 10px;
  cursor: pointer;
  align-self: flex-start;
  transition: background-color .16s ease, border-color .16s ease;
}

.kf-order-toggle:hover {
  background: #e3ecff;
  border-color: #c8d8fb;
}

.kf-order-toggle:focus-visible {
  outline: 1px solid #3875ea;
  outline-offset: 1px;
}

/* 12.3 客服工作台 PC 商品卡：宽度随会话列自适应，信息列紧凑堆叠 */
.content-wrapper .container .chat-content .chat-body .chat-item .msg-wrapper .order-wrapper[data-v-7ce59327],
.content-wrapper .container .chat-content .chat-body .chat-item .msg-wrapper .order-wrapper[data-v-6e3cb1d3] {
  width: min(360px, 100%) !important;
  max-width: 100% !important;
  padding: 10px 12px !important;
  align-items: flex-start !important;
  box-sizing: border-box !important;
}

.content-wrapper .container .chat-content .chat-body .chat-item .msg-wrapper .order-wrapper[data-v-7ce59327] .order-info,
.content-wrapper .container .chat-content .chat-body .chat-item .msg-wrapper .order-wrapper[data-v-6e3cb1d3] .order-info {
  justify-content: flex-start !important;
  gap: 2px;
}

.content-wrapper .container .chat-content .chat-body .chat-item .msg-wrapper .order-wrapper[data-v-7ce59327] .order-info .name,
.content-wrapper .container .chat-content .chat-body .chat-item .msg-wrapper .order-wrapper[data-v-6e3cb1d3] .order-info .name {
  font-size: 13px !important;
  line-height: 1.45 !important;
  color: #1f2329;
}

.content-wrapper .container .chat-content .chat-body .chat-item .msg-wrapper .order-wrapper[data-v-7ce59327] .order-info .kf-goods-sub,
.content-wrapper .container .chat-content .chat-body .chat-item .msg-wrapper .order-wrapper[data-v-6e3cb1d3] .order-info .kf-goods-sub {
  font-size: 12px !important;
  line-height: 1.45 !important;
  color: #8a919f !important;
}

.content-wrapper .container .chat-content .chat-body .chat-item .msg-wrapper .order-wrapper[data-v-7ce59327] .order-info .sku,
.content-wrapper .container .chat-content .chat-body .chat-item .msg-wrapper .order-wrapper[data-v-6e3cb1d3] .order-info .sku {
  font-size: 12px !important;
  line-height: 1.45 !important;
  color: #9aa3af !important;
}

.content-wrapper .container .chat-content .chat-body .chat-item .msg-wrapper .order-wrapper[data-v-7ce59327] .order-info .price-box,
.content-wrapper .container .chat-content .chat-body .chat-item .msg-wrapper .order-wrapper[data-v-6e3cb1d3] .order-info .price-box {
  margin-top: 2px !important;
  font-size: 15px !important;
  font-weight: 600;
}

/* 12.4 访客咨询页 PC 商品卡：改为“左图右文”横排，主图收为方形缩略图 */
.chart_list_item_imgOrText[data-v-9484568a] .order-wrapper,
.chart_list_item_imgOrText[data-v-6a6c9b08] .order-wrapper {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  box-sizing: border-box !important;
}

.chart_list_item_imgOrText[data-v-9484568a] .order-wrapper .img-box[data-v-9484568a],
.chart_list_item_imgOrText[data-v-6a6c9b08] .order-wrapper .img-box[data-v-6a6c9b08] {
  position: relative !important;
  flex: 0 0 72px !important;
  width: 72px !important;
  height: 72px !important;
  padding-top: 0 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: #f2f3f5 !important;
}

.chart_list_item_imgOrText[data-v-9484568a] .order-wrapper .order-info[data-v-9484568a],
.chart_list_item_imgOrText[data-v-6a6c9b08] .order-wrapper .order-info[data-v-6a6c9b08] {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 1px;
}

.chart_list_item_imgOrText[data-v-9484568a] .order-wrapper .order-info .price-box[data-v-9484568a],
.chart_list_item_imgOrText[data-v-6a6c9b08] .order-wrapper .order-info .price-box[data-v-6a6c9b08] {
  font-size: 15px !important;
  line-height: 1.35 !important;
  font-weight: 600;
}

.chart_list_item_imgOrText[data-v-9484568a] .order-wrapper .order-info .name[data-v-9484568a],
.chart_list_item_imgOrText[data-v-6a6c9b08] .order-wrapper .order-info .name[data-v-6a6c9b08] {
  font-size: 13px !important;
  line-height: 1.4 !important;
  color: #1f2329;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.chart_list_item_imgOrText[data-v-9484568a] .order-wrapper .order-info .kf-goods-link[data-v-9484568a],
.chart_list_item_imgOrText[data-v-6a6c9b08] .order-wrapper .order-info .kf-goods-link[data-v-6a6c9b08] {
  margin-top: 2px;
  font-size: 12px;
  color: #3875ea;
  text-decoration: none;
}

/* 12.5 访客 PC 卡片外框：宽度分档，内边距与圆角统一（平板沿用同一口径） */
@media (min-width: 641px) {
  .chart_list_item_imgOrText[data-v-9484568a],
.chart_list_item_imgOrText[data-v-6a6c9b08] {
    width: min(288px, calc(100vw - 80px)) !important;
    padding: 10px 12px !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
  }
}

/* 12.6 访客 PC：平板档（641–992px）主图与卡片同步收敛 */
@media (min-width: 641px) and (max-width: 992px) {
  .chart_list_item_imgOrText[data-v-9484568a],
.chart_list_item_imgOrText[data-v-6a6c9b08] {
    width: min(272px, calc(100vw - 72px)) !important;
  }

  .chart_list_item_imgOrText[data-v-9484568a] .order-wrapper .img-box[data-v-9484568a],
.chart_list_item_imgOrText[data-v-6a6c9b08] .order-wrapper .img-box[data-v-6a6c9b08] {
    flex: 0 0 64px !important;
    width: 64px !important;
    height: 64px !important;
  }
}

/* 12.7 客服工作台：会话列变窄时同步收紧卡片与主图，避免文字被挤成竖排 */
@media (max-width: 1200px) {
  .content-wrapper .container .chat-content .chat-body .chat-item .msg-wrapper .order-wrapper[data-v-7ce59327],
.content-wrapper .container .chat-content .chat-body .chat-item .msg-wrapper .order-wrapper[data-v-6e3cb1d3] {
    width: min(320px, 100%) !important;
    padding: 9px 10px !important;
  }

  .content-wrapper .container .chat-content .chat-body .chat-item .msg-wrapper .order-wrapper[data-v-7ce59327] .img-box,
.content-wrapper .container .chat-content .chat-body .chat-item .msg-wrapper .order-wrapper[data-v-6e3cb1d3] .img-box {
    flex: 0 0 52px !important;
    width: 52px !important;
    height: 52px !important;
  }
}

/* 12.8 客服工作台：更窄的会话列（如分屏、小窗）改为上下排列，主图占满一行 */
@media (max-width: 640px) {
  .content-wrapper .container .chat-content .chat-body .chat-item .msg-wrapper .order-wrapper[data-v-7ce59327],
.content-wrapper .container .chat-content .chat-body .chat-item .msg-wrapper .order-wrapper[data-v-6e3cb1d3] {
    flex-wrap: wrap !important;
    width: 100% !important;
  }

  .content-wrapper .container .chat-content .chat-body .chat-item .msg-wrapper .order-wrapper[data-v-7ce59327] .img-box,
.content-wrapper .container .chat-content .chat-body .chat-item .msg-wrapper .order-wrapper[data-v-6e3cb1d3] .img-box {
    flex: 0 0 100% !important;
    width: 100% !important;
    height: 132px !important;
    margin-bottom: 6px;
  }

  .content-wrapper .container .chat-content .chat-body .chat-item .msg-wrapper .order-wrapper[data-v-7ce59327] .order-info,
.content-wrapper .container .chat-content .chat-body .chat-item .msg-wrapper .order-wrapper[data-v-6e3cb1d3] .order-info {
    width: 100% !important;
    margin-left: 0 !important;
  }
}

/* ---------- 13. 表情（.em 精灵图）三端显示统一 ---------- */
/*
 * 作用域：
 *   客服工作台   .chat-item .msg-wrapper .txt-wrapper[data-v-7ce59327]
 *   访客咨询 PC  .chart_list_item_text[data-v-9484568a]
 *   访客咨询 H5  .chart_list_item_text[data-v-6ace7b5a]
 *
 * 说明：.em 的基础规则把 font-size 固定为 22px、margin-top 为 -4px，
 * 在 14px 正文气泡里表情会比文字明显偏大且上下不居中。
 * 这里只统一盒子尺寸与基线，不改动精灵图资源与 background-position。
 */
.chart_list_item_text[data-v-9484568a] .em,
.chart_list_item_text[data-v-6ace7b5a] .em,
.chat-item .msg-wrapper .txt-wrapper[data-v-7ce59327] .em,
.chart_list_item_text[data-v-9484568a] .em,
.chart_list_item_text[data-v-6ace7b5a] .em,
.chat-item .msg-wrapper .txt-wrapper[data-v-6e3cb1d3] .em,
.chart_list_item_text[data-v-9484568a] .em,
.chart_list_item_text[data-v-2ec4738c] .em,
.chat-item .msg-wrapper .txt-wrapper[data-v-7ce59327] .em,
.chart_list_item_text[data-v-9484568a] .em,
.chart_list_item_text[data-v-2ec4738c] .em,
.chat-item .msg-wrapper .txt-wrapper[data-v-6e3cb1d3] .em,
.chart_list_item_text[data-v-6a6c9b08] .em,
.chart_list_item_text[data-v-6ace7b5a] .em,
.chat-item .msg-wrapper .txt-wrapper[data-v-7ce59327] .em,
.chart_list_item_text[data-v-6a6c9b08] .em,
.chart_list_item_text[data-v-6ace7b5a] .em,
.chat-item .msg-wrapper .txt-wrapper[data-v-6e3cb1d3] .em,
.chart_list_item_text[data-v-6a6c9b08] .em,
.chart_list_item_text[data-v-2ec4738c] .em,
.chat-item .msg-wrapper .txt-wrapper[data-v-7ce59327] .em,
.chart_list_item_text[data-v-6a6c9b08] .em,
.chart_list_item_text[data-v-2ec4738c] .em,
.chat-item .msg-wrapper .txt-wrapper[data-v-6e3cb1d3] .em {
  display: inline-block !important;
  font-size: inherit !important;
  width: 1.2em !important;
  height: 1.2em !important;
  line-height: 1 !important;
  margin: 0 1px !important;
  vertical-align: -0.2em !important;
  background-size: 4100% !important;
  background-repeat: no-repeat !important;
}

/* ---------- 14. 访客咨询页：会话图片尺寸收敛 + 响应式 ---------- */
/*
 * 作用域：
 *   访客咨询 PC  .chart_list_item_img[data-v-9484568a]
 *   访客咨询 H5  .chart_list_item_img[data-v-6ace7b5a]
 *
 * 问题：原样式为容器 max-width:60% + img width:100%，竖图或长图会按原比例
 * 撑满 60% 宽度并拉出很长的高度，把会话区域挤满。
 * 处理：容器收缩到图片宽度，图片按原始比例展示并以 max-width / max-height
 * 双向限位，不再强制 width:100% 拉伸；分辨率不足的小图保持原尺寸不放大。
 */
.pc_customerServer_container_content .chart_list_item_img[data-v-9484568a],
.pc_customerServer_container_content .chart_list_item_img[data-v-6ace7b5a],
.pc_customerServer_container_content .chart_list_item_img[data-v-9484568a],
.pc_customerServer_container_content .chart_list_item_img[data-v-2ec4738c],
.pc_customerServer_container_content .chart_list_item_img[data-v-6a6c9b08],
.pc_customerServer_container_content .chart_list_item_img[data-v-6ace7b5a],
.pc_customerServer_container_content .chart_list_item_img[data-v-6a6c9b08],
.pc_customerServer_container_content .chart_list_item_img[data-v-2ec4738c] {
  width: fit-content !important;
  max-width: 200px !important;
  box-sizing: border-box;
}

.pc_customerServer_container_content .chart_list_item_img[data-v-9484568a] img,
.pc_customerServer_container_content .chart_list_item_img[data-v-6ace7b5a] img,
.pc_customerServer_container_content .chart_list_item_img[data-v-9484568a] img,
.pc_customerServer_container_content .chart_list_item_img[data-v-2ec4738c] img,
.pc_customerServer_container_content .chart_list_item_img[data-v-6a6c9b08] img,
.pc_customerServer_container_content .chart_list_item_img[data-v-6ace7b5a] img,
.pc_customerServer_container_content .chart_list_item_img[data-v-6a6c9b08] img,
.pc_customerServer_container_content .chart_list_item_img[data-v-2ec4738c] img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 200px !important;
  object-fit: contain;
  border-radius: 6px;
  cursor: zoom-in;
}

/* 自己发送（右侧）的图片保持贴右，不被 block 化后的默认左对齐影响 */
.pc_customerServer_container_content .chart_list_item_content.right-box .chart_list_item_img[data-v-9484568a] img,
.pc_customerServer_container_content .chart_list_item_content.right-box .chart_list_item_img[data-v-6ace7b5a] img,
.pc_customerServer_container_content .chart_list_item_content.right-box .chart_list_item_img[data-v-9484568a] img,
.pc_customerServer_container_content .chart_list_item_content.right-box .chart_list_item_img[data-v-2ec4738c] img,
.pc_customerServer_container_content .chart_list_item_content.right-box .chart_list_item_img[data-v-6a6c9b08] img,
.pc_customerServer_container_content .chart_list_item_content.right-box .chart_list_item_img[data-v-6ace7b5a] img,
.pc_customerServer_container_content .chart_list_item_content.right-box .chart_list_item_img[data-v-6a6c9b08] img,
.pc_customerServer_container_content .chart_list_item_content.right-box .chart_list_item_img[data-v-2ec4738c] img {
  margin-left: auto !important;
}

/* 14.1 平板（641–992px）：较窄的会话列进一步收敛 */
@media (max-width: 992px) {
  .pc_customerServer_container_content .chart_list_item_img[data-v-9484568a],
  .pc_customerServer_container_content .chart_list_item_img[data-v-6ace7b5a],
.pc_customerServer_container_content .chart_list_item_img[data-v-9484568a],
  .pc_customerServer_container_content .chart_list_item_img[data-v-2ec4738c],
.pc_customerServer_container_content .chart_list_item_img[data-v-6a6c9b08],
  .pc_customerServer_container_content .chart_list_item_img[data-v-6ace7b5a],
.pc_customerServer_container_content .chart_list_item_img[data-v-6a6c9b08],
  .pc_customerServer_container_content .chart_list_item_img[data-v-2ec4738c] {
    max-width: 168px !important;
  }

  .pc_customerServer_container_content .chart_list_item_img[data-v-9484568a] img,
  .pc_customerServer_container_content .chart_list_item_img[data-v-6ace7b5a] img,
.pc_customerServer_container_content .chart_list_item_img[data-v-9484568a] img,
  .pc_customerServer_container_content .chart_list_item_img[data-v-2ec4738c] img,
.pc_customerServer_container_content .chart_list_item_img[data-v-6a6c9b08] img,
  .pc_customerServer_container_content .chart_list_item_img[data-v-6ace7b5a] img,
.pc_customerServer_container_content .chart_list_item_img[data-v-6a6c9b08] img,
  .pc_customerServer_container_content .chart_list_item_img[data-v-2ec4738c] img {
    max-height: 168px !important;
  }
}

/* 14.2 手机端（≤767px）：一倍屏手机按 156px 档 */
@media (max-width: 767px) {
  .pc_customerServer_container_content .chart_list_item_img[data-v-9484568a],
  .pc_customerServer_container_content .chart_list_item_img[data-v-6ace7b5a],
.pc_customerServer_container_content .chart_list_item_img[data-v-9484568a],
  .pc_customerServer_container_content .chart_list_item_img[data-v-2ec4738c],
.pc_customerServer_container_content .chart_list_item_img[data-v-6a6c9b08],
  .pc_customerServer_container_content .chart_list_item_img[data-v-6ace7b5a],
.pc_customerServer_container_content .chart_list_item_img[data-v-6a6c9b08],
  .pc_customerServer_container_content .chart_list_item_img[data-v-2ec4738c] {
    max-width: 156px !important;
  }

  .pc_customerServer_container_content .chart_list_item_img[data-v-9484568a] img,
  .pc_customerServer_container_content .chart_list_item_img[data-v-6ace7b5a] img,
.pc_customerServer_container_content .chart_list_item_img[data-v-9484568a] img,
  .pc_customerServer_container_content .chart_list_item_img[data-v-2ec4738c] img,
.pc_customerServer_container_content .chart_list_item_img[data-v-6a6c9b08] img,
  .pc_customerServer_container_content .chart_list_item_img[data-v-6ace7b5a] img,
.pc_customerServer_container_content .chart_list_item_img[data-v-6a6c9b08] img,
  .pc_customerServer_container_content .chart_list_item_img[data-v-2ec4738c] img {
    max-height: 156px !important;
  }
}

/* 14.3 窄屏（≤359px）：再收一档，避免图片挤压气泡与输入区 */
@media (max-width: 359px) {
  .pc_customerServer_container_content .chart_list_item_img[data-v-9484568a],
  .pc_customerServer_container_content .chart_list_item_img[data-v-6ace7b5a],
.pc_customerServer_container_content .chart_list_item_img[data-v-9484568a],
  .pc_customerServer_container_content .chart_list_item_img[data-v-2ec4738c],
.pc_customerServer_container_content .chart_list_item_img[data-v-6a6c9b08],
  .pc_customerServer_container_content .chart_list_item_img[data-v-6ace7b5a],
.pc_customerServer_container_content .chart_list_item_img[data-v-6a6c9b08],
  .pc_customerServer_container_content .chart_list_item_img[data-v-2ec4738c] {
    max-width: 132px !important;
  }

  .pc_customerServer_container_content .chart_list_item_img[data-v-9484568a] img,
  .pc_customerServer_container_content .chart_list_item_img[data-v-6ace7b5a] img,
.pc_customerServer_container_content .chart_list_item_img[data-v-9484568a] img,
  .pc_customerServer_container_content .chart_list_item_img[data-v-2ec4738c] img,
.pc_customerServer_container_content .chart_list_item_img[data-v-6a6c9b08] img,
  .pc_customerServer_container_content .chart_list_item_img[data-v-6ace7b5a] img,
.pc_customerServer_container_content .chart_list_item_img[data-v-6a6c9b08] img,
  .pc_customerServer_container_content .chart_list_item_img[data-v-2ec4738c] img {
    max-height: 132px !important;
  }
}

/* ---------- 15. 访客咨询页：图片大图预览（灯箱） ---------- */
.kf-image-viewer-mask {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.78);
  cursor: zoom-out;
  animation: kf-image-viewer-in 0.16s ease-out;
}

.kf-image-viewer-mask img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  cursor: default;
  background: #fff;
}

.kf-image-viewer-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  line-height: 32px;
  text-align: center;
  font-size: 22px;
  color: #fff;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  user-select: none;
}

@keyframes kf-image-viewer-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 767px) {
  .kf-image-viewer-mask {
    padding: 12px;
  }
}

/* ---------- 16. 访客咨询页：撤回入口与操作提示 ---------- */
.pc_customerServer_container_content .kf-recall-btn {
  flex: 0 0 auto;
  align-self: center;
  margin: 0 8px;
  padding: 2px 4px;
  font-size: 12px;
  line-height: 16px;
  color: #909399;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: color 0.16s ease;
}

.pc_customerServer_container_content .kf-recall-btn:hover {
  color: #1890ff;
}

.pc_customerServer_container_content .kf-recall-btn.is-pending {
  color: #c5c5c5;
  cursor: default;
}

.kf-recall-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 100000;
  max-width: 70vw;
  padding: 9px 16px;
  font-size: 13px;
  line-height: 18px;
  color: #fff;
  text-align: center;
  word-break: break-all;
  background: rgba(0, 0, 0, 0.76);
  border-radius: 6px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: kf-image-viewer-in 0.16s ease-out;
}

@media (max-width: 767px) {
  .pc_customerServer_container_content .kf-recall-btn {
    margin: 0 6px;
  }
}

/* ============================================================
   12.9 访客咨询页 手机端商品卡紧凑化（仅 H5，data-v-6ace7b5a）
   ------------------------------------------------------------
   问题：构建产物的商品卡在手机端固定 226px 宽，主图被撑成整行方形
        （约 206×206px），价格 18px、名称 14px 不限行，单卡高度接近
        300px，占满会话可视区。
   口径：卡片收窄到随视口自适应的紧凑宽度；主图改为左侧 60px 方形
        缩略图（≤360px 档 52px），右侧信息列自适应剩余宽度并允许收缩；
        名称两行截断，价格/订单行/查看商品按层级紧凑排布。
   约束：只覆盖表现层，不改动 DOM、点击跳转（整卡 window.open 与
        「查看商品 >」链接）与任何业务数据。
   ============================================================ */
@media (max-width: 767px) {
  .chart_list_item_imgOrText[data-v-6ace7b5a],
.chart_list_item_imgOrText[data-v-2ec4738c] {
    width: min(240px, calc(100vw - 84px)) !important;
    max-width: calc(100vw - 84px) !important;
    padding: 8px 9px !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
  }

  .chart_list_item_imgOrText[data-v-6ace7b5a] .order-wrapper,
.chart_list_item_imgOrText[data-v-2ec4738c] .order-wrapper {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 主图：固定方形缩略图（覆盖此前 width:100% + padding-top:100% 的整行方形） */
  .chart_list_item_imgOrText[data-v-6ace7b5a] .order-wrapper .img-box,
.chart_list_item_imgOrText[data-v-2ec4738c] .order-wrapper .img-box {
    position: relative !important;
    flex: 0 0 60px !important;
    width: 60px !important;
    height: 60px !important;
    padding-top: 0 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    background: #f5f6f8 !important;
  }

  .chart_list_item_imgOrText[data-v-6ace7b5a] .order-wrapper .img-box img,
.chart_list_item_imgOrText[data-v-2ec4738c] .order-wrapper .img-box img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  /* 右侧信息列：占满剩余宽度并允许收缩，避免长标题把卡片撑宽。
     保持块级常规流（不做 flex 纵向排列），使「我的订单」胶囊与
     「查看商品 >」链接沿用原有同一行内联排布，结构不变。 */
  .chart_list_item_imgOrText[data-v-6ace7b5a] .order-wrapper .order-info,
.chart_list_item_imgOrText[data-v-2ec4738c] .order-wrapper .order-info {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .chart_list_item_imgOrText[data-v-6ace7b5a] .order-wrapper .order-info .price-box,
  .chart_list_item_imgOrText[data-v-6ace7b5a] .order-wrapper .order-info .price-box .num,
.chart_list_item_imgOrText[data-v-2ec4738c] .order-wrapper .order-info .price-box,
  .chart_list_item_imgOrText[data-v-2ec4738c] .order-wrapper .order-info .price-box .num {
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
  }

  /* 标题：最多两行，超出省略，避免超长名称撑高卡片 */
  .chart_list_item_imgOrText[data-v-6ace7b5a] .order-wrapper .order-info .name,
.chart_list_item_imgOrText[data-v-2ec4738c] .order-wrapper .order-info .name {
    display: -webkit-box !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    font-size: 12.5px !important;
    line-height: 1.4 !important;
    color: #1f2329 !important;
    word-break: break-word !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  /* 订单行：不设宽度，避免把「查看商品 >」挤到下一行；
     胶囊的 display / width / 内边距 / 字号由 kefu-orders-entry.js 注入的
     更高层级样式决定（该样式在 DOM 中更靠后），此处只兜底颜色与截断。 */
  .chart_list_item_imgOrText[data-v-6ace7b5a] .order-wrapper .order-info .kf-order-line,
.chart_list_item_imgOrText[data-v-2ec4738c] .order-wrapper .order-info .kf-order-line {
    max-width: 100% !important;
    color: #8a8f99 !important;
    overflow: hidden !important;
  }

  /* 「我的订单 / 查看商品 >」按钮行的样式统一放在文件末尾第 17 节，
     PC 与手机端共用同一口径，避免两套断点取值互相覆盖 */
}

/* 超窄屏（≤360px）：缩略图与内边距再收敛一档，保证信息不挤压、不溢出
   （宽度沿用上一条的 min(240px, calc(100vw - 84px))，不做二次改写，
     避免在 360px 断点处出现宽度跳变） */
@media (max-width: 360px) {
  .chart_list_item_imgOrText[data-v-6ace7b5a],
.chart_list_item_imgOrText[data-v-2ec4738c] {
    padding: 7px 8px !important;
  }

  .chart_list_item_imgOrText[data-v-6ace7b5a] .order-wrapper,
.chart_list_item_imgOrText[data-v-2ec4738c] .order-wrapper {
    gap: 7px !important;
  }

  .chart_list_item_imgOrText[data-v-6ace7b5a] .order-wrapper .img-box,
.chart_list_item_imgOrText[data-v-2ec4738c] .order-wrapper .img-box {
    flex: 0 0 52px !important;
    width: 52px !important;
    height: 52px !important;
  }

  .chart_list_item_imgOrText[data-v-6ace7b5a] .order-wrapper .order-info .price-box,
  .chart_list_item_imgOrText[data-v-6ace7b5a] .order-wrapper .order-info .price-box .num,
.chart_list_item_imgOrText[data-v-2ec4738c] .order-wrapper .order-info .price-box,
  .chart_list_item_imgOrText[data-v-2ec4738c] .order-wrapper .order-info .price-box .num {
    font-size: 13px !important;
  }

  .chart_list_item_imgOrText[data-v-6ace7b5a] .order-wrapper .order-info .name,
.chart_list_item_imgOrText[data-v-2ec4738c] .order-wrapper .order-info .name {
    font-size: 12px !important;
  }
}

/* ============================================================
   17. 访客咨询页商品卡：「我的订单 / 查看商品」入口按钮行（PC + H5）
   ------------------------------------------------------------
   现状：两个入口在信息列里各自内联排布，宽度随文字长短不一；卡片偏窄时
        「查看商品 >」被挤到下一行，与上方胶囊左对齐错位。
   口径：信息列改为可换行的横向 flex，价格/标题/规格独占整行；
        两个入口等分宽度并排（flex: 1 1 0），随卡片宽度自适应收缩，
        统一 28px 高、14px 圆角、12.5px 字号；
        「我的订单」为浅底次按钮，「查看商品 >」为实心蓝主按钮；
        只剩一个入口时独占整行，不会留下半行空白。
   约束：只覆盖表现层，不改动 DOM、点击跳转与任何业务数据；
        作用域限定访客页四个 data-v，客服工作台商品卡不受影响。
   ============================================================ */
.chart_list_item_imgOrText[data-v-9484568a] .order-wrapper .order-info.order-info,
.chart_list_item_imgOrText[data-v-6a6c9b08] .order-wrapper .order-info.order-info,
.chart_list_item_imgOrText[data-v-6ace7b5a] .order-wrapper .order-info.order-info,
.chart_list_item_imgOrText[data-v-2ec4738c] .order-wrapper .order-info.order-info {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 4px 6px !important;
}

/* 价格、标题、规格、副标题独占整行，文字样式沿用原有声明 */
.chart_list_item_imgOrText[data-v-9484568a] .order-wrapper .order-info .price-box,
.chart_list_item_imgOrText[data-v-9484568a] .order-wrapper .order-info .name,
.chart_list_item_imgOrText[data-v-9484568a] .order-wrapper .order-info .sku,
.chart_list_item_imgOrText[data-v-9484568a] .order-wrapper .order-info .kf-goods-sub,
.chart_list_item_imgOrText[data-v-6a6c9b08] .order-wrapper .order-info .price-box,
.chart_list_item_imgOrText[data-v-6a6c9b08] .order-wrapper .order-info .name,
.chart_list_item_imgOrText[data-v-6a6c9b08] .order-wrapper .order-info .sku,
.chart_list_item_imgOrText[data-v-6a6c9b08] .order-wrapper .order-info .kf-goods-sub,
.chart_list_item_imgOrText[data-v-6ace7b5a] .order-wrapper .order-info .price-box,
.chart_list_item_imgOrText[data-v-6ace7b5a] .order-wrapper .order-info .name,
.chart_list_item_imgOrText[data-v-6ace7b5a] .order-wrapper .order-info .sku,
.chart_list_item_imgOrText[data-v-6ace7b5a] .order-wrapper .order-info .kf-goods-sub,
.chart_list_item_imgOrText[data-v-2ec4738c] .order-wrapper .order-info .price-box,
.chart_list_item_imgOrText[data-v-2ec4738c] .order-wrapper .order-info .name,
.chart_list_item_imgOrText[data-v-2ec4738c] .order-wrapper .order-info .sku,
.chart_list_item_imgOrText[data-v-2ec4738c] .order-wrapper .order-info .kf-goods-sub {
  flex: 0 0 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

/* 订单摘要：未被改写为「我的订单」按钮时保持整行长文本，边距沿用原有声明 */
.chart_list_item_imgOrText[data-v-9484568a] .order-wrapper .order-info .kf-order-line,
.chart_list_item_imgOrText[data-v-6a6c9b08] .order-wrapper .order-info .kf-order-line,
.chart_list_item_imgOrText[data-v-6ace7b5a] .order-wrapper .order-info .kf-order-line,
.chart_list_item_imgOrText[data-v-2ec4738c] .order-wrapper .order-info .kf-order-line {
  flex: 0 0 100% !important;
  min-width: 0 !important;
}

/* 已改写为「我的订单」按钮的订单行：与「查看商品」等分同一行 */
.chart_list_item_imgOrText[data-v-9484568a] .order-wrapper .order-info .kf-order-line.kf-orders-line,
.chart_list_item_imgOrText[data-v-6a6c9b08] .order-wrapper .order-info .kf-order-line.kf-orders-line,
.chart_list_item_imgOrText[data-v-6ace7b5a] .order-wrapper .order-info .kf-order-line.kf-orders-line,
.chart_list_item_imgOrText[data-v-2ec4738c] .order-wrapper .order-info .kf-order-line.kf-orders-line {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  margin: 0 !important;
}

/* 「查看商品 >」：品牌蓝实心主按钮，与浅底「我的订单」组成主次两级 */
.chart_list_item_imgOrText[data-v-9484568a] .order-wrapper .order-info .kf-goods-link,
.chart_list_item_imgOrText[data-v-6a6c9b08] .order-wrapper .order-info .kf-goods-link,
.chart_list_item_imgOrText[data-v-6ace7b5a] .order-wrapper .order-info .kf-goods-link,
.chart_list_item_imgOrText[data-v-2ec4738c] .order-wrapper .order-info .kf-goods-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  margin: 0 !important;
  padding: 0 6px !important;
  box-sizing: border-box !important;
  font-size: 12.5px !important;
  line-height: 1 !important;
  font-weight: 500 !important;
  color: #fff !important;
  background: #3875ea !important;
  border: 1px solid #3875ea !important;
  border-radius: 14px !important;
  text-align: center !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  vertical-align: middle !important;
  box-shadow: 0 1px 2px rgba(56, 117, 234, 0.24) !important;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.chart_list_item_imgOrText[data-v-9484568a] .order-wrapper .order-info .kf-goods-link:hover,
.chart_list_item_imgOrText[data-v-6a6c9b08] .order-wrapper .order-info .kf-goods-link:hover,
.chart_list_item_imgOrText[data-v-6ace7b5a] .order-wrapper .order-info .kf-goods-link:hover,
.chart_list_item_imgOrText[data-v-2ec4738c] .order-wrapper .order-info .kf-goods-link:hover {
  color: #fff !important;
  background: #2f66d0 !important;
  border-color: #2f66d0 !important;
  text-decoration: none !important;
}

.chart_list_item_imgOrText[data-v-9484568a] .order-wrapper .order-info .kf-goods-link:active,
.chart_list_item_imgOrText[data-v-6a6c9b08] .order-wrapper .order-info .kf-goods-link:active,
.chart_list_item_imgOrText[data-v-6ace7b5a] .order-wrapper .order-info .kf-goods-link:active,
.chart_list_item_imgOrText[data-v-2ec4738c] .order-wrapper .order-info .kf-goods-link:active {
  background: #2f66d0 !important;
  border-color: #2f66d0 !important;
  transform: scale(0.98);
}

/* ============================================================
   十二、头像比例：源图非正方形时按 cover 裁切，避免被拉伸变形
   仅约束图片填充方式，不改变任何头像容器尺寸、圆角与布局
   ============================================================ */
.chart_list_item_avatar img,
.pc_customerServer_container_header_title img,
.chatList .chat-item .avatar img,
.chat-body .chat-item .avatar img,
.kefu-layouts.kf-wb-layout .chat-body .chat-item .avatar img,
.chat-scroll-box .chat-item .avatar img,
.content-wrapper .container .chat-content .chat-item .avatar img,
.right-wrapper .user-wrapper .user .avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}

