html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.lite-chatmaster {
  height: 100%;
  width: 100%;
  position: relative;
}
::-webkit-scrollbar {
  width: 3px;
  height: 1px;
}
.new-message-indicator {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  padding: 8px 20px;
  border-radius: 25px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  font-size: 14px;
  font-weight: 500;
  display: none;
  transition: all 0.3s ease;
  border: 2px solid white;
  min-width: 140px;
  text-align: center;
}
.new-message-indicator:hover {
  background: linear-gradient(135deg, #45a049, #3d8b40);
  transform: translateX(-50%) scale(1.05);
}
.new-message-indicator:active {
  transform: translateX(-50%) scale(0.95);
}
.circle-number {
  width: 40px;
  height: 40px;
  background-color: #4CAF50;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  font-weight: bold;
  font-family: Arial, sans-serif;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.circle-number.round {
  border-radius: 50%;
  background-color: #ff9999;
}
.lite-chatbox .circle-number {
  width: 80px;
  height: 80px;
  font-size: 40px;
}
.error-bubble {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f44336, #d32f2f);
  color: white;
  padding: 8px 20px;
  border-radius: 25px;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  font-size: 14px;
  font-weight: 500;
  display: none;
  transition: all 0.3s ease;
  border: 2px solid white;
  min-width: 140px;
  text-align: center;
}
.wechat-input-container {
  display: flex;
  align-items: flex-end;
  padding: 6px 12px;
  background: #f8f8f8;
  border-top: 1px solid #e0e0e0;
  min-height: 50px;
  box-sizing: border-box;
  width: 100%;
  position: sticky;
  bottom: 0;
  z-index: 100;
}
.wechat-tool-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin: 0 8px 0 0;
  color: #888;
  border-radius: 4px;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.wechat-tool-button:hover {
  background-color: #e9e9e9;
  color: #666;
}
.wechat-tool-button:active {
  background-color: #ddd;
}
.wechat-editor {
  flex: 1;
  min-height: 36px;
  max-height: 120px;
  padding: 8px 12px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 0;
  font-size: 16px;
  line-height: 1.4;
  overflow-y: auto;
  box-sizing: border-box;
  outline: none;
  word-wrap: break-word;
  word-break: break-all;
  resize: none;
}
.wechat-editor:empty:before {
  content: attr(placeholder);
  color: #999;
}
.wechat-editor:focus {
  border-color: #07c160;
  background: white;
}
.wechat-send-button {
  display: block;
  visibility: visible;
  opacity: 1;
  background-color: #07c160;
  color: white;
  border: none;
  border-radius: 0;
  padding: 8px 16px;
  margin-left: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  height: 36px;
  flex-shrink: 0;
  white-space: nowrap;
  min-width: 60px;
  position: relative;
  z-index: 10;
}
.wechat-send-button:hover {
  background-color: #06ad56;
}
.wechat-send-button:active {
  background-color: #059a4c;
}
.wechat-send-button:disabled {
  background-color: #b2e6c5;
  cursor: not-allowed;
}
.wechat-editor::-webkit-scrollbar {
  width: 4px;
}
.wechat-editor::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 2px;
}
.wechat-editor::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 2px;
}
.wechat-editor::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}
.lite-chatinput {
  background: transparent;
  border-top: none;
  padding: 0;
}
.lite-chatinput .boundary {
  display: none;
}
.wechat-editor img {
  max-width: 200px;
  max-height: 100px;
  object-fit: contain;
  margin: 2px 0;
  border-radius: 0;
  display: inline-block;
  vertical-align: middle;
}

.withdraw-confirm-dialog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.withdraw-confirm-dialog.show {
  opacity: 1;
  visibility: visible;
}

.withdraw-confirm-content {
  background: white;
  border-radius: 12px;
  padding: 24px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.withdraw-confirm-dialog.show .withdraw-confirm-content {
  transform: translateY(0);
}

.withdraw-confirm-content h3 {
  margin: 0 0 16px 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  text-align: center;
}

.withdraw-confirm-content p {
  margin: 0 0 24px 0;
  font-size: 16px;
  color: #666;
  text-align: center;
  line-height: 1.4;
}

.withdraw-confirm-buttons {
  display: flex;
  gap: 12px;
}

.withdraw-confirm-button {
  flex: 1;
  padding: 10px 0;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.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: #06ad56;
}

.withdraw-confirm-button:active {
  transform: scale(0.98);
}

.cmsg .content, .cmsg .name {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  cursor: default;
}

.cright {
  position: relative;
  margin-bottom: 15px;
}

.cright .content {
  position: relative;
  display: inline-block;
  z-index: 1;
}

.cright .content::before {
  content: '↶';
  position: absolute;
  left: -28px;
  top: 4px;
  font-size: 20px;
  color: black;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.2s ease;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.cright .content:hover::before {
  opacity: 1;
  transform: scale(1.1);
  transition: transform 0.2s ease;
}

.lite-chatbox .content {
  max-width: 100%;
  word-break: break-word;
  word-wrap: break-word;
}

.lite-chatbox .cright .content {
  max-width: calc(100% - 112px);
}

.lite-chatbox .cleft .content {
  max-width: calc(100% - 112px);
}

.cmsg.active {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  transition: background 0.2s;
}

.cmsg img:not(.headIcon) {
  cursor: pointer;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  transition: transform 0.2s ease;
}

.cmsg img:not(.headIcon):hover {
  transform: scale(1.05);
}

.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.image-modal.show {
  opacity: 1;
  visibility: visible;
}

.image-modal-content {
  max-width: 90%;
  max-height: 90%;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.image-modal.show .image-modal-content {
  transform: scale(1);
}

.image-modal-close {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  transition: all 0.2s ease;
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

.image-modal-close:hover {
  transform: translateX(-50%) scale(1.1);
  background-color: rgba(0, 0, 0, 0.7);
}

.lite-chatbox * {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.wechat-editor, .wechat-editor * {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

@media (max-width: 768px) {
  .wechat-input-container {
    flex-wrap: nowrap;
    align-items: center;
    padding: 4px 8px;
    min-height: 44px;
  }
  .wechat-editor {
    max-height: 100px;
    overflow-y: auto;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
  }
  .wechat-send-button {
    margin-left: 4px;
    padding: 6px 12px;
    font-size: 14px;
    height: 32px;
    min-width: 50px;
  }
  .wechat-tool-button {
    width: 32px;
    height: 32px;
    margin: 0 4px 0 0;
  }
  .wechat-editor img {
    max-width: 100% !important;
    max-height: 80px !important;
    height: auto !important;
    display: inline-block;
    vertical-align: middle;
  }
  
  .cright .content::before {
    left: -26px;
    top: 3px;
    font-size: 22px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.15);
  }
}