﻿/* 智数量策 · 新页面浅色主题，对齐 app.css 原站设计系统 */
:root {
  --kpl-card-shadow: 0 6px 20px #1111110a;
}

/* 通用控件浅色 */
.tl-light .kt-kicker, .gl-light .kt-kicker { color: var(--text-muted); }
.tl-light .kt-title, .gl-light .kt-title { color: var(--text-primary); }
.tl-light .kt-input, .gl-light .kt-input,
.tl-light .kt-select, .gl-light .kt-select {
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text-primary);
  border-radius: 8px; padding: 7px 10px; font-size: 13px; outline: none;
}
.tl-light .kt-input::placeholder, .gl-light .kt-input::placeholder { color: var(--text-muted); }
.tl-light .kt-input:focus, .gl-light .kt-input:focus,
.tl-light .kt-select:focus, .gl-light .kt-select:focus { border-color: var(--accent-blue); }
.tl-light .kt-date, .gl-light .kt-date { color-scheme: light; }
.tl-light .kt-btn, .gl-light .kt-btn, .gm-light .kt-btn {
  background: var(--accent-blue); border: 1px solid var(--accent-blue); color: #fff;
  border-radius: 8px; padding: 7px 12px; font-size: 13px; cursor: pointer;
}
.tl-light .kt-btn:hover, .gl-light .kt-btn:hover, .gm-light .kt-btn:hover { background: var(--accent-hover); }
.tl-light .kt-btn:disabled, .gl-light .kt-btn:disabled, .gm-light .kt-btn:disabled { opacity: .55; cursor: default; }
.tl-light .kt-up, .gl-light .kt-up, .gm-light .kt-up, .lr-light .kt-up { color: var(--cn-up-color) !important; }
.tl-light .kt-down, .gl-light .kt-down, .gm-light .kt-down, .lr-light .kt-down { color: var(--cn-down-color) !important; }

/* 涨停原因 · 右侧题材导航浅色 */
.lr-light .lr-nav {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-card); position: sticky; top: 12px; max-height: calc(100vh - 250px);
  display: flex; flex-direction: column; overflow: hidden;
}
.lr-light .lr-nav-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; background: var(--bg-secondary); border-bottom: 1px solid var(--border);
  color: var(--text-primary); font-size: 13px; font-weight: 700;
}
.lr-light .lr-nav-count { color: #d97706; font-size: 12px; font-weight: 600; }
.lr-light .lr-nav-list { overflow-y: auto; padding: 6px; flex: 1; }
.lr-light .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: var(--text-secondary); padding: 7px 8px; font-size: 12px; text-align: left;
  cursor: pointer; border-radius: 6px; white-space: nowrap;
}
.lr-light .lr-nav-item span { overflow: hidden; text-overflow: ellipsis; }
.lr-light .lr-nav-item:hover { background: #f2f6fc; color: var(--accent-blue); }
.lr-light .lr-nav-item.on { background: #e8f1ff; border-left-color: var(--accent-blue); color: var(--accent-blue); font-weight: 600; }
.lr-light .lr-nav-item b { color: #d97706; font-size: 11px; font-weight: 600; flex: 0 0 auto; }
.lr-light .lr-nav-foot { padding: 8px; border-top: 1px solid var(--border); }
.lr-light .lr-nav-clear {
  width: 100%; background: var(--bg-card); border: 1px solid var(--border); color: var(--down-red);
  border-radius: 6px; padding: 5px; font-size: 11px; cursor: pointer;
}
.lr-light .lr-nav-clear:hover { background: #fef2f2; }
@media (max-width: 900px) {
  .lr-light .lr-nav { position: static; max-height: 205px; order: -1; }
  .lr-light .lr-nav-list { display: flex; flex-direction: row; overflow-x: auto; overflow-y: hidden; }
  .lr-light .lr-nav-item { flex: 0 0 auto; width: auto; border-left: 0; border-bottom: 3px solid transparent; }
  .lr-light .lr-nav-item.on { border-left: 0; border-bottom-color: var(--accent-blue); }
  .lr-light .lr-nav-foot { display: none; }
}

/* 涨幅梯队浅色 */
.gl-light .gl-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.gl-light .gl-toolbar { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gl-light .gl-toolbar .kt-input { width: 210px; }
.gl-light .gl-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 8px; margin-top: 12px; }
.gl-light .gl-stat {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-card); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px;
}
.gl-light .gl-stat b { font-size: 20px; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.gl-light .gl-stat span { font-size: 11px; color: var(--text-muted); }
.gl-light .gl-stat.clickable { cursor: pointer; }
.gl-light .gl-stat.clickable:hover { border-color: #a8ccff; }
.gl-light .gl-stat.on { background: #e8f1ff !important; border-color: #a8ccff !important; }
.gl-light .gl-stat-note { grid-column: 1 / -1 !important; box-shadow: none; background: var(--bg-secondary); }
.gl-light .gl-stat-note span { line-height: 1.6; }
.gl-light .gl-board-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.gl-light .gl-board-tabs button {
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text-secondary);
  border-radius: 8px; padding: 6px 10px; font-size: 12px; cursor: pointer;
}
.gl-light .gl-board-tabs button:hover { border-color: #a8ccff; color: var(--accent-blue); }
.gl-light .gl-board-tabs button.on { background: #e8f1ff; border-color: #a8ccff; color: var(--accent-blue); font-weight: 600; }
.gl-light .gl-board-tabs b { color: #d97706; margin-left: 3px; }
.gl-light .gl-board-title { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.gl-light .gl-stock-link { color: var(--accent-blue) !important; }

/* 题材库浅色 */
.tl-light .tl-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.tl-light .tl-notice {
  font-size: 12px; color: #b45309; border: 1px solid #fde68a; background: #fffbeb;
  border-radius: 8px; padding: 6px 10px;
}
.tl-light .tl-top-right { margin-left: auto; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.tl-light .tl-source-chip { font-size: 11px; color: var(--text-secondary); border: 1px solid var(--border); background: var(--bg-secondary); border-radius: 6px; padding: 4px 8px; }
.tl-light .tl-source-chip.on { color: var(--accent-blue); border-color: #a8ccff; background: #e8f1ff; }
.tl-light .tl-main { display: grid; grid-template-columns: 520px minmax(0, 1fr) !important; gap: 14px; margin-top: 12px; }
.tl-light .tl-left-panel, .tl-light .tl-right-panel {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-card); padding: 12px; min-width: 0;
}
.tl-light .tl-left-panel { display: flex; flex-direction: column; max-height: 900px; }
.tl-light .tl-right-panel { display: flex; flex-direction: column; max-height: 900px; }
.tl-light .tl-list-meta { margin: 0 2px 8px; font-size: 12px; color: var(--text-muted); }
.tl-light .tl-table-wrap { overflow: auto; border: 1px solid var(--border); border-radius: 10px; min-height: 240px; }
.tl-light .tl-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.tl-light .tl-table th {
  position: sticky; top: 0; z-index: 1; background: var(--bg-secondary); color: var(--text-primary);
  text-align: left; font-weight: 700; padding: 8px 6px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.tl-light .tl-table td { padding: 7px 6px; border-bottom: 1px solid var(--border); color: var(--text-primary); vertical-align: top; }
.tl-light .tl-table tbody tr { cursor: pointer; }
.tl-light .tl-table tbody tr:hover { background: #f7f7f7; }
.tl-light .tl-table tbody tr.sel { background: #e8f1ff; box-shadow: inset 3px 0 0 var(--accent-blue); }
.tl-light .tl-name-cell { max-width: 200px; }
.tl-light .tl-row-name { font-size: 13px; font-weight: 700; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-light .tl-row-desc { font-size: 10.5px; color: var(--text-muted); line-height: 1.4; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tl-light .tl-heat { color: #d97706; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl-light .tl-badge.new { font-size: 9px; border-radius: 3px; padding: 1px 5px; border: 1px solid #fecaca; color: var(--down-red); background: #fef2f2; }
.tl-light .tl-list-foot { margin-top: 7px; font-size: 11px; color: var(--text-muted); line-height: 1.5; }
.tl-light .tl-detail-wrap { overflow-y: auto; padding: 0 2px 10px; }
.tl-light .tl-breadcrumb { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.tl-light .tl-crumb-name { font-size: 20px; font-weight: 700; color: var(--text-primary); }
.tl-light .tl-breadcrumb > span:not(.tl-crumb-name) { font-size: 11px; color: var(--text-muted); }
.tl-light .tl-brief { margin: 10px 0; font-size: 12px; line-height: 1.7; color: var(--text-secondary); }
.tl-light .tl-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.tl-light .tl-tag { font-size: 10px; color: var(--accent-blue); border: 1px solid #a8ccff; background: #e8f1ff; border-radius: 4px; padding: 2px 6px; }
.tl-light .tl-stock-head { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: 11px; color: var(--text-muted); }
.tl-light .tl-stocks { overflow-y: auto; max-height: 600px; }
.tl-light .tl-stock { padding: 7px 4px; border-bottom: 1px solid var(--border); cursor: pointer; }
.tl-light .tl-stock:hover { background: #f7f7f7; }
.tl-light .tl-stock-row1 { display: flex; align-items: baseline; gap: 8px; }
.tl-light .tl-stock-code { font-family: ui-monospace, monospace; font-size: 11px; color: var(--accent-blue); width: 52px; flex: 0 0 52px; }
.tl-light .tl-stock-name { font-size: 13px; font-weight: 600; color: var(--text-primary); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-light .tl-stock-tag.leader { font-size: 9px; color: var(--down-red); border: 1px solid #fecaca; background: #fef2f2; border-radius: 3px; padding: 0 4px; }
.tl-light .tl-stock-chg { font-size: 12px; font-variant-numeric: tabular-nums; width: 66px; text-align: right; }
.tl-light .tl-stock-price { font-size: 11px; color: var(--text-muted); font-variant-numeric: tabular-nums; width: 58px; text-align: right; }
.tl-light .tl-stock-reason { margin-left: 60px; font-size: 11px; line-height: 1.55; color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tl-light .tl-empty { padding: 30px; text-align: center; color: var(--text-muted); font-size: 13px; }
@media (max-width: 1300px) {
  .tl-light .tl-main { grid-template-columns: 1fr !important; }
  .tl-light .tl-left-panel { max-height: 520px; }
  .tl-light .tl-right-panel { max-height: none; }
}
@media (max-width: 720px) {
  .tl-light .tl-top-right { margin-left: 0; width: 100%; }
  .tl-light .kt-input { flex: 1; min-width: 100px; }
}

/* 全球市场浅色 */
.gm-light { color: var(--text-primary); }
.gm-light .kt-topbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.gm-light .kt-kicker { color: var(--text-muted); font-size: 10px; letter-spacing: .18em; }
.gm-light .kt-title { color: var(--text-primary); font-size: 22px; font-weight: 700; margin-top: 2px; }
.gm-light .kt-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.gm-light .kt-tab {
  border: 1px solid var(--border); background: var(--bg-card); color: var(--text-secondary);
  border-radius: 8px; padding: 5px 11px; font-size: 12px; cursor: pointer;
}
.gm-light .kt-tab:hover { border-color: #a8ccff; color: var(--accent-blue); }
.gm-light .kt-tab.on { background: #e8f1ff; border-color: #a8ccff; color: var(--accent-blue); font-weight: 600; }
.gm-light .kt-top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gm-light .kt-status { font-size: 12px; color: var(--text-muted); }
.gm-light .gm-main { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 14px; margin-top: 14px; }
.gm-light .gm-map-wrap { position: relative; background: #f8fafc; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-card); }
.gm-light .gm-map { width: 100%; height: 520px; }
.gm-light .gm-map-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 8px 12px; border-top: 1px solid var(--border); font-size: 11px; color: var(--text-muted); background: var(--bg-card); }
.gm-light .gm-section { margin-top: 14px; }
.gm-light .gm-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 0 2px 8px; }
.gm-light .gm-section-head b { font-size: 15px; color: var(--text-primary); }
.gm-light .gm-section-head span { font-size: 10px; color: var(--text-muted); letter-spacing: .16em; }
.gm-light .gm-card-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.gm-light .gm-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gm-light .gm-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 9px 10px 8px; cursor: pointer; min-width: 0; box-shadow: var(--shadow-card); transition: border-color .15s, transform .15s; }
.gm-light .gm-card:hover { border-color: #a8ccff; transform: translateY(-1px); }
.gm-light .gm-card.sel { border-color: var(--accent-blue); box-shadow: 0 0 0 1px #a8ccff inset; }
.gm-light .gm-card.kt-up { background: linear-gradient(180deg, #fef2f2 0%, #fff 100%); }
.gm-light .gm-card.kt-down { background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%); }
.gm-light .gm-card-head { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.gm-light .gm-card-name { font-size: 12.5px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-light .gm-card-tag { font-size: 10px; color: var(--text-muted); border: 1px solid var(--border); border-radius: 3px; padding: 0 4px; }
.gm-light .gm-card-price { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-top: 4px; font-variant-numeric: tabular-nums; }
.gm-light .gm-card-chg { font-size: 11.5px; margin-top: 1px; font-variant-numeric: tabular-nums; }
.gm-light .gm-spark { width: 100%; height: 26px; margin-top: 3px; display: block; }
.gm-light .gm-spark-empty { height: 26px; margin-top: 3px; font-size: 10px; color: var(--text-muted); display: flex; align-items: center; }
.gm-light .gm-card-meta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; font-size: 9.5px; line-height: 1.35; color: var(--text-muted); }
.gm-light .gm-card-meta span { overflow: hidden; text-overflow: ellipsis; }
.gm-light .gm-card-meta .src { flex: 0 0 auto; }
.gm-light .gm-card-meta .stime { flex: 1 1 auto; min-width: 0; text-align: right; }
.gm-light .gm-card-meta .received { flex: 0 0 100%; text-align: left; color: #8a8a8a; }
.gm-light .gm-side { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; min-height: 0; max-height: 1040px; }
.gm-light .gm-side-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.gm-light .gm-side-head b { font-size: 14px; color: var(--text-primary); }
.gm-light .gm-side-head span { font-size: 12px; color: var(--text-muted); }
.gm-light .gm-side-list { overflow-y: auto; padding: 8px; flex: 1; min-height: 180px; max-height: 560px; }
.gm-light .gm-side-item { padding: 8px 10px; border: 1px solid transparent; border-radius: 8px; cursor: pointer; }
.gm-light .gm-side-item:hover { background: #f7f7f7; }
.gm-light .gm-side-item.sel { background: #e8f1ff; border-color: #a8ccff; }
.gm-light .gm-side-row1 { display: flex; justify-content: space-between; gap: 8px; }
.gm-light .gm-side-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.gm-light .gm-side-chg { font-size: 12px; font-variant-numeric: tabular-nums; }
.gm-light .gm-side-row2 { display: flex; justify-content: space-between; gap: 8px; margin-top: 2px; font-size: 11px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.gm-light .gm-side-row3 { margin-top: 2px; font-size: 10px; color: var(--text-muted); }
.gm-light .gm-detail { border-top: 1px solid var(--border); padding: 12px 14px 14px; }
.gm-light .gm-detail-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.gm-light .gm-detail-head b { font-size: 15px; color: var(--text-primary); }
.gm-light .gm-detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.gm-light .gm-detail-grid div { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 7px; padding: 6px 8px; display: flex; flex-direction: column; gap: 2px; }
.gm-light .gm-detail-grid span { font-size: 10px; color: var(--text-muted); }
.gm-light .gm-detail-grid b { font-size: 12.5px; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.gm-light .gm-detail-note { margin-top: 10px; font-size: 10.5px; line-height: 1.7; color: var(--text-muted); }
@media (max-width: 1200px) {
  .gm-light .gm-main { grid-template-columns: 1fr; }
  .gm-light .gm-side { max-height: none; }
  .gm-light .gm-side-list { max-height: 320px; }
  .gm-light .gm-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .gm-light .gm-map { height: 320px; }
  .gm-light .gm-card-grid, .gm-light .gm-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gm-light .gm-detail-grid { grid-template-columns: repeat(2, 1fr); }
  .gm-light .kt-top-right { margin-left: 0; width: 100%; justify-content: space-between; }
}

/* 全球市场：参考站结构 + 本站浅色 */
.gm-light .gm-map-wrap { background: #fff; }
.gm-light .gm-map {
  background: radial-gradient(ellipse at 50% 42%, #ffffff 0%, #f8fafc 58%, #eef3f8 100%);
}
.gm-light .gm-side-spark { width: 100%; height: 18px; margin-top: 4px; display: block; }

.gm-light .gm-us-section { margin-top: 16px; }
.gm-light .gm-us-layout { display: flex; gap: 12px; align-items: stretch; }
.gm-light .gm-us-grid { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.gm-light .gm-us-card {
  position: relative; display: flex; flex-direction: column; gap: 3px; min-width: 0;
  padding: 10px 11px 9px; border: 1px solid var(--border); border-radius: 9px;
  background: var(--bg-card); cursor: pointer; text-align: left;
  box-shadow: var(--shadow-card); transition: border-color .15s, transform .15s;
}
.gm-light .gm-us-card:hover { border-color: #a8ccff; transform: translateY(-1px); }
.gm-light .gm-us-card.kt-up { background: linear-gradient(180deg, #fef2f2 0%, #fff 100%); }
.gm-light .gm-us-card.kt-down { background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%); }
.gm-light .gm-us-card.sel { border-color: var(--accent-blue); box-shadow: 0 0 0 1px #a8ccff inset; }
.gm-light .gm-us-card-name { font-size: 14px; font-weight: 700; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-light .gm-us-card-chg { font-size: 18px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.gm-light .gm-us-card-basis { font-size: 10px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-light .gm-us-card-link { margin-top: 1px; font-size: 10.5px; color: var(--accent-blue); }
.gm-light .gm-us-side {
  flex: 0 0 310px; width: 310px; min-width: 0; padding: 12px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-card);
}
.gm-light .gm-us-side-kicker { font-size: 10px; letter-spacing: .12em; color: var(--accent-blue); font-weight: 700; }
.gm-light .gm-us-side-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 5px; }
.gm-light .gm-us-side-title b { font-size: 19px; }
.gm-light .gm-us-side-title span { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.gm-light .gm-us-side-basis { margin-top: 2px; font-size: 10px; color: var(--text-muted); }
.gm-light .gm-us-members { margin-top: 9px; max-height: 150px; overflow-y: auto; border-top: 1px solid var(--border); }
.gm-light .gm-us-member { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-bottom: 1px solid #f1f2f4; font-size: 11px; }
.gm-light .gm-us-member span { color: var(--text-primary); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gm-light .gm-us-member em { font-style: normal; color: var(--text-muted); font-size: 9px; margin-left: 3px; }
.gm-light .gm-us-member b { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.gm-light .gm-us-map-title { margin-top: 10px; font-size: 11px; font-weight: 700; color: var(--text-primary); }
.gm-light .gm-us-links { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.gm-light .gm-us-links button { border: 1px solid #bfdbfe; background: #eff6ff; color: #1d4ed8; border-radius: 5px; padding: 3px 7px; font-size: 11px; cursor: pointer; }
.gm-light .gm-us-links button:hover { background: #dbeafe; }
.gm-light .gm-us-note { margin: 9px 0 0; font-size: 9.5px; line-height: 1.5; color: var(--text-muted); }
@media (max-width: 1500px) {
  .gm-light .gm-us-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .gm-light .gm-us-layout { flex-direction: column; }
  .gm-light .gm-us-side { width: auto; flex-basis: auto; }
  .gm-light .gm-us-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.gm-light .gm-us-head { align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.gm-light .gm-us-head > span { flex: 1 1 auto; }
.gm-light .gm-us-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.gm-light .gm-us-tools input, .gm-light .gm-us-tools select {
  height: 30px; border: 1px solid var(--border); border-radius: 7px; background: #fff;
  color: var(--text-primary); font-size: 12px; padding: 0 9px; outline: none;
}
.gm-light .gm-us-tools input { width: 180px; }
.gm-light .gm-us-tools input:focus, .gm-light .gm-us-tools select:focus { border-color: var(--accent-blue); }

.gm-light .gm-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gm-light .gm-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) {
  .gm-light .gm-grid-3, .gm-light .gm-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 全球市场：对齐参考站 DOM 结构（浅色） */
.gm-light .gm-map-toolbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  padding: 12px 14px; pointer-events: none;
}
.gm-light .gm-map-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; pointer-events: auto; }
.gm-light .gm-viewpoints, .gm-light .gm-regions {
  display: flex; gap: 3px; padding: 3px; border: 1px solid var(--border); border-radius: 7px;
  background: rgba(255,255,255,.9); box-shadow: var(--shadow-card);
}
.gm-light .gm-viewpoints button, .gm-light .gm-regions button {
  border: 0; background: transparent; padding: 5px 10px; border-radius: 4px;
  font-size: 11px; color: var(--text-muted); cursor: pointer; white-space: nowrap;
}
.gm-light .gm-viewpoints button.on, .gm-light .gm-regions button.on { color: #1d4ed8; background: #e8f1ff; font-weight: 600; }
.gm-light .gm-map-status { pointer-events: auto; font-size: 10.5px; color: var(--text-muted); background: rgba(255,255,255,.9); border: 1px solid var(--border); border-radius: 5px; padding: 5px 8px; }
.gm-light .gm-side { max-height: 620px; }
.gm-light .gm-side-list { max-height: 470px; }
.gm-light .gm-selected-source { padding: 8px 12px 12px; border-top: 1px solid var(--border); font-size: 10.5px; line-height: 1.6; color: var(--text-muted); }

.gm-light .gm-us-section {
  margin-top: 16px; padding: 18px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--bg-card); box-shadow: var(--shadow-card);
}
.gm-light .gm-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.gm-light .gm-kicker { font-size: 10px; letter-spacing: .12em; color: var(--accent-blue); font-weight: 700; }
.gm-light .gm-section-heading h3 { margin: 4px 0 3px; font-size: 20px; color: var(--text-primary); }
.gm-light .gm-section-heading p { margin: 0; font-size: 11.5px; color: var(--text-muted); }
.gm-light .gm-sector-controls { display: flex; gap: 8px; flex: 0 0 auto; }
.gm-light .gm-sector-controls input, .gm-light .gm-sector-controls select {
  height: 32px; border: 1px solid var(--border); border-radius: 6px; background: #fff;
  color: var(--text-primary); font-size: 11.5px; padding: 0 9px; outline: none;
}
.gm-light .gm-sector-controls input { width: 178px; }
.gm-light .gm-sector-controls select { width: 112px; }
.gm-light .gm-sector-controls input:focus, .gm-light .gm-sector-controls select:focus { border-color: var(--accent-blue); }
.gm-light .gm-sector-workspace { display: grid; grid-template-columns: minmax(0,1fr) 290px; gap: 16px; align-items: start; }
.gm-light .gm-sector-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 7px; }
.gm-light .gm-sector-cell {
  display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 7px;
  min-width: 0; min-height: 65px; padding: 10px 11px; text-align: left;
  border: 1px solid var(--border); border-radius: 6px; background: #fff;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.gm-light .gm-sector-cell:hover { border-color: #a8ccff; }
.gm-light .gm-sector-cell.kt-up { background: linear-gradient(180deg,#fef2f2,#fff); border-color: #fecaca; }
.gm-light .gm-sector-cell.kt-down { background: linear-gradient(180deg,#f0fdf4,#fff); border-color: #bbf7d0; }
.gm-light .gm-sector-cell.sel { border-color: var(--accent-blue); box-shadow: 0 0 0 1px #a8ccff inset; }
.gm-light .gm-sector-name { font-size: 13px; font-weight: 700; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-light .gm-sector-cell strong { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gm-light .gm-sector-cell small { grid-column: 1/-1; font-size: 10px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-light .gm-linkage { min-width: 0; padding: 15px; border: 1px solid var(--border); border-radius: 8px; background: #fafbfc; }
.gm-light .gm-linkage h4 { margin: 8px 0 2px; font-size: 19px; }
.gm-light .gm-linkage-change { display: block; font-size: 27px; line-height: 1.1; font-weight: 700; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.gm-light .gm-linkage-basis { font-size: 10px; color: var(--text-muted); }
.gm-light .gm-linkage-members { display: flex; flex-direction: column; gap: 4px; margin-top: 9px; border-top: 1px solid var(--border); padding-top: 6px; }
.gm-light .gm-us-member { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px solid #f1f2f4; font-size: 11px; }
.gm-light .gm-us-member span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-primary); }
.gm-light .gm-us-member em { font-style: normal; color: var(--text-muted); font-size: 9px; margin-left: 3px; }
.gm-light .gm-us-member b { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.gm-light .gm-linkage h5 { margin: 12px 0 6px; font-size: 11px; color: var(--text-primary); }
.gm-light .gm-theme-links { display: flex; flex-wrap: wrap; gap: 5px; }
.gm-light .gm-theme-links button { border: 1px solid #bfdbfe; background: #eff6ff; color: #1d4ed8; border-radius: 5px; padding: 4px 7px; font-size: 11px; cursor: pointer; }
.gm-light .gm-theme-links button:hover { background: #dbeafe; }
.gm-light .gm-linkage-note { margin: 10px 0 0; font-size: 9.5px; line-height: 1.55; color: var(--text-muted); }

.gm-light .gm-cross-assets { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; margin-top: 16px; }
.gm-light .gm-asset-group { min-width: 0; }
.gm-light .gm-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.gm-light .gm-section-title h3 { margin: 0; font-size: 15px; color: var(--text-primary); }
.gm-light .gm-section-title h3 small { font-size: 9px; color: var(--text-muted); letter-spacing: .12em; font-weight: 400; margin-left: 4px; }
.gm-light .gm-section-title > small { font-size: 9.5px; color: var(--text-muted); }
.gm-light .gm-asset-cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.gm-light .gm-asset-card { min-height: 96px; }

@media (min-width: 1700px) {
  .gm-light .gm-sector-grid { grid-template-columns: repeat(6, minmax(0,1fr)); }
}
@media (max-width: 1200px) {
  .gm-light .gm-sector-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .gm-light .gm-sector-workspace { grid-template-columns: minmax(0,1fr) 250px; }
  .gm-light .gm-cross-assets { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .gm-light .gm-sector-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .gm-light .gm-sector-workspace { display: block; }
  .gm-light .gm-linkage { margin-top: 12px; }
  .gm-light .gm-cross-assets { grid-template-columns: 1fr; }
  .gm-light .gm-asset-cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .gm-light .gm-section-heading { align-items: flex-start; flex-direction: column; }
  .gm-light .gm-sector-controls { width: 100%; }
  .gm-light .gm-sector-controls input { flex: 1; min-width: 0; width: auto; }
}

/* 跨资产：指数期货全宽，商品/外汇并排，国债全宽 */
.gm-light .gm-two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1100px) {
  .gm-light .gm-two-col { grid-template-columns: 1fr; }
}

/* 地图标签：区域视角 + 引线标签 */
.gm-light .gm-map-stage { position: relative; width: 100%; height: 520px; }
.gm-light .gm-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.gm-light .gm-map-labels { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.gm-light .gm-map-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.gm-light .gm-map-lines line { stroke: #cbd5e1; stroke-width: 1; }
.gm-light .gm-map-label {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 2px 6px; background: rgba(255,255,255,.92);
  border: 1px solid #e2e8f0; border-radius: 5px;
  box-shadow: 0 1px 4px rgba(15,23,42,.06); white-space: nowrap;
}
.gm-light .gm-map-label-name { font-size: 11px; font-weight: 600; line-height: 1.2; color: #334155; }
.gm-light .gm-map-label-pct { font-size: 11px; font-weight: 700; line-height: 1.2; }
.gm-light .gm-map-label.kt-up .gm-map-label-pct { color: #dc2626; }
.gm-light .gm-map-label.kt-down .gm-map-label-pct { color: #15803d; }
.gm-light .gm-map-label:not(.kt-up):not(.kt-down) .gm-map-label-pct { color: #64748b; }

.gm-light .gm-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) {
  .gm-light .gm-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 地图标签点击联动 */
.gm-light .gm-map-labels { pointer-events: none; }
.gm-light .gm-map-label { pointer-events: auto; cursor: pointer; }
.gm-light .gm-map-label:hover { border-color: #a8ccff; background: #fff; box-shadow: 0 2px 8px rgba(22,119,255,.15); }
.gm-light .gm-side-current { padding: 10px 14px; border-bottom: 1px solid var(--border); background: #f8fafc; }
.gm-light .gm-side-current-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.gm-light .gm-side-current-row b { font-size: 15px; color: var(--text-primary); }
.gm-light .gm-side-current-row span { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.gm-light .gm-side-current-price { margin-top: 3px; font-size: 22px; font-weight: 700; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.gm-light .gm-side-current-meta { margin-top: 2px; font-size: 10.5px; color: var(--text-muted); }

/* 点阵地球 */
.gm-light .gm-globe-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: pointer; }
