/* 大盘页（2026-10-26）：国家队面板；第二版（同日）图换 ECharts，加名词说明、宽度 / 两融 / 基差 */
/* 第三版：分区导航放左侧（宽屏常驻、跟着滚动高亮）；窄屏退回顶上一行横向滑动 */
.dp-wrap { display: grid; grid-template-columns: 164px minmax(0, 1fr); max-width: 1480px; width: 100%; margin: 0 auto; box-sizing: border-box; }
.dp-side { position: sticky; top: 0; align-self: start; display: flex; flex-direction: column; gap: 2px; padding: 18px 10px 18px 14px;
  max-height: 100vh; box-sizing: border-box; overflow-y: auto; }
.dp-side .grp { font-size: 12px; color: var(--muted); margin: 14px 0 4px 10px; letter-spacing: .5px; }
.dp-side .grp:first-child { margin-top: 2px; }
.dp-side a { display: block; padding: 8px 12px; border-radius: 8px; color: #4e5969; text-decoration: none; font-size: 14.5px;
  border-left: 3px solid transparent; }
.dp-side a:hover { background: #f2f3f5; color: var(--text); }
.dp-side a.on { background: #eef4fd; color: #1c6fd6; font-weight: 600; border-left-color: #1c6fd6; }
.dp-side .side-foot { margin: 16px 0 0 10px; line-height: 1.6; }
.grow { flex: 1; }
.dp-main { width: 100%; min-width: 0; box-sizing: border-box; padding: 14px 16px 40px 8px; }
.dp-sec { margin-bottom: 30px; scroll-margin-top: 12px; }
.dp-head { display: flex; align-items: center; gap: 10px; margin: 6px 0 10px; }
.dp-head h2 { margin: 0; font-size: 18px; }
.tag-guess, .tag-ok { font-size: 11px; padding: 1px 8px; border-radius: 10px; }
.tag-guess { background: var(--warn-bg); color: var(--warn); }
.tag-ok { background: #ebfbee; color: #2b8a3e; }
.dp-read { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; line-height: 1.75; margin-bottom: 10px; }
.dp-read p { margin: 0; }
.dp-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.chip { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; display: flex; flex-direction: column; min-width: 120px; }
.chip b { font-size: 18px; font-variant-numeric: tabular-nums; }
.chip span { font-size: 12px; color: var(--muted); }
.chip.hot b { color: var(--up); }
.dp-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; min-width: 0; }
.dp-grid2 .card { margin-bottom: 0; }
.card-h { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 6px; }
.cv { display: block; width: 100%; height: 280px; }
.cv.short { height: 200px; }
.cv.tall { height: 340px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11px; color: var(--muted); margin-top: 4px; align-items: center; }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 3px; vertical-align: -1px; background: #c9cdd4; }
.lg.red { background: var(--up); }
.lg.green { background: var(--down); }
.lg.bar { background: #a5b4c8; }
.lg.base { background: transparent; border: 1px dashed #4e5969; }
.lg.line { height: 2px; width: 14px; background: #1c6fd6; vertical-align: 3px; }
.lg.line.red { background: var(--up); }
.lg.line.dash { background: repeating-linear-gradient(90deg, #e8590c 0 4px, transparent 4px 7px); }
.lg.tri { background: transparent; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 9px solid #2b8a3e; border-radius: 0; }
.tbl-wrap { overflow-x: auto; }
.dp-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.dp-tbl th, .dp-tbl td { padding: 5px 8px; border-bottom: 1px solid #f0f1f3; text-align: right; white-space: nowrap; }
.dp-tbl th { color: var(--muted); font-weight: 500; background: #fafbfc; position: sticky; top: 0; }
.dp-tbl td:first-child, .dp-tbl th:first-child, .dp-tbl td.l { text-align: left; }
.dp-tbl tr.td-row td:first-child { font-weight: 600; color: var(--up); }
.dp-tbl tr.extra td { color: var(--muted); }
.barcell { position: relative; }
.barcell i { position: absolute; left: 0; top: 3px; bottom: 3px; background: #fde2e2; border-radius: 2px; z-index: 0; }
.barcell span { position: relative; z-index: 1; }
.sup-list { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.sup { display: flex; gap: 10px; align-items: baseline; padding: 6px 8px; background: #f7f8fa; border-radius: 6px; }
.sup b { font-variant-numeric: tabular-nums; }
.kpis { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; min-width: 150px; }
.kpi b { display: block; font-size: 22px; }
.kpi span { font-size: 12px; color: var(--muted); }
.trig { line-height: 1.9; font-size: 13px; }
.trig b { font-variant-numeric: tabular-nums; }
.mix { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.mix-row { display: grid; grid-template-columns: 64px 1fr 60px; gap: 8px; align-items: center; }
.mix-bar { display: flex; height: 16px; border-radius: 3px; overflow: hidden; background: #f2f3f5; }
.mix-bar span { display: block; height: 100%; }
.foot { margin-top: 8px; line-height: 1.7; }
/* 图下的口径说明 */
.note { margin: 6px 2px 0; font-size: 11.5px; line-height: 1.65; color: #86909c; }
/* 盘中成交额：每 5 分钟 / 每分钟 */
.seg-tog { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.seg-tog button { border: 0; background: transparent; padding: 2px 10px; font-size: 12px; color: #4e5969; cursor: pointer; }
.seg-tog button.on { background: #eef4fd; color: #1c6fd6; font-weight: 600; }
.hint { margin-top: 4px; }

/* 名词说明：标题旁的问号，鼠标移上 / 点一下出说明 */
.q { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 50%;
  border: 1px solid #c9cdd4; color: #86909c; font-size: 10px; font-style: normal; font-weight: 600; cursor: help;
  margin-left: 2px; vertical-align: 1px; user-select: none; }
.q:hover, .q.on { border-color: #1c6fd6; color: #1c6fd6; }
.term-pop { position: fixed; z-index: 50; max-width: 340px; background: #1d2129; color: #f2f3f5; border-radius: 8px;
  padding: 10px 12px; font-size: 12.5px; line-height: 1.7; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.term-pop b { display: block; color: #fff; margin-bottom: 2px; }
.term-pop .ex { display: block; margin-top: 4px; color: #c9cdd4; }
.gloss { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; max-height: 60vh; overflow-y: auto; margin: 8px 0; font-size: 13px; line-height: 1.65; }
.gloss h4 { grid-column: 1 / -1; margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.gloss div b { display: block; }
.gloss div span { color: #4e5969; }
.gloss div .ex { display: block; color: var(--muted); font-size: 12px; }
.help-dlg { max-width: 760px; }

/* 图表悬停框（ECharts tooltip 的内容；样式写在这里，不用内联样式） */
.tt-h { font-weight: 600; margin-bottom: 3px; }
.tt-h .tt-tag { font-weight: 500; font-size: 11px; color: #e03131; margin-left: 6px; }
.tt-r { display: flex; align-items: center; gap: 6px; min-width: 170px; }
.tt-r b { margin-left: auto; font-variant-numeric: tabular-nums; }
.tt-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #a5b4c8; }
.tt-dot.k0 { background: #e03131; } .tt-dot.k1 { background: #1c6fd6; } .tt-dot.k2 { background: #e8590c; }
.tt-dot.k3 { background: #7048e8; } .tt-dot.k4 { background: #2b8a3e; } .tt-dot.k5 { background: #4e5969; }
.tt-dot.k6 { background: #a5b4c8; } .tt-dot.k7 { background: #0c8599; }
.tt-note { color: #86909c; font-size: 11px; margin-top: 3px; }
/* 按类堆积图的悬停圆点（颜色和 dapan.js 的 CAT_COLORS 一一对应） */
.tt-dot.c0 { background: #e03131; } .tt-dot.c1 { background: #1c6fd6; } .tt-dot.c2 { background: #e8590c; } .tt-dot.c3 { background: #7048e8; } .tt-dot.c4 { background: #2b8a3e; } .tt-dot.c5 { background: #0c8599; } .tt-dot.c6 { background: #c2255c; } .tt-dot.c7 { background: #5c940d; } .tt-dot.c8 { background: #868e96; } .tt-dot.c9 { background: #f59f00; } .tt-dot.c10 { background: #364fc7; } .tt-dot.c11 { background: #a61e4d; }
.dp-tbl td.pct-cell { font-weight: 600; border-radius: 3px; }
.empty-note { color: var(--muted); font-size: 13px; padding: 10px 0; }
@media (max-width: 1000px) {
  .dp-wrap { display: block; }
  .dp-side { flex-direction: row; align-items: center; overflow-x: auto; white-space: nowrap; max-height: none; padding: 6px 12px;
    background: var(--panel); border-bottom: 1px solid var(--line); z-index: 5; gap: 2px; }
  .dp-side .grp { margin: 0 2px 0 8px; font-size: 11px; }
  .dp-side .grp:first-child { margin-left: 0; }
  .dp-side a { padding: 4px 10px; font-size: 13px; border-left: 0; }
  .dp-side .side-foot { display: none; }
  .dp-main { padding: 12px 16px 40px; }
  .dp-sec { scroll-margin-top: 50px; }
}
@media (max-width: 900px) {
  .gloss { grid-template-columns: 1fr; }
  .dp-grid2 { grid-template-columns: 1fr; }
  .dp-grid2 .card { margin-bottom: 0; }
  .dp-main { padding: 10px 12px 30px; }
  .cv { height: 230px; }
  .cv.tall { height: 270px; }
}

/* 10-30：今天像不像托底日（盘中跟着变、收盘定格）+ 收盘判断对没对 */
.dp-judge { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.jg-h { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.jg-top { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; margin: 8px 0 4px; }
.jg-tier { font-size: 24px; font-weight: 700; }
.jg-tier.hi, .dp-tbl td.jt-hi { color: var(--up); }
.jg-tier.mid, .dp-tbl td.jt-mid { color: var(--warn); }
.jg-tier.lo, .dp-tbl td.jt-lo { color: var(--muted); }
.jg-p { font-size: 14px; }
.jg-parts { margin: 4px 0 0; padding-left: 18px; line-height: 1.75; font-size: 13.5px; color: #4e5969; }
.jt-sum p { margin: 6px 0; line-height: 1.7; font-size: 13.5px; }
.jt-sum .jt-st { margin-bottom: 8px; }
.jt-sum .jt-st td.l .small { font-weight: 400; }
.jt-sum .jt-st td.l { white-space: normal; min-width: 150px; }
.dp-tbl td.ok { color: #2b8a3e; font-weight: 600; }
.dp-tbl td.bad { color: var(--warn); font-weight: 600; }

