/* =============================================
   牵手婚恋 — 个人中心通用样式（profile.css）

   适用范围：
     profile-member.php  （会员 + 家长）
     profile-matchmaker.php（红娘）
     profile-staff.php   （员工 + 管理员）

   设计规范：
      - 移动优先，默认样式适配 ≤480px 手机
      - 两个响应式断点：768px（平板）和 1024px（桌面）
      - 色彩沿用 variables.css 粉色浪漫系
   ============================================= */

/* =============================================
   1. 移动端默认样式（< 768px）
   ============================================= */

/* 整体页面容器：浅粉底色，为底部导航留空间 */
.profile-page {
  background-color: var(--color-primary-bg);
  min-height: 100vh;
  padding-bottom: 80px; /* 底部有 fixed 导航栏（70px），多留 10px 呼吸空间 */
}

/* ===== 1.1 头像区域 ===== */
.profile-header {
  /* 白色背景，与顶部粉色导航栏（site-header）区分开，避免顺色 */
  background: var(--color-white);
  /* 横向紧凑布局：头像在左、信息在右，降低头部高度 */
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  color: var(--color-text-primary);
  border-bottom: 1px solid var(--color-border);
}

.profile-info {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  /* 浅粉边框，让头像与白色背景有层次 */
  border: 2px solid var(--color-primary-pale);
  object-fit: cover;
  /* 头像加载失败时的背景色 */
  background-color: var(--color-primary-pale);
  display: block;
  flex-shrink: 0;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.profile-name {
  font-size: 17px;
  font-weight: 700;
  margin-top: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-subtitle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-top: 3px;
  min-width: 0;
  overflow: hidden;
}

.profile-subtitle .profile-member-no {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* 头部"编辑我的征婚资料"快捷入口（会员/家长登录后显示） */
.profile-edit-self-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 14px;
  background: var(--color-primary-pale);
  border: 1px solid var(--color-primary-light);
  transition: background 0.2s;
}
.profile-edit-self-link:hover {
  background: var(--color-primary-light);
  color: var(--color-white);
}

/* 头部操作快捷入口行：编辑资料 + 服务简报 并排（移动端登录即可见） */
.profile-header-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.profile-header-links .profile-edit-self-link {
  margin-top: 0;
}
/* 服务简报：新标签页打开，悬浮提示不影响触屏 */
.profile-brief-link {
  cursor: pointer;
}
.profile-brief-link:hover {
  color: var(--color-white);
}

/* 会员编号快速复制按钮 */
.profile-copy-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--color-text-secondary);
  cursor: pointer;
  border-radius: 4px;
  flex-shrink: 0;
  transition: color 0.2s, background 0.2s;
}
.profile-copy-no:hover {
  color: var(--color-primary);
  background: var(--color-primary-pale);
}
.profile-copy-no.copied {
  color: #16a34a;
  background: #ecfdf5;
}

/* 角色标签（如"家长"、"红娘"、"管理员"）——位于姓名右侧同行 */
.profile-role-tag {
  display: inline-block;
  background: var(--color-primary-pale);
  color: var(--color-primary-dark);
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 9px;
  flex-shrink: 0;
}

/* ===== 1.2 统计卡片网格 ===== */
.stats-grid {
  display: grid;
  /* 2 列网格，手机端一行 2 个卡片 */
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 14px 6px;
}

.stat-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  /* 浅粉色投影，与主题一致 */
  box-shadow: 0 2px 8px var(--color-primary-shadow);
  /* 点击时的微动效果 */
  transition: transform 0.15s ease;
}

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

/* 统计数值：大字号、粉色、加粗 */
.stat-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

/* 统计标签：小字号、灰色 */
.stat-label {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-top: 3px;
}

/* ===== 1.3 Tab 切换栏 ===== */

/* Tab 容器：横向滚动（手机端 Tab 较多时可以左右滑动） */
.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

/* 单个 Tab 项：图标在上、文字在下，不强制拉伸、允许换行 */
.profile-tab {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 8px;
  font-size: 12px;
  color: var(--color-text-secondary);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  user-select: none;
}

.profile-tab .tab-icon {
  font-size: 18px;
  font-style: normal;
  line-height: 1;
}

.profile-tab .tab-label {
  line-height: 1.2;
  margin-top: 8px;
}

/* 激活态 Tab：橙色文字 + 橙色底部指示条 */
.profile-tab.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
  font-weight: 600;
}

/* ===== 1.4 Tab 内容面板 ===== */

/* 每个 Tab 对应的内容面板，默认隐藏 */
.profile-tab-panel {
  display: none;
}

/* 激活的面板才显示 */
.profile-tab-panel.active {
  display: block;
}

/* 内容容器底部留白：固定底部导航栏高度 70px + 10px 呼吸空间
   注意：此样式加在 .profile-main 而非 .profile-page 上，
   因为 profile 页面通过 AJAX innerHTML 注入时 <body> 标签被浏览器丢弃，
   导致 .profile-page 的 padding-bottom 在 injected 内容中不会生效。 */
.profile-main {
  padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px) + var(--browser-bottom-ui, 0px));
}

/* ===== 1.5 信息卡片 ===== */

/* 白色圆角卡片，带浅阴影 */
.info-card {
  background: var(--color-white);
  margin: 12px 14px;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 4px var(--color-primary-shadow);
}

.info-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
  /* 标题左侧小装饰点 */
  position: relative;
  padding-left: 12px;
}

/* 标题左侧粉色小竖条装饰 */
.info-card-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

/* ===== 1.6 信息行（label : value） ===== */
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}

/* 最后一行不加分隔线 */
.info-row:last-child {
  border-bottom: none;
}

.info-label {
  color: var(--color-text-hint);
  flex-shrink: 0; /* 标签不缩小 */
}

.info-value {
  color: var(--color-text-primary);
  font-weight: 500;
  text-align: right;
  /* 超长文本省略号 */
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== 1.7 操作按钮 ===== */

/* 按钮基础样式 */
.profile-btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s, opacity 0.2s;
  text-decoration: none;
  text-align: center;
}

/* 实心粉色主按钮 */
.profile-btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}

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

.profile-btn-primary:active {
  opacity: 0.85;
}

/* 描边按钮（透明背景 + 粉色边框 + 粉色文字） */
.profile-btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.profile-btn-outline:hover {
  background: var(--color-primary-pale);
}

/* 小尺寸按钮（卡片内使用） */
.profile-btn-sm {
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 14px;
}

/* 全宽按钮 */
.profile-btn-block {
  display: block;
  width: 100%;
  margin-top: 10px;
}

/* ===== 1.8 迷你成员卡片（征婚人列表 / 员工列表） ===== */

/* 列表容器 */
.mini-card-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 单个迷你卡片：头像 + 信息 + 操作 */
.mini-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--color-primary-bg);
  border-radius: 10px;
  transition: background-color 0.2s;
}

.mini-card:hover {
  background: var(--color-primary-pale);
}

/* 迷你头像（48x48 小圆角方形） */
.mini-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background-color: var(--color-border);
  flex-shrink: 0;
  /* 兜底：无图片时显示人物图标 */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--color-text-hint);
}

/* 迷你卡片中间文字区域：自动撑满 */
.mini-card-info {
  flex: 1;
  min-width: 0; /* 允许子元素文本截断 */
}

.mini-card-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.mini-card-detail {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-top: 2px;
  /* 单行溢出省略 */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== 1.9 空状态提示 ===== */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--color-text-hint);
}

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

.empty-state-text {
  font-size: 14px;
}

/* ===== 1.10 个人资料概览（手机端卡片式） ===== */
.profile-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 0;
  margin-bottom: 6px;
}

/* 资料标签（如"29岁"、"161cm"、"本科"） */
.profile-tag {
  display: inline-block;
  background: var(--color-primary-pale);
  color: var(--color-primary-dark);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 500;
}

/* =============================================
   2. 平板适配（≥ 768px）
   ============================================= */
@media screen and (min-width: 768px) {

  /* 页面容器居中并限制最大宽度 */
  .profile-page {
    max-width: 720px;
    margin: 0 auto;
    padding-bottom: 40px; /* 平板/桌面不需要为底部导航留空 */
  }

  /* 头像在横向布局中保持适中尺寸 */
  .profile-avatar {
    width: 64px;
    height: 64px;
    font-size: 28px;
  }

  .profile-name {
    font-size: 18px;
  }

  /* 统计卡片改为 4 列（平板宽度足够） */
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding: 18px 18px 10px;
  }

  /* 信息卡片间距拉大 */
  .info-card {
    margin: 16px 18px;
    padding: 20px;
  }

  /* 信息行字体稍大 */
  .info-row {
    font-size: 15px;
    padding: 12px 0;
  }

  /* 迷你卡片间距调整 */
  .mini-card-list {
    gap: 10px;
  }
}

/* =============================================
   3. 桌面端适配（≥ 1024px）
   左侧固定导航 + 右侧内容区布局
   ============================================= */
@media (min-width: 1024px) {

  .profile-page {
    max-width: 960px;
    /* 双列弹性布局：侧边栏 + 主内容 */
    display: flex;
    gap: 24px;
    padding: 24px 0 40px;
    align-items: flex-start; /* 侧边栏和内容区顶部对齐 */
  }

  /* ===== 3.1 左侧导航栏 ===== */
  .profile-sidebar {
    width: 240px;
    flex-shrink: 0; /* 导航不缩小 */
    /* 粘性定位：页面滚动时导航固定在视口顶部 */
    position: sticky;
    top: 24px;
  }

  /* 桌面端头像放在侧边栏内：窄侧边栏下改为纵向居中布局 */
  .profile-header {
    border-radius: 12px;
    margin-bottom: 16px;
    padding: 24px 16px;
    flex-direction: column;
    text-align: center;
    gap: 0;
  }

  .profile-header .profile-avatar {
    margin: 0 auto;
  }

  .profile-header .profile-info {
    text-align: center;
  }

  /* Tab 从横向滚动改为纵向列表 */
  .profile-tabs {
    flex-direction: column;
    border-bottom: none;
    border-radius: 12px;
    overflow: hidden;
    background: var(--color-white);
    box-shadow: 0 1px 4px var(--color-primary-shadow);
  }

  /* 纵向 Tab：左对齐文字 + 左侧激活指示条 */
  .profile-tab {
    flex: none;
    text-align: left;
    padding: 14px 20px;
    border-bottom: 1px solid var(--color-border);
    /* 激活指示条从底部改为左侧 */
    border-left: 3px solid transparent;
    border-bottom: 1px solid var(--color-border);
    font-size: 15px;
  }

  /* 最后一个 Tab 不显示底部边框 */
  .profile-tab:last-child {
    border-bottom: none;
  }

  /* 激活态：左侧橙色条 + 浅粉背景 */
  .profile-tab.active {
    border-left-color: var(--color-accent);
    border-bottom-color: var(--color-border);
    background-color: var(--color-primary-pale);
  }

  /* ===== 3.2 右侧内容区 ===== */
  .profile-main {
    flex: 1;
    min-width: 0; /* 防止内容撑破弹性布局 */
  }

  /* 桌面端卡片左右边距归零（由 profile-main 控制宽度） */
  .info-card {
    margin: 0 0 16px 0;
  }

  .stats-grid {
    padding: 0 0 16px 0; /* 桌面端网格无左右内边距 */
  }
}

/* =============================================
   4. 工具类
   ============================================= */

/* flex 居中 */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 右侧操作区（按钮组合在行末） */
.flex-end {
  margin-left: auto;
}

/* 顶部间距 */
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }

/* 底部间距 */
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }

/* 文本颜色快捷类 */
.text-primary   { color: var(--color-primary); }
.text-accent    { color: var(--color-accent); }
.text-secondary { color: var(--color-text-secondary); }
.text-hint      { color: var(--color-text-hint); }
.text-sm        { font-size: 12px; }
.text-center    { text-align: center; }

/* =============================================
   5. 工作台通用样式（红娘 + 员工/管理员共用）
   包括：会员列表、配对卡片、筛选栏、操作按钮、跟进时间线
   ============================================= */

/* ===== 5.1 会员列表项 ===== */
.member-list-item-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.member-list-item-link:hover {
  text-decoration: none;
}
.member-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  /* 左内边距加大，便于查看内容 */
  padding: 12px 14px 12px 20px;
  background: var(--color-primary-bg);
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.member-list-item:hover {
  background: var(--color-primary-pale);
}

.member-list-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.member-list-info {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.member-list-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.member-list-meta {
  font-size: 12px;
  color: var(--color-text-secondary);
}

.member-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ===== 5.1a 会员卡片（新版） ===== */
.member-card-wrap {
  text-decoration: none;
  color: inherit;
  display: block;
}
.member-card-wrap:hover {
  text-decoration: none;
}
.member-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--color-white);
  border-radius: 12px;
  margin-bottom: 10px;
  box-shadow: 0 1px 4px var(--color-primary-shadow);
  cursor: pointer;
  position: relative;
}
.member-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  position: relative;
}
.member-card-avatar.gender-male {
  background: linear-gradient(135deg, #4fc3f7, #29b6f6);
}
.member-card-avatar.gender-female {
  background: linear-gradient(135deg, #f06292, #ec407a);
}
.member-card-avatar .avatar-online {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #4caf50;
}
.member-card-avatar .avatar-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  font-size: 10px;
  line-height: 1;
}
.member-card-body {
  flex: 1;
  min-width: 0;
}
.member-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.member-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-primary);
}
.member-card-tags {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.member-card-tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
}
.tag-seeking {
  background: #e8f5e9;
  color: #2e7d32;
}
.tag-paused {
  background: #fff3e0;
  color: #e65100;
}
.tag-matched {
  background: #e3f2fd;
  color: #1565c0;
}
.tag-marital-1 { background: #f3e8ff; color: #7c3aed; }
.tag-marital-2 { background: #fce4ec; color: #c62828; }
.tag-marital-3 { background: #e8eaf6; color: #283593; }
.tag-marital-4 { background: #fce4ec; color: #e91e63; }
.tag-edu {
  background: #e0f2f1;
  color: #00695c;
}
.member-card-meta {
  font-size: 12px;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.member-card-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.member-card-meta .meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #d1d5db;
}
.member-card-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.member-card-action-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  font-size: 14px;
}
.member-card-action-btn:hover {
  background: var(--color-primary-bg);
  color: var(--color-primary);
}
.member-card-action-btn.danger:hover {
  background: #fef2f2;
  color: #ef4444;
}

/* 成员统计摘要条 */
.member-stats-bar {
  display: flex;
  gap: 0;
  background: var(--color-white);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.member-stat-item {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  border-right: 1px solid #f3f4f6;
}
.member-stat-item:last-child {
  border-right: none;
}
.member-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.3;
}
.member-stat-label {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 2px;
}

/* 排序下拉 */
.sort-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.sort-label {
  font-size: 12px;
  color: #9ca3af;
  white-space: nowrap;
}
.sort-select {
  padding: 6px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 12px;
  color: #374151;
  background: #fff;
  outline: none;
  cursor: pointer;
}
.sort-select:focus {
  border-color: var(--color-primary);
}

/* 折叠筛选面板 */
.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #6b7280;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.filter-toggle:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.filter-toggle.active {
  background: var(--color-primary-bg);
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.filter-toggle-arrow {
  transition: transform 0.25s;
  font-size: 10px;
}
.filter-toggle.active .filter-toggle-arrow {
  transform: rotate(180deg);
}
.filter-panel.collapsed {
  display: none !important;
}
.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

/* 分页按钮组 */
.pagination-wrap {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  color: #374151;
  background: #fff;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}
.page-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.page-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  font-weight: 600;
}
.page-btn.disabled {
  opacity: 0.3;
  pointer-events: none;
}
.pager-info {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 6px;
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
}
.pager-ellipsis {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 4px;
  font-size: 13px;
  color: #9ca3af;
}

/* ===== 5.2 会员详情展开面板（仅红娘使用） ===== */
.member-detail-panel {
  display: none;
  margin-top: 8px;
  padding: 12px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px var(--color-primary-shadow);
}

.member-detail-panel.show {
  display: block;
}

/* ===== 5.3 配对卡片（紧凑设计） ===== */
.pair-card {
  background: var(--color-white);
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
  margin-bottom: 6px;
  border: 1px solid #f0f0f0;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.pair-card:hover {
  box-shadow: 0 3px 12px var(--color-primary-shadow);
  border-color: var(--color-primary-pale);
}
/* 从新增配对页跳转定位已有配对：高亮提示 */
.pair-card.pair-focus-highlight {
  border: 2px solid var(--color-primary, #FF589B);
  box-shadow: 0 0 0 3px rgba(255,88,155,0.18), 0 4px 14px rgba(255,88,155,0.25);
  transition: box-shadow 0.3s, border-color 0.3s;
}
@keyframes pairFocusPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255,88,155,0.18), 0 4px 14px rgba(255,88,155,0.25); }
  50% { box-shadow: 0 0 0 6px rgba(255,88,155,0.34), 0 4px 20px rgba(255,88,155,0.4); }
}
.pair-card.pair-focus-highlight {
  animation: pairFocusPulse 1.2s ease-in-out 2;
}

/* ===== 第一行：会员信息并排 ===== */
.pair-members {
  display: flex;
  align-items: center;
  gap: 24px;
}
.pair-member {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.pair-member-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  object-fit: cover;
}
.pair-member-avatar.male {
  background: linear-gradient(135deg, #4fc3f7, #2196f3);
}
.pair-member-avatar.female {
  background: linear-gradient(135deg, #f06292, #e91e63);
}
/* 配对头像容器 */
.pair-avatar-wrap {
  display: inline-flex;
  flex-shrink: 0;
}
/* 头像链接：点击在新标签页查看征婚资料，保持头像原有布局 */
.pair-avatar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  text-decoration: none;
  cursor: pointer;
  border-radius: 50%;
}
.pair-avatar-link .pair-member-avatar {
  transition: opacity 0.15s ease;
}
.pair-avatar-link:hover .pair-member-avatar {
  opacity: 0.85;
}
/* 会员信息体（徽标行 + 编号文本 纵向两行，与头像左对齐） */
.pair-member-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
/* 徽标行：圆形徽标水平排开，与编号左对齐；文本徽标过长时可换行 */
.pair-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  min-width: 0;
}
/* 圆形统计徽标（绿=介绍中含后备 / 红=推进中 / 琥珀=有效相亲累计） */
.pair-stat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 50%;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  box-sizing: border-box;
  border: 1px solid rgba(255,255,255,0.6);
  cursor: default;
}
.pair-stat-badge.b-intro   { background: #10b981; }  /* 绿：介绍中（含后备） */
.pair-stat-badge.b-active  { background: #ef4444; }  /* 红：推进中 */
.pair-stat-badge.b-total   { background: #f59e0b; }  /* 琥珀：有效相亲累计 */
.pair-stat-badge.b-match   { background: #3b82f6; }  /* 蓝：累计匹配组合数 */
.pair-stat-badge.b-completion { background: #8b5cf6; border-radius: 8px; min-width: auto; padding: 0 4px; line-height: 12px; }  /* 紫：信息完善度 */
.pair-stat-badge.b-paid   { background: #06b6d4; border-radius: 8px; min-width: auto; padding: 0 4px; line-height: 12px; }  /* 青：缴费总额 */
.pair-stat-badge.b-remain { background: #64748b; border-radius: 8px; min-width: auto; padding: 0 4px; line-height: 12px; }  /* 灰蓝：剩余次数 */
.pair-stat-badge.b-remain.overdue { background: #ef4444; color: #fff !important; }  /* 红：欠费（覆盖全局 .overdue 的红色文字） */
.pair-stat-badge.b-preferred { background: #ec4899; border-radius: 8px; min-width: auto; height: auto; padding: 3px 10px; font-size: 11px; line-height: 14px; }  /* 粉：优先联系人 */
.pair-stat-badge.b-matchmaker { background: #ccfbf1; color: #0f766e !important; border-color: #99f6e4; border-radius: 8px; min-width: auto; height: auto; padding: 1px 6px; font-size: 11px; line-height: 14px; }  /* 浅青：红娘编号（深色文字，对比清晰） */
/* 会员备注徽标：样式仿配对详情 meta 备注（浅琥珀底 + 细边；label 加粗、正文普通色），完整展示自动换行 */
.pair-stat-badge.b-remark {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px;
  min-width: auto;
  height: auto;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  white-space: normal;
  border-radius: 8px;
  background: #fff7e6;
  border: 1px solid #f4dfae;
  color: #7a4e08;
}
.pair-stat-badge.b-remark .b-remark-label {
  color: #7a4e08;
  font-weight: 400;
  flex-shrink: 0;
}
.pair-stat-badge.b-remark .b-remark-text {
  color: #7a4e08;
  font-weight: 400;
  word-break: break-word;
}
/* 会员信息文本 */
.pair-member-info {
  font-size: 12px;
  color: #1f2937;
  flex: 1;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
/* 操作图标 */
.pair-member-actions {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  flex-shrink: 0;
}
.pair-log-link {
  cursor: pointer;
  font-size: 14px;
  color: #9ca3af;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
  margin-left: 4px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: 8px;
}
.pair-log-link:hover {
  background: var(--color-primary-bg);
  color: var(--color-primary);
}
.pair-log-link svg {
  display: block;
}

/* ===== 第二行：状态 + 元信息 + 操作按钮 ===== */
.pair-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px dashed #e5e7eb;
}
.pair-status {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 64px;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
  letter-spacing: 0.5px;
}
.pair-status.active {
  background: #dcfce7;
  color: #15803d;
}
.pair-status.ended {
  background: #fee2e2;
  color: #b91c1c;
}
/* 状态徽章 label/value 分隔（桌面端横向排列时的间距） */
.pair-status-label {
  margin-right: 4px;
}
.pair-end-info {
  display: contents;
}
.pair-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #1f2937;
  white-space: nowrap;
  padding: 3px 9px;
  border-radius: 8px;
  background: #f6f7f9;
  line-height: 1.5;
}
.pair-meta-label {
  color: #6b7280;
  font-weight: 400;
}
/* 最近跟进等日期无值时的占位：保留与完整日期（YYYY-MM-DD）相近的宽度，避免胶囊缩窄 */
.pair-date-empty {
  display: inline-flex;
  align-items: center;
  min-width: 5.6em;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
/* 让“最近跟进”有值/无值时值区域等宽：把日期值也统一到同一最小宽度，保证不同卡片宽度完全一致 */
.pair-meta-item.pair-lastfollow .pair-date {
  display: inline-flex;
  align-items: center;
  min-width: 5.6em;
  white-space: nowrap;
}
/* 桌面端元信息：冒号与值间距收紧 */
.pair-meta-item.pair-meta-desk {
  gap: 2px;
}
.pair-meta-item.overdue {
  color: #dc2626 !important;
  font-weight: 700;
  background: #fef2f2;
}
/* 跟进内容：与「联系倒计」同排（允许换行） */
.pair-meta-content {
  white-space: normal;
  line-height: 1.5;
}
/* 备注：独占整行（单独排到“状态/元信息”行下方），允许换行；浅琥珀底色醒目 */
.pair-meta-item.pair-remark {
  flex-basis: 100%;
  white-space: normal;
  line-height: 1.5;
  max-width: 100%;
  background: #fff7e6;
  border: 1px solid #f4dfae;
  color: #7a4e08;
}
/* 配对详情 meta 备注：label 与正文同色同字重（不突出），仿标签高亮由整块浅琥珀底承担 */
.pair-meta-item.pair-remark .pair-meta-label {
  color: #7a4e08;
  font-weight: 400;
}

/* 配对搜索框「清空」按钮：默认隐藏，移动端显示 */
.pair-search-clear {
  display: none;
}
.pair-meta-item .meta-icon {
  font-size: 11px;
  line-height: 1;
}
.pair-actions {
  display: flex;
  gap: 3px;
  flex-shrink: 0;
}
.pair-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px 14px;
  border-radius: 10px;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  color: #6b7280;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  line-height: 1.4;
}
.pair-action-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-bg);
}
.pair-action-btn.primary {
  background: var(--color-primary-bg);
  border-color: var(--color-primary-pale);
  color: var(--color-primary);
}
/* hover 效果与其它操作按钮保持一致（不再变为实心粉底白字） */
.pair-action-btn.primary:hover {
  background: var(--color-primary-bg);
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.pair-action-btn.danger:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: #fef2f2;
}

/* ===== 新增配对弹窗会员搜索 ===== */
.pair-member-search-wrap {
  flex: 1;
  position: relative;
}
.pair-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  max-height: 200px;
  overflow-y: auto;
  display: none;
}
.pair-search-results.show {
  display: block;
}
.pair-search-result-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.1s;
  font-size: 13px;
}
.pair-search-result-item:hover {
  background: #e0f2fe;
}
.pair-search-result-item .gender-tag {
  display: inline-block;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.8;
}
.pair-search-result-item .gender-tag.male { background: #e3f2fd; color: #1565c0; }
.pair-search-result-item .gender-tag.female { background: #fce4ec; color: #c62828; }
.pair-search-result-item .result-meta {
  font-size: 11px;
  color: #9ca3af;
  margin-left: auto;
}
.pair-selected-member {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  font-size: 13px;
}
.pair-selected-name {
  font-weight: 600;
  color: #15803d;
}
.pair-selected-remove {
  cursor: pointer;
  color: #9ca3af;
  font-size: 14px;
  line-height: 1;
  margin-left: auto;
}
.pair-selected-remove:hover {
  color: #ef4444;
}
.pair-search-empty {
  padding: 12px;
  text-align: center;
  color: #9ca3af;
  font-size: 12px;
}

/* ===== 操作按钮区 ===== */
.pair-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  /* 始终单独一行显示：占满所在行宽，强制换行到独立行 */
  flex-basis: 100%;
  width: 100%;
}
.pair-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 10px;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.pair-action-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-bg);
}
.pair-action-btn.primary {
  background: var(--color-primary-bg);
  border-color: var(--color-primary-pale);
  color: var(--color-primary);
}
/* hover 效果与其它操作按钮保持一致（不再变为实心粉底白字） */
.pair-action-btn.primary:hover {
  background: var(--color-primary-bg);
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.pair-action-btn.danger:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: #fef2f2;
}

/* ===== 配对卡操作按钮：移动端三列网格布局 =====
   （全部操作按钮常驻展示，三列网格更紧凑，文字完整无截断） */
@media (max-width: 1023.98px) {
  .pair-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px dashed #e5e7eb;
  }
  .pair-action-btn {
    width: 100%;
    justify-content: center;
    min-height: 36px;
    padding: 6px 6px;
    font-size: 12px;
    font-weight: 400;
    border-radius: 10px;
    white-space: nowrap;
  }
  /* 删除跟进：常驻危险色，移动端无 hover 也能识别 */
  .pair-action-btn.danger {
    border-color: #fecaca;
    color: #dc2626;
    background: #fef2f2;
  }
}

/* ===== 5.3a 内联时间线 ===== */
.pair-timeline-wrap {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  border-top: 1px dashed #e5e7eb;
  transition: max-height 0.35s ease, opacity 0.3s ease, margin 0.3s ease, padding 0.3s ease;
  margin-top: 0;
  padding-top: 0;
}
.pair-timeline-wrap.open {
  max-height: 2000px;
  opacity: 1;
  margin-top: 6px;
  padding-top: 6px;
}
.pair-timeline-loading {
  text-align: center;
  padding: 20px 0;
  display: none;
}
.pair-timeline-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2.5px solid #e5e7eb;
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: tlSpin 0.6s linear infinite;
}
@keyframes tlSpin {
  to { transform: rotate(360deg); }
}
.pair-timeline {
  padding-left: 16px;
  position: relative;
}
/* 背景竖线：贯穿整个时间线，在圆点正下方 */
.pair-timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: #e5e7eb;
}

/* 时间线条目 */
.pair-tl-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0;
  min-height: 32px;
}
/* 圆点标记 */
.pair-tl-dot {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  margin-top: 5px;
  margin-left: 4px;
  box-shadow: 0 0 0 3px #fff;
}
/* 内容体 */
.pair-tl-body {
  flex: 1;
  min-width: 0;
  padding-left: 10px;
  padding-bottom: 14px;
}
.pair-tl-body-nodot {
  padding-left: 24px;
}
.pair-tl-item:last-child .pair-tl-body {
  padding-bottom: 0;
}
/* 日期标签（仅同天第一条显示） */
.pair-tl-date-label {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 6px;
}
/* 记录卡片 */
.pair-tl-card {
  background: #f9fafb;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 4px;
  border: 1px solid #f3f4f6;
}
/* 联系对象标签 */
.pair-tl-target {
  display: inline-block;
  padding: 1px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 6px;
}
.pair-tl-target.target-male        { background: #e3f2fd; color: #1565c0; }
.pair-tl-target.target-female      { background: #fce4ec; color: #c62828; }
.pair-tl-target.target-male-agent  { background: #fff3e0; color: #e65100; }
.pair-tl-target.target-female-agent { background: #f3e8ff; color: #7c3aed; }
.pair-tl-target.target-both        { background: #e0f2f1; color: #00695c; }
.pair-tl-target.target-both-agent  { background: #fce4ec; color: #ad1457; }
/* 时间线状态标签 */
.pair-tl-status {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.pair-tl-status.tl-status-active { background: #e8f5e9; color: #2e7d32; }
.pair-tl-status.tl-status-ended { background: #fbe9e7; color: #c62828; }
/* 进展详述 */
/* 进展文本（自动换行） */
.pair-tl-text-inline {
  font-size: 13px;
  color: #374151;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 80px;
  flex-shrink: 1;
  text-align: center;
}
/* 反馈摘要（自动换行） */
.pair-tl-summary-inline {
  font-size: 12px;
  color: #374151;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 60px;
  flex-shrink: 1;
  text-align: center;
}
/* 空状态 */
.pair-tl-empty {
  text-align: center;
  padding: 16px 0;
  font-size: 13px;
  color: #6b7280;
}

/* 时间线表头（跟进时间 | 联系对象 | 跟进人员 | 状态 | 跟进情况 | 跟进详情）
   复用卡片结构（.pair-tl-card / .pair-tl-card-top / .pair-tl-card-top-left），
   保证与下方记录各列水平对齐。 */
.pair-tl-header-row .pair-tl-body { padding-bottom: 6px; }
.pair-tl-header {
  background: #eef2f7;
  border-color: #e5e7eb;
}
.pair-tl-header .pair-tl-card-top-left {
  /* 表头各列水平居中，与数据列对齐 */
  align-items: center;
  justify-items: center;
}
.pair-tl-header .pair-tl-th {
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  color: #4b5563;
  text-align: center;
  justify-self: center;
}
/* 操作列占位：与数据卡片操作按钮同宽（2×24px + 2px gap），保持网格宽度一致 */
.pair-tl-header-actions {
  width: 50px;
  visibility: hidden;
  pointer-events: none;
  flex-shrink: 0;
}

/* ===== 时间线条目操作按钮 ===== */
.pair-tl-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}
.pair-tl-card-top-left {
  display: grid;
  grid-template-columns: 90px 80px 120px 90px 1fr 1fr;
  align-items: flex-start;
  justify-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}
/* 会员只读版：时间|对象|状态|跟进情况（无"跟进人员/跟进详情"列） */
.pair-tl-member .pair-tl-card-top-left {
  grid-template-columns: 60px 70px 70px 1fr;
  align-items: center;
}
/* 跟进情况内容较多：占满剩余列宽并左对齐；四列字号统一 */
.pair-tl-member .pair-tl-summary-inline {
  justify-self: stretch;
  text-align: left;
  min-width: 0;
  font-size: 11px;
}
/* 会员版时间线：左侧与上方虚线边缘对齐（无内边距），圆点/竖线贴左 */
.pair-tl-member {
  padding-left: 0;
}
.pair-tl-member::before {
  left: 4px;
}
.pair-tl-member .pair-tl-dot {
  width: 8px;
  height: 8px;
  margin-left: 0;
  margin-top: 6px;
}
.pair-tl-member .pair-tl-body {
  padding-left: 12px;
}
.pair-tl-member .pair-tl-body-nodot {
  padding-left: 20px;
}
/* 对象/状态标签：去 margin-bottom 保证垂直居中；有背景色即足够强调，字重统一 400 避免抢跟进情况焦点 */
.pair-tl-member .pair-tl-target {
  margin-bottom: 0;
  font-weight: 400;
}
.pair-tl-member .pair-tl-status {
  font-weight: 400;
}
/* 移动端：四列单行，跟进情况占满剩余宽度（前三列尽量收窄） */
@media (max-width: 767px) {
  .pair-tl-member .pair-tl-card-top-left {
    grid-template-columns: minmax(0, 30px) minmax(0, 58px) minmax(0, 62px) minmax(0, 1fr);
    gap: 4px;
  }
  .pair-tl-member .pair-tl-date {
    font-size: 10px;
  }
  .pair-tl-member .pair-tl-target {
    font-size: 10px;
    padding: 1px 6px;
    margin-bottom: 0;
  }
  .pair-tl-member .pair-tl-status {
    font-size: 10px;
    padding: 1px 5px;
  }
  .pair-tl-member .pair-tl-summary-inline {
    font-size: 10px;
  }
  .pair-tl-member .pair-tl-card {
    padding: 10px 6px;
  }
}
/* 跟进时间单元格 */
.pair-tl-date {
  font-size: 11px;
  color: #6b7280;
  white-space: nowrap;
}
.pair-tl-operator {
  font-size: 11px;
  color: #6b7280;
  white-space: nowrap;
}
.pair-tl-card-actions {
  display: flex;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.15s;
}
.pair-tl-card:hover .pair-tl-card-actions {
  opacity: 1;
}
.pair-tl-btn-edit,
.pair-tl-btn-del {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
}
.pair-tl-btn-edit {
  color: #4b5563;
}
.pair-tl-btn-edit:hover {
  background: #e0f2fe;
  color: #0369a1;
}
.pair-tl-btn-del {
  color: #6b7280;
}
.pair-tl-btn-del:hover {
  background: #fef2f2;
  color: #ef4444;
}

/* ===== 内联编辑模式 ===== */
.pair-tl-edit {
  margin-top: 6px;
  padding: 10px;
  background: #f0fdf4;
  border-radius: 8px;
  border: 1px solid #bbf7d0;
}
.pair-tl-edit-field-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}
.pair-tl-edit-field-row-top {
  align-items: flex-start;
}
.pair-tl-edit-label {
  font-size: 12px;
  color: #4b5563;
  font-weight: 600;
  white-space: nowrap;
  min-width: 56px;
  text-align: center;
}
.pair-tl-edit-label-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.3;
  gap: 2px;
  text-align: center;
}
.pair-tl-edit-label-main {
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
}
.pair-tl-edit-label-hint {
  font-size: 10px;
  font-weight: 400;
  color: #6b7280;
}
.pair-tl-edit-date {
  flex: 1;
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 12px;
  background: #fff;
  outline: none;
  font-family: inherit;
}
.pair-tl-edit-date:focus {
  border-color: var(--color-primary);
}
.pair-tl-edit-target {
  flex: 1;
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 12px;
  background: #fff;
  outline: none;
}
.pair-tl-edit-target:focus {
  border-color: var(--color-primary);
}
.pair-tl-edit-progress {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 12px;
  margin-bottom: 6px;
  resize: vertical;
  font-family: inherit;
  box-sizing: border-box;
  background: #fff;
  outline: none;
}
.pair-tl-edit-progress:focus {
  border-color: var(--color-primary);
}
.pair-tl-edit-summary {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 12px;
  margin-bottom: 6px;
  box-sizing: border-box;
  background: #fff;
  outline: none;
}
.pair-tl-edit-summary:focus {
  border-color: var(--color-primary);
}
.pair-tl-edit-btns {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}
.pair-tl-edit-save {
  padding: 5px 16px;
  border: none;
  border-radius: 8px;
  background: var(--color-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
.pair-tl-edit-save:hover {
  opacity: 0.9;
}
.pair-tl-edit-save:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.pair-tl-edit-cancel {
  padding: 5px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #6b7280;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.pair-tl-edit-cancel:hover {
  border-color: #9ca3af;
  color: #374151;
}
.pair-tl-edit-msg {
  font-size: 12px;
  min-height: 18px;
  line-height: 1.4;
}

/* ===== 5.4 状态标签 ===== */
.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 11px;
}

.status-seeking {
  background: var(--color-primary-pale);
  color: var(--color-primary-dark);
}

.status-paused {
  background: #fff3e0;
  color: #e65100;
}

.status-active {
  background: transparent;
  color: #2e7d32;
}

.status-done {
  background: transparent;
  color: #1565c0;
}

.status-overdue {
  background: transparent;
  color: #c62828;
}

/* ===== 督办台账：紧凑网格表格 ===== */
.supervision-table {
  display: grid;
  grid-template-columns: 110px 64px minmax(180px, auto) 150px minmax(200px, 3fr) minmax(100px, 1fr) minmax(100px, 1fr) 180px;
  width: 100%;
  max-width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  overflow-x: auto;
  background: #fff;
}
.supervision-row {
  display: contents;
}
.supervision-row-head .sup-col {
  background: #f8fafc;
  font-weight: 600;
  color: #475569;
}
.sup-col {
  min-width: 0; /* 允许 fr 列收缩，配合省略号截断，避免表格溢出屏幕 */
  padding: 7px 9px;
  border-bottom: 1px solid #d1d5db;
  border-right: 1px solid #cbd5e1;
  font-size: 12px;
  color: #334155;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
  text-align: center; /* 内容水平居中 */
  display: flex;
  align-items: center; /* 内容垂直居中 */
  justify-content: center; /* 保持水平居中 */
}

/* 督办内容/落实情况/下一步计划：允许自动换行 */
.sup-col.col-content,
.sup-col.col-impl,
.sup-col.col-plan {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: break-word;
  word-break: break-word;
  vertical-align: top;
}

/* 督办联系对象：列内容水平居中 */
.sup-col.col-contact {
  min-width: 0;
  text-align: center;
  white-space: nowrap;
  justify-content: center;
}
/* 联系对象列：表头水平居中，数据单元格左对齐 */
.supervision-row-head .sup-col.col-contact {
  text-align: center;
  justify-content: center;
}

/* 督办内容列：尽量宽；落实情况/下一步计划：较窄 */
.sup-col.col-content {
  min-width: 200px;
  /* 保留督办内容中的换行格式 */
  white-space: pre-wrap;
}
.sup-col.col-impl,
.sup-col.col-plan {
  min-width: 100px;
}

/* 备注列：最小宽度 */
.sup-col.col-remark {
  min-width: 90px;
}

/* 督办台账：“完成”按钮（柔和绿色） */
.action-btn-done {
  background: #d9f2e3;
  color: #1e7a4d;
  border: 1px solid #b7e3c8;
}
.action-btn-done:hover {
  background: #c3e9d2;
  color: #166a41;
}
/* 督办台账：“继续督办”按钮（柔和琥珀色） */
.action-btn-reopen {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}
.action-btn-reopen:hover {
  background: #fde68a;
  color: #92400e;
}
/* 督办台账：“删除”按钮（柔和红色，与“完成”的柔和绿对应） */
.action-btn-danger-outline {
  background: #fdecec;
  color: #d32f2f;
  border: 1px solid #f5c6c6;
}
.action-btn-danger-outline:hover {
  background: #fbdcdc;
  color: #c62828;
}
.supervision-row:last-child .sup-col {
  border-bottom: none;
}
.col-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.sup-col .action-btn {
  padding: 3px 9px;
  font-size: 12px;
  white-space: nowrap;
}
.sup-col.col-action {
  justify-content: space-evenly; /* 按钮间距与左右边缘间距等分 */
}

/* ===== 督办台帐：新增/编辑表单（卡片式，美化） ===== */
.supervision-form {
  margin-bottom: 16px;
  padding: 18px 20px;
  border: 1px solid #e6e9ef;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fafc 0%, #fdfdfe 100%);
  box-shadow: 0 1px 3px rgba(15, 23, 42, .05);
}
.sup-form-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 3fr auto;
  gap: 12px 10px;
  align-items: stretch;
}
.sup-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  height: 100%;
}
/* 三个输入框（联系对象/督办事项/督办内容）始终等高：填满字段剩余高度 */
.sup-field > input,
.sup-field > textarea,
.sup-field > .sup-contact-wrap {
  flex-grow: 1;
  flex-basis: auto;
  min-height: 33px;
}
.sup-field label {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
  letter-spacing: .2px;
}
.sup-field .required-mark {
  color: #ef4444;
  font-weight: 700;
  margin-left: 2px;
}
.sup-field input,
.sup-field select,
.sup-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  font-size: 13px;
  color: #334155;
  background: #fff;
  border: 1px solid #d8dee7;
  border-radius: 8px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.sup-field input::placeholder,
.sup-field textarea::placeholder {
  color: #a7b0bd;
}
.sup-field input:hover,
.sup-field select:hover,
.sup-field textarea:hover {
  border-color: #c0c9d4;
}
.sup-field input:focus,
.sup-field select:focus,
.sup-field textarea:focus {
  outline: none;
  border-color: #4f7cff;
  box-shadow: 0 0 0 3px rgba(79, 124, 255, .12);
}
.sup-field textarea {
  resize: vertical;
  height: 33px;
  min-height: 33px;
  line-height: 17px;
}
/* 内容/占位符在单行内垂直居中：内高 = 33 - 8*2 = 17px，line-height 与之对齐 */
/* 隐藏这三个文本域右侧的滚动条/上下箭头，仍可滚动 */
.sup-field textarea {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.sup-field textarea::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
/* 状态下拉：显示文本水平居中 */
#sup_status {
  text-align: center;
  text-align-last: center;
  -moz-text-align-last: center;
  cursor: pointer;
  height: 33px;
}
#sup_status option {
  text-align: center;
}
/* ===== 督办：联系对象组件 ===== */
.sup-contact-wrap {
  position: relative;
}
/* 新建督办表单：联系对象外层纵向布局，搜索框/已选芯片填满（与其它输入框等高） */
.sup-field .sup-contact-wrap {
  display: flex;
  flex-direction: column;
}
.sup-field .sup-contact-wrap > .sup-contact-search {
  flex: 1;
  min-height: 33px;
  width: 100%;
  box-sizing: border-box;
}
.sup-field .sup-contact-wrap > .sup-contact-selected {
  flex: 1;
}
.sup-contact-wrap > input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  font-size: 13px;
  color: #334155;
  background: #fff;
  border: 1px solid #d8dee7;
  border-radius: 8px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.sup-contact-wrap > input:focus {
  outline: none;
  border-color: #4f7cff;
  box-shadow: 0 0 0 3px rgba(79, 124, 255, .12);
}
.sup-contact-results {
  display: none;
  position: absolute;
  z-index: 1000;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  max-height: 260px;
  overflow-y: auto;
}
.sup-contact-results.show {
  display: block;
}
.sup-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  cursor: pointer;
}
.sup-contact-item:hover {
  background: #fef2f6;
}
.sup-contact-item img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.sup-contact-item .sci-main {
  flex: 1;
  min-width: 0;
}
.sup-contact-item .sci-name {
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sup-contact-item .sci-name .sci-no {
  font-size: 12px;
  font-weight: 400;
  color: #9ca3af;
}
.sup-contact-item .sci-info {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
  line-height: 1.5;
  white-space: normal;
  word-break: break-word;
}
.sup-contact-empty-hint {
  padding: 10px;
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
}
.sup-contact-selected {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #f1e4e8;
  border-radius: 10px;
}
.sup-contact-selected img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.sup-contact-selected .scs-info {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: #334155;
  line-height: 1.5;
  white-space: normal;
  word-break: break-word;
}
.sup-contact-selected .scs-remove {
  flex-shrink: 0;
  border: none;
  background: none;
  color: #9ca3af;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
}
.sup-contact-selected .scs-remove:hover {
  color: #ef4444;
}
/* 表格内联系对象单元格 */
.sup-contact-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
.sup-contact-top {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sup-contact-cell .sup-contact-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.sup-contact-cell .sup-contact-info {
  font-size: 12px;
  color: #334155;
  line-height: 1.5;
  white-space: nowrap;
}
.sup-contact-actions {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.sup-contact-actions .member-card-action-btn {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
.sup-contact-empty {
  color: #9ca3af;
}
.sup-form-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  align-self: stretch; /* 撑满行高 */
  padding-top: 21px;   /* 偏移 label(16px) + 间距(5px)，使按钮在输入框区域内垂直居中 */
}

/* ===== 督办台账：表格行内编辑控件 ===== */
.sup-inline {
  width: 100%;
  box-sizing: border-box;
  padding: 3px 6px;
  font-size: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
  color: #334155;
  text-align: left;
}
.sup-inline-date,
.sup-inline-status {
  height: 26px;
}
.sup-inline-title,
.sup-inline-content,
.sup-inline-impl,
.sup-inline-plan {
  height: 26px;
}
.sup-inline-content,
.sup-inline-impl,
.sup-inline-plan {
  resize: none;
}
.sup-inline:focus {
  outline: none;
  border-color: var(--color-primary, #e65d8a);
}
/* 行内编辑状态：输入框与单元格融为一体（无边框盒子感，铺满单元格） */
.sup-editing .sup-col {
  padding: 0;
  align-items: stretch;
}
.sup-editing .sup-col.col-contact {
  padding: 0;
}
/* 行内编辑：联系对象搜索输入框铺满单元格、占位符水平居中 */
.sup-editing .sup-contact-wrap {
  width: 100%;
  height: 100%;
}
.sup-editing .sup-inline-contact-input.sup-contact-search {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  font-size: 13px;
  padding: 8px 9px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #334155;
  text-align: center;
  outline: none;
  min-height: 44px;
}
.sup-editing .sup-inline-contact-input.sup-contact-search::placeholder {
  color: #9ca3af;
  text-align: center;
}
.sup-editing .sup-inline-contact-input.sup-contact-search:hover {
  background: #f8fafc;
}
.sup-editing .sup-inline-contact-input.sup-contact-search:focus {
  background: #f8fafc;
  box-shadow: inset 0 0 0 2px var(--color-primary);
}
/* 行内编辑：已选会员芯片垂直居中 */
.sup-editing .sup-contact-selected {
  align-items: center;
}
.sup-editing .sup-col.col-action {
  padding: 8px 10px;
  align-items: center;
}
.sup-editing .sup-inline {
  width: 100%;
  box-sizing: border-box;
  font-size: 13px;
  padding: 8px 9px; /* 与普通单元格内边距一致，保持文字位置稳定 */
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  text-align: center;
  min-height: 44px;
}
.sup-editing textarea.sup-inline {
  height: auto;
  min-height: 44px;
  line-height: 1.5;
  overflow: hidden;
  resize: none;
  text-align: left;
}
.sup-editing .sup-inline-date,
.sup-editing .sup-inline-status,
.sup-editing .sup-inline-title {
  height: 100%;
}
.sup-editing .sup-inline:hover {
  background: #f8fafc;
}
/* 编辑态点击单元格：静态主题色边框（不变换） */
.sup-editing .sup-inline:focus {
  background: #f8fafc;
  box-shadow: inset 0 0 0 2px var(--color-primary);
}

/* 督办台帐：hover 下拉（日期/状态）触发控件 */
.sup-dd-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.sup-dd-trigger::after {
  content: '▾';
  font-size: 10px;
  color: #94a3b8;
  margin-left: 4px;
  flex-shrink: 0;
}

/* hover 下拉浮层 */
.sup-dd-floating {
  display: none;
}
.sup-dd-floating.sup-dd-open {
  display: block;
  position: absolute;
  z-index: 2000;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  padding: 4px;
  min-width: 120px;
}
.sup-dd-opt {
  padding: 6px 10px;
  font-size: 12px;
  color: #334155;
  border-radius: 6px;
  cursor: pointer;
  text-align: center; /* 文字水平居中 */
  white-space: nowrap;
}
.sup-dd-opt:hover {
  background: #fdeef5;
  color: #e65d8a;
}
.sup-dd-opt.sel {
  color: #e65d8a;
  font-weight: 600;
}
/* 日期迷你日历 */
.sup-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 6px;
  min-width: 200px;
}
.sup-cal-nav {
  cursor: pointer;
  color: #64748b;
  padding: 0 6px;
  font-size: 14px;
  user-select: none;
}
.sup-cal-title {
  font-size: 12px;
  color: #334155;
  font-weight: 600;
}
.sup-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.sup-cal-wd {
  font-size: 10px;
  color: #94a3b8;
  text-align: center;
  padding: 2px 0;
}
.sup-cal-day {
  font-size: 12px;
  color: #334155;
  text-align: center;
  padding: 4px 0;
  border-radius: 4px;
  cursor: pointer;
}
.sup-cal-day:hover {
  background: #fdeef5;
  color: #e65d8a;
}
.sup-cal-day.sel {
  background: #e65d8a;
  color: #fff;
}
/* 行内编辑：创建日期、状态 下拉控件 hover 效果 */
.sup-editing .sup-inline-date,
.sup-editing .sup-inline-status,
.sup-inline-date,
.sup-inline-status {
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
  cursor: pointer;
}
.sup-editing .sup-inline-date:hover,
.sup-editing .sup-inline-status:hover,
.sup-inline-date:hover,
.sup-inline-status:hover {
  border-color: var(--color-primary, #e65d8a);
  box-shadow: inset 0 0 0 2px rgba(230, 93, 138, 0.28);
  background-color: #fff1f5;
}
.col-action .action-btn {
  padding: 2px 8px;
  font-size: 11px;
  white-space: nowrap;
}

.marital-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 11px;
  background: #e8eaf6;
  color: #283593;
}

/* ===== 5.5 逾期提醒 ===== */
.overdue {
  color: var(--color-danger) !important;
}

/* ===== 5.6 筛选栏 ===== */
.filter-bar {
  display: flex;
  gap: 8px;
  padding: 8px 0;
  flex-wrap: nowrap;
  align-items: stretch;
}

.filter-btn {
  flex: 1;
  padding: 6px 0;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  background: #fff;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.filter-btn .filter-btn-count {
  margin-left: 4px;
  font-weight: 500;
  font-size: 12px;
  color: inherit;
}
.filter-btn .filter-btn-count::before { content: '('; }
.filter-btn .filter-btn-count::after { content: ')'; }

.filter-bar > .action-btn {
  flex: 1;
  padding: 6px 0;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  background: var(--color-primary-pale);
  color: var(--color-primary);
  font-size: 12px;
  white-space: nowrap;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

/* 排序下拉（filter-bar 内）：标签与箭头垂直居中 */
.filter-bar .follow-select.hd-trigger {
  display: flex;
  align-items: center;
}

/* ===== 5.7 操作按钮（卡片内） ===== */
.action-btn {
  padding: 6px 14px;
  border-radius: 14px;
  border: none;
  font-size: 12px;
  cursor: pointer;
  margin: 2px 4px;
}

.action-btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.action-btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

/* ===== 5.8 跟进时间线（仅红娘使用） ===== */
.followup-timeline {
  border-left: 2px solid var(--color-border);
  padding-left: 16px;
  margin-left: 8px;
}

.followup-item {
  position: relative;
  padding: 8px 0;
  padding-left: 12px;
}

.followup-item::before {
  content: '';
  position: absolute;
  left: -23px;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
}

.followup-date {
  font-size: 12px;
  color: var(--color-text-hint);
}

.followup-content {
  font-size: 14px;
  color: var(--color-text-primary);
  margin-top: 2px;
}
/* =============================================
   6. 工作台补充样式类（消除行内 style）
   ============================================= */

/* "查看全部"链接 */
.view-all-link {
  color: var(--color-primary);
  font-size: 13px;
  text-decoration: none;
}

/* 待跟进提醒左边框 */
.overdue-border {
  border-left: 3px solid var(--color-danger);
}
.due-soon-border {
  border-left: 3px solid var(--color-accent);
}

/* 会员详情占位文本 */
.member-detail-placeholder {
  text-align: center;
  color: var(--color-text-hint);
  font-size: 13px;
  padding: 8px;
}

/* 危险操作按钮 */
.action-btn-danger {
  background: var(--color-danger);
  color: #fff;
}
.action-btn-danger:hover {
  background: #e84546;
  color: #fff;
}

/* 退出登录按钮 */
.btn-logout {
  background: var(--color-danger);
}

/* 员工列表迷你标签 */
.tag-sm {
  font-size: 10px;
  padding: 2px 6px;
}

.tag-danger {
  font-size: 10px;
  padding: 2px 6px;
  background: var(--color-danger-bg);
  color: var(--color-danger);
}

/* =============================================
   7. 员工/管理员工作台专用样式（借鉴 doubao 风格）
   ============================================= */

/* ===== 7.1 横向用户信息卡 ===== */
.profile-header-staff {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  /* background: var(--color-primary); */
  border-bottom: 1px solid var(--color-border);
}

.profile-header-staff .profile-avatar {
  width: 85px;
  height: 95px;
  border-radius: 8px;
  border: none;
  font-size: 24px;
  margin: 0;
  flex-shrink: 0;
}

.header-staff-info {
  flex: 1;
  min-width: 0;
  /* text-align: center; */
}

.header-staff-name {
  font-size: 17px;
  font-weight: 700;
  color: #000;
  line-height: 1.3;
}

.header-staff-meta {
  font-size: 13px;
  /* color: rgba(255, 255, 255, 0.85); */
  color: black;
  margin-top: 2px;
}

.header-staff-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.header-staff-btn {
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  background: var(--color-white);
  text-align: center;
}

/* ===== 7.2 功能图标行 ===== */
.staff-icon-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 12px 8px;
  gap: 4px;
  background: var(--color-primary-bg);
  border-bottom: 1px solid var(--color-border);
}

.staff-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--color-text-primary);
  cursor: pointer;
  padding: 8px 0;
  border-radius: 8px;
  transition: background 0.15s;
}

.staff-icon-item:active {
  background: var(--color-primary-bg);
}

.staff-icon-box {
  font-size: 22px;
  line-height: 1;
  margin-bottom: 8px;
}

/* ===== 7.3 统计卡片网格修复 ===== */
.stats-grid {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px 12px 4px;
}

.stat-card {
  min-width: 0;
  overflow: hidden;
  padding: 12px 8px;
}

.stat-value {
  font-size: 22px;
}

/* ===== 7.4 功能菜单网格 ===== */
.staff-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 12px 12px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-white);
  box-shadow: 0 1px 4px var(--color-primary-shadow);
}

.staff-menu-item {
  padding: 13px 16px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
  color: var(--color-text-primary);
  cursor: pointer;
  transition: background 0.15s;
}

.staff-menu-item:nth-child(even) {
  border-right: none;
}

.staff-menu-item:nth-last-child(-n+2) {
  border-bottom: none;
}

.staff-menu-item:active {
  background: var(--color-primary-bg);
}

/* ===== 7.5 底部按钮栏 ===== */
.staff-bottom-bar {
  display: flex;
  justify-content: space-around;
  padding: 12px 12px 24px;
  gap: 10px;
}

.staff-bottom-btn {
  flex: 1;
  padding: 9px 0;
  border-radius: 6px;
  font-size: 13px;
  border: 1px solid;
  text-align: center;
  cursor: pointer;
  background: var(--color-white);
}

.staff-bottom-btn.logout {
  border-color: var(--color-danger);
  color: var(--color-danger);
}

.staff-bottom-btn.feedback {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.staff-bottom-btn.service {
  border-color: var(--color-text-hint);
  color: var(--color-text-secondary);
}

/* ===== 7.0 顶部导航栏 ===== */
.staff-top-bar {
  /* background: var(--color-primary-dark); */
  background: var(--color-primary);
  color: #fff;
  padding: 12px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  font-size: 17px;
  font-weight: 500;
}

.staff-top-bar-right {
  position: absolute;
  right: 16px;
  font-size: 11px;
  color: #fff;
  text-decoration: none;
}

/* =============================================
   8. 跟进记录 Modal 弹窗
   ============================================= */

.follow-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  justify-content: center;
  align-items: flex-start;
  padding: 20px 14px;
  overflow-y: auto;
  box-sizing: border-box;
}

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

.follow-modal {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  margin: auto;
}

/* 修改跟进弹窗：桌面端 520px（移动端由响应式规则接管） */
.edit-follow-modal {
  width: 100%;
  max-width: 520px;
}

.follow-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
  border-radius: 14px 14px 0 0;
}

.follow-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.follow-modal-heart {
  font-size: 12px;
}

.follow-modal-close {
  font-size: 20px;
  color: var(--color-text-hint);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.follow-modal-close:hover {
  background: #f5f5f5;
}

.follow-modal-body {
  padding: 16px 18px;
}

.follow-form-section {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.follow-form-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 14px;
}

.follow-form-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.follow-label {
  width: 90px;
  flex-shrink: 0;
  font-size: 13px;
  color: var(--color-text-secondary);
  padding-top: 8px;
}

.follow-select,
.follow-select.hd-trigger,
.follow-input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--color-text-primary);
  background: #fff;
  outline: none;
  text-align: center;
  text-align-last: center;
}

.follow-select:focus,
.follow-select.hd-trigger:hover,
.follow-input:focus,
.follow-textarea:focus {
  border-color: var(--color-primary);
}

.follow-textarea {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--color-text-primary);
  resize: vertical;
  font-family: inherit;
  outline: none;
}

.follow-submit-btn {
  width: 100%;
  padding: 12px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
}

.follow-submit-btn:active {
  opacity: 0.85;
}

.follow-submit-msg {
  text-align: center;
  font-size: 13px;
  margin-top: 8px;
}

.follow-submit-msg.success {
  color: #2e7d32;
}

.follow-submit-msg.error {
  color: var(--color-danger);
}

/* =============================================
   修改密码弹窗
   ============================================= */
.password-modal { max-width: 420px; }
.password-modal-body {
  padding: 24px 28px 28px;
}
.password-modal-body .pw-field {
  margin-bottom: 18px;
}
.password-modal-body .pw-field:last-of-type {
  margin-bottom: 22px;
}
.password-modal-body .pw-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 6px;
}
.password-modal-body .pw-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.password-modal-body .pw-input-icon {
  position: absolute;
  left: 12px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  pointer-events: none;
  z-index: 1;
  transition: color 0.2s;
}
.password-modal-body .pw-input-wrap:focus-within .pw-input-icon {
  color: var(--color-primary);
}
.password-modal-body .pw-input-wrap input {
  width: 100%;
  padding: 11px 44px 11px 40px;
  border: 1.5px solid var(--color-border-light);
  border-radius: 10px;
  font-size: 14px;
  color: var(--color-text-primary);
  background: var(--color-off-white);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  box-sizing: border-box;
}
.password-modal-body .pw-input-wrap input::placeholder {
  color: var(--color-text-disabled);
}
.password-modal-body .pw-input-wrap input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-shadow);
  background: var(--color-white);
}
.password-modal-body .pw-eye-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.2s;
  z-index: 1;
}
.password-modal-body .pw-eye-toggle:hover {
  color: var(--color-primary);
}
.password-modal-body .pw-eye-toggle .pw-eye-icon {
  pointer-events: none;
}
.password-modal-body .pw-hint {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 5px;
  padding-left: 2px;
}
.password-modal-body .pw-msg {
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  padding: 8px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  transition: all 0.2s;
}
.password-modal-body .pw-msg-success {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}
.password-modal-body .pw-msg-error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}
.password-modal-body .pw-submit-btn {
  width: 100%;
  display: block;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 4px 14px var(--color-primary-shadow);
}
.password-modal-body .pw-submit-btn:hover {
  opacity: 0.92;
  box-shadow: 0 6px 20px rgba(255, 88, 155, 0.3);
}
.password-modal-body .pw-submit-btn:active {
  transform: scale(0.98);
}
.password-modal-body .pw-submit-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.password-modal-body .pw-modal-header-icon {
  margin-right: 4px;
}
@media (max-width: 480px) {
  .password-modal-body {
    padding: 20px 18px 24px;
  }
}

.follow-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.follow-history-item {
  padding: 12px;
  background: var(--color-primary-bg);
  border-radius: 10px;
}

.follow-history-date {
  font-size: 12px;
  color: var(--color-text-hint);
  margin-bottom: 4px;
}

.follow-history-target {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 8px;
  background: #e8eaf6;
  color: #283593;
  margin-bottom: 6px;
}

.follow-history-progress {
  font-size: 14px;
  color: var(--color-text-primary);
  line-height: 1.5;
  white-space: pre-wrap;
}

.follow-history-label {
  font-weight: 600;
}

.follow-history-summary {
  font-size: 12px;
  color: var(--color-primary);
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--color-border);
}

.follow-history-empty {
  text-align: center;
  padding: 24px;
  color: var(--color-text-hint);
  font-size: 14px;
}

/* 会员列表悬浮折叠按钮 */
.floating-member-toggle {
  position: fixed;
  z-index: 9999;
  bottom: 28px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  box-shadow: 0 4px 16px rgba(255, 88, 155, 0.4);
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  transform: scale(0.7);
  pointer-events: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
.floating-member-toggle.visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.floating-member-toggle:active {
  cursor: grabbing;
}
.floating-member-toggle.dragging {
  transition: none !important;
  cursor: grabbing;
  box-shadow: 0 8px 28px rgba(255, 88, 155, 0.55);
}
.floating-member-toggle .tooltip-text {
  position: absolute;
  right: calc(100% + 10px);
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.78);
  color: var(--color-white);
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.floating-member-toggle .tooltip-text::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: rgba(0, 0, 0, 0.78);
}
.floating-member-toggle:hover .tooltip-text,
.floating-member-toggle:focus .tooltip-text {
  opacity: 1;
}
.floating-member-icon {
  font-style: normal;
  transition: transform 0.3s;
}
.floating-member-toggle.collapsed .floating-member-icon {
  transform: rotate(180deg);
}

/* 滚动条美化 */
.follow-modal::-webkit-scrollbar {
  width: 4px;
}

.follow-modal::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 2px;
}

/* =============================================
   9. 员工/管理员工作台扩展样式
   ============================================= */

/* ===== 9.2 待跟进双头像（上下排列） ===== */
.follow-pair-avatars {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}
.follow-pair-avatars .avatar-male,
.follow-pair-avatars .avatar-female {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.follow-pair-avatars .avatar-male {
  background: #e3f2fd;
  color: #1565c0;
}
.follow-pair-avatars .avatar-female {
  background: #fce4ec;
  color: #c62828;
}

/* ===== 9.3 会员列表精简显示（默认只显示 5 条） ===== */
.member-list-limited .member-list-item:nth-child(n+6) {
  display: none;
}
.member-list-limited.expanded .member-list-item:nth-child(n+6) {
  display: flex;
}

/* =============================================
   10. 编辑资料抽屉（Drawer / Bottom Sheet）
   =============================================

   桌面端（≥1024px）.profile-staff.css 中覆盖为右侧滑入
   移动端（<768px）默认为底部弹出面板
   ============================================= */

/* ===== 遮罩层 ===== */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: flex-end;
  box-sizing: border-box;
}

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

/* ===== 抽屉面板（默认：移动端底部弹出） ===== */
.drawer-panel {
  width: 100%;
  max-width: 100vw;
  max-height: 92vh;
  background: #fff;
  display: flex;
  flex-direction: column;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.drawer-overlay.show .drawer-panel {
  transform: translateY(0);
}

/* ===== 头部 ===== */
.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.drawer-title {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a2e;
}

.drawer-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #f5f5f5;
  color: #666;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.drawer-close:hover {
  background: #e0e0e0;
}

/* ===== 可滚动内容区 ===== */
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 20px 24px;
  -webkit-overflow-scrolling: touch;
}

.drawer-body::-webkit-scrollbar {
  width: 4px;
}

.drawer-body::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 2px;
}

/* ===== 表单区域分组 ===== */
.drawer-section {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f5f5f5;
}

.drawer-section:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.drawer-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #ff6b9d;
  margin-bottom: 14px;
}

/* ===== 表单字段 ===== */
.drawer-field {
  margin-bottom: 14px;
}

.drawer-field:last-child {
  margin-bottom: 0;
}

.drawer-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 5px;
}

.drawer-field .required {
  color: #ff5252;
}

.drawer-field input,
.drawer-field select {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #e8e8e8;
  border-radius: 10px;
  font-size: 14px;
  color: #333;
  background: #fff;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.drawer-field input:focus,
.drawer-field select:focus {
  border-color: #ff6b9d;
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.drawer-field input::placeholder {
  color: #bbb;
}

.drawer-field input.has-error,
.drawer-field select.has-error {
  border-color: #ff5252;
  background: #fff8f8;
}

.drawer-field input.has-error:focus,
.drawer-field select.has-error:focus {
  box-shadow: 0 0 0 3px rgba(255, 82, 82, 0.12);
}

/* ===== 行内布局（两个字段并排） ===== */
.drawer-row {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.drawer-row .drawer-field {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

/* ===== 字段错误提示 ===== */
.field-error {
  display: none;
  font-size: 12px;
  color: #ff5252;
  margin-top: 4px;
  line-height: 1.4;
}

.field-error.visible {
  display: block;
}

/* ===== 字段辅助提示 ===== */
.field-hint {
  display: block;
  font-size: 11px;
  color: #999;
  margin-top: 3px;
  line-height: 1.4;
}

/* ===== 只读字段样式 ===== */
.drawer-field .readonly-field {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #e8e8e8;
  border-radius: 10px;
  font-size: 14px;
  color: #666;
  background: #f5f5f5;
  box-sizing: border-box;
  cursor: not-allowed;
}

/* ===== 提交按钮区域 ===== */
.drawer-msg {
  text-align: center;
  font-size: 13px;
  margin-top: 8px;
  margin-bottom: 6px;
  min-height: 20px;
  line-height: 1.4;
}

.drawer-submit-btn {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff6b9d, #ff8a80);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 4px 14px rgba(255, 107, 157, 0.3);
}

.drawer-submit-btn:hover {
  opacity: 0.92;
}

.drawer-submit-btn:active {
  transform: scale(0.98);
}

.drawer-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ===== 移动端拖拽条（底部面板提示） ===== */
.drawer-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: #ddd;
  margin: 8px auto 0;
  flex-shrink: 0;
}

/* ===== 桌面端覆盖（≥1024px）：右侧滑入 ===== */
@media (min-width: 1024px) {
  .drawer-overlay {
    align-items: stretch;
    justify-content: flex-end;
  }

  .drawer-panel {
    width: 420px;
    max-width: 92vw;
    max-height: 100vh;
    border-radius: 0;
    transform: translateX(100%);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
  }

  .drawer-overlay.show .drawer-panel {
    transform: translateX(0);
  }

  .drawer-handle {
    display: none;
  }
}

/* ===== 自定义日期选择器 ===== */
.cpicker-wrap {
  position: relative;
  width: 100%;
}
.cpicker-trigger {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: #374151;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}
.cpicker-trigger:hover {
  border-color: var(--brand);
  background: #fff;
}
.cpicker-panel {
  position: fixed;
  width: 280px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 10000;
  padding: 12px;
  display: none;
  margin: 0;
}
.cpicker-panel.cpicker-visible { display: block; }
.cpicker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cpicker-nav {
  font-size: 20px;
  color: #6b7280;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 6px;
  user-select: none;
  line-height: 1;
}
.cpicker-nav:hover { background: #f3f4f6; color: #374151; }
.cpicker-title {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}
.cpicker-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 4px;
}
.cpicker-weekday {
  font-size: 11px;
  color: #9ca3af;
  padding: 4px 0;
}
.cpicker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  gap: 2px;
}
.cpicker-day {
  font-size: 13px;
  color: #374151;
  padding: 5px 0;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.cpicker-day:hover { background: #fef2f7; color: #FF589B; }
.cpicker-day-blank { cursor: default; }
.cpicker-day-today { font-weight: 700; color: #FF589B; }
.cpicker-day-selected { background: #FF589B; color: #fff; font-weight: 700; }
.cpicker-day-selected:hover { background: #FF589B; color: #fff; }
/* 会员推荐 — 奖励状态徽标 */
.reward-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  white-space: nowrap;
}
.reward-badge.reward-pending {
  color: #d6336c;
  background: #fff0f4;
}
.reward-badge.reward-paid {
  color: #15803d;
  background: #ecfdf3;
}

/* ===== 成功提示弹窗（对勾动画） ===== */
.success-modal-box {
  background: #fff;
  border-radius: 16px;
  width: 280px;
  max-width: 84vw;
  padding: 32px 24px 22px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: successPop 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
@keyframes successPop {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.success-modal-icon {
  margin: 0 auto 14px;
  width: 52px;
  height: 52px;
}
.success-modal-icon circle {
  stroke: #d6336c;
  stroke-width: 3;
  fill: none;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: strokeIn 0.5s 0.15s ease forwards;
}
.success-modal-icon path {
  stroke: #d6336c;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: strokeIn 0.35s 0.45s ease forwards;
}
@keyframes strokeIn {
  to { stroke-dashoffset: 0; }
}
.success-modal-msg {
  font-size: 15px;
  color: #1f2937;
  line-height: 1.6;
  margin-bottom: 20px;
}
.success-modal-btn {
  padding: 9px 36px;
  border: none;
  border-radius: 999px;
  background: #FF589B;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.success-modal-btn:active {
  opacity: 0.8;
}

/* 推荐卡片 — 感情状态徽标 */
.rel-status-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: #ffe3ee;
  color: #d6336c;
  white-space: nowrap;
}

/* 推荐卡片 — 相亲/后备数据统计条（5 项一行） */
.referral-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #ffd0e1;
}
.referral-stat {
  text-align: center;
  background: #fff7fa;
  border-radius: 8px;
  padding: 5px 2px 4px;
}
.referral-stat-value {
  font-size: 16px;
  font-weight: 800;
  color: #d6336c;
  line-height: 1.2;
}
.referral-stat-label {
  font-size: 10px;
  color: #9d4a63;
  margin-top: 2px;
  white-space: nowrap;
}

/* ===== 下次跟进：快捷偏移 + 日期选择器（统一视觉） ===== */
.follow-next-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

/* 快捷偏移下拉：自绘箭头，与日期控件同风格 */
.follow-offset-wrap {
  position: relative;
  flex: 0 0 122px;
}
.follow-offset-wrap::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 12px;
  width: 7px;
  height: 7px;
  border-right: 1.8px solid #9aa5b1;
  border-bottom: 1.8px solid #9aa5b1;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
  transition: border-color 0.2s;
}
.follow-offset-wrap:hover::after {
  border-color: var(--color-primary);
}
.follow-offset-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  height: 42px;
  padding: 0 30px 0 12px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  font-family: inherit;
  color: #374151;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
  text-align-last: center;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
}
.follow-offset-select:hover,
.follow-offset-select:focus {
  border-color: var(--color-primary);
}

/* 日期选择器与快捷下拉高度、圆角保持一致 */
.follow-next-controls .cpicker-wrap {
  flex: 1;
  width: auto;
}
.follow-next-controls .cpicker-trigger {
  height: 42px;
  padding: 9px 14px;
  font-size: 13px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== 后备资源列表 ===== */
/* 迷你头像（img 版本） */
.mini-card-avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background-color: var(--color-border);
  flex-shrink: 0;
  display: block;
}

/* 后备等级徽章（一级最优先，颜色由深到浅） */
.reserve-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}
.reserve-lv1 { background: #ff4d6d; }
.reserve-lv2 { background: #f97316; }
.reserve-lv3 { background: #f59e0b; }
.reserve-lv4 { background: #64748b; }
.reserve-lv5 { background: #94a3b8; }

/* 移除按钮（红色描边） */
.reserve-remove-btn {
  color: #ef4444 !important;
  border-color: #fca5a5 !important;
}

/* 后备资源卡片（与"正在牵线"同款）：徽章在左、调整/移除在右，同一行等高 */
.intro-card-foot.reserve-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: default;
}
.reserve-action-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}
.intro-card-foot.reserve-card-actions .reserve-badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  font-size: 12px;
  box-sizing: border-box;
}
.intro-card-foot.reserve-card-actions .profile-btn-sm {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 14px;
  font-size: 12px;
  white-space: nowrap;
  box-sizing: border-box;
}
.reserve-card-no {
  font-size: 11px;
  font-weight: 400;
  color: var(--color-text-hint);
  margin-left: 2px;
}
.reserve-card-remark {
  font-size: 11px;
  color: var(--color-text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

/* ===== 配对状态徽章（match_pair.status 1-10） ===== */
.pair-status-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}
.pair-status-badge.s1  { background: #22c55e; }  /* 介绍中 */
.pair-status-badge.s2  { background: #3b82f6; }  /* 见面前接触 */
.pair-status-badge.s3  { background: #0ea5e9; }  /* 已见面 */
.pair-status-badge.s4  { background: #06b6d4; }  /* 见面后接触 */
.pair-status-badge.s5  { background: #d6336c; }  /* 已确定关系 */
.pair-status-badge.s6  { background: #a855f7; }  /* 已订婚 */
.pair-status-badge.s7  { background: #e11d48; }  /* 已结婚 */
.pair-status-badge.s8  { background: #f59e0b; }  /* 进展缓慢 */
.pair-status-badge.s9  { background: #94a3b8; }  /* 已不谈了 */
.pair-status-badge.s10 { background: #64748b; }  /* 介绍失败 */

/* =============================================
   概览页增强（吸引眼球：介绍中卡片 + 数据统计）
   ============================================= */

/* 亮点标签（有房/有车/稳定工作/学历） */
.hl-tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #d6336c;
  background: #ffe3ee;
  border: 1px solid #ffc2d8;
  line-height: 1.6;
}
.hl-tag-lg {
  padding: 2px 9px;
  font-size: 11px;
  background: linear-gradient(135deg, #fff0f5, #ffe3ee);
  border-color: #ffb9d2;
}
.mini-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}

/* 介绍中卡片列表 */
.intro-card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 介绍中吸睛卡片：小头像 + 名称 + 亮点 + 查看 */
.intro-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #fff5f8, #fffbfd);
  border: 1px solid #ffe3ee;
  border-radius: 14px;
  transition: box-shadow 0.2s, transform 0.15s;
}
.intro-card:active {
  transform: scale(0.98);
}
.intro-card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #ffb9d2, 0 4px 10px rgba(214, 51, 108, 0.15);
  background-color: var(--color-border);
}
.intro-card-body {
  flex: 1;
  min-width: 0;
}
.intro-card-top {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}
.intro-card-name {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* 相亲对象姓名：编号右侧次级展示 */
.intro-card-peer-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-left: 2px;
}
.intro-card-top .pair-status-badge {
  flex-shrink: 0;
}
.intro-card-meta {
  font-size: 11px;
  color: var(--color-text-secondary);
  margin-top: 2px;
  line-height: 1.5;
}
/* 每个"·+段"整体不换行：换行只发生在"·"之前，"·"随下一段到行首，172cm/126斤等不拆开 */
.itx-seg {
  white-space: nowrap;
}

/* 卡片状态行（状态徽章 + 介绍日期） */
.intro-card-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.intro-card-date {
  font-size: 11px;
  color: var(--color-text-hint);
}
.intro-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}
.intro-card-link {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  color: #d6336c;
  text-decoration: none;
  padding: 3px 10px;
  border: 1px solid #ffb9d2;
  border-radius: 999px;
  background: #fff;
  line-height: 1.4;
  margin-left: 6px;
  cursor: pointer;
}
.intro-card-link:active {
  background: #ffe3ee;
}

/* 配对卡片底部：跟进历史 展开/收起 */
/* 带跟进区的卡片改为纵向布局：主行(头像+正文) + 全宽跟进区 */
.intro-card-followable {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.intro-card-followable .intro-card-main {
  display: flex;
  align-items: center;
  gap: 10px;
}
.intro-card-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #ffd0e1;
  font-size: 12px;
  font-weight: 600;
  color: #d6336c;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.intro-card-foot:active {
  opacity: 0.7;
}
.intro-card-foot-arrow {
  transition: transform 0.2s;
  font-size: 10px;
}
.intro-card-foot.open .intro-card-foot-arrow {
  transform: rotate(180deg);
}
.intro-card-follow-panel {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed #ffd0e1;
}

/* 相亲数据统计条（渐变卡片，移动端 3 列两行，平板/桌面 4 列两行） */
.overview-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
@media screen and (min-width: 768px) {
  .overview-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}
.overview-stat {
  text-align: center;
  padding: 12px 2px 10px;
  border-radius: 12px;
  background: linear-gradient(160deg, #fff0f5, #ffe9f2 60%, #ffdde9);
  border: 1px solid #ffd0e1;
}
.overview-stat-value {
  font-size: 22px;
  font-weight: 800;
  color: #d6336c;
  line-height: 1.2;
}
.overview-stat-label {
  font-size: 11px;
  color: #9d4a63;
  margin-top: 3px;
  white-space: nowrap;
}
