/* API Hub 官网转化钩子：底部转化条 + 浮动注册按钮 */
#ch-bar{
  position:fixed; left:0; right:0; bottom:0; z-index:99999;
  display:flex; align-items:center; gap:14px; flex-wrap:wrap;
  padding:12px 18px;
  background:linear-gradient(90deg,#4f46e5,#7c3aed);
  color:#fff;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"PingFang SC","Microsoft YaHei",sans-serif;
  box-shadow:0 -4px 18px rgba(0,0,0,.18);
  transform:translateY(0); transition:transform .35s ease;
}
#ch-bar.ch-hidden{ transform:translateY(110%); }
#ch-bar .ch-msg{ font-size:14px; line-height:1.4; flex:1 1 240px; }
#ch-bar .ch-msg b{ font-size:15px; }
#ch-bar .ch-count{ font-variant-numeric:tabular-nums; font-weight:700; background:rgba(255,255,255,.18); padding:2px 7px; border-radius:6px; margin:0 2px; }
#ch-bar .ch-btn{
  background:#fff; color:#4f46e5; font-weight:700; font-size:14px;
  padding:9px 18px; border-radius:999px; text-decoration:none; white-space:nowrap;
  box-shadow:0 2px 8px rgba(0,0,0,.2);
}
#ch-bar .ch-btn:hover{ opacity:.92; }
#ch-bar .ch-close{
  order:9; background:transparent; border:0; color:#fff; font-size:20px; line-height:1; cursor:pointer; opacity:.85; padding:0 4px;
}
#ch-fab{
  position:fixed; right:20px; bottom:74px; z-index:99998;
  display:flex; align-items:center; gap:8px;
  background:linear-gradient(135deg,#4f46e5,#7c3aed);
  color:#fff; font-weight:700; font-size:14px; text-decoration:none;
  padding:13px 18px; border-radius:999px;
  box-shadow:0 8px 22px rgba(79,70,229,.45);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"PingFang SC","Microsoft YaHei",sans-serif;
}
#ch-fab:hover{ opacity:.92; }
@media (max-width:560px){
  #ch-bar{ font-size:13px; padding:10px 12px; }
  #ch-fab{ right:12px; bottom:84px; padding:11px 14px; }
}
