
.wechat-input-wrapper[data-v-46308bc4] {
  /* border: 1px solid #e0e0e0; */
  border-radius: 8px;
  padding: 0 12px;
  overflow-y: auto;
  background: white;
  position: relative;
  -webkit-transition: border-color 0.2s;
  transition: border-color 0.2s;
  -webkit-box-sizing: border-box;
          box-sizing: border-box; /* 重要：确保padding不会影响宽度计算 */
}
.wechat-input-wrapper.has-focus[data-v-46308bc4] {
  border-color: #07c160;
}

/* 确保可编辑区域填满容器 */
.wechat-editable[data-v-46308bc4] {
  min-height: 20px;
  outline: none;
  word-break: break-word;
  line-height: 1.5;
  font-size: 16px;
  white-space: pre-wrap;
  position: relative;
  overflow-y: auto;
  width: 100%; /* 确保宽度填满容器 */
}
.wechat-editable[data-v-46308bc4]:empty::before {
  content: attr(placeholder);
  color: #999;
  pointer-events: none;
}

/* 图片缩略图 */
.inline-image[data-v-46308bc4] {
  display: inline-block;
  vertical-align: bottom;
  position: relative;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  border: 2px solid transparent;
  border-radius: 4px;
  -webkit-transition: border-color 0.2s;
  transition: border-color 0.2s;
  background: #f0f0f0;
  margin: 2px 1px;
}
.inline-image[data-v-46308bc4]:hover {
  border-color: #07c160;
}
.inline-image img[data-v-46308bc4] {
  max-height: 60px;
  max-width: 120px;
  border-radius: 2px;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}
.inline-image .loading[data-v-46308bc4] {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  border-radius: 4px;
}
.inline-image .loading[data-v-46308bc4]::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid #07c160;
  border-top-color: transparent;
  border-radius: 50%;
  -webkit-animation: spin-data-v-46308bc4 1s linear infinite;
          animation: spin-data-v-46308bc4 1s linear infinite;
}
@-webkit-keyframes spin-data-v-46308bc4 {
to { -webkit-transform: rotate(360deg); transform: rotate(360deg);
}
}
@keyframes spin-data-v-46308bc4 {
to { -webkit-transform: rotate(360deg); transform: rotate(360deg);
}
}

/* 工具栏 */
.toolbar[data-v-46308bc4] {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-top: 8px;
  padding: 0 4px;
}
.toolbar-left[data-v-46308bc4] {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 12px;
}
.tool-btn[data-v-46308bc4] {
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  border-radius: 50%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  cursor: pointer;
  color: #07c160;
  font-size: 20px;
  -webkit-transition: background-color 0.2s;
  transition: background-color 0.2s;
}
.tool-btn[data-v-46308bc4]:hover {
  background: #f0f0f0;
}
.tool-btn[data-v-46308bc4]:disabled {
  color: #ccc;
  cursor: not-allowed;
}

/* 图片预览模态框 */
.image-modal[data-v-46308bc4] {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  z-index: 1000;
  -webkit-animation: fadeIn-data-v-46308bc4 0.2s ease;
          animation: fadeIn-data-v-46308bc4 0.2s ease;
}
@-webkit-keyframes fadeIn-data-v-46308bc4 {
from { opacity: 0;
}
to { opacity: 1;
}
}
@keyframes fadeIn-data-v-46308bc4 {
from { opacity: 0;
}
to { opacity: 1;
}
}
.modal-content[data-v-46308bc4] {
  max-width: 90%;
  max-height: 90%;
}
.modal-content img[data-v-46308bc4] {
  max-width: 100%;
  max-height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: 8px;
}
.close-modal[data-v-46308bc4] {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-transition: background-color 0.2s;
  transition: background-color 0.2s;
}
.close-modal[data-v-46308bc4]:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* 上传进度 */
.upload-progress[data-v-46308bc4] {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: white;
  border-radius: 8px;
  padding: 12px;
  -webkit-box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
          box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  z-index: 10;
  -webkit-animation: slideUp-data-v-46308bc4 0.3s ease;
          animation: slideUp-data-v-46308bc4 0.3s ease;
}
@-webkit-keyframes slideUp-data-v-46308bc4 {
from { -webkit-transform: translateY(100%); transform: translateY(100%); opacity: 0;
}
to { -webkit-transform: translateY(0); transform: translateY(0); opacity: 1;
}
}
@keyframes slideUp-data-v-46308bc4 {
from { -webkit-transform: translateY(100%); transform: translateY(100%); opacity: 0;
}
to { -webkit-transform: translateY(0); transform: translateY(0); opacity: 1;
}
}
.progress-bar[data-v-46308bc4] {
  width: 150px;
  height: 4px;
  background: #f0f0f0;
  border-radius: 2px;
  overflow: hidden;
  margin: 6px 0;
}
.progress-fill[data-v-46308bc4] {
  height: 100%;
  background: #07c160;
  border-radius: 2px;
  -webkit-transition: width 0.3s;
  transition: width 0.3s;
}
.progress-text[data-v-46308bc4] {
  font-size: 12px;
  color: #666;
  white-space: nowrap;
}

/* 滚动条 */
.wechat-input-wrapper[data-v-46308bc4]::-webkit-scrollbar,
.wechat-editable[data-v-46308bc4]::-webkit-scrollbar {
  width: 6px;
}
.wechat-input-wrapper[data-v-46308bc4]::-webkit-scrollbar-track,
.wechat-editable[data-v-46308bc4]::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}
.wechat-input-wrapper[data-v-46308bc4]::-webkit-scrollbar-thumb,
.wechat-editable[data-v-46308bc4]::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}
.wechat-input-wrapper[data-v-46308bc4]::-webkit-scrollbar-thumb:hover,
.wechat-editable[data-v-46308bc4]::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 自定义右键菜单样式 */
.context-menu[data-v-46308bc4] {
  position: fixed;
  z-index: 10000;
  background: white;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
          box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
.context-menu ul[data-v-46308bc4] {
  list-style: none;
  margin: 0;
  padding: 4px 0;
}
.context-menu li[data-v-46308bc4] {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
}
.context-menu li[data-v-46308bc4]:hover:not(.disabled) {
  background-color: #f5f5f5;
}
.context-menu li.disabled[data-v-46308bc4] {
  color: #ccc;
  cursor: not-allowed;
}
.context-menu .shortcut[data-v-46308bc4] {
  color: #999;
  font-size: 12px;
  margin-left: 20px;
}

