/* ============================================================
   B3 执行看板 + 活动复盘 — 专用样式
   命名规范：b3-{component}
   ============================================================ */

/* === 执行看板 — 页面容器 === */
.b3-exec-page {
  padding: 0;
}

/* === 统计条 === */
.b3-stat-bar {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.b3-stat-card {
  flex: 1;
  min-width: 140px;
  background: #fff;
  border-radius: 10px;
  padding: 16px 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
  text-align: center;
}

.b3-stat-card:hover {
  box-shadow: 0 3px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.b3-stat-card.active-filter {
  border: 2px solid #149ebb;
  background: #f0f9fb;
}

.b3-stat-number {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
}

.b3-stat-number.b3-abnormal {
  color: #ff4d4f;
}

.b3-stat-number.b3-expiring {
  color: #faad14;
}

.b3-stat-label {
  font-size: 13px;
  color: #666;
  margin-top: 4px;
}

/* === 刷新栏 === */
.b3-refresh-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #888;
}

.b3-refresh-bar .b3-refresh-time {
  color: #555;
}

.b3-refresh-btn {
  background: #149ebb;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s;
}

.b3-refresh-btn:hover {
  background: #107d96;
}

/* === 页面标题 === */
.b3-page-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.b3-page-subtitle {
  font-size: 13px;
  color: #888;
  margin-bottom: 16px;
}

/* === 执行看板 — 卡片网格 === */
.b3-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 1200px) {
  .b3-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .b3-card-grid {
    grid-template-columns: 1fr;
  }

  .b3-stat-bar {
    flex-direction: column;
  }
}

/* === 活动卡片 === */
.b3-exec-card {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.b3-exec-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.b3-exec-card.b3-card-abnormal {
  border-left: 3px solid #ff4d4f;
}

.b3-exec-card.b3-card-low {
  border-left: 3px solid #faad14;
}

.b3-exec-card.b3-card-normal {
  border-left: 3px solid #52c41a;
}

/* 异常标签 */
.b3-abnormal-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #fff2f0;
  color: #ff4d4f;
  border: 1px solid #ffccc7;
  border-radius: 4px;
  font-size: 11px;
  padding: 2px 8px;
  font-weight: 600;
  white-space: nowrap;
}

/* 卡片头部 */
.b3-exec-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.b3-exec-card-name {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.b3-exec-card-type {
  font-size: 11px;
  background: #f0f5ff;
  color: #149ebb;
  border-radius: 4px;
  padding: 2px 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* 进度条区域 */
.b3-progress-area {
  margin-bottom: 10px;
}

.b3-progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 12px;
  color: #666;
}

.b3-progress-percent {
  font-weight: 600;
}

.b3-progress-percent.red { color: #ff4d4f; }
.b3-progress-percent.yellow { color: #faad14; }
.b3-progress-percent.green { color: #52c41a; }

.b3-progress-bar {
  height: 6px;
  background: #f0f0f0;
  border-radius: 3px;
  overflow: hidden;
}

.b3-progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}

.b3-progress-fill.red { background: #ff4d4f; }
.b3-progress-fill.yellow { background: #faad14; }
.b3-progress-fill.green { background: #52c41a; }
.b3-progress-fill.gray { background: #d9d9d9; }

/* 卡片底部信息 */
.b3-exec-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #888;
}

.b3-checkin-rate {
  color: #555;
}

.b3-remaining-days {
  color: #555;
}

.b3-remaining-days.urgent {
  color: #ff4d4f;
  font-weight: 700;
}

/* === 空状态 === */
.b3-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.b3-empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.b3-empty-text {
  font-size: 16px;
  margin-bottom: 8px;
  color: #666;
}

.b3-empty-subtext {
  font-size: 13px;
  color: #aaa;
  margin-bottom: 20px;
}

.b3-empty-btn {
  display: inline-block;
  background: #149ebb;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 24px;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s;
}

.b3-empty-btn:hover {
  background: #107d96;
}

/* ============================================================
   复盘列表
   ============================================================ */

/* 筛选栏 */
.b3-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.b3-search-input {
  flex: 1;
  min-width: 180px;
  padding: 8px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.b3-search-input:focus {
  border-color: #149ebb;
}

.b3-filter-select {
  padding: 8px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 13px;
  outline: none;
  background: #fff;
  cursor: pointer;
  min-width: 120px;
}

.b3-filter-select:focus {
  border-color: #149ebb;
}

.b3-filter-date {
  padding: 8px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 13px;
  outline: none;
  width: 140px;
}

.b3-filter-date:focus {
  border-color: #149ebb;
}

.b3-filter-date-sep {
  color: #999;
  font-size: 13px;
}

/* 表格 */
.b3-review-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.b3-review-table thead {
  background: #fafafa;
}

.b3-review-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #888;
  border-bottom: 1px solid #f0f0f0;
  white-space: nowrap;
}

.b3-review-table td {
  padding: 12px 16px;
  font-size: 13px;
  color: #333;
  border-bottom: 1px solid #f5f5f5;
}

.b3-review-table tbody tr {
  cursor: pointer;
  transition: background 0.15s;
}

.b3-review-table tbody tr:hover {
  background: #f0f9fb;
}

.b3-status-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.b3-status-ended {
  background: #f0f0f0;
  color: #666;
}

.b3-status-reviewed {
  background: #e6f7e6;
  color: #52c41a;
}

.b3-roi-positive {
  color: #52c41a;
  font-weight: 600;
}

.b3-roi-negative {
  color: #ff4d4f;
  font-weight: 600;
}

/* === 分页 === */
.b3-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
}

.b3-page-btn {
  padding: 6px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  color: #555;
  transition: all 0.2s;
  min-width: 36px;
  text-align: center;
}

.b3-page-btn:hover:not(:disabled) {
  border-color: #149ebb;
  color: #149ebb;
}

.b3-page-btn:disabled {
  color: #ccc;
  cursor: not-allowed;
  background: #f5f5f5;
}

.b3-page-btn.active {
  background: #149ebb;
  color: #fff;
  border-color: #149ebb;
}

.b3-page-info {
  font-size: 13px;
  color: #888;
  margin-left: 12px;
}

/* ============================================================
   复盘详情
   ============================================================ */

.b3-detail-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.b3-back-btn {
  background: none;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 13px;
  color: #555;
  transition: all 0.2s;
}

.b3-back-btn:hover {
  border-color: #149ebb;
  color: #149ebb;
}

.b3-detail-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  flex: 1;
}

.b3-detail-meta {
  font-size: 13px;
  color: #888;
}

/* 基本信息区 */
.b3-info-section {
  background: #fff;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.b3-info-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.b3-info-name {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
}

.b3-info-sep {
  color: #ddd;
}

.b3-info-type {
  font-size: 12px;
  background: #f0f5ff;
  color: #149ebb;
  border-radius: 4px;
  padding: 2px 10px;
}

.b3-info-date {
  font-size: 13px;
  color: #666;
}

/* 目标 vs 实际对照表 */
.b3-targets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .b3-targets-grid {
    grid-template-columns: 1fr;
  }
}

.b3-target-card {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  text-align: center;
}

.b3-target-label {
  font-size: 12px;
  color: #888;
  margin-bottom: 8px;
}

.b3-target-compare {
  font-size: 14px;
  color: #333;
  margin-bottom: 6px;
}

.b3-target-arrow {
  color: #999;
  margin: 0 6px;
}

.b3-target-goal {
  color: #555;
}

.b3-target-actual {
  font-weight: 700;
}

.b3-target-actual.achieved {
  color: #52c41a;
}

.b3-target-actual.not-achieved {
  color: #ff4d4f;
}

.b3-target-status {
  font-size: 12px;
  font-weight: 600;
}

.b3-target-status.achieved {
  color: #52c41a;
}

.b3-target-status.not-achieved {
  color: #ff4d4f;
}

/* 图表两列布局 */
.b3-charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .b3-charts-row {
    grid-template-columns: 1fr;
  }
}

.b3-chart-box {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.b3-chart-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}

.b3-chart-canvas-wrap {
  position: relative;
  height: 320px;
}

.b3-chart-canvas-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

/* ROI 概算卡片 */
.b3-roi-section {
  background: #fff;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.b3-roi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.b3-roi-item {
  text-align: center;
  padding: 12px;
}

.b3-roi-label {
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
}

.b3-roi-value {
  font-size: 20px;
  font-weight: 700;
}

.b3-roi-value.positive {
  color: #52c41a;
}

.b3-roi-value.negative {
  color: #ff4d4f;
}

.b3-roi-value.na {
  color: #999;
  font-size: 14px;
}

/* 确认复盘按钮区域 */
.b3-confirm-area {
  text-align: center;
  margin-top: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.b3-confirm-btn {
  background: #149ebb;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 32px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s;
}

.b3-confirm-btn:hover:not(:disabled) {
  background: #107d96;
}

.b3-confirm-btn:disabled {
  background: #d9d9d9;
  color: #999;
  cursor: not-allowed;
}

.b3-confirm-done {
  display: inline-block;
  color: #52c41a;
  font-size: 15px;
  font-weight: 600;
}

/* 导出按钮（P2 预留） */
.b3-export-btn {
  background: none;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 13px;
  color: #555;
  opacity: 0.4;
  pointer-events: none;
}

/* 复盘建议占位区（P2 预留） */
.b3-suggestions-placeholder {
  background: #fff;
  border-radius: 10px;
  padding: 16px 20px;
  margin-top: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  color: #ccc;
  font-size: 13px;
  text-align: center;
}

/* ============================================================
   N05 全局复盘 — 专用样式
   命名规范：gr-{component}
   ============================================================ */

/* === Tab 栏 === */
.gr-tab-bar {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  border-bottom: 2px solid #f0f0f0;
}

.gr-tab-btn {
  padding: 10px 24px;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 500;
  color: #888;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}

.gr-tab-btn:hover {
  color: #149ebb;
}

.gr-tab-btn.active {
  color: #149ebb;
  font-weight: 600;
  border-bottom-color: #149ebb;
}

/* === 时间筛选器 === */
.gr-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   内容工场 — Tab 栏（修复 Tab 切换 + 排版统一）
   ============================================================ */

.tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e8e8e8;
  margin-bottom: 20px;
}

.tab-btn {
  padding: 10px 20px;
  border: none;
  background: none;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--primary, #f18d24);
}

.tab-btn.active {
  color: var(--primary, #f18d24);
  font-weight: 600;
  border-bottom-color: var(--primary, #f18d24);
}

.tab-content {
  display: none;
  animation: tabFadeIn 0.25s ease;
}

.tab-content.active {
  display: block;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 内容工场 — 素材库表格优化 */
.table-container table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table-container thead th {
  background: #fafafa;
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  color: #555;
  border-bottom: 2px solid #e8e8e8;
  white-space: nowrap;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table-container tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

.table-container tbody tr:hover {
  background: #fafbfc;
}

.audit-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
}
.audit-badge-pending { background: #fff3cd; color: #856404; }
.audit-badge-pass { background: #d4edda; color: #155724; }
.audit-badge-block { background: #f8d7da; color: #721c24; }
.audit-badge-warn { background: #ffeeba; color: #856404; }

/* 素材库操作按钮 — 覆盖 activity-v3 的 outline 风格 */
.table-container .btn-sm {
  padding: 5px 12px;
  font-size: 12px;
  line-height: 1.6;
  border-radius: 4px;
  display: inline-block;
  text-align: center;
  vertical-align: middle;
  overflow: visible;
}
.table-container .btn-outline {
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #555;
}
.table-container .btn-outline:hover {
  border-color: #149ebb;
  color: #149ebb;
}
.table-container .btn-danger {
  background: #ef4444 !important;
  color: #fff !important;
  border: 1px solid #ef4444;
}
.table-container .btn-danger:hover {
  background: #dc2626 !important;
  border-color: #dc2626;
}

/* 全局按钮冲突已于 activity-v3.css 中通过作用域前缀根治，此前 !important 补丁已移除 */

.gr-filter-select {
  padding: 8px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 13px;
  color: #333;
  background: #fff;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.gr-filter-select:focus {
  border-color: #149ebb;
}

.gr-filter-date {
  padding: 8px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 13px;
  color: #333;
  outline: none;
  transition: border-color 0.2s;
}

.gr-filter-date:focus {
  border-color: #149ebb;
}

.gr-filter-btn {
  padding: 8px 18px;
  background: #149ebb;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}

.gr-filter-btn:hover {
  background: #107d96;
}

/* === 指标汇总卡网格 === */
.gr-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 1200px) {
  .gr-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .gr-summary-grid {
    grid-template-columns: 1fr;
  }
}

.gr-summary-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}

.gr-summary-card:hover {
  box-shadow: 0 3px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.gr-summary-card-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.gr-summary-card-value {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
}

.gr-summary-card-label {
  font-size: 13px;
  color: #888;
  margin-top: 4px;
}

/* === 对比表 === */
.gr-compare-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  margin-bottom: 16px;
}

.gr-compare-table th {
  padding: 12px 16px;
  background: #fafafa;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #888;
  border-bottom: 1px solid #f0f0f0;
  white-space: nowrap;
}

.gr-compare-table td {
  padding: 12px 16px;
  font-size: 13px;
  color: #333;
  border-bottom: 1px solid #f5f5f5;
}

.gr-compare-table tbody tr:last-child td {
  border-bottom: none;
}

.gr-change-up {
  color: #52c41a;
  font-weight: 600;
}

.gr-change-down {
  color: #ff4d4f;
  font-weight: 600;
}

/* === 图表区布局 === */
.gr-chart-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 900px) {
  .gr-chart-row {
    grid-template-columns: 1fr;
  }
}

.gr-chart-box {
  background: #fff;
  border-radius: 10px;
  padding: 16px 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  position: relative;
}

.gr-chart-box canvas {
  width: 100% !important;
  height: 260px !important;
}

/* === 状态占位 === */
.gr-loading {
  opacity: 0.6;
}

.gr-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: gr-shimmer 1.5s infinite;
  border-radius: 10px;
}

@keyframes gr-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.gr-error {
  text-align: center;
  padding: 60px 20px;
}

.gr-empty {
  text-align: center;
  padding: 80px 20px;
}

/* === 活动类型汇总表 === */
.gr-type-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.gr-type-table th {
  padding: 12px 14px;
  background: #fafafa;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #888;
  border-bottom: 1px solid #f0f0f0;
  white-space: nowrap;
}

.gr-type-table td {
  padding: 12px 14px;
  font-size: 13px;
  color: #333;
  border-bottom: 1px solid #f5f5f5;
}

.gr-type-table tbody tr:hover {
  background: #f0f9fb;
}

.gr-type-table tbody tr:last-child td {
  border-bottom: none;
}

/* ============================================================
   N10 多活动对比复盘 — 专用样式
   命名规范：mc-{component}
   ============================================================ */

/* === 表格行复选框 === */
.mc-checkbox-cell {
  width: 50px;
  text-align: center;
  padding: 12px 8px !important;
}

.mc-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #149ebb;
}

/* === 浮动操作栏 === */
.mc-float-bar {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 24px;
  background: #fff;
  border-top: 1px solid #f0f0f0;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
  z-index: 100;
  border-radius: 0 0 8px 8px;
}

.mc-float-count {
  font-size: 14px;
  color: #555;
}

.mc-float-count strong {
  color: #149ebb;
  font-size: 18px;
  font-weight: 700;
}

.mc-float-btn-primary {
  padding: 10px 28px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.mc-float-btn-primary:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
}

.mc-float-btn-primary:disabled {
  background: #d9d9d9;
  color: #999;
  cursor: not-allowed;
}

.mc-float-btn-cancel {
  padding: 10px 20px;
  background: none;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  font-size: 13px;
  color: #888;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.mc-float-btn-cancel:hover {
  border-color: #ff4d4f;
  color: #ff4d4f;
}

/* === 对比视图 — 头部 === */
.mc-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.mc-back-btn {
  padding: 8px 16px;
  background: none;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.mc-back-btn:hover {
  border-color: #149ebb;
  color: #149ebb;
}

.mc-header-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
}

/* === 活动信息横幅 === */
.mc-banner {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.mc-banner-card {
  flex: 1;
  min-width: 180px;
  background: #fff;
  border-radius: 10px;
  padding: 16px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.mc-banner-name {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.mc-banner-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mc-banner-date {
  font-size: 12px;
  color: #888;
}

.mc-banner-type {
  font-size: 11px;
  background: #f0f5ff;
  color: #149ebb;
  border-radius: 4px;
  padding: 2px 8px;
  white-space: nowrap;
}

/* === 指标选择器 === */
.mc-metric-select-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.mc-metric-label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.mc-metric-select {
  padding: 8px 16px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
  outline: none;
  min-width: 160px;
  transition: border-color 0.2s;
}

.mc-metric-select:focus {
  border-color: #149ebb;
}

/* === 图表容器 === */
.mc-chart-container {
  position: relative;
  height: 320px;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  margin-bottom: 20px;
}

.mc-chart-container canvas {
  width: 100% !important;
  height: 100% !important;
}

/* === 核心对比表格 === */
.mc-compare-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  margin-bottom: 20px;
}

.mc-compare-table thead {
  background: #fafafa;
}

.mc-compare-table th {
  padding: 12px 14px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #888;
  border-bottom: 1px solid #f0f0f0;
  white-space: nowrap;
}

.mc-compare-table td {
  padding: 12px 14px;
  font-size: 13px;
  color: #333;
  border-bottom: 1px solid #f5f5f5;
}

.mc-compare-table tbody tr:last-child td {
  border-bottom: none;
}

.mc-compare-table tbody tr:hover {
  background: #fafafa;
}

.mc-metric-name {
  font-weight: 600;
  color: #555;
}

.mc-th-avg {
  color: #888;
}

/* 最优值单元格（绿色背景） */
.mc-cell-best {
  background: #f0faf0;
  color: #2d7d2d;
  font-weight: 600;
}

/* 最差值单元格（红色背景） */
.mc-cell-worst {
  background: #fff2f0;
  color: #d9363e;
  font-weight: 600;
}

/* 均值列单元格（灰色背景） */
.mc-cell-avg {
  background: #fafafa;
  color: #888;
  font-style: italic;
}

/* 最优活动名称列 */
.mc-cell-best-name {
  color: #2d7d2d;
  font-weight: 600;
}

/* === 加载状态 === */
.mc-loading {
  text-align: center;
  padding: 80px 20px;
  color: #999;
}

.mc-loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid #f0f0f0;
  border-top-color: #149ebb;
  border-radius: 50%;
  animation: mc-spin 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes mc-spin {
  to { transform: rotate(360deg); }
}

.mc-loading-text {
  font-size: 14px;
}

/* === 错误状态 === */
.mc-error {
  text-align: center;
  padding: 80px 20px;
}

.mc-error-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.mc-error-message {
  font-size: 15px;
  color: #ff4d4f;
  margin-bottom: 20px;
}

.mc-retry-btn {
  padding: 10px 28px;
  background: #149ebb;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.mc-retry-btn:hover {
  background: #107d96;
}

/* === AI 洞察卡片 === */
.mc-insight-box {
  background: linear-gradient(135deg, #f0f5ff 0%, #faf5ff 100%);
  border: 1px solid #e8e0f0;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 20px;
}

.mc-insight-title {
  font-size: 15px;
  font-weight: 700;
  color: #333;
  margin-bottom: 16px;
}

.mc-insight-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  line-height: 1.6;
}

.mc-insight-item:last-child {
  margin-bottom: 0;
}

.mc-insight-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.mc-insight-text {
  font-size: 13px;
  color: #444;
}

/* === 对比视图主体 === */
.mc-body {
  /* 主内容区域容器 */
}

/* ============================================================
   N12: AI 洞察卡片 (acquisition-ai-card)
   ============================================================ */

.acq-ai-card {
  background: #fff;
  border: 1px solid #e8e0f0;
  border-radius: 12px;
  padding: 0;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.06);
}

.acq-ai-card-compare {
  border-color: #d4e0f0;
  box-shadow: 0 2px 8px rgba(76, 175, 254, 0.06);
}

.acq-ai-card-fallback {
  opacity: 0.7;
}

/* 卡片头部 */
.acq-ai-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #f0f5ff 0%, #faf5ff 100%);
  border-bottom: 1px solid #f0e8f5;
}

.acq-ai-card-compare .acq-ai-card-header {
  background: linear-gradient(135deg, #f0f8ff 0%, #f5f5ff 100%);
  border-bottom: 1px solid #e0e8f5;
}

.acq-ai-card-icon {
  font-size: 20px;
}

.acq-ai-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #333;
  flex: 1;
}

.acq-ai-card-badge {
  font-size: 11px;
  background: #667eea;
  color: #fff;
  border-radius: 4px;
  padding: 2px 8px;
  font-weight: 600;
}

/* 卡片内容 */
.acq-ai-card-body {
  padding: 20px;
}

/* 分区 */
.acq-ai-section {
  margin-bottom: 20px;
}

.acq-ai-section:last-child {
  margin-bottom: 0;
}

.acq-ai-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #444;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f5f5f5;
}

.acq-ai-section-summary {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: #fafafa;
  border-radius: 6px;
}

/* 目标达成维度列表 */
.acq-ai-dim-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.acq-ai-dim-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #fafafa;
  border-radius: 8px;
  border-left: 3px solid #e0e0e0;
}

.acq-ai-dim-name {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  min-width: 60px;
}

.acq-ai-dim-achievement {
  font-size: 13px;
  font-weight: 700;
  color: #149ebb;
  min-width: 50px;
}

.acq-ai-dim-verdict {
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 4px;
  font-weight: 600;
}

.acq-ai-verdict-good {
  background: #f0fff4;
  color: #389e0d;
}

.acq-ai-verdict-ok {
  background: #f0f5ff;
  color: #149ebb;
}

.acq-ai-verdict-bad {
  background: #fff2f0;
  color: #ff4d4f;
}

.acq-ai-dim-detail {
  width: 100%;
  font-size: 12px;
  color: #666;
  line-height: 1.5;
  margin-top: 4px;
}

/* 漏斗阶段列表 */
.acq-ai-bottleneck {
  font-size: 13px;
  color: #555;
  margin-bottom: 12px;
  padding: 10px 14px;
  background: #fff7e6;
  border: 1px solid #ffe58f;
  border-radius: 8px;
  line-height: 1.5;
}

.acq-ai-bottleneck-label {
  font-weight: 600;
  color: #d48806;
}

.acq-ai-bottleneck-stage {
  font-weight: 700;
  color: #d48806;
}

.acq-ai-bottleneck-reason {
  color: #8c6d1f;
}

.acq-ai-stage-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.acq-ai-stage-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  background: #fafafa;
  border-left: 3px solid #e0e0e0;
}

.acq-ai-stage-good { border-left-color: #52c41a; }
.acq-ai-stage-ok { border-left-color: #149ebb; }
.acq-ai-stage-bad { border-left-color: #ff4d4f; background: #fff2f0; }

.acq-ai-stage-name {
  font-weight: 600;
  min-width: 80px;
  color: #333;
}

.acq-ai-stage-drop {
  color: #888;
  font-size: 12px;
}

.acq-ai-stage-assessment {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
}

.acq-ai-stage-good .acq-ai-stage-assessment { background: #f0fff4; color: #389e0d; }
.acq-ai-stage-ok .acq-ai-stage-assessment { background: #f0f5ff; color: #149ebb; }
.acq-ai-stage-bad .acq-ai-stage-assessment { background: #fff2f0; color: #ff4d4f; }

.acq-ai-stage-comment {
  width: 100%;
  font-size: 12px;
  color: #666;
  margin-top: 2px;
}

/* ROI 网格 */
.acq-ai-roi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.acq-ai-roi-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #fafafa;
  border-radius: 8px;
}

.acq-ai-roi-label {
  font-size: 12px;
  color: #888;
}

.acq-ai-roi-value {
  font-size: 14px;
  font-weight: 700;
  color: #333;
}

.acq-ai-roi-assessment {
  color: #149ebb !important;
}

.acq-ai-roi-detail {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
}

/* 渠道高亮 */
.acq-ai-channel-highlight {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.acq-ai-channel-item {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.acq-ai-channel-top {
  background: #f0fff4;
  border: 1px solid #b7eb8f;
}

.acq-ai-channel-weak {
  background: #fff2f0;
  border: 1px solid #ffccc7;
}

.acq-ai-channel-label {
  font-weight: 600;
  font-size: 12px;
}

.acq-ai-channel-top .acq-ai-channel-label { color: #389e0d; }
.acq-ai-channel-weak .acq-ai-channel-label { color: #ff4d4f; }

.acq-ai-channel-name {
  font-weight: 700;
  color: #333;
}

.acq-ai-channel-reason {
  color: #666;
  font-size: 12px;
  width: 100%;
  margin-top: 2px;
}

.acq-ai-channel-rec {
  font-size: 12px;
  color: #555;
  padding: 8px 12px;
  background: #f0f5ff;
  border-radius: 6px;
  line-height: 1.5;
}

/* 趋势 */
.acq-ai-trend-group {
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 6px;
  line-height: 1.5;
}

.acq-ai-trend-up {
  background: #f0fff4;
  color: #389e0d;
}

.acq-ai-trend-down {
  background: #fff2f0;
  color: #ff4d4f;
}

.acq-ai-trend-arrow {
  margin-right: 4px;
}

.acq-ai-trend-detail {
  font-size: 12px;
  color: #666;
  margin-top: 8px;
  line-height: 1.5;
}

/* 差异诊断 */
.acq-ai-gap-highlight {
  font-size: 13px;
  color: #555;
  padding: 10px 14px;
  background: #fafafa;
  border-radius: 8px;
  margin-bottom: 8px;
}

.acq-ai-gap-compare {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 8px;
}

.acq-ai-gap-best {
  font-weight: 600;
  color: #389e0d;
  font-size: 13px;
}

.acq-ai-gap-vs {
  font-size: 12px;
  color: #bbb;
}

.acq-ai-gap-worst {
  font-weight: 600;
  color: #ff4d4f;
  font-size: 13px;
}

.acq-ai-gap-reasons {
  font-size: 12px;
  color: #666;
  padding: 8px 12px;
  background: #fffbe6;
  border-radius: 6px;
}

.acq-ai-gap-reasons-label {
  font-weight: 600;
}

/* 关键发现 */
.acq-ai-obs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.acq-ai-obs-item {
  font-size: 13px;
  line-height: 1.5;
  padding: 8px 12px;
  background: #fafafa;
  border-radius: 6px;
}

.acq-ai-obs-icon {
  margin-right: 6px;
}

.acq-ai-obs-dim {
  font-weight: 600;
  color: #444;
}

.acq-ai-obs-text {
  color: #555;
}

/* 最佳实践 */
.acq-ai-practice-item {
  padding: 10px 14px;
  margin-bottom: 8px;
  background: #f0fff4;
  border: 1px solid #d9f7be;
  border-radius: 8px;
}

.acq-ai-practice-item:last-child {
  margin-bottom: 0;
}

.acq-ai-practice-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.acq-ai-practice-activity {
  font-size: 13px;
  font-weight: 700;
  color: #389e0d;
}

.acq-ai-practice-strength {
  font-size: 13px;
  color: #555;
}

.acq-ai-practice-takeaway {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
}

/* 风险提示 */
.acq-ai-risk-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 6px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
}

.acq-ai-risk-item:last-child {
  margin-bottom: 0;
}

.acq-ai-risk-high { background: #fff2f0; }
.acq-ai-risk-medium { background: #fffbe6; }
.acq-ai-risk-low { background: #fafafa; }

.acq-ai-risk-icon {
  font-size: 14px;
  flex-shrink: 0;
}

.acq-ai-risk-dim {
  font-weight: 600;
  color: #333;
}

.acq-ai-risk-activity {
  font-size: 12px;
  color: #888;
}

.acq-ai-risk-desc {
  width: 100%;
  color: #555;
  margin-top: 2px;
}

/* 优化建议 */
.acq-ai-suggestion-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
}

.acq-ai-suggestion-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.acq-ai-suggestion-priority {
  font-size: 11px;
  font-weight: 700;
  color: #667eea;
  background: #f0f5ff;
  border-radius: 4px;
  padding: 2px 8px;
  height: fit-content;
  flex-shrink: 0;
  margin-top: 2px;
}

.acq-ai-suggestion-content {
  flex: 1;
}

.acq-ai-suggestion-title {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.acq-ai-suggestion-detail {
  font-size: 12px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 4px;
}

.acq-ai-suggestion-impact {
  font-size: 11px;
  color: #888;
  font-style: italic;
}

/* 降级状态 */
.acq-ai-fallback {
  text-align: center;
  padding: 20px;
}

.acq-ai-fallback-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.acq-ai-fallback-text {
  font-size: 14px;
  color: #666;
  margin-bottom: 6px;
}

.acq-ai-fallback-hint {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 12px;
}

.acq-ai-retry-btn {
  display: inline-block;
  background: #667eea;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 20px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s;
}

.acq-ai-retry-btn:hover {
  background: #5a6fd6;
}

/* 空状态 */
.acq-ai-empty {
  text-align: center;
  padding: 20px;
  color: #999;
  font-size: 13px;
}

/* 卡片反馈区域 */
.acq-ai-card-feedback {
  padding: 12px 20px;
  border-top: 1px solid #f5f5f5;
  background: #fafafa;
}

/* ============================================================
   N12: 线索 AI 评分徽章 + Tooltip (clue-ai-badge)
   ============================================================ */

/* 评分徽章 */
.clue-ai-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s, box-shadow 0.2s;
}

.clue-ai-badge:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

.clue-ai-badge--loading {
  background: #d9d9d9;
  color: #999;
  font-size: 14px;
  animation: clue-badge-pulse 1.5s ease-in-out infinite;
}

@keyframes clue-badge-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.clue-ai-badge--green {
  background: #52c41a;
}

.clue-ai-badge--yellow {
  background: #faad14;
}

.clue-ai-badge--red {
  background: #ff4d4f;
}

/* Tooltip 容器 */
.clue-ai-tooltip {
  width: 280px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  padding: 14px 16px;
  z-index: 9999;
  animation: clue-tooltip-in 0.15s ease-out;
}

@keyframes clue-tooltip-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tooltip 头部 */
.clue-ai-tooltip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.clue-ai-tooltip-score {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
}

.clue-ai-tooltip-label {
  font-size: 12px;
  font-weight: 600;
}

/* 维度条区域 */
.clue-ai-tooltip-dims {
  margin-bottom: 10px;
}

.clue-ai-tooltip-dim {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.clue-ai-tooltip-dim:last-child {
  margin-bottom: 0;
}

.clue-ai-tooltip-dim-label {
  font-size: 11px;
  color: #888;
  min-width: 56px;
  flex-shrink: 0;
}

.clue-ai-tooltip-dim-val {
  font-size: 11px;
  color: #555;
  min-width: 36px;
  text-align: right;
  flex-shrink: 0;
  font-weight: 600;
}

.clue-ai-tooltip-dim-bar {
  flex: 1;
  height: 5px;
  background: #f0f0f0;
  border-radius: 3px;
  overflow: hidden;
}

.clue-ai-tooltip-dim-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* 跟进建议区域 */
.clue-ai-tooltip-suggestion {
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
  font-size: 12px;
  color: #555;
  line-height: 1.5;
}

.clue-ai-tooltip-sugg-loading {
  color: #bbb;
  font-style: italic;
}

.clue-ai-tooltip-sugg-text {
  color: #333;
}

/* ============================================================
   D2 多活动对比复盘 — 对比结果展示专用样式
   命名规范：d2c-{component}
   ============================================================ */

/* === 对比总览 === */
.d2c-overview {
  padding: 14px 18px;
  background: linear-gradient(135deg, #f0f5ff 0%, #faf5ff 100%);
  border: 1px solid #e0e8f5;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #444;
  line-height: 1.7;
}

.d2c-overview-icon {
  margin-right: 8px;
}

/* === 排名卡片列表 === */
.d2c-ranking-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}

.d2c-ranking-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fafafa;
  border-radius: 8px;
  border-left: 4px solid #e0e0e0;
  transition: background 0.15s;
}

.d2c-ranking-item:hover {
  background: #f5f5f5;
}

.d2c-ranking-item.rank-1 {
  border-left-color: #ffd700;
  background: #fffef0;
}

.d2c-ranking-item.rank-2 {
  border-left-color: #c0c0c0;
  background: #fafafa;
}

.d2c-ranking-item.rank-3 {
  border-left-color: #cd7f32;
  background: #fdf5f0;
}

.d2c-ranking-medal {
  font-size: 20px;
  width: 32px;
  text-align: center;
  flex-shrink: 0;
}

.d2c-ranking-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.d2c-ranking-rate {
  font-size: 16px;
  font-weight: 700;
  color: #149ebb;
  white-space: nowrap;
}

/* === 漏斗对比表格 === */
.d2c-funnel-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
}

.d2c-funnel-table th {
  padding: 10px 14px;
  background: #fafafa;
  font-size: 12px;
  font-weight: 600;
  color: #888;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
  white-space: nowrap;
}

.d2c-funnel-table td {
  padding: 10px 14px;
  font-size: 13px;
  color: #333;
  border-bottom: 1px solid #f5f5f5;
}

.d2c-funnel-table tbody tr:hover {
  background: #fafafa;
}

.d2c-funnel-stage {
  font-weight: 600;
  color: #555;
}

.d2c-funnel-winner {
  font-weight: 600;
  color: #389e0d;
}

.d2c-funnel-winner-star {
  color: #ffd700;
  margin-right: 4px;
}

/* === 渠道效率排名 === */
.d2c-channel-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.d2c-channel-item {
  padding: 12px 16px;
  background: #fafafa;
  border-radius: 8px;
}

.d2c-channel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.d2c-channel-name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.d2c-channel-activities {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.d2c-channel-activity {
  font-size: 12px;
  padding: 3px 10px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
}

.d2c-channel-activity-name {
  color: #555;
  margin-right: 6px;
}

.d2c-channel-activity-roi {
  font-weight: 700;
  color: #149ebb;
}

.d2c-channel-insight {
  font-size: 12px;
  color: #888;
  font-style: italic;
  line-height: 1.4;
}

/* === 最佳实践列表 === */
.d2c-practice-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.d2c-practice-item {
  padding: 10px 14px;
  background: #f0fff4;
  border: 1px solid #d9f7be;
  border-radius: 8px;
  font-size: 13px;
  color: #333;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.d2c-practice-icon {
  flex-shrink: 0;
  font-size: 16px;
  margin-top: 1px;
}

/* === 共性问题列表 === */
.d2c-issue-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.d2c-issue-item {
  padding: 10px 14px;
  background: #fff2f0;
  border: 1px solid #ffccc7;
  border-radius: 8px;
  font-size: 13px;
  color: #333;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.d2c-issue-icon {
  flex-shrink: 0;
  font-size: 16px;
  margin-top: 1px;
}

/* === 改进建议列表 === */
.d2c-rec-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.d2c-rec-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
}

.d2c-rec-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.d2c-rec-num {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: #667eea;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.d2c-rec-text {
  font-size: 13px;
  color: #333;
  line-height: 1.6;
  flex: 1;
}

/* === 降级标记 === */
.d2c-fallback-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #faad14;
  background: #fffbe6;
  border: 1px solid #ffe58f;
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 12px;
}

/* === Toast 提示容器 === */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast-item {
  background: #333;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  animation: toast-slide-in 0.3s ease-out;
  max-width: 360px;
}

@keyframes toast-slide-in {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* === 导出按钮（多活动对比用） === */
.mc-export-btn {
  padding: 8px 16px;
  background: none;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  margin-left: auto;
}

.mc-export-btn:hover {
  border-color: #149ebb;
  color: #149ebb;
}
