/* ================================================================
   微信联系悬浮组件 —— 全站 16 页共用（官网 lisuncld.cn）
   作用：右下角常驻入口，展开后 = 扫码加好友（多人二维码）
        + 直接跳转企微客服会话
   类名前缀 wxf- 避免与旧版 .header/.footer/.card 冲突
   2026-10-30 优化：微信品牌绿 #07C160 大按钮 + 脉冲光环动效
   ================================================================ */

.wxf{
  position:fixed;
  right:24px;
  bottom:30px;
  z-index:1500;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  -webkit-font-smoothing:antialiased;
}

/* ---------- 触发按钮 ---------- */
.wxf-btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:10px;
  height:60px;
  padding:0 26px 0 20px;
  border:0;
  border-radius:999px;
  cursor:pointer;
  background:linear-gradient(135deg,#06AD56 0%,#07C160 55%,#09D36B 100%);
  color:#fff;
  font-size:16.5px;
  font-weight:700;
  letter-spacing:.02em;
  white-space:nowrap;
  box-shadow:0 12px 30px rgba(7,193,96,.42),0 3px 8px rgba(0,40,20,.18);
  transition:transform .26s cubic-bezier(.2,.8,.2,1),box-shadow .26s;
}
.wxf-btn svg{
  width:30px;height:30px;flex:none;
  fill:none;stroke:#fff;stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round;
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.15));
}
/* 脉冲光环呼吸动效 */
.wxf-btn::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:999px;
  box-shadow:0 0 0 0 rgba(7,193,96,.55);
  animation:wxf-pulse 2.4s cubic-bezier(.4,0,.6,1) infinite;
  pointer-events:none;
}
@keyframes wxf-pulse{
  0%{box-shadow:0 0 0 0 rgba(7,193,96,.5)}
  70%{box-shadow:0 0 0 16px rgba(7,193,96,0)}
  100%{box-shadow:0 0 0 0 rgba(7,193,96,0)}
}
.wxf-btn:focus-visible{outline:2px solid #fff;outline-offset:3px;box-shadow:0 0 0 4px rgba(7,193,96,.55)}
@media (hover:hover){
  .wxf-btn:hover{transform:translateY(-3px);box-shadow:0 20px 44px rgba(7,193,96,.5),0 4px 10px rgba(0,40,20,.2)}
  .wxf-btn:hover svg{transform:scale(1.08)}
  .wxf-btn:hover::before{animation:none}
}

/* 未读提示点（首次进入提示可点） */
.wxf-dot{
  position:absolute;top:3px;right:15px;
  width:10px;height:10px;border-radius:50%;
  background:#FF5A5F;border:2px solid #fff;
  box-shadow:0 0 0 3px rgba(255,90,95,.22);
  pointer-events:none;
  transition:opacity .2s,transform .2s;
}
.wxf.is-seen .wxf-dot{opacity:0;transform:scale(.4)}

/* ---------- 弹出面板 ---------- */
.wxf-panel{
  position:absolute;
  right:0;
  bottom:74px;
  width:272px;
  max-height:calc(100vh - 120px);
  overflow-y:auto;
  padding:18px;
  background:#fff;
  border:1px solid #E7F2EC;
  border-radius:20px;
  box-shadow:0 26px 60px rgba(16,36,58,.20),0 4px 14px rgba(16,36,58,.08);
  opacity:0;
  transform:translateY(12px) scale(.965);
  transform-origin:100% 100%;
  pointer-events:none;
  transition:opacity .24s ease,transform .26s cubic-bezier(.2,.8,.2,1);
}
.wxf.is-open .wxf-panel{
  opacity:1;
  transform:translateY(0) scale(1);
  pointer-events:auto;
}
/* 面板指向按钮的小三角 */
.wxf-panel::after{
  content:"";
  position:absolute;
  right:56px;
  bottom:-6px;
  width:12px;height:12px;
  background:#fff;
  border-right:1px solid #E7F2EC;
  border-bottom:1px solid #E7F2EC;
  transform:rotate(45deg);
  border-radius:0 0 3px 0;
}

.wxf-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin-bottom:14px;
}
.wxf-head b{
  display:block;
  font-size:15px;
  font-weight:650;
  color:#0B1421;
  letter-spacing:-.01em;
  line-height:1.45;
}
.wxf-head span{
  display:block;
  margin-top:3px;
  font-size:11.5px;
  color:#8AA0B4;
  font-weight:400;
  letter-spacing:.02em;
}
.wxf-x{
  flex:none;
  width:24px;height:24px;
  margin:-3px -4px 0 0;
  padding:0;
  border:0;border-radius:50%;
  background:#F2F7FB;
  color:#8AA0B4;
  font-size:15px;line-height:1;
  cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  transition:background .2s,color .2s;
}
.wxf-x:hover{background:#E7EFF7;color:#33475E}
.wxf-x svg{
  width:13px;height:13px;
  fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;
}

/* 二维码 */
.wxf-qr{
  position:relative;
  width:180px;height:180px;
  margin:0 auto;
  padding:6px;
  background:#fff;
  border:1px solid #E7F2EC;
  border-radius:16px;
  box-shadow:0 6px 18px rgba(16,36,58,.07);
}
.wxf-qr img{
  display:block;
  width:100%;height:100%;
  object-fit:contain;
  border-radius:9px;
  image-rendering:auto;
}
.wxf-note-d{display:inline}
.wxf-note-m{display:none}
.wxf-note{
  margin:12px 0 0;
  text-align:center;
  font-size:13px;
  font-weight:600;
  color:#33475E;
  letter-spacing:.01em;
}
.wxf-time{
  margin:4px 0 0;
  text-align:center;
  font-size:11.5px;
  color:#8AA0B4;
}

/* 在线客服按钮 */
.wxf-kf{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  height:42px;
  margin-top:14px;
  border-radius:11px;
  background:linear-gradient(135deg,#06AD56,#07C160);
  color:#fff!important;
  font-size:14px;
  font-weight:600;
  text-decoration:none;
  box-shadow:0 8px 20px rgba(7,193,96,.3);
  transition:transform .2s,box-shadow .2s;
}
.wxf-kf svg{
  width:15px;height:15px;
  fill:none;stroke:currentColor;stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round;
}
@media (hover:hover){
  .wxf-kf:hover{transform:translateY(-1px);box-shadow:0 12px 26px rgba(7,193,96,.38)}
}
.wxf-kf:focus-visible{outline:2px solid #07C160;outline-offset:2px}

/* 电话咨询按钮 */
.wxf-tel{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  height:42px;
  margin-top:10px;
  border-radius:11px;
  border:1px solid #2E9BFF;
  background:#fff;
  color:#2E9BFF!important;
  font-size:14px;
  font-weight:600;
  text-decoration:none;
  transition:transform .2s,box-shadow .2s,background .2s;
}
.wxf-tel svg{
  width:15px;height:15px;
  fill:none;stroke:currentColor;stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round;
}
@media (hover:hover){
  .wxf-tel:hover{transform:translateY(-1px);background:#F0F7FF;box-shadow:0 8px 20px rgba(46,155,255,.22)}
}
.wxf-tel:focus-visible{outline:2px solid #2E9BFF;outline-offset:2px}

.wxf-legal{
  margin:10px 0 0;
  text-align:center;
  font-size:10.5px;
  color:#A9BCCB;
  line-height:1.6;
}

/* ---------- 移动端 ---------- */
@media (max-width:640px){
  .wxf{right:16px;bottom:16px}
  .wxf-btn{height:54px;padding:0 22px 0 17px;font-size:15px;gap:8px}
  .wxf-btn svg{width:27px;height:27px}
  .wxf-panel{
    width:calc(100vw - 28px);
    max-width:272px;
    bottom:66px;
    padding:16px;
    border-radius:18px;
  }
  .wxf-qr{width:168px;height:168px}
  .wxf-note-d{display:none}
  .wxf-note-m{display:inline}
}

/* ---------- 无障碍 / 打印 ---------- */
@media (prefers-reduced-motion:reduce){
  .wxf-btn,.wxf-btn::before,.wxf-panel,.wxf-kf,.wxf-dot{transition:none;animation:none}
}
@media print{.wxf{display:none!important}}
