/*!
 * LiteWebChat_Frame 2.2.1 (https://lab.morfans.cn/LiteWebChat_Frame)
 * MorFans Lab(c) 2017-2023
 * Licensed under LGPL
 */@charset "UTF-8";
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* Document
   ========================================================================== */
/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */
/**
 * Remove the margin in all browsers.
 */
body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */
/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
  -webkit-box-sizing: content-box;
          box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */
/**
 * Remove the gray background on active links in IE 10.
 */
a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */
small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */
/**
 * Remove the border on images inside links in IE 10.
 */
img {
  border-style: none;
}

/* Forms
   ========================================================================== */
/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input { /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select { /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type=button],
[type=reset],
[type=submit] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type=button]::-moz-focus-inner,
[type=reset]::-moz-focus-inner,
[type=submit]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type=button]:-moz-focusring,
[type=reset]:-moz-focusring,
[type=submit]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */
legend {
  -webkit-box-sizing: border-box;
          box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type=checkbox],
[type=radio] {
  -webkit-box-sizing: border-box;
          box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type=number]::-webkit-inner-spin-button,
[type=number]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type=search] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type=search]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */
/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
  display: list-item;
}

/* Misc
   ========================================================================== */
/**
 * Add the correct display in IE 10+.
 */
template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
  display: none;
}

* {
  scrollbar-color: #5c6163 rgba(56, 59, 60, 0.031372549);
}

/* other browsers */
::-webkit-scrollbar {
  /* 滚动条整体样式 */
  width: 7px;
  /* 高宽分别对应横竖滚动条的尺寸 */
  height: 1px;
}

::-webkit-scrollbar-thumb {
  /*滚动条里面小方块*/
  border-radius: 10px;
  background-color: rgba(144, 147, 153, 0.5);
  border: 0;
}
::-webkit-scrollbar-track {
  /*滚动条里面轨道*/
  background: #fff;
  min-height: 50%;
  min-height: 20px;
}

::-webkit-scrollbar-corner {
  background-color: transparent;
}

::-moz-selection {
  background-color: #1963bd !important;
  color: #f8f6f3 !important;
}

::selection {
  background-color: #1963bd !important;
  color: #f8f6f3 !important;
}

body {
  font-family: Helvetica, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.lite-chatbox {
  scroll-behavior: auto;
  padding: 0px;
  width: 100%;
  position: relative;
  font-size: 18px;
  background-color: #f8f9fa;
  overflow-y: auto;
  overflow-x: hidden;
}
.lite-chatbox .tips {
  margin: 12px;
  text-align: center;
  font-size: 12px;
}
.lite-chatbox .tips span {
  display: inline-block;
  padding: 4px;
  background-color: #ccc;
  color: #fff;
  border-radius: 6px;
}
.lite-chatbox .cmsg {
  position: relative;
  margin: 4px 7px;
  min-height: 50px;
  border: 0;
}
.lite-chatbox .cright {
  text-align: right;
  margin-left: 64px;
}
.lite-chatbox .cright img.headIcon {
  right: 0;
  top: 9px;
}
.lite-chatbox .cright .name {
  margin: 0 48px 2px 0;
}
.lite-chatbox .cright .content {
  margin: 0 48px 0 0;
  border-radius: 8px;
  background: #B8E986;
  color: black;
  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
          box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
}

.lite-chatbox .cright .content::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 14px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 8px solid #B8E986;
}

.lite-chatbox .cleft {
  text-align: left;
  margin-right: 64px;
}
.lite-chatbox .cleft img.headIcon {
  left: 0;
  top: 9px;
}
.lite-chatbox .cleft .name {
  margin: 0 0 2px 48px;
}
.lite-chatbox .cleft .content {
  margin: 0 0 0 48px;
  border-radius: 8px;
  background: white;
  color: black;
  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
          box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
}
.lite-chatbox .cleft .content::after {
  content: '';
  position: absolute;
  left: -8px;
  top: 14px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 8px solid white;
}
.lite-chatbox img.headIcon {
  width: 34px;
  height: 34px;
  top: 9px;
  position: absolute;
}
.lite-chatbox img.radius {
  border-radius: 50%;
}
.lite-chatbox .name {
  color: #8b8b8b;
  font-size: 12px;
  display: block;
  line-height: 18px;
}
.lite-chatbox .name > span {
  vertical-align: middle;
}
.lite-chatbox .name .htitle {
  display: inline-block;
  padding: 0 3px 0 3px;
  background-color: #cccccc;
  color: #ffffff;
  border-radius: 4px;
  margin-right: 4px;
  font-size: 11px;
  overflow: hidden;
  -o-text-overflow: ellipsis;
     text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
  max-width: 50px;
}
.lite-chatbox .name .htitle.admin {
  background-color: #72D6A0;
}
.lite-chatbox .name .htitle.owner {
  background-color: #F2BF25;
}
.lite-chatbox .content {
  word-break: break-all;
  word-wrap: break-word;
  text-align: left;
  position: relative;
  display: inline-block;
  font-size: 15px;
  padding: 10px 15px;
  line-height: 20px;
  white-space: pre-wrap;
  min-width: 9px;
  min-height: 18px;
}
.lite-chatbox .content img {
  width: 100%;
  height: auto;
}
.lite-chatbox .content a {
  color: #0072C1;
  margin: 0 5px;
  cursor: hand;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.lite-chatbox .content a:hover {
  color: #0056b3;
  text-decoration: none;
}

/* 消息时间（仅时分秒，气泡外下角单独行） */
.lite-chatbox .content .bubble-time {
  position: absolute;
  bottom: -14px;
  font-size: 10px;
  color: #333;
  font-weight: normal;
  line-height: 1;
  user-select: none;
  white-space: nowrap;
}
.lite-chatbox .cleft .content .bubble-time {
  left: 4px;
}
.lite-chatbox .cright .content .bubble-time {
  right: 4px;
}
.lite-chatbox .cmsg:has(.bubble-time) {
  margin-bottom: 14px;
}

/* 无气泡样式 */
.lite-chatbox .content.no-bubble {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.lite-chatbox .content.no-bubble::after {
  display: none !important;
}

/* msgtype=9 三列文本数据样式 */
.lite-chatbox .content .text-cols {
  display: block;
  white-space: normal;
  width: 100%;
  min-width: 246px;
  background: #ffffff;
  border: 1px solid #389e0d;
  border-radius: 8px;
  padding: 10px 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
  overflow: visible;
}
.lite-chatbox .cright .content .text-cols {
  background: #efffd8;
  border-color: #389e0d;
}
.lite-chatbox .content .text-cols .row {
  display: flex;
  line-height: 22px;
}
.lite-chatbox .content .text-cols .c1 {
  flex: 0 0 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lite-chatbox .content .text-cols .c2 {
  flex: 0 0 60px;
  text-align: left;
  color: #52c41a;
}
.lite-chatbox .content .text-cols .c3 {
  flex: 0 0 60px;
  text-align: left;
  color: #e24d48;
}
.lite-chatbox .content .text-cols .tb-row {
  position: relative;
  margin-bottom: 6px;
  padding-bottom: 6px;
}
.lite-chatbox .content .text-cols .tb-row::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50%;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
}
.lite-chatbox .content .text-cols .tb-row .c1 {
  flex: 1;
  white-space: normal;
  word-break: break-all;
  font-weight: bold;
}
.lite-chatbox .content .text-cols .jg-row {
  position: relative;
  margin-top: 8px;
  padding-top: 8px;
}
.lite-chatbox .content .text-cols .jg-row::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
}
.lite-chatbox .content .text-cols .jg-row .c1 {
  flex: 1;
  white-space: normal;
  word-break: break-all;
  color: #d48806;
}
.lite-chatbox .content .text-cols .t-row {
  margin-top: 2px;
}
.lite-chatbox .content .text-cols .t-row .c1 {
  flex: 1;
  white-space: normal;
  word-break: break-all;
  color: #1890ff;
  font-size: 12px;
}

/* msgtype=10 双组数据表格样式 */
.lite-chatbox .content .dual-group-wrapper {
  display: block;
  width: 100%;
}
.lite-chatbox .content .dgt-preview-btn {
  display: inline-block;
  padding: 4px 16px;
  border: none;
  border-radius: 4px;
  background: #52c41a;
  font-size: 12px;
  line-height: 18px;
  color: #fff;
  cursor: pointer;
  margin-bottom: 0;
  transition: all 0.2s;
}
.lite-chatbox .content .dgt-preview-btn:hover {
  background: #73d13d;
}
.lite-chatbox .content .dual-group-table {
  display: block;
  white-space: normal;
  width: 100%;
  min-width: 280px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  box-sizing: border-box;
}
.lite-chatbox .content .dual-group-table.dgt-truncated {
  max-height: 600px;
  overflow-y: auto;
}
.lite-chatbox .cright .content .dual-group-table {
  background: #fafff0;
  border-color: #d4e8b8;
}
.lite-chatbox .content .dual-group-table .dgt-total {
  padding: 9px 15px;
  color: #e8505b;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 1px solid #f2f3f5;
  background: #fffafa;
}
.lite-chatbox .cright .content .dual-group-table .dgt-total {
  background: #fef9f0;
}
.lite-chatbox .content .dual-group-table .dgt-caishenmi-header {
  display: flex;
  padding: 8px 6px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #3a8ee6;
  background: #f6fbff;
  border-bottom: 1px solid #f2f3f5;
}
.lite-chatbox .content .dual-group-table .dgt-caishenmi-header span {
  flex: 1;
  text-align: center;
}
.lite-chatbox .content .dual-group-table .dgt-caishenmi-header span:first-child {
  text-align: center;
}
.lite-chatbox .content .dual-group-table .dgt-caishenmi {
  display: flex;
  padding: 9px 6px;
  font-weight: normal;
  font-size: 14px;
  border-bottom: 1px solid #f2f3f5;
  background: #f6fbff;
}
.lite-chatbox .content .dual-group-table .dgt-caishenmi span {
  flex: 1;
  text-align: center;
}
.lite-chatbox .content .dual-group-table .dgt-caishenmi span:first-child {
  color: #fa8c16;
  text-align: left;
}
.lite-chatbox .cright .content .dual-group-table .dgt-caishenmi {
  background: #f0f9ff;
}
.lite-chatbox .content .dual-group-table .dgt-header {
  display: flex;
  padding: 11px 6px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  background: #fff;
}
.lite-chatbox .cright .content .dual-group-table .dgt-header {
  background: #fafff0;
}
.lite-chatbox .content .dual-group-table .dgt-g1-header {
  color: #e8505b;
  border-bottom: 2px solid #e8505b;
}
.lite-chatbox .content .dual-group-table .dgt-g2-header {
  color: #3a8ee6;
  border-bottom: 2px solid #3a8ee6;
}
.lite-chatbox .content .dual-group-table .dgt-header span {
  flex: 1;
  text-align: center;
}
.lite-chatbox .content .dual-group-table .dgt-header span:first-child {
  flex: 1.5;
}
.lite-chatbox .content .dual-group-table .dgt-row {
  display: flex;
  padding: 9px 6px;
  text-align: center;
  border-bottom: 1px solid #f2f3f5;
  color: #555;
  font-size: 14px;
  transition: background 0.2s;
}
.lite-chatbox .content .dual-group-table .dgt-row:hover {
  background: #fafbfc;
}
.lite-chatbox .content .dual-group-table .dgt-row-alt {
  background: #f9fafb;
}
.lite-chatbox .content .dual-group-table .dgt-row span {
  flex: 1;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lite-chatbox .content .dual-group-table .dgt-row span:first-child {
  flex: 1.5;
  color: #d48806;
  text-align: left;
}
.lite-chatbox .content .dual-group-table .dgt-row-g1 span:nth-child(2) {
  color: #52c41a;
}
.lite-chatbox .content .dual-group-table .dgt-row-g2 span:nth-child(2) {
  color: #f5222d;
}
.lite-chatbox .content .dual-group-table .dgt-divider {
  text-align: center;
  padding: 3px 0;
  background: linear-gradient(90deg, #e8f4f8, #f8e8e8);
}
.lite-chatbox .content .dual-group-table .dgt-divider span {
  display: inline-block;
  padding: 0 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  font-size: 12px;
  line-height: 18px;
  color: #999;
}

/* msgtype=10 预览模态框中的表格样式（#htmlPreviewDiv 在 .lite-chatbox 外，需单独写） */
#htmlPreviewDiv .dual-group-table {
  display: block;
  white-space: normal;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  box-sizing: border-box;
}
#htmlPreviewDiv .dual-group-table .dgt-total {
  padding: 9px 15px;
  color: #e8505b;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 1px solid #f2f3f5;
  background: #fffafa;
}
#htmlPreviewDiv .dual-group-table .dgt-caishenmi-header {
  display: flex;
  padding: 8px 6px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #3a8ee6;
  background: #f6fbff;
  border-bottom: 1px solid #f2f3f5;
}
#htmlPreviewDiv .dual-group-table .dgt-caishenmi-header span {
  flex: 1;
  text-align: center;
}
#htmlPreviewDiv .dual-group-table .dgt-caishenmi-header span:first-child {
  text-align: center;
}
#htmlPreviewDiv .dual-group-table .dgt-caishenmi {
  display: flex;
  padding: 9px 6px;
  font-weight: normal;
  font-size: 14px;
  border-bottom: 1px solid #f2f3f5;
  background: #f6fbff;
}
#htmlPreviewDiv .dual-group-table .dgt-caishenmi span {
  flex: 1;
  text-align: center;
}
#htmlPreviewDiv .dual-group-table .dgt-caishenmi span:first-child {
  color: #fa8c16;
  text-align: left;
}
#htmlPreviewDiv .dual-group-table .dgt-header {
  display: flex;
  padding: 11px 6px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  background: #fff;
}
#htmlPreviewDiv .dual-group-table .dgt-g1-header {
  color: #e8505b;
  border-bottom: 2px solid #e8505b;
}
#htmlPreviewDiv .dual-group-table .dgt-g2-header {
  color: #3a8ee6;
  border-bottom: 2px solid #3a8ee6;
}
#htmlPreviewDiv .dual-group-table .dgt-header span {
  flex: 1;
  text-align: center;
}
#htmlPreviewDiv .dual-group-table .dgt-header span:first-child {
  flex: 1.5;
}
#htmlPreviewDiv .dual-group-table .dgt-row {
  display: flex;
  padding: 9px 6px;
  text-align: center;
  border-bottom: 1px solid #f2f3f5;
  color: #555;
  font-size: 14px;
}
#htmlPreviewDiv .dual-group-table .dgt-row:hover {
  background: #fafbfc;
}
#htmlPreviewDiv .dual-group-table .dgt-row-alt {
  background: #f9fafb;
}
#htmlPreviewDiv .dual-group-table .dgt-row span {
  flex: 1;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#htmlPreviewDiv .dual-group-table .dgt-row span:first-child {
  flex: 1.5;
  color: #d48806;
  text-align: left;
}
#htmlPreviewDiv .dual-group-table .dgt-row-g1 span:nth-child(2) {
  color: #52c41a;
}
#htmlPreviewDiv .dual-group-table .dgt-row-g2 span:nth-child(2) {
  color: #f5222d;
}
#htmlPreviewDiv .dual-group-table .dgt-divider {
  text-align: center;
  padding: 3px 0;
  background: linear-gradient(90deg, #e8f4f8, #f8e8e8);
}
#htmlPreviewDiv .dual-group-table .dgt-divider span {
  display: inline-block;
  padding: 0 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  font-size: 12px;
  line-height: 18px;
  color: #999;
}

/* HTML预览窗口样式 */
.html-preview-window {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  z-index: 10001;
  display: none;
  flex-direction: column;
}

.html-preview-window.show {
  display: flex;
}

.html-preview-header {
  background-color: #f8f8f8;
  padding: 10px 20px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.html-preview-header h3 {
  margin: 0;
  color: #333;
  font-size: 14px;
}

.html-preview-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.html-preview-close:hover {
  background-color: #e0e0e0;
  color: #333;
}

.html-preview-content {
  flex: 1;
  overflow: hidden;
}

/* 撤回确认对话框样式 */
.withdraw-confirm-dialog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  border: none;
  padding: 0;
  margin: 0;
}

.withdraw-confirm-dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.5);
}

.withdraw-confirm-dialog.show {
  display: flex;
}

.withdraw-confirm-content {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  max-width: 320px;
  width: 90%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-align: center;
}

.withdraw-confirm-content h3 {
  margin-top: 0;
  color: #333;
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: 600;
}

.withdraw-confirm-content p {
  margin: 0 0 20px 0;
  color: #666;
  font-size: 14px;
  line-height: 1.4;
}

.withdraw-confirm-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.withdraw-confirm-button {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s ease;
  min-width: 80px;
}

.withdraw-confirm-button.cancel {
  background-color: #f0f0f0;
  color: #333;
}

.withdraw-confirm-button.cancel:hover {
  background-color: #e0e0e0;
}

.withdraw-confirm-button.confirm {
  background-color: #07C160;
  color: white;
}

.withdraw-confirm-button.confirm:hover {
  background-color: #06a851;
}

/* 微信风格的音频消息样式 */
.wechat-voice-message {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 18px;
  background-color: #f0f0f0;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  min-width: 100px;
  max-width: 200px;
}

.cright .wechat-voice-message {
  background-color: #B8E986;
  color: #333;
}

.cleft .wechat-voice-message {
  background-color: white;
  color: #333;
}

.wechat-voice-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  color: #333;
}

.wechat-voice-icon svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease;
}

.wechat-voice-message .voice-icon-play {
  opacity: 1 !important;
  display: block !important;
}

.wechat-voice-message .voice-icon-pause {
  opacity: 0 !important;
  display: none !important;
}

.wechat-voice-message.playing .voice-icon-play {
  opacity: 0 !important;
  display: none !important;
}

.wechat-voice-message.playing .voice-icon-pause {
  opacity: 1 !important;
  display: block !important;
}

.cright .wechat-voice-icon svg path,
.cright .wechat-voice-icon svg rect {
  fill: #666;
}

.cleft .wechat-voice-icon svg path,
.cleft .wechat-voice-icon svg rect {
  fill: #666;
}

.wechat-voice-bar {
  flex: 1;
  height: 20px;
  display: flex;
  align-items: center;
}

.wechat-voice-wave {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 100%;
}

.wechat-voice-wave span {
  display: inline-block;
  width: 2px;
  background-color: currentColor;
  border-radius: 1px;
  transition: none;
  animation: none !important;
}

/* 默认（未播放）状态 - 固定高度的波纹 */
.wechat-voice-message .wechat-voice-wave span:nth-child(1) {
  height: 6px;
}
.wechat-voice-message .wechat-voice-wave span:nth-child(2) {
  height: 10px;
}
.wechat-voice-message .wechat-voice-wave span:nth-child(3) {
  height: 14px;
}
.wechat-voice-message .wechat-voice-wave span:nth-child(4) {
  height: 10px;
}
.wechat-voice-message .wechat-voice-wave span:nth-child(5) {
  height: 6px;
}

/* 播放中 - 动态波纹动画 */
@keyframes voice-wave-play {
  0%, 100% {
    height: 6px;
  }
  25% {
    height: 18px;
  }
  50% {
    height: 12px;
  }
  75% {
    height: 18px;
  }
}

.wechat-voice-message.playing .wechat-voice-wave span {
  animation: voice-wave-play 0.5s infinite ease-in-out !important;
}

.wechat-voice-message:not(.playing) .wechat-voice-wave span {
  animation: none !important;
  height: auto !important;
}

.wechat-voice-message:not(.playing) .wechat-voice-wave span:nth-child(1) {
  height: 6px !important;
}
.wechat-voice-message:not(.playing) .wechat-voice-wave span:nth-child(2) {
  height: 10px !important;
}
.wechat-voice-message:not(.playing) .wechat-voice-wave span:nth-child(3) {
  height: 14px !important;
}
.wechat-voice-message:not(.playing) .wechat-voice-wave span:nth-child(4) {
  height: 10px !important;
}
.wechat-voice-message:not(.playing) .wechat-voice-wave span:nth-child(5) {
  height: 6px !important;
}
.wechat-voice-message.playing .wechat-voice-wave span:nth-child(1) {
  animation-delay: 0s;
}
.wechat-voice-message.playing .wechat-voice-wave span:nth-child(2) {
  animation-delay: 0.1s;
}
.wechat-voice-message.playing .wechat-voice-wave span:nth-child(3) {
  animation-delay: 0.2s;
}
.wechat-voice-message.playing .wechat-voice-wave span:nth-child(4) {
  animation-delay: 0.3s;
}
.wechat-voice-message.playing .wechat-voice-wave span:nth-child(5) {
  animation-delay: 0.4s;
}

.wechat-voice-duration {
  font-size: 12px;
  flex-shrink: 0;
  margin-left: 4px;
}

/* ========== 消息动画优化 - 类似微信的流畅效果 ========== */
.message-animate {
  animation: messageSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
  transform: translateZ(0);
}

@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 所有消息气泡都应用硬件加速 */
.cmsg {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* 优化图片渲染 */
.cmsg img {
  will-change: transform;
  transform: translateZ(0);
}

/* 移动端额外优化 */
@media (max-width: 768px) {
  .message-animate {
    animation-duration: 0.25s;
  }

  .cmsg {
    transform: translate3d(0, 0, 0);
  }
}

/* ========== msgtype=7 引用消息样式（纯展示，不可点击） ========== */
.lite-chatbox .content .msg-quote {
  padding: 6px 10px;
  margin-bottom: 6px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 4px;
  border-left: 2px solid #b5b5b5;
  max-width: 100%;
  overflow: hidden;
}
.lite-chatbox .cright .content .msg-quote {
  background: rgba(0, 0, 0, 0.06);
}
.lite-chatbox .content .msg-quote .quote-content {
  font-size: 12px;
  color: #8c8c8c;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
  white-space: pre-wrap;
}
.lite-chatbox .content .reply-text {
  font-size: 15px;
  color: #111;
  line-height: 1.5;
  word-break: break-word;
}
/* 移动端引用消息优化 */
@media (max-width: 768px) {
  .lite-chatbox .content .msg-quote {
    padding: 5px 8px;
    margin-bottom: 5px;
  }
  .lite-chatbox .content .msg-quote .quote-content {
    font-size: 11px;
  }
  .lite-chatbox .content .reply-text {
    font-size: 14px;
  }
}