
/* ============ 支付宝素材覆盖（旧版 Alichat 预览定位，原样保留） ============ */
.i-n-back{background:url("/images/alipay/i-top-nav-ali.png") no-repeat scroll 0 0!important}
.i-n-user{background:url("/images/alipay/i-n-user-ali.png") no-repeat scroll 0 0!important}
.i-b-rec-text div.i-b-pay span,.i-b-sen-text div.i-b-pay span{background:rgba(0,0,0,0) url("/images/alipay/i-pay-send-ali.png") no-repeat scroll 0 0}
.i-b-rec-text div.i-b-pay span i,.i-b-sen-text div.i-b-pay span i{width:300px;height:78px;background:rgba(0,0,0,0) url("/images/alipay/i-pay-icon-send-ali.png") no-repeat scroll -18px 6px}
.i-b-rec-text div.i-b-pay span em,.i-b-sen-text div.i-b-pay span em{background:none;margin:50px 0 0 100px}
.i-b-rec-text div.i-b-pay span.i-pay-rec i,.i-b-sen-text div.i-b-pay span.i-pay-rec i{background:rgba(0,0,0,0) url("/images/alipay/i-pay-icon-rec-ali.png") no-repeat scroll -18px 6px}
.i-b-sen-text div.i-b-pay span.i-pay-send em,.i-b-sen-text div.i-b-pay span.i-pay-rec em{margin-left:90px}
.i-b-sen-text .i-b-pay span.i-pay-send,.i-b-sen-text .i-b-pay span.i-pay-rec{background:rgba(0,0,0,0) url("/images/alipay/i-pay-rec-ali.png") no-repeat scroll 0 0}
.i-b-we-left{background:rgba(0,0,0,0) url("/images/alipay/i-bottom-ali.png") no-repeat scroll 0 0!important;width:120px}
.i-b-we-mid{background:rgba(0,0,0,0) url("/images/alipay/i-bottom-ali.png") repeat-x scroll 0 -100px!important;left:120px;right:240px}
.i-b-we-right{background:rgba(0,0,0,0) url("/images/alipay/i-bottom-ali.png") no-repeat scroll right 0!important;width:240px}
.i-bottom2 .i-b-we-left{background:rgba(0,0,0,0) url("/images/alipay/i-bottom-ali.png") no-repeat scroll 0 0!important}
.i-bottom2 .i-b-we-mid{background:rgba(0,0,0,0) url("/images/alipay/i-bottom-ali.png") repeat-x scroll 0 -100px!important}
.i-bottom2 .i-b-we-right{background:rgba(0,0,0,0) url("/images/alipay/i-bottom-ali.png") no-repeat scroll right 0!important}
.i-b-sen-text div span{background:#629fef!important;border:1px solid #629fef!important;color:#ffffff!important;float:right!important;margin-left:0!important;margin-right:24px!important}
.i-b-sen-text div i{background:url(/images/alipay/sen-txt-ali-bg.png) right -31px no-repeat!important}
.i-n-name span{color:#FFF}
.a-u-pic-pic{width:80px!important;height:80px!important;min-width:80px!important;max-width:80px!important;min-height:80px!important;max-height:80px!important;background:url(/images/add-dh-pic.png) no-repeat;background-size:100%!important;border:1px dashed #ffd9b8!important;border-radius:10px!important;cursor:pointer;position:relative;display:inline-block!important;vertical-align:middle;box-sizing:border-box!important}
.a-u-pic-show-pic{position:relative;background:#fff}
.a-u-pic-show-pic img{width:80px!important;height:80px!important;vertical-align:top}
.a-u-pic-show-pic input{width:80px!important;height:80px!important;position:absolute;top:0;left:0;z-index:99999999;cursor:pointer;opacity:0}
h6.wx_pic_pos{width:209px;height:209px;position:absolute;top:0;left:0;z-index:999;background:url(/images/alipay/pic_box.png) no-repeat;margin:0;padding:0}
h6.wx_pic_pos2{width:209px;height:209px;position:absolute;top:0;left:-2px;z-index:999;background:url(/images/alipay/pic_box2.png) no-repeat;margin:0;padding:0}
span.wx_pic_diy img{background:#fff none repeat scroll 0 0;height:auto;left:0;position:absolute;top:0;width:209px;height:209px;max-width:auto}
span.wx_pic_diy{width:209px;height:209px;position:relative;border:none;background:none}
.i-body{overflow-y:scroll;bottom:110px}
.i-top{z-index:100}
.iphone{width:640px;height:1690px}
.alichat-preview{width:100%}
.alichat-preview-fit{position:relative;display:flex;justify-content:center;align-items:flex-start}
.alichat-preview-fit #iphone{position:relative!important}
.alichat-preview-fit .phone-wrap{position:static!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;width:auto!important;height:auto!important;transform:none!important;-webkit-transform:none!important;overflow:visible!important}
#iphone{width:640px!important;height:1690px!important}
/* ============ 页面布局（套主体新样式） ============ */
.alichat-wrap{display:flex;gap:22px;flex-wrap:wrap;align-items:flex-start;justify-content:space-between}
.alichat-left{flex:1 1 380px;min-width:300px;max-width:540px}
.alichat-right{flex:1 1 420px;min-width:320px;display:flex;justify-content:center}
.alichat-card{background:#fff;border:1px solid #e3e6ea;border-radius:12px;padding:18px;box-shadow:0 4px 16px rgba(15,23,42,.05)}
.alichat-card+.alichat-card{margin-top:16px}
.alichat-tabs{display:flex;gap:8px;margin:0 0 16px;padding:0;list-style:none;flex-wrap:wrap}
.alichat-tab{border:1px solid #d3d9e2;background:#fff;color:#333;border-radius:8px;padding:8px 18px;font-size:14px;cursor:pointer;transition:.2s;font-weight:500}
.alichat-tab:hover{border-color:#ff6500;color:#ff6500}
.alichat-tab.active{background:linear-gradient(135deg,#ff6500,#ff8627);color:#fff;border-color:transparent}
.alichat-pane{display:none}
.alichat-pane.active{display:block}
.alichat-row{display:flex;align-items:center;gap:10px;margin:10px 0;flex-wrap:wrap;font-size:14px;color:#333}
.alichat-row>span{flex:0 0 86px;color:#5b6772;font-size:14px;text-align:right}
.alichat-row input[type=text],.alichat-row input[type=number],.alichat-row select,.alichat-row textarea{flex:1 1 180px;min-width:140px;background:#fff;border:1px solid #d3d9e2;border-radius:8px;padding:8px 12px;font-size:14px;color:#333;outline:none;box-sizing:border-box;transition:.2s}
.alichat-row input:focus,.alichat-row select:focus,.alichat-row textarea:focus{border-color:#ff6500}
.alichat-row textarea{resize:vertical;min-height:64px}
.alichat-row label{display:inline-flex;align-items:center;gap:4px;font-size:14px;color:#333;cursor:pointer;margin:0 10px 0 0}
.alichat-btn{border-radius:8px;padding:8px 16px;font-size:14px;cursor:pointer;border:1px solid #d3d9e2;background:#fff;color:#333;transition:.2s;font-weight:500;display:inline-block;text-decoration:none;line-height:1.5}
.alichat-btn:hover{border-color:#ff6500;color:#ff6500;text-decoration:none}
.alichat-btn-primary{background:linear-gradient(135deg,#ff6500,#ff8627);border-color:transparent;color:#fff}
.alichat-btn-primary:hover{opacity:.9;color:#fff;border-color:transparent}
.alichat-btn-green{background:linear-gradient(135deg,#3eb575,#5fd08e);border-color:transparent;color:#fff}
.alichat-btn-green:hover{opacity:.9;color:#fff;border-color:transparent}
.alichat-btn-danger{color:#e5484d;border-color:#f3c1c3}
.alichat-btn-danger:hover{background:#fdf0f0;border-color:#e5484d;color:#e5484d}
.alichat-btn-sm{padding:6px 12px;font-size:13px}
.alichat-avatar{width:70px;height:70px;flex:0 0 auto;border-radius:10px;background:url(/images/add-ps-pic.png) no-repeat center/100%;border:1px dashed #ffd9b8;overflow:hidden;cursor:pointer;position:relative}
.alichat-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.alichat-avatar input{position:absolute;left:0;top:0;width:100%;height:100%;opacity:0;cursor:pointer}
/* ===== 上传框：覆盖主体 .a-u-pic 系列，统一 80×80 美观虚线框 ===== */
.alichat-user .a-u-pic-show,
.alichat-row .a-u-pic-bodybg{
  width:80px!important;height:80px!important;float:none!important;display:inline-block!important;
  vertical-align:middle!important;margin:0 10px 0 0!important;
  background:url(/images/add-ps-pic.png) no-repeat center/100%!important;
  border:1px dashed #ffd9b8!important;border-radius:10px!important;
  position:relative!important;overflow:hidden!important;
}
/* 头像上传框用加号图标 */
.alichat-user .a-u-pic-show{
  background:url(/images/2019/add-pic.png) no-repeat center/100%!important;
}
/* 背景图片行：上传框固定 80×80，与头像/图片上传框一致，删除背景跟随其后 */
.alichat-bg-row{justify-content:flex-start;flex-wrap:nowrap;align-items:center}
.alichat-bg-row>span:first-child{flex:0 0 86px}
.alichat-bg-row .a-u-pic-bodybg{flex:0 0 auto;margin:0 10px 0 0!important;background:url(/images/add-ps-pic.png) no-repeat center/100%!important}
.alichat-bg-row .body_bg_del{flex:0 0 auto;margin-left:4px}
.alichat-user .a-u-pic-show img,
.alichat-row .a-u-pic-bodybg img{width:100%!important;height:100%!important;object-fit:cover!important;vertical-align:top!important}
.alichat-user .a-u-pic-show input,
.alichat-row .a-u-pic-bodybg input{width:100%!important;height:100%!important;position:absolute!important;left:0!important;top:0!important;opacity:0!important;cursor:pointer!important;z-index:9!important}
.alichat-user{background:#f8fafc;border:1px solid #e3e6ea;border-radius:10px;padding:14px;margin-bottom:14px}
.alichat-user-head{display:flex;align-items:center;gap:14px;margin-bottom:10px;flex-wrap:wrap}
.alichat-user-btns{display:flex;gap:8px;flex-wrap:wrap}
.alichat-dialog-btns{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.alichat-hint{font-size:12px;color:#999;margin:4px 0 0 96px;line-height:1.7}
.alichat-actions{display:flex;align-items:center;gap:16px;margin:6px 0 8px;flex-wrap:wrap}
.alichat-loading{display:none;font-size:14px;color:#ff6500;background:#fff3e6;border:1px solid #ffd9b8;border-radius:8px;padding:9px 18px}
.alichat-loading:before{content:"";display:inline-block;width:14px;height:14px;border:2px solid #ff6500;border-top-color:transparent;border-radius:50%;vertical-align:-2px;margin-right:8px;animation:alichatSpin .8s linear infinite}
@keyframes alichatSpin{to{transform:rotate(360deg)}}
.alichat-sec{border-top:1px dashed #e3e6ea;margin-top:14px;padding-top:14px}
/* 电量滑块 */
.alichat-bar{display:inline-flex;align-items:center;gap:8px}
.alichat-bar input[type=range]{width:200px;accent-color:#ff6500}
.alichat-bar-btn{width:28px;height:28px;line-height:26px;text-align:center;border:1px solid #d3d9e2;border-radius:50%;background:#fff;color:#333;cursor:pointer;user-select:none;font-size:16px}
.alichat-bar-btn:hover{border-color:#ff6500;color:#ff6500}
/* 生成按钮 */
.alichat-make{margin-top:18px}
.alichat-make .alichat-btn{width:100%;padding:12px 20px;font-size:16px;border-radius:10px}
/* 预览区 */
.alichat-preview{background:#fff;border:1px solid #e3e6ea;border-radius:12px;padding:20px;box-shadow:0 4px 16px rgba(15,23,42,.05)}
.alichat-preview-fit{overflow:hidden}
/* 表情面板 */
.alichat-emoji{position:fixed;z-index:9998;background:#fff;border:1px solid #e3e6ea;border-radius:10px;box-shadow:0 12px 32px rgba(15,23,42,.15);padding:10px;display:none}
.alichat-emoji-title{font-size:12px;color:#999;margin-bottom:8px}
.alichat-emoji-list{display:grid;grid-template-columns:repeat(12,1fr);gap:4px;max-width:340px}
.alichat-emoji-list img{width:24px;height:24px;cursor:pointer;transition:.15s}
.alichat-emoji-list img:hover{transform:scale(1.25)}
/* ============ 生成结果弹窗（主体样式：居中卡片+下载+关闭） ============ */
.alichat-modal{position:fixed;left:0;top:0;width:100%;height:100%;background:rgba(0,0,0,.5);z-index:100001!important;display:none;align-items:center;justify-content:center}
.alichat-modal.show{display:flex}
.alichat-result-box{max-width:560px;width:auto;min-width:320px;max-height:calc(100vh - 12px);padding:0;background:#fff;border-radius:12px;box-shadow:0 18px 50px rgba(15,23,42,.30);overflow:hidden;display:flex;flex-direction:column}
.alichat-result-head{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #e6e9ef;border-radius:12px 12px 0 0;background:linear-gradient(135deg,#f7f9fc,#eef1f7);flex:0 0 auto}
.alichat-result-head h5{margin:0;font-size:17px;font-weight:600;color:#1f2d3d}
.alichat-result-close{background:none;border:none;font-size:22px;color:#7b8591;background:rgba(0,0,0,.05);border-radius:50%;width:32px;height:32px;line-height:30px;text-align:center;cursor:pointer;padding:0}
.alichat-result-close:hover{background:rgba(0,0,0,.10);color:#1f2d3d}
.alichat-result-body{padding:18px;text-align:center;overflow:auto;flex:1 1 auto}
.alichat-result-img{max-width:100%;max-height:calc(100vh - 230px);min-height:200px;width:auto;height:auto;border:1px solid #e8ebf0;border-radius:10px;background:#f5f6f8;padding:6px;box-sizing:border-box;display:block;margin:0 auto}
.alichat-result-tip{margin:8px 0 0;color:#7b8591;font-size:12px}
.alichat-result-foot{display:flex;justify-content:flex-end;gap:10px;padding:14px 20px;border-top:1px solid #e6e9ef;border-radius:0 0 12px 12px;background:#f7f9fc;flex:0 0 auto}
.alichat-result-download{background:#3b99ff;border:none;color:#fff;border-radius:8px;padding:8px 24px;font-size:14px;line-height:1.5;text-decoration:none;display:inline-block;cursor:pointer}
.alichat-result-download:hover{background:#2f8bef;color:#fff;text-decoration:none}
.alichat-result-cancel{background:#f3f5f9;border:1px solid #e3e6ea;color:#5b6772;border-radius:8px;padding:8px 24px;font-size:14px;line-height:1.5;cursor:pointer}
.alichat-result-cancel:hover{background:#e7ebf1;color:#1f2d3d}
/* ============ 暗黑模式 ============ */
.night .alichat-card{background:#222630;border-color:#3a3f48;box-shadow:none}
.night .alichat-preview{background:#222630;border-color:#3a3f48;box-shadow:none}
.night .alichat-tab{background:#2b2f36;border-color:#3a3f48;color:#b6bcc6}
.night .alichat-tab:hover{border-color:#ff8627;color:#ff8627}
.night .alichat-tab.active{background:linear-gradient(135deg,#ff6500,#ff8627);color:#fff}
.night .alichat-row{color:#b6bcc6}
.night .alichat-row>span{color:#9aa2ad}
.night .alichat-row input[type=text],.night .alichat-row input[type=number],.night .alichat-row select,.night .alichat-row textarea{background:#1a1d24;border-color:#3a3f48;color:#e6e8eb}
.night .alichat-row input:focus,.night .alichat-row select:focus,.night .alichat-row textarea:focus{border-color:#ff8627}
.night .alichat-row label{color:#9aa2ad}
.night .alichat-btn{background:#2b2f36;border-color:#3a3f48;color:#b6bcc6}
.night .alichat-btn:hover{border-color:#ff8627;color:#ff8627}
.night .alichat-user{background:#1a1d24;border-color:#3a3f48}
.night .alichat-hint{color:#8f949b}
.night .alichat-emoji{background:#222630;border-color:#3a3f48}
.night .alichat-emoji-title{color:#9aa2ad}
.night .alichat-result-box{background:#222630;border-color:#3a3f48}
.night .alichat-result-head{background:#2b2f36;border-bottom-color:#3a3f48}
.night .alichat-result-head h5{color:#e6e8eb}
.night .alichat-result-close{color:#9aa2ad;background:rgba(255,255,255,.08)}
.night .alichat-result-close:hover{background:rgba(255,255,255,.15);color:#fff}
.night .alichat-result-img{border-color:#3a3f48;background:#1a1d24}
.night .alichat-result-tip{color:#9aa2ad}
.night .alichat-result-foot{background:#20242c;border-top-color:#3a3f48}
.night .alichat-result-cancel{background:#2b2f36;border-color:#3a3f48;color:#b6bcc6}
.night .alichat-result-cancel:hover{background:#3a3f48;color:#fff}
