
/* ============ 新版面板样式 ============ */
.wxdh-wrap{width:100%;margin:0 auto;padding:4px 0 20px}
.wxdh-layout{display:flex;gap:20px;align-items:flex-start;flex-wrap:wrap}
.wxdh-panel{flex:1 1 480px;min-width:340px;max-width:720px}
.wxdh-preview{flex:1 1 460px;min-width:320px;max-width:1200px}
.wxdh-card{background:#fff;border:1px solid #e3e6ea;border-radius:12px;box-shadow:0 8px 24px rgba(15,23,42,.06);padding:20px 24px;margin-bottom:16px}
.wxdh-tabs{display:flex;gap:8px;margin-bottom:16px}
.wxdh-tab{border:1px solid #d3d9e2;background:#fff;color:#475569;border-radius:8px;padding:9px 20px;font-size:14px;cursor:pointer;transition:.2s;font-weight:500}
.wxdh-tab:hover{border-color:#ff6500;color:#ff6500}
.wxdh-tab.active{background:linear-gradient(135deg,#ff6500,#ff8627);border-color:transparent;color:#fff}
.wxdh-tabpane{display:none}
.wxdh-tabpane.active{display:block}
.wxdh-row{display:flex;align-items:center;gap:8px;margin-bottom:14px;flex-wrap:wrap;font-size:14px;color:#4b5563}
.wxdh-row>span:first-child{flex:0 0 auto;width:88px;color:#555;text-align:left}
.wxdh-row input[type=text],.wxdh-row input[type=number],.wxdh-row select,.wxdh-row textarea{border:1px solid #d3d9e2;border-radius:8px;padding:8px 12px;font-size:14px;color:#333;background:#fff;transition:.2s}
.wxdh-row .slt-year,.wxdh-row .slt-month,.wxdh-row .slt-day,.wxdh-row .slt-xinqi,.wxdh-row .slt-shi,.wxdh-row .slt-hour,.wxdh-row .slt-minite,.wxdh-row .slt-p-hour,.wxdh-row .slt-p-minite{flex:0 0 auto;padding:8px 6px;width:64px;text-align:center}
.wxdh-row input[type=text]:focus,.wxdh-row input[type=number]:focus,.wxdh-row select:focus,.wxdh-row textarea:focus{outline:none;border-color:#ff6500;box-shadow:0 0 0 2px rgba(255,101,0,.15)}
.wxdh-row input[type=text]{flex:1;min-width:120px}
.wxdh-row input[type=number]{width:120px}
.wxdh-row select{cursor:pointer}
.wxdh-row textarea{width:100%;min-height:64px;resize:vertical;line-height:1.6}
.wxdh-row textarea.a-u-content{flex:1;width:auto;min-width:150px}
.wxdh-row label{display:inline-flex;align-items:center;gap:4px;font-size:13px;color:#555;cursor:pointer;margin-right:10px}
.wxdh-row label input{margin:0}
.wxdh-range{flex:1;min-width:120px;accent-color:#ff6500;cursor:pointer}
.wxdh-sec{border-top:1px dashed #e3e6ea;margin:18px 0 16px;padding-top:16px}
.wxdh-sec-t{font-size:14px;font-weight:600;color:#1f2937;margin-bottom:12px}
.wxdh-hint{font-size:12px;color:#999;margin:4px 0 0 92px;line-height:1.7}
.wxdh-btn{border-radius:8px;padding:9px 18px;font-size:14px;cursor:pointer;border:1px solid #d3d9e2;background:#fff;color:#333;transition:.2s;font-weight:500;display:inline-block;text-decoration:none}
.wxdh-btn:hover{border-color:#ff6500;color:#ff6500;text-decoration:none}
.wxdh-btn-primary{background:linear-gradient(135deg,#ff6500,#ff8627);border-color:transparent;color:#fff}
.wxdh-btn-primary:hover{opacity:.9;color:#fff;border-color:transparent}
.wxdh-btn-danger{color:#e5484d;border-color:#f3c1c3}
.wxdh-btn-danger:hover{background:#fdf0f0;border-color:#e5484d;color:#e5484d}
.wxdh-btn-green{background:linear-gradient(135deg,#3eb575,#5fd08e);border-color:transparent;color:#fff}
.wxdh-btn-green:hover{opacity:.9;color:#fff;border-color:transparent}
.wxdh-btn-unread{background:#fff0f0;border-color:#f56c6c;color:#f56c6c}
.wxdh-btn-unread:hover{background:#ffe4e4;border-color:#f56c6c;color:#f56c6c}
.wxdh-actions{display:flex;align-items:center;gap:16px;margin:6px 0 8px;flex-wrap:wrap}
.wxdh-loading{display:none;font-size:14px;color:#ff6500;background:#fff3e6;border:1px solid #ffd9b8;border-radius:8px;padding:9px 18px}
.wxdh-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:wxdhSpin .8s linear infinite}
@keyframes wxdhSpin{to{transform:rotate(360deg)}}
.wxdh-user{background:#f8fafc;border:1px solid #e3e6ea;border-radius:10px;padding:14px;margin-bottom:14px}
.wxdh-user-head{display:flex;align-items:center;gap:14px;margin-bottom:10px}
.wxdh-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}
.wxdh-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.wxdh-avatar input{position:absolute;left:0;top:0;width:100%;height:100%;opacity:0;cursor:pointer}
.wxdh-user-btns{display:flex;gap:8px;flex-wrap:wrap}
.wxdh-dialog-btns{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.wxdh-tip{font-size:12px;color:#999;margin-top:12px;line-height:1.8}
.wxdh-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}
.wxdh-modal.show{display:flex}
.wxdh-modal-box{background:#fff;border:1px solid #e3e6ea;border-radius:12px;box-shadow:0 18px 50px rgba(15,23,42,.30);padding:18px;max-width:660px;width:92%;max-height:100vh;overflow:auto;position:relative}
.wxdh-modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.wxdh-modal-head b{font-size:16px;color:#1f2937}
.wxdh-modal-close{cursor:pointer;font-size:20px;color:#999;line-height:1;padding:2px 6px;border-radius:6px}
.wxdh-modal-close:hover{color:#e5484d;background:#fdf0f0}
.wxdh-bglist{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px}
.wxdh-bglist img{width:100%;border-radius:8px;cursor:pointer;border:2px solid transparent;transition:.2s;display:block}
.wxdh-bglist img:hover{border-color:#ff6500}
.wxdh-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}
.wxdh-emoji .wxdh-emoji-title{font-size:12px;color:#999;margin-bottom:8px}
.wxdh-emoji-list{display:grid;grid-template-columns:repeat(12,1fr);gap:4px;max-width:340px}
.wxdh-emoji-list img{width:24px;height:24px;cursor:pointer;transition:.15s}
.wxdh-emoji-list img:hover{transform:scale(1.25)}
/* ============ 生成结果弹层（参考 /biaoqing/ 卡片弹窗样式：居中卡片+下载图片+关闭） ============ */
.wxdh-modal-result{background:rgba(0,0,0,.5)}
.wxdh-result-box{max-width:560px;width:auto;min-width:320px;max-height:calc(100vh - 12px);padding:0}
.wxdh-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)}
.wxdh-result-head h5{margin:0;font-size:17px;font-weight:600;color:#1f2d3d}
.wxdh-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}
.wxdh-result-close:hover{background:rgba(0,0,0,.10);color:#1f2d3d}
.wxdh-result-body{padding:18px;text-align:center}
.wxdh-result-img{max-width:100%;max-height:calc(100vh - 230px);min-height:280px;width:auto;height:auto;display:block;margin:0 auto}
.wxdh-result-tip{margin:8px 0 0;color:#7b8591;font-size:12px}
.wxdh-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}
.wxdh-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}
.wxdh-result-download:hover{background:#2f8bef;color:#fff;text-decoration:none}
.wxdh-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}
.wxdh-result-cancel:hover{background:#e7ebf1;color:#1f2d3d}
.night .wxdh-result-head{background:#2b2f36;border-bottom-color:#3a3f48}
.night .wxdh-result-head h5{color:#e6e8eb}
.night .wxdh-result-close{color:#9aa2ad;background:rgba(255,255,255,.08)}
.night .wxdh-result-close:hover{background:rgba(255,255,255,.15);color:#fff}
.night .wxdh-result-img{background:transparent}
.night .wxdh-result-tip{color:#9aa2ad}
.night .wxdh-result-foot{background:#20242c;border-top-color:#3a3f48}
.night .wxdh-result-download{background:linear-gradient(135deg,#ff6500,#ff8627)}
.night .wxdh-result-cancel{background:#2b2f36;border-color:#3a3f48;color:#b6bcc6}
.night .wxdh-result-cancel:hover{background:#3a3f48;color:#fff}
/* ============ 手机界面（旧版 common-x 基础定位 + 页面覆盖，原样还原） ============ */
.iphone{width:828px;height:1792px;background-color:#ededed;color:#000;background-repeat:no-repeat;background-size:100%;font-family:Arial,"微软雅黑";position:relative}
.i-top{width:100%;position:absolute;top:0;left:0;background:#ededed;overflow:hidden;z-index:100;height:177px;padding-top:28px;background:url(/images/iphonex/wexin-x-top.png) top left}
.i-top-elm{float:left;margin-right:5px;height:40px}
.i-top-elm-r{float:right;height:40px}
.i-top-time{position:static;margin-left:0;color:#000;line-height:43px;text-align:right;font-size:34px;font-weight:bold;width:150px}
.i-top-berry,.i-top-berry2{width:53px;height:25px;background:url(/images/iphonex/dc.png) no-repeat;margin-top:9px;margin-right:34px;position:relative}
.i-top-berry i{position:absolute;height:20px;width:44px;bottom:2px;left:1px;padding:2px;padding-left:3px}
.i-top-berry i em{display:block;height:100%;width:50%;background:#fff}
.i-top-berry2 i em{background:#4cd964 !important}
.i-top-berry-num{color:#000;font-size:24px;line-height:44px;margin-right:14px}
.i-signal{width:38px;height:25px;background:url(/images/2019/i-top-signal5.png) no-repeat;background-size:100%;margin-top:9px;margin-right:10px}
.i-signal1{background:url(/images/2019/i-top-signal1.png) no-repeat;background-size:100%}
.i-signal2{background:url(/images/2019/i-top-signal2.png) no-repeat;background-size:100%}
.i-signal3{background:url(/images/2019/i-top-signal3.png) no-repeat;background-size:100%}
.i-signal4{background:url(/images/2019/i-top-signal4.png) no-repeat;background-size:100%}
.i-signal5{background:url(/images/2019/i-top-signal5.png) no-repeat;background-size:100%}
.i-network{width:33px;height:24px;background:url(/images/iphonex/wifi.png) no-repeat;background-size:100%;margin-top:9px;margin-right:12px}
.i-n-wifi{background:url(/images/iphonex/wifi.png) no-repeat;background-size:100%}
.i-n-4g{background:url(/images/2019/i-top-4g.png) no-repeat;background-size:100%}
.i-n-5g{background:url(/images/2019/i-top-5g.png) no-repeat;background-size:100%}
.i-nav{clear:both;height:88px;text-align:center;color:#181818;line-height:88px;font-size:38px;position:relative;border:none;top:20px}
.i-n-back{position:absolute;left:0;top:0;width:60px;height:100%;background:none}
.i-n-name span,.i-n-name i{display:inline-block}
.i-n-name i{width:30px;height:85px;background:url(/images/2019/i-n-era.png) center no-repeat;margin-left:5px}
.i-n-user{width:90px;height:88px;position:absolute;right:0;top:0}
.i-n-user-group{width:90px;height:88px;position:absolute;right:0;top:0}
.i-n-count{position:absolute;left:63px;top:20px;color:#181818;font-family:Arial,"微软雅黑";font-size:30px;height:48px;min-width:48px;line-height:48px;display:inline-block;padding:2px 13px;border-radius:24px;background-color:#d5d5d5;white-space:nowrap;text-align:center;text-shadow:0 -1px 0 rgba(0,0,0,0.25)}
.i-body{position:absolute;width:100%;top:177px;bottom:180px;left:0;background-size:100% 100%;background-repeat:no-repeat;background-position:center;overflow-y:scroll}
.i-body::-webkit-scrollbar{display:none}
.i-bottom{position:absolute;width:100%;height:180px;bottom:0;left:0}
.i-bottom-wechat{height:180px;z-index:100;background:url(/images/iphonex/wexin-x-bottom.png) no-repeat}
.i-b-time{margin-top:20px;display:block;position:relative;text-align:center}
.i-b-time span{border-radius:10px;line-height:40px;display:inline-block;padding:6px 16px;color:#9a9a9a;font-size:30px;max-width:50%;background:none}
.i-b-rec-text,.i-b-sen-text{margin:26px 25px 0 25px;position:relative;display:block;overflow:hidden}
.i-b-rec-text:after,.i-b-sen-text:after{content:"";display:block;height:0;clear:both;visibility:hidden}
.i-b-rec-text>img,.i-b-sen-text>img{position:absolute;width:84px;height:84px;left:0;top:0;background:#fff;border-radius:10px;float:left;margin-right:20px}
.i-b-sen-text>img{left:auto;right:0;float:right;margin-right:0;margin-left:20px}
.i-b-rec-text img.qq_emoji,.i-b-sen-text img.qq_emoji{position:static;width:48px;height:48px;vertical-align:bottom;background:none}
.i-b-rec-text div,.i-b-sen-text div{position:relative;margin-left:82px;margin-right:50px;text-align:initial}
.i-b-sen-text div{margin-left:50px;margin-right:82px}
.i-b-rec-text div p,.i-b-sen-text div p{font-size:26px;color:#999;padding:0;margin:0;padding-left:30px;display:none;position:absolute;top:-40px;left:0;margin-bottom:-9px;width:100%}
.i-b-sen-text div p{text-align:right;padding:0;padding-right:30px}
.i-b-rec-text div>span>i,.i-b-sen-text div>span>i{position:absolute;width:24px;height:24px;left:-24px;top:27px;background:url(/images/2019/rec-txt-bg.png) 1px -31px no-repeat}
.i-b-sen-text div>span>i{left:auto;right:-20px;background:url(/images/2019/sen-txt-bg.png) right -32px no-repeat}
.i-b-rec-text div>span,.i-b-sen-text div>span{float:left;min-height:84px;min-width:96px;margin-left:22px;font-size:34px;border:1px #fff solid;background:#fff;border-radius:10px;position:relative;max-width:92%}
.i-b-sen-text div>span{background:#95ec69;border-color:#95ec69;float:right;margin-left:0;margin-right:25px}
.i-b-rec-text div>span em,.i-b-sen-text div>span em{font-style:normal;padding:20px 30px;display:block;word-wrap:break-word;word-break:break-all;line-height:1.4}
.i-b-rec-text div.i-b-pay2 span,.i-b-sen-text div.i-b-pay2 span{background:url(/images/weixin/i-pay-send-2.png) no-repeat left;background-size:100%;width:429px;height:162px;border:none;margin-left:10px}
.i-b-sen-text div.i-b-pay2 span.i-pay-send,.i-b-sen-text div.i-b-pay2 span.i-pay-rec{background:url(/images/weixin/i-pay-rec-2.png) no-repeat 100%;margin-right:10px;background-size:100%}
.i-b-rec-text div.i-b-pay2 span em,.i-b-sen-text div.i-b-pay2 span em{position:absolute;color:#fff;margin:-3px 0 0 110px;font-size:36px;padding-left:23px;background:url(/images/weixin/i-pay-money-2.png) 0 31px no-repeat}
.i-b-sen-text div.i-b-pay2 span.i-pay-send em,.i-b-sen-text div.i-b-pay2 span.i-pay-rec em{margin-left:124px;padding-left:25px}
.i-b-rec-text div.i-b-pay2 span i,.i-b-sen-text div.i-b-pay2 span i{width:260px;height:72px;background:url(/images/weixin/i-pay-icon-send-2.png) no-repeat left;left:28px;top:23px}
.i-b-sen-text div.i-b-pay2 span.i-pay-send i,.i-b-sen-text div.i-b-pay2 span.i-pay-rec i{left:38px}
.i-b-rec-text .i-b-pay2 .i-b-nick2,.i-b-sen-text .i-b-pay2 .i-b-nick2{display:block;position:absolute;z-index:100;left:120px;top:61px;color:#fddfc0;font-size:20px}
.i-pay-rec .i-b-nick2{left:97px;top:61px}
.i-b-pay2 p.i-b-nick2{padding-left:0}
.i-b-sen-text .i-b-pay2 .i-b-nick2{right:0;left:auto;text-align:left;overflow:hidden;padding-left:116px;height:29px;top:63px}
.i-b-rec-text div.i-b-voice>span,.i-b-sen-text div.i-b-voice>span{display:flex;align-items:center;justify-content:flex-start;flex-wrap:nowrap}
.i-b-sen-text div.i-b-voice>span{justify-content:flex-end;flex-direction:row-reverse}
.i-b-rec-text div.i-b-voice b,.i-b-sen-text div.i-b-voice b{position:relative;flex:0 0 auto;width:20px;height:20px;margin:0 12px 0 16px;background:url(/images/2019/rec-record.png) no-repeat center;background-size:100% 100%}
.i-b-sen-text div.i-b-voice b{margin:0 16px 0 12px;background:url(/images/2019/sen-record.png) no-repeat center;background-size:100% 100%}
.i-b-rec-text div.i-b-voice em,.i-b-sen-text div.i-b-voice em{position:relative;flex:0 0 auto;color:#191919;font-size:30px;font-style:normal;padding:0 2px}
.i-b-sen-text div.i-b-voice em{color:#fff}
.i-b-rec-text div.i-b-voice>span.unread::after{content:"";position:absolute;right:-26px;top:50%;margin-top:-7px;width:14px;height:14px;border-radius:50%;background:#fa5151;z-index:12}
.wx_pic_diy img{max-width:100%;max-height:400px;border-radius:5px;display:block}
.wx_pic_diy img+img{margin-top:6px}
.msg-del{position:absolute;width:30px;height:30px;background:url(/images/2019/msg-del.png) no-repeat;text-indent:-999999px;left:20px;top:5px;cursor:pointer;text-decoration:none;z-index:200;display:none}
.iphone-preview .msg-del{display:block}
.i-b-rec-text .msg-del{right:-50px;left:auto;z-index:100}
.i-b-sen-text .msg-del{left:-50px;z-index:100}
.msg-del:hover{text-decoration:none;border:none}
.iphone-preview{transform:scale(.82);transform-origin:top left;margin-bottom:-240px;box-shadow:0 20px 50px rgba(15,23,42,.25);border-radius:34px}
.wxdh-preview-scroll{overflow:visible;padding:0 60px 8px 0}
.wxdh-preview-fit{overflow:visible;max-width:828px}
/* ============ 暗黑模式 ============ */
.night .wxdh-card{background:#222630;border-color:#3a3f48;box-shadow:none}
.night .wxdh-tab{background:#2b2f36;border-color:#3a3f48;color:#b6bcc6}
.night .i-b-time span{color:#8f949b}
.night .wxdh-tab:hover{border-color:#ff8627;color:#ff8627}
.night .wxdh-tab.active{background:linear-gradient(135deg,#ff6500,#ff8627);color:#fff}
.night .wxdh-row{color:#b6bcc6}
.night .wxdh-row>span{color:#9aa2ad}
.night .wxdh-row input[type=text],.night .wxdh-row input[type=number],.night .wxdh-row select,.night .wxdh-row textarea{background:#1a1d24;border-color:#3a3f48;color:#e6e8eb}
.night .wxdh-row input[type=text]:focus,.night .wxdh-row input[type=number]:focus,.night .wxdh-row select:focus,.night .wxdh-row textarea:focus{border-color:#ff8627}
.night .wxdh-row label{color:#9aa2ad}
.night .wxdh-sec{border-top-color:#3a3f48}
.night .wxdh-sec-t{color:#e6e8eb}
.night .wxdh-hint{color:#9aa2ad}
.night .wxdh-btn{background:#2b2f36;border-color:#3a3f48;color:#e6e8eb}
.night .wxdh-btn:hover{border-color:#ff8627;color:#ff8627}
.night .wxdh-btn-primary{background:linear-gradient(135deg,#ff6500,#ff8627);color:#fff}
.night .wxdh-btn-primary:hover{color:#fff}
.night .wxdh-btn-danger{color:#ff7a80;border-color:#6b3a3d;background:#2b2f36}
.night .wxdh-btn-danger:hover{background:#3a2a2c;border-color:#ff7a80;color:#ff7a80}
.night .wxdh-btn-green{background:linear-gradient(135deg,#3eb575,#5fd08e);color:#fff}
.night .wxdh-btn-unread{background:rgba(245,108,108,.15);border-color:#f56c6c;color:#f87d7d}
.night .wxdh-btn-unread:hover{background:rgba(245,108,108,.25);color:#fa9191}
.night .wxdh-loading{background:#1a2530;border-color:#2e4a66;color:#ff8627}
.night .wxdh-user{background:#20242c;border-color:#3a3f48}
.night .wxdh-tip{color:#9aa2ad}
.night .wxdh-modal-box{background:#222630}
.night .wxdh-modal-head b{color:#e6e8eb}
.night .wxdh-emoji{background:#222630;border-color:#3a3f48}
.night .wxdh-emoji .wxdh-emoji-title{color:#9aa2ad}
@media (max-width:560px){
  .wxdh-row>span:first-child{width:72px;font-size:13px}
  .wxdh-row>span:not(:first-child){width:auto;font-size:13px}
  .wxdh-actions .wxdh-btn{flex:1 1 100%;text-align:center}
  .wxdh-result-box{max-width:94%}
}
/* ============ 手机版预览区适配（电脑版保持不变） ============ */
@media (max-width:768px){
  .wxdh-panel,.wxdh-preview{flex:1 1 100%;min-width:0;max-width:100%}
  .wxdh-card{padding:14px 12px}
  .wxdh-preview-scroll{padding:0}
  .wxdh-preview-fit{max-width:100%}
  .iphone-preview{box-shadow:0 8px 24px rgba(15,23,42,.2);border-radius:20px}
}
