 * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: "Microsoft Yahei", sans-serif;
    }

    body {
      background: #f5f5f5;
      /* padding: 6px; */
      font-size: 12px;
    }

    .container {
      max-width: 100%;
    }

    .editor-section {
      background: #fff;
      padding: 8px;
      /* border-radius: 6px; */
      box-shadow: 0 1px 3px rgba(0,0,0,0.1);
      /* margin-bottom: 6px; */
      display: flex;
      flex-direction: column;
      gap: 6px;
	  min-height: 100vh;
    }

    .editor-title {
      font-size: 14px;
      font-weight: bold;
      color: #333;
    }

    .avatar-editor {
      display: flex;
      gap: 6px;
	  padding: 6px;
	  background: ghostwhite;
	  border-radius: 4px;
	  margin-top: 6px;
    }

    .avatar-item {
      flex: 1;
    }

    .avatar-item label {
      font-size: 11px;
      color: #666;
      margin-bottom: 2px;
      display: block;
    }

    .avatar-preview {
      width: 44px;
      height: 44px;
      border-radius: 2vw;
      border: 1px dashed #ddd;
      object-fit: cover;
      cursor: pointer;
    }

    .avatar-item input { display: none; }

    .avatar-item button {
      font-size: 10px;
      padding: 2px 4px;
      border-radius: 3px;
      border: 1px solid #ddd;
      background: #f9f9f9;
      cursor: pointer;
      margin-top: 2px;
    }

    .user-info {
      display: flex;
      gap: 6px;
	  padding: 6px;
	  background: ghostwhite;
	  border-radius: 4px;
	  margin-top: 6px;
    }

    .user-item {
      flex: 1;
    }

    .user-item label {
      font-size: 11px;
      color: #666;
      margin-bottom: 2px;
      display: block;
    }

    .user-item input {
      width: 100%;
      padding: 4px 6px;
      border: 1px solid #ddd;
      border-radius: 4px;
      font-size: 12px;
    }

    .radio-group {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 11px;
      flex-wrap: wrap;
    }

    .radio-item {
      display: flex;
      align-items: center;
      gap: 3px;
      cursor: pointer;
    }

    .radio-item input[type="radio"] {
      width: 12px;
      height: 12px;
      accent-color: #1677ff;
    }

    .message-type-selector {
      display: flex;
      align-items: center;
      gap: 4px;
      font-size: 11px;
	  padding: 10px 6px;
	  background: ghostwhite;
	  border-radius: 4px;
	  margin-top: 6px;
    }

    .message-form {
      display: flex;
      align-items: flex-start;
      gap: 4px;
      flex-wrap: wrap;
	  padding: 10px 6px;
	  background: ghostwhite;
	  border-radius: 4px;
	  margin-top: 6px;
    }

    .message-sender {
      flex-shrink: 0;
    }

    .message-form .form-content {
      flex: 1;
      min-width: 0;
	  
    }

    .message-form textarea,
    .message-form input {
      width: 100%;
      padding: 4px;
      border: 1px solid #ddd;
      border-radius: 3px;
      font-size: 12px;
    }

    .message-form button {
      padding: 4px 6px;
      background: #07c160;
      color: white;
      border: none;
      border-radius: 3px;
      font-size: 12px;
      white-space: nowrap;
      flex-shrink: 0;
      margin-top: 4px;
    }

    .image-preview {
      width: 50px;
      height: 50px;
      border: 1px dashed #ddd;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 10px;
      cursor: pointer;
    }
    .message-list-out {
	  padding: 10px 6px;
	  background: ghostwhite;
	  border-radius: 4px;
	  margin-top: 6px;
    }
    .message-list {
      /* border: 1px solid #eee; */
      border-radius: 3px;
      /* padding: 4px; */
      max-height: 80px;
      overflow-y: auto;
      font-size: 11px;
    }

    .message-item {
      padding: 2px 0;
      display: flex;
      justify-content: space-between;
    }

    .type-tag {
      font-size: 9px;
      background: #f0f0f0;
      padding: 1px 3px;
      border-radius: 2px;
      margin-right: 3px;
    }

    .delete-btn {
      color: red;
      font-size: 10px;
      cursor: pointer;
    }

    .preview-btn, .bg-btn {
      background: #1677ff;
      color: white;
      border: none;
      padding: 4px 8px;
      border-radius: 3px;
      font-size: 12px;
      cursor: pointer;
    }

    .bg-btn {
      background: #ff9f00;
    }

    .btn-group {
	 position: fixed;
	 bottom: 0;
	 left: 0;
	 width: 100%;
      display: flex;
      gap: 6px;
      align-items: center;
	  padding: 10px 6px;
	  background: white;
	  border-top: 1px solid wheat;
	  
    }
	.editor-right{
	  padding: 10px 6px;
	  background: ghostwhite;
	  border-radius: 4px;
	  margin-top: 6px;
		
	}
    .inline-preview-title {
      font-size: 14px;
      margin-bottom: 6px;
      font-weight: 500;
    }

    .inline-wechat-container {
      width: 100%;
      max-width: 300px;
      margin: 0 auto;
      border-radius: 8px;
      overflow: hidden;
      border: 1px solid #ddd;
      display: flex;
      flex-direction: column;
    }

    .inline-wechat-header {
      background: #eee;
      padding: 0 12px;
      font-size: 16px;
      text-align: center;
      position: relative;
      height: 44px;
      line-height: 44px;
      font-weight: 500;
	  border-bottom: 1px solid #ddd;
    }
    .inline-wechat-avatar {
      position: absolute;
      left: 12px;
      top: 50%;
      transform: translateY(-50%);
      width: 30px;
      height: 30px;
      border-radius: 2vw;
      object-fit: cover;
    }

    .inline-wechat-chat {
      height: 280px;
      background: #e5ded8;
      padding: 10px;
      overflow-y: auto;
      background-size: cover;
      background-position: center;
      flex: 1;
    }

    /* 模拟微信底部输入框 */
    .wechat-input-bar {
      display: flex;
      align-items: center;
      padding: 6px 8px;
      background: #f5f5f5;
      border-top: 1px solid #ddd;
      gap: 6px;
    }

    .wechat-input {
      flex: 1;
      padding: 6px 8px;
      border: none;
      border-radius: 4px;
      font-size: 14px;
      outline: none;
    }

    .wechat-send-btn {
      padding: 6px 10px;
      background: #07c160;
      color: #fff;
      border: none;
      border-radius: 4px;
      font-size: 14px;
      cursor: pointer;
    }

    .preview-section {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: #e5ded8;
      display: none;
      z-index: 999;
      background-size: cover;
      background-position: center;
      /* 新增：全屏预览区改为flex布局，适配输入框 */
      display: none;
      flex-direction: column;
    }

    .wechat-header {
      height: 44px;
      background: #EDEDED;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      border-bottom: 1px solid #ddd;
      flex-shrink: 0;
    }

    .wechat-back-btn {
      position: absolute;
      left: 4px;
      font-size: 16px;
      cursor: pointer;
      color: #000;
	  width: 30px;
	  height: 30px;
	  background: url('https://cdn.doumvip.com/ee8154bd94ffc29df2b2682be828db4e.jpg') no-repeat;
	  background-size: 100% 100% ;
    }
    .wechat-more-btn {
      position: absolute;
      right: 4px;
      font-size: 16px;
      cursor: pointer;
      color: #000;
	  width: 30px;
	  height: 30px;
	  background: url('https://cdn.doumvip.com/fc004aa4a7bbd5935847284cb015af9f.jpg') no-repeat;
	  background-size: 100% 100% ;
    }
	/* 新增：逐条播放按钮样式 */
	.play-btn {
	  position: absolute;
	  right: 12px;
	  font-size: 14px;
	  cursor: pointer;
	  color: #1677ff;
	  background: #f0f8ff;
	  padding: 2px 8px;
	  border-radius: 4px;
	  border: 1px solid #1677ff;
	}
    .wechat-header-avatar {
      position: absolute;
      left: 56px;
      width: 32px;
      height: 32px;
      border-radius: 50%;
	  opacity: 0;
    }

    .wechat-header-title {
      font-size: 16px;
      font-weight: 500;
    }

    .wechat-chat {
      /* 修改：高度改为flex，自适应剩余空间 */
      flex: 1;
      padding: 12px;
      overflow-y: auto;
      background: transparent;
    }

    .chat-message {
      display: flex;
      gap: 8px;
      margin-bottom: 12px;
      width: 100%;
    }
	.chat-message.left .chat-avatar {
		/* order: 2; */
		margin-right: 4px;
	}
    .chat-message.left { justify-content: flex-start; }
    .chat-message.right { justify-content: flex-end; }

    .chat-message.right .chat-avatar { order: 2; margin-left: 4px; }
    .chat-message.right .message-bubble { order: 1; }

    .chat-avatar {
      width: 40px;
      height: 40px;
      border-radius: 2vw;
      object-fit: cover;
      flex-shrink: 0;
    }

    .message-bubble {
      max-width: 70%;
      padding: 8px 12px;
      border-radius: 8px;
      font-size: 16px;
      line-height: 1.4;
      word-break: break-all;
    }

    .left .message-bubble {
      background: rgba(255,255,255,0.95);
      border-bottom-left-radius: 0;
    }

    .right .message-bubble {
      background: rgba(158,234,106,0.95);
      border-bottom-right-radius: 0;
    }
    .img-bubble{
		padding: 0;
		background: none !important;
	}
    .message-image img {
      width: 180px;
      border-radius: 8px;
	  border: 1px solid gainsboro;
    }

    .message-link {
      color: #0066cc;
      text-decoration: none;
      font-size: 16px;
      cursor: pointer;
    }

    #bgImageInput { display: none; }

    .iframe-preview-layer {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: #fff;
      z-index: 1000;
      display: none;
    }

    .iframe-close-btn {
      position: absolute;
      top: 10px;
      left: 10px;
      width: 36px;
      height: 36px;
      background: rgba(0,0,0,0.5);
      color: white;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 1001;
      font-size: 18px;
    }

    .iframe-container {
      width: 100%;
      height: 100%;
      border: none;
    }