/* ============================================================
   Step 4 策略中心：推荐向导 / 策略卡片 / 因子展开 / 策略对比
   ============================================================ */

/* ---------- 页面容器（由 home.js navigateTo 注入） ---------- */
#pageContainer {
  width: 100%;
  min-height: 100dvh;
  background: var(--bg-base);
}

/* ---------- 页面容器 ---------- */
.strategies-page {
  padding: 12px 16px 60px;
  max-width: 1080px; margin: 0 auto; width: 100%;
  animation: rise 0.4s ease both;
}
@media (min-width: 1160px) { .strategies-page { padding: 18px 28px 60px; } }

/* ---------- 页头 ---------- */
.sp-header {
  display: flex; align-items: flex-start; gap: 20px; flex-wrap: wrap;
  margin-bottom: 22px;
}
.sp-header-left { flex: 1; min-width: 0; }
.sp-header-left h2 {
  font-size: 26px; font-weight: 900;
  display: flex; align-items: center; gap: 10px;
}
.sp-header-left h2 svg { width: 24px; height: 24px; color: var(--c-gold); }
.sp-header-left p { font-size: 14px; color: var(--ink-2); margin-top: 6px; line-height: 1.7; }
.sp-header-right { display: flex; gap: 12px; flex-wrap: wrap; }
.sp-stat {
  display: flex; flex-direction: column; align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: 14px; padding: 12px 18px;
  box-shadow: var(--shadow-card);
}
.sp-stat b {
  font-size: 22px; font-weight: 900; font-family: var(--font-num);
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sp-stat span { font-size: 11.5px; color: var(--ink-3); font-weight: 600; margin-top: 2px; }

/* ---------- 推荐向导 ---------- */
.wizard {
  background: linear-gradient(135deg, rgba(247,169,37,0.06), rgba(255,107,157,0.05));
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}
.wiz-header { text-align: center; margin-bottom: 18px; }
.wiz-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 15px; font-weight: 900;
  background: var(--grad-brand); color: #fff;
  padding: 8px 20px; border-radius: 999px;
  box-shadow: var(--shadow-pop);
}
.wiz-badge svg { width: 16px; height: 16px; }
.wiz-badge.done { background: linear-gradient(135deg, #22C9A2, #4EA8FF); }
.wiz-sub { font-size: 13.5px; color: var(--ink-2); margin-top: 8px; font-weight: 600; }

.wiz-progress { display: flex; justify-content: center; gap: 8px; margin-bottom: 20px; }
.wiz-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--line-strong);
  transition: background 0.3s;
}
.wiz-dot.done { background: var(--c-mint); }
.wiz-dot.current { background: var(--c-gold); box-shadow: 0 0 0 4px rgba(247,169,37,0.2); }

.wiz-question {
  text-align: center;
  font-size: 20px; font-weight: 900;
  margin-bottom: 20px;
}

.wiz-options {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.wiz-opt {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  min-width: 130px;
  background: var(--bg-card);
  border: 1.5px solid var(--line-soft);
  border-radius: 18px;
  padding: 18px 20px;
  font-weight: 700;
  transition: all 0.22s ease;
  box-shadow: var(--shadow-card);
}
.wiz-opt:hover {
  border-color: var(--c-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
}
.wiz-opt-icon { font-size: 28px; }
.wiz-opt-label { font-size: 14.5px; color: var(--ink-2); }

.wiz-reset {
  display: block; margin: 0 auto;
  font-size: 12.5px; font-weight: 700; color: var(--ink-3);
  padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--line-soft);
  transition: color 0.2s, border-color 0.2s;
}
.wiz-reset:hover { color: var(--c-gold); border-color: var(--c-gold); }

/* 推荐结果 */
.wiz-result-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px;
}
.wiz-result-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-top: 4px solid var(--wc, var(--c-gold));
  border-radius: 20px;
  padding: 20px 16px 16px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.28s ease;
}
.wiz-result-card:hover { transform: translateY(-4px); }
.wiz-result-card.primary {
  border-width: 2px;
  border-color: var(--c-gold);
  box-shadow: 0 8px 32px -8px rgba(247,169,37,0.3);
}
.wiz-best-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 800; color: #fff;
  background: var(--grad-brand);
  padding: 5px 14px; border-radius: 999px;
  white-space: nowrap;
}
.wiz-best-badge svg { width: 12px; height: 12px; }
.wiz-result-card .avatar { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 20px; }
.wiz-rc-name { font-size: 16px; font-weight: 900; }
.wiz-rc-desc { font-size: 12.5px; color: var(--ink-2); line-height: 1.7; margin: 8px 0 12px; }
.wiz-rc-bt {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  margin-bottom: 13px;
}
.wiz-rc-bt .wb {
  background: var(--bg-soft); border: 1px solid var(--line-soft);
  border-radius: 10px; padding: 7px 4px;
}
.wiz-rc-bt .wb b { display: block; font-size: 15px; font-weight: 900; font-family: var(--font-num); }
.wiz-rc-bt .wb span { font-size: 10px; color: var(--ink-3); font-weight: 700; }
.wiz-rc-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px; border-radius: 999px;
  font-size: 13.5px; font-weight: 800;
  background: var(--grad-brand); color: #fff;
  box-shadow: var(--shadow-pop);
  transition: transform 0.18s;
}
.wiz-rc-btn:hover { transform: scale(1.03); }
.wiz-rc-btn svg { width: 14px; height: 14px; }

/* ---------- Tab 切换 ---------- */
.sc-tabs {
  display: flex; gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}
.sc-tab {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14.5px; font-weight: 800;
  padding: 10px 20px; border-radius: 999px;
  background: var(--bg-soft);
  border: 1.5px solid var(--line-soft);
  color: var(--ink-2);
  transition: all 0.2s;
}
.sc-tab:hover { border-color: var(--c-gold); color: var(--c-gold); }
.sc-tab.active {
  background: var(--grad-brand); color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-pop);
}
.sc-tab svg { width: 15px; height: 15px; }


.sc-top { display: flex; align-items: center; gap: 13px; }
.sc-top .avatar { width: 52px; height: 52px; }
.sc-info { flex: 1; min-width: 0; }
.sc-name { font-size: 16px; font-weight: 900; }
.sc-master { font-size: 12px; color: var(--ink-3); font-weight: 700; margin-top: 1px; }
.sc-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.sc-desc { font-size: 13.5px; color: var(--ink-2); line-height: 1.7; margin: 13px 0; }

/* 收藏星标 */
.sc-fav-btn {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.sc-fav-btn:hover { transform: scale(1.12); box-shadow: var(--shadow-pop); }
.sc-fav-btn.active { border-color: rgba(247,169,37,0.3); background: rgba(247,169,37,0.06); }
.sc-fav-btn svg { transition: fill 0.2s, stroke 0.2s; }

/* 回测小指标 */
.sc-bt-stats {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px;
  margin-bottom: 10px;
}
.sc-bt-stat {
  text-align: center;
  background: var(--bg-soft); border: 1px solid var(--line-soft);
  border-radius: 10px; padding: 8px 4px;
}
.sc-bt-stat b { display: block; font-size: 15px; font-weight: 900; font-family: var(--font-num); }
.sc-bt-stat span { font-size: 10.5px; color: var(--ink-3); font-weight: 700; }

.sc-expand-label {
  font-size: 13px; font-weight: 800; color: var(--c-gold);
  margin-bottom: 8px;
}
.sc-factors { display: grid; gap: 6px; }
.sc-factor {
  padding: 7px 0;
  border-top: 1px dashed var(--line-soft);
}
.sc-factor:first-child { border-top: none; }
.scf-top { display: flex; align-items: center; gap: 8px; }
.scf-name { font-size: 12.5px; font-weight: 800; color: var(--ink-2); }
.scf-bar { flex: 1; height: 5px; border-radius: 5px; background: var(--bg-soft); overflow: hidden; }
.scf-bar i { display: block; height: 100%; border-radius: 5px; transition: width 0.6s ease; }
.scf-w { font-size: 11.5px; font-weight: 800; color: var(--c-gold); font-family: var(--font-num); }
.scf-why { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; line-height: 1.7; }

.sc-action-btn {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 700;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: var(--shadow-pop);
  transition: transform 0.18s;
}
.sc-action-btn:hover { transform: scale(1.03); }
.sc-action-btn svg { width: 14px; height: 14px; }
.sc-action-btn.secondary {
  background: var(--bg-soft); color: var(--ink-2);
  border: 1.5px solid var(--line-soft);
  box-shadow: none;
}
.sc-action-btn.primary {
  width: 100%;
  background: var(--grad-brand); color: #fff;
  margin-top: 14px;
}

/* ---------- 策略对比（付费锁） ---------- */
.compare-locked {
  text-align: center;
  padding: 40px 24px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}
.comp-lock-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--bg-soft);
  display: inline-grid; place-items: center;
  color: var(--c-gold);
  margin-bottom: 16px;
}
.comp-lock-icon svg { width: 28px; height: 28px; }
.compare-locked h4 { font-size: 18px; font-weight: 900; margin-bottom: 8px; }
.compare-locked p { font-size: 14px; color: var(--ink-2); line-height: 1.8; max-width: 28em; margin: 0 auto 22px; }
.comp-preview { margin-bottom: 20px; }
.comp-table-mock {
  max-width: 540px; margin: 0 auto;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  overflow: hidden;
}
.comp-row {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr 0.8fr 0.8fr; gap: 10px; align-items: center;
  padding: 11px 15px;
  font-size: 13px; font-weight: 700;
  border-bottom: 1px solid var(--line-soft);
}
.comp-row:last-child { border-bottom: none; }
.comp-row.head {
  background: var(--bg-soft);
  font-size: 11.5px; color: var(--ink-3); font-weight: 800;
}
.comp-row span { display: flex; align-items: center; gap: 7px; }

/* ---------- 页脚提示 ---------- */
.sp-footer-note {
  margin-top: 30px; padding: 14px 18px;
  background: var(--bg-soft);
  border: 1px dashed var(--line-soft);
  border-radius: 14px;
  font-size: 12px; color: var(--ink-3); line-height: 1.8;
  display: flex; align-items: flex-start; gap: 8px;
}
.sp-footer-note svg { width: 14px; height: 14px; flex: none; margin-top: 1px; }


/* ============================================================
   策略对比面板 — 交互式多策略对比
   ============================================================ */

.compare-container { animation: rise .3s ease both; }

/* ---- Picker ---- */
.cp-picker {
  background: var(--bg-card); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); padding: 18px; margin-bottom: 18px;
}
.cp-picker-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.cp-picker-title {
  display: flex; align-items: center; gap: 7px;
  font-size: 15px; font-weight: 700; color: var(--ink-1);
}
.cp-picker-title svg { color: var(--c-gold); }
.cp-picker-count { font-size: 13px; font-weight: 700; color: var(--ink-2); font-family: var(--font-num); }

/* Slots */
.cp-slots { display: flex; gap: 10px; margin-bottom: 16px; }
.cp-slot {
  flex: 1; min-width: 0; height: 56px;
  border-radius: var(--r-sm); border: 2px dashed var(--line-soft);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: all .2s;
}
.cp-slot.empty { background: var(--bg-soft); }
.cp-slot.empty .cp-slot-placeholder { font-size: 22px; color: var(--ink-3); font-weight: 300; }
.cp-slot.filled {
  border-style: solid; border-color: var(--sc, var(--c-gold));
  background: color-mix(in srgb, var(--sc, var(--c-gold)) 8%, var(--bg-card));
  position: relative;
}
.cp-slot-name { font-size: 13px; font-weight: 700; color: var(--ink-1); }
.cp-slot-remove {
  position: absolute; top: -6px; right: -6px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--line-strong); color: var(--ink-2);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  font-size: 10px; transition: all .15s;
}
.cp-slot-remove:hover { background: var(--c-coral); color: #fff; border-color: var(--c-coral); }

/* Chip Grid */
.cp-chip-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px;
}
.cp-chip {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 10px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line-soft); background: var(--bg-card);
  cursor: pointer; transition: all .18s;
}
.cp-chip:hover { border-color: var(--cc, var(--c-gold)); background: color-mix(in srgb, var(--cc, var(--c-gold)) 5%, var(--bg-card)); }
.cp-chip.selected {
  border-color: var(--cc, var(--c-gold)); border-width: 2px;
  background: color-mix(in srgb, var(--cc, var(--c-gold)) 10%, var(--bg-card));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--cc, var(--c-gold)) 18%, transparent);
}
.cp-chip.disabled { opacity: 0.35; cursor: not-allowed; pointer-events: none; }
.cp-chip-name { font-size: 12px; font-weight: 600; color: var(--ink-1); }
.cp-chip-check {
  margin-left: auto; width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.cp-upgrade-hint {
  margin-top: 14px; padding: 8px 14px;
  background: var(--bg-soft); border-radius: var(--r-sm);
  font-size: 12px; color: var(--ink-3); font-weight: 600;
  display: flex; align-items: center; gap: 6px;
}

/* ---- Panels ---- */
.cp-panel {
  background: var(--bg-card); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); padding: 18px; margin-bottom: 16px;
}
.cp-panel-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--ink-1);
  margin-bottom: 14px;
}
.cp-panel-head svg { color: var(--c-gold); }
.cp-panel-sub { font-size: 11px; color: var(--ink-3); font-weight: 600; margin-left: auto; }
.cp-panel-badge.pro {
  margin-left: auto; font-size: 10px; font-weight: 800;
  padding: 2px 8px; border-radius: 100px;
  background: var(--grad-brand); color: #fff;
}

/* ---- Metrics Table ---- */
.cmt-table { overflow-x: auto; }
.cmt-row {
  display: grid; grid-template-columns: 100px repeat(auto-fit, minmax(80px, 1fr));
  gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line-soft);
  align-items: center;
}
.cmt-row:last-child { border-bottom: none; }
.cmt-row.head {
  font-size: 11px; font-weight: 700; color: var(--ink-3);
  padding: 6px 12px; border-bottom: 2px solid var(--line-soft);
}
.cmt-row.head span { display: flex; align-items: center; gap: 6px; }
.cmt-label-col { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.cmt-label-col small { font-size: 10px; color: var(--ink-3); margin-left: 3px; }
.cmt-val { position: relative; }
.cmt-val b { font-size: 13px; font-weight: 800; font-family: var(--font-num); display: block; }
.cmt-val.best b { color: var(--c-gold); }
.cmt-bar {
  display: block; height: 4px; border-radius: 2px; margin-top: 3px;
  min-width: 2px; transition: width .4s ease;
}

/* ---- Scenarios ---- */
.scn-grid { display: flex; gap: 16px; }
.scn-group { flex: 1; min-width: 0; }
.scn-group-label {
  font-size: 13px; font-weight: 700; color: var(--ink-1); margin-bottom: 10px;
}
.scn-bar-row {
  display: flex; align-items: center; gap: 8px; margin-bottom: 7px;
}
.scn-bar-name { font-size: 11px; color: var(--ink-2); width: 56px; flex-shrink: 0; }
.scn-bar-track { flex: 1; height: 10px; background: var(--bg-sunk); border-radius: 5px; overflow: hidden; }
.scn-bar-track i { display: block; height: 100%; border-radius: 5px; transition: width .4s ease; }
.scn-bar-val { font-size: 12px; font-weight: 800; font-family: var(--font-num); width: 56px; text-align: right; }

/* ---- Radar ---- */
.radar-wrap { display: flex; flex-direction: column; align-items: center; }
.radar-svg { width: 100%; max-width: 320px; display: block; }
.radar-legend {
  display: flex; gap: 16px; justify-content: center; margin-top: 12px; flex-wrap: wrap;
}
.radar-legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.radar-legend-item i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

.radar-locked-body { position: relative; display: flex; justify-content: center; }
.radar-locked-blur { pointer-events: none; user-select: none; }
.radar-locked-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
.radar-locked-overlay > span {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  color: var(--c-gold);
}
.radar-locked-overlay p { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.cp-upgrade-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 20px; border-radius: 100px;
  background: var(--grad-brand); color: #fff;
  font-size: 13px; font-weight: 800; border: none; cursor: pointer;
  transition: transform .2s;
}
.cp-upgrade-btn:hover { transform: scale(1.04); }

/* ---- Factor Matrix ---- */
.fm-table-wrap { overflow-x: auto; }
.fm-table { min-width: max-content; }
.fm-row {
  display: flex; align-items: center; gap: 0; padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
}
.fm-row.head { padding: 4px 0; border-bottom: 2px solid var(--line-soft); }
.fm-row.resonance { background: rgba(247,169,37,0.06); border-bottom: none; border-top: 2px solid var(--c-gold); }
.fm-label-col {
  width: 110px; flex-shrink: 0; font-size: 12px; font-weight: 600; color: var(--ink-1);
  display: flex; align-items: center; gap: 6px; padding-left: 8px;
}
.fm-label-col svg { color: var(--c-gold); }
.fm-factor-col {
  width: 60px; flex-shrink: 0; text-align: center;
  font-size: 10px; font-weight: 600; color: var(--ink-3);
}
.fm-count-col { width: 50px; flex-shrink: 0; text-align: center; }
.fm-count-col b { font-size: 13px; font-family: var(--font-num); color: var(--ink-1); }
.fm-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.fm-dot.empty { background: var(--bg-sunk); }
.fm-dot.shared { width: 14px; height: 14px; background: var(--c-gold); box-shadow: 0 0 6px rgba(247,169,37,0.5); }
.fm-note {
  margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--ink-2);
  padding: 8px 12px; background: var(--bg-soft); border-radius: var(--r-sm);
  text-align: center;
}
.fm-note.green { color: var(--c-mint); background: rgba(34,201,162,0.06); }

/* ---- Detail Cards ---- */
.cd-grid { display: flex; flex-direction: column; gap: 8px; }
.cd-card {
  border: 1px solid var(--line-soft); border-radius: var(--r-sm);
  border-left: 3px solid var(--cdc, var(--c-gold));
  overflow: hidden; transition: box-shadow .2s;
}
.cd-card:hover { box-shadow: var(--shadow-card); }
.cd-card-top {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  cursor: pointer; user-select: none;
}
.cd-card-info { flex: 1; }
.cd-card-name { font-size: 14px; font-weight: 700; color: var(--ink-1); }
.cd-card-master { font-size: 11px; color: var(--ink-3); }
.cd-card-chev { color: var(--ink-3); transition: transform .25s; }
.cd-card-body { padding: 0 14px 14px; }
.cd-card-desc { font-size: 13px; color: var(--ink-2); line-height: 1.6; margin: 0 0 10px; }
.cd-factor-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.cd-factor-name { font-size: 11px; color: var(--ink-2); width: 80px; flex-shrink: 0; }
.cd-factor-bar { flex: 1; height: 5px; background: var(--bg-sunk); border-radius: 3px; overflow: hidden; }
.cd-factor-bar i { display: block; height: 100%; border-radius: 3px; }
.cd-card-bt { display: flex; gap: 16px; margin-top: 10px; font-size: 11px; color: var(--ink-2); }
.cd-card-bt b { font-family: var(--font-num); }

/* ---- Empty State ---- */
.cp-empty {
  text-align: center; padding: 48px 20px;
}
.cp-empty-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--bg-soft); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 24px; color: var(--ink-3);
}
.cp-empty h4 { font-size: 17px; font-weight: 800; color: var(--ink-1); margin-bottom: 8px; }
.cp-empty p { font-size: 13px; color: var(--ink-2); max-width: 24em; margin: 0 auto 12px; line-height: 1.6; }
.cp-empty-features {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.cp-empty-features span {
  font-size: 11px; color: var(--ink-3); font-weight: 600;
  padding: 4px 10px; background: var(--bg-soft); border-radius: 100px;
}
.cp-empty-features span b { color: var(--ink-1); }

.cp-footer-note {
  text-align: center; font-size: 11px; color: var(--ink-3);
  padding: 8px 0; font-weight: 600;
}

/* ---- Legacy compare cleanup ---- */
.compare-locked, .compare-unlocked { display: none; }

/* ============================================================
   策略对比 — 移动端
   ============================================================ */
@media (max-width: 768px) {
  .cp-slots { gap: 6px; }
  .cp-slot { height: 46px; }
  .cp-chip-grid { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 6px; }
  .cp-chip { padding: 6px 8px; }
  .cp-chip-name { font-size: 11px; }
  .cmt-row { grid-template-columns: 80px repeat(auto-fit, minmax(60px, 1fr)); gap: 4px; padding: 8px 8px; }
  .cmt-val b { font-size: 11px; }
  .cmt-label-col { font-size: 11px; }
  .scn-grid { flex-direction: column; gap: 14px; }
  .radar-svg { max-width: 240px; }
  .fm-label-col { width: 80px; font-size: 10px; }
  .fm-factor-col { width: 44px; font-size: 9px; }
}

/* 小屏适配 */
@media (max-width: 560px) {
  .sc-bt-stats { grid-template-columns: repeat(3, 1fr); }
  .wiz-options { flex-direction: column; align-items: stretch; }
  .wiz-opt { flex-direction: row; gap: 12px; justify-content: center; min-width: auto; }
  .wiz-result-grid { grid-template-columns: 1fr; }
  .comp-row { grid-template-columns: 1fr 0.8fr 0.8fr 0.6fr 0.7fr; gap: 6px; font-size: 11px; }
  .sp-header-right { display: none; }
}

/* ============================================================
   交叉排行（策略 × 行业/概念）
   ============================================================ */
.cross-page { animation: rise .3s ease both; }

/* 3问推荐折叠入口 */
.cross-wiz { margin-bottom: 16px; }
.cross-wiz-toggle {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 12px 16px; border-radius: var(--r-lg);
  border: 1px dashed rgba(247,169,37,.35);
  background: linear-gradient(135deg, rgba(247,169,37,.05), rgba(78,168,255,.05));
  cursor: pointer; font-size: 14px; font-weight: 700; color: var(--ink-1);
  transition: border-color .2s; text-align: left;
}
.cross-wiz-toggle:hover { border-color: var(--c-gold); }
.cross-wiz-toggle svg { color: var(--c-gold); flex: none; }
.cross-wiz-arrow { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.cross-wiz-body { margin-top: 12px; }

/* 选择器：① 策略 ② 板块 */
.cross-selectors {
  background: var(--bg-card); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); padding: 16px; margin-bottom: 16px;
}
.cross-row { display: flex; gap: 12px; align-items: flex-start; }
.cross-row + .cross-row { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-soft); }
.cross-step {
  flex: none; width: 120px; padding-top: 6px;
  display: flex; align-items: flex-start; gap: 9px;
}
.cross-step-ico {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--grad-brand); color: #fff;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 900; font-family: var(--font-num);
  box-shadow: var(--shadow-pop);
}
.cross-step-txt b { display: block; font-size: 13.5px; font-weight: 900; color: var(--ink-1); }
.cross-step-txt .cross-step-hint { margin-top: 4px; }
.cross-chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; min-width: 0; }
.cross-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  border: 1.5px solid var(--line-soft); background: var(--bg-soft);
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  cursor: pointer; transition: all .15s;
}
.cross-chip:hover { border-color: var(--cc, var(--c-gold)); }
.cross-chip.on {
  border-color: var(--cc, var(--c-gold));
  background: color-mix(in srgb, var(--cc, var(--c-gold)) 12%, var(--bg-card));
  color: var(--ink-1); font-weight: 800;
  box-shadow: var(--shadow-pop);
}
.cross-chip.strat { padding: 6px 11px; font-size: 12px; }
.cross-heat { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; flex: none; }
.cross-heat i { width: 3px; border-radius: 2px; background: var(--line-strong); }
.cross-heat i:nth-child(1) { height: 5px; }
.cross-heat i:nth-child(2) { height: 8px; }
.cross-heat i:nth-child(3) { height: 11px; }
.cross-temp-word { font-size: 11px; font-weight: 800; flex: none; }
.cross-temp, .cross-cnt {
  font-size: 11px; font-weight: 700; color: var(--ink-3); font-family: var(--font-num);
}
.cross-temp-legend {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 8px; font-size: 11px; color: var(--ink-3);
}
.cross-temp-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 3px; vertical-align: -1px; }
.cross-temp-legend em { font-style: normal; opacity: .85; }
.cross-chip-loading { font-size: 12px; color: var(--ink-3); padding: 6px 2px; }

.cross-sector-wrap { flex: 1; min-width: 0; }
.cross-sector-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.cross-sec-tabs {
  display: flex; gap: 4px; background: var(--bg-soft);
  padding: 3px; border-radius: 999px; flex: none;
}
.cross-sec-tab {
  padding: 5px 14px; border-radius: 999px; border: none; background: none;
  font-size: 13px; font-weight: 700; color: var(--ink-3); cursor: pointer; transition: all .15s;
}
.cross-sec-tab.on { background: var(--bg-card); color: var(--ink-1); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.cross-search {
  flex: 1; min-width: 120px; max-width: 260px;
  padding: 7px 12px; border-radius: 999px;
  border: 1.5px solid var(--line-soft); background: var(--bg-soft);
  font-size: 13px; color: var(--ink-1); outline: none;
}
.cross-search:focus { border-color: var(--c-gold); }

/* 结果区 */
.cross-result { animation: rise .3s ease both; }
.cross-result-head { margin-bottom: 12px; }
.cross-result-title {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 15px; font-weight: 800; color: var(--ink-1);
}
.cross-date {
  font-size: 11px; font-weight: 600; color: var(--ink-3);
  background: var(--bg-soft); border: 1px solid var(--line-soft);
  padding: 2px 8px; border-radius: 999px; font-family: var(--font-num);
}
.cross-result-sub { margin-top: 4px; font-size: 12px; color: var(--ink-3); }

/* 适配榜（板块 → 策略） */
.cross-adp {
  background: var(--bg-card); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); overflow: hidden;
}
.cross-adp-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; cursor: pointer;
  border-bottom: 1px solid var(--line-soft); transition: background .15s, transform .15s;
}
.cross-adp-row:last-child { border-bottom: none; }
.cross-adp-row:hover {
  background: color-mix(in srgb, var(--cc, var(--c-gold)) 6%, var(--bg-card));
  transform: translateY(-1px);
}
.cross-adp-name { flex: 1.3; min-width: 140px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cross-adp-name b { font-size: 14px; font-weight: 800; color: var(--ink-1); }
.cross-adp-risk {
  font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px;
  background: color-mix(in srgb, var(--cc, var(--c-gold)) 14%, transparent);
  color: var(--cc, var(--c-gold));
}
.cross-adp-m { flex: 1; min-width: 56px; text-align: center; }
.cross-adp-m b {
  display: block; font-size: 14px; font-weight: 800;
  font-family: var(--font-num); color: var(--ink-1);
}
.cross-adp-m i { font-style: normal; font-size: 10px; color: var(--ink-3); font-weight: 600; }

/* 榜单标题头 */
.cross-title-ico {
  width: 30px; height: 30px; border-radius: 10px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--c-gold) 14%, transparent);
  color: var(--c-gold);
}
.cross-title-ico svg { width: 16px; height: 16px; }

/* 个股榜（策略 × 板块）——表头 + 行，共鸣墙共用 .sr-* 基座 */
.sr-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-bottom: 1px solid var(--line-soft);
  transition: background .15s;
}
.sr-row:hover { background: color-mix(in srgb, var(--c-gold) 5%, var(--bg-card)); }
.sr-main { flex: 1; min-width: 0; }
.sr-stats { display: flex; gap: 16px; margin-top: 3px; flex-wrap: wrap; }
.sr-stats > span { font-size: 11px; color: var(--ink-3); font-weight: 600; display: flex; align-items: center; gap: 5px; }
.sr-stats > span b { font-size: 12.5px; font-weight: 800; color: var(--ink-1); font-family: var(--font-num); }
.cross-rk {
  background: var(--bg-card); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); overflow: hidden;
}
.cross-rk .sr-head,
.cross-rk .sr-row {
  display: grid;
  grid-template-columns: 26px minmax(120px, 1.7fr) repeat(3, minmax(56px, 1fr)) 72px 34px;
  gap: 10px; align-items: center;
  padding: 10px 14px;
}
.cross-rk .sr-head {
  padding: 9px 14px; border-bottom: 2px solid var(--line-soft);
  font-size: 11px; font-weight: 700; color: var(--ink-3);
}
.cross-rk .sr-head span:nth-child(2) { text-align: left; }
.cross-rk .sr-head span:not(:nth-child(2)) { text-align: center; }
.cross-rk .sr-row:last-child { border-bottom: none; }

.sr-no {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; font-family: var(--font-num);
  color: var(--ink-2); background: var(--bg-soft);
}
.sr-no.top {
  background: var(--grad-brand); color: #fff;
  box-shadow: 0 2px 10px rgba(247, 169, 37, .35);
}
.sr-stock { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.sr-stock b {
  font-size: 14px; font-weight: 800; color: var(--ink-1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.sr-code { font-size: 11px; color: var(--ink-3); font-family: var(--font-num); font-weight: 600; }
.sr-chg { margin-left: auto; font-size: 11px; font-weight: 800; font-family: var(--font-num); }
.sr-stat { text-align: center; }
.sr-stat b { display: block; font-size: 13px; font-weight: 800; font-family: var(--font-num); color: var(--ink-1); }
.sr-stat i { display: none; font-style: normal; font-size: 9px; color: var(--ink-3); font-weight: 700; margin-top: 1px; }
.sr-score { text-align: right; }
.sr-score b { display: block; font-size: 16px; font-weight: 900; font-family: var(--font-num); color: var(--ink-1); line-height: 1.15; }
.sr-score i { display: none; font-style: normal; font-size: 9px; color: var(--ink-3); font-weight: 700; }
.cross-rk-row.first .sr-score b { color: var(--c-gold); }
.sr-diary-btn {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid transparent;
  display: flex; align-items: center; justify-content: center;
  background: transparent; cursor: pointer; color: var(--ink-3);
  transition: all .18s;
}
.sr-diary-btn:hover { background: var(--bg-soft); color: var(--c-gold); border-color: var(--line-soft); }
.sr-diary-btn svg { width: 15px; height: 15px; }

/* 空态 / 加载 */
.cross-empty {
  text-align: center; padding: 40px 20px;
  background: var(--bg-card); border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
}
.cross-empty-icon { font-size: 30px; color: var(--ink-3); margin-bottom: 10px; }
.cross-empty-icon svg { width: 34px; height: 34px; color: var(--c-gold); }
.cross-empty h4 { font-size: 15px; font-weight: 800; color: var(--ink-1); margin: 0 0 6px; }
.cross-empty p { font-size: 13px; color: var(--ink-3); max-width: 420px; margin: 0 auto; line-height: 1.7; }
.cross-loading { text-align: center; padding: 36px 20px; font-size: 13px; color: var(--ink-3); }

/* 向导结果卡提示 */
.wiz-rc-hint { margin-top: 8px; font-size: 11px; font-weight: 600; color: var(--c-gold); }

/* 交叉排行 — 移动端 */
@media (max-width: 768px) {
  .cross-row { flex-direction: column; gap: 8px; }
  .cross-step { width: auto; padding-top: 0; }
  .cross-sector-bar { flex-wrap: wrap; }
  .cross-search { max-width: none; width: 100%; }
  .cross-adp-row { flex-wrap: wrap; gap: 8px 12px; padding: 10px 12px; }
  .cross-adp-name { flex: 1 1 100%; min-width: 0; }
  .cross-adp-m { flex: 1 1 28%; min-width: 60px; }
  .cross-scroll-btn { display: none; }
  .cross-strat-card { flex-basis: 240px; }
  .cross-step-txt .cross-step-hint { max-width: 220px; }
  .cross-modal { max-height: 82vh; }
  /* 列布局下 flex:1 只管高度，宽度须显式约束，否则卡片行横向溢出整页 */
  .cross-strat-wrap { width: 100%; }
  .cross-sector-wrap { width: 100%; }
  /* 个股榜：隐藏表头，改列内小标签 */
  .cross-rk .sr-head { display: none; }
  .cross-rk .sr-row {
    grid-template-columns: 22px minmax(0, 1fr) repeat(3, minmax(40px, 1fr)) 54px 28px;
    gap: 6px; padding: 9px 10px;
  }
  .sr-no { width: 22px; height: 22px; font-size: 11px; }
  .sr-stock { gap: 5px; }
  .sr-stock b { font-size: 13px; }
  .sr-code { font-size: 10px; }
  .sr-chg { font-size: 10px; }
  .sr-stat b { font-size: 11.5px; }
  .sr-stat i { display: block; }
  .sr-score b { font-size: 14px; }
  .sr-score i { display: block; }
  .sr-diary-btn { width: 26px; height: 26px; }
  .sr-diary-btn svg { width: 13px; height: 13px; }
}

/* ============================================================
   交叉排行 — 策略横滑卡片选择器（strategy-card 设计语言）
   ============================================================ */
.cross-strat-wrap { position: relative; flex: 1; min-width: 0; }
.cross-strat-cards {
  display: flex; gap: 14px; overflow-x: auto;
  scroll-behavior: smooth; padding: 4px 6px 12px;
  scroll-snap-type: x proximity;
}
.cross-strat-cards::-webkit-scrollbar { height: 6px; }
.cross-strat-cards::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; }
.cross-strat-cards::-webkit-scrollbar-track { background: transparent; }
.cross-strat-card {
  position: relative; flex: 0 0 256px; scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px 14px 12px; border-radius: 18px; text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-left: 4px solid var(--sc, var(--c-gold));
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, border-color .2s;
}
.cross-strat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-float); }
.cross-strat-card.on {
  border-color: var(--c-gold);
  border-left-color: var(--c-gold);
  background: linear-gradient(135deg, rgba(247,169,37,.07), transparent 60%), var(--bg-card);
  box-shadow: var(--shadow-pop);
}
.cross-strat-card .sc-top { gap: 10px; }
.cross-strat-card .avatar { width: 42px; height: 42px; }
.cross-strat-card .sc-name { font-size: 14.5px; }
.cross-strat-check {
  font-style: normal; font-weight: 900; font-size: 12px; color: #fff; flex: none;
  width: 22px; height: 22px; border-radius: 50%; background: var(--grad-brand);
  display: grid; place-items: center; box-shadow: var(--shadow-pop);
}
.cross-strat-card .sc-tags { margin-top: 2px; }
.cross-strat-card .sc-desc {
  margin: 0; font-size: 12.5px; line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.cross-strat-card .sc-bt-stats { grid-template-columns: repeat(3, 1fr); margin: 0; }
.cross-strat-card .sc-bt-stat b { font-size: 13.5px; }
.cross-strat-detail {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  border: none; background: none; padding: 0; cursor: pointer;
  font-size: 11.5px; font-weight: 800; color: var(--c-gold);
  transition: opacity .15s;
}
.cross-strat-detail:hover { opacity: .8; }
.cross-strat-detail svg { width: 13px; height: 13px; }
.cross-strat-detail .cdd-arrow { font-style: normal; transition: transform .25s; }
.cross-strat-card.expanded .cdd-arrow { transform: rotate(180deg); }
.cross-strat-expand {
  padding-top: 10px; border-top: 1px dashed var(--line-soft);
}
.cross-strat-expand .sc-expand-label { font-size: 12px; margin-bottom: 6px; }
.cross-strat-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.cross-scroll-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card); border: 1px solid var(--line-strong);
  color: var(--ink-2); cursor: pointer; font-size: 16px; line-height: 1;
  transition: border-color .15s, color .15s; box-shadow: var(--shadow-pop);
}
.cross-scroll-btn:hover { border-color: var(--c-gold); color: var(--c-gold); }
.cross-scroll-btn.prev { left: -8px; }
.cross-scroll-btn.next { right: -8px; }
.cross-step-hint {
  display: block; margin-top: 5px; font-size: 10px; font-weight: 600;
  color: var(--ink-4, #777); line-height: 1.5;
}

/* ============================================================
   交叉排行 — 板块分页 + 全量面板
   ============================================================ */
.cross-sector-chips-box { min-width: 0; }
.cross-sector-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cross-sector-actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.cross-page-ind { font-size: 11px; font-weight: 600; color: var(--ink-3); font-family: var(--font-num); }
.cross-batch-btn {
  padding: 4px 13px; border-radius: 999px; font-size: 12px; font-weight: 700;
  border: 1.5px solid var(--line-soft); background: var(--bg-soft); color: var(--ink-2);
  cursor: pointer; transition: border-color .15s, color .15s;
}
.cross-batch-btn:hover { border-color: var(--c-gold); color: var(--c-gold); }
.cross-batch-btn.primary { border-color: rgba(247,169,37,.4); color: var(--c-gold); background: rgba(247,169,37,.06); }
.cross-batch-btn.primary:hover { border-color: var(--c-gold); }

.cross-modal-overlay {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(8, 10, 14, .55); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.cross-modal {
  width: min(560px, 100%); max-height: 72vh;
  display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--line-strong);
  border-radius: var(--r-lg); overflow: hidden;
  animation: rise .2s ease both;
}
.cross-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 16px 10px;
}
.cross-modal-head b { font-size: 15px; font-weight: 800; color: var(--ink-1); }
.cross-modal-count { font-size: 11px; font-weight: 600; color: var(--ink-3); margin-left: 6px; font-family: var(--font-num); }
.cross-modal-close {
  width: 26px; height: 26px; border-radius: 50%; border: none;
  background: var(--bg-soft); color: var(--ink-3); cursor: pointer;
  font-size: 12px; line-height: 1; transition: background .15s, color .15s;
}
.cross-modal-close:hover { background: var(--c-coral, #FF5D73); color: #fff; }
.cross-modal-search {
  margin: 0 16px 10px; padding: 9px 13px; border-radius: 10px;
  border: 1.5px solid var(--line-soft); background: var(--bg-soft);
  font-size: 13px; color: var(--ink-1); outline: none;
}
.cross-modal-search:focus { border-color: var(--c-gold); }
.cross-modal-list {
  flex: 1; overflow-y: auto; padding: 2px 10px 14px;
  display: flex; flex-direction: column; gap: 3px;
}
.cross-modal-list::-webkit-scrollbar { width: 6px; }
.cross-modal-list::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; }
.cross-modal-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-radius: 10px; border: none; background: none;
  cursor: pointer; text-align: left; transition: background .12s;
}
.cross-modal-row:hover { background: var(--bg-soft); }
.cross-modal-row.on { background: rgba(247,169,37,.1); }
.cross-modal-name { font-size: 13px; font-weight: 700; color: var(--ink-1); }
.cross-modal-meta { display: flex; align-items: center; gap: 6px; flex: none; }
.cross-modal-meta .cross-cnt { font-size: 11px; }
.cross-modal-meta .cross-temp { font-size: 11px; }
