/* ===== 三按钮浮窗列 - 右对齐固定尺寸 ===== */
  #kfRail{position:fixed;right:18px;bottom:80px;z-index:9990;display:flex;flex-direction:column;gap:10px;}
  .kf-btn{width:44px;height:44px;border-radius:50%;border:none;color:#fff;cursor:pointer;
          display:flex;align-items:center;justify-content:center;
          box-shadow:0 6px 18px rgba(0,0,0,.22);transition:transform .2s;
          text-decoration:none;font-size:18px;line-height:1;}
  .kf-btn:hover{transform:scale(1.08);}
  .kf-btn-chat{background:linear-gradient(135deg,#f59e0b,#fbbf24);font-size:18px;}
  .kf-btn-tel{background:linear-gradient(135deg,#2196f3,#42a5f5);}
  .kf-btn-wx{background:linear-gradient(135deg,#07c160,#0ec77f);}

  /* 弹窗背景层 */
  #kfBackdrop,#kfWxBackdrop{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:9998;
                            opacity:0;visibility:hidden;transition:opacity .25s ease,visibility .25s ease;}
  #kfBackdrop.kf-show,#kfWxBackdrop.kf-show{opacity:1;visibility:visible;}

  /* 弹窗主体 - 通用 */
  #kfPopup,#kfWxPopup{position:fixed;z-index:9999;left:50%;top:50%;
         transform:translate(-50%,-50%) scale(.96);
         background:#fff;border-radius:12px;overflow:hidden;
         display:flex;flex-direction:column;opacity:0;visibility:hidden;
         transition:opacity .25s ease,transform .25s ease,visibility .25s ease;
         box-shadow:0 20px 60px rgba(0,0,0,.4);}
  #kfPopup.kf-show,#kfWxPopup.kf-show{opacity:1;visibility:visible;transform:translate(-50%,-50%) scale(1);}

  /* 在线咨询弹窗 - 800x620 */
  #kfPopup{width:800px;max-width:90vw;height:620px;max-height:90vh;}
  .kf-pop-body{flex:1 1 auto;position:relative;background:#f7f7f8;}
  .kf-pop-body iframe{width:100%;height:100%;border:0;display:block;}

  /* 微信弹窗 - 自适应高度 */
  #kfWxPopup{width:360px;max-width:90vw;height:auto;max-height:90vh;}
  .kf-wx-body{padding:24px;display:flex;flex-direction:column;align-items:center;gap:16px;}
  .kf-qr-box{width:200px;height:200px;border-radius:12px;
             display:flex;align-items:center;justify-content:center;background:#fff;}
  .kf-qr-placeholder{text-align:center;color:#64748b;font-size:14px;}
  .kf-qr-icon{font-size:48px;margin-bottom:6px;}
  .kf-qr-tip{font-size:12px;color:#94a3b8;margin-top:4px;}
  .kf-qr-img{width:100%;height:100%;object-fit:contain;border-radius:8px;display:block;background:#fff;}
  .kf-wx-info{text-align:center;color:#334155;font-size:14px;line-height:1.8;}
  .kf-wx-info a{color:#1e88e5;text-decoration:none;font-weight:700;}
  .kf-wx-info p{margin:4px 0;}
  .kf-wx-tip{color:#94a3b8;font-size:12px;margin-top:6px;}

  /* 弹窗头部 */
  .kf-pop-header{position:relative;flex:0 0 auto;display:flex;align-items:center;justify-content:center;
                 padding:12px 14px;background:linear-gradient(135deg,#f59e0b,#fbbf24);color:#fff;}
  #kfWxPopup .kf-pop-header{background:linear-gradient(135deg,#07c160,#0ec77f);}
  .kf-pop-title{font-size:16px;font-weight:700;}
  .kf-pop-close{position:absolute;right:10px;top:50%;transform:translateY(-50%);
                 background:rgba(255,255,255,.22);border:none;color:#fff;width:28px;height:28px;border-radius:50%;
                 font-size:18px;line-height:1;cursor:pointer;}
  .kf-pop-close:hover{background:rgba(255,255,255,.38);}

  /* 移动端适配 */
  @media (max-width:767px){
    #kfRail{right:12px;bottom:74px;gap:8px;}
    .kf-btn{width:48px;height:48px;font-size:20px;}
    #kfPopup,#kfWxPopup{left:0;right:0;top:auto;bottom:0;width:100%;max-width:100%;
             border-radius:16px 16px 0 0;transform:translateY(100%);
             transition:transform .3s ease,opacity .25s ease,visibility .25s ease;}
    #kfPopup.kf-show,#kfWxPopup.kf-show{transform:translateY(0);}
    #kfPopup{height:75vh;max-height:75vh;}
    #kfWxPopup{height:auto;max-height:85vh;}
    .kf-qr-box{width:160px;height:160px;}
  }
