/* ============================================================
   管道猎手追踪端 - 样式表
   ============================================================ */

/* ============================================================
   1. CSS VARIABLES - 主题变量
   ============================================================ */
:root {
  /* 主色调 - 粉色主题 */
  --orange: #ff3a6d;
  --gold: #F5A623;
  
  /* 背景色 */
  --bg: #0f1117;
  --card: #1a1d27;
  --card2: #222536;
  --border: #2a2d3a;
  
  /* 文字色 */
  --text: #e8e8ec;
  --text2: #8b8fa3;
  --text3: #5a5e72;
  
  /* 分类颜色 */
  --green: #07C160;
  --blue: #4A90D9;
  --purple: #8B5CF6;
  
  /* 其他颜色 */
  --dark: #010101;
  --red: #EF4444;
  --dyred: #FE2C55;
  
  /* 圆角和间距 */
  --radius: 10px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

/* ============================================================
   2. BASE STYLES - 基础样式
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  overflow: hidden;
  height: 100vh;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

input {
  font-family: inherit;
}

/* ============================================================
   3. HEADER - 顶部导航
   ============================================================ */
.top-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg);
}

.hdr {
  background: linear-gradient(135deg, var(--orange), #e02a5a);
  padding: 10px 16px;
  padding-top: max(10px, env(safe-area-inset-top));
}

.hdr-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hdr h1 {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

.hdr-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.hdr-link {
  font-size: 13px;
  color: rgba(255, 255, 255, .85);
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .15);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}

.hdr-link:active {
  background: rgba(255, 255, 255, .25);
}

.hdr-stats {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.hdr-stat {
  background: rgba(255, 255, 255, .15);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, .9);
  transition: background 0.2s;
}

.hdr-stat b {
  color: #fff;
  font-size: 15px;
}

/* ============================================================
   4. SEARCH - 搜索栏
   ============================================================ */
.search-row {
  display: flex;
  gap: 8px;
  padding: 8px 16px 4px;
  background: var(--bg);
  align-items: center;
}

.search-wrap {
  flex: 1;
  position: relative;
}

.search-wrap input {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px 8px 36px;
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.search-wrap input::placeholder {
  color: var(--text3);
}

.search-wrap input:focus {
  border-color: var(--orange);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text3);
  z-index: 1;
}

/* ============================================================
   5. TABS & CHIPS - 标签栏和筛选chips
   ============================================================ */
.tab-bar {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--border);
  transition: opacity 0.3s;
}

.tab-bar::-webkit-scrollbar {
  display: none;
}

.tab-item {
  flex-shrink: 0;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text2);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s, border-color 0.2s;
  cursor: pointer;
}

.tab-item.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
  font-weight: 600;
}

.tab-item .badge {
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 10px;
  font-weight: 700;
}

.status-row {
  display: flex;
  gap: 6px;
  padding: 6px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.status-row::-webkit-scrollbar {
  display: none;
}

.status-chip {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 13px;
  background: var(--card2);
  color: var(--text2);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}

.status-chip:active {
  transform: scale(0.95);
}

.status-chip.active {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}

/* ============================================================
   6. INLINE FILTER - 内联筛选器
   ============================================================ */
.inline-filter {
  padding: 4px 12px 6px;
  border-bottom: 1px solid var(--border);
}

.if-label {
  font-size: 11px;
  color: var(--text3);
  margin-bottom: 2px;
  letter-spacing: .5px;
}

.if-scroll {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.if-scroll::-webkit-scrollbar {
  display: none;
}

.if-chip {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 12px;
  background: var(--card2);
  color: var(--text2);
  border: 1px solid var(--border);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}

.if-chip:active {
  transform: scale(0.95);
}

.if-chip.active {
  background: rgba(255, 58, 109, .18);
  color: var(--orange);
  border-color: rgba(255, 58, 109, .4);
}

.if-row {
  display: flex;
  gap: 6px;
  margin-bottom: 3px;
}

.if-row:last-child {
  margin-bottom: 0;
}

.if-group {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

/* ============================================================
   7. MAIN CONTENT - 主内容区
   ============================================================ */
.main {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 12px 20px;
  touch-action: pan-y;
  flex: 1;
  min-height: 0;
  transition: opacity 0.3s;
}

/* ============================================================
   8. DEALER CARD - 经销商卡片
   ============================================================ */
.dealer-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
  transition: transform 0.15s, box-shadow 0.2s;
  cursor: pointer;
}

.dealer-card:active {
  transform: scale(0.98);
}

.dealer-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dc-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.dc-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  position: relative;
}

.dc-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.dc-avatar .init {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dc-info {
  flex: 1;
  min-width: 0;
}

.dc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dc-name {
  font-size: 16px;
  font-weight: 600;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 8px;
}

.dc-city {
  font-size: 13px;
  color: var(--text2);
  flex-shrink: 0;
}

.dc-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  color: #fff;
  margin-left: 6px;
  flex-shrink: 0;
}

.dc-phone {
  font-size: 13px;
  color: var(--text2);
  margin-top: 2px;
}

.dc-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.dc-act {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .05);
  transition: transform 0.15s, background 0.2s;
}

.dc-act:active {
  transform: scale(0.9);
}

.dc-act.done {
  background: rgba(255, 255, 255, .08);
}

.dc-act svg {
  width: 18px;
  height: 18px;
}

.dc-act .cnt {
  position: absolute;
  top: -2px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 0 3px;
}

.dc-act.off svg {
  opacity: .3;
}

.dc-act.off .cnt {
  display: none;
}

/* ============================================================
   9. PAGER - 分页器
   ============================================================ */
.pager {
  text-align: center;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.pager button {
  padding: 8px 18px;
  border-radius: 8px;
  background: var(--card2);
  color: var(--orange);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: opacity 0.2s, transform 0.15s;
}

.pager button:active {
  transform: scale(0.95);
}

.pager button:disabled {
  opacity: .3;
  cursor: default;
}

.pager .page-info {
  font-size: 13px;
  color: var(--text2);
}

/* ============================================================
   10. BOTTOM NAVIGATION - 底部导航
   ============================================================ */
.bnav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 100;
  padding-bottom: var(--safe-b);
}

.bnav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0 6px;
  color: var(--text3);
  font-size: 10px;
  gap: 2px;
  transition: color 0.2s;
  cursor: pointer;
}

.bnav-item.active {
  color: var(--orange);
}

.bnav-item:active {
  opacity: 0.7;
}

.bnav-item svg {
  width: 20px;
  height: 20px;
}

/* ============================================================
   11. PAGE TRANSITIONS - 页面切换动画
   ============================================================ */
.page {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 56px;
  overflow: hidden;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.page.active {
  display: flex;
  opacity: 1;
}

/* ============================================================
   12. MODAL - 弹窗
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  z-index: 200;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.modal-overlay.show {
  display: flex;
}

.modal {
  background: var(--card);
  border-radius: 16px 16px 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 20px 16px;
  padding-bottom: max(20px, var(--safe-b));
  animation: slideUp 0.25s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.modal-handle {
  width: 36px;
  height: 4px;
  background: var(--text3);
  border-radius: 2px;
  margin: 0 auto 16px;
}

.modal-header {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.modal-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.modal-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.modal-avatar .cam {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-avatar .cam svg {
  width: 12px;
  height: 12px;
  color: #fff;
}

.modal-avatar .init {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-h-info {
  flex: 1;
  min-width: 0;
}

.modal-name {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 2px;
}

.modal-city {
  font-size: 13px;
  color: var(--text2);
}

.modal-phone {
  font-size: 16px;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.modal-section {
  margin-bottom: 16px;
}

.modal-section-title {
  font-size: 12px;
  color: var(--text3);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.modal-act-row {
  display: flex;
  align-items: center;
  padding: 12px;
  background: var(--card2);
  border-radius: 8px;
  margin-bottom: 6px;
  gap: 12px;
}

.modal-act-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-act-icon svg {
  width: 20px;
  height: 20px;
}

.modal-act-info {
  flex: 1;
  min-width: 0;
}

.modal-act-label {
  font-size: 15px;
  font-weight: 600;
}

.modal-act-status {
  font-size: 13px;
  color: var(--text2);
  margin-top: 2px;
}

.modal-act-btn {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.15s;
}

.modal-act-btn:active {
  transform: scale(0.95);
}

.modal-act-btn.do {
  background: var(--orange);
  color: #fff;
}

.modal-act-btn.undo {
  background: rgba(255, 255, 255, .08);
  color: var(--text2);
}

.modal-act-detail {
  background: var(--card2);
  border-radius: 0 0 8px 8px;
  margin-top: -4px;
  margin-bottom: 8px;
  padding: 10px 12px;
  display: none;
}

.modal-act-detail.show {
  display: block;
}

.mad-label {
  font-size: 11px;
  color: var(--text3);
  margin-bottom: 4px;
}

.mad-photos {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.mad-photo {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.mad-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mad-photo .del {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .7);
  color: #fff;
  font-size: 10px;
  display: none;
  align-items: center;
  justify-content: center;
}

.mad-photo:hover .del {
  display: flex;
}

.mad-add {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text3);
  cursor: pointer;
  font-size: 24px;
  transition: background 0.2s;
}

.mad-add:active {
  background: var(--card);
}

.mad-info-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px;
  color: var(--text);
  font-size: 13px;
  resize: vertical;
  min-height: 40px;
  outline: none;
  transition: border-color 0.2s;
}

.mad-info-input:focus {
  border-color: var(--orange);
}

.modal-notes textarea {
  width: 100%;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  color: var(--text);
  font-size: 14px;
  resize: vertical;
  min-height: 60px;
  outline: none;
  transition: border-color 0.2s;
}

.modal-notes textarea:focus {
  border-color: var(--orange);
}

.modal-call-history {
  margin-top: 12px;
}

.mch-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text2);
  display: flex;
  justify-content: space-between;
}

.mch-status {
  font-weight: 600;
}

.mch-status.ok {
  color: var(--green);
}

.mch-status.fail {
  color: var(--red);
}

/* ============================================================
   13. PHOTO VIEWER - 图片查看器
   ============================================================ */
.photo-viewer {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, .95);
  display: none;
  align-items: center;
  justify-content: center;
}

.photo-viewer.show {
  display: flex;
}

.photo-viewer img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.photo-viewer .pv-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, .3);
  z-index: 10;
  transition: transform 0.15s;
}

.photo-viewer .pv-close:active {
  transform: scale(0.9);
}

/* ============================================================
   14. FILTER MODAL - 筛选弹窗
   ============================================================ */
.fm-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.fm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fm-chip {
  padding: 6px 14px;
  border-radius: 14px;
  font-size: 14px;
  background: var(--card2);
  color: var(--text2);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}

.fm-chip:active {
  transform: scale(0.95);
}

.fm-chip.active {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}

/* ============================================================
   15. STATS & FUNNEL - 统计和漏斗
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.stat-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  border: 1px solid var(--border);
  text-align: center;
  transition: transform 0.15s;
}

.stat-card:active {
  transform: scale(0.98);
}

.stat-card .val {
  font-size: 28px;
  font-weight: 800;
  color: var(--orange);
}

.stat-card .lbl {
  font-size: 11px;
  color: var(--text2);
  margin-top: 2px;
}

.stat-card.ac .val {
  color: var(--green);
}

.stat-card.sc .val {
  color: var(--blue);
}

.stat-card.wc .val {
  color: #07C160;
}

.funnel-bar {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

.funnel-row {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.funnel-row:last-child {
  margin-bottom: 0;
}

.funnel-label {
  width: 70px;
  font-size: 13px;
  color: var(--text2);
  flex-shrink: 0;
}

.funnel-track {
  flex: 1;
  height: 24px;
  background: var(--card2);
  border-radius: 4px;
  overflow: hidden;
  margin: 0 10px;
}

.funnel-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s;
  display: flex;
  align-items: center;
  padding-left: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.funnel-num {
  font-size: 14px;
  font-weight: 700;
  width: 40px;
  text-align: right;
  flex-shrink: 0;
}

/* ============================================================
   16. EMPTY STATE - 空状态
   ============================================================ */
.empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text3);
}

.empty svg {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  opacity: .3;
}

/* ============================================================
   17. TOAST - 提示
   ============================================================ */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, .85);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  z-index: 999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.toast.show {
  opacity: 1;
}

/* ============================================================
   18. LEADS PAGE - 意向客户页
   ============================================================ */
.intent-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  margin-right: 4px;
}

.intent-tag.a {
  background: #EF4444;
}

.intent-tag.b {
  background: #F5A623;
}

.lead-customer-text {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.6;
  background: var(--card2);
  padding: 8px 10px;
  border-radius: 6px;
  margin-top: 6px;
  white-space: pre-wrap;
}

.lead-mark-btn {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, transform 0.15s;
}

.lead-mark-btn:active {
  transform: scale(0.95);
}

.lead-mark-btn.process {
  background: var(--orange);
  color: #fff;
}

.lead-mark-btn.unprocess {
  background: var(--card2);
  color: var(--text2);
  border: 1px solid var(--border);
}

/* 意向通知栏 */
.lead-alert-bar {
  background: rgba(255, 58, 109, .9);
  padding: 8px 12px;
  display: none;
  align-items: center;
  gap: 8px;
}

.lead-alert-bar.show {
  display: flex;
}

.lead-alert-scroll {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.lead-alert-scroll span {
  display: inline-block;
  animation: alertScroll 15s linear infinite;
  font-size: 13px;
  color: #fff;
  font-weight: 600;
}

@keyframes alertScroll {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.lead-alert-bar button {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

/* 意向tabs */
.leads-tab-row {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.leads-tab-item {
  flex: 1;
  padding: 10px 8px;
  font-size: 13px;
  color: var(--text2);
  text-align: center;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  position: relative;
  transition: color 0.2s, border-color 0.2s;
}

.leads-tab-item.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
  font-weight: 600;
}

.leads-tab-item .cnt {
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 10px;
  font-weight: 700;
  margin-left: 4px;
}

.leads-tab-item .cnt.zero {
  background: var(--border);
  color: var(--text3);
}

.processed-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  background: rgba(7, 193, 96, .15);
  color: #07C160;
}

.data-complete {
  color: #07C160;
  font-size: 11px;
}

.data-incomplete {
  color: #EF4444;
  font-size: 11px;
}

.lead-detail-section {
  margin-bottom: 16px;
}

.lead-detail-title {
  font-size: 12px;
  color: var(--text3);
  margin-bottom: 6px;
  letter-spacing: 1px;
  font-weight: 600;
}

.lead-recording {
  width: 100%;
  margin-top: 6px;
}

.lead-expressions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.lead-expr-tag {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.lead-expr-tag.a {
  background: rgba(239, 68, 68, .15);
  color: #EF4444;
}

.lead-expr-tag.b {
  background: rgba(245, 166, 35, .15);
  color: #F5A623;
}

/* ============================================================
   19. LOADING SKELETON - 骨架屏
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--card) 25%, var(--card2) 50%, var(--card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skel-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
}

.skel-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.skel-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
}

.skel-info {
  flex: 1;
}

.skel-line {
  height: 14px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.skel-line:last-child {
  width: 60%;
  margin-bottom: 0;
}

.skel-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.skel-act {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.loading-text {
  text-align: center;
  padding: 20px;
  color: var(--text3);
  font-size: 13px;
}

/* ============================================================
   20. SCROLLBAR - 滚动条
   ============================================================ */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}
