/* ============================================
   线索管理系统 - 设计系统 CSS
   PC + H5 响应式
   ============================================ */

/* ---------- CSS 变量 ---------- */
:root {
  /* 主色 */
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-light: #eff6ff;
  --primary-bg: #dbeafe;
  /* 功能色 */
  --success: #22c55e;
  --success-light: #f0fdf4;
  --success-bg: #dcfce7;
  --warning: #f59e0b;
  --warning-light: #fffbeb;
  --warning-bg: #fef3c7;
  --danger: #ef4444;
  --danger-light: #fef2f2;
  --danger-bg: #fee2e2;
  --purple: #8b5cf6;
  --purple-light: #f5f3ff;
  /* 中性色 */
  --bg: #f5f7fa;
  --card: #ffffff;
  --text-1: #1f2937;
  --text-2: #6b7280;
  --text-3: #9ca3af;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --hover: #f9fafb;
  /* 尺寸 */
  --sidebar-w: 220px;
  --header-h: 56px;
  --tabbar-h: 56px;
  --radius-card: 12px;
  --radius-btn: 8px;
  --radius-input: 8px;
  --radius-tag: 6px;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-dropdown: 0 4px 12px rgba(0,0,0,0.1);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 14px; }

/* ---------- 布局：PC 侧边栏 ---------- */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--card);
  border-right: 1px solid var(--border-light);
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.sidebar-logo {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-light);
}
.sidebar-logo .logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px; font-weight: 700;
}
.sidebar-logo .logo-text {
  font-size: 16px; font-weight: 700; color: var(--text-1);
}
.sidebar-menu { flex: 1; padding: 8px 0; overflow-y: auto; }
.sidebar-menu .menu-group {
  padding: 6px 20px 2px;
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sidebar-menu .menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  color: var(--text-2);
  font-size: 13px;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all 0.15s;
}
.sidebar-menu .menu-item:hover {
  background: var(--hover);
  color: var(--primary);
}
.sidebar-menu .menu-item.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
  border-left-color: var(--primary);
}
.sidebar-menu .menu-item .menu-icon {
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.sidebar-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-light);
  font-size: 12px;
  color: var(--text-3);
}

/* ---------- 布局：PC 顶部栏 ---------- */
.header {
  position: fixed;
  top: 0; left: var(--sidebar-w); right: 0;
  height: var(--header-h);
  background: var(--card);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 90;
}
.header .page-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-1);
}
.header .page-subtitle {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 1px;
}
.header .header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header .user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-btn);
  transition: background 0.15s;
}
.header .user-info:hover { background: var(--hover); }
.header .user-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.15s;
}
.header .user-avatar:hover { transform: scale(1.08); }
.header .user-avatar svg { width: 18px; height: 18px; }
.header .user-avatar.avatar-vip {
  background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
  box-shadow: 0 2px 8px rgba(253, 160, 133, 0.45);
}
.header .user-avatar.avatar-staff {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.45);
}
.header .user-avatar .avatar-badge {
  position: absolute;
  bottom: -3px; right: -3px;
  font-size: 11px;
  background: #fff;
  border-radius: 50%;
  width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  line-height: 1;
}
.header .user-name {
  font-size: 14px;
  color: var(--text-1);
  font-weight: 500;
}

/* ---------- 布局：主内容区 ---------- */
.main {
  margin-left: var(--sidebar-w);
  margin-top: var(--header-h);
  padding: 24px;
  min-height: calc(100vh - var(--header-h));
}

/* ---------- 布局：H5 底部 Tab ---------- */
.tabbar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--tabbar-h);
  background: var(--card);
  border-top: 1px solid var(--border-light);
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar .tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text-3);
  font-size: 11px;
  cursor: pointer;
  transition: color 0.15s;
}
.tabbar .tab-item .tab-icon { display:flex; align-items:center; justify-content:center; }
.tabbar .tab-item .tab-icon svg { width: 22px; height: 22px; }
.tabbar .tab-item.active { color: var(--primary); }
.tabbar .tab-item.active .tab-icon svg { stroke-width: 2.2; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 20px;
  margin-bottom: 16px;
}
.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-title .title-icon { margin-right: 8px; }

/* ---------- 数据看板卡片 ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.stat-card {
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.stat-card .stat-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px;
  margin-bottom: 14px;
}
.stat-card .stat-icon.blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.stat-card .stat-icon.green { background: linear-gradient(135deg, #22c55e, #16a34a); }
.stat-card .stat-icon.orange { background: linear-gradient(135deg, #f59e0b, #d97706); }
.stat-card .stat-icon.red { background: linear-gradient(135deg, #ef4444, #dc2626); }
.stat-card .stat-icon.purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.stat-card .stat-icon.gray { background: linear-gradient(135deg, #6b7280, #4b5563); }
.stat-card .stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.2;
}
.stat-card .stat-label {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 6px;
}
.stat-card .stat-sub {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover:not(:disabled) { background: #16a34a; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-warning:hover:not(:disabled) { background: #d97706; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #dc2626; }
.btn-default { background: var(--border-light); color: var(--text-1); }
.btn-default:hover:not(:disabled) { background: var(--border); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-2);
}
.btn-outline:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-lg { padding: 12px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-link {
  background: none;
  border: none;
  color: var(--primary);
  padding: 4px 8px;
  font-size: 13px;
  font-weight: 500;
}
.btn-link:hover { color: var(--primary-dark); text-decoration: underline; }
.btn-link.danger { color: var(--danger); }
.btn-link.danger:hover { color: #dc2626; }

/* ---------- 表单 ---------- */
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 8px;
}
.form-group label .required { color: var(--danger); margin-left: 2px; }
.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  font-size: 14px;
  color: var(--text-1);
  background: var(--card);
  transition: all 0.15s;
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.form-control::placeholder { color: var(--text-3); }
textarea.form-control { resize: vertical; min-height: 80px; }
select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
  transition: all 0.15s;
}
select.form-control:hover {
  border-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
select.form-control:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
select.form-control option {
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text-1);
  background: var(--card);
}
select.form-control option:checked {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 500;
}
select.form-control option:hover {
  background: var(--bg-2);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
.form-hint {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 6px;
}
.form-error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 6px;
}
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

/* ---------- 表格 ---------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow-card);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.table thead th {
  background: var(--hover);
  color: var(--text-2);
  font-weight: 600;
  font-size: 13px;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}
.table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-1);
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--hover); }
.table .actions {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-tag);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}
.tag-success { background: var(--success-bg); color: #16a34a; }
.tag-warning { background: var(--warning-bg); color: #d97706; }
.tag-danger { background: var(--danger-bg); color: #dc2626; }
.tag-info { background: var(--primary-bg); color: var(--primary-dark); }
.tag-default { background: var(--border-light); color: var(--text-2); }
.tag-purple { background: var(--purple-light); color: #7c3aed; }

/* ---------- 搜索/筛选栏 ---------- */
.filter-bar {
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 16px 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.filter-bar .filter-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.filter-bar .filter-item label {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
}
.filter-bar .filter-item .form-control {
  width: 200px;
}
.filter-bar .filter-actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

/* ---------- 分页 ---------- */
.pagination {
  background: var(--card);
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  border-top: 1px solid var(--border-light);
  padding: 0;
  overflow: hidden;
}
/* 统计栏 */
.pagination .stat-bar {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 14px 20px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
}
.pagination .stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-2);
  padding: 4px 14px;
  border-right: 1px solid var(--border-light);
}
.pagination .stat-item:last-child { border-right: none; }
.pagination .stat-item b {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-1);
}
.pagination .stat-item.stat-total b { color: var(--purple); }
.pagination .stat-item.stat-new b { color: var(--primary); }
.pagination .stat-item.stat-valid b { color: var(--success); }
.pagination .stat-item.stat-invalid b { color: var(--text-3); }
/* 分页控件 */
.pagination .page-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 12px;
  flex-wrap: wrap;
}
.pagination .page-size {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
}
.pagination .page-size select {
  padding: 7px 28px 7px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-1);
  background: var(--card);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  transition: border-color 0.15s;
}
.pagination .page-size select:hover { border-color: var(--primary); }
.pagination .page-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pagination .page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s;
  text-decoration: none;
}
.pagination .page-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.pagination .page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.pagination .page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: var(--bg-2);
}
.pagination .page-info {
  font-size: 13px;
  color: var(--text-3);
  padding: 0 8px;
  min-width: 70px;
  text-align: center;
}
.pagination .page-info b {
  color: var(--text-1);
  font-weight: 600;
}

/* ---------- 提示消息 ---------- */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.alert-success { background: var(--success-light); color: #16a34a; border: 1px solid #bbf7d0; }
.alert-error { background: var(--danger-light); color: #dc2626; border: 1px solid #fecaca; }
.alert-warning { background: var(--warning-light); color: #d97706; border: 1px solid #fde68a; }
.alert-info { background: var(--primary-light); color: var(--primary-dark); border: 1px solid var(--primary-bg); }

/* ---------- 弹窗 ---------- */
.modal-mask {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-mask.show { display: flex; }
.modal-box {
  background: var(--card);
  border-radius: var(--radius-card);
  padding: 24px;
  max-width: 480px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: modalIn 0.2s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 12px;
}
.modal-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 16px;
}
.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.modal-actions .btn { flex: 1; }

/* 查重弹窗 */
.modal-box .dup-tip{font-size:14px;color:var(--text-2);margin-bottom:14px;line-height:1.6}
.modal-box .dup-list{display:flex;flex-direction:column;gap:8px;max-height:40vh;overflow-y:auto}
.modal-box .dup-item{padding:12px 14px;border:1px solid #fde68a;border-radius:10px;background:#fffbeb}
.modal-box .dup-item .drow{font-size:13px;color:var(--text-2);margin:3px 0;line-height:1.5}
.modal-box .dup-item .drow .label{color:var(--text-3);display:inline-block;min-width:42px;margin-right:8px}

/* ---------- 空状态 ---------- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-3);
}
.empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}
.empty-state .empty-text {
  font-size: 15px;
  color: var(--text-2);
}

/* ---------- 登录页 ---------- */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
}
.login-card {
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  padding: 40px;
  width: 100%;
  max-width: 400px;
}
.login-card .login-logo {
  text-align: center;
  margin-bottom: 28px;
}
.login-card .login-logo .logo-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 24px; font-weight: 700;
  margin-bottom: 12px;
}
.login-card .login-logo h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-1);
}
.login-card .login-logo p {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 4px;
}

/* ---------- 信息卡（公开页） ---------- */
.lead-card-page {
  min-height: 100vh;
  background: var(--bg);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.lead-card {
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  padding: 28px;
  width: 100%;
  max-width: 480px;
}
.lead-card .card-header {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 20px;
}
.lead-card .card-header .card-avatar {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 24px; font-weight: 700;
  margin-bottom: 12px;
}
.lead-card .card-header .card-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-1);
}
.lead-card .card-header .card-sub {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 4px;
}
.lead-card .info-row {
  display: flex;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
}
.lead-card .info-row:last-child { border-bottom: none; }
.lead-card .info-row .info-label {
  width: 80px;
  color: var(--text-3);
  flex-shrink: 0;
}
.lead-card .info-row .info-value {
  color: var(--text-1);
  flex: 1;
  word-break: break-all;
}

/* ---------- 响应式：H5 ---------- */
@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }
  .sidebar { display: none; }
  .header {
    left: 0;
    padding: 0 16px;
    height: auto;
    min-height: var(--header-h);
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .header .page-title { font-size: 18px; }
  .header .header-right .user-name { display: none; }
  .main {
    margin-left: 0;
    margin-top: 84px;
    padding: 16px;
    padding-top: 16px;
    padding-bottom: calc(var(--tabbar-h) + 24px);
  }
  .main > *:first-child {
    margin-top: 8px;
  }
  .tabbar { display: flex; }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .stat-card { padding: 16px; }
  .stat-card .stat-value { font-size: 24px; }
  .form-row, .form-row-3 {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-bar .filter-item .form-control { width: 100%; }
  .filter-bar .filter-actions {
    margin-left: 0;
    width: 100%;
  }
  .filter-bar .filter-actions .btn { flex: 1; }
/* 搜索组：PC端输入框+按钮紧挨 */
.search-group .search-input-wrap {
  display: flex;
  align-items: stretch;
}
.search-group .search-input-wrap .form-control {
  flex: 1;
  border-radius: 8px 0 0 8px;
  border-right: none;
  min-width: 0;
}
.search-group .search-input-wrap .search-btn {
  border-radius: 0;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: -1px;
}
.search-group .search-input-wrap .search-btn:last-child {
  border-radius: 0 8px 8px 0;
}
.search-group .search-input-wrap .clear-btn {
  border-radius: 0 8px 8px 0;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: -1px;
  text-decoration: none;
}
  .card { padding: 16px; }
  .login-card { padding: 28px 24px; }
  .pagination {
    flex-direction: column;
    align-items: stretch;
  }
  .pagination .page-controls { justify-content: center; }
  .lead-card { padding: 20px; }
  .form-actions { flex-direction: column; }
  .form-actions .btn { width: 100%; }
}

/* ---------- 工具类 ---------- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-3); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-primary { color: var(--primary); }
.fw-bold { font-weight: 700; }
.fs-12 { font-size: 12px; }
.fs-13 { font-size: 13px; }
.fs-16 { font-size: 16px; }
.fs-18 { font-size: 18px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.flex-1 { flex: 1; }
.w-100 { width: 100%; }


/* ---------- 线索列表：H5 卡片模式 ---------- */
.lead-cards { display: none; }
.lead-card-item {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}
.lead-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}
.lead-card-head .cust-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
}
.lead-card-head .cust-contact {
  font-size: 13px;
  color: var(--text-3);
  margin-left: 8px;
}
.lead-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.lead-card-row {
  display: flex;
  align-items: center;
  font-size: 14px;
  gap: 8px;
}
.lead-card-row .row-label {
  color: var(--text-3);
  width: 48px;
  flex-shrink: 0;
  font-size: 13px;
}
.lead-card-row .row-value {
  color: var(--text-1);
  flex: 1;
  word-break: break-all;
}
.lead-card-row .row-value a {
  color: var(--primary);
  text-decoration: none;
}
.lead-card-row .tag { flex-shrink: 0; }
.lead-card-actions {
  display: flex;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}
.lead-card-actions .btn {
  flex: 1;
  padding: 8px 0;
  font-size: 13px;
  border-radius: var(--radius-sm);
}
.lead-card-actions .btn-link {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  font-size: 13px;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  color: var(--text-2);
  text-decoration: none;
  cursor: pointer;
  border: none;
}
.lead-card-actions .btn-link.danger { color: var(--danger); }
.lead-card-actions .btn-link.mkcard { color: var(--success); }

/* 状态标签：可点击 */
.status-badge {
  cursor: pointer;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
  user-select: none;
}
.status-badge::after {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.6;
  margin-left: 2px;
}
.status-badge:hover { opacity: 0.85; transform: translateY(-1px); }
.status-badge:active { transform: translateY(0); }

/* 状态弹窗 */
.status-pop {
  position: absolute;
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0;
  z-index: 200;
  min-width: 160px;
  overflow: hidden;
}
.status-pop .pop-title {
  padding: 12px 16px 8px;
  font-size: 13px;
  color: var(--text-3);
  font-weight: 500;
}
.status-pop .pop-options { padding: 4px 8px 8px; }
.status-pop button {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: none;
  text-align: left;
  font-size: 14px;
  color: var(--text-1);
  cursor: pointer;
  border-radius: var(--radius-sm);
  gap: 10px;
  position: relative;
}
.status-pop button:hover { background: var(--bg-2); }
.status-pop button.cur {
  color: var(--primary);
  font-weight: 600;
  background: var(--primary-light);
}
.status-pop button .status-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-pop button .status-label { flex: 1; }
.status-pop button .status-desc {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 400;
}
.status-pop button.cur .status-desc { color: var(--primary); opacity: 0.7; }
.status-pop button .status-check {
  color: var(--primary);
  font-weight: 700;
  font-size: 16px;
}
.status-pop .pop-cancel {
  border-top: 1px solid var(--border-light);
  padding: 8px;
}
.status-pop .pop-cancel button {
  justify-content: center;
  color: var(--text-3);
  font-weight: 500;
  padding: 10px;
}
.status-pop .pop-cancel button:hover { background: var(--bg-2); color: var(--text-1); }

/* ---------- H5 响应式补充 ---------- */
@media (max-width: 768px) {
  .table-wrap { display: none; }
  .lead-cards { display: block; }
  .filter-bar form {
    flex-direction: column;
    gap: 10px;
  }
  .filter-bar .filter-item { width: 100%; }
  .filter-bar .filter-item .form-control { width: 100%; }
  .filter-bar .btn { width: 100%; }
  /* H5端：搜索组恢复垂直布局 */
  .search-group .search-input-wrap {
    display: block;
  }
  .search-group .search-input-wrap .form-control {
    border-radius: 8px;
    border-right: 1px solid var(--border);
    width: 100%;
  }
  .search-group .search-input-wrap .search-btn {
    border-radius: 8px;
    margin-top: 10px;
    margin-left: 0;
    width: 100%;
  }
  .search-group .search-input-wrap .clear-btn {
    border-radius: 8px;
    margin-top: 10px;
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
  .pagination .stat-bar {
    padding: 12px 16px;
    justify-content: space-around;
  }
  .pagination .stat-item {
    padding: 4px 6px;
    font-size: 11px;
    flex-direction: column;
    gap: 2px;
    text-align: center;
    border-right: none;
  }
  .pagination .stat-item b { font-size: 18px; }
  .pagination .page-controls {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px;
    gap: 12px;
  }
  .pagination .page-size {
    justify-content: center;
    padding: 10px;
    background: var(--bg-2);
    border-radius: 8px;
    font-size: 13px;
  }
  .pagination .page-nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
  }
  .pagination .page-btn {
    min-width: 42px;
    height: 38px;
    padding: 0 10px;
    font-size: 12px;
  }
  .pagination .page-info {
    min-width: auto;
    padding: 0 4px;
    font-size: 12px;
  }
  /* 状态弹窗：H5 改为底部弹出 */
  .status-pop {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    border-radius: 16px 16px 0 0 !important;
    padding: 0 !important;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    animation: slideUp 0.2s ease-out;
    max-height: 80vh;
    overflow-y: auto;
  }
  .status-pop::before {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: 12px auto 0;
  }
  .status-pop .pop-title {
    text-align: center;
    font-size: 15px;
    padding: 16px 16px 12px;
    font-weight: 600;
    color: var(--text-1);
  }
  .status-pop .pop-options {
    padding: 0 16px 12px;
  }
  .status-pop .pop-options button {
    padding: 14px 16px;
    font-size: 15px;
    border-radius: 12px;
    margin-bottom: 6px;
  }
  .status-pop .pop-options button:last-child { margin-bottom: 0; }
  .status-pop .status-desc { font-size: 13px; }
  .status-pop .pop-cancel {
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border-light);
  }
  .status-pop .pop-cancel button {
    padding: 14px;
    font-size: 16px;
    border-radius: 12px;
    background: var(--bg-2);
  }
  @keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
}
/* ===== flatpickr 日期选择器（PC+H5统一） ===== */
.flatpickr-calendar {
  box-shadow: 0 8px 32px rgba(0,0,0,0.12) !important;
  border-radius: 16px !important;
  overflow: hidden;
  border: 1px solid #f0f0f0 !important;
}
.flatpickr-months {
  padding: 12px 0 8px !important;
}
.flatpickr-current-month {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #333 !important;
}
.flatpickr-weekday {
  font-size: 13px !important;
  color: #999 !important;
  font-weight: 500 !important;
}
.flatpickr-day {
  border-radius: 10px !important;
  max-width: 38px !important;
  height: 38px !important;
  line-height: 38px !important;
  font-size: 14px !important;
  color: #333 !important;
  transition: all 0.15s !important;
}
.flatpickr-day:hover {
  background: #f0f5ff !important;
}
.flatpickr-day.selected,
.flatpickr-day.selected.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.selected.prevMonthDay,
.flatpickr-day.selected.nextMonthDay {
  background: linear-gradient(135deg,#4a7cff,#6a9cff) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(74,124,255,0.3) !important;
}
.flatpickr-day.selected * {
  color: #ffffff !important;
}
.flatpickr-day.today {
  border-color: #4a7cff !important;
  color: #4a7cff !important;
  font-weight: 600 !important;
}
.flatpickr-day.today.selected {
  color: #fff !important;
}
.flatpickr-time {
  border-top: 1px solid #f0f0f0 !important;
}
.flatpickr-time input {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #333 !important;
}
.flatpickr-time .numInputWrapper span.arrowUp:after {
  border-bottom-color: #999 !important;
}
.flatpickr-time .numInputWrapper span.arrowDown:after {
  border-top-color: #999 !important;
}
@media (max-width: 768px) {
  .flatpickr-calendar {
    width: calc(100vw - 32px) !important;
    max-width: 320px !important;
  }
  .flatpickr-day {
    max-width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    font-size: 13px !important;
  }
  .flatpickr-time {
    height: 48px !important;
  }
  .flatpickr-time input {
    font-size: 17px !important;
    height: 48px !important;
  }
}
/* ===== 标签输入组件 ===== */
.tag-input {
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  padding: 6px 10px;
  min-height: 42px;
  background: #fff;
  transition: border-color 0.2s;
}
.tag-input:focus-within {
  border-color: #4a7cff;
  box-shadow: 0 0 0 2px rgba(74,124,255,0.1);
}
.tag-list { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.tag {
  background: #e8f0ff; color: #4a7cff;
  padding: 3px 8px 3px 10px; border-radius: 12px;
  font-size: 13px; display: inline-flex; align-items: center; gap: 4px;
}
.tag-remove { cursor:pointer; font-weight:bold; opacity:0.5; font-size:14px; line-height:1; }
.tag-remove:hover { opacity:1; }
.tag-input-field { border:none; outline:none; flex:1; min-width:120px; font-size:13px; background:transparent; padding:4px 0; }
.product-tags { display:flex; flex-wrap:wrap; gap:4px; }
.product-tag { background:#f0f5ff; color:#4a7cff; padding:2px 8px; border-radius:10px; font-size:12px; }

/* 仅PC端显示 */
@media (max-width: 768px) {
  .pc-only { display: none !important; }
}

/* ========== 待跟进线索提醒通知条 ========== */
.reminder-bar {
  position: fixed;
  z-index: 10000;
  width: 380px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(24,144,255,0.25), 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  right: 24px;
  bottom: 24px;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(24,144,255,0.15);
}
.reminder-bar.show {
  transform: translateX(0);
}
.reminder-header {
  display: flex;
  align-items: center;
  padding: 16px 18px;
  background: linear-gradient(135deg, #1890ff 0%, #722ed1 100%);
  position: relative;
  overflow: hidden;
}
.reminder-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}
.reminder-header::after {
  content: '';
  position: absolute;
  bottom: -60%;
  right: 10%;
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}
.reminder-icon {
  font-size: 22px;
  margin-right: 10px;
  animation: bellShake 1s ease-in-out infinite;
  position: relative;
  z-index: 1;
}
@keyframes bellShake {
  0%, 100% { transform: rotate(0); }
  10%, 30% { transform: rotate(-15deg); }
  20%, 40% { transform: rotate(15deg); }
  50% { transform: rotate(0); }
}
.reminder-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  flex: 1;
  position: relative;
  z-index: 1;
  letter-spacing: 0.5px;
}
.reminder-close {
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: all 0.2s;
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reminder-close:hover {
  background: rgba(255,255,255,0.35);
  transform: scale(1.1);
}
.reminder-sound {
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: all 0.2s;
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
}
.reminder-sound:hover {
  background: rgba(255,255,255,0.35);
  transform: scale(1.1);
}
.reminder-body {
  padding: 18px;
}
.reminder-count {
  font-size: 14px;
  color: #666;
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.reminder-count b {
  background: linear-gradient(135deg, #ff4d4f, #ff7a45);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}
.reminder-count span {
  color: #999;
  font-size: 13px;
}
.reminder-list {
  max-height: 140px;
  overflow-y: auto;
  background: #fafbfc;
  border-radius: 10px;
  padding: 8px 12px;
}
.reminder-list::-webkit-scrollbar {
  width: 4px;
}
.reminder-list::-webkit-scrollbar-thumb {
  background: #d9d9d9;
  border-radius: 2px;
}
.reminder-item {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #555;
  padding: 7px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.2s;
}
.reminder-item:last-child {
  border-bottom: none;
}
.reminder-item:hover {
  color: #1890ff;
  padding-left: 4px;
}
.reminder-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #faad14, #ff7a45);
  margin-right: 10px;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(250,173,20,0.15);
}
.reminder-more {
  font-size: 12px;
  color: #999;
  padding: 8px 0 4px;
  text-align: center;
  font-style: italic;
}
.reminder-actions {
  display: flex;
  gap: 10px;
  padding: 14px 18px 18px;
  border-top: 1px solid #f5f5f5;
}
.reminder-btn {
  flex: 1;
  padding: 10px 0;
  border: 1.5px solid #e8e8e8;
  background: #fff;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  color: #666;
}
.reminder-btn:hover {
  border-color: #1890ff;
  color: #1890ff;
  background: #f0f8ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(24,144,255,0.15);
}
.reminder-btn:active {
  transform: translateY(0);
}
.reminder-btn-primary {
  background: linear-gradient(135deg, #1890ff, #722ed1);
  border: none;
  color: #fff;
  box-shadow: 0 4px 12px rgba(24,144,255,0.3);
}
.reminder-btn-primary:hover {
  background: linear-gradient(135deg, #40a9ff, #9254de);
  color: #fff;
  box-shadow: 0 6px 20px rgba(24,144,255,0.4);
}
/* H5端：顶部通知条 */
@media (max-width: 768px) {
  .reminder-bar {
    width: calc(100% - 24px);
    right: 12px;
    left: 12px;
    bottom: auto;
    top: 12px;
    border-radius: 16px;
    transform: translateY(-150%);
    border: 1px solid rgba(24,144,255,0.15);
  }
  .reminder-bar.show {
    transform: translateY(0);
  }
  .reminder-header {
    padding: 14px 16px;
  }
  .reminder-body {
    padding: 14px 16px;
  }
  .reminder-actions {
    padding: 12px 16px 16px;
  }
  .reminder-count b {
    font-size: 24px;
  }
}
/* ===== H5端加载更多优化 ===== */
@media (max-width: 768px) {
  .pagination .page-nav {
    flex-direction: column;
    gap: 10px;
  }
  .pagination .page-btn {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    border-radius: 10px;
  }
  .pagination .page-info {
    order: -1;
    padding: 8px 0;
  }
  .load-more-btn {
    display: block;
    width: 100%;
    padding: 14px;
    text-align: center;
    background: linear-gradient(135deg,#667eea,#764ba2);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
  }
}

/* ===== H5端左滑操作 ===== */
@media (max-width: 768px) {
  .lead-card-item {
    position: relative;
    overflow: hidden;
  }
  .lead-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  .lead-card-actions .btn-link {
    padding: 8px 12px;
    background: #f5f5f5;
    border-radius: 6px;
    font-size: 13px;
  }
  .lead-card-actions .btn-link.danger {
    background: #fff1f0;
    color: #ff4d4f;
  }
}

/* ===== 批量操作按钮样式 ===== */
.btn-warning {
  background: linear-gradient(135deg,#fa8c16,#faad14);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}
.btn-success {
  background: linear-gradient(135deg,#52c41a,#73d13d);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
}
/* ===== H5端线索列表优化 ===== */
@media (max-width: 768px) {
  /* 隐藏H5端导出按钮 */
  button[onclick*="showExportChoice"] {
    display: none !important;
  }
}
/* H5端：回访记录表格强制显示（不使用线索列表的卡片布局） */
@media (max-width: 768px) {
  .follow-table-wrap { display: block !important; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .follow-table-wrap .table { min-width: 600px; }
}

/* ========== 全局 PC/H5 显示控制 ========== */
/* PC端默认显示，不改变display属性（保持th/td的table-cell等默认值） */
.h5-only { display: none; }
@media (max-width: 768px) {
  .pc-only { display: none !important; }
  .h5-only { display: block !important; }
}

/* ========== 回访记录 H5 卡片样式 ========== */
.follow-cards { padding: 0 12px 12px; }
.follow-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid #f0f0f0;
}
.follow-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f5f5f5;
}
.follow-card-time {
  font-size: 13px;
  color: #666;
  font-weight: 500;
}
.follow-card-operator {
  font-size: 12px;
  color: #999;
}
.follow-card-lead {
  background: #fafbfc;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.follow-card-customer {
  font-size: 15px;
  font-weight: 700;
  color: #333;
  margin-bottom: 4px;
}
.follow-card-contact {
  font-size: 12px;
  color: #999;
}
.follow-card-content {
  font-size: 14px;
  color: #333;
  line-height: 1.7;
  margin-bottom: 12px;
  word-break: break-all;
}
.follow-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.follow-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  flex: 1;
  justify-content: center;
}
.follow-card-btn-edit {
  background: #e6f4ff;
  color: #1890ff;
}
.follow-card-btn-delete {
  background: #fff1f0;
  color: #ff4d4f;
}
.follow-card-btn-restore {
  background: #f6ffed;
  color: #52c41a;
}
.follow-card-btn-danger {
  background: #fff1f0;
  color: #ff4d4f;
}
/* 回访记录标记样式 */
.follow-badge {
  font-size: 13px;
  color: #999;
  font-weight: 500;
}
.follow-badge-new {
  color: #52c41a;
  font-weight: 700;
}
.follow-card-time {
  display: flex;
  align-items: center;
}


/* 管理全部回访记录按钮 */
.follow-manage-btn { display: none; }
@media (max-width: 768px) {
  .follow-manage-btn { display: block !important; }
}

/* H5端：有上拉加载更多，隐藏分页 */
@media (max-width: 768px) {
  .pagination { display: none !important; }
}
