/* =============================================================================
   实例与落地（#customers .lc）：左侧客户列表 + 右侧「挑战 → 落地 → 成果」三步
   - 列表带进度条自动轮播；悬停 / 聚焦 / 滚出视口暂停，手动点过就停
   - 动画只在 .lc--anim 下生效；无 JS / prefers-reduced-motion 时直接是终态
   ============================================================================= */

#customers .lc {
  --lc-ink: #0c1929;
  --lc-sub: #334155;
  --lc-muted: #64748b;
  --lc-faint: #94a3b8;
  --lc-line: #e3eaf6;
  --lc-blue: #003fec;
  --lc-blue-deep: #0b2fa8;
  --lc-blue-soft: #e8efff;
  --lc-blue-line: #c9d9ff;
  --lc-warm: #b4462a;
  --lc-warm-soft: #fff5f1;
  --lc-warm-line: #f6d9cf;
  --lc-ease: cubic-bezier(0.22, 1, 0.36, 1);
  display: grid;
  grid-template-columns: minmax(220px, 0.29fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
  margin-bottom: 1.25rem;
}

/* ---------- 客户列表 ---------- */
#customers .lc-list {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.2rem 0;
  border-left: 1px solid var(--lc-line);
}
#customers .lc-tab {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  width: 100%;
  padding: 0.62rem 0.9rem 0.62rem 1.15rem;
  border: 0;
  border-radius: 0 12px 12px 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.25s;
}
#customers .lc-tab:hover { background: rgba(0, 63, 236, 0.035); }
#customers .lc-tab:focus-visible { outline: 2px solid var(--lc-blue); outline-offset: -2px; }
#customers .lc-tab[aria-selected="true"] { background: linear-gradient(90deg, var(--lc-blue-soft), rgba(232, 239, 255, 0)); }
#customers .lc-tab-n {
  flex: none;
  padding-top: 0.2rem;
  font: 700 0.72rem var(--font-mono, ui-monospace, "SF Mono", Menlo, Consolas, monospace);
  letter-spacing: 0.1em;
  color: var(--lc-faint);
  transition: color 0.25s;
}
#customers .lc-tab-tx { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
#customers .lc-tab-t { font-size: 1rem; font-weight: 700; color: var(--lc-muted); transition: color 0.25s; }
#customers .lc-tab-s { font-size: 0.78rem; color: var(--lc-faint); }
#customers .lc-tab:hover .lc-tab-t { color: var(--lc-ink); }
#customers .lc-tab[aria-selected="true"] .lc-tab-n { color: var(--lc-blue); }
#customers .lc-tab[aria-selected="true"] .lc-tab-t { color: var(--lc-ink); }
#customers .lc-tab[aria-selected="true"] .lc-tab-s { color: var(--lc-muted); }

/* 竖向进度条压在列表左边线上 */
#customers .lc-tab-bar {
  position: absolute;
  left: -1px;
  top: 0.55rem;
  bottom: 0.55rem;
  width: 2px;
  overflow: hidden;
  border-radius: 2px;
}
#customers .lc-tab-bar i {
  position: absolute;
  inset: 0;
  background: var(--lc-blue);
  transform: scaleY(0);
  transform-origin: center top;
}
#customers .lc-tab[aria-selected="true"] .lc-tab-bar i { transform: none; }
#customers .lc--anim .lc-tab[aria-selected="true"] .lc-tab-bar i { animation: lc-fill-y var(--lc-dur, 7s) linear both; }
#customers .lc--anim.is-held .lc-tab[aria-selected="true"] .lc-tab-bar i,
#customers .lc--anim.is-offscreen .lc-tab[aria-selected="true"] .lc-tab-bar i { animation-play-state: paused; }
#customers .lc--anim.is-manual .lc-tab[aria-selected="true"] .lc-tab-bar i { animation: none; transform: none; }

/* ---------- 案例面板 ---------- */
#customers .lc-panes {
  position: relative;
  min-width: 0;
  padding: clamp(1.35rem, 2.6vw, 2rem);
  border: 1px solid var(--lc-line);
  border-radius: 20px;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(0, 63, 236, 0.06), transparent 70%),
    #fff;
  box-shadow: 0 24px 48px -28px rgba(11, 57, 109, 0.22), 0 2px 6px rgba(11, 57, 109, 0.04);
}
#customers .lc-pane[hidden] { display: none; }
#customers .lc-pane:focus-visible { outline: 2px solid var(--lc-blue); outline-offset: 6px; border-radius: 12px; }
#customers .lc-pane-t {
  margin: 0 0 clamp(1.1rem, 2.2vw, 1.5rem);
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  font-weight: 750;
  line-height: 1.4;
  color: var(--lc-ink);
}

/* 三步流程：中间一列稍宽，列间留出箭头位置 */
#customers .lc-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
#customers .lc-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
  padding: 1.1rem 1.15rem 1.2rem;
  border: 1px solid var(--lc-line);
  border-radius: 14px;
  background: #fff;
}
/* 连接线 + 箭头：画在下一步左侧的空隙里 */
#customers .lc-step + .lc-step::before {
  content: "";
  position: absolute;
  left: -2.25rem;
  top: 50%;
  width: 2.25rem;
  height: 2px;
  margin-top: -1px;
  background: linear-gradient(90deg, var(--lc-blue-line), var(--lc-blue));
  transform-origin: left center;
}
#customers .lc-step + .lc-step::after {
  content: "";
  position: absolute;
  left: -0.55rem;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-top: 2px solid var(--lc-blue);
  border-right: 2px solid var(--lc-blue);
  transform: rotate(45deg);
}

#customers .lc-step-k {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--lc-muted);
}
#customers .lc-step-k i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  font: 700 0.7rem/1 var(--font-mono, ui-monospace, "SF Mono", Menlo, Consolas, monospace);
  font-style: normal;
  color: var(--lc-blue);
  background: var(--lc-blue-soft);
  box-shadow: inset 0 0 0 1px var(--lc-blue-line);
}

/* 1 · 挑战：暖色，像一条客户原话 */
#customers .lc-step--pain {
  border-color: var(--lc-warm-line);
  background: linear-gradient(180deg, var(--lc-warm-soft), #fff 85%);
}
#customers .lc-step--pain .lc-step-k { color: var(--lc-warm); }
#customers .lc-step--pain .lc-step-k i { color: var(--lc-warm); background: #fff; box-shadow: inset 0 0 0 1px var(--lc-warm-line); }
#customers .lc-quote { position: relative; margin: 0; padding-left: 0.9rem; border-left: 3px solid var(--lc-warm-line); }
#customers .lc-quote p {
  margin: 0;
  font-size: clamp(0.98rem, 1.3vw, 1.08rem);
  font-weight: 700;
  line-height: 1.6;
  color: var(--lc-ink);
}
#customers .lc-quote p::before { content: "\201C"; }
#customers .lc-quote p::after { content: "\201D"; }

/* 2 · 落地：部署方式 + 能力胶囊 */
#customers .lc-mode {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.38rem 0.75rem;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--lc-ink);
  background: #f4f7fd;
  box-shadow: inset 0 0 0 1px var(--lc-line);
}
#customers .lc-mode::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003fec' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='7' rx='2'/%3E%3Crect x='3' y='13' width='18' height='7' rx='2'/%3E%3Cpath d='M7 7.5h.01M7 16.5h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}
#customers .lc-used { display: flex; flex-direction: column; gap: 0.5rem; }
#customers .lc-used-k { font-size: 0.74rem; color: var(--lc-faint); }
#customers .lc-caps { display: flex; flex-wrap: wrap; gap: 0.45rem; }
#customers .lc-cap {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.34rem 0.55rem 0.34rem 0.7rem;
  border: 1px solid var(--lc-blue-line);
  border-radius: 999px;
  background: var(--lc-blue-soft);
  color: var(--lc-blue);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--lc-ease);
}
#customers .lc-cap svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#customers .lc-cap:hover,
#customers .lc-cap:focus-visible {
  background: var(--lc-blue);
  border-color: var(--lc-blue);
  color: #fff;
  transform: translateY(-1px);
  outline: none;
}

/* 3 · 成果：品牌蓝实底，最醒目 */
#customers .lc-step--win {
  border-color: transparent;
  color: #fff;
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(120, 160, 255, 0.45), transparent 65%),
    linear-gradient(160deg, var(--lc-blue) 0%, var(--lc-blue-deep) 100%);
  box-shadow: 0 18px 36px -20px rgba(0, 47, 168, 0.65);
}
#customers .lc-step--win .lc-step-k { color: rgba(255, 255, 255, 0.82); }
#customers .lc-step--win .lc-step-k i { color: #fff; background: rgba(255, 255, 255, 0.16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
#customers .lc-metrics { display: flex; flex-direction: column; gap: 0.9rem; }
#customers .lc-metrics > div { display: flex; flex-direction: column; gap: 0.2rem; }
#customers .lc-metrics > div + div { padding-top: 0.9rem; border-top: 1px solid rgba(255, 255, 255, 0.2); }
#customers .lc-metrics strong {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
#customers .lc-metrics span { font-size: 0.84rem; line-height: 1.45; color: rgba(255, 255, 255, 0.85); }

/* ---------- 底栏：生态伙伴 + 聊场景，一条横栏收住 ---------- */
#customers .lc-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem 1.5rem;
  padding: 0.85rem 0.85rem 0.85rem 1.15rem;
  border: 1px solid var(--lc-line, #e3eaf6);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}
#customers .lc-foot-partners { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem; min-width: 0; }
#customers .lc-foot-k { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; color: #64748b; }
#customers .lc-foot-row { display: flex; flex-wrap: wrap; gap: 0.45rem; }
#customers .lc-partner {
  padding: 0.34rem 0.8rem;
  border-radius: 999px;
  background: #f1f5fd;
  box-shadow: inset 0 0 0 1px #e3eaf6;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
#customers .lc-foot-cta { flex: none; padding: 0.6rem 1.15rem; font-size: 0.9rem; box-shadow: none; }

/* ---------- 切换动画：三步依次出现，连接线跟着画出来 ---------- */
#customers .lc--anim .lc-pane.is-play .lc-pane-t { animation: lc-rise 0.5s var(--lc-ease) both; }
#customers .lc--anim .lc-pane.is-play .lc-step { animation: lc-rise 0.55s var(--lc-ease) both; }
#customers .lc--anim .lc-pane.is-play .lc-step:nth-child(1) { animation-delay: 0.08s; }
#customers .lc--anim .lc-pane.is-play .lc-step:nth-child(2) { animation-delay: 0.42s; }
#customers .lc--anim .lc-pane.is-play .lc-step:nth-child(3) { animation-delay: 0.76s; }
#customers .lc--anim .lc-pane.is-play .lc-step + .lc-step::before { animation: lc-draw 0.35s var(--lc-ease) both; }
#customers .lc--anim .lc-pane.is-play .lc-step:nth-child(2)::before { animation-delay: 0.3s; }
#customers .lc--anim .lc-pane.is-play .lc-step:nth-child(3)::before { animation-delay: 0.64s; }
#customers .lc--anim .lc-pane.is-play .lc-cap { animation: lc-rise 0.4s var(--lc-ease) both; }
#customers .lc--anim .lc-pane.is-play .lc-cap:nth-child(1) { animation-delay: 0.62s; }
#customers .lc--anim .lc-pane.is-play .lc-cap:nth-child(2) { animation-delay: 0.7s; }
#customers .lc--anim .lc-pane.is-play .lc-cap:nth-child(3) { animation-delay: 0.78s; }
#customers .lc--anim .lc-pane.is-play .lc-metrics strong { animation: lc-pop 0.5s var(--lc-ease) both; }
#customers .lc--anim .lc-pane.is-play .lc-metrics > div:nth-child(1) strong { animation-delay: 0.95s; }
#customers .lc--anim .lc-pane.is-play .lc-metrics > div:nth-child(2) strong { animation-delay: 1.08s; }

@keyframes lc-fill-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes lc-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes lc-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes lc-pop { from { opacity: 0; transform: scale(0.86); } to { opacity: 1; transform: none; } }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  #customers .lc-flow { gap: 1.9rem; }
  #customers .lc-step + .lc-step::before { left: -1.9rem; width: 1.9rem; }
}
@media (max-width: 980px) {
  #customers .lc { grid-template-columns: minmax(0, 1fr); }
  #customers .lc-list {
    flex-direction: row;
    gap: 0.25rem;
    margin: 0 calc(-1 * clamp(1rem, 4vw, 1.5rem));
    padding: 0 clamp(1rem, 4vw, 1.5rem);
    border-left: 0;
    border-bottom: 1px solid var(--lc-line);
    overflow-x: auto;
    scrollbar-width: none;
  }
  #customers .lc-list::-webkit-scrollbar { display: none; }
  #customers .lc-tab { flex: 0 0 auto; width: auto; padding: 0.75rem 0.85rem 0.85rem; border-radius: 10px 10px 0 0; }
  #customers .lc-tab[aria-selected="true"] { background: linear-gradient(0deg, var(--lc-blue-soft), rgba(232, 239, 255, 0)); }
  #customers .lc-tab-s { display: none; }
  #customers .lc-tab-bar { left: 0.55rem; right: 0.55rem; top: auto; bottom: -1px; width: auto; height: 2px; }
  #customers .lc-tab-bar i { transform: scaleX(0); transform-origin: left center; }
  #customers .lc--anim .lc-tab[aria-selected="true"] .lc-tab-bar i { animation-name: lc-fill-x; }
}
@media (max-width: 760px) {
  #customers .lc-panes { padding: 1.1rem; border-radius: 16px; }
  #customers .lc-flow { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  #customers .lc-step + .lc-step::before {
    left: 50%;
    top: -1.5rem;
    width: 2px;
    height: 1.5rem;
    margin: 0 0 0 -1px;
    background: linear-gradient(180deg, var(--lc-blue-line), var(--lc-blue));
    transform-origin: center top;
  }
  #customers .lc-step + .lc-step::after { left: 50%; top: -0.55rem; margin: 0 0 0 -4px; transform: rotate(135deg); }
  #customers .lc--anim .lc-pane.is-play .lc-step + .lc-step::before { animation-name: lc-draw-y; }
  #customers .lc-metrics { flex-direction: row; gap: 1rem; }
  #customers .lc-metrics > div { flex: 1 1 0; min-width: 0; }
  #customers .lc-metrics > div + div { padding: 0 0 0 1rem; border-top: 0; border-left: 1px solid rgba(255, 255, 255, 0.2); }
}
@keyframes lc-fill-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes lc-draw-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }

@media (prefers-reduced-motion: reduce) {
  #customers .lc-tab,
  #customers .lc-cap { transition: none; }
}
