/* ===== 涨停复盘样式：与本地复盘服务 /review/ztfupan 排版一致 =====
   与 pages/market/fupan-render.js 一一对应，全仓库仅此一份。
   作用域统一挂在 .fp-wrap / .fp- 前缀下，不污染宿主页面。 */

.fp-wrap {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: #222;
  font-size: 13px;
}

/* ===== 主线条 ===== */
.fp-mainline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #e5e6e8;
  border-radius: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.fp-ml-title {
  font-size: 13px;
  font-weight: 700;
  color: #e03131;
  padding: 5px 0;
  white-space: nowrap;
}
.fp-ml-list { display: flex; gap: 8px; flex-wrap: wrap; }
.fp-ml-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border: 1px solid #f59f00;
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
}
.fp-ml-item:hover { background: #ffe066; }
.fp-ml-name { font-weight: 700; color: #1a1a1a; }
.fp-ml-count { color: #e03131; font-weight: 600; }
.fp-ml-reason { color: #8a6d00; }

/* ===== 卡片标题 ===== */
.fp-capture {
  background: #fff;
  border: 1px solid #e5e6e8;
  border-radius: 8px;
  padding: 12px 14px 16px;
}
.fp-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 2px 2px 10px;
  border-bottom: 1px solid #f0f1f2;
  margin-bottom: 10px;
}
.fp-title .fp-date { font-size: 16px; font-weight: 700; color: #1a1a1a; }
.fp-title .fp-sub { font-size: 13px; color: #555; }
.fp-title .fp-stat { margin-left: auto; font-size: 12px; color: #888; }
.fp-toggle-all {
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid #d0d3d6;
  background: #fff;
  color: #333;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.fp-toggle-all:hover { border-color: #e03131; color: #e03131; }

/* ===== 板块 ===== */
.fp-board { margin-top: 12px; scroll-margin-top: 72px; }
.fp-board + .fp-board { border-top: 6px solid #f2f3f5; }
.fp-plate-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  font-size: 13px;
  background: #fff3b0;
  border-left: 4px solid #f59f00;
  border-radius: 4px;
  cursor: pointer;
  user-select: none;
}
.fp-plate-head:hover { background: #ffe9a0; }
.fp-plate-head.is-mainline { background: #f3e7b6; border-left-color: #e03131; }
.fp-caret { color: #8a6d00; font-size: 10px; width: 12px; transition: transform .15s; }
.fp-board.is-collapsed .fp-caret { transform: rotate(-90deg); }
.fp-board.is-collapsed .fp-board-body { display: none; }
.fp-plate-head .fp-name { font-weight: 700; color: #1a1a1a; }
.fp-plate-head .fp-catalyst { color: #6b5a1e; font-weight: 400; }
.fp-badge-ml {
  background: #e03131;
  color: #fff;
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 600;
}
.fp-plate-head .fp-count {
  margin-left: auto;
  background: #e03131;
  color: #fff;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.fp-plate-head .fp-count i {
  font-style: normal;
  color: #ffd8d8;
  font-weight: 500;
  margin-right: 4px;
}

/* ===== 个股表格 ===== */
.fp-board-body { overflow-x: auto; }
.fp-table { width: 100%; min-width: 980px; border-collapse: collapse; font-size: 12px; }
.fp-table thead th {
  background: #fafafa;
  color: #333;
  font-weight: 600;
  text-align: left;
  padding: 7px 6px;
  border-bottom: 1px solid #e5e6e8;
  white-space: nowrap;
}
.fp-table tbody td {
  padding: 6px;
  border-bottom: 1px solid #f0f1f2;
  vertical-align: top;
  white-space: nowrap;
}
.fp-stk-row { cursor: pointer; }
.fp-logic-row { display: none; }
.fp-logic-row.is-open { display: table-row; }
.fp-logic-row td {
  background: #fafbfc;
  color: #555;
  font-size: 12px;
  line-height: 1.65;
  white-space: normal;
  padding: 8px 10px;
}
.fp-stk-row.is-zj td { background: #dbf1e4; }
.fp-stk-row:hover td { background: #f1f3f5; }
.fp-stk-row.is-zj:hover td { background: #fff3bf; }

.fp-stock .fp-sname { color: #1a1a1a; font-weight: 600; }
.fp-stock .fp-scode {
  margin-left: 6px;
  color: #8a8f99;
  font-size: 11px;
  font-weight: 400;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.fp-badge-zj {
  display: inline-block;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 3px;
  background: #f59f00;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  vertical-align: 1px;
}
.fp-price { color: #444; }
.fp-pct { color: #e03131; font-weight: 600; }
.fp-type { color: #e8590c; }
.fp-num,
.fp-time,
.fp-amt,
.fp-rate { color: #333; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.fp-badge-board {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid #e03131;
  color: #e03131;
  font-size: 11px;
  font-weight: 700;
  background: #fff;
}
.fp-badge-board.is-first { background: #e03131; color: #fff; }
.fp-reason { white-space: normal; min-width: 180px; }

/* ===== 空态 ===== */
.fp-empty { padding: 40px 10px; text-align: center; color: #888; font-size: 13px; line-height: 2; }
