/* ========================================================
   profile.css - 人物主档与解耦融合视图专用样式 (方案 3)
   严格遵守规范：单文件 < 400 行
   ======================================================== */

/* 1. 表格行内的人物状态与水帖标记徽章 */
.badge-profile { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; box-sizing: border-box; text-align: center; font-variant-numeric: tabular-nums; background: rgba(14, 165, 233, 0.12); color: #0284c7; border: 1px solid rgba(14, 165, 233, 0.3); padding: 1px 4px; border-radius: 4px; font-size: 11px; font-weight: 600; margin-right: 6px; vertical-align: middle; cursor: pointer; white-space: nowrap; }
.badge-new-profile { display: inline-flex; align-items: center; background: rgba(16, 185, 129, 0.1); color: #059669; border: 1px solid rgba(16, 185, 129, 0.25); padding: 1px 5px; border-radius: 4px; font-size: 11px; font-weight: 500; margin-right: 6px; vertical-align: middle; }
.badge-spam { display: inline-flex; align-items: center; background: rgba(239, 68, 68, 0.12); color: #dc2626; border: 1px solid rgba(239, 68, 68, 0.3); padding: 1px 5px; border-radius: 4px; font-size: 11px; font-weight: 600; margin-right: 6px; vertical-align: middle; }

/* 2. 详情面板中的【人物主档卡片】 */
.profile-dossier-card {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.profile-dossier-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-dossier-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: #0369a1;
  white-space: nowrap;
}

.profile-header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
}

.profile-district-summary {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 11px;
}

.profile-dossier-pill {
  background: #0284c7;
  color: #ffffff;
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

.profile-dossier-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
  color: #334155;
  margin-top: 4px;
}

.profile-dossier-body:empty {
  display: none;
  margin-top: 0;
}

.profile-dossier-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.profile-dossier-label {
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
}

.profile-alias-tag {
  display: inline-block;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  margin-right: 4px;
  margin-bottom: 2px;
}

/* 3. 人物历史发帖时间线折叠区 */
.profile-timeline-box {
  margin-top: 10px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
}

.profile-timeline-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f8fafc;
  cursor: pointer;
  user-select: none;
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
}

.profile-timeline-toggle:hover {
  background: #f1f5f9;
}

.profile-timeline-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #e2e8f0;
}

.profile-timeline-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.profile-timeline-item:last-child {
  border-bottom: none;
}

.profile-timeline-item:hover {
  background: #f0fdf4;
}

.profile-timeline-item.active {
  background: #e0f2fe;
  font-weight: 600;
  border-left: 3px solid #0284c7;
}

.timeline-left {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-date {
  color: #64748b;
  font-family: monospace;
  font-size: 11px;
}

.timeline-title {
  color: #0f172a;
}

.timeline-right {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.timeline-price {
  color: #e11d48;
  font-weight: 600;
}

/* 4. 顶部【发帖流水】与【人物档案库】切换标签 */
.view-tabs-container {
  display: inline-flex;
  background: #e2e8f0;
  padding: 2px;
  border-radius: 6px;
  margin-right: 4px;
}

.view-tab-btn {
  border: none;
  background: transparent;
  padding: 3px 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-tab-btn.active {
  background: #ffffff;
  color: #0284c7;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* 5. 人物档案库卡片网格视图 */
.profiles-grid-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 16px;
  height: 100%;
  overflow-y: auto;
}

.profile-roster-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.profile-roster-card:hover {
  border-color: #0284c7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
}

.profile-roster-card.active {
  border-color: #0284c7;
  background: #f0f9ff;
}

.roster-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.roster-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
}

.roster-avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e0f2fe;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.roster-info {
  flex: 1;
  overflow: hidden;
}

.roster-name {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roster-badge {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

/* 3. 详情面板中的【坛友全周期真实口碑汇总】 */
.profile-reputation-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #0284c7;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.rep-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  border-bottom: 1px dashed #e2e8f0;
  padding-bottom: 8px;
}
.rep-comments-list { display: flex; flex-direction: column; gap: 8px; }
.rep-comment-row { background: #f8fafc; border-radius: 6px; padding: 8px 10px; border: 1px solid #f1f5f9; }
.rep-comment-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #64748b; margin-bottom: 4px; flex-wrap: wrap; }
.rep-time { color: #64748b; font-weight: 500; }
.rep-author { color: #475569; font-weight: 500; }
.rep-comment-text { font-size: 13px; color: #1e293b; line-height: 1.5; word-break: break-all; }
.rep-empty-hint { font-size: 12px; color: #94a3b8; padding: 8px 4px; }
.detail-marketing-card.collapsed .marketing-card-content { display: none; }
.marketing-toggle-title { cursor: pointer; display: flex; align-items: center; justify-content: space-between; }

/* 隐藏人物与操作按钮组件样式 */
.badge-hidden {
  display: inline-block;
  padding: 1px 5px;
  font-size: 11px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
  margin-right: 4px;
  vertical-align: middle;
}
.table-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 25px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  line-height: 1;
}
.table-action-btn.delete-btn { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.table-action-btn.delete-btn:hover { background: #ef4444; color: #ffffff; }
.table-action-btn.unhide-btn { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.table-action-btn.unhide-btn:hover { background: #16a34a; color: #ffffff; }
.row-hidden { opacity: 0.68; background-color: #f8fafc; }
.roster-action-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; height: 25px; padding: 3px 10px; font-size: 12px; font-weight: 500; border-radius: 4px; cursor: pointer; border: 1px solid transparent; }
.roster-action-btn.delete { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.roster-action-btn.delete:hover { background: #ef4444; color: #ffffff; }
.roster-action-btn.unhide { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.roster-action-btn.unhide:hover { background: #16a34a; color: #ffffff; }
.roster-card-hidden { opacity: 0.68; background: #f8fafc; }
.table-action-btn.confirming, .roster-action-btn.confirming, .comment-delete-btn.confirming {
  background: #dc2626 !important;
  color: #ffffff !important;
  border-color: #b91c1c !important;
  font-weight: 600 !important;
}


