
/* ===== 暗黑模式适配（body.night）===== */
.night .sms-set-panel { background:#222630 !important; border-color:#3a3f48 !important; }
.night .msg-edit-block { background:#1a1d24 !important; border-color:#3a3f48 !important; }
.night .sms-preview-card { background:#2a2f3a !important; }
.night .sms-status-bar, .night .sms-conv-header, .night .sms-input-bar { background:#222630 !important; border-color:#3a3f48 !important; }
.night .bubble-other { background:#2a2f3a !important; color:#e6e8eb !important; border-color:#3a3f48 !important; }
.night .sms-area, .night .send-tip { color:#9aa2ad !important; }
.night .pop-pic-content { background:#222630 !important; }
.night .tips { color:#e6e8eb !important; }
.night .sms-set-panel input, .night .sms-set-panel select, .night .sms-set-panel textarea { background:#1a1d24 !important; color:#e6e8eb !important; border-color:#3a3f48 !important; }
.night .sms-set-panel button { border-color:#3a3f48 !important; }


*{box-sizing:border-box;}
/* 整体容器左右布局 */
.sms-full-editor{max-width:1200px;margin:24px auto;padding:16px;font-family:system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;display:grid;grid-template-columns: 545px minmax(0,1fr);gap:24px;}
/* 右侧预览卡片：演示时保留黑色手机边框；增加class用于dom-to-image捕获时移除边框 */
.sms-preview-card{width:390px;margin:0 auto;border-radius:22px;overflow:hidden;border:12px solid #222;background:#f5f5f7;user-select:none;}
.sms-preview-card.export-no-border{
    border:none !important;
}
/* 手机顶部状态栏 */
.sms-status-bar{background:#fff;padding:6px 14px;display:flex;justify-content:space-between;align-items:center;font-size:14px;font-weight:500;}
.status-left{}
.status-right{display:flex;gap:6px;align-items:center;}
/* 信号、电池图标样式 */
.status-icon{width:18px;height:18px;display:inline-block;vertical-align:middle;}
/* 短信会话头部【新增返回箭头、电话、更多三点】 */
.sms-conv-header{background:#fff;padding:12px 16px;border-top:1px solid #eee;border-bottom:1px solid #e8e8e8;display:flex;align-items:center;gap:10px;}
.sms-back-icon{font-size:22px;color:#222;cursor:default;}
.sms-header-info{flex:1;}
.sms-phone{font-size:19px;font-weight:500;}
.sms-area{color:#666;font-size:14px;margin-top:4px;}
.sms-header-actions{display:flex;gap:18px;font-size:20px;color:#222;}
/* 聊天消息区域 */
.sms-chat-wrap{padding:16px;min-height:300px;}
.msg-time-line{text-align:center;color:#999;font-size:12px;margin:8px 0;}
.msg-item{margin-bottom:20px;}
.msg-me{display:flex;justify-content:flex-end;flex-direction:column;align-items:flex-end;}
.msg-other{display:flex;justify-content:flex-start;}
/* 我方气泡：全圆角，去掉原来的尖角 */
.bubble-me{background:#27c66e;color:#fff;padding:10px 14px;border-radius:18px;max-width:76%;word-break:break-all;position:relative;}
/* 已发送放在气泡外面下方 */
.send-tip{font-size:11px;color:#666;opacity:0.8;margin-top:3px;text-align:right;}
.bubble-other{background:#ffffff;color:#222;padding:10px 14px;border-radius:18px;max-width:76%;word-break:break-all;border:1px solid #e4e4e4;}
/* 【新增底部短信输入栏，复刻截图底部】 */
.sms-input-bar{background:#fff;padding:10px 14px;display:flex;align-items:center;gap:10px;border-top:1px solid #e4e4e4;}
.sms-add-icon{font-size:24px;color:#222;}
.sms-input-box{flex:1;border:1px solid #ddd;border-radius:22px;padding:8px 14px;font-size:16px;outline:none;}
.sms-send-icon{font-size:22px;color:#222;}
/* 左侧控制面板样式 */
.sms-set-panel{padding:16px;background:#fafafa;border-radius:12px;border:1px solid #eee;height:fit-content;}
.panel-title{font-size:16px;font-weight:bold;margin-bottom:12px;}
.line-item{margin:9px 0;}
input,textarea,select{padding:7px;font-size:14px;border:1px solid #ccc;border-radius:5px;}
.btn{padding:8px 14px;border:none;border-radius:6px;cursor:pointer;margin:0 4px;color:#fff;font-size:14px;}
.btn-add{background:#006edc;}
.btn-del{background:#d63031;}
.btn-gen{background:#28a745;}
.msg-edit-block{border:1px solid #ddd;padding:12px;margin:12px 0;border-radius:8px;background:#fff;}
/* 图片弹窗样式【修复图片不居中问题，图片无黑色边框，flex居中布局，无滚动条】 */
.pop-pic {
    position: fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.85);display:none;justify-content:center;align-items:center;z-index:999999;padding:20px;
}
.pop-pic-content {
	background:#fff;padding:25px;border-radius:12px;max-width:90%;width:100%;max-width:600px;box-shadow:0 10px 30px rgba(0,0,0,0.2);position:relative;
    max-height:90vh;
    display:flex;
    flex-direction:column;
    box-sizing:border-box;
}
.pop-pic-content img {
    max-width:100%;
    max-height:calc(90vh - 140px);
    border-radius:8px;
    border:none;
    object-fit:contain;
    /* 新增居中 */
    display:block;
    margin:0 auto;
}
.tips {
	text-align:center;margin-top:20px;color:#333;
    flex-shrink:0;
}
.tips p {margin:8px 0;}
.tips a {
	display:inline-block;margin-top:15px;padding:8px 20px;background:#3b99ff;color:#fff;border-radius:6px;text-decoration:none;transition:background-color 0.2s;
}
.tips a:hover {background:#2588e7;}
#savetipsbox {
	display:none;position:absolute;background:rgba(0,0,0,0.7);border-radius:10px;padding:15px 20px;min-width:180px;left:50%;top:30%;transform:translate(-50%,-50%);z-index:10001;text-align:center;
}
#savetipsbox span {display:block;color:#fff;font-size:16px;line-height:24px;}
.savetip {
	width:50px;height:50px;display:block;margin:0 auto 10px;background:url('/images/finger.png') no-repeat;background-size:50px 200px;background-position:0 0;animation:savetip 1s infinite steps(1) 0s forwards;
}
@keyframes savetip {	0%,100%{background-position-y:0;}25%{background-position-y:-50px;}50%{background-position-y:-100px;}75%{background-position-y:-150px;}
}
/* 移动端适配 */
@media(max-width:900px){
    .sms-full-editor{grid-template-columns:1fr;}
    .sms-preview-card{width:100%;border-width:8px;}
}

/* 暗黑模式适配 */
.night .sms-preview-card { background: #1a1a1a; }
.night .sms-status-bar { background: #2a2a2a; color: #ddd; }
.night .sms-conv-header { background: #2a2a2a; border-color: #444; }
.night .sms-input-area { background: #2a2a2a; }
.night .sms-full-editor { color: #ddd; }
.night .form-control, .night input, .night textarea { background: #333; color: #ddd; border-color: #555; }
