/* sdwh_kefu_20261110 : 全站客服会话系统视觉层（原生 CSS，零组件依赖） */
/* 命名空间 sdwhkf- 前缀，避免与站内任何既有 class 冲突 */

/* ============ 1. 全新「手机号码」弹窗：深色玻璃拟态 + 金色光晕，与站内所有白色卡片弹窗完全不同 ============ */
.sdwhkf-telmask{position:fixed;left:0;top:0;right:0;bottom:0;z-index:2147483600;display:none;align-items:center;justify-content:center;padding:24px;box-sizing:border-box;background:rgba(8,12,24,.62);-webkit-backdrop-filter:blur(9px);backdrop-filter:blur(9px);opacity:0;transition:opacity .26s ease}
.sdwhkf-telmask.on{display:-webkit-flex;display:flex;opacity:1}
.sdwhkf-telcard{position:relative;width:100%;max-width:430px;padding:34px 28px 26px;box-sizing:border-box;border-radius:22px;overflow:hidden;text-align:center;color:#fff;background:linear-gradient(155deg,#1b2440 0%,#141b31 42%,#0d1222 100%);box-shadow:0 30px 90px rgba(0,0,0,.55),0 0 0 1px rgba(255,255,255,.09) inset,0 1px 0 rgba(255,255,255,.16) inset;-webkit-transform:translateY(22px) scale(.94);transform:translateY(22px) scale(.94);opacity:0;transition:transform .36s cubic-bezier(.18,.9,.28,1.1),opacity .3s ease}
.sdwhkf-telmask.on .sdwhkf-telcard{-webkit-transform:translateY(0) scale(1);transform:translateY(0) scale(1);opacity:1}
.sdwhkf-telcard:before{content:"";position:absolute;left:-40%;top:-120px;width:180%;height:260px;background:radial-gradient(ellipse at 50% 100%,rgba(214,170,92,.28),rgba(214,170,92,0) 68%);pointer-events:none}
.sdwhkf-telcard:after{content:"";position:absolute;left:12%;right:12%;top:0;height:1px;background:linear-gradient(90deg,rgba(231,196,130,0),rgba(231,196,130,.85),rgba(231,196,130,0));pointer-events:none}
.sdwhkf-telshine{position:absolute;left:0;top:0;width:45%;height:100%;background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.055),rgba(255,255,255,0));-webkit-transform:skewX(-18deg) translateX(-260%);transform:skewX(-18deg) translateX(-260%);pointer-events:none}
.sdwhkf-telmask.on .sdwhkf-telshine{-webkit-animation:sdwhkfShine 1.25s .32s ease-out 1;animation:sdwhkfShine 1.25s .32s ease-out 1}
@-webkit-keyframes sdwhkfShine{to{-webkit-transform:skewX(-18deg) translateX(360%)}}
@keyframes sdwhkfShine{to{transform:skewX(-18deg) translateX(360%)}}
.sdwhkf-telclose{position:absolute;right:16px;top:16px;width:32px;height:32px;line-height:30px;border-radius:50%;border:1px solid rgba(255,255,255,.20);background:rgba(255,255,255,.06);color:rgba(255,255,255,.75);font-size:20px;cursor:pointer;padding:0;text-align:center;transition:all .2s}
.sdwhkf-telclose:hover{border-color:rgba(231,196,130,.7);color:#e7c482;-webkit-transform:rotate(90deg);transform:rotate(90deg)}
.sdwhkf-telav{position:relative;width:78px;height:78px;margin:0 auto 14px;border-radius:50%;padding:3px;background:linear-gradient(140deg,#e7c482,#a67c3d 55%,#f0d9a8);box-shadow:0 10px 30px rgba(214,170,92,.28)}
.sdwhkf-telav img{width:100%;height:100%;border-radius:50%;object-fit:cover;display:block;border:2px solid #141b31;background:#26304b}
.sdwhkf-telav i{position:absolute;right:-2px;bottom:2px;width:22px;height:22px;border-radius:50%;background:linear-gradient(140deg,#f2d79c,#c79b4c);color:#3a2a0c;font-size:12px;line-height:22px;font-style:normal;font-weight:700;box-shadow:0 2px 8px rgba(0,0,0,.4)}
.sdwhkf-telname{font-size:19px;font-weight:700;letter-spacing:.06em;color:#f6f3ea}
.sdwhkf-teltag{display:inline-block;margin-top:8px;padding:4px 13px;border-radius:999px;font-size:11px;letter-spacing:.14em;color:#e7c482;background:rgba(231,196,130,.10);border:1px solid rgba(231,196,130,.28)}
.sdwhkf-telrule{height:1px;margin:22px 0 18px;background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.16) 20%,rgba(255,255,255,.16) 80%,rgba(255,255,255,0))}
.sdwhkf-tellabel{font-size:11px;letter-spacing:.32em;color:rgba(255,255,255,.48);text-transform:uppercase}
.sdwhkf-telnum{display:block;margin:10px 0 4px;font-size:33px;line-height:1.2;font-weight:700;letter-spacing:.055em;font-family:"DIN Alternate","Helvetica Neue",Arial,sans-serif;background:linear-gradient(180deg,#fffdf5 0%,#efd7a3 62%,#d3aa61 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:#efd7a3;word-break:break-all;text-shadow:0 0 26px rgba(231,196,130,.18)}
.sdwhkf-telhint{font-size:12px;color:rgba(255,255,255,.42);letter-spacing:.05em}
.sdwhkf-telbtns{display:-webkit-flex;display:flex;gap:12px;margin-top:24px}
.sdwhkf-telbtn{-webkit-flex:1;flex:1;height:46px;line-height:46px;border-radius:12px;font-size:14px;font-weight:600;letter-spacing:.06em;cursor:pointer;border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.06);color:#f2eee4;text-decoration:none;display:block;transition:all .22s;text-align:center}
.sdwhkf-telbtn:hover{-webkit-transform:translateY(-2px);transform:translateY(-2px);border-color:rgba(231,196,130,.65);color:#e7c482}
.sdwhkf-telbtn.gold{border:0;background:linear-gradient(135deg,#f0d49b,#d2a255 55%,#b9853b);color:#2b1e08;box-shadow:0 8px 22px rgba(199,151,67,.32)}
.sdwhkf-telbtn.gold:hover{color:#2b1e08;box-shadow:0 12px 28px rgba(199,151,67,.45)}
.sdwhkf-telfoot{margin-top:18px;font-size:11px;color:rgba(255,255,255,.30);letter-spacing:.08em}
.sdwhkf-teltoast{position:absolute;left:50%;bottom:20px;-webkit-transform:translateX(-50%) translateY(10px);transform:translateX(-50%) translateY(10px);padding:8px 18px;border-radius:999px;background:rgba(0,0,0,.55);border:1px solid rgba(231,196,130,.3);color:#e7c482;font-size:12px;opacity:0;transition:all .25s;pointer-events:none}
.sdwhkf-teltoast.on{opacity:1;-webkit-transform:translateX(-50%) translateY(0);transform:translateX(-50%) translateY(0)}

/* ============ 2. 微信聊天会话窗口 100% 复刻（sdwh_kf5_1110） ============ */
/* 微信设计规范：聊天背景 #EDEDED / 己方气泡 #95EC69 / 对方气泡 #FFF / 品牌绿 #07C160 / 正文 #191919 / 圆角 4px */
.sdwhkf-mask{position:fixed;left:0;top:0;right:0;bottom:0;z-index:2147483500;background:rgba(0,0,0,.42);display:none;align-items:center;justify-content:center;padding:0;box-sizing:border-box}
.sdwhkf-mask.on{display:-webkit-flex;display:flex}
.sdwhkf-win,.sdwhkf-dmain{position:relative;display:-webkit-flex;display:flex;flex-direction:column;background:#EDEDED;overflow:hidden;color:#191919;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Helvetica Neue","Microsoft YaHei",Arial,sans-serif}
.sdwhkf-win{width:100%;max-width:420px;height:100%;max-height:760px;box-shadow:0 20px 70px rgba(0,0,0,.30)}
@media(min-width:640px){.sdwhkf-mask{padding:24px}.sdwhkf-win{height:min(760px,88vh);border-radius:6px}}

/* --- 顶部导航：微信标题栏（左返回 / 居中昵称 / 右更多） --- */
.sdwhkf-head{position:relative;height:50px;min-height:50px;padding:0 12px;display:-webkit-flex;display:flex;align-items:center;background:#EDEDED;border-bottom:1px solid #D6D6D6;z-index:3;flex:none}
.sdwhkf-hback,.sdwhkf-hmore{position:relative;z-index:2;width:34px;height:34px;border:0;background:none;padding:0;display:-webkit-flex;display:flex;align-items:center;justify-content:center;color:#191919;cursor:pointer;flex:none}
.sdwhkf-hback svg,.sdwhkf-hmore svg{width:24px;height:24px}
.sdwhkf-hback:active,.sdwhkf-hmore:active{background:rgba(0,0,0,.06);border-radius:4px}
.sdwhkf-htitle{position:absolute;left:56px;right:56px;top:0;height:50px;line-height:50px;text-align:center;font-size:17px;font-weight:500;color:#191919;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}
.sdwhkf-hmore{margin-left:auto}
/* sdwh_kf29_1111 : 右上角小 X 关闭按钮，与左上返回箭头共用同一套关闭逻辑 */
.sdwhkf-hx{position:relative;z-index:10;width:26px;height:26px;margin-left:4px;flex:none;border:0;background:rgba(0,0,0,.05);border-radius:50%;padding:0;display:-webkit-flex;display:flex;align-items:center;justify-content:center;color:#191919;font-size:17px;line-height:1;cursor:pointer;font-family:inherit}
.sdwhkf-hx:active{background:rgba(0,0,0,.14)}
/* 微信桌面版虽无返回箭头，但本弹窗的左上角按钮是唯一可见关闭入口，必须保留可点 */
.sdwhkf-morepanel{position:absolute;right:8px;top:48px;z-index:9;display:none;min-width:150px;padding:5px 0;background:#fff;border-radius:6px;box-shadow:0 6px 22px rgba(0,0,0,.18)}
.sdwhkf-mask.wx-more .sdwhkf-morepanel{display:block}
.sdwhkf-morepanel div{padding:10px 16px;font-size:14px;color:#191919;cursor:pointer;white-space:nowrap}
.sdwhkf-morepanel div:hover{background:#F2F2F2}

/* --- 消息区：微信灰底 + 时间戳 + 双色气泡 + 4px 圆角 + 尖角 --- */
.sdwhkf-body{-webkit-flex:1;flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:12px 12px 16px;-webkit-overflow-scrolling:touch;background:#EDEDED}
.sdwhkf-time{text-align:center;margin:10px 0 14px}
.sdwhkf-time span{font-size:11px;color:#B2B2B2}
.sdwhkf-tip{text-align:center;margin:6px 0 14px}
.sdwhkf-tip span{display:inline-block;padding:4px 10px;border-radius:4px;background:rgba(0,0,0,.06);color:#888;font-size:11px}
.sdwhkf-row{display:-webkit-flex;display:flex;align-items:flex-start;gap:9px;margin-bottom:16px}
.sdwhkf-row.me{-webkit-flex-direction:row-reverse;flex-direction:row-reverse}
.sdwhkf-rav{width:40px;height:40px;border-radius:4px;object-fit:cover;flex:none;background:#D8D8D8}
.sdwhkf-bubble{position:relative;max-width:70%;padding:9px 12px;border-radius:4px;background:#fff;color:#191919;font-size:15px;line-height:1.45;word-break:break-word;box-shadow:none}
.sdwhkf-bubble:before{content:"";position:absolute;left:-6px;top:13px;width:0;height:0;border:6px solid transparent;border-right-color:#fff;border-left:0}
.sdwhkf-row.me .sdwhkf-bubble{background:#95EC69}
.sdwhkf-row.me .sdwhkf-bubble:before{left:auto;right:-6px;border-right:0;border-left:6px solid #95EC69}
.sdwhkf-text{white-space:normal}
.sdwhkf-bubble.wxmedia{padding:0;background:transparent;max-width:56%;overflow:hidden;border-radius:4px}
.sdwhkf-bubble.wxmedia:before{display:none}
.sdwhkf-row.me .sdwhkf-bubble.wxmedia{background:transparent}
.sdwhkf-img{display:block;max-width:100%;max-height:200px;border-radius:4px;cursor:zoom-in}
.sdwhkf-wxvideo{position:relative;width:180px;max-width:100%;border-radius:4px;overflow:hidden;background:#000;cursor:pointer}
.sdwhkf-wxvideo video{display:block;width:100%;max-height:200px;object-fit:cover}
.sdwhkf-wxplay{position:absolute;left:50%;top:50%;width:44px;height:44px;margin:-22px 0 0 -22px;border-radius:50%;background:rgba(0,0,0,.48);display:-webkit-flex;display:flex;align-items:center;justify-content:center;color:#fff}
.sdwhkf-wxplay svg{width:22px;height:22px;margin-left:2px}
.sdwhkf-bubble.wxvoicebox{padding:9px 10px}
.sdwhkf-voice{display:-webkit-flex;display:flex;align-items:center;gap:7px;min-width:54px;cursor:pointer;position:relative}
.sdwhkf-row.me .sdwhkf-voice{-webkit-flex-direction:row-reverse;flex-direction:row-reverse}
.sdwhkf-horn{display:block;width:19px;height:19px;flex:none;color:#191919}
.sdwhkf-horn svg{width:19px;height:19px}
.sdwhkf-row.me .sdwhkf-horn{-webkit-transform:scaleX(-1);transform:scaleX(-1)}
.sdwhkf-voicedur{font-size:14px;color:#191919;font-variant-numeric:tabular-nums}
.sdwhkf-unread{position:absolute;right:-12px;top:-2px;width:8px;height:8px;border-radius:50%;background:#FA5151}
.sdwhkf-row.me .sdwhkf-unread{display:none}
.sdwhkf-voice.playing .sdwhkf-horn{-webkit-animation:sdwhkfWave .62s ease-in-out infinite alternate;animation:sdwhkfWave .62s ease-in-out infinite alternate}
@-webkit-keyframes sdwhkfWave{from{opacity:.42}to{opacity:1}}
@keyframes sdwhkfWave{from{opacity:.42}to{opacity:1}}
.sdwhkf-bubble.wxfilebox{padding:0;width:230px;max-width:76%;background:#fff}
.sdwhkf-row.me .sdwhkf-bubble.wxfilebox{background:#fff;color:#191919}
.sdwhkf-bubble.wxfilebox:before{border-right-color:#fff}
.sdwhkf-row.me .sdwhkf-bubble.wxfilebox:before{border-left-color:#fff}
.sdwhkf-wxfile{display:-webkit-flex;display:flex;align-items:center;gap:10px;padding:12px;text-decoration:none;color:#191919}
.sdwhkf-wxftext{-webkit-flex:1;flex:1;min-width:0}
.sdwhkf-wxftext b{display:block;font-size:14px;font-weight:400;line-height:1.4;word-break:break-all;max-height:40px;overflow:hidden}
.sdwhkf-wxftext small{display:block;margin-top:8px;font-size:11px;color:#B2B2B2}
.sdwhkf-wxfic{width:44px;height:52px;flex:none;border-radius:3px;background:#5A8CE0;color:#fff;font-size:11px;font-weight:600;display:-webkit-flex;display:flex;align-items:flex-end;justify-content:center;padding-bottom:6px;letter-spacing:.04em}

/* --- 「+」面板 / 表情面板 / 快捷话术 / 评分：微信九宫格 --- */
.sdwhkf-extras{display:none;background:#F7F7F7;border-top:1px solid #D6D6D6;flex:none;max-height:240px;overflow-y:auto}
.sdwhkf-mask.wx-plus .sdwhkf-extras,.sdwhkf-mask.wx-emoji .sdwhkf-extras,.sdwhkf-mask.wx-quick .sdwhkf-extras,.sdwhkf-mask.wx-rate .sdwhkf-extras{display:block}
.sdwhkf-plusgrid{display:none;grid-template-columns:repeat(4,1fr);gap:16px 8px;padding:20px 12px 22px}
.sdwhkf-mask.wx-plus .sdwhkf-plusgrid{display:grid}
.sdwhkf-cell{position:relative;text-align:center;cursor:pointer}
.sdwhkf-cell:active .sdwhkf-cellic{background:#E4E4E4}
.sdwhkf-cellic{display:-webkit-flex;display:flex;align-items:center;justify-content:center;width:56px;height:56px;margin:0 auto;background:#fff;border-radius:12px;color:#4A4A4A}
.sdwhkf-cellic svg{width:28px;height:28px}
.sdwhkf-celltx{display:block;margin-top:7px;font-size:12px;color:#888}
/* sdwh_kf33_1111 : 文件框透明覆盖整格，浏览器原生命中，不再依赖隐藏 input 的 JS click */
.sdwhkf-cell .sdwhkf-cellfile{position:absolute;left:0;top:0;width:100%;height:100%;opacity:0;filter:alpha(opacity=0);font-size:0;line-height:0;cursor:pointer;z-index:3;border:0;padding:0;margin:0;background:transparent;-webkit-appearance:none;appearance:none}
.sdwhkf-emojigrid{display:none;grid-template-columns:repeat(8,1fr);gap:2px;padding:14px 10px;max-height:190px;overflow-y:auto}
.sdwhkf-mask.wx-emoji .sdwhkf-emojigrid{display:grid}
.sdwhkf-emojigrid span{display:-webkit-flex;display:flex;align-items:center;justify-content:center;height:38px;font-size:24px;cursor:pointer;border-radius:4px}
.sdwhkf-emojigrid span:hover{background:#E4E4E4}
.sdwhkf-emojigrid .sdwhkf-emodel svg{width:20px;height:20px}
.sdwhkf-quickbar{display:none;background:#F7F7F7}
.sdwhkf-mask.wx-quick .sdwhkf-quickbar{display:block}
.sdwhkf-quickbar div{padding:11px 16px;font-size:13px;color:#191919;border-bottom:1px solid #E5E5E5;cursor:pointer}
.sdwhkf-quickbar div:hover{background:#E9E9E9}
.sdwhkf-quickbar .sdwhkf-qempty{color:#B2B2B2;cursor:default;line-height:1.6}
.sdwhkf-ratepanel{display:none;padding:22px 16px;text-align:center}
.sdwhkf-mask.wx-rate .sdwhkf-ratepanel{display:block}
.sdwhkf-ratepanel p{margin:0 0 14px;font-size:14px;color:#191919}
.sdwhkf-stars span{display:inline-block;margin:0 5px;font-size:30px;color:#D8D8D8;cursor:pointer}
.sdwhkf-stars span:hover,.sdwhkf-stars span:hover~span{color:#FA9D3B}

/* --- 底部输入栏：语音 / 输入框或「按住 说话」/ 表情 / + / 发送 --- */
.sdwhkf-bar{display:-webkit-flex;display:flex;align-items:center;gap:8px;padding:8px 10px;background:#F7F7F7;border-top:1px solid #D6D6D6;min-height:54px;flex:none}
.sdwhkf-ibtn{width:30px;height:36px;flex:none;border:0;background:none;padding:0;display:-webkit-flex;display:flex;align-items:center;justify-content:center;color:#191919;cursor:pointer}
.sdwhkf-ibtn svg{width:27px;height:27px}
.sdwhkf-ibtn:active{opacity:.55}
.sdwhkf-inwrap{-webkit-flex:1;flex:1;min-width:0;position:relative}
.sdwhkf-input{display:block;width:100%;min-height:36px;max-height:88px;padding:8px 10px;border:0;border-radius:4px;background:#fff;font-size:15px;line-height:1.4;color:#191919;resize:none;outline:none;box-sizing:border-box;font-family:inherit}
.sdwhkf-hold{display:none;position:relative;z-index:2;width:100%;height:36px;border:1px solid #D6D6D6;border-radius:5px;background:#fff;color:#191919;font-size:15px;font-weight:500;letter-spacing:1px;text-align:center;cursor:pointer;-webkit-user-select:none;user-select:none;touch-action:none;font-family:inherit}
.sdwhkf-hold.pressing,.sdwhkf-inwrap:active .sdwhkf-hold{background:#D8D8D8}
/* sdwh_kf_voice_1113 : 按钮(z-index:2)覆盖透明文件框(z-index:1)，点击必落到按钮自身；文件框仍在渲染树，由 JS 显式 f.click() 调起 */
.sdwhkf-inwrap .sdwhkf-holdfile{display:none;position:absolute;left:0;top:0;width:100%;height:36px;opacity:0;filter:alpha(opacity=0);font-size:0;line-height:0;cursor:pointer;z-index:1;border:0;padding:0;margin:0;background:transparent;-webkit-appearance:none;appearance:none}
.wxvoice .sdwhkf-inwrap .sdwhkf-holdfile{display:block}
.wxvoice .sdwhkf-input{display:none}
.wxvoice .sdwhkf-hold{display:block}
.sdwhkf-send{display:none;height:36px;min-width:58px;padding:0 12px;border:0;border-radius:4px;background:#07C160;color:#fff;font-size:14px;cursor:pointer;flex:none;font-family:inherit}
.sdwhkf-send:active{background:#06AD56}
.sdwhkf-send:disabled{opacity:.55}
.sdwhkf-bar.hastxt .sdwhkf-plusbtn{display:none}
.sdwhkf-bar.hastxt .sdwhkf-send{display:block}

/* --- 「按住说话」录音浮层：微信中央黑色圆角声波卡片 + 上滑取消红态 --- */
.sdwhkf-recshade{position:fixed;left:0;top:0;right:0;bottom:0;z-index:2147483645;display:none;-webkit-flex-direction:column;flex-direction:column;align-items:center;justify-content:center;pointer-events:none;background:rgba(0,0,0,.10)}
.sdwhkf-recshade.on{display:-webkit-flex;display:flex}
.sdwhkf-recbox{width:172px;padding:20px 12px 16px;border-radius:10px;background:rgba(0,0,0,.84);text-align:center;color:#fff;box-shadow:0 8px 30px rgba(0,0,0,.3)}
.sdwhkf-recshade.cancel .sdwhkf-recbox{background:rgba(250,81,81,.94)}
.sdwhkf-recmic{height:48px;display:-webkit-flex;display:flex;align-items:center;justify-content:center}
.sdwhkf-recmic svg{width:42px;height:42px}
.sdwhkf-recwave{display:-webkit-flex;display:flex;align-items:center;justify-content:center;gap:3px;height:34px}
.sdwhkf-recwave i{display:block;width:4px;height:6px;border-radius:2px;background:#95EC69;transition:height .08s linear}
.sdwhkf-recshade.cancel .sdwhkf-recwave i{background:#fff}
.sdwhkf-recsec{margin-top:4px;font-size:13px;opacity:.86;font-variant-numeric:tabular-nums}
.sdwhkf-rectip{margin-top:8px;font-size:13px;white-space:nowrap}
.sdwhkf-recbottom{position:absolute;left:0;right:0;bottom:76px;text-align:center;font-size:13px;color:#fff;text-shadow:0 1px 5px rgba(0,0,0,.7)}

/* ============ 3. 老师端「新私信」提醒浮层（保留原样，视觉沿用） ============ */
.sdwhkf-notice{position:fixed;right:18px;bottom:88px;z-index:2147483400;width:288px;max-width:calc(100vw - 36px);padding:14px 16px;border-radius:15px;background:linear-gradient(140deg,#1e2b4d,#263b68);color:#fff;box-shadow:0 16px 44px rgba(16,26,52,.42);-webkit-transform:translateY(18px);transform:translateY(18px);opacity:0;pointer-events:none;transition:all .32s cubic-bezier(.2,.8,.3,1)}
.sdwhkf-notice.on{opacity:1;pointer-events:auto;-webkit-transform:translateY(0);transform:translateY(0)}
.sdwhkf-notice:after{content:"";position:absolute;right:-3px;top:-3px;width:11px;height:11px;border-radius:50%;background:#f43f5e;box-shadow:0 0 0 4px rgba(244,63,94,.22);-webkit-animation:sdwhkfPulse 1.6s infinite;animation:sdwhkfPulse 1.6s infinite}
@-webkit-keyframes sdwhkfPulse{50%{box-shadow:0 0 0 9px rgba(244,63,94,0)}}
@keyframes sdwhkfPulse{50%{box-shadow:0 0 0 9px rgba(244,63,94,0)}}
.sdwhkf-ntop{display:-webkit-flex;display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700}
.sdwhkf-ntop i{font-style:normal;width:22px;height:22px;border-radius:7px;background:rgba(255,255,255,.15);line-height:22px;text-align:center;font-size:12px}
.sdwhkf-ntop span{-webkit-flex:1;flex:1}
.sdwhkf-nclose{width:22px;height:22px;border:0;background:none;color:rgba(255,255,255,.6);font-size:17px;cursor:pointer;line-height:22px}
.sdwhkf-nbody{margin:9px 0 11px;font-size:12px;line-height:1.6;color:rgba(255,255,255,.8);max-height:56px;overflow:hidden}
.sdwhkf-nbtn{display:block;width:100%;height:34px;line-height:34px;border:0;border-radius:9px;background:linear-gradient(135deg,#f0d49b,#d2a255);color:#2b1e08;font-size:13px;font-weight:700;cursor:pointer;text-align:center}

/* ============ 4. 老师工作台（微信桌面版三栏：会话列表 / 聊天 / 访客信息） ============ */
.sdwhkf-desk{position:relative;width:100%;max-width:1040px;height:100%;max-height:780px;display:-webkit-flex;display:flex;background:#EDEDED;box-shadow:0 24px 80px rgba(0,0,0,.38);overflow:hidden}
@media(min-width:760px){.sdwhkf-desk{height:min(780px,92vh);border-radius:6px}}
.sdwhkf-dlist{width:250px;flex:none;display:-webkit-flex;display:flex;flex-direction:column;background:#F7F7F7;border-right:1px solid #D6D6D6}
.sdwhkf-dlist h3{margin:0;padding:16px 14px 12px;font-size:15px;font-weight:500;color:#191919;border-bottom:1px solid #E5E5E5;display:-webkit-flex;display:flex;align-items:center;justify-content:space-between}
.sdwhkf-dlist h3 em{font-style:normal;font-size:11px;font-weight:400;color:#B2B2B2}
.sdwhkf-ditems{-webkit-flex:1;flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch}
.sdwhkf-ditem{display:-webkit-flex;display:flex;align-items:center;gap:10px;padding:11px 12px;border-bottom:1px solid #EBEBEB;cursor:pointer;transition:background .18s}
.sdwhkf-ditem:hover{background:#EAEAEA}
.sdwhkf-ditem.on{background:#DEDEDE;border-left:3px solid #07C160;padding-left:9px}
.sdwhkf-ditem img{width:40px;height:40px;border-radius:4px;object-fit:cover;flex:none;background:#D8D8D8}
.sdwhkf-ditem .t{-webkit-flex:1;flex:1;min-width:0}
.sdwhkf-ditem .t b{display:block;font-size:14px;font-weight:400;color:#191919;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sdwhkf-ditem .t span{display:block;margin-top:4px;font-size:12px;color:#B2B2B2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sdwhkf-badge{min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#FA5151;color:#fff;font-size:10px;line-height:18px;text-align:center;flex:none}
.sdwhkf-dmain{-webkit-flex:1;flex:1;min-width:0}
.sdwhkf-dinfo{width:210px;flex:none;background:#F7F7F7;border-left:1px solid #D6D6D6;padding:16px 14px;overflow-y:auto}
@media(max-width:759px){.sdwhkf-dinfo{display:none}.sdwhkf-dlist{width:74px}.sdwhkf-ditem .t{display:none}.sdwhkf-ditem{justify-content:center}}
.sdwhkf-dinfo h4{margin:0 0 12px;font-size:14px;font-weight:500;color:#191919}
.sdwhkf-dinfo p{margin:0 0 10px;font-size:12px;line-height:1.5;color:#888;word-break:break-all}
.sdwhkf-dinfo label{display:block;font-size:11px;color:#B2B2B2;margin:12px 0 5px;letter-spacing:.06em}
.sdwhkf-dinfo .v{font-size:12px;color:#191919;word-break:break-all}
.sdwhkf-dact{display:block;width:100%;height:32px;margin-top:8px;border:1px solid #D6D6D6;border-radius:4px;background:#fff;color:#191919;font-size:12px;cursor:pointer}
.sdwhkf-dact.danger{color:#FA5151;border-color:#F5C6C6}
.sdwhkf-empty{display:-webkit-flex;display:flex;align-items:center;justify-content:center;height:100%;color:#B2B2B2;font-size:13px}

/* ============ 5. 微信图片 / 视频全屏查看器 ============ */
.sdwhkf-viewer{position:fixed;left:0;top:0;right:0;bottom:0;z-index:2147483640;background:#000;display:none;align-items:center;justify-content:center;padding:20px;box-sizing:border-box}
.sdwhkf-viewer.on{display:-webkit-flex;display:flex}
.sdwhkf-viewer img{max-width:100%;max-height:100%;object-fit:contain}
.sdwhkf-viewerv{max-width:100%;max-height:100%}
.sdwhkf-viewerx{position:absolute;right:18px;top:18px;width:36px;height:36px;border:0;border-radius:50%;background:rgba(255,255,255,.16);color:#fff;font-size:24px;line-height:34px;text-align:center;cursor:pointer}
/* sdwh_kf_link_1113 : 文本消息里的完整网址整条着色并可直接点开 */
.sdwhkf-link{color:#1a5fb4;text-decoration:underline;word-break:break-all;-webkit-tap-highlight-color:rgba(26,95,180,.12)}
.sdwhkf-row.me .sdwhkf-bubble .sdwhkf-link{color:#0b4a91}
