/* ---------------- Camp colors（A 股口径） ---------------- */
/*   进攻=红、防守=蓝、周期=紫、中性=灰  */
.camp-attack  { color: #dc2626; }
.camp-defense { color: #1d4ed8; }
.camp-cycle   { color: #7c3aed; }
.camp-neutral { color: #6b7280; }
.camp-theme   { color: #94a3b8; }
.camp-other   { color: #94a3b8; }
.camp-attack-bg  { background: #dc2626; }
.camp-defense-bg { background: #1d4ed8; }
.camp-cycle-bg   { background: #7c3aed; }
.camp-neutral-bg { background: #9ca3af; }
.camp-theme-bg   { background: #cbd5e1; }
.camp-other-bg   { background: #cbd5e1; }

/* ============================================================
 * 大盘画像（仪表盘 + 四阵营圆环）
 * ============================================================ */
.dim3-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 14px;
}

/* 大盘环境分仪表盘（标题内联公式 + 左分值含义 + 右仪表） */
.env-gauge-card {
  display: flex; flex-direction: column;
}
.env-gauge-title {
  flex-wrap: wrap;
}
.env-gauge-title .title-formula {
  margin-left: 10px;
  color: #9ca3af;
  font-size: 11px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.env-gauge-body {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(180px, 0.85fr) 1.15fr;
  gap: 10px;
  align-items: stretch;
}
/* 嵌套灰底小框（与 .camp-ring-cell 风格统一） */
.env-legend-cell, .env-gauge-cell {
  background: #fcfcfd;
  border: 1px solid #f3f4f6;
  border-radius: 8px;
}
.env-legend-cell {
  padding: 14px 16px;
  display: flex; flex-direction: column;
  gap: 12px;
  justify-content: center;
}
.env-legend-cell .info-label {
  color: #9ca3af;
  font-size: 10.5px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.env-gauge-legend-v {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.env-gauge-legend-v li {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; line-height: 1.3;
  white-space: nowrap;
}
.env-gauge-legend-v li b {
  color: #374151; font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.2px;
  min-width: 78px;
}
.env-gauge-legend-v li .legend-text {
  color: #4b5563;
}
.env-gauge-legend-v .legend-dot {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.env-gauge-cell {
  padding: 12px 6px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.env-gauge-chart {
  width: 100%; height: 175px;
}

/* 四阵营圆环 */
.camp-rings-card {
  display: flex; flex-direction: column;
}
.camp-rings-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px; flex: 1;
}
.camp-ring-cell {
  background: #fcfcfd;
  border: 1px solid #f3f4f6;
  border-radius: 8px;
  padding: 12px 6px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  display: flex; flex-direction: column;
  justify-content: center;
}
.camp-ring-cell:hover {
  border-color: #d1d5db;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.camp-ring-chart {
  width: 100%; height: 175px;
}
.camp-ring-meta {
  margin-top: 4px;
  text-align: center;
  font-size: 11px; color: #6b7280;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.camp-ring-flow {
  margin-top: 2px;
  text-align: center;
  font-size: 11px; color: #6b7280;
}
.camp-ring-flow .nf {
  font-weight: 600; font-variant-numeric: tabular-nums;
}
.camp-ring-flow .nf.pos { color: #b91c1c; }
.camp-ring-flow .nf.neg { color: #1d4ed8; }

/* ============================================================
 * §D' 维度一：5 日演化
 * ============================================================ */
.dim1-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin-bottom: 14px;
}
.dim1-grid.double-board { grid-template-columns: 1fr 1fr; }

.card-block {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 14px;
}
.block-title {
  font-size: 12px; color: #6b7280; font-weight: 600;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.block-title .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
}
.block-title .dot-up { background: #dc2626; }
.block-title .dot-down { background: #1d4ed8; }

.evolution-tag {
  margin-top: 6px;
  font-size: 12px; color: #4b5563;
  padding: 6px 10px;
  background: #f7f8fa; border-radius: 4px;
}
.evolution-tag b { color: #111827; }

/* 维度一：升温/降温级别切换工具栏 */
.evo-toolbar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 6px;
  margin: 8px 0 4px;
  font-size: 12px;
}
.evo-toolbar-label { color: #6b7280; font-weight: 500; }
.evo-level-switcher {
  display: inline-flex;
  background: #f3f4f6;
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
  flex-wrap: wrap;
}
.evo-lvl-btn {
  border: none;
  background: transparent;
  font-size: 12px;
  color: #6b7280;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  font-family: inherit;
  display: inline-flex; align-items: center; gap: 6px;
}
.evo-lvl-btn:hover { background: #e5e7eb; color: #111827; }
.evo-lvl-btn.active {
  background: #ffffff;
  color: #2563eb;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  font-weight: 600;
}
.evo-lvl-num {
  font-size: 10.5px;
  color: #9ca3af;
  font-variant-numeric: tabular-nums;
}
.evo-lvl-btn.active .evo-lvl-num { color: #93c5fd; }

.block-title-hint {
  color: #9ca3af; font-weight: 400; font-size: 11.5px; margin-left: 4px;
}
.board-list-scroll {
  max-height: 560px;
  overflow-y: auto;
}
.board-list-scroll::-webkit-scrollbar { width: 6px; }
.board-list-scroll::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 3px; }
.board-list-scroll::-webkit-scrollbar-thumb:hover { background: #d1d5db; }

/* 板块演化双榜 —— 每行三段并排：5d / 3d / 1d 各自带 mini 走势 + 数值 */
.rotation-row {
  display: grid;
  grid-template-columns: 22px 90px 116px minmax(108px, 1fr) minmax(108px, 1fr) minmax(92px, 1fr);
  gap: 8px; align-items: center;
  padding: 6px 4px;
  font-size: 12px;
  border-bottom: 1px solid #f3f4f6;
}
.rotation-row:last-child { border-bottom: 0; }
.rotation-rank { color: #9ca3af; font-size: 11px; text-align: center; }
.rotation-name { font-weight: 600; color: #111827; }
.rotation-camp {
  font-size: 10px; padding: 1px 6px;
  border: 1px solid #e5e7eb; border-radius: 8px;
  white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}

/* 单段 cell：spark + 数值 */
.rotation-cell {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 6px;
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  color: #cbd5e1;            /* 默认（非当前列）灰白 */
}
.rotation-cell .cell-value {
  min-width: 44px;
  text-align: right;
}
.rotation-cell.active { font-size: 12.5px; font-weight: 700; }
.rotation-cell.active.pos   { color: #b91c1c; }
.rotation-cell.active.neg   { color: #1d4ed8; }
.rotation-cell.active.muted { color: #9ca3af; font-weight: 600; }

/* 板块演化表头（滚动容器内置顶） */
.rotation-thead {
  display: grid;
  grid-template-columns: 22px 90px 116px minmax(108px, 1fr) minmax(108px, 1fr) minmax(92px, 1fr);
  gap: 8px; align-items: center;
  padding: 8px 4px 6px;
  font-size: 11px; color: #9ca3af;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 4px;
  letter-spacing: 0.3px;
  position: sticky; top: 0;
  background: #ffffff;
  z-index: 1;
}
.rotation-thead .th-sortable {
  text-align: right;
  cursor: pointer;
  user-select: none;
  padding: 2px 0;
  transition: color 0.12s;
  white-space: nowrap;
}
.rotation-thead .th-sortable:hover { color: #4b5563; }
.rotation-thead .th-sortable.active {
  color: #2563eb;
  font-weight: 600;
}
.rotation-thead .arrow {
  display: inline-block;
  margin-left: 2px;
  font-size: 10px;
  color: #cbd5e1;
  transition: color 0.12s;
}
.rotation-thead .th-sortable.active .arrow {
  color: #2563eb;
}

/* 5 日板块热度流向（气泡轨迹图） */
.heat-trails-block { margin-bottom: 14px; }
.heat-trails-empty {
  padding: 30px; text-align: center; color: #9ca3af; font-size: 12px;
  border: 1px dashed #e5e7eb; border-radius: 6px; background: #fcfcfd;
}
.heat-trails-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 8px;
}
.heat-trails-picker { position: relative; flex-shrink: 0; }
.picker-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border: 1px solid #e5e7eb; border-radius: 6px;
  background: #ffffff; color: #4b5563; font-size: 12px;
  cursor: pointer; font-family: inherit;
  transition: all 0.15s;
}
.picker-trigger:hover { border-color: #93c5fd; color: #2563eb; }
.picker-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: #eff6ff; color: #2563eb;
  border-radius: 9px; font-size: 11px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.picker-arrow { color: #9ca3af; font-size: 11px; }
.picker-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 20;
  width: 320px; max-height: 420px;
  background: #ffffff; border: 1px solid #e5e7eb; border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.picker-dropdown.hidden { display: none; }
.picker-search-row {
  display: flex; align-items: center; gap: 8px;
  padding: 10px; border-bottom: 1px solid #f3f4f6;
}
.picker-search {
  flex: 1; padding: 6px 10px; font-size: 12px;
  border: 1px solid #e5e7eb; border-radius: 5px; outline: none;
  font-family: inherit;
}
.picker-search:focus { border-color: #93c5fd; }
.picker-actions { display: inline-flex; gap: 8px; flex-shrink: 0; }
.picker-actions a { font-size: 11px; color: #6b7280; text-decoration: none; }
.picker-actions a:hover { color: #2563eb; }
.picker-list { overflow-y: auto; flex: 1; padding: 4px 0; }
.picker-list::-webkit-scrollbar { width: 6px; }
.picker-list::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 3px; }
.picker-item {
  display: grid;
  grid-template-columns: 18px 50px 1fr 70px;
  gap: 8px; align-items: center;
  padding: 6px 12px; font-size: 12px;
  cursor: pointer;
  transition: background 0.1s;
}
.picker-item:hover { background: #f9fafb; }
.picker-item input[type=checkbox] {
  margin: 0; cursor: pointer; accent-color: #2563eb;
}
.pi-camp {
  font-size: 10px; padding: 1px 5px;
  border: 1px solid #e5e7eb; border-radius: 8px;
  text-align: center; white-space: nowrap;
}
.pi-name { color: #111827; font-weight: 500; }
.pi-slope {
  text-align: right; font-variant-numeric: tabular-nums;
  font-size: 11px; font-weight: 600;
}
.pi-slope-pos { color: #b91c1c; }
.pi-slope-neg { color: #1d4ed8; }
.pi-slope-flat { color: #9ca3af; }
.picker-sort-hint {
  padding: 6px 12px; font-size: 11px; color: #9ca3af;
  background: #fafafa; border-bottom: 1px solid #f3f4f6;
}
.picker-empty {
  padding: 20px; text-align: center; color: #9ca3af; font-size: 12px;
}

/* 5 日摘要 */
.dim1-summary {
  font-size: 12px; line-height: 1.9;
  background: #fcfcfd;
  border-radius: 6px; padding: 8px 10px;
}
.summary-line { color: #1a1a1a; }
.summary-line b { color: #111827; }

/* ============================================================
 * §E 维度二：信号耦合
 * ============================================================ */
.coupling-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.coupling-tabs {
  display: inline-flex; gap: 0;
  border: 1px solid #e5e7eb; border-radius: 6px;
  overflow: hidden; background: #ffffff;
}
.tab-btn {
  background: #ffffff; border: 0; border-right: 1px solid #e5e7eb;
  color: #4b5563; padding: 6px 16px; cursor: pointer; font-size: 13px;
  transition: all 0.1s;
}
.tab-btn:last-child { border-right: 0; }
.tab-btn:hover { background: #f3f4f6; color: #111827; }
.tab-btn.active {
  background: #2962ff; color: #ffffff; font-weight: 600;
}
.coupling-pane.hidden { display: none; }

/* 样本数筛选器（维度一 & 维度二通用） */
.dim-sample-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.dim-sample-label {
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
}
.dim-sample-select {
  font-size: 12px;
  padding: 4px 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #ffffff;
  color: #374151;
  cursor: pointer;
  font-family: inherit;
}
.dim-sample-select:hover { border-color: #93c5fd; }
.dim-sample-select:focus { outline: none; border-color: #2563eb; }

/* 粒度切换：分段按钮风格 */
.level-switcher {
  display: inline-flex;
  background: #f3f4f6;
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.lvl-btn {
  border: none;
  background: transparent;
  font-size: 12px;
  color: #6b7280;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: inherit;
}
.lvl-btn:hover { background: #e5e7eb; color: #111827; }
.lvl-btn.active {
  background: #ffffff;
  color: #2563eb;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  font-weight: 600;
}
.lvl-btn .lvl-num {
  font-size: 10.5px;
  color: #9ca3af;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.lvl-btn.active .lvl-num { color: #6b7280; }

/* 未分类阵营 */
.camp-other { color: #94a3b8; }
.cs-stat.camp-other { color: #94a3b8; }
.col-camp .camp-other .muted { color: #cbd5e1; }
.col-camp .camp-theme .muted { color: #cbd5e1; font-style: italic; font-size: 10.5px; }
.theme-summary { background: #f1f5f9; border-color: #e2e8f0; }
.theme-summary .camp-theme { color: #64748b; font-weight: 500; }
.theme-consistency .cs-card-empty {
  padding: 16px 20px;
  color: #6b7280;
  background: #f9fafb;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.6;
}

.ladder-container {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}
.ladder-table {
  width: 100%; border-collapse: collapse; font-size: 12px;
}
.ladder-table thead th {
  background: #f7f8fa; color: #6b7280;
  font-size: 11px; font-weight: 500; text-transform: none;
  padding: 8px 10px; text-align: left;
  border-bottom: 1px solid #e5e7eb;
  position: relative;
  overflow: visible;
}
.ladder-table thead tr:first-child th:first-child { border-top-left-radius: 8px; }
.ladder-table thead tr:first-child th:last-child  { border-top-right-radius: 8px; }

/* 通用问号帮助按钮 + 悬浮说明 */
.help-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 13px; height: 13px;
  margin-left: 5px;
  border-radius: 50%;
  background: #d1d5db; color: #ffffff;
  font-size: 9px; font-weight: 700;
  cursor: help;
  position: relative;
  vertical-align: middle;
  transition: background 0.12s;
  user-select: none;
}
.help-icon:hover { background: #2563eb; }
.help-popup {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 380px;
  max-width: 92vw;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  font-size: 12px;
  font-weight: 400;
  color: #1a1a1a;
  text-align: left;
  line-height: 1.6;
  z-index: 200;
  white-space: normal;
  cursor: default;
  text-transform: none;
}
.help-popup .example {
  background: #f0f9ff;
  border-left: 3px solid #2563eb;
  padding: 7px 10px;
  border-radius: 4px;
  margin: 6px 0;
  font-size: 11.5px;
  color: #1e3a8a;
  line-height: 1.55;
}
.help-popup .example b { color: #1d4ed8; }
.help-popup .help-range {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #e5e7eb;
  font-size: 11.5px;
  color: #374151;
  line-height: 1.7;
}
.help-popup .help-range .rt {
  color: #6b7280; margin-bottom: 4px;
}
.help-popup .help-range .row {
  display: flex; align-items: baseline; gap: 8px;
}
.help-popup .help-range .row .key {
  flex-shrink: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  min-width: 78px;
}
.help-popup .help-range .row.hot  .key { color: #b91c1c; }
.help-popup .help-range .row.warm .key { color: #d97706; }
.help-popup .help-range .row.cool .key { color: #6b7280; }
.help-popup::before {
  content: '';
  position: absolute;
  top: -6px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px; height: 10px;
  background: #ffffff;
  border-left: 1px solid #e5e7eb;
  border-top: 1px solid #e5e7eb;
}
.help-icon:hover .help-popup,
.help-icon:focus-within .help-popup {
  display: block;
}
.help-popup .help-title {
  font-weight: 600; color: #111827; font-size: 13px;
  margin-bottom: 6px;
}
.help-popup .formula {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  background: #f3f4f6;
  padding: 4px 8px;
  border-radius: 4px;
  margin: 4px 0;
  color: #1f2937;
}
.help-popup ul {
  margin: 6px 0 4px; padding-left: 18px;
}
.help-popup ul li {
  margin: 2px 0; color: #374151;
}
.help-popup .muted {
  color: #6b7280; font-size: 11px; margin-top: 6px;
}
.help-popup b { color: #111827; font-weight: 600; }
.help-popup .tag {
  display: inline-block;
  padding: 1px 5px; margin-right: 3px;
  border-radius: 3px;
  font-size: 11px; font-weight: 500;
  background: #eff6ff; color: #2563eb;
}
/* Tier 是"层级标识"而非"方向信号"，用蓝色梯度（与复盘页 help-tier-T1/T2/T3 一致） */
.help-popup .tag.t1 { background: #eff6ff; color: #1e40af; }
.help-popup .tag.t2 { background: #dbeafe; color: #1e40af; }
.help-popup .tag.t3 { background: #1d4ed8; color: #ffffff; }
/* 状态列 popup 在右侧时把箭头/弹层往左偏一些，避免溢出页面 */
.col-label .help-popup {
  left: auto; right: -10px;
  transform: none;
}
.col-label .help-popup::before {
  left: auto; right: 16px;
  transform: rotate(45deg);
}
.ladder-table tbody td {
  padding: 9px 10px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: top;
}
.ladder-table tbody tr:last-child td { border-bottom: 0; }
.ladder-table tbody tr:hover td { background: #f8fbff; }
.col-rank { width: 40px; text-align: center; }
.col-name { width: 130px; }
.col-camp { width: 130px; }
.col-final { width: 64px; text-align: right; font-variant-numeric: tabular-nums; }
.col-decomp { width: 180px; }
.col-label { width: 100px; }
.col-hits { padding-right: 14px !important; }

.ladder-row .col-name b { color: #111827; }
.ladder-row .col-camp .camp-attack,
.ladder-row .col-camp .camp-defense,
.ladder-row .col-camp .camp-cycle,
.ladder-row .col-camp .camp-neutral {
  font-size: 11px; padding: 1px 6px;
  border: 1px solid #e5e7eb; border-radius: 8px;
  white-space: nowrap;
}
.decomp-single {
  font-variant-numeric: tabular-nums; color: #4b5563;
}
.decomp-stab {
  font-size: 11px; color: #b91c1c; margin-left: 4px;
}
.decomp-stab.muted { color: #9ca3af; }

.state-label {
  font-size: 11px; padding: 2px 8px; border-radius: 10px;
  font-weight: 600; white-space: nowrap;
}
.state-rising { background: #fef2f2; color: #b91c1c; }
.state-stable { background: #eff6ff; color: #1d4ed8; }
.state-fading { background: #f5f3ff; color: #7c3aed; }
.state-flash  { background: #fef9e7; color: #d97706; }
.state-none   { color: #d1d5db; background: transparent; }

.hit-pill {
  display: inline-block;
  font-size: 10px;
  padding: 1px 6px; margin: 1px 2px;
  background: #f7f8fa; border: 1px solid #e5e7eb; border-radius: 8px;
  color: #4b5563;
  white-space: nowrap;
}
.hit-pill sup {
  font-size: 8px; padding: 0 3px; margin-left: 2px; border-radius: 6px;
}
.hit-pill sup.tone-bullish { background: #dc2626; color: #fff; }
.hit-pill sup.tone-bearish { background: #1d4ed8; color: #fff; }
.hit-pill sup.tier-T2.tone-bullish { background: #ef4444; }
.hit-pill sup.tier-T3.tone-bullish { background: #b91c1c; }
.hit-pill sup.tier-T2.tone-bearish { background: #2563eb; }
.hit-pill sup.tier-T3.tone-bearish { background: #1e3a8a; }
/* 可点击的命中信号 tag：跳转到「个股 K 线」并自动应用筛选 */
a.hit-pill { text-decoration: none; cursor: pointer; transition: background .12s, color .12s, border-color .12s; }
a.hit-pill:hover { background: #eef2ff; border-color: #93c5fd; color: #1d4ed8; }
/* 板块名链接：与默认文字保持视觉一致，悬停时变蓝下划线 */
a.board-link {
  color: inherit; text-decoration: none; cursor: pointer;
  border-bottom: 1px dashed transparent; transition: color .12s, border-color .12s;
}
a.board-link:hover { color: #1d4ed8; border-bottom-color: #93c5fd; }

/* 阵营汇总条 */
.camp-summary {
  padding: 10px 14px;
  background: #fcfcfd;
  border-top: 1px solid #f3f4f6;
  font-size: 12px; display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
}
.camp-summary .cs-label { color: #6b7280; }
.camp-summary .cs-stat b {
  font-size: 14px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-left: 2px;
}

.no-conflict {
  padding: 10px 14px;
  font-size: 12px; color: #374151;
  background: #f9fafb; border-top: 1px solid #e5e7eb;
}

/* 矛盾警告卡片：中性灰 chrome，警告色留给 ⚠ icon 与字体强调本身 */
.conflict-warning {
  margin-top: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #111827;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 12px;
}
.cw-header {
  font-size: 14px; font-weight: 700; color: #111827;
  margin-bottom: 8px;
}
.cw-line { color: #4b5563; margin-bottom: 6px; line-height: 1.7; }
.cw-line b { color: #111827; }
.cw-list {
  list-style: none; margin: 8px 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.cw-list li {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 8px 10px;
}
.cw-list li b { color: #111827; }
.cw-list .camp-attack,
.cw-list .camp-defense,
.cw-list .camp-cycle,
.cw-list .camp-neutral {
  font-size: 11px; padding: 1px 6px; border: 1px solid #e5e7eb;
  border-radius: 8px; margin-left: 4px;
}
.cw-hits { margin-top: 4px; line-height: 2; }
.cw-themes { margin-top: 4px; }
.theme-pill {
  display: inline-block;
  font-size: 10px; padding: 1px 6px; margin: 1px 2px;
  background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 8px;
  color: #4b5563;
}
.theme-pill small { color: #9ca3af; margin-left: 2px; }
.cw-tip {
  margin-top: 8px; padding-top: 8px;
  border-top: 1px dashed #fde68a;
  color: #4b5563; line-height: 1.7;
}
.cw-tip ul { margin: 4px 0 0 16px; padding: 0; }
.cw-tip li { margin-bottom: 2px; }

/* 多空对比 / 一致性卡片 */
.multi-grid {
  display: grid; grid-template-columns: 360px 1fr; gap: 14px;
}
.consistency-card {
  background: #ffffff; border: 1px solid #e5e7eb; border-radius: 8px;
  padding: 16px 18px;
}
.cs-card-title { font-size: 12px; color: #6b7280; font-weight: 600; }
.cs-card-score {
  font-size: 40px; font-weight: 700; line-height: 1.1;
  font-variant-numeric: tabular-nums; letter-spacing: -1px;
  margin: 6px 0 4px;
  display: flex; align-items: baseline; gap: 12px;
}
.cs-card-tag {
  font-size: 11px; padding: 3px 10px; border-radius: 12px; font-weight: 600;
}
.cs-card-bars {
  margin-top: 14px; display: flex; flex-direction: column; gap: 8px;
}
.cs-card-row { display: flex; flex-direction: column; gap: 4px; }
.cs-card-name { font-size: 11px; color: #6b7280; }
.cs-card-stack {
  display: flex; height: 22px;
  border-radius: 4px; overflow: hidden;
  background: #f3f4f6;
}
.cs-seg {
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; font-weight: 600;
  transition: width 0.3s;
}
.cs-card-foot {
  margin-top: 12px; padding-top: 8px;
  border-top: 1px dashed #e5e7eb;
  font-size: 11px; color: #4b5563;
}

.multi-conflict-section {
  background: #ffffff; border: 1px solid #e5e7eb; border-radius: 8px;
  padding: 14px 16px;
}
.multi-conflict-title {
  font-size: 13px; font-weight: 700; color: #b45309;
  margin: 0 0 10px;
}
.multi-conflict-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.multi-conflict-list li {
  background: #fffaeb; border: 1px solid #fde68a; border-radius: 6px;
  padding: 8px 10px; font-size: 12px;
}
.mc-head { font-size: 13px; margin-bottom: 4px; }
.mc-head b { color: #111827; }
.mc-head .camp-attack,
.mc-head .camp-defense,
.mc-head .camp-cycle,
.mc-head .camp-neutral {
  font-size: 11px; padding: 1px 6px; border: 1px solid #e5e7eb;
  border-radius: 8px; margin-left: 4px;
}
.mc-row { margin: 4px 0; line-height: 1.9; }
.mc-side {
  display: inline-block; min-width: 70px; font-weight: 700;
  padding: 1px 6px; border-radius: 8px; margin-right: 6px;
}
.mc-side.bull { background: #fef2f2; color: #b91c1c; }
.mc-side.bear { background: #eff6ff; color: #1d4ed8; }
.mc-tip {
  margin-top: 6px; padding-top: 6px;
  border-top: 1px dashed #fde68a;
  color: #4b5563; font-size: 11px;
}
.multi-conflict-empty {
  background: #f9fafb; border: 1px solid #e5e7eb;
  border-radius: 8px; padding: 16px; text-align: center;
  font-size: 12px; color: #374151;
}
.theme-line { color: #6b7280; }

/* loading */
.loading {
  text-align: center; padding: 60px 20px;
  color: #9ca3af; font-size: 14px;
}
  </style>
