/* ===== ClosAI 官网全站吸底获客条（cta-dock） ===== */
html.cd-lock body{ /* 预留：当前不用 padding，靠近底自动隐藏避免遮挡页脚 */ }

.cd{
  position:fixed;left:0;right:0;bottom:0;z-index:860;
  background:rgba(255,255,255,.95);
  -webkit-backdrop-filter:saturate(1.4) blur(14px);
  backdrop-filter:saturate(1.4) blur(14px);
  border-top:1px solid #E5E9F3;
  box-shadow:0 -12px 34px -18px rgba(15,23,42,.26);
  transform:translateY(115%);
  transition:transform .36s cubic-bezier(.22,.61,.36,1);
  will-change:transform;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  padding-bottom:env(safe-area-inset-bottom);
}
.cd.on{transform:translateY(0)}
.cd-in{
  max-width:1200px;margin:0 auto;height:64px;
  display:flex;align-items:center;gap:14px;
  padding:0 22px;
}
.cd-txt{display:flex;align-items:center;gap:10px;min-width:0}
.cd-msg{
  font-size:14px;color:#334155;font-weight:600;letter-spacing:.1px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.cd-msg b{color:#6D28D9;font-weight:800}
.cd-act{margin-left:auto;display:flex;align-items:center;gap:10px;flex:none}
.cd-btn{
  height:40px;padding:0 20px;border-radius:10px;
  display:inline-flex;align-items:center;justify-content:center;
  font-size:13.5px;font-weight:700;letter-spacing:.2px;
  text-decoration:none;white-space:nowrap;
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease,border-color .18s ease;
}
.cd-primary{
  background:linear-gradient(135deg,#1E3A8A 0%,#7C3AED 100%);
  color:#fff;box-shadow:0 8px 20px -9px rgba(124,58,237,.75);
}
.cd-primary:hover{transform:translateY(-1px);box-shadow:0 12px 24px -9px rgba(124,58,237,.85)}
.cd-diag{background:#fff;color:#6D28D9;border:1.5px solid #C9B6F8;box-shadow:0 4px 12px -6px rgba(124,58,237,.35)}
.cd-diag:hover{background:#FAF7FF;border-color:#7C3AED;transform:translateY(-1px)}
.cd-x{
  margin-left:2px;
  width:30px;height:30px;border:none;border-radius:8px;background:transparent;
  color:#94A3B8;font-size:15px;line-height:1;cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;flex:none;
  transition:background .18s,color .18s;
}
.cd-x:hover{background:#F1F5F9;color:#475569}

/* AI 光球（与首页「销售问题诊断」按钮同源） */
.cd-orb{
  width:22px;height:22px;border-radius:7px;flex:none;
  display:inline-flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#7C3AED 0%,#A78BFA 100%);
  box-shadow:0 0 0 0 rgba(124,58,237,.45);
  animation:cdHalo 2.9s ease-out infinite;
}
.cd-orb svg{width:16px;height:16px;display:block}
.cd-orb .spk{transform-origin:12px 12px;animation:cdTwk 2.9s ease-in-out infinite}
@keyframes cdHalo{
  0%{box-shadow:0 0 0 0 rgba(124,58,237,.45)}
  72%{box-shadow:0 0 0 7px rgba(124,58,237,0)}
  100%{box-shadow:0 0 0 0 rgba(124,58,237,0)}
}
@keyframes cdTwk{0%,100%{opacity:.8;transform:scale(.88)}50%{opacity:1;transform:scale(1.12)}}

/* ===== 窄屏：两段式，按钮平分整行 ===== */
@media(max-width:900px){
  .cd-in{
    height:auto;flex-wrap:wrap;gap:8px;
    padding:9px 14px 10px;
  }
  .cd-txt{flex:1 1 auto;min-width:0}
  .cd-msg{font-size:12.5px}
  .cd-orb{width:19px;height:19px;border-radius:6px}
  .cd-orb svg{width:14px;height:14px}
  .cd-x{order:2;width:26px;height:26px;font-size:13px;margin-left:auto}
  .cd-act{margin-left:0;flex:1 1 100%;gap:8px;order:3}
  .cd-btn{flex:1 1 0;height:42px;padding:0 8px;font-size:13.5px;border-radius:11px}
  /* 右下角咨询球给吸底条让位 */
  html.cd-lock #cw{bottom:calc(114px + env(safe-area-inset-bottom))!important;transition:bottom .3s ease}
}

@media(prefers-reduced-motion:reduce){
  .cd{transition:none}
  .cd-orb,.cd-orb .spk{animation:none}
  html.cd-lock #cw{transition:none}
}
