/* 鏁翠綋甯冨眬 */
.page-container {
    min-height: 100vh;
    height: auto;
    display: flex;
    flex-direction: column;
}

.main-content { 
    flex: 1;
    display: flex;
    align-items: flex-start;
    height: auto;
    min-height: calc(100vh - 100px);
}
 
/* 宸︿晶杈撳叆鍖哄煙 */
.left-panel {
    width: 60%;
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
    display: flex; 
    flex-direction: column;
    padding: 15px; /* 鍑忓皯鍐呰竟璺� */
    position: relative; /* 娣诲姞鐩稿瀹氫綅浠ユ敮鎸佺粷瀵瑰畾浣嶇殑鎻愮ず娑堟伅 */
}  

.input-header {
    background-color: #007bff;
    color: white;
    padding: 10px; /* 鍑忓皯鍐呰竟璺� */ 
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.input-header h3 {
    margin: 0;
    font-size: 16px; /* 鍑忓皬瀛椾綋 */
}

.dialog-input-container {
    flex: 1;
    background-color: white;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 8px 8px; 
    display: flex;
    flex-direction: column;
}

.dialog-toolbox {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #f7f7f7;
    border-bottom: 1px solid #e8e8e8;
}

.dialog-tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #333;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dialog-tool-btn:hover {
    background: #f0f9eb;
    border-color: #95ec69;
    color: #1f7a1f;
}

.dialog-tool-btn-redpacket {
    color: #c4561a;
}

.dialog-tool-btn-redpacket:hover {
    background: #fff7e8;
    border-color: #fa9d3b;
    color: #c4561a;
}

.dialog-tool-btn-transfer {
    color: #d48806;
}

.dialog-tool-btn-transfer:hover {
    background: #fffbe6;
    border-color: #faad14;
    color: #d48806;
}

.dialog-tool-btn svg {
    display: block;
    flex-shrink: 0;
}

.dialog-textarea {
    flex: 1;   
    border: none;
    outline: none; 
    padding: 15px; /* 减少内边距 */
    font-size: 14px;
    line-height: 1.6;
    resize: none; 
    font-family: 'Courier New', monospace;
    /* 添加高度限制 */
    min-height: 120px;
    max-height: 200px;
    height: 150px;
}
 
.dialog-textarea:focus {
    box-shadow: none; 
}

.input-controls {
    padding: 10px; /* 鍑忓皯鍐呰竟璺� */
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6; 
    display: flex;
    gap: 10px;
} 

.generate-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.generate-btn:hover {
    background-color: #218838;
} 
  
.ai-generate-btn {
    background-color: #6f42c1;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.ai-generate-btn:hover {
    background-color: #5a32a3;
}

.ai-generate-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.screenshot-btn {
    background-color: #17a2b8;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;   
    font-size: 14px;
}

.screenshot-btn:hover { 
    background-color: #138496;
}

.zip-btn {
    background-color: #17a2b8;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;   
    font-size: 14px;
}

.zip-btn:hover {
    background-color: #138496;
}

.video-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;   
    font-size: 14px;
}

.video-btn:hover {
    background-color: #218838;
}

.video-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.legal-link-wrap {
    margin-top: auto;
    padding-top: 16px;
    text-align: left;
}

.legal-link {
    color: #9aa0a6;
    font-size: 12px;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.legal-link:hover {
    color: #6c757d;
    border-bottom-color: #c5c9ce;
}

.legal-link-sep {
    color: #c5c9ce;
    font-size: 12px;
    margin: 0 8px;
}

.wechat-help-article {
    max-width: 880px;
    margin: 0 auto;
    padding: 28px 20px 12px;
    color: #333;
    font-size: 15px;
    line-height: 1.75;
}

.wechat-help-article h2 {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.wechat-help-article p,
.wechat-help-copy p {
    margin: 0 0 12px;
}

.wechat-help-copy {
    font-size: 14px;
    line-height: 1.7;
    color: #333;
}

.wechat-help-copy h2 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.wechat-help-copy p:last-child,
.wechat-help-article p:last-child {
    margin-bottom: 0;
}

/* 鍙充晶灞曠ず鍖哄煙 */
.right-panel { 
    width: 40%;
    background-color: transparent; /* 绉婚櫎鑳屾櫙鑹� */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    overflow: visible;
}

/*
 * 右侧预览以 600px 为设计宽；真机截图按 1170 描述偏移。
 * cqw 定义在子节点上（容器自身不能可靠使用 cqw）。
 * 1px@1170 → (100cqw/1170)；1px@600 设计 → (100cqw/600)
 */
.wechat-preview-stage {
    position: relative;
    margin-top: 5px;
    max-width: 600px;
    width: 100%;
}

.wechat-preview-watermark {
    position: absolute;
    inset: 0;
    z-index: 40;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
}

.wechat-preview-watermark span {
    position: absolute;
    white-space: nowrap;
    font-size: 18px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.18);
    transform: rotate(-24deg);
}

.wechat-preview-watermark span:nth-child(1) {
    top: 18%;
    left: 10%;
}

.wechat-preview-watermark span:nth-child(2) {
    top: 18%;
    right: 8%;
}

.wechat-preview-watermark span:nth-child(3) {
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-24deg);
}

.wechat-preview-watermark span:nth-child(4) {
    bottom: 16%;
    left: 12%;
}

.wechat-container {
    margin-top: 0;
    max-width: 600px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    /* 宽仍按 600 设计（导出 scale 2 为 1200）。高按苹果 12 截图 1170×2532。 */
    aspect-ratio: 1170 / 2532;
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    container-type: inline-size;
    container-name: wechat;
}

.wechat-container > * {
    --wx-u: calc(100cqw / 600);
    --wx-s: calc(100cqw / 1170);
}

.chat-messages {
    background-color: #f5f5f5;
    /* 左头像再左移 2@1170；右头像再左移 27@1170（加大右侧内边距） */
    padding-top: calc(19 * var(--wx-u));
    padding-bottom: calc(19 * var(--wx-u));
    padding-left: calc(19 * var(--wx-u) - 2 * var(--wx-s));
    padding-right: calc(19 * var(--wx-u) + 27 * var(--wx-s));
    height: auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    flex: 1;
}

.chat-header-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    object-fit: cover;
    position: relative;
}

/* 时间：原 top20/left44，再上移 10@1170、左移 4@1170 */
.header-time {
    position: absolute;
    top: calc(20 * var(--wx-u) - 10 * var(--wx-s));
    left: calc(44 * var(--wx-u) - 4 * var(--wx-s));
    color: #000;
    font-size: calc(27 * var(--wx-u));
    font-weight: bold;
    font-family: "SimHei", "黑体", sans-serif;
    z-index: 10;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.header-number {
    position: absolute;
    top: calc(90 * var(--wx-u));
    left: calc(60 * var(--wx-u));
    color: #000;
    font-size: calc(22 * var(--wx-u));
    font-weight: bold;
    font-family: "SimHei", "黑体", sans-serif;
    z-index: 10;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.header-nickname {
    position: absolute;
    bottom: calc(15 * var(--wx-u));
    left: 50%;
    transform: translateX(-50%);
    color: #000;
    font-size: calc(25 * var(--wx-u));
    font-family: "SimHei", "黑体", sans-serif;
    z-index: 10;
}

/* 状态栏：信号 / 电池拆分定位（相对原右上角组合图） */
.status-bar-icons {
    position: absolute;
    top: 0;
    right: 0;
    width: calc(150 * var(--wx-u));
    height: calc(60 * var(--wx-u));
    z-index: 1000;
    pointer-events: none;
}

.status-bar-signal,
.status-bar-battery {
    position: absolute;
    display: block;
    object-fit: contain;
    pointer-events: none;
}

/* 信号：原约 right:78，再下移 19@1170、左移 10@1170 */
.status-bar-signal {
    width: calc(72 * var(--wx-u));
    height: calc(60 * var(--wx-u));
    top: calc(19 * var(--wx-s));
    right: calc(78 * var(--wx-u) + 10 * var(--wx-s));
}

/* 电池：原约 right:22，再下移 22@1170、左移 44@1170 */
.status-bar-battery {
    width: calc(40 * var(--wx-u));
    height: calc(60 * var(--wx-u));
    top: calc(22 * var(--wx-s));
    right: calc(22 * var(--wx-u) + 44 * var(--wx-s));
}

#refreshStatusBarBtn {
    position: absolute;
    right: calc(4 * var(--wx-u));
    bottom: calc(4 * var(--wx-u));
    width: calc(22 * var(--wx-u));
    height: calc(22 * var(--wx-u));
    border: none;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: calc(12 * var(--wx-u));
    line-height: 1;
    padding: 0;
    cursor: pointer;
    pointer-events: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.chat-footer-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0; /* 绉婚櫎鍦嗚 */
    object-fit: cover; /* 淇濇寔鍥剧墖姣斾緥 */
}


/* 空消息区域样式 */
.chat-messages:empty::before {
    content: '';
    display: block;
    flex: 1;
    min-height: calc(200 * var(--wx-u, 1px));
}

/* 头像样式调整 */
.avatar-img {
    width: calc(62 * var(--wx-u));
    height: calc(62 * var(--wx-u));
    margin: 0;
    object-fit: cover;
    flex-shrink: 0;
    margin-top: 0;
    border-radius: calc(8 * var(--wx-u));
}

.message {
    margin-bottom: calc(20 * var(--wx-u));
    display: flex;
    align-items: flex-start;
    gap: calc(18 * var(--wx-u));
    /* 随预览宽度等比缩放；整体再放大 1.3125 */
    font-size: calc(19 * 1.3125 * var(--wx-u));
    width: 100%;
}

.message:last-child {
    margin-bottom: calc(26 * var(--wx-u));
}

.message.user {
    justify-content: flex-end;
}  

.message.other {
    justify-content: flex-start;
} 

.message-content {
    max-width: calc(75% - 30px);
    padding: calc(8 * var(--wx-u)) calc(12 * var(--wx-u));
    border-radius: calc(6 * var(--wx-u));
    word-wrap: break-word;
    position: relative;
    margin-top: 0;
    min-height: calc(62 * var(--wx-u));
    display: flex;
    align-items: center;
    white-space: normal;
    line-height: 1.4;
    font-size: inherit;
}

.message.user .message-content {
    background-color: #95ec69;
    color: #000;
    margin-left: calc(8 * var(--wx-u));
    /* 右侧气泡整体再往左 13@1170 */
    margin-right: calc(13 * var(--wx-s));
}

.message.other .message-content {
    background-color: white;
    color: #000;
    border: none;
    margin-right: calc(8 * var(--wx-u));
    /* 左侧气泡整体再往右 13@1170 */
    margin-left: calc(13 * var(--wx-s));
}

/* 用户气泡三角（右侧） */
.message.user .message-content::after {
    content: '';
    position: absolute;
    right: calc(-1 * 6 * var(--wx-u));
    top: calc(20 * var(--wx-u));
    width: 0;
    height: 0;
    border: calc(6 * var(--wx-u)) solid transparent;
    border-left-color: #95ec69;
    border-right: 0;
}

/* 对方气泡三角（左侧） */
.message.other .message-content::before {
    content: '';
    position: absolute;
    left: calc(-1 * 6 * var(--wx-u));
    top: calc(20 * var(--wx-u));
    width: 0;
    height: 0;
    border: calc(6 * var(--wx-u)) solid transparent;
    border-right-color: white;
    border-left: 0;
}

/* 绂佺敤瀵规柟鏅�氭秷鎭殑::after浼厓绱狅紝閬垮厤鍙岄噸涓夎褰� */
.message.other .message-content:not(.has-image):not(.has-voice):not(.has-pay-card)::after {
    display: none;
}

/* 红包/转账：宽 = 236设计 +249@1170；高 +85+7@1170；四角圆角一致 */
.message-content.has-pay-card {
    padding: 0;
    min-height: auto;
    background: transparent !important;
    border: none !important;
    align-items: stretch;
    width: fit-content;
    max-width: calc(248 * var(--wx-u, 1px) + 249 * var(--wx-s, 0.5128px));
}

/* 右侧发言人红包/转账再往右 12@1170（减小 margin-right） */
.message.user .message-content.has-pay-card {
    margin-right: calc((13 - 12) * var(--wx-s));
}

/*
 * 红包/转账右侧三角：竖直边 32@1170（半边 16@1170），顶部位置不变，
 * 相对原 21→32 同比例向下、向右延伸。
 */
.message.user .message-content.has-pay-card::after {
    display: block !important;
    top: calc(20 * var(--wx-u));
    /* +2px 叠进卡片，避免 html2canvas 放大后三角与矩形之间露缝 */
    right: calc(-16 * var(--wx-s) + 2px);
    border: calc(16 * var(--wx-s)) solid transparent;
    border-left-color: #fa9d3b;
    border-right: 0;
}

.message.other .message-content.has-pay-card::before {
    display: block !important;
    top: calc(20 * var(--wx-u));
    left: calc(-16 * var(--wx-s) + 2px);
    border: calc(16 * var(--wx-s)) solid transparent;
    border-right-color: #fa9d3b;
    border-left: 0;
}

.message.user .message-content.has-pay-card::before,
.message.other .message-content.has-pay-card::after {
    display: none !important;
}

.wx-pay-card {
    display: flex;
    flex-direction: column;
    width: calc(236 * var(--wx-u, 1px) + 249 * var(--wx-s, 0.5128px));
    min-height: calc(82 * var(--wx-u, 1px) + 92 * var(--wx-s, 0.5128px));
    padding: calc(12 * var(--wx-u, 1px)) calc(12 * var(--wx-u, 1px)) calc(8 * var(--wx-u, 1px));
    border-radius: calc(4 * var(--wx-u, 1px));
    color: #fff;
    background: #fa9d3b;
    box-shadow: none;
    font-size: inherit;
}

.wx-pay-card-main {
    display: flex;
    align-items: center;
    gap: calc(10 * var(--wx-u, 1px));
    min-height: calc(44 * var(--wx-u, 1px));
}

.wx-pay-card-icon {
    width: calc(40 * var(--wx-u, 1px));
    height: calc(40 * var(--wx-u, 1px));
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wx-pay-glyph {
    display: block;
}

/* 红包图标：高度不变，宽度 = 高 × 0.9（比正方形窄 10%） */
.wx-pay-glyph-redpacket {
    height: calc(40 * var(--wx-u, 1px));
    width: calc(40 * 0.9 * var(--wx-u, 1px));
}

.wx-pay-glyph-transfer {
    width: calc(38 * var(--wx-u, 1px));
    height: calc(38 * var(--wx-u, 1px));
}

.wx-pay-card-body {
    min-width: 0;
    flex: 1;
}

.wx-pay-card-title {
    font-size: inherit;
    font-weight: 500;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
    overflow: visible;
}

.wx-pay-card-amount {
    font-size: inherit;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.wx-pay-card-desc {
    margin-top: calc(3 * var(--wx-u, 1px));
    /* 介于底部「转账/红包」(12) 与祝福语「恭喜发财…」(19) 之间 */
    font-size: calc(15.5 * 1.3125 * var(--wx-u, 1px));
    font-weight: 400;
    line-height: 1.3;
    opacity: 0.95;
}

.wx-pay-card-foot {
    margin-top: calc(8 * var(--wx-u, 1px));
    padding-top: 0;
    border-top: none;
    font-size: calc(12 * 1.3125 * var(--wx-u, 1px));
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.88);
}

.wx-pay-speaker-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin: 0 0 14px;
    font-size: 14px;
    color: #333;
}

.wx-pay-speaker-row label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    margin: 0;
    font-weight: 500;
}

.wx-pay-card-preview {
    --wx-u: 1px;
    --wx-s: 0.5128px;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    font-size: calc(19 * 1.3125 * 1px);
}

.transfer-amount-field {
    display: flex;
    align-items: center;
    gap: 8px;
}

.transfer-amount-prefix {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.transfer-amount-field .custom-input-field {
    flex: 1;
}


/* 璇煶娑堟伅绂佺敤::before涓夎褰紝鍙娇鐢�::after */
.message.other .message-content.has-voice::before {
    display: none;
}

/*
 * 图片消息：独立容器，不走 .message-content 气泡样式。
 * 真机无绿边/白边、无左右三角，仅显示图片。
 */
.message-image-wrap {
    max-width: calc(75% - 30px);
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    display: block;
    line-height: 0;
}

.message.user .message-image-wrap {
    margin-right: calc(13 * var(--wx-s));
}

.message.other .message-image-wrap {
    margin-left: calc(13 * var(--wx-s));
}

.message-image-wrap::before,
.message-image-wrap::after {
    content: none !important;
    display: none !important;
}

.message-image-wrap img.dialog-image,
.message-content img.dialog-image {
    max-width: 200px;
    max-height: 200px;
    border-radius: 4px;
    display: block;
    margin: 0;
    cursor: pointer;
    transition: opacity 0.2s ease;
    border: none;
    outline: none;
    box-shadow: none;
    background: transparent;
}

.message-image-wrap img.dialog-image:hover,
.message-content img.dialog-image:hover {
    opacity: 0.85;
}

/* 兼容旧 has-image 结构（若缓存未刷新） */
.message-content.has-image {
    padding: 0 !important;
    min-height: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.message.user .message-content.has-image,
.message.other .message-content.has-image {
    background: transparent !important;
}

.message.user .message-content.has-image::after,
.message.user .message-content.has-image::before,
.message.other .message-content.has-image::after,
.message.other .message-content.has-image::before {
    content: none !important;
    display: none !important;
}

.message-time {
    font-size: 12px;
    color: #666; 
    margin: 15px 0 10px 0;
    text-align: center;
    padding: 8px 15px;
    border-radius: 15px;
    display: inline-block;
    margin-left: 50%;
    transform: translateX(-50%);
    font-weight: 500;
    width: auto; 
    position: relative;
}

 
.message-time span {
    background-color: #f0f0f0;
    padding: 0 10px;
    position: relative;
    z-index: 2;
}

/* 鏄电О杈撳叆妗嗘牱寮� */
.nickname-input-container {
    margin-bottom: 15px;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 10px;
}

.nickname-input-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.nickname-input {
    width: 150px; /* 杩涗竴姝ョ缉鐭搴� */
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.nickname-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* 鐢熸垚瀵硅瘽鏃堕棿鍕鹃�夐」鏍峰紡 */
.generate-time-option {
    display: inline-block;
    margin-left: 15px;
    vertical-align: middle;
}

.generate-time-option label {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    margin: 0;
}

.generate-time-option input[type="checkbox"] {
    margin-right: 5px;
    vertical-align: middle;
}

/* 多图截屏控件样式 */
.generate-time-option input[type="number"] {
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 12px;
    text-align: center;
    background-color: white;
    transition: border-color 0.3s ease;
}

.generate-time-option input[type="number"]:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.generate-time-option input[type="number"]::-webkit-inner-spin-button,
.generate-time-option input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
    height: 20px;
}

/* 鍝嶅簲寮忚璁� */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .left-panel, .right-panel {
        width: 100%;
    }
    
    .left-panel,
    .right-panel {
        height: auto;
    }
}

/* 澶村儚閫夋嫨鍖哄煙鏍峰紡 */
.avatar-selection {
    margin-bottom: 15px;
    background-color: white;
    /* 移除边框和分隔线 */
    border: none;
    border-radius: 0;
    padding: 15px;
    /* 添加统一的背景和阴影 */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.avatar-selection h5 {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    /* 添加底部边框作为分隔 */
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 8px;
}

/* 移除Bootstrap列之间的分隔 */
.avatar-selection .row {
    margin-left: 0;
    margin-right: 0;
}

.avatar-selection .col-md-6 {
    padding-left: 0;
    padding-right: 0;
    border: none;
}

/* 为两个区域添加统一的背景 */
.avatar-selection .col-md-6:first-child {
    border-right: 1px solid #f0f0f0;
    padding-right: 15px;
}

.avatar-selection .col-md-6:last-child {
    padding-left: 15px;
}

.avatar-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 120px;
    overflow-y: auto;
}

.avatar-option {
    display: inline-block;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: border-color 0.2s;
}

.avatar-option:hover {
    border-color: #007bff;
}

.avatar-option input[type="radio"] {
    display: none;
}

.avatar-option input[type="radio"]:checked + img {
    border: 2px solid #007bff;
    border-radius: 4px;
}

.avatar-option img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
    transition: border-color 0.2s;
}

/* 鏂囦欢涓婁紶鏍峰紡 */
.avatar-upload {
    display: inline-block;
    cursor: pointer;
    border: 2px dashed #ccc;
    border-radius: 4px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    transition: border-color 0.2s;
    position: relative;
}

.avatar-upload:hover {
    border-color: #007bff;
    background-color: #e3f2fd;
}

.avatar-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.avatar-upload-icon {
    font-size: 16px;
    color: #666;
}

.avatar-upload:hover .avatar-upload-icon {
    color: #007bff;
}

/* 涓婁紶鍚庣殑澶村儚鏍峰紡 */
.avatar-option.uploaded {
    position: relative;
}

.avatar-option.uploaded .remove-avatar {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 16px;
    height: 16px;
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
}

.avatar-option.uploaded:hover .remove-avatar {
    opacity: 1;
}

/* 鑷畾涔夎緭鍏ユ鏍峰紡 */
.custom-input-modal {
    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;
}

.custom-input-container {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    min-width: 300px;
}

.custom-input-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.custom-input-field {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.custom-input-field:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.custom-input-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.custom-input-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.custom-input-btn.cancel {
    background-color: #6c757d;
    color: white;
}

.custom-input-btn.cancel:hover {
    background-color: #5a6268;
}

.custom-input-btn.confirm {
    background-color: #007bff;
    color: white;
}

.custom-input-btn.confirm:hover {
    background-color: #0056b3;
}

/* 宸︿晶鎻愮ず鏍峰紡 */
.left-panel-message {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    padding: 8px 12px;
    z-index: 1000; /* 纭繚鍦ㄥ叾浠栧唴瀹逛箣涓� */
    display: none; /* 榛樿闅愯棌 */
    border-radius: 4px;
    margin: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.left-panel-message-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.left-panel-message-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.left-panel-message-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
}

.left-panel-message-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.left-panel-message-content {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
}

.left-panel-message-content .message-text {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.left-panel-message-content i {
    font-size: 14px;
    flex-shrink: 0;
}

.left-panel-message-content span {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
}

.left-panel-message-close {
    cursor: pointer;
    font-size: 12px;
    opacity: 0.7;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.left-panel-message-close:hover {
    opacity: 1;
}

/* 鍥剧墖棰勮妯℃�佹鏍峰紡 */
.image-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview-container {
    background-color: white;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90%;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.image-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background-color: #f8f9fa;
}

.image-preview-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

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

.image-preview-close:hover {
    background-color: #e9ecef;
    color: #333;
}

.image-preview-content {
    padding: 20px;
    text-align: center;
}

.image-preview-content img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
 
.insert-image-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s;
    margin-left: 5px;
}

.insert-image-btn:hover {
    background-color: #218838;
}

/* 鎻掑叆鍥剧墖妯℃�佹鏍峰紡 */
.custom-input-modal#insertImageModal {
    display: none;
}

.custom-input-container#insertImageModal {
    max-width: 600px;
}

.custom-input-title#insertImageModal {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

/* 椤堕儴淇℃伅flex甯冨眬 */
@media (max-width: 768px) {
    .chat-header-img {
        width: 100%;
        height: auto;
    }
    .header-time,
    .header-number,
    .header-nickname {
        position: static !important; /* 鍙栨秷缁濆瀹氫綅锛屾敼涓烘祦寮� */
        display: inline-block;
        font-size: 12px; 
        margin: 0 4px;
        vertical-align: middle;
    }
    .wechat-container > div[style*="position: relative"] {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 8px;
        position: relative;
    }
    .header-nickname {
        flex: 1;
        text-align: center;
        font-weight: bold;
        font-size: 14px;
    }
    .header-time, .header-number {
        min-width: 40px;
        text-align: center;
    }
} 

/* 璇煶娑堟伅鏍峰紡 */
.message-content.has-voice {
    background-color: #95ec69;
    border-radius: 18px;
    padding: 8px 12px;
    min-width: 80px;
    max-width: 200px;
    position: relative;
}

.message.other .message-content.has-voice {
    background-color: white;
}

.voice-message {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.voice-icon {
    color: #333;
    font-size: 16px;
    animation: voice-pulse 1.5s ease-in-out infinite;
}

.voice-duration {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    min-width: 30px;
}

.voice-waveform {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 4px;
}

.voice-bar {
    width: 2px;
    background-color: #333;
    border-radius: 1px;
    animation: voice-wave 1.5s ease-in-out infinite;
}

.voice-bar:nth-child(1) { height: 8px; animation-delay: 0s; }
.voice-bar:nth-child(2) { height: 12px; animation-delay: 0.1s; }
.voice-bar:nth-child(3) { height: 16px; animation-delay: 0.2s; }
.voice-bar:nth-child(4) { height: 12px; animation-delay: 0.3s; }
.voice-bar:nth-child(5) { height: 8px; animation-delay: 0.4s; }

@keyframes voice-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes voice-wave {
    0%, 100% { 
        transform: scaleY(1);
        opacity: 0.6;
    }
    50% { 
        transform: scaleY(1.5);
        opacity: 1;
    }
}

/* 璇煶娑堟伅姘旀场鏍峰紡 */
.message.user .message-content.has-voice::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid #95ec69;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.message.other .message-content.has-voice::after {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-right: 8px solid white;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

/* 璇煶娑堟伅鎮仠鏁堟灉 */
.voice-message:hover {
    opacity: 0.8;
}

.voice-message:hover .voice-icon {
    animation-duration: 0.8s;
}

.voice-message:hover .voice-bar {
    animation-duration: 0.8s;
}

/* 绉诲姩绔�傞厤 */
@media (max-width: 768px) {
    .voice-message {
        gap: 6px;
    }
    
    .voice-duration {
        font-size: 13px;
    }
    
    .voice-icon {
        font-size: 14px;
    }
    
    .voice-bar {
        width: 1.5px;
    }
    
    .voice-bar:nth-child(1) { height: 6px; }
    .voice-bar:nth-child(2) { height: 10px; }
    .voice-bar:nth-child(3) { height: 14px; }
    .voice-bar:nth-child(4) { height: 10px; }
    .voice-bar:nth-child(5) { height: 6px; }
}

#refreshStatusBarBtn:hover {
    background: rgba(0, 0, 0, 0.8) !important;
    transform: scale(1.1);
}

.status-bar-icons:hover #refreshStatusBarBtn {
    opacity: 1;
}

.compact-filter-btn {
    font-size: 12px !important;
    padding: 2px 4px !important;
    margin: 1px !important;
    line-height: 1.2 !important;
    border-radius: 3px !important;
}

@media (max-width: 900px) {
    .compact-filter-btn {
        font-size: 9px !important;
        padding: 1px 3px !important;
    }
} 
