/* AI 热门板块页面专用样式（通用摘要卡片/图表容器复用 paper_trading.css / style.css） */

.hs-rule-hint {
  font-size: 12px;
  color: var(--txt2);
  margin: -4px 0 12px;
  line-height: 1.6;
}

.hs-updated-hint {
  font-size: 11px;
  color: var(--txt2);
  font-weight: 400;
  margin-left: 8px;
}

.hs-two-col {
  display: grid;
  /* min(420px,100%):窄屏时列宽跟随容器,不把 panel 撑到 420px 溢出 */
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 16px;
}
.hs-two-col > .panel { margin: 0; }

/* 数据方法论折叠区(板块同质化 / 提示词版本对比)：默认收起，
   只给想深挖的人看，不占主视图的认知负担 */
.hs-methodology { padding: 14px 24px; }
.hs-methodology-summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--txt2);
  list-style: none;
}
.hs-methodology-summary::-webkit-details-marker { display: none; }
.hs-methodology[open] .hs-methodology-summary { color: var(--txt); margin-bottom: 14px; }
.hs-methodology-body { margin-top: 14px; }
.hs-methodology-body .panel-title { font-size: 14px; }

.sector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.sector-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--bg2);
}

.sector-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}

.sector-rank {
  display: inline-block;
  width: 20px; height: 20px;
  line-height: 20px;
  text-align: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  margin-right: 6px;
}

.sector-name {
  font-size: 15px;
  font-weight: 700;
}

.sector-reason {
  font-size: 12px;
  color: var(--txt2);
  margin-bottom: 10px;
  line-height: 1.6;
}

.stock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px dashed var(--border);
}

.stock-row:first-of-type { border-top: none; }

.stock-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.stock-code-name { font-weight: 600; font-size: 14px; }
.stock-code-name .code { color: var(--txt2); font-weight: 400; font-size: 12px; margin-left: 6px; }
.stock-reason { font-size: 12px; color: var(--txt2); line-height: 1.5; }

.stock-perf {
  text-align: right;
  white-space: nowrap;
  padding-left: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-end;
}
.stock-pct { font-weight: 700; font-size: 15px; }
.stock-pct.pos { color: var(--up); }
.stock-pct.neg { color: var(--down); }
.stock-price-line { font-size: 12px; color: var(--txt2); }

.settle-badge {
  display: inline-block;
  font-size: 11px;
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: middle;
}
.settle-badge.pending { background: rgba(87,96,106,.1); color: var(--txt2); }
.settle-badge.win { background: rgba(207,34,46,.1); color: var(--up); }
.settle-badge.lose { background: rgba(26,127,55,.1); color: var(--down); }
.settle-badge.na { background: rgba(87,96,106,.08); color: var(--txt2); }

table.hs-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.hs-tbl th {
  background: var(--bg2);
  padding: 7px 12px;
  text-align: center;
  color: var(--txt2);
  border: 1px solid var(--border);
  font-size: 11px;
}
.hs-tbl td {
  padding: 6px 12px;
  text-align: center;
  border: 1px solid var(--border);
}
.hs-tbl tr.status-failed td { background: rgba(207,34,46,.04); }
.hs-tbl tr.hs-repeat-sector td { background: rgba(154,103,0,.08); }
.hs-tbl tr.hs-repeat-sector td:first-child { color: #9a6700; font-weight: 700; }

/* 窄屏:多列统计表改为自身横向滚动(表格由 JS innerHTML 注入,无外层滚动容器) */
@media (max-width: 768px) {
  table.hs-tbl { display: block; overflow-x: auto; }
}
