/* ====================================================
   慧乐CRM - 客户管理系统（Demo版）
   ==================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #409eff;
  --primary-dark: #337ecc;
  --success: #67c23a;
  --warning: #e6a23c;
  --danger: #f56c6c;
  --info: #909399;
  --bg: #f0f2f5;
  --white: #fff;
  --text: #303133;
  --text-secondary: #606266;
  --border: #dcdfe6;
  --border-light: #ebeef5;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --radius: 8px;
  --radius-sm: 4px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

/* ========== App Header ========== */
.app-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.version {
  background: #ecf5ff;
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-date {
  color: var(--text-secondary);
  font-size: 13px;
  margin-right: 12px;
}

.btn-header {
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 13px;
  transition: all 0.2s;
}

.btn-header:hover,
.btn-header.active {
  background: #ecf5ff;
  color: var(--primary);
}

/* ========== Main ========== */
.app-main {
  padding: 20px 24px;
  max-width: 1400px;
  margin: 0 auto;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn:hover { border-color: var(--primary); color: var(--primary); }

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text-secondary);
}

.btn-danger {
  background: var(--danger);
  color: var(--white);
  border-color: var(--danger);
}
.btn-danger:hover {
  background: #e74c3c;
  color: var(--white);
}

.btn-sm {
  padding: 4px 10px;
  font-size: 12px;
}

/* ========== Stats Grid ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.stat-card:hover { transform: translateY(-2px); }

.stat-icon {
  font-size: 32px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.stat-body { flex: 1; }

.stat-value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 4px;
}

.card-blue .stat-icon { background: #ecf5ff; }
.card-blue .stat-value { color: var(--primary); }
.card-green .stat-icon { background: #f0f9eb; }
.card-green .stat-value { color: var(--success); }
.card-yellow .stat-icon { background: #fdf6ec; }
.card-yellow .stat-value { color: var(--warning); }
.card-purple .stat-icon { background: #f5f0ff; }
.card-purple .stat-value { color: #7c3aed; }
.card-orange .stat-icon { background: #fef3e0; }
.card-orange .stat-value { color: #ed6c02; }
.card-cyan .stat-icon { background: #e0f7fa; }
.card-cyan .stat-value { color: #00838f; }

/* ========== Charts ========== */
.charts-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.chart-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.chart-card h3 {
  font-size: 15px;
  margin-bottom: 16px;
  color: var(--text);
}

.chart-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bar-label {
  width: 70px;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: right;
  flex-shrink: 0;
}

.bar-track {
  flex: 1;
  height: 24px;
  background: #f0f2f5;
  border-radius: 12px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 12px;
  transition: width 0.5s ease;
  display: flex;
  align-items: center;
  padding-left: 10px;
  color: white;
  font-size: 12px;
  font-weight: 600;
  min-width: 30px;
}

.chart-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chart-tag-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
}

.tag-count {
  font-weight: 700;
  font-size: 14px;
}

/* ========== Toolbar ========== */
.toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.search-box {
  flex: 1;
  min-width: 200px;
}

.search-box input {
  width: 100%;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  outline: none;
  transition: border 0.2s;
}

.search-box input:focus {
  border-color: var(--primary);
}

.toolbar select {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  outline: none;
  background: var(--white);
  cursor: pointer;
}

/* ========== Client Table ========== */
.client-table {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.client-table table {
  width: 100%;
  border-collapse: collapse;
}

.client-table th {
  background: #fafafa;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border-light);
  white-space: nowrap;
}

.client-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  vertical-align: middle;
}

.client-table tr:hover td {
  background: #f5f7fa;
}

.client-table tr {
  cursor: pointer;
}

.table-footer {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  background: #fafafa;
}

.empty-state {
  text-align: center;
  padding: 60px 20px !important;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

/* ========== Badges & Tags ========== */
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  background: #ecf5ff;
  color: var(--primary);
  margin-right: 4px;
  margin-bottom: 2px;
}

.no-tags {
  color: var(--info);
  font-size: 12px;
}

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.status-badge.新客户 {
  background: #ecf5ff;
  color: var(--primary);
}

.status-badge.跟进中 {
  background: #fdf6ec;
  color: var(--warning);
}

.status-badge.已签约 {
  background: #f0f9eb;
  color: var(--success);
}

.source-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  background: #f0f2f5;
  color: var(--text-secondary);
}

/* ========== Modal ========== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.client-detail-modal {
  max-width: 800px;
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-light);
}

.modal-header h2, .modal-header h3 {
  flex: 1;
  font-size: 16px;
}

.modal-close {
  border: none;
  background: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0 4px;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ========== Client Detail ========== */
.detail-sections {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.detail-section h4 {
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--text);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-header h4 {
  margin-bottom: 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.info-item label {
  display: block;
  font-size: 12px;
  color: var(--info);
  margin-bottom: 4px;
}

.info-item span {
  font-size: 14px;
}

.info-notes {
  margin-top: 12px;
}

.info-notes label {
  display: block;
  font-size: 12px;
  color: var(--info);
  margin-bottom: 4px;
}

.info-notes p {
  font-size: 14px;
  color: var(--text);
  background: #f9f9f9;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}

/* ========== Followup List ========== */
.followup-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.followup-item {
  padding: 12px;
  background: #f9f9f9;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
}

.fu-header {
  display: flex;
  gap: 12px;
  font-size: 12px;
  margin-bottom: 6px;
}

.fu-date {
  color: var(--info);
}

.fu-type {
  background: #ecf5ff;
  color: var(--primary);
  padding: 0 6px;
  border-radius: 3px;
  font-weight: 500;
}

.fu-staff {
  color: var(--info);
  margin-left: auto;
}

.fu-content {
  font-size: 13px;
  color: var(--text);
}

.empty-mini {
  padding: 20px;
  text-align: center;
  color: var(--info);
  font-size: 13px;
}

/* ========== Status Selector ========== */
.status-selector {
  display: flex;
  gap: 8px;
}

/* ========== Add Form ========== */
.add-form {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
}

.form-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  width: 90%;
  max-width: 560px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.form-header {
  display: flex;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-light);
}

.form-header h3 {
  flex: 1;
  font-size: 16px;
}

.form-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  outline: none;
  transition: border 0.2s;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 60px;
}

/* ====================================================
   任务管理模块
   ==================================================== */

.btn-header-badge {
  position: relative;
}

.btn-header-badge::after {
  content: attr(data-badge);
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 8px;
  min-width: 16px;
  text-align: center;
}

/* 任务列表 */
.task-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.task-toolbar .search-box {
  max-width: 300px;
}

.task-list {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.task-list table {
  width: 100%;
  border-collapse: collapse;
}

.task-list th {
  background: #fafafa;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border-light);
  white-space: nowrap;
}

.task-list td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  vertical-align: middle;
}

.task-list tr:hover td {
  background: #f5f7fa;
}

.task-list table tr {
  cursor: default;
}

.task-list .task-row {
  cursor: pointer;
}

.task-footer {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  background: #fafafa;
}

/* 优先级标签 */
.priority-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
}

.priority-badge.urgent {
  background: #fef0f0;
  color: var(--danger);
}

.priority-badge.high {
  background: #fdf6ec;
  color: var(--warning);
}

.priority-badge.normal {
  background: #ecf5ff;
  color: var(--primary);
}

.priority-badge.low {
  background: #f0f9eb;
  color: var(--success);
}

/* 任务状态标签 */
.task-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.task-status.待办 {
  background: #fdf6ec;
  color: var(--warning);
}

.task-status.进行中 {
  background: #ecf5ff;
  color: var(--primary);
}

.task-status.已完成 {
  background: #f0f9eb;
  color: var(--success);
}

/* 任务操作列 */
.task-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.complete-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  background: var(--white);
}

.complete-check:hover {
  border-color: var(--success);
  background: #f0f9eb;
}

.complete-check.done {
  border-color: var(--success);
  background: var(--success);
  color: #fff;
}

/* ====================================================
   仪表盘增强 - 待办任务卡片 & 近期跟进
   ==================================================== */

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.dashboard-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.dashboard-card h3 {
  font-size: 15px;
  margin-bottom: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-card h3 .card-link {
  margin-left: auto;
  font-size: 12px;
  color: var(--primary);
  cursor: pointer;
  font-weight: normal;
}

.dashboard-card h3 .card-link:hover {
  text-decoration: underline;
}

/* 待办任务列表 */
.pending-task-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.pending-task-item:last-child {
  border-bottom: none;
}

.pending-task-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  background: var(--white);
}

.pending-task-check:hover {
  border-color: var(--success);
  background: #f0f9eb;
}

.pending-task-check.done {
  border-color: var(--success);
  background: var(--success);
  color: #fff;
}

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

.pending-task-title {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pending-task-meta {
  font-size: 11px;
  color: var(--info);
  margin-top: 2px;
}

.pending-task-urgent {
  color: var(--danger);
}

.pending-task-deadline {
  font-size: 11px;
  color: var(--info);
  flex-shrink: 0;
}

.pending-task-deadline.overdue {
  color: var(--danger);
  font-weight: 600;
}

.pending-task-priority {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 8px;
  flex-shrink: 0;
}

.pending-empty {
  padding: 20px;
  text-align: center;
  color: var(--info);
  font-size: 13px;
}

/* 近期跟进列表 */
.recent-followup-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.recent-followup-item:last-child {
  border-bottom: none;
}

.recent-fu-header {
  display: flex;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 4px;
}

.recent-fu-date {
  color: var(--info);
}

.recent-fu-type {
  background: #ecf5ff;
  color: var(--primary);
  padding: 0 6px;
  border-radius: 3px;
  font-weight: 500;
}

.recent-fu-client {
  color: var(--primary);
  font-weight: 500;
  margin-left: auto;
  cursor: pointer;
}

.recent-fu-content {
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ====================================================
   公海客户
   ==================================================== */

.client-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--border-light);
}

.client-tab {
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: inherit;
}

.client-tab:hover {
  color: var(--primary);
}

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

.client-tab .tab-badge {
  display: inline-block;
  margin-left: 6px;
  background: #ecf5ff;
  color: var(--primary);
  padding: 0 6px;
  border-radius: 8px;
  font-size: 11px;
}

.pool-reason {
  font-size: 11px;
  color: var(--info);
}

/* ====================================================
   模态弹窗 - 任务表单 & 任务详情
   ==================================================== */

.form-modal-sm {
  max-width: 500px;
}

/* ====================================================
   商机管理模块
   ==================================================== */

/* 看板视图 */
.opp-kanban {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
  min-height: 400px;
}

.kanban-column {
  flex: 1;
  min-width: 200px;
  background: #f5f7fa;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  max-height: 600px;
}

.kanban-header {
  padding: 12px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--white);
  border-bottom: 2px solid var(--border-light);
}

.kanban-header-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.kanban-header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.kanban-count {
  color: var(--primary);
  font-weight: 600;
}

.kanban-amount {
  color: var(--warning);
  font-weight: 500;
}

.kanban-cards {
  padding: 8px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kanban-card {
  background: var(--white);
  border-radius: 6px;
  padding: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: all 0.2s;
  border-left: 3px solid var(--primary);
}

.kanban-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transform: translateY(-1px);
}

.kanban-card-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kanban-card-amount {
  font-size: 16px;
  font-weight: 700;
  color: #e6a23c;
  margin-bottom: 6px;
}

.kanban-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  margin-bottom: 4px;
}

.kanban-card-prob {
  font-weight: 600;
}

.kanban-card-close {
  color: var(--info);
}

.kanban-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--info);
}

.kanban-card-client {
  color: var(--primary);
  font-weight: 500;
}

.kanban-card-owner {
  font-size: 11px;
}

.kanban-more {
  text-align: center;
  padding: 8px;
  font-size: 12px;
  color: var(--primary);
  cursor: pointer;
  background: rgba(64,158,255,0.05);
  border-radius: 6px;
}

.kanban-more:hover {
  background: rgba(64,158,255,0.1);
}

.kanban-empty {
  text-align: center;
  padding: 24px 12px;
  color: var(--info);
  font-size: 12px;
}

/* 商机阶段标签 */
.stage-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.stage-新增 {
  background: #f0f2f5;
  color: #909399;
}

.stage-初步沟通 {
  background: #ecf5ff;
  color: #409eff;
}

.stage-方案报价 {
  background: #fdf6ec;
  color: #e6a23c;
}

.stage-商务谈判 {
  background: #fef0f0;
  color: #f56c6c;
}

.stage-签约成交 {
  background: #f0f9eb;
  color: #67c23a;
}

.stage-已丢单 {
  background: #f4f4f5;
  color: #c0c4cc;
  text-decoration: line-through;
}

/* 概率标签 */
.prob-badge {
  font-weight: 600;
  font-size: 13px;
}

/* 概率滑块 */
.prob-slider-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.prob-slider {
  flex: 1;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(to right, #f56c6c, #e6a23c, #409eff, #67c23a);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.prob-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--primary);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.prob-value {
  font-size: 16px;
  font-weight: 700;
  min-width: 40px;
  text-align: center;
}

/* 商机列表表格区域 */
.opp-table-wrap {
  margin-top: 0;
}

.opp-table-wrap .client-table table th,
.opp-table-wrap .client-table table td {
  white-space: nowrap;
}

/* ====================================================
   Responsive
   ==================================================== */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .charts-row {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .app-header {
    padding: 0 12px;
  }
  .header-right {
    gap: 4px;
  }
  .btn-header {
    padding: 4px 8px;
    font-size: 12px;
  }
}
