/* 在线咨询浮窗 - ahjxsy888.com PC/M 共用 */
#ocWrap {
  --oc-primary: #e1251b;
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2147483000;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}
#ocWrap.oc-left { right: auto; left: 18px; }
#ocWrap * { box-sizing: border-box; }
#ocBtn {
  position: relative;
  width: 103px;
  height: 120px;
  border-radius: 0;
  background: transparent url(../../images/cn/onlineconsult.png) no-repeat center center;
  background-size: 100% 100%;
  box-shadow: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  user-select: none;
  -webkit-user-select: none;
  transition: transform .2s ease;
}
#ocBtn:hover { transform: scale(1.04); }
#ocBtn .oc-ico, #ocBtn .oc-txt { display: none; }
#ocBtn .oc-dot {
  display: none;
  position: absolute;
  top: 4px;
  right: 8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #ffcf00;
  color: #7a3b00;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
  font-weight: bold;
}
#ocWrap.oc-unread #ocBtn .oc-dot { display: block; }
#ocPanel {
  display: none;
  position: absolute;
  right: 0;
  bottom: 2px;
  width: 322px;
  height: 516px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 36px rgba(0,0,0,.24);
  overflow: hidden;
  border: 1px solid #e6e8eb;
}
#ocWrap.oc-left #ocPanel { right: auto; left: 0; }
#ocWrap.oc-open #ocPanel { display: flex; flex-direction: column; }
#ocWrap.oc-open #ocBtn { display: none; }
#ocHead {
  height: 62px;
  padding: 0 14px;
  background: var(--oc-primary);
  color: #fff;
  display: flex;
  align-items: center;
}
#ocHead .oc-meta { margin-left: 0; flex: 1; min-width: 0; }
#ocHead .oc-name { font-size: 15px; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#ocHead .oc-state { font-size: 11px; opacity: .9; margin-top: 1px; }
#ocHead .oc-state i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #6ee7a8; margin-right: 4px; }
#ocHead .oc-state.oc-off i { background: #ffd166; }
#ocClose { color: #fff; opacity: .85; font-size: 22px; cursor: pointer; padding: 0 2px; line-height: 1; }
#ocClose:hover { opacity: 1; }
#ocMsgs {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 12px 6px;
  background: #f5f6f8;
  overscroll-behavior: contain;
}
#ocMsgs .oc-row { margin-bottom: 10px; display: flex; flex-direction: column; }
#ocMsgs .oc-row.oc-them { align-items: flex-start; }
#ocMsgs .oc-row.oc-me { align-items: flex-end; }
#ocMsgs .oc-mline {
  font-size: 11px;
  line-height: 1.3;
  color: #9aa0a8;
  margin-bottom: 4px;
  max-width: 82%;
}
#ocMsgs .oc-mline .oc-from { color: #5f6670; margin-right: 6px; }
#ocMsgs .oc-mline .oc-when { color: #a0a6ae; }
#ocMsgs .oc-mline-me { text-align: right; }
#ocMsgs .oc-bubble {
  max-width: 82%;
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 13px;
  word-break: break-all;
  white-space: pre-wrap;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
#ocMsgs .oc-them .oc-bubble { background: #fff; color: #333; border-top-left-radius: 2px; }
#ocMsgs .oc-me .oc-bubble { background: #e8ecfb; color: #333; border-radius: 10px 2px 10px 10px; }
#ocMsgs .oc-time { display: block; font-size: 10px; color: #999; margin-top: 3px; text-align: right; }
#ocMsgs .oc-sys { text-align: center; font-size: 11px; color: #999; margin: 4px 0 10px; }
#ocMsgs .oc-sys-tip {
  text-align: left;
  font-size: 12px;
  color: #5f6670;
  background: #f4f6f9;
  border: 1px solid #e8ebf0;
  border-radius: 8px;
  padding: 10px 12px;
  line-height: 1.75;
  margin: 6px 0 12px;
  white-space: normal;
  word-break: break-word;
}
#ocMsgs .oc-bubble.oc-bubble-img,
#ocMsgs .oc-bubble.oc-bubble-file { padding: 0; background: transparent; box-shadow: none; border: 0; }
#ocMsgs .oc-bubble-img a { display: block; line-height: 0; }
#ocMsgs .oc-img {
  display: block;
  max-width: 180px;
  max-height: 200px;
  border-radius: 8px;
  border: 1px solid #e6e8eb;
  background: #fff;
}
#ocMsgs .oc-img-txt { font-size: 12px; line-height: 1.5; color: #333; margin-top: 5px; word-break: break-all; }
#ocMsgs .oc-file {
  display: flex; align-items: center;
  width: 196px; padding: 9px 10px;
  background: #fff; border: 1px solid #e6e8eb; border-radius: 8px;
  text-decoration: none;
}
#ocMsgs .oc-me .oc-file { background: #e8ecfb; border-color: #dde3f6; }
#ocMsgs .oc-file .oc-fico { flex: 0 0 auto; width: 24px; height: 24px; margin-right: 8px; color: var(--oc-primary); }
#ocMsgs .oc-file .oc-fico svg { display: block; width: 24px; height: 24px; }
#ocMsgs .oc-file .oc-fmeta { display: flex; flex-direction: column; min-width: 0; }
#ocMsgs .oc-file .oc-fname { font-size: 12px; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#ocMsgs .oc-file .oc-fsize { font-size: 10px; color: #98a0aa; margin-top: 2px; }
#ocMsgs .oc-uploading .oc-bubble { background: #eef0f4; color: #8a8f99; }
#ocForm { border-top: 1px solid #eceef1; padding: 8px 10px 20px; background: #fff; flex: 0 0 auto; }
#ocForm input, #ocForm textarea {
  border: 1px solid #dfe3e8;
  border-radius: 5px;
  padding: 6px 8px;
  font-size: 12px;
  color: #333;
  outline: none;
  background: #fff;
  font-family: inherit;
}
#ocForm .oc-phone { flex: 1 1 auto; width: auto; min-width: 0; margin-left: 8px; padding: 5px 8px; }
#ocForm textarea { width: 100%; height: 50px; resize: none; line-height: 1.4; }
#ocForm input:focus, #ocForm textarea:focus { border-color: var(--oc-primary); }
#ocForm .oc-bar { display: flex; align-items: center; margin-top: 6px; }
#ocForm .oc-tools { display: flex; align-items: center; flex: 0 0 auto; }
#ocForm .oc-tool {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; margin-right: 4px;
  color: #6b7280; cursor: pointer; border-radius: 4px;
  transition: background .15s, color .15s;
}
#ocForm .oc-tool:hover { background: #f2f4f7; color: var(--oc-primary); }
#ocForm .oc-tool svg { width: 20px; height: 20px; display: block; }
#ocForm .oc-send {
  margin-left: 8px;
  border: 0;
  background: var(--oc-primary);
  color: #fff;
  border-radius: 5px;
  padding: 6px 16px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}
#ocForm .oc-send:disabled { opacity: .6; cursor: default; }
#ocFoot { text-align: center; font-size: 10px; color: #aaa; padding: 2px 0 5px; background: #fff; }
#ocFoot a { color: #aaa; text-decoration: none; }

@media (max-width: 640px) {
  #ocWrap { right: 12px; bottom: 70px; }
  #ocBtn { width: 82px; height: 96px; background-size: 100% 100%; }
  #ocWrap.oc-open #ocBtn { display: none; }
  #ocPanel {
    position: fixed;
    right: 0; left: 0; bottom: 0;
    width: 100%;
    height: 78vh;
    max-height: 560px;
    border-radius: 14px 14px 0 0;
    border: 0;
  }
  #ocMsgs { height: auto; flex: 1; min-height: 0; }
  #ocPanel { display: none; flex-direction: column; }
  #ocWrap.oc-open #ocPanel { display: flex; }
  #ocHead { flex: 0 0 62px; }
  #ocForm { flex: 0 0 auto; }
}
