﻿/* 智数量策 · 暗色终端风（全球市场 / 题材库）2026-11-06 */
.kpl-terminal {
  --kt-bg: #070b10;
  --kt-panel: #0b1219;
  --kt-card: #101a24;
  --kt-card2: #0d161f;
  --kt-border: #1e2b3a;
  --kt-text: #e5e7eb;
  --kt-muted: #8b9bb0;
  --kt-up: #ef4444;
  --kt-down: #22c55e;
  --kt-accent: #38bdf8;
  background: var(--kt-bg);
  color: var(--kt-text);
  border: 1px solid #16212d;
  border-radius: 14px;
  padding: 16px 18px 20px;
  min-height: 70vh;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, .04), 0 12px 40px rgba(0, 0, 0, .25);
}
.kpl-terminal .kt-up { color: var(--kt-up) !important; }
.kpl-terminal .kt-down { color: var(--kt-down) !important; }
.kt-topbar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-bottom: 12px; border-bottom: 1px solid var(--kt-border);
}
.kt-kicker { font-size: 10px; letter-spacing: .22em; color: var(--kt-muted); text-transform: uppercase; }
.kt-title { font-size: 20px; font-weight: 700; margin-top: 2px; color: #f8fafc; }
.kt-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.kt-tabs-sub { margin-left: 4px; }
.kt-tab {
  border: 1px solid var(--kt-border); background: #0d151e; color: #9fb0c4;
  border-radius: 6px; padding: 5px 11px; font-size: 12px; cursor: pointer; line-height: 1.2;
}
.kt-tab:hover { border-color: #33475b; color: #e5e7eb; }
.kt-tab.on { background: #123047; border-color: #2f6f95; color: #dff6ff; }
.kt-top-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.kt-status { font-size: 12px; color: var(--kt-muted); }
.kt-btn {
  background: #102434; border: 1px solid #2b5670; color: #c9ecff;
  border-radius: 6px; padding: 6px 12px; font-size: 12px; cursor: pointer;
}
.kt-btn:hover { background: #16384f; }
.kt-btn:disabled { opacity: .5; cursor: default; }

/* 全球市场 */
.gm-main { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 14px; margin-top: 14px; }
.gm-left { min-width: 0; }
.gm-map-wrap {
  position: relative; background: radial-gradient(ellipse at 50% 45%, #0d1a27 0%, #070b10 68%);
  border: 1px solid var(--kt-border); border-radius: 12px; overflow: hidden;
}
.gm-map { width: 100%; height: 520px; }
.gm-map-foot {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 8px 12px; border-top: 1px solid var(--kt-border);
  font-size: 11px; color: var(--kt-muted); background: rgba(7, 11, 16, .65);
}
.gm-section { margin-top: 14px; }
.gm-section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  padding: 0 2px 8px; color: #dbeafe;
}
.gm-section-head b { font-size: 14px; letter-spacing: .04em; }
.gm-section-head span { font-size: 10px; color: var(--kt-muted); letter-spacing: .18em; }
.gm-card-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.gm-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gm-card {
  background: linear-gradient(160deg, #10202a 0%, #0b141c 100%);
  border: 1px solid var(--kt-border); border-radius: 9px; padding: 9px 10px 8px;
  cursor: pointer; min-width: 0; transition: border-color .15s, transform .15s;
}
.gm-card:hover { border-color: #36536b; transform: translateY(-1px); }
.gm-card.sel { border-color: var(--kt-accent); box-shadow: 0 0 0 1px rgba(56, 189, 248, .25) inset; }
.gm-card.kt-up { background: linear-gradient(160deg, #2a1216 0%, #120d0f 100%); }
.gm-card.kt-down { background: linear-gradient(160deg, #0e271b 0%, #0a120e 100%); }
.gm-card-head { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.gm-card-name { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-card-tag { font-size: 10px; color: var(--kt-muted); border: 1px solid #263646; border-radius: 3px; padding: 0 4px; }
.gm-card-price { font-size: 17px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.gm-card-chg { font-size: 11.5px; margin-top: 1px; font-variant-numeric: tabular-nums; }
.gm-spark { width: 100%; height: 26px; margin-top: 3px; display: block; }
.gm-spark-empty { height: 26px; margin-top: 3px; font-size: 10px; color: #4b5b6d; display: flex; align-items: center; }
.gm-card-meta { display: flex; justify-content: space-between; gap: 4px; margin-top: 3px; font-size: 9.5px; color: var(--kt-muted); white-space: nowrap; overflow: hidden; }
.gm-card-meta span { overflow: hidden; text-overflow: ellipsis; }

.gm-side {
  background: var(--kt-panel); border: 1px solid var(--kt-border); border-radius: 12px;
  display: flex; flex-direction: column; min-height: 0; max-height: 1040px;
}
.gm-side-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--kt-border); }
.gm-side-head b { font-size: 14px; }
.gm-side-head span { font-size: 12px; color: var(--kt-muted); }
.gm-side-list { overflow-y: auto; padding: 8px; flex: 1; min-height: 180px; max-height: 560px; }
.gm-side-item { padding: 8px 10px; border: 1px solid transparent; border-radius: 7px; cursor: pointer; }
.gm-side-item:hover { background: #0f1a24; }
.gm-side-item.sel { background: #102536; border-color: #2c526b; }
.gm-side-row1 { display: flex; justify-content: space-between; gap: 8px; }
.gm-side-name { font-size: 13px; font-weight: 600; }
.gm-side-chg { font-size: 12px; font-variant-numeric: tabular-nums; }
.gm-side-row2 { display: flex; justify-content: space-between; gap: 8px; margin-top: 2px; font-size: 11px; color: #b8c4d4; font-variant-numeric: tabular-nums; }
.gm-side-row3 { margin-top: 2px; font-size: 10px; color: var(--kt-muted); }
.gm-detail { border-top: 1px solid var(--kt-border); padding: 12px 14px 14px; }
.gm-detail-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.gm-detail-head b { font-size: 15px; }
.gm-detail-head span { font-size: 13px; }
.gm-detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.gm-detail-grid div { background: #0d1720; border: 1px solid #192633; border-radius: 6px; padding: 6px 8px; display: flex; flex-direction: column; gap: 2px; }
.gm-detail-grid span { font-size: 10px; color: var(--kt-muted); }
.gm-detail-grid b { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.gm-detail-note { margin-top: 10px; font-size: 10.5px; line-height: 1.7; color: var(--kt-muted); }

@media (max-width: 1200px) {
  .gm-main { grid-template-columns: 1fr; }
  .gm-side { max-height: none; }
  .gm-side-list { max-height: 320px; }
  .gm-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .kpl-terminal { padding: 12px; }
  .gm-map { height: 320px; }
  .gm-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gm-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gm-detail-grid { grid-template-columns: repeat(2, 1fr); }
  .kt-top-right { margin-left: 0; width: 100%; justify-content: space-between; }
}

/* 题材温度 */
.kt-input, .kt-select {
  background: #0d151e; border: 1px solid var(--kt-border); color: #dbe7f3;
  border-radius: 6px; padding: 6px 9px; font-size: 12px; outline: none;
}
.kt-input::placeholder { color: #63758a; }
.kt-input:focus, .kt-select:focus { border-color: #2f6f95; }
.kt-date { color-scheme: dark; }
.tl-notice {
  font-size: 11px; color: #fbbf24; border: 1px solid #5b4318;
  background: #1d1608; border-radius: 5px; padding: 5px 9px;
}
.tl-main { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 14px; margin-top: 14px; }
.tl-left { min-width: 0; }
.tl-cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.tl-card {
  background: linear-gradient(160deg, #10202a 0%, #0b141c 100%);
  border: 1px solid var(--kt-border); border-radius: 8px; padding: 9px 10px 8px;
  cursor: pointer; min-width: 0; transition: border-color .15s, transform .15s;
}
.tl-card:hover { border-color: #36536b; transform: translateY(-1px); }
.tl-card.sel { border-color: var(--kt-accent); box-shadow: 0 0 0 1px rgba(56, 189, 248, .25) inset; }
.tl-card.kt-up { background: linear-gradient(160deg, #2a1216 0%, #120d0f 100%); }
.tl-card.kt-down { background: linear-gradient(160deg, #0e271b 0%, #0a120e 100%); }
.tl-card-head { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.tl-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-new { font-size: 9px; color: #fecaca; border: 1px solid #7f1d1d; background: #450a0a; border-radius: 3px; padding: 0 3px; }
.tl-chg { font-size: 19px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.tl-sub { font-size: 9.5px; color: var(--kt-muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-stats { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; font-size: 9.5px; color: #93a5b8; }
.tl-branches { margin-top: 3px; font-size: 9.5px; color: #6f8297; }
.tl-empty { border: 1px dashed var(--kt-border); border-radius: 10px; padding: 40px; text-align: center; color: var(--kt-muted); }
.tl-foot { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 10px; font-size: 11px; color: var(--kt-muted); }
.tl-side {
  background: var(--kt-panel); border: 1px solid var(--kt-border); border-radius: 12px;
  display: flex; flex-direction: column; min-height: 0; max-height: 980px;
}
.tl-side-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 13px 14px 8px; }
.tl-side-name { font-size: 16px; font-weight: 700; }
.tl-side-sub { font-size: 10.5px; color: var(--kt-muted); margin-top: 2px; }
.tl-side-chg { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tl-side-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0 14px 8px; }
.tl-side-stats div { background: #0d1720; border: 1px solid #192633; border-radius: 6px; padding: 5px 7px; display: flex; flex-direction: column; gap: 1px; }
.tl-side-stats span { font-size: 9.5px; color: var(--kt-muted); }
.tl-side-stats b { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.tl-brief { margin: 0 14px 8px; font-size: 11px; line-height: 1.7; color: #aebccd; max-height: 64px; overflow-y: auto; }
.tl-tags { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 14px 8px; }
.tl-tag { font-size: 10px; color: #9dd7ff; border: 1px solid #214a63; background: #0c2332; border-radius: 4px; padding: 2px 6px; }
.tl-stock-head { display: flex; justify-content: space-between; gap: 8px; padding: 6px 14px; border-top: 1px solid var(--kt-border); border-bottom: 1px solid var(--kt-border); font-size: 10.5px; color: var(--kt-muted); }
.tl-stocks { overflow-y: auto; flex: 1; min-height: 260px; }
.tl-stock { padding: 7px 14px; border-bottom: 1px solid #131f2a; cursor: pointer; }
.tl-stock:hover { background: #0f1a24; }
.tl-stock-row1 { display: flex; align-items: baseline; gap: 8px; }
.tl-stock-code { font-family: ui-monospace, monospace; font-size: 11px; color: #7dd3fc; width: 52px; flex: 0 0 52px; }
.tl-stock-name { font-size: 12px; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-stock-chg { font-size: 11.5px; font-variant-numeric: tabular-nums; width: 64px; text-align: right; }
.tl-stock-price { font-size: 11px; color: #9fb0c4; font-variant-numeric: tabular-nums; width: 58px; text-align: right; }
.tl-stock-tags { display: flex; flex-wrap: wrap; gap: 3px; margin: 3px 0 2px 60px; }
.tl-stock-tag { font-size: 9px; color: #8ea3b9; border: 1px solid #223243; border-radius: 3px; padding: 0 4px; }
.tl-stock-reason { margin-left: 60px; font-size: 10px; line-height: 1.55; color: #6f8297; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 1300px) {
  .tl-main { grid-template-columns: 1fr; }
  .tl-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tl-side { max-height: none; }
}
@media (max-width: 720px) {
  .tl-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl-notice { order: 3; }
  .kt-top-right { width: 100%; }
  .kt-input { flex: 1; min-width: 100px; }
  .tl-side-stats { grid-template-columns: repeat(2, 1fr); }
}

/* 题材详情简介防溢出 */
.tl-brief {
  max-height: 58px !important;
  overflow: hidden !important;
  flex: 0 0 auto;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* 暗色表格页（涨停原因 / 涨幅梯队） */
.kpl-terminal .page-title { color: #f8fafc; }
.kpl-terminal .apple-card {
  background: var(--kt-panel) !important;
  border-color: var(--kt-border) !important;
  color: var(--kt-text);
}
.kpl-terminal .section-title { color: #f1f5f9; }
.kpl-terminal .muted { color: var(--kt-muted) !important; }
.kpl-terminal .num-up, .kpl-terminal .kt-up { color: var(--kt-up) !important; }
.kpl-terminal .num-down, .kpl-terminal .kt-down { color: var(--kt-down) !important; }
.kpl-terminal .el-input__wrapper,
.kpl-terminal .el-select__wrapper,
.kpl-terminal .el-date-editor.el-input__wrapper {
  background: #0d151e !important;
  box-shadow: 0 0 0 1px var(--kt-border) inset !important;
}
.kpl-terminal .el-input__inner,
.kpl-terminal .el-select__placeholder,
.kpl-terminal .el-range-input,
.kpl-terminal .el-range-separator {
  color: #dbe7f3 !important;
}
.kpl-terminal .el-table {
  --el-table-bg-color: #0d1720;
  --el-table-tr-bg-color: #0d1720;
  --el-table-header-bg-color: #111c26;
  --el-table-row-hover-bg-color: #12212d;
  --el-table-border-color: #1b2938;
  --el-table-text-color: #cbd5e1;
  --el-table-header-text-color: #8b9bb0;
  background: #0d1720 !important;
}
.kpl-terminal .el-table th.el-table__cell { background: #111c26 !important; }
.kpl-terminal .el-table td.el-table__cell { border-bottom-color: #182531 !important; }
.kpl-terminal .el-table__empty-text { color: var(--kt-muted); }
.kpl-terminal .el-table__inner-wrapper::before { background-color: #1b2938; }
.kpl-terminal .lr-stat,
.kpl-terminal .gl-stat { background: var(--kt-card); border-color: var(--kt-border); }
.kpl-terminal .lr-stat b,
.kpl-terminal .gl-stat b { color: #f8fafc; }
.kpl-terminal .lr-stat span,
.kpl-terminal .gl-stat span { color: var(--kt-muted); }
.kpl-terminal .el-checkbox__label { color: #cbd5e1; }
.kpl-terminal .el-tag { border-color: #2a3c4e; background: #0f1c27; color: #bcd3e6; }

/* Element Plus 表格暗色强制覆盖（提高特异性） */
.kpl-terminal .el-table th.el-table__cell .cell,
.kpl-terminal .el-table th.el-table__cell {
  color: #9fb0c4 !important;
  background: #111c26 !important;
  font-weight: 600;
}
.kpl-terminal .el-table td.el-table__cell .cell,
.kpl-terminal .el-table td.el-table__cell {
  color: #cbd5e1 !important;
  background: transparent !important;
}
.kpl-terminal .el-table td.el-table__cell .cell a,
.kpl-terminal .el-table td.el-table__cell a {
  color: #7dd3fc !important;
}
.kpl-terminal .el-table td.el-table__cell .cell .num-up,
.kpl-terminal .el-table td.el-table__cell .cell .kt-up { color: #ef4444 !important; }
.kpl-terminal .el-table td.el-table__cell .cell .num-down,
.kpl-terminal .el-table td.el-table__cell .cell .kt-down { color: #22c55e !important; }
.kpl-terminal .el-table .el-tag { color: #bcd3e6 !important; }

/* ===== 题材库 · 暖暗色题材浏览器（对齐参考站） ===== */
.tl-warm {
  --kt-bg: #120b0d;
  --kt-panel: #1a0f12;
  --kt-card: #241316;
  --kt-card2: #1d1013;
  --kt-border: #3a2226;
  --kt-text: #f3e8e8;
  --kt-muted: #b08f92;
  --kt-up: #ff4d4f;
  --kt-down: #22c55e;
  --kt-accent: #ff8a65;
  background: linear-gradient(180deg, #140c0e 0%, #0f090b 100%);
}
.tl-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--kt-border); padding-bottom: 10px; }
.tl-tabs-main { display: flex; gap: 4px; flex-wrap: wrap; }
.tl-main-tab {
  background: #1d1013; border: 1px solid #3a2226; color: #c9aeb1;
  border-radius: 5px; padding: 6px 13px; font-size: 12px; cursor: pointer;
}
.tl-main-tab:hover { color: #f3e8e8; border-color: #6b3439; }
.tl-main-tab.on { background: #3a1c20; border-color: #b91c1c; color: #ffe4e6; }
.tl-top-right { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tl-source-note { font-size: 10px; color: #8f6f72; margin-right: 4px; }
.tl-source-chip { font-size: 10px; color: #c9aeb1; border: 1px solid #3a2226; background: #1a0f12; border-radius: 4px; padding: 3px 7px; }
.tl-source-chip.on { color: #ffe4e6; border-color: #b91c1c; background: #3a1c20; }
.tl-source-chip.muted { color: #7d6467; }
.tl-notice { margin: 8px 0 0; font-size: 11px; color: #fbbf24; }
.tl-main { display: grid; grid-template-columns: 430px minmax(0, 1fr); gap: 12px; margin-top: 10px; }
.tl-left-panel {
  background: var(--kt-panel); border: 1px solid var(--kt-border); border-radius: 10px;
  padding: 10px; display: flex; flex-direction: column; min-width: 0; max-height: 900px;
}
.tl-search-row { display: flex; gap: 6px; }
.tl-search-row .kt-input { flex: 1; }
.tl-list-meta { margin: 8px 2px 6px; font-size: 10.5px; color: #8f6f72; }
.tl-table-wrap { overflow: auto; border: 1px solid #2a171a; border-radius: 7px; min-height: 240px; }
.tl-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.tl-table th {
  position: sticky; top: 0; z-index: 1; background: #2a1418; color: #c9aeb1;
  text-align: left; font-weight: 600; padding: 7px 7px; border-bottom: 1px solid #4a292d;
  white-space: nowrap;
}
.tl-table td { padding: 7px 7px; border-bottom: 1px solid #2a171a; vertical-align: top; }
.tl-table tbody tr { cursor: pointer; }
.tl-table tbody tr:hover { background: #241316; }
.tl-table tbody tr.sel { background: #3a1c20; box-shadow: inset 3px 0 0 #ef4444; }
.tl-name-cell { max-width: 190px; }
.tl-row-name { font-size: 12.5px; font-weight: 700; color: #f3e8e8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-row-desc { font-size: 10px; color: #8f6f72; line-height: 1.4; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tl-heat { color: #fbbf24; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl-badge { font-size: 9px; border-radius: 3px; padding: 1px 5px; border: 1px solid; }
.tl-badge.new { color: #fecaca; border-color: #7f1d1d; background: #450a0a; }
.tl-badge.hot { color: #fde68a; border-color: #78350f; background: #2b1707; }
.tl-list-foot { margin-top: 6px; font-size: 10px; color: #7d6467; line-height: 1.5; }
.tl-right-panel {
  background: var(--kt-panel); border: 1px solid var(--kt-border); border-radius: 10px;
  min-width: 0; display: flex; flex-direction: column; max-height: 900px;
}
.tl-right-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 9px 10px; border-bottom: 1px solid var(--kt-border); }
.tl-right-tabs, .tl-sort-row { display: flex; gap: 4px; flex-wrap: wrap; }
.tl-right-tabs button, .tl-sort-row button {
  background: #1d1013; border: 1px solid #3a2226; color: #c9aeb1; border-radius: 4px;
  padding: 4px 9px; font-size: 10.5px; cursor: pointer;
}
.tl-right-tabs button.on, .tl-sort-row button.on { background: #3a1c20; border-color: #b91c1c; color: #ffe4e6; }
.tl-detail-wrap { overflow-y: auto; padding: 10px 12px 16px; flex: 1; min-height: 300px; }
.tl-breadcrumb { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding-bottom: 8px; border-bottom: 1px solid #2a171a; }
.tl-crumb-name { font-size: 17px; font-weight: 700; color: #fff; }
.tl-breadcrumb > span:not(.tl-crumb-name) { font-size: 10.5px; color: #8f6f72; }
.tl-node { margin-top: 10px; border: 1px solid #3a2226; border-left: 3px solid #b91c1c; border-radius: 7px; overflow: hidden; background: #1d1013; }
.tl-node-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; background: #2a1418; }
.tl-node-head-left { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tl-node-name { font-size: 13px; font-weight: 700; color: #ffe4e6; }
.tl-node-sub { font-size: 9.5px; color: #8f6f72; }
.tl-node-count { font-size: 10px; color: #fbbf24; }
.tl-stock-cards { display: flex; flex-direction: column; gap: 5px; padding: 7px 8px; }
.tl-stock-card {
  background: #1a0f12; border: 1px solid #332026; border-radius: 5px; padding: 6px 9px;
  cursor: pointer; transition: border-color .15s;
}
.tl-stock-card:hover { border-color: #b91c1c; }
.tl-stock-card-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.tl-stock-card-name { font-size: 12px; font-weight: 700; color: #f3e8e8; }
.tl-stock-card-code { font-family: ui-monospace, monospace; font-size: 10px; color: #8f6f72; }
.tl-stock-tag { font-size: 8.5px; border-radius: 3px; padding: 1px 5px; border: 1px solid #4a292d; color: #c9aeb1; }
.tl-stock-tag.leader { color: #fecaca; border-color: #7f1d1d; background: #450a0a; font-weight: 600; }
.tl-stock-tag.heat { color: #fde68a; border-color: #78350f; background: #2b1707; }
.tl-stock-tag.node { color: #bae6fd; border-color: #164e63; background: #082f49; }
.tl-stock-card-chg { margin-left: auto; font-size: 11px; font-variant-numeric: tabular-nums; }
.tl-stock-card-price { font-size: 10px; color: #8f6f72; font-variant-numeric: tabular-nums; }
.tl-stock-card-reason { margin-top: 3px; font-size: 10px; line-height: 1.5; color: #a98b8e; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tl-all-stocks { display: flex; flex-direction: column; gap: 5px; }
.tl-empty { padding: 30px; text-align: center; color: #8f6f72; font-size: 12px; }
.tl-placeholder { padding: 30px 24px; color: #b08f92; }
.tl-placeholder b { color: #ffe4e6; font-size: 15px; }
.tl-placeholder p { font-size: 12px; line-height: 1.7; }
.tl-json { max-height: 600px; overflow: auto; background: #0d0809; border: 1px solid #2a171a; border-radius: 6px; padding: 10px; font-size: 10.5px; line-height: 1.5; color: #c9aeb1; }

@media (max-width: 1300px) {
  .tl-main { grid-template-columns: 1fr; }
  .tl-left-panel { max-height: 520px; }
  .tl-right-panel { max-height: none; }
}
@media (max-width: 720px) {
  .tl-top { align-items: flex-start; }
  .tl-top-right { margin-left: 0; width: 100%; }
  .tl-main-tab { padding: 5px 9px; font-size: 11px; }
  .tl-table-wrap { max-height: 420px; }
  .tl-right-head { align-items: flex-start; }
  .tl-stock-card-head { gap: 5px; }
  .tl-stock-card-chg { margin-left: 0; }
}

/* 题材图谱 */
.tl-graph-wrap { padding: 8px 10px 14px; }
.tl-graph { width: 100%; height: 620px; background: #120b0d; border: 1px solid #2a171a; border-radius: 7px; }
.tl-graph-note { margin-top: 6px; font-size: 10px; color: #8f6f72; }
@media (max-width: 720px) { .tl-graph { height: 420px; } }

/* 涨停原因 · 右侧题材导航（联动筛选） */
.lr-layout { display: grid; grid-template-columns: minmax(0, 1fr) 216px; gap: 12px; margin-top: 12px; align-items: start; }
.lr-main { min-width: 0; }
.lr-nav {
  background: #1a0f12; border: 1px solid #3a2226; border-radius: 10px;
  position: sticky; top: 12px; max-height: calc(100vh - 250px);
  display: flex; flex-direction: column; overflow: hidden;
}
.lr-nav-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 11px; background: #2a1418; border-bottom: 1px solid #3a2226;
  color: #f3e8e8; font-size: 12px; font-weight: 700; letter-spacing: .04em;
}
.lr-nav-count { color: #fbbf24; font-size: 10.5px; font-weight: 600; }
.lr-nav-list { overflow-y: auto; padding: 5px; flex: 1; }
.lr-nav-item {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px;
  background: transparent; border: 0; border-left: 3px solid transparent;
  color: #c9aeb1; padding: 7px 9px; font-size: 11.5px; text-align: left;
  cursor: pointer; border-radius: 4px; white-space: nowrap;
}
.lr-nav-item span { overflow: hidden; text-overflow: ellipsis; }
.lr-nav-item:hover { background: #241316; color: #f3e8e8; }
.lr-nav-item.on { background: #3a1c20; border-left-color: #ef4444; color: #ffe4e6; }
.lr-nav-item b { color: #fbbf24; font-size: 10.5px; font-weight: 600; flex: 0 0 auto; }
.lr-nav-foot { padding: 7px; border-top: 1px solid #3a2226; }
.lr-nav-clear {
  width: 100%; background: #3a1c20; border: 1px solid #7f1d1d; color: #fecaca;
  border-radius: 4px; padding: 5px; font-size: 11px; cursor: pointer;
}
.lr-nav-clear:hover { background: #4a2024; }

@media (max-width: 900px) {
  .lr-layout { grid-template-columns: 1fr; }
  .lr-nav { position: static; max-height: 205px; order: -1; }
  .lr-nav-list { display: flex; flex-direction: row; overflow-x: auto; overflow-y: hidden; padding: 5px; }
  .lr-nav-item { flex: 0 0 auto; width: auto; border-left: 0; border-bottom: 3px solid transparent; }
  .lr-nav-item.on { border-left: 0; border-bottom-color: #ef4444; }
  .lr-nav-foot { display: none; }
}

/* 表格表头/单元格紧凑化，避免窄列省略号 */
.kpl-terminal .el-table th.el-table__cell .cell {
  padding: 0 4px !important;
  font-size: 11px !important;
  white-space: nowrap;
}
.kpl-terminal .el-table td.el-table__cell .cell {
  padding: 0 4px !important;
}

/* ===== 涨幅梯队 · 区间梯队 + 连板梯队 ===== */
.gl-warm {
  --kt-bg: #120b0d;
  --kt-panel: #1a0f12;
  --kt-card: #241316;
  --kt-border: #3a2226;
  --kt-text: #f3e8e8;
  --kt-muted: #b08f92;
  --kt-up: #ff4d4f;
  --kt-down: #22c55e;
  --kt-accent: #ff8a65;
  background: linear-gradient(180deg, #140c0e 0%, #0f090b 100%);
}
.gl-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border-bottom: 1px solid var(--kt-border); padding-bottom: 10px; }
.gl-view-tabs { display: flex; gap: 4px; }
.gl-view-tabs button {
  background: #1d1013; border: 1px solid #3a2226; color: #c9aeb1; border-radius: 5px;
  padding: 6px 13px; font-size: 12px; cursor: pointer;
}
.gl-view-tabs button.on { background: #3a1c20; border-color: #b91c1c; color: #ffe4e6; }
.gl-toolbar { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gl-toolbar .kt-input { width: 190px; }
.gl-stats { display: grid; grid-template-columns: repeat(7, minmax(80px, 120px)) minmax(220px, 1fr); gap: 7px; margin-top: 10px; }
.gl-stat { background: #1a0f12; border: 1px solid #3a2226; border-radius: 7px; padding: 8px 10px; display: flex; flex-direction: column; gap: 1px; }
.gl-stat b { font-size: 18px; font-variant-numeric: tabular-nums; color: #f3e8e8; }
.gl-stat span { font-size: 10px; color: #8f6f72; }
.gl-stat-note { justify-content: center; }
.gl-stat-note span { line-height: 1.6; }
.gl-tier-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; padding: 8px 10px; background: #1a0f12; border: 1px solid #3a2226; border-radius: 8px; }
.gl-seg { display: flex; gap: 3px; }
.gl-seg button {
  background: #1d1013; border: 1px solid #3a2226; color: #c9aeb1; border-radius: 4px;
  padding: 4px 9px; font-size: 11px; cursor: pointer;
}
.gl-seg button.on { background: #3a1c20; border-color: #b91c1c; color: #ffe4e6; }
.gl-check { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: #c9aeb1; cursor: pointer; }
.gl-check input { accent-color: #ef4444; }
.gl-range-note { margin-left: auto; font-size: 10px; color: #8f6f72; }
.gl-tier-main { margin-top: 10px; display: flex; flex-direction: column; gap: 12px; }
.gl-tier-section { border: 1px solid #3a2226; border-radius: 10px; overflow: hidden; background: #150c0e; }
.gl-tier-heading { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; background: #2a1418; border-bottom: 1px solid #3a2226; }
.gl-tier-heading b { font-size: 14px; }
.gl-tier-heading span { font-size: 11px; color: #b08f92; }
.gl-tier-section.up .gl-tier-heading b { color: #ff6b6b; }
.gl-tier-section.down .gl-tier-heading b { color: #34d399; }
.gl-tier-band { border-bottom: 1px solid #2a171a; }
.gl-tier-band:last-child { border-bottom: 0; }
.gl-band-head { display: flex; align-items: center; gap: 8px; padding: 6px 12px; background: #1d1013; }
.gl-band-range { font-size: 11.5px; color: #f3e8e8; font-weight: 700; }
.gl-band-head b { font-size: 10px; color: #fbbf24; }
.gl-tier-section.up .gl-band-range { color: #fca5a5; }
.gl-tier-section.down .gl-band-range { color: #86efac; }
.gl-stock-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 8px 10px; }
.gl-stock-card {
  background: #1a0f12; border: 1px solid #332026; border-left: 3px solid #4a292d;
  border-radius: 6px; padding: 7px 9px; cursor: pointer; min-width: 0; transition: border-color .15s, transform .15s;
}
.gl-stock-card:hover { border-color: #7f1d1d; transform: translateY(-1px); }
.gl-stock-card.kt-up { border-left-color: #ef4444; }
.gl-stock-card.kt-down { border-left-color: #22c55e; }
.gl-card-top { display: flex; align-items: baseline; gap: 7px; }
.gl-name { font-size: 12.5px; font-weight: 700; color: #f3e8e8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gl-code { font-family: ui-monospace, monospace; font-size: 10px; color: #8f6f72; }
.gl-chg { margin-left: auto; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.gl-card-mid { display: flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 10px; color: #b08f92; flex-wrap: wrap; }
.gl-tag { font-size: 8.5px; border-radius: 3px; padding: 1px 4px; border: 1px solid #4a292d; color: #c9aeb1; }
.gl-tag.board { color: #fde68a; border-color: #78350f; background: #2b1707; }
.gl-tag.limit { color: #fecaca; border-color: #7f1d1d; background: #450a0a; }
.gl-tag.down { color: #bbf7d0; border-color: #14532d; background: #052e16; }
.gl-tag.theme { color: #bae6fd; border-color: #164e63; background: #082f49; }
.gl-card-tags { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 3px; }
.gl-card-reason { margin-top: 3px; font-size: 9.5px; line-height: 1.45; color: #a98b8e; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gl-card-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 3px; font-size: 9px; color: #7d6467; }
.gl-theme-group { padding: 0 10px 6px; }
.gl-theme-head { padding: 5px 0 4px; font-size: 10.5px; color: #fbbf24; font-weight: 600; }
.gl-theme-group .gl-stock-grid { padding: 0; }
.gl-more { margin: 0 10px 8px; background: #2a1418; border: 1px solid #7f1d1d; color: #fecaca; border-radius: 4px; padding: 4px 9px; font-size: 10px; cursor: pointer; }
.gl-more:hover { background: #3a1c20; }
.gl-empty { padding: 14px 12px; font-size: 11px; color: #8f6f72; }
.gl-board-tabs { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 10px; }
.gl-board-tabs button {
  background: #1d1013; border: 1px solid #3a2226; color: #c9aeb1; border-radius: 4px;
  padding: 5px 9px; font-size: 11px; cursor: pointer;
}
.gl-board-tabs button.on { background: #3a1c20; border-color: #b91c1c; color: #ffe4e6; }
.gl-board-tabs b { color: #fbbf24; margin-left: 3px; }
.gl-board-title { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.gl-stock-link { color: #7dd3fc !important; }
@media (max-width: 1300px) {
  .gl-stats { grid-template-columns: repeat(4, minmax(80px, 1fr)); }
  .gl-stat-note { grid-column: span 4; }
  .gl-stock-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .gl-top { align-items: flex-start; }
  .gl-toolbar { margin-left: 0; width: 100%; }
  .gl-toolbar .kt-input { width: 100%; flex: 1; }
  .gl-stats { grid-template-columns: repeat(2, minmax(80px, 1fr)); }
  .gl-stat-note { grid-column: span 2; }
  .gl-stock-grid { grid-template-columns: 1fr; }
  .gl-range-note { margin-left: 0; }
}

/* P4 涨幅梯队：统计卡自适应 + 可点击 */
.gl-stats { grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)) !important; }
.gl-stat.clickable { cursor: pointer; }
.gl-stat.clickable:hover { border-color: #7f1d1d; }
.gl-stat.on { border-color: #b91c1c !important; background: #3a1c20 !important; }
.gl-stat-note { grid-column: 1 / -1 !important; }

/* P1 题材库：左列表 + 右详情 */
.tl-main { grid-template-columns: 520px minmax(0, 1fr) !important; }
@media (max-width: 1300px) { .tl-main { grid-template-columns: 1fr !important; } }

/* 全球市场卡片：来源/源时间/接收时间分行 */
.gm-card-meta { flex-wrap: wrap !important; white-space: normal !important; line-height: 1.35; }
.gm-card-meta .src { flex: 0 0 auto; }
.gm-card-meta .stime { flex: 1 1 auto; min-width: 0; text-align: right; }
.gm-card-meta .received { flex: 0 0 100%; color: #6f8297; text-align: left; }
