/* ============================================================
   followups.css — 跟进记录组件
   跟进列表、卡片、头像、类型标签
   ============================================================ */

/* ============================================================
   跟进列表
   ============================================================ */
.follow-list {
  padding: 0;
}

.follow-item {
  display: flex;
  gap: var(--space-3);
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  transition: var(--tr);
}

.follow-item:last-child {
  border: none;
}

.follow-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.follow-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  color: var(--text-inverse);
  flex-shrink: 0;
}

.follow-content {
  flex: 1;
  min-width: 0;
}

.follow-name {
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  color: var(--text-2);
  margin-bottom: 2px;
}

.follow-text {
  font-size: var(--fs-sm);
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.follow-time {
  font-size: var(--fs-xs);
  color: var(--text-3);
  flex-shrink: 0;
}

/* 顾问信息 */
.fu-advisor {
  font-size: var(--fs-sm);
  color: var(--text-3);
  white-space: nowrap;
}

/* 跟进操作区 */
.fu-action {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* ============================================================
   跟进记录卡片
   ============================================================ */
.fu-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: var(--space-3);
  transition: var(--tr);
}

.fu-card:hover {
  border-color: var(--border-light, var(--border));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.fu-card.overdue {
  border-left: 3px solid var(--danger);
  background: var(--danger-light);
}

.fu-card.urgent {
  border-left: 3px solid var(--orange);
  background: var(--orange-light);
}

/* 客户头像 */
.fu-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-inverse);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  flex-shrink: 0;
}

.fu-avatar.avt-blue   { background: linear-gradient(135deg, #1a73e8, #4285f4); }
.fu-avatar.avt-green  { background: linear-gradient(135deg, #34a853, #5fca7d); }
.fu-avatar.avt-orange { background: linear-gradient(135deg, #ff6b35, #ff9a76); }
.fu-avatar.avt-purple { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }
.fu-avatar.avt-gray   { background: linear-gradient(135deg, #6b7280, #9ca3af); }

/* 客户信息 */
.fu-info {
  flex: 1;
  min-width: 0;
}

.fu-name {
  font-weight: var(--fw-semibold);
  color: var(--text);
  margin-bottom: 2px;
}

.fu-phone {
  font-size: var(--fs-sm);
  color: var(--text-3);
}

/* 跟进类型标签 */
.fu-type-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  margin-bottom: 6px;
}

.fu-type-tag.type-call    { background: var(--primary-light); color: var(--primary); }
.fu-type-tag.type-wechat  { background: var(--success-light); color: var(--success); }
.fu-type-tag.type-visit   { background: var(--orange-light);  color: var(--orange); }
.fu-type-tag.type-meeting { background: var(--purple-light);  color: #8b5cf6; }
.fu-type-tag.type-sms     { background: rgba(107,114,128,.1); color: #6b7280; }
.fu-type-tag.type-other   { background: rgba(107,114,128,.08); color: #9ca3af; }

/* 跟进内容 */
.fu-content {
  font-size: var(--fs-base);
  color: var(--text-2);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: var(--space-1);
}

/* 跟进结果标签 */
.fu-result-tag {
  display: inline-block;
  font-size: var(--fs-xs);
  padding: 1px 6px;
  border-radius: 6px;
  margin-top: var(--space-1);
}

.fu-result-tag.result-interested { background: var(--danger-light);  color: var(--danger); }
.fu-result-tag.result-thinking   { background: var(--gold-light);   color: #c77d00; }
.fu-result-tag.result-rejected   { background: rgba(0,0,0,.05);    color: #9ca3af; }
.fu-result-tag.result-signed     { background: var(--success-light); color: var(--success); }
.fu-result-tag.result-other      { background: rgba(0,0,0,.04);    color: #9ca3af; }

/* 下次跟进时间 */
.fu-next {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.fu-next-time {
  font-size: var(--fs-sm);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.fu-next-time.overdue  { background: var(--danger-light);  color: var(--danger); }
.fu-next-time.today    { background: var(--orange-light);  color: var(--orange); }
.fu-next-time.tomorrow { background: var(--gold-light);    color: #c77d00; }
.fu-next-time.soon     { background: var(--primary-light); color: var(--primary); }
.fu-next-time.normal   { background: var(--bg-input);      color: var(--text-3); }