/* 股指期货吃贴水 (/futures/): builds on ../temperature/temperature.css + ../kanban/kanban.css */
.futures-page .kb-lede{max-width:820px}
.fx-state{font-weight:600}.fx-state.on{color:#2f7368}.fx-state.off{color:#8a5a14}
.fx-best-key{color:var(--orange);font-weight:700}
.fx-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:12px}
.fx-grid .kb-card{margin:0}
.kb-detail .fx-grid{margin-top:12px}
.fx-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px 12px}
.fx-head h3{margin:0;font-size:18px}.fx-head h3 small{font-size:12px;font-weight:400;color:var(--muted);margin-left:6px}
.fx-spot{font-size:13px;color:var(--muted)}.fx-spot b{color:var(--ink);font-size:16px;font-variant-numeric:tabular-nums}
.fx-spot .up{color:#c4431a}.fx-spot .dn{color:#2f7368}
.fx-tbl{overflow-x:auto;-webkit-overflow-scrolling:touch;margin-top:8px}
.fx-tbl table{border-collapse:collapse;width:100%;font-size:13.5px;font-variant-numeric:tabular-nums}
.fx-tbl th,.fx-tbl td{padding:6px 6px;border-bottom:1px solid #edf0ef;text-align:right;white-space:nowrap}
.fx-tbl th{font-size:12px;font-weight:600;color:var(--muted)}
.fx-tbl th:first-child,.fx-tbl td:first-child{text-align:left}
.fx-tbl td.code b{font-weight:700}.fx-tbl td.code small{display:block;font-size:11px;color:var(--muted);line-height:1.2}
.fx-tbl td.ann{font-weight:700;color:var(--deep)}
.fx-tbl tr.best td{background:#fff4ec}.fx-tbl tr.best td.ann{color:var(--orange)}
.fx-tbl tr.best td.code b::after{content:" ★";color:var(--orange);font-size:12px}
.fx-tbl td.prem{color:#b64141}
.fx-ops{margin-top:10px;padding:9px 12px;border-radius:9px;background:#eef4f3;border:1px solid #d6e4e1;font-size:13px;line-height:1.7}
.fx-ops b{color:var(--deep)}.fx-ops .hl{color:var(--orange);font-weight:700}
.fx-ops div+div{margin-top:3px}
.fx-prod{margin:14px 0 12px}.fx-prod button{font-size:14px;padding:6px 16px}
.fx-alg-note{margin:2px 0 6px;font-size:12.5px;color:var(--muted)}
.fx-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:8px 0 6px}
.fx-kpi{border:1px solid var(--line);border-radius:10px;background:#fff;padding:8px 11px}
.fx-kpi span{display:block;font-size:12px;color:var(--muted);line-height:1.4}
.fx-kpi b{display:block;font-size:20px;line-height:1.35;font-variant-numeric:tabular-nums;color:var(--ink)}
.fx-kpi b.pos{color:#c4431a}.fx-kpi b.neg{color:#2f7368}
.fx-kpi small{display:block;font-size:11px;color:var(--muted);line-height:1.35}
.fx-h4{margin:16px 0 0;font-size:15px;display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px}
.fx-unit{margin:0}
.kb-chart .fx-reset{position:absolute;z-index:2;margin:0;padding:1px 7px;font-size:11px;line-height:1.5;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--deep);cursor:pointer}
.kb-chart .fx-reset:hover{border-color:var(--deep)}
.kb-chart .range-handle,.kb-chart .range-window{cursor:ew-resize}.kb-chart .range-window{cursor:grab}
.kb-tip .r em{font-style:normal;color:var(--muted);margin-left:6px}
.kb-table table td.pos{color:#c4431a}.kb-table table td.neg{color:#2f7368}
.kb-table .tbl-note{font-size:12px;color:var(--muted);margin:6px 0 0}
@media(max-width:900px){.fx-grid{grid-template-columns:1fr}.fx-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:560px){.fx-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.fx-kpi b{font-size:17px}.fx-tbl table{font-size:12.5px}.fx-tbl th,.fx-tbl td{padding:5px 4px}.fx-tbl .spotcol{display:none}.fx-prod button{font-size:13px;padding:5px 13px}}
.futures-page .kb-table td:last-child,.futures-page .kb-table th:last-child{text-align:right}
.futures-page .kb-table td small{font-size:11px;color:var(--muted);font-style:normal}
.futures-page .kb-chart{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
/* 2026-10-26 会员专享（与温度计/看板图表锁同一套外观：磨砂 blur 6px、#f4f7f6 50% 罩层、白底药丸 + 橙色锁 + 「会员专享」+ 小字，链接会员页） */
.fx-gate{position:relative}
.fx-gate.is-locked>:not(.fx-lock){filter:blur(6px);pointer-events:none;user-select:none;-webkit-user-select:none}
.fx-gate-tall.is-locked{max-height:620px;overflow:hidden;border-radius:12px}
.fx-gate-ops.is-locked{min-height:64px}
.fx-lock{position:absolute;inset:0;z-index:3;display:flex;align-items:center;justify-content:center;padding:8px;background:#f4f7f680;border-radius:inherit;text-decoration:none;color:#0a5368;cursor:pointer}
.fx-gate-tall .fx-lock{align-items:flex-start;padding-top:150px;background:linear-gradient(#f4f7f680 0,#f4f7f680 70%,#f4f1ee 100%)}
.fx-lock:hover{text-decoration:none}
.fx-lock-pill{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;column-gap:6px;row-gap:3px;padding:9px 18px 8px;background:#fffffff0;border:1px solid #0a536880;border-radius:10px;box-shadow:0 4px 14px #1230411a;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC",sans-serif;text-align:center}
.fx-lock-pill b{font-size:14px;font-weight:700}
.fx-lock-pill small{flex-basis:100%;font-size:11px;font-weight:500;opacity:.8}
.fx-lock-pill{flex:0 0 auto;width:max-content;max-width:calc(100% - 24px);box-sizing:border-box}
.fx-lock:hover .fx-lock-pill,.fx-lock:focus-visible .fx-lock-pill{border-color:#f26630;color:#f26630}
.fx-gate-ops .fx-lock-pill{padding:6px 14px 5px}
@media(max-width:560px){.fx-gate-tall .fx-lock{padding-top:110px}.fx-gate-tall.is-locked{max-height:520px}.fx-lock-pill small{font-size:10.5px}}
/* 2026-10-26 nav7：逐块蒙版——标题/钩子免费可见，内容区模糊加锁牌 */
.fx-ops-hook{display:flex;align-items:center;gap:10px;margin-top:14px;padding:9px 12px;border-radius:9px 9px 0 0;border-left:3px solid var(--orange);background:linear-gradient(90deg,#0a53681a,#0a536805 70%,transparent);color:var(--deep)}
.fx-ops-ico{flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:var(--deep);color:#fff;box-shadow:0 3px 8px -3px #0a5368aa}
.fx-ops-ttl{display:grid;gap:1px;min-width:0}
.fx-ops-ttl b{font-size:16px;font-weight:800;letter-spacing:.01em;color:var(--ink)}
.fx-ops-ttl small{font-size:12px;color:var(--muted)}
.fx-ops-hook+.fx-gate-ops .fx-ops{margin-top:6px}
.fx-h4 small{font-size:12px;font-weight:500;color:var(--muted)}
.fx-notes-title{margin:4px 0 8px}
.fx-gate-block.is-locked,.fx-gate-kpis.is-locked{min-height:96px;border-radius:10px}
.fx-gate-chart.is-locked{min-height:200px;border-radius:10px}
.fx-gate-table.is-locked{max-height:300px;overflow:hidden;border-radius:10px}
.fx-gate-ops.is-locked{min-height:72px}
@media(max-width:560px){.fx-ops-ttl b{font-size:15px}.fx-ops-hook{padding:8px 10px}.fx-gate-table.is-locked{max-height:260px}}
.fx-gate-chart.is-locked>:not(.fx-lock),.fx-gate-table.is-locked>:not(.fx-lock),.fx-gate-block.is-locked>:not(.fx-lock){filter:blur(12px)}
.fx-gate-chart.is-locked>.fx-lock,.fx-gate-table.is-locked>.fx-lock,.fx-gate-block.is-locked>.fx-lock{background:#f4f7f6d0}

.fx-prod-row{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;margin:18px 0 0}.fx-prod-row>span{font-size:13px;color:var(--muted);font-weight:600}.fx-prod-row .fx-prod{margin:6px 0 10px}
#disc-view{margin:10px 0 2px}#disc-view button{font-size:12.5px;padding:4px 11px}
.kb-legend i.bar{width:11px;height:11px;border-radius:2px;background:var(--c)}

/* 2026-10-30：刷新按钮 + 交易时段延迟 */
.futures-page .kb-section-head{align-items:center}
.fx-refresh{appearance:none;margin:0;padding:5px 14px;border:1px solid var(--orange);border-radius:999px;background:var(--orange);color:#fff;font:inherit;font-size:13px;font-weight:700;letter-spacing:.04em;cursor:pointer;line-height:1.4;box-shadow:0 2px 8px #f2663033;flex:none}
.fx-refresh:hover:not(:disabled){filter:brightness(1.05)}
.fx-refresh:focus-visible{outline:2px solid var(--deep);outline-offset:2px}
.fx-refresh:disabled{opacity:.72;cursor:wait;box-shadow:none}
.fx-refresh.is-busy{background:#c4531f;border-color:#c4531f}
.fx-delay{font-weight:600;color:var(--deep)}
.fx-delay.warn{color:#8a5a14}
.fx-delay.ok{color:#2f7368}
.fx-delay.closed{color:var(--muted);font-weight:500}
.fx-refresh-msg{flex-basis:100%;margin:4px 0 0;font-size:12.5px;color:var(--muted);line-height:1.5}
.fx-refresh-msg.err{color:#b64141}
.fx-refresh-msg.ok{color:#2f7368}
.kb-meta .fx-refresh{margin-left:4px}
@media(max-width:560px){.fx-refresh{padding:5px 12px;font-size:12.5px}}

/* 2026-10-30：三、指数估值 — 对齐温度计「全市场市盈率」左摘要+右图；两卡上下全宽 + PE·PB */
.fx-val-grid{display:grid;grid-template-columns:1fr;gap:18px;margin-top:12px;width:100%}
.fx-val-grid .fx-val-card.indicator-row{grid-template-columns:255px minmax(0,1fr);margin-bottom:0}
.fx-val-grid .indicator-summary h2{font-size:17px;line-height:1.45}
.fx-val-grid .kb-chart,.fx-val-grid .compact-chart.kb-chart{min-height:280px;width:100%;position:relative}
.fx-val-legend-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;margin-bottom:6px}
.fx-val-legend-row .kb-legend{display:flex;flex-wrap:wrap;gap:14px;align-items:center}
.fx-val-metric{margin:0}
.fx-val-metric button{font-size:12.5px;padding:4px 11px}
.fx-val-grid .fx-gate{position:relative;min-height:280px}
.fx-val-grid .fx-gate.is-locked{min-height:280px}
@media(max-width:800px){
  .fx-val-grid .fx-val-card.indicator-row{grid-template-columns:1fr}
}
.futures-page .kb-lede{max-width:820px}

/* 2026-10-30：估值温度挪到「当前贴水」IC/IM 卡内（PE·PB 分位均值） */
.fx-live-top{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:10px 16px;margin-bottom:2px}
.fx-live-top .fx-head{flex:1;min-width:0}
.fx-live-temp{display:flex;flex-direction:column;align-items:flex-end;gap:3px;flex:none;padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.7);color:inherit;text-decoration:none;max-width:100%}
.fx-live-temp:hover,.fx-live-temp:focus-visible{border-color:var(--z)}
.fx-live-temp .side-label{font-size:12px;font-weight:650;color:var(--muted)}
.fx-live-temp .side-row{display:flex;align-items:baseline;gap:7px}
.fx-live-temp .ov-num{font-size:26px;line-height:1.05}
.fx-live-temp .ov-zone{font-size:11.5px;font-weight:650;background:var(--zb);border-radius:5px;padding:1px 7px}
.fx-live-temp .ov-meter{margin:1px 0 0}
.fx-live-temp .ov-bar{width:120px;height:5px}
.fx-live-temp .ov-mark{width:10px;height:10px;margin:-5px 0 0 -5px}
@media (max-width:560px){
  .fx-live-top{flex-direction:column;align-items:stretch}
  .fx-live-temp{align-items:flex-start;align-self:stretch}
}

/* Deep-link landing from A股侧卡 中证500/1000温度 → 指数估值 */
#valuation{scroll-margin-top:18px}
