/* 短线战法页面样式（复用 style.css 的基础变量与组件） */

.hm-date { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; flex-wrap: wrap; }
.hm-date label { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.hm-date .tab, .hm-date .btn-primary { flex: 0 0 auto; white-space: nowrap; }
.hm-date input[type="date"] {
  flex: 0 0 auto; min-width: 136px;
  padding: 7px 10px; border-radius: 8px; border: 1px solid var(--border);
  background: #0d121a; color: var(--text); outline: none; font-size: 13px;
  color-scheme: dark;
}
/* ---------------- 情绪面板 ---------------- */
.hm-emotion { padding: 14px 22px 0; }
.hm-loading, .hm-empty { color: var(--muted); font-size: 13px; padding: 26px 4px; }

/* 新方向雷达：只展示方向结构，不直接给买点 */
.hm-direction {
  margin: 14px 22px 0; background: var(--panel); border: 1px solid #2b3a50;
  border-radius: 12px; padding: 13px 16px;
}
.hm-direction-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.hm-direction-title { font-size: 14px; font-weight: 700; color: #8fb6ff; }
.hm-direction-sub { flex: 1; min-width: 0; font-size: 11.5px; color: var(--muted); }
.direction-summary {
  margin: 9px 0; padding: 9px 11px; border-radius: 8px;
  background: rgba(74,140,255,.08); border: 1px solid rgba(74,140,255,.22);
  color: #c7d7ed; font-size: 12.5px; line-height: 1.8;
}
.direction-warning {
  margin: 0 0 9px; padding: 7px 10px; border-radius: 8px;
  background: rgba(240,178,58,.07); border: 1px solid rgba(240,178,58,.24);
  color: #e8c46a; font-size: 11.5px; line-height: 1.8;
}
.direction-table { table-layout: fixed; width: 100%; min-width: 1180px; }
.direction-table .col-direction { width: 9%; }
.direction-table .col-status { width: 5%; }
.direction-table .col-delta { width: 6%; }
.direction-table .col-first { width: 5%; }
.direction-table .col-relay { width: 5%; }
.direction-table .col-seal { width: 7%; }
.direction-table .col-leaders { width: 29%; }
.direction-table .col-follow { width: 25%; }
.direction-table .col-evidence { width: 9%; }
.direction-name { color: #eaf0f7; }
.direction-status {
  display: inline-block; padding: 2px 7px; border-radius: 6px;
  font-size: 10.5px; font-weight: 700; white-space: nowrap;
}
.direction-status.start { color: #ff8b80; background: rgba(240,69,58,.14); border: 1px solid rgba(240,69,58,.3); }
.direction-status.relay { color: #e8c46a; background: rgba(240,178,58,.12); border: 1px solid rgba(240,178,58,.28); }
.direction-status.div { color: #b8a6ff; background: rgba(184,166,255,.12); border: 1px solid rgba(184,166,255,.27); }
.direction-status.fade { color: #42d98c; background: rgba(18,196,107,.1); border: 1px solid rgba(18,196,107,.24); }
.direction-status.watch { color: #8a94a4; background: #18212d; border: 1px solid #293545; }
.direction-stock { white-space: nowrap; margin-right: 7px; }
.direction-role { display: flex; align-items: baseline; gap: 6px; margin-top: 3px; }
.direction-role-tag {
  flex: 0 0 auto; padding: 1px 5px; border-radius: 5px;
  color: #8fb6ff; background: rgba(74,140,255,.12); border: 1px solid rgba(74,140,255,.25);
  font-size: 10px; font-weight: 700;
}
.direction-role-note { color: #718096; font-size: 10px; line-height: 1.5; margin: 0 0 3px 38px; }
.direction-follow { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-bottom: 3px; }
.direction-follow-note { color: #718096; font-size: 10px; white-space: nowrap; }
.direction-evidence { color: #8996a8; font-size: 11px; line-height: 1.7; }
.direction-note { margin-top: 8px; font-size: 11px; color: #718096; line-height: 1.7; }
@media (max-width: 900px) { .hm-direction { margin-left: 12px; margin-right: 12px; } }

/* ---------------- 今日结论（买哪些） ---------------- */
.hm-stale {
  margin: 14px 22px 0; padding: 10px 14px; border-radius: 10px;
  background: rgba(240,178,58,.08); border: 1px solid rgba(240,178,58,.3);
  color: #e8c46a; font-size: 12.5px; line-height: 1.8;
}
.hm-stale b { color: #ffd98a; }
@media (max-width: 900px) { .hm-stale { margin-left: 12px; margin-right: 12px; } }
.hm-concl {
  margin: 14px 22px 0; background: var(--panel); border: 1px solid rgba(240,69,58,.28);
  border-radius: 12px; padding: 14px 16px;
}
.hm-concl-head { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.hm-concl-title { font-size: 14px; font-weight: 700; color: #ff8b80; }
.hm-concl-sub {
  flex: 1 0 100%; order: 5; width: 100%; min-width: 0; white-space: normal;
  overflow-wrap: anywhere; font-size: 12px; line-height: 1.6; color: var(--muted);
}
.hm-concl-head .coll-btn { flex: 0 0 auto; }
.concl-text { margin-top: 9px; font-size: 12.5px; line-height: 1.85; color: #c3cddb; }
.concl-summary { margin-top: 8px; font-size: 15px; font-weight: 700; line-height: 1.6; color: #eef4ff; }
.concl-exec-line, .concl-market {
  margin-top: 8px; padding: 8px 11px; border-radius: 8px; font-size: 11.5px; line-height: 1.65;
  background: #111721; border: 1px solid #253244; color: #93a1b3;
}
.concl-exec-line b, .concl-market b { color: #ffd28a; margin-left: 6px; }
.concl-help { margin-top: 8px; font-size: 11.5px; color: #7f8b9c; }
.concl-help > summary { cursor: pointer; color: #8fb6ff; }
.concl-help[open] > summary { margin-bottom: 6px; }
.concl-help p { margin: 4px 0; line-height: 1.7; }
.concl-table { margin-top: 10px; }
/*
 * 结论表的列宽固定住：之前是自动宽度，浏览器会把「综合分 / 买入区间 / 止损 / 目标」
 * 挤到 55~116px，而单元格内容比格子宽 → 文字从格子左边溢出，看着像没左对齐。
 * 用 table-layout: fixed + 逐列宽度，内容就从每列左边缘开始排。
 */
.concl-table { table-layout: fixed; }
.concl-table th:nth-child(1) { width: 34px; }
.concl-table th:nth-child(2) { width: 150px; }
.concl-table th:nth-child(3) { width: 300px; }
.concl-table th:nth-child(4) { width: 72px; }
.concl-table th:nth-child(5) { width: 120px; }
.concl-table th:nth-child(6) { width: 62px; }
.concl-table th:nth-child(7) { width: 62px; }
.concl-table th:nth-child(8) { width: 200px; }
.concl-table th:nth-child(9) { width: 280px; }
.concl-table td { overflow-wrap: anywhere; }
.concl-table th { background: #171f2b; }
.concl-table td { vertical-align: middle; }
.concl-today-table th:nth-child(1) { width: 34px; }
.concl-today-table th:nth-child(2) { width: 170px; }
.concl-today-table th:nth-child(3) { width: 330px; }
.concl-today-table th:nth-child(4) { width: 72px; }
.concl-today-table th:nth-child(5) { width: 210px; }
.concl-today-table th:nth-child(6) { width: 260px; }
.concl-today-table th:nth-child(7) { width: 190px; }
.concl-name { white-space: nowrap; }
.concl-name .stock-link { font-weight: 700; }
.concl-hits { margin-top: 4px; display: flex; gap: 4px; flex-wrap: wrap; }
.concl-hit {
  font-size: 10.5px; padding: 1px 6px; border-radius: 5px;
  background: rgba(74,140,255,.12); color: #8fb6ff; border: 1px solid rgba(74,140,255,.26);
}
/* 「选股逻辑」列：战法名 + 它自己给出的阶段说明 */
.concl-from { white-space: normal; min-width: 200px; max-width: 280px; }
.concl-from .from-item { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.concl-from .from-item:last-child { margin-bottom: 0; }
.concl-from .concl-hit { flex: 0 0 auto; white-space: nowrap; }
.concl-from .from-stage { font-size: 11px; color: #8a94a4; line-height: 1.6; }
.concl-rank { color: #42d98c; font-weight: 700; }
.from-risk { color: #ff9d92; font-size: 11px; line-height: 1.65; margin-top: 3px; }
.from-sector { color: #e8c46a; font-size: 11px; line-height: 1.65; margin-top: 3px; }
.from-up { color: #42d98c; font-size: 11px; line-height: 1.65; margin-top: 3px; }
.from-demoted { color: #e0a49d; font-size: 11px; line-height: 1.65; margin-top: 3px; }
.concl-zone { color: #e8c46a; font-weight: 700; white-space: nowrap; }
/* 证据提示：名单最上面的「先看这个」条，不能藏在小字里 */
.concl-caveat {
  margin: 8px 0 4px; padding: 9px 12px; border-radius: 8px;
  font-size: 12px; line-height: 1.85;
  background: rgba(240,69,58,.07); border: 1px solid rgba(240,69,58,.28); color: #e0a49d;
}
/* 资金面（龙虎榜）：没有记录也要明说，不留空列 */
.concl-flow { white-space: normal; min-width: 130px; max-width: 200px; }
.concl-flow .flow-hit { color: #ff8b80; font-weight: 600; font-size: 11.5px; }
.concl-flow .flow-sub { color: #7f8b9c; font-size: 10.5px; line-height: 1.6; margin-top: 2px; }
.concl-flow .flow-none { color: #5f6a79; font-size: 11px; }
.concl-flow .flow-hist { color: #7f8b9c; font-size: 10.5px; line-height: 1.6; margin-top: 3px; }
.concl-flow .flow-hist b.g { color: #42d98c; }
.concl-flow .flow-hist b.r { color: #ff8b80; }
/* 主力资金（新浪独立源）：只展示、不进评分，用青色区分于龙虎榜的红色 */
.concl-flow .flow-main { font-size: 11.5px; font-weight: 600; margin-top: 3px; }
.concl-flow .flow-main.in { color: #4cc3e0; }
.concl-flow .flow-main.out { color: #c9a227; }

/* 自建情绪因子：只做风险提示，和别处的色块保持同一套视觉规则（等高、文字居中、不留大片空白） */
.hm-emo-factor {
  margin: 14px 22px 0; background: var(--panel);
  border: 1px solid var(--border); border-radius: 12px; padding: 13px 16px;
}
.hm-emo-factor .ef-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hm-emo-factor .ef-title { font-size: 13.5px; font-weight: 700; }
.hm-emo-factor .ef-mood { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 20px; }
.hm-emo-factor .ef-mood.hot { background: #3a1f1c; color: #ff8b80; }
.hm-emo-factor .ef-mood.cold { background: #14302a; color: #42d98c; }
.hm-emo-factor .ef-mood.mid { background: #1d2530; color: #93a1b3; }
.hm-emo-factor .ef-sub { font-size: 11.5px; color: var(--muted); flex: 1; min-width: 0; }
.hm-emo-factor .ef-table { width: 100%; border-collapse: collapse; font-size: 11.5px; margin-top: 8px; }
.hm-emo-factor .ef-table th { color: var(--muted); font-weight: 600; text-align: left; padding: 5px 8px; border-bottom: 1px solid var(--border); }
.hm-emo-factor .ef-table td { padding: 5px 8px; border-bottom: 1px solid #1b2129; vertical-align: middle; text-align: left; }
.hm-emo-factor .ef-note { margin-top: 9px; font-size: 11.5px; line-height: 1.7; color: #93a1b3; }

/* 均线斜率标注：刚上拐（加分项）/ 下拐（走坏）——都带证据说明 */
.from-slope-up { margin-top: 3px; font-size: 11px; color: #4cc3e0; line-height: 1.6; }
.from-slope-down { margin-top: 3px; font-size: 11px; color: #c9a227; line-height: 1.6; }
/*
 * 「用实时价刷新」写进来的盘中快照：只占买入区间那一格里的小字，
 * 不跟收盘后的正式结果混排；每次带「盘中快照 时间 · 收盘会变」的标记。
 */
.concl-live { margin-top: 5px; font-size: 11px; font-weight: 400; line-height: 1.6; white-space: normal; }
.concl-live:empty { display: none; }
.concl-live .lv-price { font-variant-numeric: tabular-nums; }
.concl-live .lv-price.up { color: #f0453a; }
.concl-live .lv-price.down { color: #12c46b; }
.concl-live .lv-verdict {
  margin-left: 5px; padding: 0 6px; border-radius: 5px; font-size: 10.5px; white-space: nowrap;
}
.concl-live .lv-in { color: #42d98c; background: rgba(66,217,140,.12); }
.concl-live .lv-low { color: #8fb6ff; background: rgba(74,140,255,.12); }
.concl-live .lv-high { color: #ff8b80; background: rgba(240,69,58,.12); }
.concl-live .lv-time { margin-top: 2px; font-size: 10px; color: #6b7686; }
.coll-btn[disabled] { opacity: .6; cursor: default; }
.concl-why { white-space: normal; min-width: 200px; max-width: 300px; font-size: 11.5px; color: #9fb0c6; line-height: 1.7; }
.concl-why .concl-sub2 { color: #7f8b9c; margin-top: 3px; }
.concl-rule {
  margin-top: 9px; padding: 8px 11px; border-radius: 8px; font-size: 11.5px; line-height: 1.8;
  background: rgba(74,140,255,.06); border: 1px solid rgba(74,140,255,.2); color: #93a1b3;
}
.concl-tier {
  margin-top: 13px; font-size: 12.5px; color: #c3cddb;
  /* 两档标题左边缘对齐：标题粗体不换行，说明浅色小字跟在后面、超长自动换到下一行 */
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.concl-tier .tier-title { font-weight: 700; white-space: nowrap; }
.concl-tier .tier-sub { font-size: 11.5px; font-weight: 400; color: #7f8b9c; line-height: 1.7; }
.concl-tier:first-of-type { margin-top: 9px; }
.concl-blocked {
  margin-top: 9px; padding: 8px 11px; border-radius: 8px; font-size: 11px; line-height: 1.8;
  background: rgba(240,69,58,.06); border: 1px solid rgba(240,69,58,.22); color: #c98b85;
}
.concl-blocked b { color: #ff8b80; }
@media (max-width: 900px) {
  .hm-concl { margin-left: 12px; margin-right: 12px; }
  .hm-concl-title { flex: 1 1 100%; }
  .hm-concl-head .coll-btn { margin-left: 0; }
}

/*
 * 情绪面板：左右两张卡强制等高。
 * 原来 align-items: start，左边「温度」卡比右边「连板梯队」卡矮一截，排版不齐。
 */
.emo-wrap { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 14px; align-items: stretch; }
.emo-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; display: flex; flex-direction: column; min-width: 0;
}
/* 让指标格子吃掉多出来的高度并垂直居中，卡片被撑高时不会只留底部空白 */
.emo-card .emo-stats { flex: 1 1 auto; align-content: center; }

.emo-temp { display: flex; align-items: center; gap: 16px; }
.emo-num { font-size: 46px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.emo-phase { font-size: 13.5px; font-weight: 700; margin-bottom: 4px; }
.emo-phase-sub { font-size: 11.5px; color: var(--muted); }

.emo-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.emo-stat { background: #111721; border: 1px solid #1e2733; border-radius: 8px; padding: 9px 11px; text-align: center; }
.emo-stat .s-label { font-size: 11px; color: var(--muted); }
.emo-stat .s-val { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 2px; }

.ladder { display: flex; gap: 8px; align-items: flex-end; margin-top: 6px; }
.ladder-col { flex: 1; text-align: center; }
.ladder-bar {
  background: linear-gradient(180deg, #f0453a, #8a2b26);
  border-radius: 4px 4px 0 0; margin: 0 auto 5px; min-height: 4px;
  width: 30px; transition: height .4s;
}
.ladder-col .l-b { font-size: 12px; font-weight: 700; }
.ladder-col .l-n { font-size: 11px; color: var(--muted); margin-top: 3px; }

.ind-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ind-chip {
  font-size: 11.5px; padding: 3px 9px; border-radius: 20px;
  background: rgba(240,69,58,.13); color: #ff8b80; border: 1px solid rgba(240,69,58,.25);
}

/* ---------------- 策略切换 ---------------- */
.hm-nav {
  margin: 14px 22px 0; padding: 12px;
  background: linear-gradient(180deg, rgba(20,27,38,.98), rgba(15,21,30,.98));
  border: 1px solid var(--border); border-radius: 14px;
}
.hm-nav-head { display: flex; align-items: baseline; gap: 10px; padding: 0 2px 9px; }
.hm-nav-title { font-size: 13px; font-weight: 700; color: #dfe6ef; }
.hm-nav-sub { font-size: 11.5px; color: #6f7b8d; }
.hm-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.hm-tabs-primary {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px;
}
.hm-group-tab {
  min-width: 0; min-height: 62px; padding: 9px 11px; border-radius: 10px;
  border: 1px solid #232c39; background: #111721; color: #8793a4;
  display: flex; align-items: center; gap: 9px; text-align: left; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s, transform .15s;
}
.hm-group-tab:hover { border-color: #354760; background: #151e2a; color: #c9d4e2; }
.hm-group-tab.active {
  border-color: #4e7bc2; background: linear-gradient(135deg, #1b2b45, #172235);
  color: #eef4ff; box-shadow: inset 3px 0 0 #6c9cff;
}
.hm-group-tab .g-ico {
  flex: 0 0 30px; width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; background: #1a2330; font-size: 16px;
}
.hm-group-tab.active .g-ico { background: rgba(108,156,255,.18); }
.hm-group-tab .g-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hm-group-tab .g-name { font-size: 13px; font-weight: 700; white-space: nowrap; }
.hm-group-tab .g-desc {
  font-size: 10.5px; color: #748195; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.hm-group-tab.active .g-desc { color: #9db8e8; }
.hm-tabs-secondary { margin-top: 10px; padding-top: 10px; border-top: 1px solid #202936; }
.hm-tab {
  flex: 1 1 230px; max-width: 380px; padding: 9px 13px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--panel); color: var(--muted); cursor: pointer; font-size: 13px;
  display: flex; flex-direction: column; gap: 2px; align-items: flex-start;
  transition: all .12s;
}
.hm-tab:hover { border-color: #34445c; color: var(--text); }
.hm-tab.active { background: #23304a; border-color: #2f4166; color: #8fb6ff; }
.hm-tab .t-owner { font-weight: 700; font-size: 13.5px; }
.hm-tab .t-title { font-size: 11px; opacity: .75; }
.hm-tab-board { min-width: 218px; }
.hm-tab.hm-tab-off { opacity: .62; }
.hm-tab .t-badge { font-style: normal; font-weight: 600; font-size: 10px; color: #8a94a6; background: #1b2430; border-radius: 4px; padding: 1px 5px; margin-left: 5px; }
.t-badge { font-style: normal; font-weight: 600; font-size: 10px; border-radius: 4px; padding: 1px 5px; margin-left: 5px; white-space: nowrap; }
.t-badge.midday-buy { color: #ffd28a; background: #3a2f1c; }
.t-badge.midday-watch { color: #9fb0c6; background: #1d2837; }
.hm-tab-sep { width: 100%; font-size: 11px; color: #6b7585; padding: 8px 0 2px; border-top: 1px dashed #1e2733; margin-top: 6px; }
.hm-note { font-size: 11.5px; color: #8a94a6; margin-top: 8px; line-height: 1.6; }

@media (max-width: 1180px) {
  .hm-tabs-primary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hm-nav { margin-left: 12px; margin-right: 12px; }
}
@media (max-width: 700px) {
  .hm-nav { padding: 10px; }
  .hm-tabs-primary {
    display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin;
    scroll-snap-type: x proximity;
  }
  .hm-group-tab { flex: 0 0 178px; scroll-snap-align: start; }
  .hm-tabs-secondary { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
  .hm-tab { flex: 0 0 230px; max-width: none; }
}

/* ---------------- 策略结果 ---------------- */
.hm-main { padding: 14px 22px 0; }
.strat-card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.strat-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.strat-owner { font-size: 17px; font-weight: 800; }
.strat-title { font-size: 13px; color: #8fb6ff; }
.strat-slogan { font-size: 12px; color: var(--muted); font-style: italic; }
.strat-meta { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.strat-policy {
  margin: -4px 0 10px; padding: 7px 10px; border-radius: 8px;
  font-size: 11.5px; line-height: 1.6; color: #9fb0c6;
  background: #101721; border: 1px solid #253244;
}
.strat-policy.watch, .strat-policy.limited { color: #e8c46a; border-color: rgba(240,178,58,.3); background: rgba(240,178,58,.07); }
.strat-policy.paused { color: #ff8b80; border-color: rgba(240,69,58,.3); background: rgba(240,69,58,.07); }
.strat-policy.active { color: #42d98c; border-color: rgba(18,196,107,.3); background: rgba(18,196,107,.07); }
.strat-note {
  background: rgba(240,178,58,.1); border: 1px solid rgba(240,178,58,.25);
  color: #e8c46a; font-size: 12.5px; padding: 8px 12px; border-radius: 8px; margin-bottom: 12px;
  line-height: 1.6;
}

.hm-table { width: 100%; border-collapse: collapse; }
.hm-table th {
  text-align: left; font-size: 11.5px; color: #566273; font-weight: 600; white-space: nowrap;
  padding: 6px 8px; border-bottom: 1px solid var(--border); letter-spacing: .4px;
}
.hm-table td { padding: 9px 8px; border-bottom: 1px dashed #1e2733; font-size: 12.5px; vertical-align: middle; }
.hm-table tr:last-child td { border-bottom: none; }
.hm-table tr:hover td { background: #121924; }
.c-reasons { min-width: 240px; max-width: 420px; white-space: normal; }
.reason-summary {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  color: #9fb0c6; line-height: 1.65;
}
.reason-more {
  margin-top: 5px; padding: 2px 8px; border-radius: 6px;
  border: 1px solid #2b4a72; background: #132238; color: #9fcbff;
  font-size: 10.5px; cursor: pointer;
}
.reason-more:hover { background: #1a3150; color: #fff; }
.hm-reason-mask {
  position: fixed; inset: 0; z-index: 150; display: none; align-items: center; justify-content: center;
  padding: 18px; background: rgba(0,0,0,.62);
}
.hm-reason-mask.show { display: flex; }
.hm-reason-modal {
  width: min(680px, 100%); max-height: min(82vh, 760px); overflow: auto;
  border-radius: 14px; border: 1px solid #30415a; background: #111823;
  box-shadow: 0 24px 70px rgba(0,0,0,.5);
}
.hm-reason-head {
  position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 13px 16px; border-bottom: 1px solid #263244; background: #111823;
  font-size: 14px; font-weight: 700; color: #edf4ff;
}
.hm-reason-close {
  border: 0; background: transparent; color: #8a94a4; font-size: 18px; cursor: pointer;
}
.hm-reason-close:hover { color: #fff; }
.hm-reason-body { padding: 14px 16px 18px; color: #aeb9c8; font-size: 12px; line-height: 1.8; }
.hm-reason-body h4 { margin: 12px 0 6px; color: #8fb6ff; font-size: 12.5px; }
.hm-reason-body h4:first-child { margin-top: 0; }
.hm-reason-body ul { margin: 0; padding-left: 18px; }
.hm-reason-body li { margin: 3px 0; }
.hm-reason-plan {
  margin-top: 12px; padding: 9px 11px; border-radius: 8px;
  background: #0e151f; border: 1px solid #253244;
}

.c-rank { color: #566273; font-variant-numeric: tabular-nums; width: 28px; }
/* 「标的」列：内容左对齐、上下居中；里面的色块统一成等宽等高、文字居中 */
.c-target { vertical-align: middle; min-width: 138px; text-align: left; }
.c-name { font-weight: 700; white-space: nowrap; line-height: 1.5; }
.stock-link {
  color: inherit; text-decoration: none; cursor: pointer;
  border-bottom: 1px dashed rgba(74,140,255,.5); transition: color .15s, border-color .15s;
}
.stock-link:hover { color: #8fb6ff; border-bottom-color: #8fb6ff; }
.c-code { color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
/* 执行时点（2026-10-18）：同一条“买点”，今天盘中打板和明天回踩买是两回事 */
.exec-tag {
  display: inline-block; margin-top: 4px; padding: 1px 7px; border-radius: 5px;
  font-size: 10.5px; font-weight: 600; line-height: 1.6; white-space: normal;
}
.exec-tag.today_intraday { background: rgba(240,69,58,.16); color: #ff8b80; border: 1px solid rgba(240,69,58,.3); }
.exec-tag.next_day_pullback { background: rgba(18,196,107,.14); color: #42d98c; border: 1px solid rgba(18,196,107,.28); }
.exec-tag.watch { background: #1c2432; color: #7b8794; border: 1px solid #273140; }
/* 盘中打板提醒 */
.bm-item { padding: 7px 0; border-bottom: 1px dashed #1e2733; font-size: 12.5px; line-height: 1.8; }
.bm-item:last-child { border-bottom: none; }
.bm-tag { display: inline-block; padding: 0 7px; border-radius: 5px; font-size: 10.5px; font-weight: 700; margin-right: 6px; }
.bm-tag.first { background: rgba(240,178,58,.16); color: #e8c46a; }
.bm-tag.reseal { background: rgba(18,196,107,.16); color: #42d98c; }
.bm-tag.broke { background: rgba(240,69,58,.16); color: #ff8b80; }
.bm-tag.drop { background: #1c2432; color: #7b8794; }
.bm-time { float: right; color: #566273; font-size: 11px; font-variant-numeric: tabular-nums; }
.bm-note { color: #8a94a4; font-size: 11px; margin-left: 2px; }
.c-boards { white-space: nowrap; }
.board-tag {
  display: inline-block; padding: 1px 7px; border-radius: 5px; font-size: 11.5px; font-weight: 700;
  background: rgba(240,69,58,.16); color: #ff8b80;
}
.c-score { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.score-hot { color: #ff6b60; }
.score-mid { color: #e8c46a; }
.score-low { color: var(--muted); }
.c-reasons { color: #93a1b3; line-height: 1.75; font-size: 12px; }
.c-plan { color: #7f8b9c; font-size: 11.5px; margin-top: 3px; }
.c-zone { color: #12c46b; font-weight: 600; white-space: nowrap; }

/* 涨停归因（2026-10-17）：同花顺题材标签，长文本必须允许换行，别把表格撑爆 */
.zt-reason { font-size: 11px; color: #c9a227; line-height: 1.55; margin-top: 4px; white-space: normal; }
.concl-name .zt-reason { max-width: 180px; }
.c-zone.zt-reason { white-space: normal; font-weight: 500; }
.ind-chip.zt-tag { background: rgba(232,196,106,.14); color: #e8c46a; border-color: rgba(232,196,106,.28); }
.c-buy { white-space: normal; min-width: 150px; }
.buy-tag {
  display: inline-block; padding: 1px 7px; border-radius: 5px;
  font-size: 11px; font-weight: 700; white-space: nowrap;
}
.buy-tag.A { background: rgba(18,196,107,.16); color: #42d98c; }
.buy-tag.B { background: rgba(240,178,58,.15); color: #e8c46a; }
.buy-tag.C { background: #22282f; color: #7b8794; }
.buy-reason { font-size: 11px; color: #6b7686; line-height: 1.65; margin-top: 4px; }
.c-overlap {
  display: block; box-sizing: border-box; width: 100%; margin-top: 5px; padding: 3px 6px;
  border-radius: 5px; text-align: center; line-height: 1.55;
  font-size: 10.5px; color: #8fb6ff; background: rgba(74,140,255,.12);
  border: 1px solid rgba(74,140,255,.28);
}
.c-plan2 {
  margin-top: 8px; padding: 8px 10px; border-radius: 8px; line-height: 1.8;
  background: rgba(18,196,107,.07); border: 1px solid rgba(18,196,107,.22);
  color: #9fb0c6; font-size: 11.5px; white-space: normal;
}
.c-plan2 b { color: #e2e8f0; }
.c-plan2 .p-act { font-weight: 700; color: #42d98c; margin-bottom: 2px; }
.c-plan2 .p-act.no { color: #ff8b80; }
.c-plan2 .p-abort { color: #8a94a4; margin-top: 3px; }
/* 龙头低吸玩法的「阶段」标签 */
.hm-stage {
  display: block; box-sizing: border-box; width: 100%; margin-top: 5px; padding: 3px 6px;
  border-radius: 5px; font-size: 10.5px; line-height: 1.55; white-space: normal;
  text-align: center; overflow-wrap: anywhere;
}
.hm-stage.buyAggressive { background: rgba(18,196,107,.18); color: #42d98c; }
.hm-stage.buyConfirmed { background: rgba(240,69,58,.16); color: #ff8b80; }
.hm-stage.waiting { background: rgba(240,178,58,.15); color: #e8c46a; }
.hm-stage.weak { background: #1c2432; color: #7b8794; }
.hm-stage.invalid { background: rgba(240,69,58,.1); color: #b06a66; }
.hm-stage.started { background: rgba(74,140,255,.14); color: #8fb6ff; }
.hm-stage.pullback { background: rgba(74,140,255,.1); color: #7fa6e0; }
.hm-stage.signalToday { background: rgba(240,69,58,.18); color: #ff8b80; }
.hm-stage.buyAdd, .hm-stage.buyTrend { background: rgba(18,196,107,.18); color: #42d98c; }
.hm-stage.watch { background: #1c2432; color: #7b8794; }

/* 760px 以上都保持左右并排（于是也保持等高）；更窄才堆成一列 */
@media (max-width: 760px) {
  .emo-wrap { grid-template-columns: 1fr; }
  .emo-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------- 自动优化日志（短线战法） ---------------- */
.hm-rot { margin: 14px 22px 0; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.hm-rot-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.hm-rot-title { font-size: 14px; font-weight: 700; }
.hm-rot-sub { flex: 1; min-width: 0; font-size: 12px; color: var(--muted); }
.hm-rot-body { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.rot-col { background: #111721; border: 1px solid #1e2733; border-radius: 10px; padding: 10px 12px; min-width: 0; }
.rot-col h4 { margin: 0 0 8px; font-size: 12.5px; font-weight: 700; }
.rot-col.leading h4 { color: #ff8b80; }
.rot-col.weakening h4 { color: #e8c46a; }
.rot-col.lagging h4 { color: #7b8794; }
.rot-col.improving h4 { color: #42d98c; }
.rot-item { display: flex; align-items: baseline; gap: 6px; font-size: 12px; line-height: 1.9; }
.rot-item .rn { color: #c3cddb; }
.rot-item .rv { color: #66748a; font-variant-numeric: tabular-nums; font-size: 11px; margin-left: auto; }
.rot-empty { font-size: 12px; color: #5f6a79; }
.hm-rot-note { margin-top: 10px; font-size: 11.5px; color: #66748a; line-height: 1.8; }
@media (max-width: 1000px) {
  .hm-rot { margin-left: 12px; margin-right: 12px; }
  .hm-rot-body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .hm-rot-body { grid-template-columns: 1fr; }
}

.hm-auto {
  margin: 16px 22px 0; background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px;
}
.hm-auto-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; cursor: pointer; list-style: none; }
.hm-auto-head::-webkit-details-marker { display: none; }
.hm-auto-head::after { content: '展开'; color: #8fb6ff; font-size: 11px; }
.hm-auto[open] .hm-auto-head::after { content: '收起'; }
.hm-auto-title { font-size: 14px; font-weight: 700; }
.hm-auto-sub { flex: 1; min-width: 0; font-size: 12px; color: var(--muted); }
.hm-auto-body { margin-top: 12px; }
.hm-auto-step {
  display: grid; grid-template-columns: 150px minmax(0, 1fr) 70px; gap: 12px;
  align-items: baseline; padding: 8px 10px; background: #111721;
  border: 1px solid #1e2733; border-radius: 8px; font-size: 12.5px; margin-bottom: 8px;
}
.hm-auto-step .s-name { font-weight: 600; color: #e2e8f0; }
.hm-auto-step .s-detail { color: #93a1b3; line-height: 1.7; min-width: 0; word-break: break-word; }
.hm-auto-step .s-ok { text-align: right; font-size: 11.5px; }
.hm-auto-step .s-ok.yes { color: #42d98c; }
.hm-auto-step .s-ok.no { color: #ff8b80; }
.hm-auto-hist { margin-top: 6px; border-top: 1px dashed #1e2733; padding-top: 10px; }
.hm-auto-hist h4 { margin: 0 0 7px; font-size: 12px; color: #66748a; font-weight: 600; }
.hm-auto-hist table { width: 100%; border-collapse: collapse; font-size: 12px; }
.hm-auto-hist th { text-align: left; color: #66748a; font-size: 11px; font-weight: 600; padding: 5px 6px; border-bottom: 1px solid var(--border); }
.hm-auto-hist td { padding: 6px; border-bottom: 1px dashed #1e2733; color: #93a1b3; }
.hm-auto-logwrap { margin-top: 12px; }
.hm-auto-logwrap summary { cursor: pointer; font-size: 12px; color: #8fb6ff; }
.hm-auto-log {
  margin: 8px 0 0; padding: 10px 12px; max-height: 260px; overflow: auto;
  background: #0b0f16; border: 1px solid #1e2733; border-radius: 8px;
  font-size: 11.5px; line-height: 1.75; color: #93a1b3; white-space: pre-wrap; word-break: break-word;
}
@media (max-width: 900px) {
  .hm-auto { margin-left: 12px; margin-right: 12px; }
  .hm-auto-step { grid-template-columns: 1fr; gap: 4px; }
  .hm-auto-step .s-ok { text-align: left; }
}

/* 次日操作卡：默认收起，点开看这套票明天怎么动手 */
.pb { margin-top: 5px; }
.pb summary { cursor: pointer; color: #8fb6ff; font-size: 11px; list-style: none; }
.pb summary::-webkit-details-marker { display: none; }
.pb summary::before { content: "▸ "; color: #5f6a79; }
.pb[open] summary::before { content: "▾ "; }
.pb ol { margin: 6px 0 0; padding-left: 18px; }
.pb li { font-size: 11px; color: #aab6c6; line-height: 1.8; margin-bottom: 3px; }
.pb li::marker { color: #4d5867; }
