/* =============================================================================
   留资上下文：来源横幅 / 抽屉里的“看完再约”条 / 各处收口 CTA
   ============================================================================= */

/* ---------- 留资面板顶部：您关注 · XXX ---------- */
.lead-ctx {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
  margin: 0 0 0.65rem;
  padding: 0.28rem 0.35rem 0.28rem 0.7rem;
  border-radius: 999px;
  background: #eaf0fe;
  color: #1c3fb0;
  font-size: 0.78rem;
  line-height: 1.3;
  animation: lead-ctx-in 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}
.lead-ctx[hidden] { display: none; }
.lead-ctx-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: #003fec; }
.lead-ctx-k { flex: none; color: #5b6e9c; font-weight: 500; }
.lead-ctx-v { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.lead-ctx-x {
  flex: none; display: grid; place-items: center; width: 20px; height: 20px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: #5b6e9c; font-size: 15px; line-height: 1; cursor: pointer;
}
.lead-ctx-x:hover { background: rgba(0, 63, 236, 0.12); color: #003fec; }
@keyframes lead-ctx-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- 抽屉里：看了一会儿后升起的转化条 ---------- */
.cap-lead {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: calc(100% - 32px);
  padding: 0.55rem 0.55rem 0.55rem 1.1rem;
  border-radius: 999px;
  background: #0f1b3d;
  color: #fff;
  box-shadow: 0 14px 36px rgba(15, 27, 61, 0.35);
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.15);
}
.cap-lead[hidden] { display: none; }
.cap-lead.is-in { opacity: 1; transform: translate(-50%, 0); }
.cap-lead-t { min-width: 0; font-size: 0.88rem; font-weight: 600; line-height: 1.35; }
.cap-lead-go.btn { flex: none; min-height: 0; height: 36px; padding: 0 1.1rem; font-size: 0.84rem; white-space: nowrap; }
.cap-lead-x {
  flex: none; display: grid; place-items: center; width: 26px; height: 26px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: rgba(255, 255, 255, 0.6); font-size: 18px; line-height: 1; cursor: pointer;
}
.cap-lead-x:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
@media (max-width: 640px) {
  .cap-lead { left: 12px; right: 12px; bottom: 12px; max-width: none; transform: translateY(16px); border-radius: 18px; padding: 0.65rem 0.65rem 0.65rem 0.9rem; flex-wrap: wrap; }
  .cap-lead.is-in { transform: none; }
  .cap-lead-t { flex: 1 1 100%; font-size: 0.84rem; padding-right: 1.5rem; }
  .cap-lead-x { position: absolute; top: 6px; right: 6px; }
}

/* ---------- 收口 CTA：架构区 / 客户案例 ---------- */
.lead-cta { display: flex; justify-content: center; }
.lead-cta--arch {
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  margin: clamp(1.25rem, 3vw, 2rem) auto 0;
  text-align: center;
}
.lead-cta-text { margin: 0; font-size: 0.95rem; color: #51618a; }
@media (max-width: 767px) { .lead-cta--arch { display: none; } }

.lead-cta--inline { margin: clamp(1.25rem, 3vw, 2rem) 0 clamp(1.5rem, 3vw, 2.25rem); }
.lead-cta-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.35rem; border-radius: 999px;
  background: #fff; color: #003fec; font-size: 0.95rem; font-weight: 600; text-decoration: none;
  border: 1px solid rgba(0, 63, 236, 0.22); box-shadow: 0 4px 14px rgba(0, 40, 140, 0.08);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.lead-cta-link svg { transition: transform 0.2s; }
.lead-cta-link:hover, .lead-cta-link:focus-visible { background: #f2f6ff; box-shadow: 0 8px 22px rgba(0, 40, 140, 0.14); transform: translateY(-1px); }
.lead-cta-link:hover svg { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
  .lead-ctx, .cap-lead, .lead-cta-link, .lead-cta-link svg { animation: none; transition: none; }
}

/* 与站内主按钮一致的品牌蓝（这几处不在带作用域的 .btn-primary 之下） */
.rd-cta-btn.btn, .cap-lead-go.btn, .lead-cta--arch .btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; background: #003fec; color: #fff; font-weight: 600; text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 63, 236, 0.28);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.rd-cta-btn.btn:hover, .cap-lead-go.btn:hover, .lead-cta--arch .btn:hover { background: #0033c4; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(0, 63, 236, 0.34); }
.lead-cta--arch .btn { height: 42px; padding: 0 1.4rem; font-size: 0.92rem; }
