/* ==========================================================================
   复盘通 v2.1.1 网页版 —— 亮色主题
   设计基调：保留原版的橙色强调色（#FF8C00）与全部布局结构，
             把深色底（#2a2a2a）整体替换为亮色。
   涨跌配色遵循 A 股习惯：涨=红，跌=绿。
   ========================================================================== */

:root {
  color-scheme: light;
  /* 面 */
  --bg:            #eef1f5;
  --panel:         #ffffff;
  --panel-2:       #f7f9fb;
  --panel-3:       #f2f5f8;
  --line:          #e2e7ee;
  --line-2:        #edf1f5;
  --line-strong:   #cfd7e0;

  /* 字 */
  --tx:            #16191d;
  --tx-2:          #5a6472;
  --tx-3:          #8d97a4;
  --tx-4:          #b3bcc7;

  /* 品牌橙（原版强调色，保留） */
  --accent:        #ff8c00;
  --accent-d:      #e07800;
  --accent-soft:   #fff4e3;
  --accent-line:   #ffd9a6;

  /* 涨跌（A股习惯） */
  --up:            #e5342b;
  --up-soft:       #fdeceb;
  --down:          #12a55a;
  --down-soft:     #e8f7ef;
  --flat:          #7a8494;
  --mk-warn:       #8a6900;
  --mk-orange:     #b9650c;
  --mk-purple:     #7250a3;

  /* 其它 */
  --info:          #1f6feb;
  --blue:          #315f9f;
  --blue-soft:     #e8f0fa;
  --cyan:          #08798c;
  --cyan-soft:     #e5f3f5;
  --focus-ring:    rgba(49, 95, 159, .28);
  --violet:        #7c5cff;
  --shadow-1:      0 1px 2px rgba(20, 30, 45, .06);
  --shadow-2:      0 4px 16px rgba(20, 30, 45, .10);
  --radius:        6px;

  --slogan:         #854600;
  --stt-bg:         #eef2f6;
  --stt-panel:      #ffffff;
  --stt-panel-alt:  #f4f7fa;
  --stt-head:       #f1f4f8;
  --stt-row-alt:    #f8fafc;
  --stt-hover:      #fff4e5;
  --stt-border:     #d6dee8;
  --stt-text:       #263445;
  --stt-muted:      #667085;
  --stt-up:         #c62828;
  --stt-down:       #167a4a;
  --stt-amber:      #855800;
  --stt-orange:     #8a5200;
  --stt-code-688:   #087a9b;
  --stt-code-other: #315da8;
  --stt-time-10:    #b54708;
  --stt-time-11:    #7a3e9d;
  --stt-time-13:    #0f766e;
  --stt-time-14:    #245da8;
  --stt-title:      #fff3df;
  --stt-title-hit:  #ffe6bf;
  --stt-up-soft:    #fde8e7;
  --stt-down-soft:  #e4f4ea;
  --stt-break-bg:   #fff0c2;
  --stt-break-text: #784b00;

  --topbar-h:      46px;
  --menubar-h:     38px;
  --toolbar-h:     42px;

  --font: "Microsoft YaHei UI", "Microsoft YaHei", -apple-system, "Segoe UI",
          "PingFang SC", "Hiragino Sans GB", sans-serif;
  --mono: "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #11161d; --panel: #19212b; --panel-2: #202a35; --panel-3: #252f3a;
  --line: #303b49; --line-2: #293440; --line-strong: #455263;
  --tx: #e8edf3; --tx-2: #c0cad6; --tx-3: #93a0af; --tx-4: #748293;
  --accent: #ff9b26; --accent-d: #ffb14d; --accent-soft: #342a1d; --accent-line: #72512a;
  --up: #ff625b; --up-soft: #3b2428; --down: #35c77b; --down-soft: #1e352c; --flat: #9aa7b5;
  --mk-warn: #f1d154; --mk-orange: #ffad4a; --mk-purple: #c4a5ff;
  --blue: #9bbcf0; --blue-soft: #26364c; --cyan: #74d1df; --cyan-soft: #20383e;
  --focus-ring: rgba(155, 188, 240, .32);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .24); --shadow-2: 0 4px 16px rgba(0, 0, 0, .32);
  --slogan: #ffd08a;
  --stt-bg: #141b23; --stt-panel: #1b242e; --stt-panel-alt: #202a35;
  --stt-head: #242f3b; --stt-row-alt: #202a35; --stt-hover: #2d3744; --stt-border: #394655;
  --stt-text: #e2e8f0; --stt-muted: #aab6c4; --stt-up: #ff6b64; --stt-down: #3bd184;
  --stt-amber: #ffd166; --stt-orange: #ffb454; --stt-code-688: #64c9e8; --stt-code-other: #8db7ff;
  --stt-time-10: #ffad75; --stt-time-11: #d0a0f0; --stt-time-13: #66d3c5; --stt-time-14: #8dbdff;
  --stt-title: #342b1e; --stt-title-hit: #493820; --stt-up-soft: #42272b; --stt-down-soft: #20382d;
  --stt-break-bg: #493a1e; --stt-break-text: #ffd166;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0; height: 100%;
  background: var(--bg);
  color: var(--tx);
  font-family: var(--font);
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

body { display: flex; flex-direction: column; }

button { font-family: inherit; cursor: pointer; }
input  { font-family: inherit; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cdd5df; border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #b6c0cc; }

/* ==========================================================================
   1. 顶栏
   ========================================================================== */
.topbar {
  height: var(--topbar-h);
  flex: 0 0 var(--topbar-h);
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  position: relative;
  z-index: 40;
}

.brand { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; min-width: 0; }
.brand-logo {
  width: 30px; height: 30px; flex: 0 0 30px;
  display: block; object-fit: contain;
}
.brand-name { font-size: 15px; font-weight: 700; letter-spacing: .5px; white-space: nowrap; }
/* V3：版本号隐藏（值仍在 index.html / config.js，导出文本照常带 v2.1.1） */
.brand-ver  { font-size: 11px; color: var(--tx-3); display: none; }

/* ---- V3：接口健康指示灯（小圆点，无文字） ---- */
.st-dot-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%; cursor: pointer; flex: 0 0 auto;
  transition: background .15s;
}
.st-dot-btn:hover { background: rgba(0, 0, 0, .06); }
.st-dot {
  display: block; width: 9px; height: 9px; border-radius: 50%;
  background: #c3c9d2;
  transition: background .2s, box-shadow .2s;
}
.st-dot-btn.ok   .st-dot { background: #12a55a; box-shadow: 0 0 0 3px rgba(18, 165, 90, .15); }
.st-dot-btn.bad  .st-dot { background: #e5342b; box-shadow: 0 0 0 3px rgba(229, 52, 43, .15); }
.st-dot-btn.busy .st-dot { background: #ff8c00; animation: stPulse 1s ease-in-out infinite; }
@keyframes stPulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.topbar-left { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.countdown {
  font-family: var(--mono); font-size: 12px; color: var(--accent-d);
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  padding: 2px 8px; border-radius: 4px; white-space: nowrap;
}
.tb-sep { width: 1px; height: 18px; background: var(--line); }
.tb-ghost {
  background: none; border: 1px solid var(--line); border-radius: 4px;
  color: var(--tx-2); font-size: 12px; padding: 3px 9px;
}
.tb-ghost:hover { border-color: var(--line-strong); color: var(--tx); }
.tb-ghost.ok   { color: var(--down); border-color: #b9e5cd; background: var(--down-soft); }
.tb-ghost.bad  { color: var(--up);   border-color: #f5c3c0; background: var(--up-soft); }

.marquee {
  flex: 1 1 auto; min-width: 0; overflow: hidden;
  height: 26px; line-height: 26px; position: relative;
  mask-image: none; -webkit-mask-image: none;
}
.marquee-inner {
  display: block; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 12.5px; color: var(--slogan); font-weight: 600;
}
.marquee-inner.quote-switch { animation: quote-switch-in .42s ease both; }
@keyframes quote-switch-in {
  from { opacity: .05; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-inner.quote-switch { animation: none; }
}
.marquee-inner::after { content: none; }

.topbar-right { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.clock { font-family: var(--mono); font-size: 12px; color: var(--tx-3); }
.tb-act {
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 4px; color: var(--tx-2); font-size: 12px; padding: 3px 10px;
}
.tb-act:hover { border-color: var(--accent-line); color: var(--accent-d); background: var(--accent-soft); }
.tb-theme { width: 30px; height: 28px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.theme-icon { display: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
:root:not([data-theme="dark"]) .theme-icon-moon, :root[data-theme="dark"] .theme-icon-sun { display: block; }

@media (max-width: 760px) {
  .brand-logo { width: 28px; height: 28px; flex-basis: 28px; }
  .brand-name { display: none; }
}

/* ==========================================================================
   2. 菜单栏
   ========================================================================== */
.menubar {
  height: var(--menubar-h);
  flex: 0 0 var(--menubar-h);
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: stretch;
  padding: 0 10px;
  gap: 1px;
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  z-index: 30;
}
.menubar::-webkit-scrollbar { height: 4px; }

.menu-tab {
  position: relative;
  border: none; background: transparent;
  color: var(--tx-2); font-size: 13px;
  padding: 0 13px; white-space: nowrap;
  display: inline-flex; align-items: center;
  border-bottom: 2px solid transparent;
  transition: color .12s, background .12s;
}
.menu-tab:hover { color: var(--accent-d); background: var(--panel-2); }
.menu-tab.active {
  color: var(--accent-d); font-weight: 700;
  border-bottom-color: var(--accent);
  background: linear-gradient(180deg, transparent, var(--accent-soft));
}
.menu-tab .star { color: var(--accent); font-size: 10px; margin-left: 3px; }
.menu-tab .dot  {
  position: absolute; top: 7px; right: 4px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}

/* ==========================================================================
   3. 工具条
   ========================================================================== */
.toolbar {
  height: var(--toolbar-h);
  flex: 0 0 var(--toolbar-h);
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  z-index: 20;
}
.toolbar::-webkit-scrollbar { height: 4px; }
.toolbar:empty { display: none; }

.tb-label { font-size: 12px; color: var(--tx-3); white-space: nowrap; }
.tb-label.mono { font-family: var(--mono); color: var(--tx-2); }
.tb-gap { flex: 1 1 auto; }
.tb-vline { width: 1px; height: 18px; background: var(--line-strong); flex: 0 0 1px; }

.btn {
  height: 26px; padding: 0 11px;
  background: var(--panel); border: 1px solid var(--line-strong);
  border-radius: 4px; color: var(--tx-2); font-size: 12.5px;
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  transition: all .12s;
}
.btn:hover { border-color: var(--accent); color: var(--accent-d); background: var(--accent-soft); }
.btn:active { transform: translateY(1px); }
.btn.on {
  background: var(--accent); border-color: var(--accent);
  color: #fff; font-weight: 600;
  box-shadow: 0 1px 4px rgba(255, 140, 0, .35);
}
.btn.on:hover { background: var(--accent-d); border-color: var(--accent-d); color: #fff; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn.primary:hover { background: var(--accent-d); border-color: var(--accent-d); color: #fff; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn .ico { font-size: 12px; line-height: 1; }

/* 分段按钮组 */
.seg {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line-strong); border-radius: 4px;
  overflow: hidden; background: var(--panel); height: 26px;
}
.seg > button {
  border: none; background: transparent; color: var(--tx-2);
  font-size: 12.5px; padding: 0 11px; height: 24px; white-space: nowrap;
  border-right: 1px solid var(--line-2);
}
.seg > button:last-child { border-right: none; }
.seg > button:hover { color: var(--accent-d); background: var(--accent-soft); }
.seg > button.on {
  background: var(--accent); color: #fff; font-weight: 600;
}
.seg > button.on:hover { background: var(--accent-d); color: #fff; }

.tb-input {
  height: 26px; padding: 0 9px;
  background: var(--panel); border: 1px solid var(--line-strong);
  border-radius: 4px; color: var(--tx); font-size: 12.5px;
}
.tb-input::placeholder { color: var(--tx-4); }
.tb-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }

/* ==========================================================================
   4. 内容区
   ========================================================================== */
.content {
  flex: 1 1 auto; min-height: 0;
  position: relative;
  overflow: hidden;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  display: flex; flex-direction: column;
  min-height: 0; overflow: hidden;
}
.panel.grow { flex: 1 1 auto; }
.panel-head {
  flex: 0 0 32px; height: 32px;
  display: flex; align-items: center; gap: 8px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line-2);
  background: var(--panel-3);
}
.panel-title { font-size: 12.5px; font-weight: 700; color: var(--tx); }
.panel-title::before {
  content: ""; display: inline-block;
  width: 3px; height: 12px; border-radius: 2px;
  background: var(--accent); margin-right: 7px; vertical-align: -1px;
}
.panel-sub { font-size: 11.5px; color: var(--tx-3); }
.panel-body { flex: 1 1 auto; min-height: 0; position: relative; }

/* ---------- 图表 ---------- */
.chart { width: 100%; height: 100%; }

/* ---------- 龙头周期：折线图 + 左侧排名浮层 ---------- */
.cycle-wrap { position: relative; width: 100%; height: 100%; }
/* ---------- 龙头周期：左侧浮层个股列表 ----------
   客户端是 matplotlib 直接把行文本画在坐标轴上：**没有底板、不挡折线**。
   网页版同样做到：容器完全透明 + 整体 pointer-events:none（只有行本身可点），
   这样折线图既不被遮住，鼠标在行间空隙仍能触发图表联动。 */
.dragon-list-wrap {
  position: absolute; left: 8px; top: 8px; bottom: 10px;
  width: 344px; max-width: 31%;
  background: var(--panel-2);
  border: 1px solid var(--line-strong); border-radius: 7px;
  box-shadow: 0 8px 22px rgba(10, 18, 28, .18);
  display: flex; flex-direction: column;
  z-index: 8; overflow: hidden;
  pointer-events: none;                 /* 让鼠标穿透到折线图 */
}
.dragon-list-head {
  padding: 8px 10px 7px;
  font-size: 12.5px; font-weight: 700; color: var(--tx);
  border-bottom: 1px solid var(--line);
  background: var(--panel-3);
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dragon-list-title { min-width: 0; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; }
.dragon-list-toggle {
  flex: 0 0 auto; padding: 2px 6px; border: 1px solid var(--line-strong);
  border-radius: 4px; color: var(--tx-2); background: var(--panel);
  cursor: pointer; pointer-events: auto; font: 11px var(--font); line-height: 18px;
}
.dragon-list-toggle:hover { color: var(--accent-d); border-color: var(--accent); background: var(--accent-soft); }
.dragon-list-body {
  flex: 1 1 auto; overflow: auto;
  padding: 5px 5px 8px;
  background: var(--panel-2);
}
.dl-row {
  display: flex; align-items: baseline;
  padding: 3px 5px;
  font-size: 11.5px; line-height: 16px;
  cursor: pointer; border-radius: 3px;
  white-space: nowrap; overflow: hidden;
  transition: background .12s, opacity .12s;
  pointer-events: auto;                 /* 行本身可点击/悬停 */
}
/* 「显示热点」客户端截图为红字 */
.toolbar .btn.hot-red { color: #d92b2b; font-weight: 700; }
.toolbar .btn.hot-red.on { color: #d92b2b; }
.dl-row:hover { background: rgba(255, 140, 0, 0.18); }
/* 客户端：非高亮行 alpha=0.22（同一只股颜色变淡），高亮行 alpha=1 */
.dl-row.dim { opacity: 0.22; }
.dl-row .dl-idx {
  width: 20px; flex: 0 0 20px;
  font-family: var(--mono); text-align: right; padding-right: 5px;
  opacity: .85;
}
.dl-row .dl-name {
  width: 64px; flex: 0 0 64px;
  font-weight: 700; overflow: hidden; text-overflow: ellipsis; cursor: pointer;
}
.dl-row .dl-name:hover { text-decoration: underline; filter: brightness(1.18); }
.dl-row .dl-pct {
  width: 58px; flex: 0 0 58px;
  font-family: var(--mono); font-weight: 700; text-align: right;
}
.dl-row .dl-today {
  width: 56px; flex: 0 0 56px;
  font-family: var(--mono); text-align: right; opacity: .9;
}
.dl-row .dl-tag {
  flex: 1 1 auto; margin-left: 5px;
  font-size: 10.5px; color: var(--tx-2);
  overflow: hidden; text-overflow: ellipsis;
}

.dragon-list-wrap.is-collapsed { width: 44px; max-width: 44px; }
.dragon-list-wrap.is-collapsed .dragon-list-head {
  height: 100%; box-sizing: border-box; padding: 8px 4px;
  align-items: flex-start; justify-content: center; border-bottom: 0;
}
.dragon-list-wrap.is-collapsed .dragon-list-title,
.dragon-list-wrap.is-collapsed .dragon-list-body { display: none; }
.dragon-list-wrap.is-collapsed .dragon-list-toggle { writing-mode: vertical-rl; padding: 6px 3px; }

/* 个股资料 iframe：主图与资料按 70/30 分区，资料页只在用户点开后占位。 */
.dragon-profile-panel {
  flex: 0 0 30%; min-height: 180px;
}
.dragon-profile-panel .panel-head { flex-basis: 30px; height: 30px; }
.dragon-profile-close {
  margin-left: auto; padding: 2px 9px; border: 1px solid var(--line-strong);
  border-radius: 4px; color: var(--tx-2); background: var(--panel);
  font: 11px var(--font); line-height: 18px; cursor: pointer;
}
.dragon-profile-open {
  padding: 2px 9px; border: 1px solid var(--line-strong); border-radius: 4px;
  color: var(--tx-2); background: var(--panel); font: 11px var(--font);
  line-height: 18px; text-decoration: none; cursor: pointer;
}
.dragon-profile-open:hover { color: var(--accent-d); border-color: var(--accent); background: var(--accent-soft); }
.dragon-profile-close:hover { color: var(--accent-d); border-color: var(--accent); background: var(--accent-soft); }
.dragon-profile-frame-wrap { position: relative; width: 100%; height: 100%; min-height: 0; background: var(--panel); }
.dragon-profile-frame { display: block; width: 100%; height: 100%; min-height: 0; border: 0; background: #fff; }

@media (max-width: 1250px) {
  .dragon-list-wrap { width: 300px; max-width: 28%; }
}
@media (max-width: 980px) {
  .dragon-list-wrap { width: 270px; max-width: 31%; }
}

/* ---------- 表格 ---------- */
.tbl-wrap { width: 100%; height: 100%; overflow: auto; }
table.tbl {
  border-collapse: separate; border-spacing: 0;
  width: 100%; font-size: 12px;
}
table.tbl th {
  position: sticky; top: 0; z-index: 2;
  background: var(--panel-3);
  color: var(--tx-2); font-weight: 600;
  text-align: left; white-space: nowrap;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line-2);
}
table.tbl td {
  padding: 5px 8px;
  border-bottom: 1px solid var(--line-2);
  border-right: 1px solid var(--line-2);
  white-space: nowrap; color: var(--tx);
}
table.tbl tbody tr:nth-child(even) td { background: #fbfcfe; }
table.tbl tbody tr:hover td { background: var(--accent-soft); }
table.tbl td.num { text-align: right; font-family: var(--mono); }
table.tbl td.code { font-family: var(--mono); color: var(--tx-2); }
.up   { color: var(--up)   !important; }
.down { color: var(--down) !important; }
.flat { color: var(--flat) !important; }

/* 龙头全景：6 周期卡片网格 */
.panorama {
  flex: 1 1 auto; min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 8px;
  overflow: hidden;
}
@media (max-width: 1180px) { .panorama { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); } }
.pano-card { display: flex; flex-direction: column; min-height: 0; }
.pano-card .pano-badge {
  font-family: var(--mono); font-size: 11px;
  background: var(--accent-soft); color: var(--accent-d);
  border: 1px solid var(--accent-line); border-radius: 3px;
  padding: 0 5px; margin-left: auto;
}

/* ---------- 占位 / 说明 ---------- */
.ph {
  flex: 1 1 auto; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.ph-box {
  max-width: 860px; width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 18px 22px;
}
.ph-title { font-size: 15px; font-weight: 700; margin: 0 0 4px; }
.ph-desc  { font-size: 12.5px; color: var(--tx-2); margin: 0 0 14px; line-height: 1.6; }
.ph-sub   { font-size: 12px; font-weight: 700; color: var(--tx-2); margin: 14px 0 6px; }
.ph-list  { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--tx-2); line-height: 1.75; }
.ph-list li::marker { color: var(--accent); }
.ph-tags  { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ph-tag {
  font-size: 11.5px; padding: 2px 8px; border-radius: 10px;
  background: var(--panel-3); border: 1px solid var(--line);
  color: var(--tx-2);
}
.ph-tag.ok   { background: var(--down-soft); border-color: #b9e5cd; color: var(--down); }
.ph-tag.warn { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-d); }
.ph-tag.no   { background: var(--up-soft); border-color: #f5c3c0; color: var(--up); }

/* ---------- 日志 ---------- */
.logbar {
  flex: 0 0 auto; max-height: 108px; overflow: auto;
  background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--mono); font-size: 11.5px; line-height: 1.6;
  padding: 6px 10px; color: var(--tx-2);
}
.logbar .lg-b { color: var(--info); }
.logbar .lg-g { color: var(--down); }
.logbar .lg-r { color: var(--up); }
.logbar .lg-y { color: var(--accent-d); }
.logbar .lg-t { color: var(--tx-4); }

/* ---------- 加载蒙版 ---------- */
.mask {
  position: absolute; inset: 0; z-index: 60;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(1.5px);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 10px;
}
.mask.hide { display: none; }
.spinner {
  width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid var(--accent-line);
  border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.mask-text { font-size: 12.5px; color: var(--tx-2); }

/* ---------- Toast ---------- */
.toast-wrap {
  position: fixed; top: 96px; right: 18px; z-index: 200;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  border-radius: 5px;
  box-shadow: var(--shadow-2);
  padding: 8px 14px; font-size: 12.5px; color: var(--tx);
  max-width: 340px;
  animation: toastIn .18s ease-out;
}
.toast.ok   { border-left-color: var(--down); }
.toast.err  { border-left-color: var(--up); }
@keyframes toastIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(20, 28, 40, .34);
  display: flex; align-items: center; justify-content: center;
}
.modal {
  background: var(--panel); border-radius: 8px;
  box-shadow: 0 16px 48px rgba(16, 26, 40, .22);
  min-width: 380px; max-width: 92vw; max-height: 88vh;
  display: flex; flex-direction: column; overflow: hidden;
}
.modal-head {
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center;
}
.modal-body { padding: 16px; overflow: auto; font-size: 12.5px; line-height: 1.7; color: var(--tx-2); }
.modal-foot {
  padding: 10px 16px; border-top: 1px solid var(--line);
  display: flex; justify-content: flex-end; gap: 8px;
  background: var(--panel-2);
}

/* ==========================================================================
   5. 情绪截面（tab_1_home_vc）
   ========================================================================== */
.sent {
  flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.sent-row { display: flex; gap: 8px; min-height: 0; }
.sent-row.top { flex: 1 1 auto; min-height: 0; }
.sent-row.bot { flex: 1 1 auto; min-height: 0; }
.sent-col { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.sent-col.w-1 { flex: 0 0 40%; }
.sent-col.w-2 { flex: 1 1 auto; }
.sent-col.w-3 { flex: 0 0 392px; }
/* 三率横幅：单行更紧凑（标签 + 分子/分母 + 大百分比同一行） */
.sent .rate-line { display: flex; align-items: center; gap: 8px; }
/* 情绪截面的表格列宽由 col.width 固定，需 table-layout:fixed 才不被压扁 */
.sent table.tbl { table-layout: fixed; }
.sent table.tbl td { white-space: normal; vertical-align: top; }

/* 三格统计：涨停率 / 炸板率 / 跌停率 */
.stat3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 8px; }
.stat3 .s1 {
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 5px; padding: 6px 8px; text-align: center;
}
.stat3 .s1 .lb { font-size: 11.5px; color: var(--tx-3); }
.stat3 .s1 .fr { font-family: var(--mono); font-size: 12px; color: var(--tx-2); margin-top: 2px; }
.stat3 .s1 .vv { font-family: var(--mono); font-size: 17px; font-weight: 700; margin-top: 1px; }
.stat3 .s1.up   .vv { color: var(--up); }
.stat3 .s1.down .vv { color: var(--down); }
.stat3 .s1.warn .vv { color: var(--accent-d); }

/* 板块逻辑卡片 */
.plate-cards {
  flex: 1 1 auto; min-height: 0; overflow: auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 6px; padding: 8px;
  align-content: start;
}
.pc {
  background: var(--panel-2); border-radius: 5px; padding: 6px 8px;
  color: var(--tx); font-size: 11.5px; line-height: 1.45;
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
}
.pc .pc-top { display: flex; align-items: baseline; gap: 6px; margin-bottom: 3px; }
.pc .pc-name { font-weight: 700; font-size: 12.5px; color: var(--tx); }
.pc .pc-num  { font-family: var(--mono); font-size: 11px; margin-left: auto; }
.pc .pc-num.up   { color: var(--up); }
.pc .pc-num.down { color: var(--down); }
.pc .pc-desc { color: var(--tx-2); }

/* 智能选股快选块 */
.qk-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; padding: 8px; }
.qk {
  border: 1px solid var(--line); border-radius: 4px; background: var(--panel-2);
  padding: 5px 7px; text-align: center; font-size: 11.5px; color: var(--tx-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.qk:hover { border-color: var(--accent); color: var(--accent-d); background: var(--accent-soft); }
.qk.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }

/* ---------- 涨停简图（题材为列，层级为行） ---------- */
.brief-wrap { width: 100%; height: 100%; overflow: auto; padding: 8px; }
table.brief { border-collapse: collapse; width: 100%; font-size: 12px; }
table.brief th, table.brief td {
  border: 1px solid var(--line); padding: 5px 7px;
  vertical-align: top; text-align: left;
}
table.brief thead th {
  background: var(--panel-3); text-align: center; font-weight: 700;
  color: var(--tx); position: sticky; top: 0; z-index: 2;
}
table.brief td.rowlab {
  background: var(--accent-soft); color: var(--accent-d);
  font-weight: 700; text-align: center; white-space: nowrap; width: 78px;
  position: sticky; left: 0; z-index: 1;
}
table.brief thead th.rowlab { z-index: 3; }
table.brief td.lg { color: var(--tx-2); font-size: 11.5px; line-height: 1.5; max-width: 210px; white-space: normal; }
table.brief td.num { font-family: var(--mono); text-align: center; }
table.brief td.stklist { font-size: 11.5px; line-height: 1.65; white-space: normal; min-width: 150px; }
table.brief .stk { display: inline-block; margin: 0 7px 2px 0; white-space: nowrap; color: var(--tx); }
table.brief .stk.hot { color: var(--accent-d); font-weight: 700; }
table.brief tbody tr:hover td:not(.rowlab) { background: #fbfcfe; }

/* ---------- 左右两栏（涨停分布） ---------- */
.duo { flex: 1 1 auto; min-height: 0; display: flex; gap: 8px; }
.duo > .panel { flex: 1 1 0; min-width: 0; }
.tbl-sub {
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; color: var(--tx-2); padding: 5px 9px;
  background: var(--panel-3); border-bottom: 1px solid var(--line-2);
}
.tbl-sub b { color: var(--accent-d); font-family: var(--mono); }

/* ---------- 情绪速览 ---------- */
.ovw { flex: 1 1 auto; min-height: 0; display: flex; gap: 8px; }
.ovw-side { flex: 0 0 214px; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.ovw-mid  { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ovw-tags { display: flex; flex-wrap: wrap; gap: 5px; padding: 8px; align-content: flex-start; overflow: auto; }
.ovw-tag {
  border: 1px solid var(--line); border-radius: 4px; background: var(--panel-2);
  padding: 3px 8px; font-size: 11.5px; color: var(--tx-2); white-space: nowrap;
}
.ovw-tag.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.ovw-num { font-family: var(--mono); font-size: 11px; color: var(--tx-3); margin-left: 4px; }

/* ==========================================================================
   6. 大盘周期（tab_15_vc2）
   ========================================================================== */
/* ---- 大盘周期（tab_15_vc2 / view2）----
   三图纵排（情绪 / 大盘 / 涨跌家数柱）+ 右侧两块固定信息栏 */
.mk { flex: 1 1 auto; min-height: 0; display: flex; gap: 6px; }
.mk-main { flex: 1 1 auto; min-width: 420px; display: flex; flex-direction: column; gap: 8px; }
.mk-emo  { flex: 1.05 1 0; min-height: 0; }
.mk-line { flex: 0.8 1 0; min-height: 0; }
.mk-bar  { flex: 1.05 1 0; min-height: 0; }
.mk-main .panel-body { padding: 2px 4px; }
.mk-main .chart { width: 100%; height: 100%; }
.mk-side { flex: 0 0 236px; min-width: 170px; max-width: 420px; display: flex; flex-direction: column; gap: 8px; }
.mk-splitter {
  flex: 0 0 6px; position: relative; z-index: 2; cursor: col-resize;
  touch-action: none; outline: none;
}
.mk-splitter::after {
  content: ""; position: absolute; inset: 0 2px; border-radius: 3px;
  background: var(--line-strong); opacity: .45; transition: opacity .15s, background .15s;
}
.mk-splitter:hover::after, .mk-splitter:focus-visible::after, .mk-splitter.dragging::after {
  background: var(--accent); opacity: .95;
}
.mk-info-p { flex: 0 0 auto; }
.mk-info-p .panel-body { padding: 8px 10px; }
.mk-info { font-size: 12.5px; line-height: 1.9; }
.mk-date { font-size: 12px; font-weight: 700; color: var(--accent-d); margin-bottom: 2px; }
.mk-row { display: flex; justify-content: space-between; gap: 8px; }
.mk-row .k { color: var(--tx-3); }
.mk-row .v { font-family: var(--mono); font-weight: 700; }

/* 客户端配色 → 亮色主题可读等价（语义不变：红涨/绿跌/橙热度/黄炸板） */
.c-red  { color: var(--up) !important; }
.c-grn  { color: #0f9d54 !important; }
.c-yel  { color: #bf8a00 !important; }
.c-hot  { color: var(--accent-d) !important; }
.c-g50  { color: #2a9d4a !important; }
.c-gold { color: #c08a00 !important; }
.c-pur  { color: #8a4fd8 !important; }
.c-gry  { color: var(--flat) !important; }

/* 大盘周期表 */
.mk-tbl { height: 68vh; overflow: auto; }
.modal.mk-table-modal { width: min(1120px, 94vw); max-width: 94vw; }
.mk-table-modal .modal-body { padding: 12px; }
.mk-table-modal { forced-color-adjust: none; }
.mk-tbl table.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.mk-table-modal .mk-tbl table.tbl th {
  position: sticky; top: 0; z-index: 2; background: var(--panel-2);
  color: var(--tx); font-weight: 700; padding: 6px 8px;
  border-bottom: 1px solid var(--line-strong); white-space: nowrap; text-align: center;
}
/* 行高：客户端 setRowHeight(28)（IS_WIN）；所有单元格 AlignCenter。
   选择器必须写成 `.mk-tbl table.tbl td` 才压得住通用 `table.tbl td{padding}`。 */
.mk-tbl table.tbl td {
  height: 27px; padding: 0 8px; text-align: center;
  white-space: nowrap; border-bottom: 1px solid var(--line-2); background: var(--panel);
}
.mk-tbl table.tbl td.num { text-align: center; font-family: var(--mono); }
.mk-tbl table.tbl td.mk-tone-default { color: var(--tx) !important; }
.mk-tbl table.tbl td.mk-tone-up { color: var(--up) !important; }
.mk-tbl table.tbl td.mk-tone-down { color: var(--down) !important; }
.mk-tbl table.tbl td.mk-tone-warn { color: var(--mk-warn) !important; }
.mk-tbl table.tbl td.mk-tone-orange { color: var(--mk-orange) !important; }
.mk-tbl table.tbl td.mk-tone-purple { color: var(--mk-purple) !important; }
.mk-tbl table.tbl td.mk-tone-muted { color: var(--tx-3) !important; }
.mk-table-modal .mk-tbl table.tbl tbody tr:not(.ph-after) > td { background: var(--panel) !important; }
.mk-table-modal .mk-tbl table.tbl tbody tr:nth-child(even):not(.ph-after) > td { background: var(--panel-2) !important; }
/* 周一占位分隔行（客户端 PlaceholderBorderDelegate + setRowHeight(10)）：
   落在「周一那一行的下方」，满宽 10px #808080 实心带 + 左右各 2px 边框。
   用行底实心边框而不是 <tr><td colspan=10>，绕开浏览器对 colspan 空单元格
   的行高/宽度计算（实测会被算成 4px 宽、32px 高）。 */
.mk-table-modal .mk-tbl table.tbl tbody tr.ph-after > td {
  background: var(--panel) !important; border-bottom: 10px solid var(--line-strong);
}
.mk-table-modal .mk-tbl table.tbl tbody tr.ph-after > td:first-child { border-left: 2px solid var(--line-strong); }
.mk-table-modal .mk-tbl table.tbl tbody tr.ph-after > td:last-child { border-right: 2px solid var(--line-strong); }
.mk-table-modal .mk-tbl table.tbl tbody tr:not(.ph-after):hover > td { background: var(--accent-soft) !important; }

/* 数据修复 */
.mk-tip {
  color: var(--tx-2); font-size: 12.5px; line-height: 1.7; padding: 8px 10px;
  background: var(--panel-3); border-radius: 4px; margin-bottom: 10px;
}
.mk-group { border: 1px solid var(--line-strong); border-radius: 6px; padding: 10px 12px; }
.mk-group-t { font-size: 13px; font-weight: 700; color: var(--tx); margin-bottom: 8px; }
.mk-row-line { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; }
.mk-msg {
  margin: 8px 0; padding: 8px 10px; border-radius: 4px; font-size: 12.5px;
  color: var(--accent-d); background: var(--accent-soft);
}
.mk-msg.bad { color: var(--up); background: var(--up-soft); }
.mk-cal { display: inline-block; }
.mk-cal-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; margin-bottom: 4px; }
.mk-cal-grid { display: grid; grid-template-columns: repeat(7, 30px); gap: 2px; }
.mk-cal-w { text-align: center; font-size: 11.5px; color: var(--tx-3); }
.mk-cal-d {
  text-align: center; font-size: 12px; line-height: 26px; height: 26px;
  border: 1px solid var(--line); border-radius: 3px; cursor: pointer; background: var(--panel);
}
.mk-cal-d.empty { border: none; background: none; cursor: default; }
.mk-cal-d.wk { color: var(--up); }
.mk-cal-d:hover { background: var(--accent-soft); }
.mk-cal-d.sel { background: var(--accent); color: #fff; border-color: var(--accent-d); }

/* 说明 */
.mk-desc p { margin: 0 0 8px; font-size: 13px; line-height: 1.8; }
.mk-desc p:last-child { color: var(--tx-3); }

/* ==========================================================================
   7. 题材周期 / 题材线 / 主线周期（选股宝体系）
   ========================================================================== */
.tc { flex: 1 1 auto; min-height: 0; display: flex; gap: 8px; }
.tc-l { flex: 0 0 46%; min-width: 0; }
.tc-m { flex: 1 1 auto; min-width: 0; }
.tc-r { flex: 0 0 226px; min-width: 0; }
.tc-l, .tc-m, .tc-r { display: flex; flex-direction: column; }
/* 题材聚合表：列宽固定，避免「板块逻辑」被挤成逐字竖排 */
.tc-l table.tbl { table-layout: fixed; }
.tc-l table.tbl td { white-space: normal; vertical-align: top; overflow-wrap: anywhere; }
.src-name { font-size: 11.5px; color: var(--tx-3); }
.agg-name { font-weight: 600; color: var(--tx); }
.agg-sub  { font-size: 11px; color: var(--tx-3); }
.pill {
  display: inline-block; font-family: var(--mono); font-size: 11px;
  padding: 0 5px; border-radius: 3px; background: var(--panel-3);
  border: 1px solid var(--line); color: var(--tx-2);
}
.pill.up   { background: var(--up-soft);   border-color: #f5c3c0; color: var(--up); }
.pill.down { background: var(--down-soft); border-color: #b9e5cd; color: var(--down); }
.pill.hot  { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-d); }
.boards { font-family: var(--mono); font-size: 11px; color: var(--accent-d); }

/* ---- 题材周期（tab_6_2_vc 1:1 重写版） ---- */
.tc-p1 { flex: 0 0 336px; }
.tc-p1 .panel-body { overflow: auto; }
.tc-p1 table.tbl { table-layout: fixed; }
.tc-p1 table.tbl th:nth-child(1), .tc-p1 table.tbl td:nth-child(1) { width: 36px; }
.tc-p1 table.tbl th:nth-child(2), .tc-p1 table.tbl td:nth-child(2) { width: 110px; }
.tc-p1 table.tbl th:nth-child(3), .tc-p1 table.tbl td:nth-child(3) { width: 64px; }
.tc-p1 table.tbl tbody tr { cursor: pointer; }
.tc-p1 table.tbl tbody tr.sel td { background: var(--accent-soft); }
.tc-p1 table.tbl tbody tr.sel td:nth-child(2) { color: var(--accent-d); font-weight: 700; }
.tc-topic-label { font-size: 12.5px; font-weight: 700; color: #e07800; }
.tc-empty { padding: 18px 14px; font-size: 12.5px; color: var(--tx-3); }
.tc-m .panel-body { overflow: auto; }
.tc-matrix { border-collapse: collapse; font-size: 12.5px; table-layout: fixed; }
.tc-matrix th, .tc-matrix td {
  border: 1px solid var(--line-strong); padding: 5px 8px; vertical-align: top;
}
.tc-matrix thead th {
  position: sticky; top: 0; z-index: 2; background: var(--panel-2);
  font-weight: 700; text-align: center; white-space: nowrap;
}
.tc-matrix th.rowlab, .tc-matrix td.rowlab {
  position: sticky; left: 0; z-index: 1; width: 76px; min-width: 76px;
  background: var(--panel-2); font-weight: 700; text-align: center; white-space: nowrap;
}
.tc-matrix thead th.rowlab { z-index: 3; }
.tc-matrix td { width: 190px; min-width: 190px; }
.tc-matrix td.num { text-align: center; font-family: var(--mono); font-weight: 600; }
.tc-matrix td.tc-count { color: var(--tx); }
.tc-matrix td.tc-amt { color: #e00000; font-weight: 700; }
.tc-matrix td.tc-logic { color: var(--tx-2); white-space: pre-wrap; line-height: 1.55; }
.tc-matrix td.tc-cell { white-space: pre-wrap; line-height: 1.75; }
.stkline { cursor: pointer; }
.stkline:hover { text-decoration: underline; }
.stkline.c30 { color: #e08900; font-weight: 600; }
.stkline.c68 { color: #189fcc; font-weight: 600; }
.stkline.cbj { color: #3d76e8; font-weight: 600; }
.tc-stock div { margin-bottom: 5px; font-size: 12.5px; }
.tc-stock-desc { color: var(--tx-2); white-space: pre-wrap; }

/* 周期折线图弹窗 */
.tc-curve-body { display: flex; flex-direction: column; gap: 8px; }
.tc-curve-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tc-dlg-btn.on { background: var(--accent); border-color: var(--accent-d); color: #fff; }
.tc-curve-wrap { position: relative; height: 66vh; min-width: 900px; }
.tc-curve-chart { position: absolute; inset: 0; }
.tc-cross {
  position: absolute; top: 0; bottom: 0; width: 0; display: none; pointer-events: none;
  border-left: 1px dashed #ff8c00; z-index: 3;
}
.tc-curve-info {
  position: absolute; top: 8px; left: 60px; z-index: 4; display: none; pointer-events: none;
  background: rgba(255,255,255,.93); border: 1px solid var(--line-strong); border-radius: 6px;
  padding: 7px 10px; font-size: 11px; line-height: 1.65; max-width: 300px;
  box-shadow: 0 2px 10px rgba(20,30,50,.08);
}
.tc-curve-info .ci-date { font-weight: 700; font-size: 12px; color: var(--tx); }
.tc-curve-info .ci-meta { color: #d98c00; font-weight: 600; }
.tc-curve-info .ci-logic { color: #d98c00; max-width: 280px; white-space: normal; }
.tc-curve-info .ci-row { font-family: var(--mono); white-space: nowrap; }
.tc-curve-loading {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--tx-2); background: rgba(255,255,255,.7); z-index: 5;
}
.tc-repair { min-width: 340px; }
.tc-repair-list { max-height: 46vh; overflow: auto; margin-top: 8px; }
.tc-repair-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 4px 2px; border-bottom: 1px dashed var(--line-2); font-size: 12.5px;
  font-family: var(--mono);
}
.tc-howto p { margin: 0 0 8px; font-size: 13px; line-height: 1.8; }
.tc-howto p.tip { color: #2f6fd0; font-weight: 700; }
.tc-howto p.note { color: var(--tx-3); }

/* ==========================================================================
   8. 百日新高（tab_20_vc / tab_20_view 1:1）
   ========================================================================== */
.nh { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
/* Table1+Table2 共享水平滚动（客户端 _connect_scroll_sync） */
.nh-scroll { flex: 1 1 auto; min-height: 0; overflow: auto; display: flex; flex-direction: column; }
.nh-t1 { flex: 0 0 auto; }
.nh-t2 { flex: 1 1 auto; min-height: 120px; overflow: visible; }
.nh-grid { display: grid; width: max-content; min-width: 100%; border-top: 1px solid var(--line-2); }
.nh-h {
  position: sticky; top: 0; z-index: 3; padding: 5px 8px; font-size: 12px; font-weight: 600;
  color: var(--tx-2); background: var(--panel-2); border-bottom: 1px solid var(--line-2);
  white-space: nowrap; font-family: var(--mono);
}
.nh-rank {
  position: sticky; left: 0; z-index: 2; padding: 5px 8px; font-size: 12px; font-weight: 700;
  color: var(--accent-d); background: var(--panel-2); border-bottom: 1px solid var(--line-2);
  font-family: var(--mono); text-align: center;
}
.nh-c {
  padding: 5px 8px; font-size: 12.5px; border-bottom: 1px solid var(--line);
  white-space: nowrap; cursor: pointer; display: flex; align-items: center; gap: 3px;
  background: var(--panel);
}
.nh-c:hover { background: var(--panel-2); }
.nh-c .nh-cn { font-weight: 600; }
.nh-c .nh-ct { font-family: var(--mono); font-weight: 700; }
/* 选中板块：橙色底白字（客户端 #FF8C00 高亮，全部日期列追踪） */
.nh-c.sel { background: #FF8C00 !important; color: #fff; }
.nh-c.sel .nh-ct { color: #fff; }
.nh-c.hl { background: var(--accent-soft); }
/* 个股单元格：代码 名称 涨幅 */
.nh-stk { gap: 5px; }
.nh-code { font-family: var(--mono); font-size: 11.5px; }
.nh-name { overflow: hidden; text-overflow: ellipsis; }
/* StockColorHelper：30→橙 688→青 4/8/9→蓝 */
.sc-gem { color: #d97a00; }
.sc-star { color: #0288c8; }
.sc-bj { color: #3d6fd4; }
/* 单日模式 Table3（十三列） */
.nh-t3-head { display: flex; align-items: baseline; gap: 10px; padding: 6px 8px; border-bottom: 1px solid var(--line-2); background: var(--panel-2); position: sticky; top: 0; z-index: 3; }
.nh-t3-head b { font-size: 13px; }
.nh-t3-head span { font-size: 11.5px; color: var(--tx-3); }
.nh-t3 { width: max-content; min-width: 100%; }
.nh-t3-row { display: grid; grid-template-columns: 44px 68px 92px 76px 76px minmax(200px, 1fr) 90px 90px 90px 90px 80px 90px 90px; border-bottom: 1px solid var(--line); }
.nh-t3-row.nh-t3-h { position: sticky; top: 0; z-index: 2; background: var(--panel-2); font-weight: 600; color: var(--tx-2); font-size: 12px; }
.nh-t3-c { padding: 5px 8px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nh-t3-c.r { text-align: right; font-family: var(--mono); }
.nh-t3-c.nh-concept { color: var(--tx-2); }
/* 弹窗（周期图 / 趋势图 / RPS） */
.nh-dlg { display: flex; flex-direction: column; gap: 8px; }
.nh-dlg-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.modal.nh-chart-modal {
  width: min(1600px, 96vw); min-width: min(380px, 96vw); max-width: 96vw;
  height: min(92vh, 1100px); max-height: 94vh;
}
.nh-chart-modal-body { display: flex; flex: 1 1 auto; min-height: 0; overflow: hidden; padding: 12px; }
.nh-chart-dialog { width: 100%; height: 100%; min-height: 0; overflow: hidden; }
.nh-chart-dialog > .nh-dlg-bar { flex: 0 0 auto; }
.nh-rankings { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; flex: 0 0 auto; min-height: 30px; }
.nh-rank-caption { color: var(--tx-2); font-size: 12px; font-weight: 700; margin-right: 2px; white-space: nowrap; }
.nh-rank-chip {
  display: inline-flex; align-items: center; gap: 7px; min-width: 0; padding: 4px 9px;
  border: 1px solid var(--line); border-left: 3px solid var(--nh-rank-color, var(--accent));
  border-radius: 5px; background: var(--panel-2); color: var(--tx-2); cursor: pointer;
  font: inherit; font-size: 12px; line-height: 1.25;
}
.nh-rank-chip b { color: var(--nh-rank-color, var(--accent)); font-family: var(--mono); }
.nh-rank-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nh-rank-chip strong { color: var(--tx); font-family: var(--mono); white-space: nowrap; }
.nh-rank-chip:hover, .nh-rank-chip.active { background: var(--accent-soft); border-color: var(--nh-rank-color, var(--accent)); }
.nh-chart-canvas { flex: 1 1 auto; width: 100%; min-height: 220px; height: auto; }
.nh-cycle-chart-shell { position: relative; flex: 1 1 auto; min-height: 220px; width: 100%; overflow: hidden; }
.nh-cycle-chart-shell > .nh-chart-canvas { height: 100%; min-height: 0; }
.nh-trend-summary { flex: 0 0 auto; color: var(--accent-d); font-size: 12px; font-weight: 700; padding: 2px 4px; }
.nh-stock-dialog .nh-failed { flex: 0 0 auto; }
.nh-stock-rankings .nh-rank-chip { max-width: min(31%, 300px); }
@media (max-width: 760px) {
  .modal.nh-chart-modal { width: 96vw; min-width: 0; height: 94vh; max-height: 94vh; }
  .nh-chart-modal-body { padding: 8px; }
  .nh-dlg-bar { gap: 5px; }
  .nh-chart-canvas { min-height: 180px; }
  .nh-stock-rankings .nh-rank-chip { max-width: 100%; }
}
.nh-failed { white-space: pre-wrap; color: #e74c3c; font-size: 12px; max-height: 64px; overflow: auto; }
.nh-thlab { font-size: 12px; color: var(--tx-2); white-space: nowrap; }
.nh-status { font-size: 12px; color: var(--tx-2); margin-left: 4px; white-space: nowrap; }
.nh-platebox { display: inline-flex; gap: 4px; padding: 2px 6px; border: 1px solid var(--line); border-radius: 6px; }
/* RPS 表 */
.nh-rps-head { display: flex; width: max-content; position: sticky; top: 0; z-index: 2; background: var(--panel-2); border-bottom: 1px solid var(--line-2); }
.nh-rps-hc { padding: 6px 8px; font-size: 12px; font-weight: 600; color: var(--tx-2); white-space: nowrap; }
.nh-rps-row { display: flex; width: max-content; border-bottom: 1px solid var(--line); }
.nh-rps-row.hot { background: var(--accent-soft); }
.nh-rps-c { padding: 5px 8px; font-size: 12px; font-family: var(--mono); white-space: nowrap; text-align: right; }
.nh-rps-c.rps-hot { color: #e74c3c; font-weight: 700; }
.nh-rps-c.rps-n { color: var(--tx-1); }
.nh-export { display: flex; flex-direction: column; gap: 8px; min-width: 320px; }
.nh-export-opt { display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.picker { display: flex; flex-wrap: wrap; gap: 5px; padding: 8px; align-content: flex-start; overflow: auto; max-height: 250px; }
.picker .pk {
  border: 1px solid var(--line); border-radius: 4px; background: var(--panel-2);
  padding: 3px 8px; font-size: 11.5px; color: var(--tx-2); white-space: nowrap;
}
.picker .pk.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.modal.wide { min-width: 1000px; max-width: 95vw; }

/* ==========================================================================
   人气热榜 / 龙虎榜 / 投资日历（亮色主题，1:1 复刻原 exe 布局）
   ========================================================================== */
.hot, .lhb, .cal { display: flex; flex-direction: column; height: 100%; min-height: 0; gap: 8px; }
.hot .tbl-wrap, .lhb .tbl-wrap { flex: 1 1 auto; min-height: 0; }

/* 排名徽标 */
.rk {
  display: inline-block; min-width: 20px; padding: 1px 5px; border-radius: 3px;
  background: var(--panel-2); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; color: var(--tx-2); text-align: center;
}
.rk.top { background: var(--accent-soft); border-color: var(--accent-line);
          color: var(--accent-d); font-weight: 700; }

/* 概念标签行 */
.tags { color: var(--tx-2); font-size: 11.5px; }

/* 详情弹窗键值列表 */
.dlg-kv { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--tx-1); }
.dlg-kv > div { line-height: 1.5; }

/* 龙虎榜：游资/机构标签小圆标 */
.tag-pill {
  display: inline-block; padding: 0 5px; margin-right: 3px; border-radius: 3px;
  font-size: 11px; line-height: 16px; border: 1px solid var(--line); background: var(--panel-2);
}
.tag-pill.money { color: var(--accent-d); border-color: var(--accent-line); background: var(--accent-soft); }
.tag-pill.org   { color: var(--up);       border-color: #f0c3bd;           background: var(--up-soft); }

/* 投资日历：三栏 */
.cal-body { flex: 1 1 auto; min-height: 0; display: flex; gap: 8px; }
.cal-l { flex: 0 0 300px; min-width: 0; display: flex; flex-direction: column; }
.cal-r { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.cal-r .panel { flex: 1 1 50%; min-height: 0; display: flex; flex-direction: column; }
.cal-day { font-family: var(--mono); font-size: 11.5px; color: var(--tx-3); white-space: nowrap; }
.cal-ev { font-size: 12px; color: var(--tx-1); }
.cal-new { display: inline-block; margin-left: 4px; padding: 0 4px; border-radius: 3px;
           background: var(--accent-soft); color: var(--accent-d); font-size: 10.5px; }
.cal-sel { background: var(--accent-soft) !important; }

/* 梯队周期 */
.ech { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.ech .tbl-wrap { flex: 1 1 auto; min-height: 0; }
.ech table.tbl tfoot td { font-weight: 700; border-top: 2px solid var(--line); }

/* 题材线 / 主线周期 */
.tl { flex: 1 1 auto; min-height: 0; display: flex; gap: 8px; }
.tl-l { flex: 0 0 44%; min-width: 0; display: flex; flex-direction: column; }
.tl-r { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.tl .tbl-wrap { flex: 1 1 auto; min-height: 0; }
.ml { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.ml .tbl-wrap { flex: 1 1 auto; min-height: 0; }

/* 板块精选 / 逻辑挖掘 */
.pl, .lg { flex: 1 1 auto; min-height: 0; display: flex; gap: 8px; }
.pl-l, .lg-l { flex: 0 0 42%; min-width: 0; display: flex; flex-direction: column; }
.pl-r, .lg-r { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.pl .tbl-wrap, .lg .tbl-wrap { flex: 1 1 auto; min-height: 0; }

/* AI 复盘 */
.ai { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.ai-body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 10px 12px; }
.ai-text {
  margin: 0; font-family: var(--mono); font-size: 12.5px; line-height: 1.85;
  color: var(--tx-1); white-space: pre-wrap; word-break: break-all;
}

/* ===================== 最强题材 (tab_1) ===================== */
.st { display: flex; flex-direction: column; gap: 10px; padding: 10px 12px; height: 100%; overflow: auto; }

.st-sum { display: flex; gap: 10px; flex-wrap: wrap; }
.st-sum-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 14px; min-width: 96px; box-shadow: var(--shadow-1);
}
.st-sum-v { font-size: 22px; font-weight: 700; line-height: 1.1; }
.st-sum-v.up { color: var(--up); }
.st-sum-v.down { color: var(--down); }
.st-sum-v.flat { color: var(--flat); }
.st-sum-k { font-size: 12px; color: var(--tx-3); margin-top: 2px; }
.st-sum-card.date .st-sum-v { font-size: 15px; color: var(--tx-2); }

.st-block-title { font-size: 13px; font-weight: 600; color: var(--tx-2); margin: 4px 0; }

.st-themes { display: flex; flex-wrap: wrap; gap: 8px; }
.st-tcard {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 6px 12px; cursor: pointer; min-width: 96px; text-align: center; transition: .12s;
}
.st-tcard:hover { border-color: var(--accent-line); }
.st-tcard.on { border-color: var(--accent); background: var(--accent-soft); }
.st-tcard-n { font-size: 13px; font-weight: 600; color: var(--tx); }
.st-tcard-c { font-size: 12px; color: var(--tx-3); margin-top: 2px; }

.st-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.st-col { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); min-height: 120px; }
.st-col-h { display: flex; justify-content: space-between; padding: 6px 10px; border-bottom: 1px solid var(--line-2);
  font-weight: 600; font-size: 13px; }
.st-col-h.up { color: var(--up); }
.st-col-h.down { color: var(--down); }
.st-col-h.flat { color: var(--flat); }
.st-col-n { color: var(--tx-3); font-weight: 400; }

.st-mix { display: flex; flex-wrap: wrap; gap: 8px; }
.st-scard {
  width: 122px; background: var(--panel); border: 1px solid var(--line); border-left-width: 3px;
  border-radius: var(--radius); padding: 6px 8px;
}
.st-scard.up { border-left-color: var(--up); }
.st-scard.down { border-left-color: var(--down); }
.st-scard.flat { border-left-color: var(--flat); }
.st-scard-l1 { display: flex; justify-content: space-between; font-size: 11px; color: var(--tx-3); }
.st-scard-t { font-family: var(--mono); }
.st-scard-p { font-weight: 700; }
.st-scard-p.up { color: var(--up); }
.st-scard-p.down { color: var(--down); }
.st-scard-p.flat { color: var(--flat); }
.st-scard-name { font-size: 13px; font-weight: 600; color: var(--tx); margin: 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-scard-con { font-size: 11px; color: var(--tx-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.st-tables { display: flex; flex-direction: column; gap: 8px; }
.st-state { padding: 1px 6px; border-radius: 3px; font-size: 11px; }
.st-state.up { color: var(--up); background: var(--up-soft); }
.st-state.down { color: var(--down); background: var(--down-soft); }
.st-state.flat { color: var(--flat); background: var(--panel-3); }

/* ---------- 最强题材 1:1 布局 ---------- */
.st-root { height: 100%; overflow: hidden; }
.st-layout { display: flex; height: 100%; gap: 8px; padding: 8px; box-sizing: border-box; }
.st-left, .st-center, .st-right { background: #fff; border: 1px solid var(--bd); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; }
.st-left { flex: 0 0 300px; }
.st-left.narrow { flex: 0 0 260px; }
.st-center { flex: 1 1 auto; min-width: 520px; }
.st-right { flex: 0 0 340px; }

.brief-left .tbl-wrap table { font-size: 11px; }
.brief-left .tbl-wrap th, .brief-left .tbl-wrap td { padding: 2px 4px; }
.brief-group-hd { font-size: 12px; font-weight: 700; color: var(--tx-2); padding: 4px 6px; background: #f5f5f5; border-left: 3px solid var(--ac); margin-top: 4px; }
.st-sec-title { padding: 8px 10px; font-size: 13px; font-weight: 700; color: var(--tx-1); background: #f8f8f8; border-bottom: 1px solid var(--bd); }

.st-stats { display: flex; align-items: center; gap: 6px; padding: 8px; background: #fafafa; border-bottom: 1px solid var(--bd); flex-wrap: wrap; }
.st-stat-btn { padding: 4px 10px; font-size: 12px; border: 1px solid var(--bd); border-radius: 3px; background: #fff; color: var(--tx-2); cursor: pointer; }
.st-stat-btn.active { background: var(--ac); color: #fff; border-color: var(--ac); }
.st-stat-card { display: flex; flex-direction: column; align-items: center; min-width: 64px; padding: 4px 8px; border: 1px solid var(--bd); border-radius: 3px; background: #fff; }
.st-stat-k { font-size: 11px; color: var(--tx-3); }
.st-stat-v { font-size: 15px; font-weight: 700; }
.st-stat-v.up { color: var(--up); }
.st-stat-v.warn { color: #e08a00; }
.st-stat-v.down { color: var(--down); }
.st-stat-sub { font-size: 10px; color: var(--tx-3); }

.st-cards { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; max-height: 110px; overflow-y: auto; }
.st-card { min-width: 90px; padding: 6px 8px; border: 1px solid var(--bd); border-radius: 4px; background: #fff; cursor: pointer; text-align: center; }
.st-card.on { background: var(--ac); border-color: var(--ac); }
.st-card.on .st-card-name, .st-card.on .st-card-count { color: #fff; }
.st-card-name { font-size: 12px; font-weight: 700; color: var(--tx-1); }
.st-card-count { font-size: 11px; color: var(--tx-3); }

.st-waterfall { flex: 1 1 auto; overflow: auto; padding: 0 8px; }
.st-witem { display: flex; align-items: center; gap: 6px; padding: 4px 0; border-bottom: 1px solid #f0f0f0; font-size: 12px; }
.st-wi-idx { width: 26px; text-align: right; color: var(--tx-3); }
.st-wi-tag { min-width: 54px; max-width: 66px; text-align: center; padding: 1px 4px; border-radius: 3px; font-size: 11px; font-weight: 600; }
.st-wi-tag.up { background: #ffecec; color: var(--up); }
.st-wi-tag.down { background: #eaf9ee; color: var(--down); }
.st-wi-name { width: 72px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-wi-pct { width: 58px; text-align: right; font-weight: 700; }
.st-wi-order { width: 64px; text-align: right; color: var(--tx-2); }
.st-wi-circ { width: 70px; text-align: right; color: var(--tx-2); }
.st-wi-time { width: 62px; text-align: center; color: var(--tx-3); }
.st-wi-concept { flex: 1 1 auto; color: var(--tx-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 60px; }

.st-tabs { display: flex; border-bottom: 1px solid var(--bd); }
.st-tab { flex: 1; text-align: center; padding: 7px 0; font-size: 13px; cursor: pointer; background: #f8f8f8; }
.st-tab.active { background: var(--ac); color: #fff; font-weight: 700; }
.st-right-body { flex: 1 1 auto; overflow: auto; }

/* ===================== 情绪截面 · 4 子视图 ===================== */
.sent { height: 100%; display: flex; flex-direction: column; }
.sent-row.top { flex: 1 1 auto; min-height: 0; display: flex; gap: 10px; }
.sent-col { min-height: 0; display: flex; }
.sent-col.w-1 { flex: 0 0 360px; }
.sent-col.w-2 { flex: 1 1 0; min-width: 0; }
.sent-col.w-3 { flex: 0 0 340px; }
.sent-col > .panel { width: 100%; }

.sec-title { font-size: 12px; font-weight: 700; color: var(--tx-2); margin: 2px 0 4px; }

/* 三率 */
.rt-row { display: flex; gap: 8px; }
.rt-card { flex: 1 1 0; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 6px 9px; }
.rt-lb { font-size: 11.5px; color: var(--tx-3); }
.rt-pct { font-family: var(--mono); font-size: 18px; font-weight: 800; line-height: 1.15; }
.rt-pct.up { color: var(--up); }
.rt-pct.warn { color: #e08a00; }
.rt-pct.down { color: var(--down); }
.rt-formula { font-family: var(--mono); font-size: 10.5px; color: var(--tx-3); }
.rt-yest { font-family: var(--mono); font-size: 10.5px; color: var(--tx-4); margin-top: 1px; }

/* 模式切换 */
.mode-row { display: flex; gap: 6px; }
.mode-btn { flex: 1; text-align: center; padding: 5px 0; font-size: 12px; cursor: pointer;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 5px; color: var(--tx-2); }
.mode-btn.active { background: var(--ac); color: #fff; font-weight: 700; border-color: var(--ac); }

/* 题材卡片 */
.theme-cards { display: flex; flex-wrap: wrap; gap: 6px; max-height: 120px; overflow: auto; }
.tcard { display: flex; align-items: baseline; gap: 4px; padding: 3px 9px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--panel-2); cursor: pointer; }
.tcard:hover { border-color: var(--ac); }
.tcard.on { background: var(--ac); border-color: var(--ac); }
.tcard.on .tcard-name, .tcard.on .tcard-n { color: #fff; }
.tcard-name { font-size: 12.5px; color: var(--tx-1); }
.tcard-n { font-size: 11px; color: var(--up); font-weight: 700; }

/* 时间瀑布 */
.wf-wrap { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 4px; }
.stk-state { font-size: 11.5px; font-weight: 700; padding: 0 4px; border-radius: 3px; }
.stk-state.up { color: var(--up); }
.stk-state.warn { color: #e08a00; }
.stk-state.down { color: var(--down); }

/* 右栏 涨停/炸板/跌停 */
.st-body { flex: 1 1 auto; min-height: 0; overflow: auto; }

/* 涨停分布矩阵 */
.dist-wrap { overflow: auto; height: 100%; background: var(--stt-panel); }
.dist-matrix { border-collapse: collapse; width: max-content; min-width: 100%; table-layout: fixed; }
.dist-matrix th, .dist-matrix td { border: 1px solid var(--line); padding: 3px 5px; font-size: 11px; vertical-align: top; }
.dist-matrix thead th { background: var(--panel-2); color: var(--tx-2); position: sticky; top: 0; z-index: 2; white-space: nowrap; min-width: 92px; }
.dist-matrix .rowlab { background: var(--panel-2); color: var(--tx-2); font-weight: 700; position: sticky; left: 0; z-index: 1; white-space: nowrap; width: 56px; }
.dist-matrix .num { text-align: right; font-family: var(--mono); }
.dist-matrix .amt { color: var(--up); font-weight: 700; }
.dist-matrix .lg { color: var(--tx-3); white-space: normal; max-width: 160px; }
.dist-matrix .stklist { white-space: normal; line-height: 1.65; }
.dist-matrix .stk { display: inline-block; margin: 0 4px 0 0; color: var(--tx-1); }
.dist-matrix .stk.hot { color: var(--up); font-weight: 700; }
.dist-matrix .stk-b { color: var(--tx-4); font-size: 10px; }

/* 涨停简图 · 连板梯队 */
.bk-block { display: flex; flex-direction: column; }
.bk-title { font-size: 12px; font-weight: 700; color: var(--tx-2); margin-bottom: 3px; }
.bk { color: var(--up); font-weight: 700; }
.big { font-size: 13px; font-weight: 800; color: var(--up); }

/* 情绪流 多列瀑布 */
.emo-wrap { display: flex; gap: 8px; height: 100%; overflow: auto; }
.emo-col { flex: 1 1 0; min-width: 150px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.emo-hd { padding: 5px 8px; font-size: 12.5px; font-weight: 700; color: #fff; }
.emo-hd.up { background: var(--up); }
.emo-hd.down { background: var(--down); }
.emo-hd.warn { background: #e08a00; }
.emo-hd.flat { background: var(--tx-4); }
.emo-list { flex: 1 1 auto; overflow: auto; padding: 4px 6px; }
.emo-item { display: flex; align-items: baseline; gap: 5px; padding: 2px 0; border-bottom: 1px dashed var(--line); font-size: 11.5px; }
.emo-idx { color: var(--tx-4); font-family: var(--mono); }
.emo-name { font-weight: 600; color: var(--tx-1); }
.emo-pct { font-family: var(--mono); }
.emo-con { color: var(--tx-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 auto; }
.emo-empty { color: var(--tx-4); font-size: 11px; padding: 8px 2px; }

/* ===================== 题材线 · 三栏布局 ===================== */
.tl3 { display: flex; height: 100%; gap: 8px; padding: 8px; box-sizing: border-box; }
.tl3-col { flex: 1 1 0; min-width: 0; display: flex; }
.tl3-col:first-child { flex: 0 0 340px; }
.tl3-col:last-child { flex: 1 1 0; }
.tl3-col > .panel { width: 100%; }
.tl3 .panel-body { padding: 0; }

/* ===================== 情绪截面 · 表格紧凑化 ===================== */
.st-root .tbl-wrap table.tbl { font-size: 11.5px; }
.st-root .tbl-wrap th, .st-root .tbl-wrap td { padding: 3px 5px; }
.st-root .tbl-wrap th { padding: 4px 5px; }

/* 涨停分布矩阵 */
.dist-wrap { overflow: auto; height: 100%; background: var(--stt-panel); }
.dist-matrix { border-collapse: collapse; width: max-content; min-width: 100%; table-layout: fixed; }
.dist-matrix th, .dist-matrix td { border: 1px solid var(--stt-border); padding: 7px 8px; font-size: 13px; line-height: 1.45; vertical-align: top; }
.dist-matrix thead th { background: var(--stt-head); color: var(--stt-amber); position: sticky; top: 0; z-index: 2; white-space: nowrap; min-width: 132px; text-align: center; font-size: 14px; }
.dist-matrix thead th > div:first-child { font-weight: 700; }
.dist-matrix thead th > div:last-child { font-weight: 400; font-size: 12px; color: var(--stt-muted); margin-top: 2px; }
.dist-matrix .rowlab { background: var(--stt-panel-alt); color: var(--stt-text); font-weight: 700; position: sticky; left: 0; z-index: 1; white-space: nowrap; width: 76px; min-width: 76px; }
.dist-matrix .num { text-align: right; font-family: var(--mono); }
.dist-matrix .amt { color: var(--stt-up); font-weight: 700; }
.dist-matrix .lg { color: var(--stt-muted); white-space: normal; line-height: 1.5; }
.dist-matrix .stklist { white-space: normal; line-height: 1.7; }
.dist-matrix .stk { display: inline-block; margin: 0 4px 0 0; color: var(--stt-text); }
.dist-matrix .stk.hot { color: var(--stt-up); font-weight: 700; }
.dist-matrix .stk-b { color: var(--stt-muted); font-size: 10px; }
.dist-matrix .dist-stk.gem { color: var(--cyan); font-weight: 700; }
.dist-matrix .dist-stk.startup { color: var(--blue); font-weight: 700; }
.dist-matrix .dist-market-tag { display: inline-block; margin-left: 3px; padding: 0 3px; border-radius: 3px; font-size: 10px; line-height: 1.45; vertical-align: 1px; }
.dist-matrix .dist-stk.gem .dist-market-tag { color: var(--cyan); background: var(--cyan-soft); }
.dist-matrix .dist-stk.startup .dist-market-tag { color: var(--blue); background: var(--blue-soft); }
.dist-matrix tbody tr:nth-child(even) td { background: var(--stt-row-alt); }
.dist-matrix tbody tr:hover td { background: var(--stt-hover); }
.st-matrix-page .st-stats { background: var(--stt-panel-alt); border-bottom-color: var(--stt-border); color: var(--stt-text); }
.st-matrix-page .st-stat-btn, .st-matrix-page .st-stat-card { background: var(--stt-panel); border-color: var(--stt-border); color: var(--stt-text); }
.st-matrix-page .st-stat-btn input { accent-color: var(--accent); }
.st-matrix-page .st-stat-k { color: var(--stt-muted); }
.dist-matrix .stk-b.up { color: var(--up); font-weight: 700; }
button:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; box-shadow: 0 0 0 3px var(--focus-ring); }

/* 涨停简图 · 连板梯队 */
.bk-block { display: flex; flex-direction: column; }
.bk-title { font-size: 12px; font-weight: 700; color: var(--tx-2); margin-bottom: 3px; }
.bk { color: var(--up); font-weight: 700; }
.big { font-size: 13px; font-weight: 800; color: var(--up); }

/* 个股瀑布行密度 */
.st-witem { padding: 3px 0; font-size: 11.5px; }
.st-wi-tag { min-width: 52px; padding: 1px 3px; font-size: 10.5px; }
.st-wi-name { width: 70px; }
.st-wi-pct { width: 54px; }
.st-wi-order { width: 58px; }
.st-wi-circ { width: 64px; }
.st-wi-time { width: 56px; }
.st-wi-concept { min-width: 50px; }

/* 工具栏日期选择（情绪截面日历） */
.tb-date { padding: 3px 6px; font-size: 12px; font-family: var(--mono);
  border: 1px solid var(--bd); border-radius: 3px; background: #fff; color: var(--tx-1); }
:root[data-theme="dark"] .tb-date { border-color: var(--line-strong); background: var(--panel-2); color: var(--tx); color-scheme: dark; }
.tb-input { font-size: 12px; }

/* ==========================================================================
   板块精选（kpl2 / PlatePickView）—— 2026-09-12 1:1 复刻
   ========================================================================== */
.warn { color: var(--accent-d) !important; }
.c-688 { color: var(--cyan) !important; }
.c-bj  { color: var(--blue) !important; }

.pp-root { display: flex; flex-direction: column; height: 100%; gap: 6px; padding: 6px 8px; box-sizing: border-box; }

/* 组件1：爆发原因条（客户端 QLabel 深底白字 → 亮色柔和底；文案自动换行） */
.pp-boom {
  flex: 0 0 auto; padding: 7px 10px; font-size: 12.5px; color: var(--tx-1);
  background: var(--bg-soft, #f4f6fa); border: 1px solid var(--bd);
  border-radius: 4px; cursor: pointer; user-select: none;
  white-space: normal; line-height: 1.55; max-height: 5.4em; overflow: auto;
}
.pp-boom:hover { border-color: var(--accent-line, #e8a23a); }

/* 组件2：子题材卡片横条 */
.pp-chips { flex: 0 0 auto; display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 4px; }
.pp-chip {
  flex: 0 0 auto; min-width: 86px; padding: 4px 10px; text-align: center;
  background: #fff; border: 1px solid var(--bd); border-radius: 6px; cursor: pointer;
  user-select: none; transition: box-shadow .12s;
}
.pp-chip:hover { box-shadow: 0 1px 4px rgba(0,0,0,.10); }
.pp-chip.sel { background: #FFA500; border-color: #d18c00; }
.pp-chip.sel .pp-chip-name, .pp-chip.sel .pp-chip-strength { color: #fff !important; }
.pp-chip.empty { cursor: default; color: var(--tx-3); }
.pp-chip-name { font-size: 12px; font-weight: 700; color: var(--tx-1); white-space: nowrap; }
.pp-chip-strength { font-size: 12px; font-weight: 700; }

/* 数据分栏 */
.pp-split { flex: 1 1 auto; display: flex; gap: 6px; min-height: 0; }
.pp-left { flex: 0 0 430px; display: flex; flex-direction: column; min-height: 0;
  border: 1px solid var(--bd); border-radius: 4px; background: #fff; overflow: hidden; }
.pp-right { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0;
  border: 1px solid var(--bd); border-radius: 4px; background: #fff; overflow: hidden; }

/* table1 */
.pp-t1-head { display: flex; flex: 0 0 auto; padding: 4px 6px; border-bottom: 1px solid var(--bd);
  background: var(--bg-soft, #f4f6fa); font-size: 12px; font-weight: 700; }
.pp-t1-h { cursor: pointer; user-select: none; }
.pp-t1-h.r { flex: 1 1 0; text-align: right; min-width: 56px; }
.pp-t1-h.l { flex: 0 0 62px; }
.pp-t1-h.r:first-of-type { flex: 0 0 62px; }   /* ID 列 */
.pp-t1-body { flex: 1 1 auto; overflow: auto; }
.pp-t1-row { display: flex; align-items: center; padding: 3px 6px; font-size: 12px;
  cursor: pointer; border-bottom: 1px solid #f0f2f6; }
.pp-t1-row:hover { background: #f6f8fc; }
.pp-t1-row.sel { background: rgba(255, 165, 0, 0.14); box-shadow: inset 2px 0 0 #FFA500; }
.pp-t1-row .c-id   { flex: 0 0 62px; color: var(--tx-3); font-family: var(--mono); }
.pp-t1-row .c-name { flex: 0 0 62px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-t1-row .c-val  { flex: 1 1 0; text-align: right; min-width: 56px; font-family: var(--mono); }

/* table2 表头 / 网格（22 列，grid 对齐） */
.pp-t2-head { display: grid; grid-template-columns: 44px 62px 74px 62px 70px 74px 74px 66px 1fr 52px 74px 74px 74px 74px 74px 74px 62px 62px 62px 66px 66px 66px;
  flex: 0 0 auto; padding: 4px 6px; border-bottom: 1px solid var(--bd);
  background: var(--bg-soft, #f4f6fa); font-size: 12px; font-weight: 700;
  overflow-x: auto; }
.pp-t2-h { cursor: pointer; user-select: none; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-t2-h.h-seq, .pp-t2-h.h-code, .pp-t2-h.h-name, .pp-t2-h.h-height, .pp-t2-h.h-concept { text-align: left; }
.pp-t2-h:hover { color: var(--accent-d); }
.pp-t2-body { flex: 1 1 auto; overflow: auto; }
.pp-t2-grid { display: grid; grid-template-columns: 44px 62px 74px 62px 70px 74px 74px 66px 1fr 52px 74px 74px 74px 74px 74px 74px 62px 62px 62px 66px 66px 66px;
  font-size: 12px; }
.pp-t2-c { padding: 2.5px 4px; text-align: right; font-family: var(--mono);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border-bottom: 1px solid #f0f2f6; }
.pp-t2-c.h-seq, .pp-t2-c.h-code, .pp-t2-c.h-name, .pp-t2-c.h-height, .pp-t2-c.h-concept { text-align: left; font-family: inherit; }
.pp-t2-c.c-seq { color: #a16207; font-weight: 700; }
.pp-t2-c.c-code { font-family: var(--mono); }
.pp-t2-c.c-name { font-weight: 700; }
.pp-t2-c.h-concept { color: var(--tx-2); }

.pp-empty { padding: 14px; color: var(--tx-3); font-size: 12px; }

/* 爆发原因历史弹窗（KPL2BoomReasonDialog 时间轴 1:1） */
.pp-tl { max-height: 64vh; overflow: auto; padding: 6px 4px 2px 2px; }
.pp-tl-empty { color: #BBBBBB; font-size: 16px; padding: 24px 0; text-align: center; }
.pp-tl-row { display: flex; align-items: center; gap: 24px; padding: 0 0 16px 0; }
.pp-tl-date {
  flex: 0 0 78px; height: 78px; background: #D84A3A; border-radius: 10px; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; font-weight: 700; position: relative; z-index: 1;
}
.pp-tl-date-d { font-size: 15px; }
.pp-tl-date-w { font-size: 12px; opacity: .92; }
.pp-tl-bridge { flex: 0 0 12px; height: 2px; background: #D84A3A; }
.pp-tl-right { flex: 1 1 auto; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pp-tl-msg {
  border: 2px solid #D84A3A; border-radius: 10px; padding: 10px 14px 8px;
  font-size: 13px; line-height: 1.6; color: var(--tx-1); white-space: pre-wrap;
}
.pp-tl-box {
  background: #2a2a2a; border-radius: 10px; min-height: 78px; display: flex;
  align-items: center; gap: 10px; padding: 6px 12px; overflow-x: auto;
}
.pp-tl-boxinfo { flex: 0 0 auto; display: flex; flex-direction: column; gap: 6px; }
.pp-tl-qd { color: #fff; font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.pp-tl-zt { color: #fff; font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.pp-tl-stock {
  flex: 0 0 auto; width: 64px; height: 64px; background: #2a2a2a; border: 1px solid #777;
  border-radius: 10px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px; text-align: center; padding: 2px 3px;
}
.pp-tl-stock-name { font-size: 12.5px; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-tl-stock-code { color: #fff; font-size: 11px; font-family: var(--mono); }
.pp-tl-stock-stage { color: #fff; font-size: 10px; white-space: nowrap; }

/* 题材交叉选股弹窗（KPL2StockSelectionDialog 左右分栏 1:1） */
.pp-cross { width: min(1080px, 92vw); }
.pp-cross-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.flex1 { flex: 1 1 auto; }
.pp-cross-sel { font-size: 13px; font-weight: 700; color: var(--tx-1); }
.pp-cross-result { font-size: 13px; color: var(--tx-2); }
.pp-cross-export { color: #FFA500 !important; font-weight: 700; }
.pp-cross-split { display: flex; gap: 8px; height: 58vh; }
.pp-cross-left { flex: 0 0 640px; display: flex; flex-direction: column; min-height: 0;
  border: 1px solid var(--bd); border-radius: 4px; overflow: hidden; }
.pp-cross-right { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0;
  border: 1px solid var(--bd); border-radius: 4px; overflow: hidden; }
.pp-cross-t4head { display: flex; flex: 0 0 auto; padding: 4px 6px; gap: 0;
  border-bottom: 1px solid var(--bd); background: var(--bg-soft, #f4f6fa);
  font-size: 12px; font-weight: 700; }
.pp-cross-t4h { text-align: right; white-space: nowrap; overflow: hidden; }
.pp-cross-t4h.sel { text-align: center; }
.pp-cross-t4body { flex: 1 1 auto; overflow: auto; }
.pp-cross-row { display: flex; align-items: center; padding: 3px 6px; font-size: 12px;
  border-bottom: 1px solid #f0f2f6; cursor: default; }
.pp-cross-row:hover { background: #f6f8fc; }
.pp-circle {
  width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid #999;
  background: #fff; cursor: pointer; flex: 0 0 15px; box-sizing: border-box;
  display: inline-block; position: relative;
}
.pp-circle.on { background: #FFAA00; border-color: #FF8800; }
.pp-circle.on::after {
  content: ''; position: absolute; left: 4px; top: 1.5px; width: 4px; height: 7px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(40deg);
}
.pp-cross-c { text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-family: var(--mono); }
.pp-cross-c.name { font-weight: 700; font-family: inherit; }
.pp-cross-c.mono { color: var(--tx-3); }
.pp-cross-t3body { flex: 1 1 auto; overflow: auto; padding: 4px 6px; }

/* RPS / 交叉选股弹窗 */
.pp-rps-tip { font-size: 12px; color: var(--tx-2); margin-bottom: 8px; }
.pp-rps-list { max-height: 420px; overflow: auto; }
.pp-rps-row { display: flex; gap: 14px; padding: 2px 2px; font-size: 12px; border-bottom: 1px dashed #eef0f4; }
.pp-rps-row span:first-child { font-family: var(--mono); color: var(--tx-2); }
.pp-explain { font-size: 12.5px; }

/* ====================== 主线周期（ml-*，tab_7_vc 1:1） ====================== */
.ml { display: flex; flex-direction: column; gap: 10px; height: 100%; }
.ml-p1 { flex: 0 0 38%; display: flex; flex-direction: column; }
.ml-p1 .panel-body { flex: 1; overflow: auto; }
.ml .panel.grow { flex: 1; display: flex; flex-direction: column; }
.ml .panel.grow .panel-body { flex: 1; overflow: auto; }
.ml-t1 { border-collapse: collapse; }
/* 客户端原为 19px 字号 / 37px 行高（1917px 桌面实测），网页版按全局 12.5px 密度
   等比收敛（2026-09-14 用户要求），交互（hot10/hot5/选中紫底/悬停）保持不变 */
table.tbl.ml-t1 th, table.tbl.ml-t2 th {
  position: sticky; top: 0; z-index: 2; background: var(--bg-2); color: #e07800;
  font-weight: 700; font-size: 12.5px; text-align: center; padding: 5px 8px;
  border-bottom: 1px solid var(--line-strong); border-right: none; white-space: nowrap;
}
table.tbl.ml-t1 { table-layout: fixed; width: max-content; }
table.tbl.ml-t1 th { min-width: 170px; width: 170px; max-width: 170px; }
table.tbl.ml-t1 td { height: 26px; padding: 0 8px; border-right: none; white-space: nowrap; }
table.tbl.ml-t1 tbody tr:nth-child(even) td,
table.tbl.ml-t2 tbody tr:nth-child(even) td { background: transparent; }
.ml-topic {
  display: block; cursor: pointer; padding: 0 2px; border-radius: 3px;
  font-size: 13px; line-height: 24px; color: var(--tx);
  transition: background .12s, color .12s;
}
.ml-topic:hover { background: var(--accent-soft); }
.ml-topic.hot10 { color: var(--up); font-weight: 700; }
.ml-topic.hot5 { color: #e07800; font-weight: 600; }
.ml-topic.sel { background: #800080; color: #fff !important; }
.ml-desc { font-size: 12.5px; color: var(--tx-3); }
.ml-t2 { border-collapse: collapse; }
table.tbl.ml-t2 { table-layout: fixed; width: max-content; }
.ml-t2 .ml-name-col { min-width: 118px; width: 118px; max-width: 118px; overflow: hidden; }
.ml-t2 .ml-code-col { min-width: 52px; width: 52px; max-width: 52px; text-align: center; overflow: hidden; }
table.tbl.ml-t2 td { height: 37px; padding: 0 6px; border-right: none; white-space: nowrap; }
.ml-stock { font-size: 12px; line-height: 36px; display: block; color: var(--tx); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-code { font-size: 12px; color: var(--tx-3); }
.ml-stock.c30, .ml-code.c30 { color: #e07800; }
.ml-stock.c68, .ml-code.c68 { color: #189fcc; }
/* 周期图悬浮行（复用 .tc-curve-info 外壳） */
.tc-curve-info .ml-row { font-family: var(--mono); white-space: nowrap; font-size: 11px; }

/* ====================== 梯队周期（ec-*，tab_8_vc2 1:1） ====================== */
.ec-chart-wrap { position: relative; flex: 1 1 auto; min-height: 0; height: 100%; }
.ec-chart { width: 100%; height: 100%; min-height: 520px; }
.ec-cross {
  position: absolute; top: 0; bottom: 0; width: 0; pointer-events: none;
  border-left: 1px dashed #ff8c00; opacity: .8; z-index: 3;
}
.ec-info {
  position: absolute; top: 40px; left: 56px; z-index: 4; pointer-events: none;
  font-size: 13px; line-height: 1.85; white-space: nowrap;
}
.ec-info-date { color: var(--tx); font-weight: 700; }
.ec-info-row { font-weight: 600; }
/* 起点日期下拉 */
.ec-cal {
  position: absolute; top: 34px; left: 0; z-index: 60; width: 190px;
  max-height: 320px; overflow: auto; background: var(--panel);
  border: 1px solid var(--line-strong); border-radius: 6px;
  box-shadow: var(--shadow-2); padding: 4px 0;
}
.ec-cal-row { padding: 5px 12px; cursor: pointer; font-size: 12.5px; }
.ec-cal-row:hover { background: var(--accent-soft); }
/* 涨停梯队 / 断板梯队 弹窗表 */
.ec-dlg { max-height: 66vh; overflow: auto; }
.ec-dlg-modal { padding: 0 !important; }
.ec-dlg-tbl { border-collapse: collapse; font-size: 13px; }
.ec-dlg-tbl th {
  position: sticky; top: 0; z-index: 2; background: var(--bg-2); color: #e07800;
  font-size: 14px; font-weight: 700; padding: 6px 10px; text-align: left;
  border-bottom: 1px solid var(--line-strong); white-space: nowrap;
}
.ec-dlg-tbl td { padding: 3px 10px; white-space: nowrap; border-bottom: 1px solid var(--line-2); }
.ec-dlg-tbl td:nth-child(5n) { border-right: 1px solid var(--line-strong); }
.ec-spacer { height: 10px; }
.ec-title { font-weight: 700; }
.c-limit, .c-sum-l { color: #e5342b; }
.c-fail, .c-sum-f { color: #12a55a; }
.ec-idx, .ec-hot { color: var(--tx-2); }
.ec-name { color: var(--tx); font-weight: 600; }
.ec-code-hide { visibility: hidden; width: 0; padding: 0 !important; }
/* 股性活跃品种（信息栏橙色小节） */
.ec-nature-title { color: #e07800; font-weight: 700; margin-top: 4px; }
.ec-nature-row { font-weight: 600; }
/* 晋级率折线图弹窗（客户端 QDialog 深色，网页版保持全局浅色主题） */
.ec-rate-modal { padding: 0 10px !important; }
.ec-rate-wrap { position: relative; }
.ec-rate-chart { width: 1240px; height: 600px; }
.ec-rate-info {
  position: absolute; top: 40px; right: 14px; z-index: 4; pointer-events: none;
  text-align: right; font-size: 13px; line-height: 1.9; white-space: nowrap;
}
.ec-legend {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 10px;
  background: var(--panel); border-bottom: 1px solid var(--line-2);
}
.ec-chip {
  background: none; border: 1px solid var(--line-strong); border-radius: 4px; cursor: pointer;
  font-size: 12px; padding: 3px 8px;
}
.ec-mark { letter-spacing: -1px; }
/* 个股周期折线图 */
.ec-pc-wrap { position: relative; }
.ec-pc-chart { width: 1400px; height: 600px; }
.ec-pc-info {
  position: absolute; top: 16px; left: 70px; z-index: 4; pointer-events: none;
  font-size: 13px; line-height: 1.8; white-space: nowrap; columns: 2; column-gap: 28px;
}

/* ====================== 投资日历（cal2-*，tab_12_2_vc + tab_12_vc 1:1） ======================
   客户端为深色大字（QFont 15~19px），网页端按 1918px 截图折算：日期卡 64px、
   正文字号 14px（≈客户端 17px × 0.84 缩放），四栏布局与列宽比例 1:1。 */
.cal2-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.cal2-scroll { flex: 1 1 auto; overflow: auto; padding: 10px 14px 30px 10px; }
.cal2-empty { color: var(--tx-3); padding: 24px; font-size: 14px; }
.cal2-sep {
  color: #888; font-size: 13px; text-align: center; padding: 10px 0 8px;
}
/* 时间线行：日期卡 + 红竖线 + 事件卡（客户端 96px 卡 / 30px gap / 18px 竖线） */
.cal2-row { position: relative; display: flex; align-items: stretch; margin: 0 0 18px 46px; }
.cal2-row::before {
  content: ''; position: absolute; left: -32px; top: -10px; bottom: -10px;
  width: 3px; background: #D84A3A; border-radius: 2px;
}
.cal2-datecard {
  flex: 0 0 64px; height: 64px; margin-top: 14px;
  background: #D84A3A; border-radius: 10px; color: #fff; font-weight: 700;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  line-height: 1.25;
}
.cal2-d1 { font-size: 17px; }
.cal2-d2 { font-size: 13px; }
.cal2-evcard {
  flex: 1 1 auto; margin-left: 22px; border: 2px solid #D84A3A; border-radius: 10px;
  padding: 8px 12px; min-width: 0;
}
.cal2-none { color: var(--tx-3); font-size: 13.5px; padding: 2px 0; }
.cal2-ev { font-size: 14px; line-height: 1.9; color: var(--tx); word-break: break-all; }
.cal2-no { font-weight: 700; }
.cal2-theme { color: #e0660a; font-weight: 700; }
.cal2-new { color: #e5342b; font-weight: 700; }
.cal2-detail { font-size: 13px; color: var(--tx-3); line-height: 1.7; padding: 0 0 4px 34px; }
.cal2-hl { background: #ffe14d; color: #333; border-radius: 2px; padding: 0 1px; }
.cal2-result { color: var(--tx-3); font-size: 13px; padding: 12px 4px; }
/* ---------------- 主题投资四栏 ---------------- */
.cal2-grid { flex: 1 1 auto; min-height: 0; display: flex; gap: 1px; background: var(--line-2); }
.cal2-pane { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; background: var(--panel); }
.cal2-pane:nth-child(1) { flex: 1.25 1 0; }
.cal2-pane:nth-child(2) { flex: 1.5 1 0; }
.cal2-pane:nth-child(3) { flex: 1.15 1 0; }
.cal2-pane-head {
  padding: 7px 10px 5px; border-bottom: 1px solid var(--line-strong);
}
.cal2-pane-title { color: #e07800; font-weight: 700; font-size: 15px; }
.cal2-pane-body { flex: 1 1 auto; overflow: auto; padding: 4px 0 20px; }
.cal2-sub { color: var(--tx-3); font-size: 12.5px; padding: 4px 10px; }
/* 概念列表 */
.cal2-ctbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.tbl.cal2-ctbl th {
  color: var(--accent-d); font-weight: 600; text-align: left; padding: 3px 8px;
  border-bottom: 1px solid var(--line-2); white-space: nowrap; font-size: 12.5px;
}
.cal2-ctbl td { padding: 4px 8px; white-space: nowrap; border-bottom: 1px solid var(--line-2); }
.cal2-ctbl tbody tr { cursor: pointer; }
.cal2-ctbl td:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
/* 客户端像素取证（09-13）：概念名=正文色；**有新增时「概念名」与「+N」同为橙色**（无新增整行常规色）；
   选中行**无底色填充**，仅整行底部橙下边框 + **每个单元格左侧 3px 蓝条**；名称不加粗。 */
.cal2-cname { color: var(--tx); }
.cal2-hasnew .cal2-cname { color: var(--accent-d); }
.cal2-cnew { color: var(--accent-d); font-weight: 700; margin-left: 1px; }
.cal2-range { font-size: 12.5px; color: var(--tx); }
.cal2-pintd { text-align: center; }
.cal2-pin { cursor: pointer; color: #8d97a4; font-size: 13px; }
.cal2-pin.on { color: var(--accent-d); }
.cal2-ctbl tr.cal2-sel > td, .cal2-stbl tr.cal2-sel > td {
  background: transparent; box-shadow: inset 3px 0 0 #3f8ae0; border-bottom-color: transparent;
}
.cal2-ctbl tr.cal2-sel { border-bottom: 2px solid var(--accent-d); }
/* 概念事件 */
.cal2-evdate { color: #e5342b; font-weight: 700; font-size: 14px; padding: 8px 10px 2px; }
.cal2-evline {
  font-size: 13.5px; line-height: 1.75; padding: 1px 10px; color: var(--tx);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer;
}
.cal2-evline.open { white-space: normal; }
.cal2-evline.recent .cal2-evtxt { color: #e07800; }
/* 客户端：新增/近期事件整行（含 `1、` 序号）为橙色，并由左侧蓝条标识 */
.cal2-evno { color: var(--tx-2); }
.cal2-evline { position: relative; }
.cal2-evline.recent { box-shadow: inset 3px 0 0 #3f8ae0; }
.cal2-evline.recent .cal2-evno { color: #e07800; }
/* 相关股票 */
.cal2-stbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.tbl.cal2-stbl th {
  color: var(--accent-d); font-weight: 600; text-align: left; padding: 3px 8px;
  border-bottom: 1px solid var(--line-2); white-space: nowrap; font-size: 12.5px;
}
.cal2-stbl td { padding: 4px 8px; white-space: nowrap; border-bottom: 1px solid var(--line-2); }
.cal2-stbl tbody tr { cursor: pointer; }
/* 详细信息 */
.cal2-detailbox { padding: 10px 12px; font-size: 13.5px; line-height: 1.9; color: var(--tx); }
.cal2-gap { height: 10px; }
.cal2-disc { color: var(--tx-3); font-size: 12px; line-height: 1.7; }

/* ====================== 龙头全景（pano-*，tab_18_2_vc 1:1） ====================== */
.pano-grid {
  flex: 1 1 auto; min-height: 0; display: grid; overflow: auto;
  grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(0, 1fr); gap: 6px;
  padding: 6px;
}
/* 2026-09-14 修复：进度遮罩给 .pano-grid 套了一层 .panel，而 .panel-body 默认 display:block，
   会让 .pano-grid 的 `flex:1 1 auto; min-height:0` 失效 → 网格高度退化为「内容高度」
   （1920×1080 实测 2698px，而非面板可用高度 936px），6 张卡各 1340px 高、卡内滚动条消失，
   整页被拉长。客户端是「6 卡刚好铺满窗口 + 每卡内部滚动」，故这里把 panel-body 还原成
   flex 列容器，让 .pano-grid 重新成为一个受高度约束的 flex 项。 */
.pano-panel > .panel-body { display: flex; flex-direction: column; }
/* 覆盖旧 .pano-card（旧 .panorama 网格已弃用，2026-09-12 重写为 pano-grid） */
.pano-card { min-height: 0; min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: 6px; background: var(--panel); }
/* ↑ min-width:0（2026-09-14 修复）：grid item 默认 min-width:auto＝最小内容宽，
   会被表内「序|代码|名称|涨幅|累计涨幅|题材概念」的最小内容宽（≈500px，题材列
   max-width:210px + nowrap）卡住 → 窄窗口下 3 列撑到 1525px、超出可视 1175px，
   第三列（10日/60日）被推出屏幕。置 0 后卡片收缩到 1fr，表交由 .pano-tblwrap
   横向滚动 —— 与客户端（卡片 ≈397px、题材概念被卡边缘截断 + 横向滚动条）一致。 */
/* 客户端像素取证（09-13 龙头全景截图）：表头=橙色；代码/名称/题材概念三列**随板块着色**
   （创业板 30x→橙、科创板 688→青，其余=正文色）；序号、累计涨幅=正文色；
   涨幅=红；ST 名称不做特殊着色（客户端实测 *ST实达 为正文色，非红）。 */
.pano-tbl .code.c30 { color: var(--accent-d); font-weight: 600; }
.pano-tbl .code.c68 { color: #189fcc; font-weight: 600; }
.pano-tbl .bcol.c30 { color: var(--accent-d); }
.pano-tbl .bcol.c68 { color: #189fcc; }
.pano-title { color: var(--accent-d); font-weight: 700; font-size: 15px; padding: 5px 10px 3px; }
.pano-tblwrap { flex: 1 1 auto; min-height: 0; overflow: auto; }
.pano-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl.pano-tbl th {
  position: sticky; top: 0; z-index: 2; background: var(--bg-2); color: var(--accent-d);
  font-weight: 600; font-size: 12.5px; text-align: left; padding: 3px 8px;
  border-bottom: 1px solid var(--line-strong); white-space: nowrap;
}
.pano-tbl td { padding: 2.5px 8px; white-space: nowrap; border-bottom: 1px solid var(--line-2); }
.pano-tbl td:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 210px; }
.pano-concept { color: var(--tx); font-size: 12.5px; }
.pano-tbl .c9 { color: #3a6fd8; }
/* 导出弹窗 */
.pano-exp-group { margin: 0 0 12px; }
.pano-exp-title { font-weight: 700; margin-bottom: 6px; }
.pano-exp-chk { display: inline-flex; align-items: center; gap: 5px; margin: 0 14px 4px 0; cursor: pointer; }

/* ====================== 暗色模式批量可读性修复（2026-09-19） ======================
   部分旧版页面仍把浅色主题的斑马纹直接写在 table.tbl 上，导致暗色模式出现
   大块白行；同时旧页面的遮罩、行文字和图表信息栏使用了过低对比度。这里仅
   覆盖暗色主题，亮色主题保持原有视觉。 */
:root[data-theme="dark"] table.tbl tbody tr:nth-child(even) > td {
  background: var(--panel-2);
  color: var(--tx);
}
:root[data-theme="dark"] table.tbl tbody tr:nth-child(odd) > td {
  background: var(--panel);
  color: var(--tx);
}
:root[data-theme="dark"] table.tbl tbody tr:hover > td,
:root[data-theme="dark"] table.tbl tbody tr.sel > td {
  background: var(--accent-soft);
}

/* 题材线 / 龙头全景：旧规则 specificity 更高，使用同等语义的定向覆盖。 */
:root[data-theme="dark"] .tl-root table.tbl tbody tr:nth-child(even) > td,
:root[data-theme="dark"] .pano-tbl tbody tr:nth-child(even) > td {
  background: var(--panel-2) !important;
  color: var(--tx) !important;
}
:root[data-theme="dark"] .tl-root table.tbl tbody tr:nth-child(odd) > td,
:root[data-theme="dark"] .pano-tbl tbody tr:nth-child(odd) > td {
  background: var(--panel) !important;
  color: var(--tx) !important;
}
:root[data-theme="dark"] .tl-root table.tbl tbody tr.tl-sum > td {
  background: var(--accent-soft) !important;
  color: var(--accent-d) !important;
}
:root[data-theme="dark"] .tl-root table.tbl tbody tr:hover > td,
:root[data-theme="dark"] .pano-tbl tbody tr:hover > td {
  background: var(--panel-3) !important;
}
:root[data-theme="dark"] .tl-root table.tbl td.tl-logic,
:root[data-theme="dark"] .tl-root table.tbl td.tl-code,
:root[data-theme="dark"] .tl-root .tl-detail .tl-d-h,
:root[data-theme="dark"] .tl-root .tl-detail .tl-d-sec {
  color: var(--tx-2);
}
:root[data-theme="dark"] .tl-mask { background: rgba(17, 22, 29, .82); }

/* 暗色图表的信息栏、峰值文字和弹窗列表，不再沿用浅色 #333。 */
:root[data-theme="dark"] .ec-info-date,
:root[data-theme="dark"] .ec-info-row,
:root[data-theme="dark"] .ec-nature-row { text-shadow: 0 1px 2px rgba(0,0,0,.55); }
:root[data-theme="dark"] .ec-info-date { color: var(--tx); }
:root[data-theme="dark"] .ec-rate-info { text-shadow: 0 1px 2px rgba(0,0,0,.55); }

/* ==========================================================================
   逻辑挖掘 / 题材库（tab/tab_11_0_vc + tab_11_vc + tab_11_view + tab_11_model
                       + ui/stock_card_grid + ui/info_label_widget
                       + tab/tab_11_select_stock_vc）
   三栏：左概念表 ｜ 中主干/枝干卡片网格 ｜ 右概念文本

   客户端实测色值（逐像素取样 + 字节码常量池双证）：
     主干条 bg #FFA500（QColor(255,165,0)）  文字 white bold
     枝干条 bg #5D9DF4（QColor(93,157,244)） 文字 white bold
     卡片   bg #2a2a2a / border 1px #444 / radius 6，hover·selected → #FFA500
     卡片序 tan（#d2b48c） 名称·代码按板块着色 涨幅 chip 跌 #66BB6A 涨 #E57373 无值 #555/#bbb
     左表表头 #FFA500 加粗 / 正文 #FFFFFF / 选中行每格左侧 3px #0067C0 蓝条 + 整行橙下边框
   本页沿用全站亮色主题：自发光色块（主干/枝干/涨幅 chip）沿用客户端原色，
   依赖底色的前景色（卡片底、文字、tan、#ddd）按语义映射到亮色变量。
   ========================================================================== */
.lg { display: flex; flex: 1 1 auto; min-height: 0; }
/* 左栏固定 354px（tab_11_view.setFixedWidth(354)） */
.lg-l { flex: 0 0 354px; width: 354px; display: flex; flex-direction: column;
        border-right: 1px solid var(--line); background: var(--panel); }
/* 中/右 = QSplitter(StockCardGridWidget, InfoLabelWidget) setSizes([800,480]) */
.lg-m { flex: 800 1 0; min-width: 0; display: flex; flex-direction: column;
        border-right: 1px solid var(--line); background: var(--panel); }
.lg-r { flex: 480 1 0; min-width: 320px; display: flex; flex-direction: column; background: var(--panel); }
.lg-scroll { flex: 1 1 auto; min-height: 0; overflow: auto; }
.lg-hint { padding: 30px 14px; text-align: center; color: var(--tx-3); font-size: 13px; line-height: 1.9; }
.lg-fill { flex: 1 1 auto; min-width: 0; }

/* ---------- 左：概念列表 ---------- */
.lg-ctbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.lg-ctbl th {
  position: sticky; top: 0; z-index: 2; background: var(--panel-2);
  color: var(--accent-d); font-weight: 700; font-size: 12.5px;
  text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.lg-ctbl th.sortable { cursor: pointer; user-select: none; }
.lg-ctbl th.sortable:hover { color: var(--accent); }
.lg-ctbl th .lg-ar { margin-left: 2px; font-size: 10px; }
.lg-ctbl td { padding: 3.5px 8px; border-bottom: 1px solid var(--line-2);
              color: var(--tx); white-space: nowrap; }
.lg-ctbl td.num { text-align: right; font-variant-numeric: tabular-nums; }
.lg-ctbl td.lg-cname { text-align: left; }
.lg-ctbl tbody tr { cursor: pointer; }
.lg-ctbl tbody tr:hover > td { background: var(--panel-2); }
.lg-ctbl tr.lg-sel > td { box-shadow: inset 3px 0 0 #0067c0; }
.lg-ctbl tr.lg-sel { border-bottom: 2px solid var(--accent); }
.lg-ctbl mark { background: #ffe6b8; color: inherit; padding: 0; }

/* ---------- 中：主干 / 枝干 / 卡片网格 ---------- */
/* HEADER_ROW_HEIGHT = 32（stock_card_grid 字节码常量） */
.lg-grid { display: grid; gap: 6px; padding: 6px 6px 10px; align-items: start; }
.lg-hd { display: flex; align-items: center; gap: 6px; height: 32px; grid-column: 1 / -1;
         padding: 0 5px; border-radius: 4px;
         font-size: 13px; font-weight: 700; color: #fff; }
.lg-hd.main { background: #ffa500; }   /* QColor(255,165,0) */
.lg-hd.sub { background: #5d9df4; }    /* QColor(93,157,244) */
.lg-hd .lg-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
/* LButton(text_color='white', border_color='white', background_color='#FFC36E') 12pt bold */
.lg-hd .lg-xbtn {
  flex: 0 0 auto; height: 22px; padding: 0 8px; font-size: 12px; font-weight: 700;
  border: 1px solid #fff; border-radius: 4px;
  background: #FFC36E; color: #fff; cursor: pointer;
}
.lg-hd .lg-xbtn:hover { background: #ffd394; }
.lg-card { background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 6px;
           min-height: 100px; padding: 8px 10px; box-sizing: border-box; cursor: pointer; }
.lg-card:hover, .lg-card.lg-on { border-color: #ffa500; }
.lg-card-h { display: flex; align-items: center; gap: 2px; }
.lg-seq { flex: 0 0 auto; color: #b08a4a; font-size: 12px; font-weight: 700; }  /* 客户端 tan */
.lg-card-h .lg-nm { flex: 1 1 auto; min-width: 0; font-size: 12px; font-weight: 700;
                    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
                    color: var(--tx); }                    /* 客户端 #FFFFFF */
.lg-card-h .lg-nm.c30 { color: var(--accent-d); }          /* 客户端 #FFA500 */
.lg-card-h .lg-nm.c68 { color: #189fcc; }                  /* 客户端 color_688_dark=#4FC3F7 */
.lg-card-h .lg-nm.cbj { color: #3a6fd8; }                  /* 客户端 color_babyblue=#5d9df4 */
.lg-zf { flex: 0 0 auto; min-width: 52px; text-align: center; font-size: 11.5px;
         padding: 5px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.lg-zf.zx { background: #555;    color: #bbb; border: 1px solid #555; }
.lg-zf.zn { background: #66BB6A; color: #fff; border: 1px solid #66BB6A; }
.lg-zf.zp { background: #E57373; color: #fff; border: 1px solid #E57373; }
.lg-card-r { margin-top: 6px; color: var(--tx-2); font-size: 12px; line-height: 1.5;
             display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 右：概念文本（InfoLabelWidget） ---------- */
.lg-info { padding: 4px 14px 24px; color: var(--tx); font-size: 14px; line-height: 1.75; word-break: break-word; }
.lg-info h3 { color: var(--tx); font-size: 16px; font-weight: 700; margin: 12px 0 6px; }
.lg-info h3:first-child { margin-top: 4px; }
.lg-info p { margin: 7px 0; }
.lg-info ul, .lg-info ol { margin: 7px 0 7px 20px; }
.lg-info img { max-width: 100%; height: auto; border-radius: 4px; }
.lg-info a { color: var(--info); }
.lg-info hr { border: none; border-top: 1px solid var(--line); margin: 12px 0; }
.lg-info table { border-collapse: collapse; font-size: 13px; }
.lg-info td, .lg-info th { border: 1px solid var(--line); padding: 3px 6px; }

/* ---------- 工具栏补充件 ---------- */
.lg-title { color: var(--accent-d); font-weight: 700; font-size: 13.5px; padding: 0 6px; white-space: nowrap; }
.lg-cb { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px;
         color: var(--tx-2); cursor: pointer; user-select: none; white-space: nowrap; }

/* ---------- 题材交叉选股弹窗 ---------- */
.lg-xd { width: 900px; max-width: 94vw; }
.lg-xd-tb { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; }
.lg-xd-sel { color: var(--accent-d); font-weight: 700; font-size: 13px; }
.lg-xd-wrap { max-height: 52vh; overflow: auto; border: 1px solid var(--line); border-radius: 6px; }
.lg-xd-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.lg-xd-tbl th { position: sticky; top: 0; background: var(--panel-2); text-align: left;
                font-weight: 700; font-size: 12.5px; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.lg-xd-tbl td { padding: 3.5px 8px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.lg-xd-tbl tbody tr { cursor: pointer; }
.lg-xd-tbl tbody tr:hover > td { background: var(--panel-2); }
.lg-xd-tbl td.num { text-align: right; font-variant-numeric: tabular-nums; }
.lg-radio { font-size: 15px; line-height: 1; }
.lg-radio.on { color: #FF6600; }
.lg-radio.off { color: #888888; }
.lg-xd-foot { display: flex; align-items: center; gap: 8px; justify-content: flex-end; padding-top: 10px; }

/* ==================== 龙虎榜 tab_16（游资榜 + 龙虎榜，浅色主题） ==================== */
.lhb16 { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.lhb-subs { display: flex; gap: 6px; padding: 6px 10px 2px; }
.lhb-sub { background: var(--panel); color: var(--tx-2); border: 1px solid var(--line-strong);
  border-radius: 4px; padding: 3px 14px; font-size: 12px; cursor: pointer; }
.lhb-sub.on { color: var(--accent-d); border-color: var(--accent); font-weight: bold;
  background: var(--accent-soft); }
.lhb-tb { display: flex; align-items: center; gap: 8px; padding: 4px 10px; }
.lhb16-body { flex: 1 1 auto; min-height: 0; display: flex; gap: 8px; padding: 4px 10px 8px;
  overflow-x: auto; }
.lhb16-l { flex: 1 1 760px; min-width: 760px; overflow: auto; }
.lhb16-t1w { max-width: 980px; }
.lhb16-t2 { width: 700px; flex: 0 0 700px; overflow: auto; border-left: 1px solid var(--line);
  padding-left: 8px; }
.lhb16-row { display: flex; gap: 10px; padding: 3px 6px; font-size: 13px; line-height: 1.55;
  font-family: var(--mono); cursor: default; border-radius: 3px; color: var(--tx); }
.lhb16-row.hl, .lhb16-row.sel { background: var(--accent-soft); outline: 1px solid var(--accent); }
.lhb16-row.lhb16-gr { background: var(--accent-soft); margin-top: 4px; }
/* 表头通用（游资榜 table1 / 龙虎榜 table1）：浅底深字、吸顶 */
.lhb16-hd, .lhb16-lh1-hd { display: flex; gap: 10px; padding: 4px 6px; font-size: 12px;
  font-weight: bold; color: var(--tx-2); border-bottom: 1px solid var(--line-strong);
  position: sticky; top: 0; background: var(--panel-2); z-index: 1; }
/* 游资榜 table1：9 列 序|席位|名称|涨幅|买入|卖出|净买入|备注|热点/概念（+隐藏代码） */
.lhb16-hd > span:nth-child(1) { width: 26px; flex: 0 0 26px; text-align: center; }
.lhb16-hd > span:nth-child(2) { width: 96px; flex: 0 0 96px; }
.lhb16-hd > span:nth-child(3) { width: 84px; flex: 0 0 84px; }
.lhb16-hd > span:nth-child(4) { width: 62px; flex: 0 0 62px; text-align: right; }
.lhb16-hd > span:nth-child(5) { width: 74px; flex: 0 0 74px; text-align: right; }
.lhb16-hd > span:nth-child(6) { width: 74px; flex: 0 0 74px; text-align: right; }
.lhb16-hd > span:nth-child(7) { width: 76px; flex: 0 0 76px; text-align: right; }
.lhb16-hd > span:nth-child(8) { width: 48px; flex: 0 0 48px; text-align: center; }
.lhb16-hd > span:nth-child(9) { flex: 1 1 auto; }
.lhb16-hm .lhb16-row > span:nth-child(1) { width: 26px; flex: 0 0 26px; text-align: center; }
.lhb16-hm .lhb16-row > span:nth-child(2) { width: 96px; flex: 0 0 96px; }
.lhb16-hm .lhb16-row > span:nth-child(3) { width: 84px; flex: 0 0 84px; }
.lhb16-hm .lhb16-row > span:nth-child(4) { width: 62px; flex: 0 0 62px; text-align: right; }
.lhb16-hm .lhb16-row > span:nth-child(5) { width: 74px; flex: 0 0 74px; text-align: right; }
.lhb16-hm .lhb16-row > span:nth-child(6) { width: 74px; flex: 0 0 74px; text-align: right; }
.lhb16-hm .lhb16-row > span:nth-child(7) { width: 76px; flex: 0 0 76px; text-align: right; }
.lhb16-hm .lhb16-row > span:nth-child(8) { width: 48px; flex: 0 0 48px; text-align: center; }
.lhb16-hm .lhb16-row > span:nth-child(9) { flex: 1 1 auto; min-width: 0; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.lhb16-hm .lhb16-gr > span:nth-child(3) { width: auto; flex: 0 0 auto; }
.lhb16-hm .lhb16-gr > span:nth-child(4) { width: auto; flex: 0 0 auto; text-align: left; }
.lhb16-blank { height: 8px; padding: 0 !important; }
/* 游资榜 table2：7 列 序|席位|名称|席位|买入|卖出|净买入/净占比（+隐藏代码） */
.lhb16-t2 { width: 620px; flex: 0 0 620px; }
.lhb16-t2 .lhb16-row > span:nth-child(1) { width: 26px; flex: 0 0 26px; text-align: center; }
.lhb16-t2 .lhb16-row > span:nth-child(2) { width: 84px; flex: 0 0 84px; }
.lhb16-t2 .lhb16-row > span:nth-child(3) { width: 76px; flex: 0 0 76px; }
.lhb16-t2 .lhb16-row > span:nth-child(4) { width: 84px; flex: 0 0 84px; }
.lhb16-t2 .lhb16-row > span:nth-child(5) { width: 74px; flex: 0 0 74px; text-align: right; }
.lhb16-t2 .lhb16-row > span:nth-child(6) { width: 74px; flex: 0 0 74px; text-align: right; }
.lhb16-t2 .lhb16-row > span:nth-child(7) { flex: 1 1 auto; text-align: right; }
.lhb16-t2 .lhb16-gr > span:nth-child(3) { width: auto; flex: 0 0 auto; }
.lhb16-t2 .lhb16-gr > span:nth-child(4) { width: auto; flex: 0 0 auto; text-align: left; }
.lhb16-t2 .lhb16-stk { color: var(--tx); }
/* 龙虎榜 table1（带表头，列宽与数据行严格一致） */
.lhb16-lh1-hd > span:first-child { width: 26px; flex: 0 0 26px; text-align: center; }
.lhb16-lh1-hd > span:nth-child(2) { width: 64px; flex: 0 0 64px; }
.lhb16-lh1-hd > span:nth-child(3) { width: 96px; flex: 0 0 96px; }
.lhb16-lh1-hd > span:nth-child(4) { width: 74px; flex: 0 0 74px; text-align: right; }
.lhb16-lh1-hd > span:nth-child(5) { width: 80px; flex: 0 0 80px; text-align: right; }
.lhb16-lh1-hd > span:nth-child(6) { width: 80px; flex: 0 0 80px; text-align: right; }
.lhb16-lh1-hd > span:nth-child(7) { width: 130px; flex: 0 0 130px; text-align: right; }
.lhb16-lh1-hd > span:nth-child(8) { flex: 1 1 auto; }
.lhb16-lh1 .lhb16-row > span:first-child { width: 26px; flex: 0 0 26px; text-align: center; }
.lhb16-lh1 .lhb16-row > span:nth-child(2) { width: 64px; flex: 0 0 64px; }
.lhb16-lh1 .lhb16-row > span:nth-child(3) { width: 96px; flex: 0 0 96px; }
.lhb16-lh1 .lhb16-row > span:nth-child(4) { width: 74px; flex: 0 0 74px; text-align: right; }
.lhb16-lh1 .lhb16-row > span:nth-child(5) { width: 80px; flex: 0 0 80px; text-align: right; }
.lhb16-lh1 .lhb16-row > span:nth-child(6) { width: 80px; flex: 0 0 80px; text-align: right; }
.lhb16-lh1 .lhb16-row > span:nth-child(7) { width: 130px; flex: 0 0 130px; text-align: right; }
.lhb16-lh1 .lhb16-row > span:nth-child(8) { flex: 1 1 auto; min-width: 0; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.lhb16-lh1 .lhb16-row { cursor: pointer; }
/* 龙虎榜 table2 详情：表头 label 与股票行同为 9 列网格，严格对应 */
.lhb16-lh2 { width: 860px; flex: 0 0 860px; overflow: auto; border-left: 1px solid var(--line);
  padding-left: 8px; }
.lhb16-lh2-hd { display: flex; gap: 8px; background: var(--accent-soft); color: #b8690a;
  font-weight: bold; font-size: 13px; padding: 5px 6px; white-space: nowrap;
  position: sticky; top: 0; z-index: 1; }
.lhb16-lh2-hd > span:nth-child(1) { width: 26px; flex: 0 0 26px; text-align: center; }
.lhb16-lh2-hd > span:nth-child(2) { flex: 1 1 auto; }
.lhb16-lh2-hd > span:nth-child(3) { width: 70px; flex: 0 0 70px; }
.lhb16-lh2-hd > span:nth-child(4) { width: 62px; flex: 0 0 62px; text-align: right; }
.lhb16-lh2-hd > span:nth-child(5) { width: 76px; flex: 0 0 76px; text-align: right; }
.lhb16-lh2-hd > span:nth-child(6) { width: 64px; flex: 0 0 64px; text-align: right; }
.lhb16-lh2-hd > span:nth-child(7) { width: 64px; flex: 0 0 64px; text-align: right; }
.lhb16-lh2-hd > span:nth-child(8) { width: 64px; flex: 0 0 64px; text-align: right; }
.lhb16-lh2-hd > span:nth-child(9) { flex: 1.2 1 12%; text-align: right; }
.lhb16-lh2-body { position: relative; }
.lhb16-lh2-tip { color: var(--tx-3); padding: 10px 6px; font-size: 13px; }
.lhb16-d-head { border-bottom: 1px solid #d97400; }
.lhb16-d-head > span:nth-child(1) { width: 26px; flex: 0 0 26px; text-align: center; }
.lhb16-d-head > span:nth-child(2) { flex: 1 1 auto; }
.lhb16-d-head > span:nth-child(3) { width: 70px; flex: 0 0 70px; }
.lhb16-d-head > span:nth-child(4) { width: 62px; flex: 0 0 62px; text-align: right; }
.lhb16-d-head > span:nth-child(5) { width: 76px; flex: 0 0 76px; text-align: right; }
.lhb16-d-head > span:nth-child(6) { width: 64px; flex: 0 0 64px; text-align: right; }
.lhb16-d-head > span:nth-child(7) { width: 64px; flex: 0 0 64px; text-align: right; }
.lhb16-d-head > span:nth-child(8) { width: 64px; flex: 0 0 64px; text-align: right; }
.lhb16-d-head > span:nth-child(9) { flex: 1.2 1 12%; text-align: right; }
.lhb16-d-reason { color: var(--tx); }
/* 席位行：左（买半区）+ 右（卖半区），每半区 序|席位名+游资|买入|卖出|(差额) */
.lhb16-d-dep { padding-left: 18px; }
.lhb16-d-dep > span:first-child { width: 18px; flex: 0 0 18px; }
.lhb16-half { flex: 1 1 50%; display: flex; gap: 6px; min-width: 0; align-items: baseline; }
.lhb16-half > span:nth-child(1) { width: 16px; flex: 0 0 16px; text-align: center; }
.lhb16-half > span:nth-child(2) { flex: 1 1 auto; min-width: 0; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.lhb16-half > span:nth-child(3) { flex: 0 0 auto; }
.lhb16-half > span:nth-child(4) { width: 64px; flex: 0 0 64px; text-align: right; }
.lhb16-half > span:nth-child(5) { width: 64px; flex: 0 0 64px; text-align: right; }
.lhb16-half > span:nth-child(6) { width: 84px; flex: 0 0 84px; text-align: right; }
/* ==================== AI复盘 tab_ai_review_vc ==================== */
.air-root { display: flex; height: 100%; min-height: 0; }
.air-left { width: 220px; flex: 0 0 220px; background: #1f1f1f; border-right: 1px solid #333;
  display: flex; flex-direction: column; min-height: 0; }
.air-date-hd { background: #2a2a2a; color: #ddd; padding: 5px; font-size: 13px; font-weight: bold;
  text-align: center; }
.air-dates { flex: 1 1 auto; overflow: auto; }
.air-date { color: #e0e0e0; text-align: center; padding: 6px 4px; font-size: 13px; cursor: pointer;
  border-bottom: 1px solid #333; }
.air-date:hover { background: #2a2a2a; }
.air-date.on { background: #1a3a5c; color: #fff; }
.air-right { flex: 1 1 auto; min-width: 0; background: #0d1117; }
.air-frame { width: 100%; height: 100%; border: 0; background: #fff; }

/* ==================== 情绪截面 table8（三率 今/昨） ==================== */
.st8 { border-collapse: collapse; margin: 4px 8px; font-size: 13px; }
.st8 th, .st8 td { border: 1px solid #3a3a3a; padding: 4px 10px; text-align: center; background: #2a2a2a; color: #fff; }
.st8 .st8-h { color: #FF8800; font-weight: bold; background: #2a2a2a; }
.st8 .st8-lab { color: #aaa; background: #2a2a2a; }
.st8 .st8-v { color: #fff; font-family: Consolas, monospace; }

/* ==================== 情绪截面 view5 晋级率梯队 ==================== */
.v5 { background: #2a2a2a; border-radius: 6px; padding: 6px; }
.v5-bar { display: flex; align-items: center; gap: 6px; }
.v5-btn { background: transparent; border: 1px solid #888; color: #ddd; border-radius: 4px;
  padding: 2px 12px; font-size: 12px; cursor: pointer; }
.v5-btn.on { border-color: #FFA500; color: #FFA500; }
.v5-sum { margin-left: auto; font-size: 12px; font-weight: bold; }
.v5-cbar { display: flex; gap: 6px; padding: 6px 0 2px; }
.v5-ccard { min-width: 88px; height: 44px; background: #2a2a2a; border: 1px solid #555;
  border-radius: 4px; padding: 3px 8px; cursor: pointer; text-align: center; flex: 0 0 auto; }
.v5-ccard.on { border-color: #FFA500; }
.v5-cc-n { color: #fff; font-size: 12px; white-space: nowrap; }
.v5-cc-c { color: #AAAAAA; font-size: 11px; }
.v5-area { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; overflow-x: hidden;
  padding-top: 6px; }
.v5-col { flex: 1 1 0; min-width: 0; }
.v5-sec { margin-bottom: 8px; }
.v5-title { display: flex; justify-content: center; align-items: center; gap: 40px;
  background: rgba(255, 59, 48, .16); border-radius: 5px; padding: 3px 14px;
  font-weight: bold; font-size: 13px; color: #FF3B30; margin-bottom: 6px;
  white-space: nowrap; flex-wrap: nowrap; }
.v5-title .t, .v5-title .r { white-space: nowrap; }
.v5-title.g { background: rgba(0, 200, 83, .16); color: #00C853; }
.v5-title .r { font-family: Consolas, monospace; }
.v5-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 6px; }
.v5-card { background: #2a2a2a; border: 1px solid #444; border-radius: 4px; height: 68px;
  min-width: 108px; padding: 4px 6px; cursor: pointer; overflow: hidden; }
.v5-card:hover, .v5-card.hl { border-color: #FFA500; }
.v5-card-top { display: flex; justify-content: space-between; align-items: center; gap: 4px; min-width: 0; }
.v5-card-time { color: #888; font-size: 11px; font-family: Consolas, monospace; }
.v5-card-pct { font-size: 12px; font-weight: bold; }
.v5-card-name { color: #fff; font-weight: bold; font-size: 14px; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v5-card-hot { color: #888; font-size: 11px; text-align: center; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }

/* ---- 龙虎榜行内细节修正：单行省略 + 席位行两栏 ---- */
.lhb16-row { white-space: nowrap; }
.lhb16-row > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.lhb16-lh1 .lhb16-row { height: 30px; align-items: center; }
.lhb16-d-reason > span { width: auto !important; flex: 1 1 auto !important; }
.lhb16-d-dep { align-items: center; }
.lhb16-d-dep > span:nth-child(2), .lhb16-d-dep > span:nth-child(3) {
  width: auto !important; flex: 1 1 50% !important; white-space: nowrap; overflow: hidden; }
.lhb16-d-dep > span:first-child { width: 24px !important; flex: 0 0 24px !important; }
.lhb16-d-head { white-space: nowrap; }
/* ====== 最强题材（tab_1_view.pyc 1:1 深色面板）====== */
.stt { height: 100%; display: flex; gap: 0; background: #262626;
  box-sizing: border-box; padding: 2px; min-width: 0; min-height: 0; overflow-x: auto; overflow-y: hidden; }
.stt-f2 { flex: 0 0 40%; min-width: 320px; max-width: none; display: flex;
  flex-direction: column; min-height: 0; }
.stt-f3 { flex: 0 0 30%; min-width: 260px; max-width: none; display: flex;
  flex-direction: column; min-height: 0; background: #2a2a2a; border-radius: 4px; }
.stt-f4 { flex: 1 1 0; min-width: 300px; max-width: none; display: flex;
  flex-direction: column; min-height: 0; }
.stt-resizer { position: relative; z-index: 3; flex: 0 0 12px; width: 12px; cursor: col-resize;
  touch-action: none; user-select: none; display: flex; align-items: center; justify-content: center; }
.stt-resizer::after { content: ""; width: 2px; height: 36px; border-radius: 2px; background: #aab6c4; opacity: .5; transition: height .12s, width .12s, opacity .12s, background .12s; }
.stt-resizer:hover::after, .stt-resizer:focus-visible::after, .stt-resizer.is-dragging::after { width: 3px; height: 52px; background: var(--accent); opacity: 1; }
.stt-resizer:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 4px; }
.stt.is-resizing, .stt.is-resizing * { cursor: col-resize !important; user-select: none !important; }
.stt table { border-collapse: collapse; width: 100%; font-size: 12px; }
.stt thead th { position: sticky; top: 0; z-index: 1; background: #2a2a2a; color: #FFA500;
  font-size: 13px; font-weight: bold; text-align: center; padding: 2px 4px; height: 20px;
  border-bottom: 1px solid #3a3a3a; white-space: nowrap; }
.stt tbody td { padding: 1px 4px; height: 19px; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; border-bottom: 1px solid #303030; }
.stt tbody tr:hover td { background: #333; }
.stt-c { text-align: center; } .stt-r { text-align: right; } .stt-l { text-align: left; }
/* table3 题材表：fixedHeight 240 */
.stt-t3 { height: 240px; overflow: auto; flex: 0 0 auto; }
.stt-t3 td:first-child { white-space: nowrap; }
.stt-t3 .stt-logic { color: #C9A227; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 0; }
/* table4 板块详情：表头固定 + 滚动体 */
.stt-t4 { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.stt-t4-head { flex: 0 0 auto; }
.stt-t4-body { flex: 1 1 auto; min-height: 0; overflow: auto; }
.stt-t4-title td { color: #FFA500; font-weight: bold; background: #2a2a2a; }
.stt-t4-title.hit td { background: #3a3a3a; }
/* table8 三率：fixedHeight 62，3 列等宽 */
.stt-t8 { flex: 0 0 auto; height: 62px; overflow: hidden; }
.stt-t8 table { height: 100%; table-layout: fixed; }
.stt-t8 thead th { position: static; font-size: 13px; }
.stt-t8 tbody td { text-align: left; font-weight: bold; font-size: 13px;
  font-family: Consolas, monospace; border: none; }
.stt-notice { color: #FFD54F; font-size: 11px; padding: 0 4px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
/* table7 情绪流全景表 */
.stt-t7 { flex: 1 1 auto; min-height: 0; overflow: auto; }
.stt-state { display: inline-block; border-radius: 3px; padding: 0 5px;
  font-weight: bold; line-height: 15px; font-size: 11px; }

/* ====== view5 深色布局微调（覆盖早期实现） ====== */
.stt-f3 .v5 { height: 100%; display: flex; flex-direction: column; min-height: 0;
  background: #2a2a2a; padding: 4px 2px; box-sizing: border-box; }
.v5-bar { height: 32px; flex: 0 0 auto; display: flex; align-items: center;
  gap: 6px; padding: 0 8px; box-sizing: border-box; }
.v5-btn { background: transparent; border: 1px solid #888; color: #ddd;
  border-radius: 3px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
.v5-btn:hover { background: #3a3a3a; }
.v5-btn.on { border-color: #FFA500; color: #FFA500; }
.v5-sum { margin-left: auto; text-align: left; font-size: 14px; font-weight: bold;
  line-height: 1.25; white-space: nowrap; }
.v5-divider { height: 1px; background: #555; flex: 0 0 auto; margin: 2px 0; }
.v5-cscroll { flex: 0 0 auto; overflow-x: auto; overflow-y: hidden; }
.v5-cscroll::-webkit-scrollbar { height: 6px; }
.v5-cscroll::-webkit-scrollbar-thumb { background: #666; border-radius: 3px; }
.v5-cbar { display: flex; gap: 2px; padding: 4px 8px; width: max-content; }
.v5-ccard { min-width: 88px; height: 44px; background: #2a2a2a; border: 1px solid #888;
  border-radius: 4px; padding: 4px 8px; cursor: pointer; box-sizing: border-box;
  display: flex; flex-direction: column; justify-content: center; }
.v5-ccard.on { border-color: #FFA500; }
.v5-cc-n { color: #fff; font-size: 12px; white-space: nowrap; text-align: center; }
.v5-cc-c { color: #AAAAAA; font-size: 11px; text-align: center; }
/* 股票区：客户端 = QScrollArea(widgetResizable) 内 QVBoxLayout(AlignTop)
   → 档位**纵向堆叠、每档整宽**，滚动条隐藏、滚轮滚动；
   高亮：早期实现误写成 display:flex 横排 + max-height:420px（=「只用了一半空间」的根因）。 */
.v5-area { display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; min-height: 0;
  max-height: none; overflow-y: auto; overflow-x: hidden; padding: 4px 8px; }
/* 并列模式：左右两栏各自独立滚动（客户端 _left/_right_stock_area 两个 QScrollArea） */
.v5-parallel { display: flex; gap: 6px; flex: 1 1 auto; min-height: 0; }
.v5-parallel .v5-col { flex: 1 1 0; min-width: 0; min-height: 0; overflow-y: auto; overflow-x: hidden; }
.v5-vline { width: 1px; background: #555; flex: 0 0 auto; }
.v5-sec { flex: 0 0 auto; margin-bottom: 0; }
.v5-title { color: #FF3B30; font-weight: bold; font-size: 13px; text-align: center;
  background: rgba(255, 59, 48, .16); border-radius: 5px; padding: 0 14px;
  height: 24px; line-height: 24px; margin: 2px auto 4px; width: max-content;
  max-width: 100%; white-space: nowrap; }
.v5-title.g { background: rgba(0, 200, 83, .16); color: #00C853; }
.v5-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 2px; }
.v5-card { background: #2a2a2a; border: 1px solid #444; border-radius: 4px; height: 68px;
  padding: 4px 6px; box-sizing: border-box; cursor: pointer; min-width: 0; }
.v5-card:hover, .v5-card.hl { border-color: #FFA500; }
.v5-card-top { display: flex; justify-content: space-between; align-items: center; }
.v5-card-time { color: #888888; font-size: 12px; font-family: Consolas, monospace; }
.v5-card-pct { font-size: clamp(10px, .72vw, 12px); font-weight: bold; font-family: Consolas, monospace; white-space: nowrap; flex: 0 0 auto; }
.v5-card-name { font-size: 12px; font-weight: bold; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v5-card-hot { color: #AAAAAA; font-size: 11px; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 最强题材中栏：仅替换卡片区为高对比亮色，左右行情表维持原样 */
.stt-f3 { background: var(--stt-panel-alt); border-left: 1px solid var(--stt-border); border-right: 1px solid var(--stt-border); }
.stt-f3 .v5 { background: var(--stt-panel-alt); }
.stt-f3 .v5-btn { background: var(--stt-panel); border-color: var(--stt-border); color: var(--stt-text);
  white-space: nowrap; padding-left: clamp(4px, .5vw, 10px); padding-right: clamp(4px, .5vw, 10px);
  font-size: clamp(10px, .72vw, 12px); }
.stt-f3 .v5-btn:hover { background: var(--stt-head); }
.stt-f3 .v5-btn.on { background: var(--accent-soft); border-color: var(--accent-d); color: var(--accent-d); }
.stt-f3 .v5-sum > div:first-child { color: var(--stt-up) !important; }
.stt-f3 .v5-sum > div:last-child { color: var(--stt-amber) !important; }
.stt-f3 .v5-divider, .stt-f3 .v5-vline { background: var(--stt-border); }
.stt-f3 .v5-ccard { background: var(--stt-panel); border-color: var(--stt-border); }
.stt-f3 .v5-ccard:hover { background: var(--stt-row-alt); }
.stt-f3 .v5-ccard.on { background: var(--accent-soft); border-color: var(--accent-d); }
.stt-f3 .v5-cc-n { color: var(--stt-text); }
.stt-f3 .v5-cc-c { color: var(--stt-muted); }
.stt-f3 .v5-title { color: var(--stt-up); background: var(--stt-up-soft); }
.stt-f3 .v5-title.g { color: var(--stt-down); background: var(--stt-down-soft); }
.stt-f3 .v5-card { background: var(--stt-panel); border-color: var(--stt-border); height: 68px;
  display: flex; flex-direction: column; justify-content: space-between; }
.stt-f3 .v5-analysis .v5-card { height: 80px; }
.stt-f3 .v5-card:hover, .stt-f3 .v5-card.hl { background: var(--stt-hover); border-color: var(--accent-d); }
.stt-f3 .v5-card-time { color: var(--stt-muted); font-size: clamp(9px, .55vw, 10px); min-width: 0; flex: 1 1 auto; white-space: nowrap; overflow: hidden; }
.stt-f3 .v5-card-hot { color: var(--stt-muted); min-width: 0; flex: 0 0 14px; line-height: 14px;
  font-size: clamp(8px, .5vw, 10px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stt-f3 .v5-card-meta { color: var(--stt-muted); min-width: 0; flex: 0 0 13px; line-height: 13px;
  font-size: clamp(8px, .5vw, 10px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-align: center; width: 100%; }
.stt-f3 .v5-card-meta:empty { display: none; }
.stt-f3 .v5-card-name { display: flex; align-items: center; justify-content: center; gap: 3px; min-width: 0; }
.stt-f3 .v5-card-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stt-f3 .v5-card-state { flex: 0 0 auto; color: var(--stt-break-text); background: var(--stt-break-bg);
  border-radius: 3px; padding: 0 3px; font-size: 10px; line-height: 16px; }
.stt-f3 .v5-card-state-drop { color: var(--blue); background: var(--blue-soft); }
.stt-f3 .v5-analysis-rank1, .stt-f3 .v5-cc-rank1 { color: #ff3b30; font-weight: 700; }
.stt-f3 .v5-analysis-rank2, .stt-f3 .v5-cc-rank2 { color: #ff9800; font-weight: 700; }
.stt-f3 .v5-analysis-rank3, .stt-f3 .v5-cc-rank3 { color: #ffd54f; font-weight: 700; }
.stt-f3 .v5-analysis-rank4, .stt-f3 .v5-cc-rank4 { color: #ec70c1; font-weight: 700; }
.stt-f3 .v5-card.v5-card-topic-selected {
  box-shadow: 0 0 0 2px rgba(125, 180, 255, .78), 0 0 10px rgba(125, 180, 255, .22);
}
.stt-t3 tr.stt-topic-row.topic-selected td { background: var(--stt-hover); }

:root:not([data-theme="dark"]) .stt-f3 .v5-analysis-rank3,
:root:not([data-theme="dark"]) .stt-f3 .v5-cc-rank3 { color: #9a6900; }

/* 最强题材整页统一亮色：保留左右/中间三栏布局，只调整面色、字色和状态色 */
.stt { background: var(--stt-bg); }
.stt-f2, .stt-f4 { background: transparent; }
.stt table { background: var(--stt-panel); }
.stt thead th { background: var(--stt-head); color: var(--stt-amber); border-bottom-color: var(--stt-border); }
.stt tbody td { background: var(--stt-panel); color: var(--stt-text); border-bottom-color: var(--line); }
.stt tbody tr:nth-child(even) td { background: var(--stt-row-alt); }
.stt tbody tr:hover td { background: var(--stt-hover); }
.stt-t3 .stt-logic { color: var(--stt-muted); }
.stt-t4-title td { color: var(--stt-amber); background: var(--stt-title); }
.stt-t4-title.hit td { background: var(--stt-title-hit); }
.stt-notice { color: var(--stt-amber); }

/* 最强题材内滚动条：3px，静止时透明，滚动结束后自动淡出 */
.stt .stt-t3, .stt .stt-t4-body, .stt .stt-t7, .stt .v5-area,
.stt .v5-parallel .v5-col, .stt .v5-cscroll {
  scrollbar-width: thin; scrollbar-color: transparent transparent;
}
.stt .stt-t3::-webkit-scrollbar, .stt .stt-t4-body::-webkit-scrollbar,
.stt .stt-t7::-webkit-scrollbar, .stt .v5-area::-webkit-scrollbar,
.stt .v5-parallel .v5-col::-webkit-scrollbar, .stt .v5-cscroll::-webkit-scrollbar {
  width: 3px; height: 3px;
}
.stt .stt-t3::-webkit-scrollbar-track, .stt .stt-t4-body::-webkit-scrollbar-track,
.stt .stt-t7::-webkit-scrollbar-track, .stt .v5-area::-webkit-scrollbar-track,
.stt .v5-parallel .v5-col::-webkit-scrollbar-track, .stt .v5-cscroll::-webkit-scrollbar-track {
  background: transparent;
}
.stt .stt-t3::-webkit-scrollbar-thumb, .stt .stt-t4-body::-webkit-scrollbar-thumb,
.stt .stt-t7::-webkit-scrollbar-thumb, .stt .v5-area::-webkit-scrollbar-thumb,
.stt .v5-parallel .v5-col::-webkit-scrollbar-thumb, .stt .v5-cscroll::-webkit-scrollbar-thumb {
  background: transparent; border: 0; border-radius: 3px;
}
.stt .stt-t3.is-scrolling, .stt .stt-t4-body.is-scrolling,
.stt .stt-t7.is-scrolling, .stt .v5-area.is-scrolling,
.stt .v5-parallel .v5-col.is-scrolling, .stt .v5-cscroll.is-scrolling {
  scrollbar-color: #9aa7b7 transparent;
}
.stt .stt-t3.is-scrolling::-webkit-scrollbar-thumb, .stt .stt-t4-body.is-scrolling::-webkit-scrollbar-thumb,
.stt .stt-t7.is-scrolling::-webkit-scrollbar-thumb, .stt .v5-area.is-scrolling::-webkit-scrollbar-thumb,
.stt .v5-parallel .v5-col.is-scrolling::-webkit-scrollbar-thumb, .stt .v5-cscroll.is-scrolling::-webkit-scrollbar-thumb {
  background: #9aa7b7;
}
/* ===== 涨停简图（.stb，亮/暗主题复用情绪截面语义色） ===== */
:root:not([data-theme="dark"]) .emotion-theme-surface { --stt-bg: #edf2f7; --stt-panel: #fff; --stt-panel-alt: #edf2f7; --stt-head: #e2e8f0;
  --stt-row-alt: #edf2f7; --stt-hover: #e2eaf3; --stt-border: #c6d0dc; --stt-text: #152233; --stt-muted: #4b5b6e;
  --stt-up: #b42318; --stt-down: #087443; --stt-amber: #704600; --stt-orange: #754200;
  --stt-code-688: #00657f; --stt-code-other: #214f8d; --stt-title: #fff0d6; --stt-title-hit: #ffe2ad;
  --stt-up-soft: #fde8e7; --stt-down-soft: #e4f4ea; --stt-break-bg: #fff0c2; --stt-break-text: #784b00; }
.stb { height: 100%; display: flex; flex-direction: column; background: var(--stt-bg); color: var(--stt-text);
  box-sizing: border-box; padding: 2px; min-height: 0; }
.stb-bar { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 4px 6px;
  background: var(--stt-panel-alt); border-bottom: 1px solid var(--stt-border); }
.stb-search { width: 140px; min-height: 27px; padding: 3px 8px; background: var(--stt-panel); color: var(--stt-text);
  border: 1px solid var(--stt-border); border-radius: 4px; font-size: 12px; outline: none; }
.stb-search::placeholder { color: var(--stt-muted); }
.stb-search:focus { border-color: var(--accent-d); box-shadow: 0 0 0 2px var(--accent-soft); }
.stb-clear { min-height: 27px; padding: 3px 14px; background: var(--stt-panel); color: var(--stt-text); border: 1px solid var(--stt-border);
  border-radius: 4px; font-size: 12px; cursor: pointer; }
.stb-clear:hover { border-color: var(--accent-d); color: var(--accent-d); background: var(--stt-head); }
.stb-split { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 10px minmax(0, 1fr); }
.stb-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.stb-resizer { position: relative; z-index: 2; cursor: col-resize; touch-action: none; outline: none; }
.stb-resizer::after { content: ""; position: absolute; top: 0; bottom: 0; left: 4px; width: 2px; background: var(--stt-border); transition: background .15s, width .15s, left .15s; }
.stb-resizer:hover::after, .stb-resizer:focus-visible::after { left: 3px; width: 4px; background: var(--accent); }
.stb-t1, .stb-t2 { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.stb-scroll { flex: 1 1 auto; min-height: 0; overflow: auto; }
.stb-t1 table, .stb-t2 table { border-collapse: collapse; width: 100%; font-size: 12px; background: var(--stt-panel); }
.stb-t1 thead th, .stb-t2 thead th { position: sticky; top: 0; z-index: 1; background: var(--stt-head);
  color: var(--stt-amber); font-size: 13px; font-weight: bold; text-align: center; padding: 2px 4px;
  height: 20px; border-bottom: 1px solid var(--stt-border); white-space: nowrap; }
.stb-t1 tbody td, .stb-t2 tbody td { padding: 1px 5px; height: 19px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; background: var(--stt-panel); color: var(--stt-text); border-bottom: 1px solid var(--stt-border); }
.stb-t1 tbody tr:nth-child(even):not(.stb-grp) td, .stb-t2 tbody tr:nth-child(even):not(.stb-grp) td { background: var(--stt-row-alt); }
.stb-t1 tbody tr:not(.stb-grp):hover td, .stb-t2 tbody tr:not(.stb-grp):hover td { background: var(--stt-hover); }
.stb-t1 td.stb-a-c, .stb-t2 td.stb-a-c { text-align: center; }
.stb-t1 td.stb-a-l, .stb-t2 td.stb-a-l { text-align: left; }
.stb-t1 td.stb-a-r, .stb-t2 td.stb-a-r { text-align: right; }
.stb-grp td { color: var(--stt-amber); font-size: 13px; font-weight: bold; background: var(--stt-title);
  padding-top: 4px; border-bottom: 1px solid var(--stt-border); }

/* ===== 情绪速览（.stk，tab_3_vc 1:1） ===== */
.stk { height: 100%; display: flex; background: var(--stt-bg); color: var(--stt-text); box-sizing: border-box;
  padding: 2px; min-height: 0; }
.stk-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.stk-sep { flex: 0 0 1px; background: var(--stt-border); margin: 4px 0; }
.stk-hd { flex: 0 0 auto; color: var(--stt-amber); font-size: 13px; font-weight: bold; text-align: center;
  padding: 3px 0; border-bottom: 1px solid var(--stt-border); }
.stk-bd { flex: 1 1 auto; min-height: 0; overflow: auto; }
.stk-bd table { border-collapse: collapse; width: 100%; font-size: 12px; background: var(--stt-panel); }
.stk-bd tbody td { padding: 1px 6px; height: 20px; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; background: var(--stt-panel); border-bottom: 1px solid var(--stt-border); }
.stk-bd tbody tr:nth-child(even) td { background: var(--stt-row-alt); }
.stk-bd tbody tr:hover td { background: var(--stt-hover); }
.stk-bd td.stk-a-c { text-align: center; }
.stk-bd td.stk-a-l { text-align: left; }
.stk-bd td.stk-a-r { text-align: right; }

/* ==========================================================================
   板块精选修复：表头随内容横向滚动（sticky）+ 列固定宽不换行 + FNI 空值
   ========================================================================== */
/* 表头+表体同一滚动容器：表体横向滚动时表头一起动 */
.pp-t1-scroll, .pp-t2-scroll { flex: 1 1 auto; min-height: 0; overflow: auto; }
.pp-t1-scroll .pp-t1-head, .pp-t2-scroll .pp-t2-head {
  position: sticky; top: 0; z-index: 2;
}
.pp-t1-scroll .pp-t1-body, .pp-t2-scroll .pp-t2-body { overflow: visible; flex: 0 0 auto; }
.pp-t2-head { overflow-x: visible; }
.pp-cross-t3body { overflow: visible; flex: 0 0 auto; padding: 0 6px; }

/* ---- table1（9 列）固定列宽 + 不换行：62|76|56|52|56|82|78|78|56 = 596 ---- */
.pp-t1-scroll .pp-t1-head, .pp-t1-scroll .pp-t1-row { min-width: 596px; }
.pp-t1-scroll .pp-t1-head span, .pp-t1-scroll .pp-t1-row span {
  white-space: nowrap; box-sizing: border-box; min-width: 0;
}
.pp-t1-scroll .pp-t1-head span:nth-child(1), .pp-t1-scroll .pp-t1-row span:nth-child(1) { flex: 0 0 62px; }
.pp-t1-scroll .pp-t1-head span:nth-child(2), .pp-t1-scroll .pp-t1-row span:nth-child(2) { flex: 0 0 76px; }
.pp-t1-scroll .pp-t1-head span:nth-child(3), .pp-t1-scroll .pp-t1-row span:nth-child(3) { flex: 0 0 56px; }
.pp-t1-scroll .pp-t1-head span:nth-child(4), .pp-t1-scroll .pp-t1-row span:nth-child(4) { flex: 0 0 52px; }
.pp-t1-scroll .pp-t1-head span:nth-child(5), .pp-t1-scroll .pp-t1-row span:nth-child(5) { flex: 0 0 56px; }
.pp-t1-scroll .pp-t1-head span:nth-child(6), .pp-t1-scroll .pp-t1-row span:nth-child(6) { flex: 0 0 82px; }
.pp-t1-scroll .pp-t1-head span:nth-child(7), .pp-t1-scroll .pp-t1-row span:nth-child(7) { flex: 0 0 78px; }
.pp-t1-scroll .pp-t1-head span:nth-child(8), .pp-t1-scroll .pp-t1-row span:nth-child(8) { flex: 0 0 78px; }
.pp-t1-scroll .pp-t1-head span:nth-child(9), .pp-t1-scroll .pp-t1-row span:nth-child(9) { flex: 0 0 56px; }

/* ---- table2（22 列）表头/网格同模板 + 概念列最小 194px，二者同宽对齐 ----
   固定列合计 1406 + 概念 194 = 1600：容器不足时整体横向滚动，表头 sticky 跟随 */
.pp-t2-scroll .pp-t2-head, .pp-t2-scroll .pp-t2-grid {
  grid-template-columns: 44px 62px 74px 62px 70px 74px 74px 66px minmax(194px, 1fr)
    52px 74px 74px 74px 74px 74px 74px 62px 62px 62px 66px 66px 66px;
  box-sizing: border-box; min-width: 1600px;
}
.pp-t2-scroll .pp-t2-head { padding-left: 6px; padding-right: 6px; }
.pp-t2-scroll .pp-t2-body { padding: 0 6px; box-sizing: border-box; }

/* 左栏稍放宽，接近客户端面板比例 */
.pp-left { flex: 0 0 470px; }

/* ==========================================================================
   题材线（tab_6_view.pyc）—— 三栏 1:1
     main_layout: QHBoxLayout(margins 0, spacing 5)
       ├ left_widget 350px   （table1：序40 / 题材Stretch / 涨停次数70 / 日期范围120）
       └ QSplitter(Horizontal) setSizes([668, 600])
          ├ table2_container min400 max1300（序40 / 日期140 / 数量50 / 板块逻辑Stretch）
          └ table3_container min400
              └ QHBoxLayout(spacing 0)[ table3 | detail_container 400px ]
   ========================================================================== */
.tl-root {
  position: relative;
  display: flex;
  gap: 5px;                    /* main_layout.setSpacing(5) */
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.tl-root > .tl-left {
  flex: 0 0 350px; width: 350px; min-width: 350px; max-width: 350px;
  display: flex; flex-direction: column; min-height: 0;
}
.tl-root > .tl-pane2 {
  flex: 1 1 668px; min-width: 400px; max-width: 1300px;
  display: flex; flex-direction: column; min-height: 0;
}
.tl-root > .tl-pane3 {
  flex: 1 1 600px; min-width: 400px;
  display: flex; flex-direction: row; min-height: 0; gap: 0;
}

.tl-tbl {
  flex: 1 1 auto; min-width: 0; min-height: 0;
  overflow: auto; background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.tl-pane3 > .tl-tbl { flex: 1 1 auto; border-radius: var(--radius) 0 0 var(--radius); }

.tl-root table.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tl-root table.tbl th {
  position: sticky; top: 0; z-index: 2;
  background: var(--panel-3); color: var(--tx-2); font-weight: 700;
  padding: 5px 6px; border-bottom: 1px solid var(--line-strong);
  white-space: nowrap; text-align: left;
}
.tl-root table.tbl th.num { text-align: right; }
.tl-root table.tbl td {
  padding: 4px 6px; border-bottom: 1px solid var(--line-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  vertical-align: middle;
}
.tl-root table.tbl td.num { text-align: right; font-family: var(--mono); color: var(--tx-2); }
.tl-root table.tbl tbody tr { cursor: pointer; }
.tl-root table.tbl tbody tr:nth-child(even) td { background: #fbfcfe; }
.tl-root table.tbl tbody tr:hover td { background: var(--accent-soft); }
.tl-root table.tbl tbody tr.on td { background: var(--accent-soft); color: var(--accent-d); font-weight: 600; }

/* 题材列 / 板块逻辑列：可换行（客户端为 Stretch 列，多行展示） */
.tl-root table.tbl td.tl-tname { color: var(--tx); font-weight: 600; }
.tl-root table.tbl td.tl-logic {
  white-space: normal; overflow: visible; text-overflow: clip;
  color: var(--tx-2); line-height: 1.45; overflow-wrap: anywhere;
}
.tl-root table.tbl td.tl-sname { font-weight: 600; }
.tl-root table.tbl td.tl-code { font-family: var(--mono); color: var(--tx-2); }

/* 代码前缀配色：30 → QColor(255,165,0)；68 → tool.color_688_dark
   （需压过 td.tl-code / td.tl-sname 的基础色，故选择器带 table.tbl td） */
.tl-root table.tbl td.tl-c30, .tl-root .tl-detail .tl-c30 { color: #e08900; }
.tl-root table.tbl td.tl-c68, .tl-root .tl-detail .tl-c68 { color: #189fcc; }

/* table3 固定列合计 272px + 题材 Stretch：容器窄于此时按 Qt 行为横向滚动，不压缩列宽 */
.tl-root table.tbl.tl-t3 { min-width: 392px; }

/* 汇总行：底 QColor(255,165,0) / 字 QColor(255,140,0)，文案 '  当日涨停汇总' */
.tl-root table.tbl tbody tr.tl-sum td {
  background: #fff1dc !important;
  color: #c26a00 !important;
  font-weight: 700;
}
.tl-root table.tbl tbody tr.tl-sum:hover td { background: #ffe7c2 !important; }
.tl-root table.tbl tbody tr.tl-sum.on td { background: #ffe0b2 !important; }

.tl-empty { padding: 18px 14px; font-size: 12.5px; color: var(--tx-3); }

/* ---- 右侧详情面板（detail_container 固定 400px + QTextEdit 16px） ---- */
.tl-pane3 > .tl-detail {
  flex: 0 0 400px; width: 400px; min-width: 400px; max-width: 400px;
  min-height: 0; overflow: auto;
  background: var(--panel);
  border: 1px solid var(--line); border-left: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 8px 10px;
  font-size: 13px; line-height: 1.6; color: var(--tx);
}
.tl-detail .tl-detail-ph { color: var(--tx-4); font-size: 13px; padding: 4px 0; }
.tl-detail .tl-d-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.tl-detail .tl-d-code { font-family: var(--mono); color: var(--tx-2); font-weight: 400; font-size: 13px; }
.tl-detail .tl-d-h { color: var(--tx-2); margin-bottom: 2px; }
.tl-detail .tl-d-sec { color: var(--tx-2); overflow-wrap: anywhere; }

/* ---- 加载遮罩 ---- */
.tl-mask {
  position: absolute; inset: 0; z-index: 20;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; background: rgba(255, 255, 255, .72);
}
.tl-mask .mask-text { font-size: 12.5px; color: var(--tx-2); }

/* ---- 工具栏「当前题材：」客户端样式 color:#FFA500 ---- */
.tb-label.tl-cur { color: var(--accent); font-weight: 700; }

/* ---- 导出 / DIY / 说明 弹窗内小部件 ---- */
.tl-exp, .tl-diy { min-width: 320px; }
.tl-exp-tip { font-size: 12.5px; color: var(--tx-2); margin-bottom: 8px; }
.tl-ck { display: inline-flex; align-items: center; gap: 5px; margin-right: 14px; font-size: 12.5px; }
.tl-howto-ol { margin: 0; padding-left: 1.8em; }
.tl-howto-ol li { margin: 0 0 1em 0; line-height: 1.7; }

/* ==========================================================================
   人气热榜（tab/tab_5_vc.pyc）—— 浅色主题
   客户端原为深底 #2a2a2a / #3a3a3a，网页版按「色相保留、亮度压暗」适配浅底：
     · 表头橙字保留（QHeaderView::section color:orange → var(--accent-d)）
     · 隔行换色 #2a2a2a→#3a3a3a 改为 --panel / --panel-2
     · emoji 语义色由 JS 端 CHI 表映射（🟥红 🟧橙 🟩绿 ⬜正文 …）
   ========================================================================== */

/* ---- 工具栏：子页签 + 刷新时间/刷新/搜索 ---- */
.ht-tail { display: inline-flex; align-items: center; gap: 6px; }
.ht-sub {
  height: 26px; padding: 0 12px; border: 1px solid var(--line);
  background: var(--panel); color: var(--tx-2); border-radius: 4px;
  font-size: 12.5px; cursor: pointer; font-family: var(--font);
}
.ht-sub:hover { color: var(--accent-d); background: var(--accent-soft); border-color: var(--accent-line); }
.ht-sub.on {
  background: var(--accent); color: #fff; font-weight: 600; border-color: var(--accent);
}

/* ---- 内容区 ---- */
.hot .ht-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.ht-search { height: 26px; }

/* ---- 1) 人气热股：4 列并排 ---- */
.ht-cols {
  flex: 1 1 auto; min-height: 0;
  display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden;
}
.ht-col {
  flex: 1 1 0; min-width: 340px; display: flex; flex-direction: column;
  min-height: 0; border: 1px solid var(--line); border-radius: 5px;
  background: var(--panel); overflow: hidden;
}
/* 表头：与表体同一 grid 模板（列宽 50/80/95/200，第 5 列「代码」隐藏=0） */
.ht-hd, .ht-row {
  display: grid;
  grid-template-columns: 50px 80px 95px minmax(140px, 200px) 0;
  align-items: center;
}
.ht-hd {
  height: 26px; flex: 0 0 auto;
  background: var(--panel-2); border-bottom: 1px solid var(--line);
  font-size: 12.5px; font-weight: 600; color: var(--accent-d);
}
.ht-hd > span { padding: 0 4px; overflow: hidden; white-space: nowrap; }
.ht-h0 { text-align: center; }
.ht-rows { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.ht-row {
  min-height: 18px; line-height: 18px; font-size: 12.5px;
  border-bottom: 1px solid var(--line-2);
}
/* 客户端 setAlternatingRowColors(True)：逐行换色 */
.ht-row:nth-child(even) { background: var(--panel-2); }
.ht-row.ht-stk { cursor: pointer; }
.ht-row.ht-stk:hover { background: var(--accent-soft); }
.ht-c {
  padding: 0 4px; overflow: hidden; white-space: pre;
  font-size: 12.5px; color: var(--tx);
}
.ht-c0 { text-align: center; color: var(--tx-2); }

/* ---- 2) 热门板块：9 列（表头隐藏，隔行换色，无网格线） ---- */
.ht-plate {
  flex: 1 1 auto; min-height: 0; overflow: auto;
  border: 1px solid var(--line); border-radius: 5px; background: var(--panel);
}
.ht-prow {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) 76px 96px 128px 88px minmax(120px, 1fr) 78px 0 72px;
  align-items: center; min-height: 20px; line-height: 20px;
  font-size: 12.5px;
}
.ht-prow.alt { background: var(--panel-2); }
.ht-pcell {
  padding: 0 4px; overflow: hidden; white-space: nowrap;
  text-overflow: ellipsis; color: var(--tx);
}
.ht-pc0 { font-weight: 600; }
.ht-pc1, .ht-pc6 { text-align: right; }
.ht-pc8 { text-align: right; color: var(--tx-3); font-family: var(--mono); font-size: 12px; }
.ht-plateid { cursor: pointer; }
.ht-plateid:hover { color: var(--accent-d); text-decoration: underline; }

/* ---- 3) 热门话题：单列富文本（表头隐藏，自动换行） ---- */
.ht-topic {
  flex: 1 1 auto; min-height: 0; overflow: auto;
  border: 1px solid var(--line); border-radius: 5px;
  background: var(--panel); padding: 6px 10px;
}
.ht-tline {
  font-size: 12.5px; line-height: 1.65; white-space: pre-wrap;
  word-break: break-word; padding: 1px 0;
}
.ht-tline.ht-link { cursor: pointer; }
.ht-tline.ht-link:hover { text-decoration: underline; }

/* ==========================================================================
   说明页（tab_99_desc_vc.pyc Tab99DescView 1:1，浅色主题适配）
   ========================================================================== */
.desc-root { height: 100%; overflow: auto; display: flex; justify-content: center; }
.desc-inner { max-width: 1200px; width: 100%; padding: 48px 20px 40px;
  display: flex; flex-direction: column; align-items: center; }
.desc-header { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.desc-logo { width: 96px; height: 96px; background: linear-gradient(160deg, #e04040, #b91c1c);
  color: #fff; font-size: 60px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  border-radius: 45px 8px 8px 8px; box-shadow: 0 6px 18px rgba(185, 28, 28, .25); }
.desc-title { font-size: 32px; font-weight: 700; color: var(--tx); letter-spacing: 2px; }
.desc-btns { margin-top: 15px; display: flex; flex-direction: column; align-items: center; gap: 15px; }
.desc-btn { width: 320px; height: 50px; border: none; border-radius: 25px; color: #fff;
  font-size: 16px; font-weight: 700; cursor: pointer; }
.desc-btn:hover { filter: brightness(1.08); }
.desc-btn:active { filter: brightness(.95); }
.desc-btn.b-design { background: #ff8c00; }
.desc-btn.b-cycle { background: linear-gradient(180deg, #6c5ce7, #5b4bd4); }
.desc-btn.b-fuli { background: linear-gradient(180deg, #0d9488, #0f766e); }
.desc-disc { margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 15px; }
.desc-disc-t { font-size: 22px; font-weight: 700; color: var(--tx); }
.desc-disc-b { color: var(--tx-3); font-size: 13px; line-height: 2.0; text-align: center; white-space: pre-line; }

/* ---- 弹窗文档通用（DesignConceptDialog 行高1.9 / 17px / 段距1.65em） ---- */
.modal-body-doc { font-size: 17px; line-height: 1.9; padding: 20px 28px; }
.modal-body-doc .dc-doc { max-width: 640px; margin: 0 auto; color: var(--tx); }
.dc-title { font-size: 28px; font-weight: bold; color: #ff8c00; text-align: center; margin-bottom: 1.65em; }
.dc-quote { border-left: 4px solid #d4a84b; background: rgba(212, 168, 75, .08);
  border-radius: 0 8px 8px 0; margin-bottom: 1.65em; padding: 1em 1.2em 1em 1em; }
.dc-quote p { margin: 0 0 1.65em 0; color: #8a6d2f; }
.dc-quote p.dc-by { margin: 0; color: #a09070; }
.dc-gray { color: var(--tx-2); }
.c-orange { color: #ff8c00; font-weight: bold; }
.c-blue-bold { color: #5d9df4; font-weight: bold; }
.dc-doc > p { margin: 0 0 1.65em 0; }

/* ---- 周期论（CycleTheoryDialog：橙卡片圆角12 / 蓝总结 / 应用3列） ---- */
.cy-doc { max-width: 660px; margin: 0 auto; color: var(--tx); font-size: 15px; line-height: 1.8; }
.cy-title { font-size: 32px; font-weight: bold; color: #ff8c00; text-align: center; }
.cy-sub { font-size: 18px; color: var(--tx-2); text-align: center; margin: 8px 0 12px; }
.cy-h { font-size: 20px; font-weight: bold; color: #ff8c00; margin: 16px 0 14px; }
.cy-h.cy-h-blue { color: #5d9df4; }
.cy-card { border: 1px solid #ff8c00; border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; }
.cy-card-t { color: #ff8c00; font-weight: bold; }
.cy-card-b { color: var(--tx); }
.cy-card.cy-card-blue { border-color: #5d9df4; }
.cy-app { border: 1px solid #ff8c00; border-radius: 5px; padding: 10px 14px;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px 14px; }
.cy-app-cell b { margin-right: 6px; }
.cy-sep { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  height: 6px; margin: 20px 0; }
.cy-quote { color: var(--tx-3); font-style: italic; text-align: center; padding-bottom: 8px; }

/* ---- 复利表（fuli_dialog.pyc：蓝表头(74,144,226)/高亮红、点击红底、橙高亮） ---- */
.modal-body-fuli { padding: 8px; }
.fuli-scroll { position: relative; overflow: auto; max-width: 92vw; max-height: 74vh; background: var(--panel); }
.fuli-tbl { border-collapse: collapse; font-size: 12px; font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif; }
.fuli-tbl th, .fuli-tbl td { border: 1px solid var(--line); padding: 2px 6px; text-align: center;
  min-width: 52px; white-space: nowrap; }
.fuli-tbl thead th { position: sticky; top: 0; z-index: 3; background: #4a90e2; color: #fff;
  font-weight: bold; }
.fuli-tbl tbody th { position: sticky; left: 0; z-index: 2; background: #4a90e2; color: #fff;
  font-weight: bold; min-width: 40px; }
.fuli-tbl thead th.fuli-corner { left: 0; z-index: 4; }
.fuli-tbl thead th.hl, .fuli-tbl tbody th.hl { background: #ff0000; }
.fuli-tbl tbody td { cursor: pointer; }
.fuli-tbl tbody tr:hover td { background: rgba(74, 144, 226, .06); }
.fuli-vline, .fuli-hline { position: absolute; background: rgba(255, 0, 0, .5);
  pointer-events: none; opacity: 0; z-index: 5; }
.fuli-vline { top: 0; bottom: 0; width: 2px; margin-left: -1px; }
.fuli-hline { left: 0; right: 0; height: 2px; margin-top: -1px; }

/* ==========================================================================
   加载进度面板（UI.loadmeter，2026-09-14 性能改造）
   浅色主题：半透明白遮罩 + 白卡片 + 橙色进度条；压在内容区上方（与 .mask 同层）
   ========================================================================== */
.ld-panel {
  position: absolute; inset: 0; z-index: 60;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(1.5px);
  display: flex; align-items: center; justify-content: center;
}
.ld-card {
  width: 380px; max-width: 86%;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 18px 20px 14px;
  box-shadow: 0 8px 28px rgba(22, 25, 29, .10);
  display: flex; flex-direction: column; gap: 12px;
}
.ld-head { display: flex; align-items: center; gap: 9px; }
.ld-head .spinner { width: 16px; height: 16px; border-width: 2px; }
.ld-title { font-size: 13px; font-weight: 600; color: var(--tx); }
.ld-row { display: flex; align-items: center; gap: 10px; }
.ld-bar {
  flex: 1 1 auto; height: 8px; border-radius: 5px;
  background: var(--bg-2); overflow: hidden;
}
.ld-fill {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, #ffb347, var(--accent));
  border-radius: 5px; transition: width .18s linear;
}
.ld-pct {
  flex: 0 0 40px; text-align: right;
  font-size: 12.5px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums;
}
.ld-foot {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  font-size: 11.5px; color: var(--tx-3); min-height: 15px;
}
.ld-sub { color: var(--tx-2); }
.ld-eta { font-variant-numeric: tabular-nums; }

/* 全站滚动条：极细，静止隐藏；滚动中或指针靠近滚动边缘时显示 */
:root body * { scrollbar-width: thin; scrollbar-color: transparent transparent; }
:root body *::-webkit-scrollbar { width: 3px; height: 3px; }
:root body *::-webkit-scrollbar-track { background: transparent; }
:root body *::-webkit-scrollbar-thumb { background: transparent; border: 0; border-radius: 3px; }
:root body *.is-scrolling, :root body *.scrollbar-reveal { scrollbar-color: #8997a8 transparent; }
:root body *.is-scrolling::-webkit-scrollbar-thumb, :root body *.scrollbar-reveal::-webkit-scrollbar-thumb {
  background: #8997a8; border: 0;
}
.stb-resizer:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* 板块精选：亮/暗主题使用同一套高对比语义面与文字色 */
.pp-root { color: var(--tx); }
.pp-boom { color: var(--tx); background: var(--panel-2); border-color: var(--line-strong); }
.pp-boom:hover { border-color: var(--blue); }
.pp-chip { background: var(--panel); border-color: var(--line); }
.pp-chip:hover { border-color: var(--blue); box-shadow: 0 2px 8px var(--focus-ring); }
.pp-chip.sel { background: var(--accent-soft); border-color: var(--accent); }
.pp-chip.sel .pp-chip-name, .pp-chip.sel .pp-chip-strength { color: var(--accent-d) !important; }
.pp-chip-name { color: var(--tx); }
.pp-left, .pp-right { background: var(--panel); border-color: var(--line-strong); }
.pp-t1-head, .pp-t2-head, .pp-cross-t4head { color: var(--tx); background: var(--panel-2); border-color: var(--line-strong); }
.pp-t1-row, .pp-t2-c, .pp-cross-row { color: var(--tx); border-color: var(--line-2); }
.pp-t1-row:hover, .pp-cross-row:hover { background: var(--blue-soft); }
.pp-t1-row.sel { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.pp-t1-row .c-id, .pp-t2-c.c-code, .pp-cross-c.mono { color: var(--tx-2); }
.pp-t1-row .c-name, .pp-t2-c.c-name, .pp-t2-c.h-name { color: var(--tx); }
.pp-t2-c.h-concept { color: var(--tx-2); }
.pp-t2-c.c-seq { color: var(--accent-d); }
.pp-empty, .pp-tl-empty, .pp-rps-tip, .pp-rps-row span:first-child { color: var(--tx-2); }
.pp-tl-msg { color: var(--tx); border-color: var(--up); }
.pp-tl-box, .pp-tl-stock { color: var(--tx); background: var(--panel-2); border-color: var(--line-strong); }
.pp-tl-qd, .pp-tl-zt, .pp-tl-stock-code, .pp-tl-stock-stage { color: var(--tx); }
.pp-cross-sel { color: var(--tx); }
.pp-cross-left, .pp-cross-right { background: var(--panel); border-color: var(--line-strong); }
.pp-circle { background: var(--panel); border-color: var(--line-strong); }
.pp-circle.on { background: var(--blue); border-color: var(--blue); }
.pp-rps-row { border-color: var(--line-2); }
.pp-cross-export { color: var(--blue) !important; }

/* 板块精选细节：完整事件说明、明确的题材卡片、表头/数据列统一对齐 */
.pp-boom { max-height: none; overflow: visible; overflow-wrap: anywhere; }
.pp-chips { gap: 8px; padding: 3px 2px 6px; }
.pp-chip:not(.empty) {
  min-height: 46px; padding: 6px 12px; border-color: var(--line-strong);
  border-radius: 7px; background: var(--panel-2); box-shadow: var(--shadow-1);
  transition: border-color .14s, box-shadow .14s, transform .14s;
}
.pp-chip:not(.empty):hover { border-color: var(--blue); box-shadow: 0 3px 10px var(--focus-ring); transform: translateY(-1px); }
.pp-chip.sel { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); }
.pp-t2-head, .pp-t2-grid { column-gap: 2px; }
.pp-t2-h {
  display: flex; align-items: center; justify-content: center; min-height: 32px;
  padding: 3px 2px; text-align: center; white-space: normal; line-height: 1.25;
  overflow: hidden; text-overflow: clip; border-right: 1px solid var(--line-strong);
}
.pp-t2-h.h-seq, .pp-t2-h.h-code, .pp-t2-h.h-name, .pp-t2-h.h-height, .pp-t2-h.h-concept {
  justify-content: flex-start; text-align: left;
}
.pp-t2-c { padding: 3px 4px; text-align: center; border-right: 1px solid var(--line-2); }
.pp-t2-c.h-seq, .pp-t2-c.h-code, .pp-t2-c.h-name, .pp-t2-c.h-height, .pp-t2-c.h-concept { text-align: left; }
.pp-resizer { flex: 0 0 10px; position: relative; z-index: 3; cursor: col-resize; touch-action: none; outline: none; }
.pp-resizer::after { content: ""; position: absolute; top: 0; bottom: 0; left: 4px; width: 2px; border-radius: 2px; background: var(--line-strong); transition: left .14s, width .14s, background .14s; }
.pp-resizer:hover::after, .pp-resizer.dragging::after, .pp-resizer:focus-visible::after { left: 3px; width: 4px; background: var(--blue); }
