/**
 * 线索去重通知样式 — v2 #9
 * 在 entry.ejs 中显示"检测到已有记录"的提示
 */

.lead-dedup-notice {
  display: none;
  background: linear-gradient(135deg, #fef9e7 0%, #fdebd0 100%);
  border: 1px solid #f5c842;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  animation: dedupFadeIn 0.4s ease-out;
}

.lead-dedup-notice--visible {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.lead-dedup-notice__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: #f5c842;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7d6608;
  font-size: 20px;
}

.lead-dedup-notice__body {
  flex: 1;
}

.lead-dedup-notice__title {
  font-size: 15px;
  font-weight: 600;
  color: #7d6608;
  margin: 0 0 4px 0;
}

.lead-dedup-notice__desc {
  font-size: 13px;
  color: #9a7d0a;
  margin: 0;
  line-height: 1.5;
}

.lead-dedup-notice__info {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lead-dedup-notice__tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #7d6608;
  background: rgba(245, 200, 66, 0.3);
  border-radius: 20px;
  padding: 3px 12px;
}

.lead-dedup-notice__action {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.lead-dedup-notice__btn {
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 8px;
  border: none;
  background: #7d6608;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.lead-dedup-notice__btn:hover {
  background: #6b5806;
}

@keyframes dedupFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 响应式 */
@media (max-width: 480px) {
  .lead-dedup-notice--visible {
    flex-direction: column;
    align-items: stretch;
  }

  .lead-dedup-notice__action {
    justify-content: flex-end;
  }
}
