/* Tarsign · 商品期货 · 个股联动（pages/futlink.html 专用） */

/* 统计条（与全站 .strip .st 同款） */
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 11px; }
.strip .st { background: #fff; border: 1px solid #eef1f6; border-radius: 14px;
  padding: 11px 13px; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.strip .st .k { color: #8a93a5; font-size: 11.5px; margin-bottom: 5px; }
.strip .st .v { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.15; }

/* 品种选择：按产业链分组 */
.fl-pick { margin-top: 4px; }
.fl-grp { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; border-bottom: 1px dashed #f0f2f6; }
.fl-grp:last-child { border-bottom: 0; }
.fl-grp > b { flex: none; width: 52px; font-size: 12px; color: #8a93a5; font-weight: 600; line-height: 26px; }
.fl-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; flex: 1; }
.fl-chip { border: 1px solid #e5e9f0; background: #fff; color: #48484a; border-radius: 6px;
  padding: 4px 11px; font-size: 12.5px; cursor: pointer; line-height: 18px; font-family: inherit;
  transition: background .12s, border-color .12s, color .12s; }
.fl-chip:hover { border-color: #bcd0ff; color: #27548c; }
.fl-chip.on { background: #27548c; border-color: #27548c; color: #fff; font-weight: 600; }
.fl-chip i { font-style: normal; opacity: .62; font-size: 11px; margin-left: 4px; }

/* 当前所选：期货与个股两块并排 */
.fl-sel { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fl-blk { min-width: 0; border: 1px solid #eef1f6; border-radius: 10px; padding: 12px 14px; background: #fdfefe; }
.fl-hd { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.fl-hd .nm { font-size: 18px; font-weight: 700; color: #0a0a0a; letter-spacing: .3px; }
.fl-hd .cd { font-size: 11.5px; color: #8a93a5; font-variant-numeric: tabular-nums; }
.fl-hd .px { margin-left: auto; font-size: 20px; font-weight: 700; color: #0a0a0a;
  font-variant-numeric: tabular-nums; }
.fl-kv { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px 10px; }
.fl-kv > div { background: #f8fafc; border-radius: 6px; padding: 7px 9px; }
.fl-kv i { display: block; font-style: normal; font-size: 11px; color: #8a93a5; margin-bottom: 2px; }
.fl-kv b { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; color: #0a0a0a; }
.up { color: #d64545; }
.dn { color: #0ca678; }
.mut { color: #b4bac6; }
/* ★特异性补强：table.fl-tb td (0-1-2) 会压过裸 .up/.dn (0-1-0)，这里跟到同级 */
table.fl-tb td.up, .fl-kv b.up, .fl-metric b.up { color: #d64545; }
table.fl-tb td.dn, .fl-kv b.dn, .fl-metric b.dn { color: #0ca678; }
table.fl-tb td.mut, .fl-kv b.mut { color: #b4bac6; }

/* 个股指标卡 */
.fl-tag { display: inline-block; font-size: 10.5px; padding: 1px 6px; border-radius: 4px;
  background: #f1f4f9; color: #5b6373; font-weight: 600; }
.fl-metric { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.fl-metric > div { border: 1px solid #eef1f6; border-radius: 6px; padding: 8px 10px; background: #fff; }
.fl-metric i { display: block; font-style: normal; font-size: 11px; color: #8a93a5; margin-bottom: 3px; }
.fl-metric b { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; color: #0a0a0a; }
.fl-metric s { display: block; text-decoration: none; font-size: 10.5px; color: #a8b0bf; margin-top: 2px; }

/* 表格：默认候选池原序，列头可点击排序（三态：降 → 升 → 还原原序） */
.fl-tbwrap { overflow-x: auto; margin-top: 2px; }
table.fl-tb { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.fl-tb th { text-align: right; font-weight: 600; color: #8a93a5; font-size: 11.5px;
  padding: 7px 9px; border-bottom: 1px solid #eef1f6; white-space: nowrap; background: #fbfcfd; }
table.fl-tb th:first-child, table.fl-tb th:nth-child(2) { text-align: left; }
table.fl-tb th[data-k] { cursor: pointer; user-select: none; }
table.fl-tb th[data-k]:hover { color: #27548c; }
table.fl-tb th.sortable::after { content: '↕'; opacity: .3; margin-left: 3px; font-size: 10px; }
table.fl-tb th.desc::after { content: '▼'; opacity: .85; margin-left: 3px; font-size: 9.5px; color: #27548c; }
table.fl-tb th.asc::after { content: '▲'; opacity: .85; margin-left: 3px; font-size: 9.5px; color: #27548c; }
table.fl-tb td { text-align: right; padding: 8px 9px; border-bottom: 1px solid #f5f7fa;
  font-variant-numeric: tabular-nums; color: #303540; white-space: nowrap; }
table.fl-tb td:first-child { text-align: left; }
table.fl-tb td:nth-child(2) { text-align: left; }
table.fl-tb tbody tr { cursor: pointer; transition: background .1s; }
table.fl-tb tbody tr:hover { background: #f7faff; }
table.fl-tb tbody tr.on { background: #eef4fd; }
table.fl-tb tbody tr.on td:first-child { box-shadow: inset 3px 0 0 #27548c; }
table.fl-tb .co { font-weight: 600; color: #0a0a0a; }
table.fl-tb .cc { color: #a2aab8; font-size: 11.5px; margin-left: 5px; }

/* 图表：主图全宽加高（K线 + 成交量副图） */
.fl-chart { width: 100%; height: 400px; }
.fl-chart.big { height: 560px; }
.fl-chart.sub { height: 190px; }
.fl-chart.lag { height: 190px; }
.fl-lower { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 14px; align-items: start; }
.fl-lower > * { min-width: 0; }
.fl-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 11.5px; color: #78818f; margin-top: 6px; }
.fl-legend span { display: inline-flex; align-items: center; gap: 5px; }
.fl-legend i { width: 11px; height: 11px; border-radius: 2px; display: inline-block; }
.fl-legend i.ln { height: 2px; border-radius: 1px; }

/* 空/加载态 */
.fl-loading { display: flex; align-items: center; justify-content: center; height: 200px;
  color: #a2aab8; font-size: 13px; }

@media (max-width: 1180px) {
  .fl-sel { grid-template-columns: 1fr; }
  .fl-lower { grid-template-columns: minmax(0, 1fr); }
}
