/* =============================================================================
 * v1093c · 首页任务线重排 + 精选卡片压缩（叠加层，仅作用于首页 daily-picks）
 * -----------------------------------------------------------------------------
 * 问题：首页主区 = hero(461) + home-picks 卡片网格(864) + tab-daily-picks
 *       「琍璇·今日精选」(1068)，两者展示同一批股票（601633/600741…），
 *       且「大盘定调 + Top1 最强信号」被压在页面最底部 —— 结论埋没、信息重复、
 *       总滚动 2442px。
 * 手法：#tab-daily-picks 与其 .dpv-container 设 display:contents →
 *       内部模块（大盘定调 / Top1 / 全部精选列表）直接进入 #main-content 的
 *       flex 排序，用 order 重排成任务线；零 DOM 移动，零功能风险。
 * 任务线：公告 → 数智人(问琍璇) → 今日结论(大盘定调) → 最强信号(Top1)
 *        → 精选卡片网格 → 全部精选列表
 * ========================================================================== */
#tab-daily-picks,
#tab-daily-picks .dpv-container { display: contents !important; }

#lx-guanxuan          { order: 1 !important; }
#lx-daily-hero        { order: 2 !important; }
#tab-daily-picks .dpv-review { order: 3 !important; margin: 14px 0 0 !important; }
#tab-daily-picks .dpv-top1   { order: 4 !important; margin-top: 12px !important; }
#lx-home-picks        { order: 5 !important; }
#lx-living-status     { order: 6 !important; }
#tab-daily-picks .dpv-header { order: 7 !important; margin-top: 18px !important; }
#tab-daily-picks .dpv-sec    { order: 8 !important; }
#tab-daily-picks .dpv-list   { order: 9 !important; }
/* v1344 CLS：休市条 order 归位 —— 默认 order:0 会插到 order:1 的 #lx-guanxuan 之前，
   首屏整体下顶 57px（CLS 0.129）；归位 6 → 首页落 living-status 附近（视口外），
   精选页仍在 .dpv-header(7) 之前。 */
#tab-daily-picks .dpv-closed { order: 6 !important; margin: 14px 0 0 !important; }


/* ---- 大盘定调：结论条（任务线第 3 位，必须醒目）---- */
#tab-daily-picks .dpv-review {
  padding: 10px 14px !important;
  font-size: 13.5px !important;
  line-height: 1.5 !important;
  border-radius: 12px !important;
  border: 1px solid rgba(140, 170, 215, 0.14) !important;
  background: rgba(255, 255, 255, 0.03) !important;
}
/* ---- Top1 最强信号卡：紧凑化 ---- */
#tab-daily-picks .dpv-top1 { padding: 12px 14px !important; }
#tab-daily-picks .dpv-top1-metrics { gap: 8px !important; }
#tab-daily-picks .dpv-metric { padding: 6px 8px !important; min-height: 0 !important; }
#tab-daily-picks .dpv-metric-label { font-size: 11px !important; }

/* ---- 精选卡片压缩：360px → ~215px（三行 metrics 由 61px/行 压到紧凑单行）---- */
#lx-home-picks .lhp-grid { gap: 10px !important; }
#lx-home-picks .lhp-card { padding: 11px 12px !important; border-radius: 14px !important; }
#lx-home-picks .lhp-lines { gap: 2px !important; margin-top: 6px !important; }
#lx-home-picks .lhp-line {
  min-height: 0 !important;
  padding: 3px 0 !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  align-items: baseline !important;
  gap: 6px !important;
}
#lx-home-picks .lhp-lbl { font-size: 11.5px !important; min-width: 30px !important; }
#lx-home-picks .lhp-val { font-size: 13px !important; }
#lx-home-picks .lhp-plus, #lx-home-picks .lhp-minus { font-size: 11.5px !important; }
#lx-home-picks .lhp-pos { font-size: 12px !important; }
#lx-home-picks .lhp-weak { font-size: 11px !important; }
#lx-home-picks .lhp-reason { margin-top: 6px !important; font-size: 11.5px !important; }
#lx-home-picks .lhp-card-top { margin-bottom: 2px !important; }

/* ---- v1093d 卡片指标行压缩：3 层换行(67px/行) → 单行(21px/行) ----
 * 实测：.lhp-line 在 203px 卡宽内 flex 换行成 3 层 → 每行 67px、卡 362px。
 * nowrap + 隐藏次要标签「弱市保护」→ 行 21px、卡 ~217px，网格 734 → ~430。 */
#lx-home-picks .lhp-line {
  flex-wrap: nowrap !important;
  align-items: baseline !important;
  overflow: hidden !important;
}
#lx-home-picks .lhp-weak { display: none !important; }
#lx-home-picks .lhp-plus,
#lx-home-picks .lhp-minus,
#lx-home-picks .lhp-lbl,
#lx-home-picks .lhp-pos { white-space: nowrap !important; }
#lx-home-picks .lhp-lbl { flex: 0 0 auto !important; }
#lx-home-picks .lhp-pos { margin-left: auto !important; }

/* ---- v1093d 卡片指标行压缩：3 层换行(67px/行) → 单行(21px/行) ----
 * 实测：.lhp-line 在 203px 卡宽内 flex 换行成 3 层 → 每行 67px、卡 362px。
 * nowrap + 隐藏次要标签「弱市保护」→ 行 21px、卡 ~217px，网格 734 → ~430。 */
#lx-home-picks .lhp-line {
  flex-wrap: nowrap !important;
  align-items: baseline !important;
  overflow: hidden !important;
}
#lx-home-picks .lhp-weak { display: none !important; }
#lx-home-picks .lhp-plus,
#lx-home-picks .lhp-minus,
#lx-home-picks .lhp-lbl,
#lx-home-picks .lhp-pos { white-space: nowrap !important; }
#lx-home-picks .lhp-lbl { flex: 0 0 auto !important; }
#lx-home-picks .lhp-pos { margin-left: auto !important; }

/* ---- v1093e 指标行方向根治：源为 flex-direction:column（三 span 垂直堆叠 67px）----
 * 探针实证：lhp-lbl/val/plus 三块在 column 下 top=3/25/48 → 行高 67px。
 * 改 row + space-between → 行 21px；卡 337 → ~217，网格 685 → ~430。 */
#lx-home-picks .lhp-line {
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: baseline !important;
  gap: 4px !important;
}

/* ---- v1093e 指标行方向根治：源为 flex-direction:column（三 span 垂直堆叠 67px）----
 * 探针实证：lhp-lbl/val/plus 三块在 column 下 top=3/25/48 → 行高 67px。
 * 改 row + space-between → 行 21px；卡 337 → ~217，网格 685 → ~430。 */
#lx-home-picks .lhp-line {
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: baseline !important;
  gap: 4px !important;
}
