/* 击球区行业「板块渗透率」与「种子 → 树苗转化率」景气雷达（独立扩展层，零业务侵入） */

.sector-radar-panel {
  margin: 8px 0 4px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(248, 250, 252, 0.95) 100%);
  color: #0f172a;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.sector-radar-panel.is-collapsed {
  padding: 7px 14px;
}

.sector-radar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.sector-radar__title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.sector-radar__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid rgba(37, 99, 235, 0.25);
  color: #1d4ed8;
  font-size: 12.5px;
  font-weight: 750;
  white-space: nowrap;
}

.sector-radar__subtitle {
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sector-radar__warming-strip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sector-radar__warming-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #b45309;
  white-space: nowrap;
}

.sector-radar__warming-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px !important;
  border: 1px solid rgba(217, 119, 6, 0.28);
  background: #fffbeb;
  color: #92400e;
  font-size: 11.5px;
  font-weight: 650;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition: background-color 140ms ease, border-color 140ms ease, transform 120ms ease;
}

.sector-radar__warming-pill:hover,
.sector-radar__warming-pill.is-selected {
  background: #fef3c7;
  border-color: rgba(217, 119, 6, 0.55);
  color: #78350f;
}

.sector-radar__warming-rank {
  font-size: 10px;
  font-weight: 800;
  color: #d97706;
}

.sector-radar__warming-delta {
  font-weight: 750;
  color: #b91c1c;
}

.sector-radar__warming-empty {
  font-size: 11.5px;
  color: #64748b;
}

.sector-radar__controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sector-radar__seg {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.sector-radar__seg-btn {
  height: 24px;
  padding: 0 9px;
  border: none;
  border-radius: 999px !important;
  background: transparent;
  color: #475569;
  font-size: 11.5px;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 140ms ease, color 140ms ease;
}

.sector-radar__seg-btn.is-active {
  background: #ffffff;
  color: #1d4ed8;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.10);
}

.sector-radar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 9px;
  border-radius: 999px !important;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #ffffff;
  color: #1e293b;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.sector-radar__btn:hover {
  background: #eff6ff;
  border-color: rgba(37, 99, 235, 0.36);
  color: #1d4ed8;
}

.sector-radar__body {
  margin-top: 9px;
}

.sector-radar__empty {
  padding: 6px 2px;
  font-size: 12px;
  color: #64748b;
}

.sector-radar__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px;
}

.sector-radar-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.sector-radar-card:hover,
.sector-radar-card.is-selected {
  border-color: rgba(37, 99, 235, 0.48);
  background: #f8fbff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.09);
}

.sector-radar-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.sector-radar-card__title {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.sector-radar-card__rank {
  font-size: 11px;
  font-weight: 750;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.sector-radar-card__name {
  font-size: 13px;
  font-weight: 750;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sector-radar-card__metric {
  font-size: 13px;
  font-weight: 800;
  color: #1e293b;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sector-radar-card__metric.is-pos,
.sector-radar-card__stats .is-pos {
  color: #b91c1c;
}

.sector-radar-card__metric.is-neg,
.sector-radar-card__stats .is-neg {
  color: #047857;
}

.sector-radar-card__bar {
  height: 5px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.sector-radar-card__bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb 0%, #ef4444 100%);
}

.sector-radar-card__stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 550;
  color: #475569;
  font-variant-numeric: tabular-nums;
  flex-wrap: wrap;
}

.sector-radar__more-row {
  margin-top: 6px;
  display: flex;
  justify-content: center;
}

.sector-radar__more-btn {
  border: none;
  background: transparent;
  color: #2563eb;
  font-size: 11.5px;
  font-weight: 650;
  cursor: pointer;
  padding: 2px 8px;
}

.sector-radar__drawer {
  margin-top: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  background: #f8fafc;
}

.sector-radar__drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
  flex-wrap: wrap;
}

.sector-radar__drawer-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #0f172a;
}

.sector-radar__drawer-meta {
  font-size: 11.5px;
  color: #475569;
  font-variant-numeric: tabular-nums;
}

.sector-radar__stocks {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sector-radar__stock-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 9px;
  border-radius: 999px !important;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: #1e293b;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}

.sector-radar__stock-chip.is-sapling {
  border-color: rgba(22, 163, 74, 0.35);
  background: #f0fdf4;
  color: #166534;
}

.sector-radar__stock-chip:hover {
  border-color: rgba(37, 99, 235, 0.5);
  background: #eff6ff;
  color: #1d4ed8;
}

.sector-radar__stock-code {
  font-weight: 750;
}

.sector-radar__stock-tag {
  font-size: 10.5px;
  opacity: 0.85;
}

/* 非侵入式联动描边：绝不修改原有 .sector-block 尺寸与 .highlighted 类 */
.monthly-sector-tables .sector-block.sector-radar-linked {
  outline: 2px solid #2563eb;
  outline-offset: 1px;
}

/* 深色模式高对比度适配 */
html[data-table-theme='dark'] .sector-radar-panel {
  background: #111827;
  border-color: rgba(148, 163, 184, 0.22);
  color: #f1f5f9;
}

html[data-table-theme='dark'] .sector-radar__badge {
  background: #172554;
  border-color: rgba(96, 165, 250, 0.42);
  color: #dbeafe;
}

html[data-table-theme='dark'] .sector-radar__subtitle,
html[data-table-theme='dark'] .sector-radar__warming-empty,
html[data-table-theme='dark'] .sector-radar__empty,
html[data-table-theme='dark'] .sector-radar__drawer-meta,
html[data-table-theme='dark'] .sector-radar-card__stats {
  color: #cbd5e1;
}

html[data-table-theme='dark'] .sector-radar__warming-label {
  color: #fcd34d;
}

html[data-table-theme='dark'] .sector-radar__warming-pill {
  background: #451a03;
  border-color: rgba(251, 191, 36, 0.42);
  color: #fde68a;
}

html[data-table-theme='dark'] .sector-radar__warming-delta {
  color: #fca5a5;
}

html[data-table-theme='dark'] .sector-radar__seg {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.22);
}

html[data-table-theme='dark'] .sector-radar__seg-btn {
  color: #cbd5e1;
}

html[data-table-theme='dark'] .sector-radar__seg-btn.is-active {
  background: #0f172a;
  color: #93c5fd;
}

html[data-table-theme='dark'] .sector-radar__btn,
html[data-table-theme='dark'] .sector-radar-card,
html[data-table-theme='dark'] .sector-radar__stock-chip {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.24);
  color: #f1f5f9;
}

html[data-table-theme='dark'] .sector-radar-card:hover,
html[data-table-theme='dark'] .sector-radar-card.is-selected {
  background: #172554;
  border-color: rgba(96, 165, 250, 0.55);
}

html[data-table-theme='dark'] .sector-radar-card__name,
html[data-table-theme='dark'] .sector-radar-card__metric,
html[data-table-theme='dark'] .sector-radar__drawer-title {
  color: #f8fafc;
}

html[data-table-theme='dark'] .sector-radar-card__metric.is-pos,
html[data-table-theme='dark'] .sector-radar-card__stats .is-pos {
  color: #fca5a5;
}

html[data-table-theme='dark'] .sector-radar-card__metric.is-neg,
html[data-table-theme='dark'] .sector-radar-card__stats .is-neg {
  color: #6ee7b7;
}

html[data-table-theme='dark'] .sector-radar-card__bar {
  background: #334155;
}

html[data-table-theme='dark'] .sector-radar__drawer {
  background: #0f172a;
  border-color: rgba(96, 165, 250, 0.35);
}

html[data-table-theme='dark'] .sector-radar__stock-chip.is-sapling {
  background: #052e16;
  border-color: rgba(74, 222, 128, 0.42);
  color: #bbf7d0;
}
