/* 短线战法回测页 */

.hb-pagebar {
  margin: 14px 22px 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 11.5px; color: #6f7b8d;
}
.hb-back {
  padding: 6px 12px; border-radius: 8px; border: 1px solid #2b4a72;
  background: #132238; color: #9fcbff; font-size: 12px; cursor: pointer;
}
.hb-back:hover { background: #1a3150; color: #fff; }

.hb-intro {
  margin: 14px 22px 0; padding: 12px 16px;
  background: rgba(74,140,255,.06); border: 1px solid rgba(74,140,255,.22);
  border-radius: 10px; font-size: 12.5px; line-height: 1.85; color: #9fb0c6;
}
.hb-intro b { color: #8fb6ff; }
.hb-help > summary { cursor: pointer; color: #8fb6ff; }
.hb-help > summary:hover { color: #c3d9ff; }
.hb-help[open] > summary { margin-bottom: 8px; }

.hb-status {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px; margin: 12px 22px 0;
}
.hb-stat { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 10px 13px; }
.hb-stat .k { font-size: 11px; color: var(--muted); }
.hb-stat .v { font-size: 18px; font-weight: 800; margin-top: 3px; font-variant-numeric: tabular-nums; }
.hb-stat .s { font-size: 10.5px; color: #5f6a79; margin-top: 2px; }
.hb-warn { margin: 10px 22px 0; padding: 10px 14px; border-radius: 9px; font-size: 12.5px; line-height: 1.8;
  background: rgba(240,178,58,.09); border: 1px solid rgba(240,178,58,.28); color: #e8c46a; }
.hb-warn b { color: #ffd98a; }

.hb-run {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin: 12px 22px 0; padding: 12px 16px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
}
.hb-run label { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.hb-run select {
  padding: 7px 9px; border-radius: 7px; border: 1px solid var(--border);
  background: #0d121a; color: var(--text); outline: none; font-size: 12.5px;
}
.hb-chips { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.hb-filter-help { font-size: 11.5px; color: #6f7b8d; }
.hb-chip-group {
  display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap;
  padding: 3px 7px; border-radius: 8px; background: #0d131c; border: 1px solid #1c2531;
}
.hb-chip-group > b { font-size: 10.5px; color: #748195; font-weight: 600; white-space: nowrap; }
.hb-chip {
  padding: 4px 10px; border-radius: 7px; border: 1px solid var(--border);
  background: #101721; color: #93a1b3; font-size: 12px; cursor: pointer;
}
.hb-chip.on { background: #23304a; border-color: #2f4166; color: #8fb6ff; font-weight: 600; }
.hb-chip.off { opacity: .68; }
.hb-chip-all { border-style: dashed; }
.hb-chip em {
  font-style: normal; font-size: 9.5px; color: #7f8b9c;
  background: #1b2430; border-radius: 4px; padding: 0 4px; margin-left: 5px;
}
.hb-progress { font-size: 12px; color: var(--muted); }

.hb-calendar {
  margin: 12px 22px 0; padding: 13px 15px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
}
.hb-cal-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.hb-cal-title { font-size: 14px; font-weight: 700; color: #dce7f5; }
.hb-cal-sub { font-size: 11.5px; color: #748195; }
.hb-cal-toolbar { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 10px 0 8px; }
.hb-cal-toolbar button {
  padding: 5px 10px; border-radius: 7px; border: 1px solid #27384f;
  background: #0f1825; color: #9fb0c6; font-size: 11.5px; cursor: pointer;
}
.hb-cal-toolbar button:hover { border-color: #3b5b85; color: #dce7f5; }
.hb-cal-toolbar button:disabled { opacity: .35; cursor: default; border-color: #202a38; color: #556174; }
.hb-cal-toolbar b { min-width: 110px; text-align: center; font-size: 13px; color: #cfe0f4; }
.hb-cal-week, .hb-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.hb-cal-week { margin-bottom: 6px; text-align: center; font-size: 10.5px; color: #64748b; }
.hb-cal-cell {
  min-height: 78px; padding: 6px 7px; border-radius: 8px; border: 1px solid #1c2735;
  background: #0e151f; color: #6f7b8d; font-size: 10.5px; line-height: 1.55;
}
.hb-cal-cell.empty { background: transparent; border-color: transparent; }
.hb-cal-cell.has { cursor: pointer; border-color: #2b3b50; }
.hb-cal-cell.has:hover { background: #142032; border-color: #3b5b85; }
.hb-cal-cell.good { border-left: 3px solid #42d98c; }
.hb-cal-cell.bad { border-left: 3px solid #ff6f61; }
.hb-cal-cell.pending { border-left: 3px solid #e8c46a; }
.hb-cal-cell .d { display: block; font-size: 12px; font-weight: 700; color: #c5d1df; }
.hb-cal-cell .v { display: block; color: #dce7f5; }
.hb-cal-cell .n { display: block; color: #64748b; }
.hb-cal-detail { margin-top: 10px; padding-top: 10px; border-top: 1px solid #202a38; }
.hb-cal-board { padding: 10px 11px; margin-top: 8px; border-radius: 9px; background: #0e151f; border: 1px solid #1d2938; }
.hb-cal-board:first-child { margin-top: 0; }
.hb-cal-board-head { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.hb-cal-board-head b { font-size: 12.5px; color: #cfdceb; }
.hb-cal-board-head span { font-size: 10.5px; color: #758398; }
.hb-cal-picks { margin-top: 7px; overflow-x: auto; }
.hb-cal-picks table { min-width: 760px; font-size: 11px; }
.hb-cal-picks th, .hb-cal-picks td { padding: 5px 7px; border-bottom: 1px solid #1a2330; white-space: nowrap; text-align: left; }
.hb-cal-picks th { color: #66748a; font-weight: 600; }

.hb-main { margin: 12px 22px 0; display: grid; gap: 12px; }
.hb-empty { color: var(--muted); font-size: 13px; padding: 18px 2px; }
.hb-card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.hb-card-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.hb-owner { font-size: 15px; font-weight: 800; }
.hb-title { font-size: 12.5px; color: #8fb6ff; }
.hb-verdict { margin-left: auto; font-size: 12.5px; font-weight: 700; }
.hb-table { width: 100%; border-collapse: collapse; font-size: 12.5px; white-space: nowrap; }
.hb-table th {
  text-align: left; font-size: 11px; color: #66748a; font-weight: 600;
  padding: 6px 8px; border-bottom: 1px solid var(--border);
}
.hb-table td { padding: 7px 8px; border-bottom: 1px dashed #1e2733; }
.hb-table tr:last-child td { border-bottom: none; }
.hb-table .num { text-align: left; font-variant-numeric: tabular-nums; }
.hb-table tr.base td { color: #93a1b3; }
.hb-table tr.gA td:first-child { color: #42d98c; }
.hb-table tr.gB td:first-child { color: #e8c46a; }
.hb-table tr.gC td:first-child { color: #7b8794; }
.hb-note { font-size: 11.5px; color: #66748a; line-height: 1.75; margin-top: 8px; }
.hb-note-wrap { margin-top: 8px; padding-top: 7px; border-top: 1px dashed #1e2733; }
.hb-note-wrap > summary { cursor: pointer; font-size: 11.5px; color: #8fb6ff; }
.hb-note-wrap .hb-note { margin-top: 5px; }

@media (max-width: 900px) {
  .hb-pagebar, .hb-intro, .hb-status, .hb-warn, .hb-run, .hb-calendar, .hb-main { margin-left: 12px; margin-right: 12px; }
  .hb-run label { flex: 1 1 100%; flex-wrap: wrap; }
  #idChips { flex: 1 1 100%; }
  .hb-table { display: block; overflow-x: auto; }
  .hb-chip-group { flex: 1 1 100%; }
  .hb-cal-week { display: none; }
  .hb-cal-grid { grid-template-columns: 1fr; gap: 7px; }
  .hb-cal-cell.empty { display: none; }
  .hb-cal-cell {
    min-height: 0; display: grid; grid-template-columns: 54px minmax(0, 1fr);
    gap: 3px 9px; align-items: start; padding: 9px 10px; font-size: 10.5px;
  }
  .hb-cal-cell .d { grid-row: 1 / 4; font-size: 12px; }
}
