/* WeChat Chat Generator - Core & Pixel-Perfect WeChat UI Styles */

:root {
  --wx-bg: #EDEDED;
  --wx-nav-bg: #EDEDED;
  --wx-green: #95EC69;
  --wx-green-active: #85d85c;
  --wx-text-main: #191919;
  --wx-text-sub: #7F7F7F;
  --wx-border-color: #E5E5E5;
  --wx-orange-rp: #FA9E3B;
  --wx-red-rp: #FA5151;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #0f172a;
  color: #334155;
  height: 100vh;
  overflow: hidden;
}

/* App Layout Grid */
.app-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* Sidebar Editor Panel */
.editor-panel {
  width: 540px;
  min-width: 500px;
  height: 100%;
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(0,0,0,0.06);
  z-index: 10;
}

/* Preview Stage Area */
.preview-stage {
  flex: 1;
  height: 100%;
  background: radial-gradient(circle at top, #1e293b 0%, #0f172a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 24px;
  overflow-y: auto;
  position: relative;
}

/* Top Toolbar in Preview Stage */
.stage-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 800px;
  margin-bottom: 16px;
  padding: 8px 16px;
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #f8fafc;
}

/* ========================================================
   WeChat Phone Mockup Frame
   ======================================================== */
.phone-mockup-wrapper {
  position: relative;
  transition: all 0.3s ease;
  margin-bottom: 40px;
}

.phone-mockup {
  width: 390px;
  background-color: var(--wx-bg);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6), 0 0 0 10px #1e293b, 0 0 0 12px #334155;
  border-radius: 46px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  user-select: none;
}

/* Fixed Height Screen Mode */
.phone-mockup.mode-normal {
  height: 844px;
}

/* Auto/Long Screenshot Mode */
.phone-mockup.mode-full {
  height: auto !important;
  min-height: 844px;
  overflow: visible !important;
}

.mode-full .wx-chat-body,
.phone-mockup.mode-full .wx-chat-body {
  flex: none !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  overflow-y: visible !important;
}

/* Borderless Clean Frame for Export if needed */
.phone-mockup.export-clean {
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Top Status Bar */
.wx-status-bar {
  height: 47px;
  padding: 12px 28px 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: #000;
  position: relative;
  z-index: 20;
  background: var(--wx-nav-bg);
}

.wx-status-time {
  font-size: 15px;
  letter-spacing: -0.2px;
  font-weight: 600;
  font-family: -apple-system, SF Pro Text, Helvetica, Arial, sans-serif;
}

.dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 32px;
  background-color: #000;
  border-radius: 18px;
  z-index: 25;
}

.notch-area {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 28px;
  background-color: #000;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 25;
}

.wx-status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.battery-pill {
  width: 25px;
  height: 12px;
  border: 1.5px solid #000;
  border-radius: 3.5px;
  padding: 1px;
  display: flex;
  align-items: center;
  position: relative;
}

.battery-pill::after {
  content: '';
  position: absolute;
  right: -3.5px;
  top: 3px;
  width: 2px;
  height: 4px;
  background-color: #000;
  border-radius: 0 1px 1px 0;
}

.battery-fill {
  height: 100%;
  background-color: #000;
  border-radius: 1.5px;
}

/* WeChat Navigation Bar */
.wx-nav-bar {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background: var(--wx-nav-bg);
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 15;
}

.wx-nav-left {
  display: flex;
  align-items: center;
  font-size: 15px;
  color: #191919;
  cursor: pointer;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  flex: none !important;
  min-width: 85px;
}

.wx-nav-left span {
  white-space: nowrap !important;
  display: inline-block;
}

.wx-nav-left svg {
  margin-right: 2px;
  flex-shrink: 0;
}

.wx-nav-title {
  flex: 1;
  min-width: 0;
  height: 44px;
  line-height: 44px;
  text-align: center;
  font-size: 17px;
  font-weight: 500;
  color: #191919;
  white-space: nowrap;
  overflow: visible;
  padding: 0 4px;
}

.wx-nav-right {
  flex: none !important;
  flex-shrink: 0 !important;
  min-width: 60px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  color: #191919;
}

/* Chat Message Scrollable Container */
.wx-chat-body {
  flex: 1;
  padding: 16px 12px 24px 12px;
  overflow-y: auto;
  position: relative;
  background-color: var(--wx-bg);
  background-size: cover;
  background-position: center;
}

.mode-full .wx-chat-body {
  overflow-y: visible;
  height: auto;
}

/* Message Item Layout */
.wx-msg-row {
  display: flex;
  margin-bottom: 16px;
  width: 100%;
}

.wx-msg-row.align-left {
  justify-content: flex-start;
}

.wx-msg-row.align-right {
  justify-content: flex-end;
}

.wx-msg-row.align-center {
  justify-content: center;
  margin-bottom: 12px;
}

.wx-avatar {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background-color: #d1d5db;
}

.wx-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wx-msg-content {
  max-width: 260px;
  position: relative;
  margin: 0 10px;
}

/* ========================================================
   Message Bubbles & Shapes
   ======================================================== */

/* Text Bubble */
.bubble-text {
  font-size: 15px;
  line-height: 22px;
  padding: 9px 12px;
  border-radius: 4px;
  word-break: break-word;
  position: relative;
}

/* Left Bubble Tail & Colors */
.align-left .bubble-text {
  background-color: #FFFFFF;
  color: var(--wx-text-main);
  border: 1px solid #EBEBEB;
}

.align-left .bubble-text::before {
  content: '';
  position: absolute;
  top: 13px;
  left: -6px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 6px solid #FFFFFF;
}

/* Right Bubble Tail & Colors */
.align-right .bubble-text {
  background-color: var(--wx-green);
  color: var(--wx-text-main);
  border: 1px solid #85d85c;
}

.align-right .bubble-text::before {
  content: '';
  position: absolute;
  top: 13px;
  right: -6px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 6px solid var(--wx-green);
}

/* Quoted Reply inside Text Bubble */
.quoted-box {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 0.5px solid rgba(0, 0, 0, 0.08);
  font-size: 12px;
  color: #737373;
  line-height: 1.4;
  word-break: break-all;
}

/* Image Message */
.bubble-image {
  border-radius: 4px;
  overflow: hidden;
  max-width: 200px;
  max-height: 240px;
  background-color: #e2e8f0;
  display: block;
}

.bubble-image img {
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: cover;
  display: block;
}

/* Video Message */
.bubble-video {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  max-width: 200px;
  max-height: 240px;
  background-color: #000;
}

.bubble-video img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.85;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.video-duration {
  position: absolute;
  right: 6px;
  bottom: 6px;
  font-size: 11px;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  padding: 1px 5px;
  border-radius: 3px;
}

/* Voice Message */
.bubble-voice {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 4px;
  cursor: pointer;
  min-width: 75px;
  position: relative;
}

.align-left .bubble-voice {
  background-color: #fff;
  border: 1px solid #ebebeb;
  justify-content: flex-start;
}

.align-right .bubble-voice {
  background-color: var(--wx-green);
  border: 1px solid #85d85c;
  justify-content: flex-end;
}

.align-left .bubble-voice::before {
  content: '';
  position: absolute;
  top: 13px;
  left: -6px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 6px solid #FFFFFF;
}

.align-right .bubble-voice::before {
  content: '';
  position: absolute;
  top: 13px;
  right: -6px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 6px solid var(--wx-green);
}

.voice-duration {
  font-size: 14px;
  font-weight: 500;
  color: #191919;
  margin: 0 4px;
}

.voice-unread-dot {
  position: absolute;
  top: -2px;
  right: -8px;
  width: 8px;
  height: 8px;
  background-color: var(--wx-red-rp);
  border-radius: 50%;
}

.voice-stt-box {
  margin-top: 6px;
  background: #ffffff;
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 13px;
  color: #191919;
  border: 1px solid #EBEBEB;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  line-height: 1.4;
}

/* Call Message */
.bubble-call {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 14px;
  color: #191919;
}

/* Red Packet (红包) */
.bubble-redpacket {
  width: 232px;
  border-radius: 6px;
  overflow: hidden;
  background: #FA9E3B;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.bubble-redpacket.received {
  opacity: 0.65;
}

.rp-top {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  gap: 12px;
}

.rp-icon-box {
  width: 36px;
  height: 42px;
  background: #E84D3C;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.rp-text {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}

.rp-subtext {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  margin-top: 2px;
}

.rp-bottom {
  background: #ffffff;
  padding: 5px 14px;
  font-size: 11px;
  color: #999999;
}

/* Transfer (转账) */
.bubble-transfer {
  width: 232px;
  border-radius: 6px;
  overflow: hidden;
  background: #FA9E3B;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.bubble-transfer.received {
  opacity: 0.65;
}

.transfer-top {
  padding: 12px 14px 10px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.transfer-info {
  color: #fff;
}

.transfer-amount {
  font-size: 18px;
  font-weight: 600;
}

.transfer-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 2px;
}

.transfer-bottom {
  background: #fff;
  padding: 5px 14px;
  font-size: 11px;
  color: #999;
  display: flex;
  justify-content: space-between;
}

/* Location Card (位置) */
.bubble-location {
  width: 240px;
  background: #fff;
  border-radius: 4px;
  border: 1px solid #EBEBEB;
  overflow: hidden;
}

.location-info {
  padding: 10px 12px 6px 12px;
}

.location-title {
  font-size: 15px;
  font-weight: 500;
  color: #191919;
  line-height: 1.3;
}

.location-address {
  font-size: 12px;
  color: #888;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.location-map-preview {
  height: 90px;
  background: #e2e8f0;
  position: relative;
  overflow: hidden;
}

.location-map-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contact Card (名片) */
.bubble-card {
  width: 220px;
  background: #fff;
  border-radius: 4px;
  border: 1px solid #EBEBEB;
  overflow: hidden;
}

.card-top {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  gap: 10px;
}

.card-avatar {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  overflow: hidden;
  background: #cbd5e1;
}

.card-name {
  font-size: 15px;
  font-weight: 500;
  color: #191919;
}

.card-wxid {
  font-size: 11px;
  color: #999;
}

.card-bottom {
  border-top: 0.5px solid #F0F0F0;
  padding: 4px 12px;
  font-size: 11px;
  color: #999;
}

/* Article Link (图文/文章) */
.bubble-link {
  width: 240px;
  background: #fff;
  border-radius: 4px;
  border: 1px solid #EBEBEB;
  padding: 10px 12px;
}

.link-title {
  font-size: 14px;
  font-weight: 500;
  color: #191919;
  line-height: 1.4;
  margin-bottom: 6px;
}

.link-body {
  display: flex;
  gap: 8px;
}

.link-desc {
  font-size: 12px;
  color: #777;
  line-height: 1.35;
  flex: 1;
}

.link-thumb {
  width: 46px;
  height: 46px;
  border-radius: 3px;
  overflow: hidden;
  background: #cbd5e1;
  flex-shrink: 0;
}

.link-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.link-source {
  border-top: 0.5px solid #f2f2f2;
  margin-top: 8px;
  padding-top: 4px;
  font-size: 11px;
  color: #999;
}

/* Mini Program (小程序) */
.bubble-miniapp {
  width: 240px;
  background: #fff;
  border-radius: 4px;
  border: 1px solid #EBEBEB;
  overflow: hidden;
}

.miniapp-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  font-size: 12px;
  color: #666;
}

.miniapp-title {
  padding: 0 10px 8px 10px;
  font-size: 14px;
  font-weight: 500;
  color: #191919;
}

.miniapp-banner {
  height: 110px;
  background: #f1f5f9;
  overflow: hidden;
}

.miniapp-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.miniapp-footer {
  border-top: 0.5px solid #F0F0F0;
  padding: 5px 10px;
  font-size: 11px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* File Message (文件) */
.bubble-file {
  width: 230px;
  background: #fff;
  border-radius: 4px;
  border: 1px solid #EBEBEB;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.file-info {
  flex: 1;
  margin-right: 10px;
}

.file-name {
  font-size: 14px;
  font-weight: 500;
  color: #191919;
  word-break: break-all;
  line-height: 1.3;
}

.file-size {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}

.file-icon {
  width: 38px;
  height: 44px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

/* Merged History (合并转发) */
.bubble-merged {
  width: 240px;
  background: #fff;
  border-radius: 4px;
  border: 1px solid #EBEBEB;
  padding: 10px 12px;
}

.merged-title {
  font-size: 14px;
  font-weight: 500;
  color: #191919;
  margin-bottom: 6px;
}

.merged-line {
  font-size: 12px;
  color: #888;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.merged-footer {
  border-top: 0.5px solid #F0F0F0;
  margin-top: 8px;
  padding-top: 4px;
  font-size: 11px;
  color: #999;
}

/* Video Channels (视频号) */
.bubble-channels {
  width: 230px;
  background: #fff;
  border-radius: 4px;
  border: 1px solid #EBEBEB;
  overflow: hidden;
}

.channels-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
}

.channels-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  background: #cbd5e1;
  flex-shrink: 0;
}

.channels-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.channels-name {
  font-size: 13px;
  font-weight: 500;
  color: #191919;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.channels-banner {
  height: 160px;
  background: #1e293b;
  position: relative;
  overflow: hidden;
}

.channels-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.channels-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.channels-live-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #fa5151;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.channels-title {
  padding: 8px 10px;
  font-size: 13px;
  color: #191919;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.channels-footer {
  border-top: 0.5px solid #F0F0F0;
  padding: 5px 10px;
  font-size: 11px;
  color: #999;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Music Share (音乐分享) */
.bubble-music {
  width: 236px;
  background: #fff;
  border-radius: 4px;
  border: 1px solid #EBEBEB;
  padding: 10px;
}

.music-content {
  display: flex;
  gap: 10px;
  align-items: center;
}

.music-cover {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  overflow: hidden;
  background: #0f172a;
  position: relative;
  flex-shrink: 0;
}

.music-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.music-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  background: rgba(16, 185, 129, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.music-info {
  flex: 1;
  min-width: 0;
}

.music-song {
  font-size: 14px;
  font-weight: 500;
  color: #191919;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.music-singer {
  font-size: 12px;
  color: #888;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-footer {
  border-top: 0.5px solid #F0F0F0;
  margin-top: 8px;
  padding-top: 4px;
  font-size: 11px;
  color: #999;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Group Chat Member Nickname Above Bubble */
.wx-group-member-name {
  font-size: 11px;
  color: #888888;
  margin-bottom: 3px;
  line-height: 1.2;
  white-space: nowrap;
  padding-left: 2px;
}

/* Bottom Bar Voice Hold Button */
.wx-bottom-voice-btn {
  flex: 1;
  height: 38px;
  background: #FFFFFF;
  border-radius: 6px;
  border: 0.5px solid #d1d5db;
  font-size: 15px;
  font-weight: 500;
  color: #191919;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}

.wx-bottom-voice-btn:active {
  background: #e5e7eb;
}

/* Bottom Bar Green Send Button */
.wx-bottom-send-btn {
  height: 34px;
  padding: 0 12px;
  background: var(--wx-green);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Sticker / Big Emoji */
.bubble-sticker {
  max-width: 140px;
  max-height: 140px;
}

.bubble-sticker img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========================================================
   System & Notice Messages (Centered Grey Pills)
   ======================================================== */
.wx-notice-text {
  font-size: 12px;
  color: #999999;
  padding: 4px 10px;
  border-radius: 4px;
  text-align: center;
  line-height: 1.4;
  max-width: 320px;
}

.wx-notice-text a,
.wx-notice-text .highlight {
  color: #576b95;
  text-decoration: none;
}

.wx-notice-warning {
  background: rgba(0, 0, 0, 0.05);
  padding: 6px 12px;
  border-radius: 4px;
  color: #fa5151;
  font-size: 12px;
}

/* Status Icons: Sending / Error */
.msg-status-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
}

.align-right .msg-status-icon {
  left: -26px;
}

.align-left .msg-status-icon {
  right: -26px;
}

.error-exclamation {
  width: 18px;
  height: 18px;
  background-color: var(--wx-red-rp);
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.sending-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #ccc;
  border-top-color: #666;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========================================================
   WeChat Bottom Input Bar
   ======================================================== */
.wx-bottom-bar {
  background: #F7F7F7;
  border-top: 0.5px solid rgba(0, 0, 0, 0.1);
  padding: 7px 10px 24px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 15;
}

.wx-bottom-input {
  flex: 1;
  height: 38px;
  background: #FFFFFF;
  border-radius: 6px;
  border: none;
  padding: 0 10px;
  font-size: 15px;
  color: #191919;
  outline: none;
}

.wx-bottom-icon {
  color: #191919;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 134px;
  height: 5px;
  background-color: #000;
  border-radius: 3px;
}

/* ========================================================
   Editor UI Elements & Form Styles
   ======================================================== */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

/* ========================================================
   Canvas Export Alignment Fix
   ======================================================== */
.exporting-canvas-fix {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif !important;
}

.exporting-canvas-fix .wx-nav-left {
  white-space: nowrap !important;
}

.exporting-canvas-fix .wx-nav-title {
  overflow: visible !important;
}

/* WeChat Emoji Character Rendering */
.wx-emoji-icon {
  display: inline-block;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1.22em;
  line-height: 1;
  vertical-align: -0.15em;
  margin: 0 1.5px;
}
