/* ========== 微信风聊天界面（完整修复版） ========== */
body{
    margin:0;
    padding:0;
    font-size:15px;
    background-color:#ededed;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;
}
input:focus,textarea:focus{outline:none;outline-offset:0;}
*{outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box;}

/* 滚动条 */
::-webkit-scrollbar {width:4px;}
::-webkit-scrollbar-thumb {background:rgba(0,0,0,0.1);border-radius:4px;}
::-webkit-scrollbar-track {background:transparent;}

/* 主容器 */
.content{width:100%;height:100vh;overflow:hidden;background:#ededed;}

/* 顶部 */
.contentTop{
    width:100%;
    height:44px;
    line-height:44px;
    text-align:center;
    font-size:17px;
    font-weight:500;
    background:#f7f7f7;
    color:#000;
    border-bottom:1px solid #e0e0e0;
}

/* 聊天内容区 */
.contentMiddle{
    width:100%;
    height:calc(100vh - 114px);
    padding:12px;
    overflow-x:hidden;
    overflow-y:auto;
    background:#ededed;
}

/* 快捷按钮 */
.contentMiddle2{
    position:fixed;
    z-index:2;
    bottom:60px;
    left:10px;
    height:auto;
    padding:8px 10px;
    background:#fff;
    border-radius:8px;
    box-shadow:0 1px 3px rgba(0,0,0,0.1);
    display:flex;
    gap:8px;
}
.contentMiddle2_bt{
    padding:4px 10px;
    border-radius:4px;
    font-size:13px;
    background:#f0f0f0;
    color:#333;
    cursor:pointer;
}

/* 输入栏 */
.contentBottom{
    position:fixed;
    bottom:0;
    left:0;
    z-index:1;
    width:100%;
    height:50px;
    background:#f5f5f5;
    border-top:1px solid #e0e0e0;
    padding:5px 10px;
    display:flex;
    align-items:center;
    gap:8px;
}

/* 输入框 */
.textContent{
    flex:1;
    height:40px;
    padding:0 12px;
    font-size:15px;
    border:none;
    border-radius:4px;
    background:#fff;
}

/* 发送按钮 */
.sendTextButton{
    width:60px;
    height:40px;
    line-height:40px;
    text-align:center;
    border:none;
    border-radius:4px;
    background:#07c160;
    color:#fff;
    cursor:pointer;
}

/* ✅ 修复：图片上传按钮可点击 */
.sendPictureButton{
    position:relative;
    width:40px;
    height:40px;
    background:#f2f2f2;
    border-radius:4px;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
}
.sendPicture{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    opacity:0;
    cursor:pointer;
    z-index:999;
}

/* 消息动画 */
.messageStyle{
    margin:12px 0;
    overflow:hidden;
    animation:fadeIn 0.2s ease forwards;
}
@keyframes fadeIn {  
    from {opacity:0;transform:translateY(4px);}  
    to {opacity:1;transform:translateY(0);}  
}

/* 客服消息 */
.messageStyleLeft1{float:left;width:40px;}
.messageStyleLeft1P{width:40px;height:40px;border-radius:4px;object-fit:cover;}
.messageStyleLeft2{
    position:relative;
    float:left;
    margin-left:10px;
    max-width:75%;
}
.messageStyleLeft2T{
    padding:8px 12px;
    background:#fff;
    border-radius:4px;
    color:#333;
    word-break:break-all;
}
.messageStyleLeft2T img {
    max-width:100% !important;
    height:auto !important;
    border-radius:4px !important;
    display:block !important;
}

/* 用户消息 */
.messageStyleRight1{float:right;width:40px;}
.messageStyleRight1P{width:40px;height:40px;border-radius:4px;object-fit:cover;}
.messageStyleRight2{
    position:relative;
    float:right;
    margin-right:10px;
    max-width:75%;
}
.messageStyleRight2T{
    padding:8px 12px;
    background:#95ec69;
    border-radius:4px;
    color:#333;
    word-break:break-all;
}
.messageStyleRight2T img {
    max-width:100% !important;
    height:auto !important;
    border-radius:4px !important;
    display:block !important;
}

/* 气泡箭头 */
.rightArrow {
    width:0;
    height:0;
    border-top:10px solid transparent;
    border-bottom:10px solid transparent;
    border-left:10px solid #95ec69;
    position:absolute;
    top:10px;
    right:-8px;
}
.leftArrow {
    width:0;
    height:0;
    border-top:10px solid transparent;
    border-bottom:10px solid transparent;
    border-right:10px solid #fff;
    position:absolute;
    top:10px;
    left:-8px;
}