/* 配置罗盘 · 统一样式（移动优先，≥640px 桌面适配；设计变量集中在 :root） */
:root {
  --ink: #1f2937;
  --accent: #3a6df0;
  --red: #d64541;
  --green: #2f9e44;
  --orange: #f59e0b;
  --blue: #3a6df0;
  --muted: #6b7280;
  --gray: #9ca3af;
  --light: #d1d5db;
  --bg: #f5f6f8;
  --card: #ffffff;
  /* 语义色与 modules/util.js 的 PALETTE 对应（改任一侧须同步另一侧） */
  --radius: 12px; /* 圆角四档：卡片 12 / 内嵌块 6 / 徽标 4 / 胶囊 999；嵌套保持同心（外=内+间距） */
  /* 内容宽度与内边距：顶栏 / tab 栏 / 面板共用，保证三者左右缘对齐
     宽表（如生息组合年度归因 ~756px）需 --wrap ≥ 820px 才不需横向拖动 */
  --wrap: clamp(780px, 92vw, 960px);
  /* 顶栏 / tab 栏专用：比内容列宽。tab 自然宽合计随模块数增长（13 个时
     最小 1014px，已超过 --wrap 960 下的可用宽 928px，会出现横向拖动条）。
     放宽到本值；窄屏下 clamp 下探到 780px 使居中偏移归零，退化成 --pad
     行为，不影响移动端。改 tab 数 / 文案时须重算宽度（浏览器实测量）。 */
  --wrap-top: clamp(780px, 97vw, 1320px);
  --pad: 12px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 14px;
  /* 全站字号 6 档：11 caption / 12 脚注 / 13 次正文 / 14 正文 / 18 标题 / 24 大数
     （桌面响应式放大：.dir 24→28、.tbl 12→13，均为档内放大不新增档） */
  line-height: 1.5;
}

/* ── 头部 ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* 内容居中到 --wrap-top 并与 tab 栏左缘对齐（背景仍通栏）：居中偏移 + 内边距 */
  padding: 10px calc(max(0px, (100% - var(--wrap-top)) / 2) + var(--pad));
  background: var(--ink);
  color: #fff;
}
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: 1px; }
.brand-sub { font-size: 11px; color: var(--gray); margin-top: 2px; }
.refresh-btn {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.refresh-btn:hover { background: rgba(255, 255, 255, 0.12); }

/* ── tab 栏 ── */
.tabbar {
  position: sticky;
  top: 58px;
  z-index: 19;
  display: flex;
  background: var(--card);
  border-bottom: 1px solid #eef0f3;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;              /* 隐藏滚动条：tab 溢出仍可横滑/拖动，但不显示滑块 */
  /* 与顶栏同一居中线（详见 .site-header）；比 .panels 用的 --wrap 宽 */
  padding-inline: calc(max(0px, (100% - var(--wrap-top)) / 2) + var(--pad));
}
.tabbar::-webkit-scrollbar { display: none; }
.tab {
  flex: 1 0 auto;
  min-width: 78px;                 /* 13 个 tab 最小自然宽合计 1014px，故 tab 栏
                                      用更宽的 --wrap-top（见 :root）；只保底不塌缩 */
  /* 水平 padding 只决定 tab 的**最小**宽度：宽屏下 flex-grow 会把 tab 撑满，
     最终宽度与 padding 无关（宽屏各视口实测单宽一致），故取 10px 压缩最小宽。 */
  padding: 11px 10px;
  border: none;
  background: none;
  font-size: 14px;
  color: var(--gray);
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}
.tab.active { color: var(--accent); font-weight: 600; }
.tab.active::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 28px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: var(--accent);
}

/* ── 面板 ── */
.panels { max-width: var(--wrap); margin: 0 auto; }
.panel { display: none; padding: 4px var(--pad) var(--pad); }
.panel.active { display: block; }

/* 页头（模块内） */
.header { padding: 16px 4px 4px; }
.header .title { font-size: 18px; font-weight: 700; }
.header .subtitle { margin-top: 4px; font-size: 12px; color: var(--muted); }

/* 加载/错误 */
.tip { text-align: center; color: var(--muted); padding: 36px 0; }
.tip.error { color: var(--red); }
.retry-btn {
  margin-top: 12px;
  border: 1px solid var(--light);
  background: var(--card);
  color: var(--ink);
  font-size: 13px;
  padding: 6px 22px;
  border-radius: 999px;
  cursor: pointer;
}
.retry-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ── 卡片 ── */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 10px;
  box-shadow: 0 1px 2px rgba(31, 41, 55, 0.05);
}

/* 信号卡 */
.card.signal { display: flex; justify-content: space-between; gap: 10px; }
.signal.up { border-left: 4px solid var(--red); }
.signal.down { border-left: 4px solid var(--green); }
.signal.warm { border-left: 4px solid var(--orange); }
.sig-left .dir { font-size: 24px; font-weight: 700; }
.signal.up .dir { color: var(--red); }
.signal.down .dir { color: var(--green); }
.signal.warm .dir { color: var(--orange); }
.sig-left .month { margin-top: 4px; font-size: 12px; color: var(--muted); }
.flip {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 8px;
  font-size: 11px;
  border-radius: 4px;
  color: #fff;
  background: var(--orange);
}
.last-switch { margin-top: 6px; font-size: 11px; color: var(--muted); }
.sig-right { text-align: right; }
.sig-right .row { padding: 3px 0; }
.sig-right .k { color: var(--muted); font-size: 12px; margin-right: 8px; }
.sig-right .v { font-size: 13px; font-weight: 600; }
.v.pos { color: var(--red); }
.v.neg { color: var(--green); }

/* 图表卡 */
.chart-title { font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 8px; }
.chart-sub { margin-top: -2px; font-size: 11px; color: var(--gray); line-height: 1.6; }
.chart-box { width: 100%; }
.chart-box.main { height: 250px; }
.chart-box.peer { height: 230px; }
.chart-box.val { height: 230px; }
.chart-box.dir { height: 140px; }
.chart-box.comp { height: 120px; }
.chart-box.pos { height: 170px; }
.chart-box.nav { height: 210px; }

/* 六分项 */
.section-title { margin: 14px 4px 8px; font-size: 14px; font-weight: 600; color: #374151; }
.comp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.comp-label { font-size: 13px; font-weight: 600; }
.comp-stats { font-size: 11px; color: var(--muted); }
.comp-stats .comp-mom { margin-left: 8px; }
.comp-mom.neg { color: var(--green); }
.comp-mom.pos { color: var(--red); }

/* ── 表格（骑乘 / 红利回测）── */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { display: table; width: 100%; border-collapse: collapse; font-size: 12px; }
.tbl .tr { display: table-row; }
.tbl .tr.th .td { color: var(--muted); font-weight: 600; white-space: nowrap; }
.tbl .td {
  display: table-cell;
  padding: 6px 10px;
  text-align: right;
  white-space: nowrap;
  border-bottom: 1px solid #f1f3f5;
}
.tbl .td.c-tenor { text-align: left; font-weight: 600; }
.tbl .td.c-total { font-weight: 700; }
.tbl .tr.best .td { background: #fff8f0; }
.tbl .tr.best .td.c-total { color: var(--red); }
.star { color: var(--orange); margin-left: 2px; }
.tbl-note { margin-top: 6px; font-size: 11px; color: var(--gray); line-height: 1.6; }
.tbl-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 12px; }
.tbl-row.tbl-head { color: var(--muted); border-bottom: 1px solid #eef0f3; }
.tbl-row .c1 { font-weight: 600; }
.share-line { margin-top: 8px; font-size: 11px; color: var(--muted); }
.td.neg, .pos { color: var(--red); }
.td.neg, .neg { color: var(--green); }

/* 元数据卡（骑乘/轮动） */
.card.meta { padding-bottom: 10px; }
.meta-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.meta-date { font-size: 13px; font-weight: 600; }
.badge-sample {
  display: inline-block; margin-left: 6px; padding: 1px 6px;
  font-size: 11px; border-radius: 4px;
  background: #fef3c7; color: #b45309;
}
.badge-partial {
  display: inline-block; margin-left: 6px; padding: 1px 6px;
  font-size: 11px; border-radius: 4px;
  background: #fee2e2; color: #b91c1c;
}
.meta-spreads { display: flex; gap: 6px; }
.spread-chip {
  font-size: 11px; padding: 2px 8px; border-radius: 999px;
  background: #eef2ff; color: #4338ca; white-space: nowrap;
}
.anchor-strip { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; }
.anchor { font-size: 11px; color: var(--muted); }
.anchor b { color: var(--ink); font-weight: 600; }
.missing-note { margin-top: 6px; font-size: 11px; color: #b91c1c; }

/* 情景卡 */
.sc-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.sc-name { font-size: 13px; font-weight: 600; }
.sc-chip {
  display: inline-block; margin-left: 6px; padding: 1px 8px;
  font-size: 11px; border-radius: 999px; font-weight: 400;
}
.chip-base { background: #f3f4f6; color: var(--muted); }
.chip-shift { background: #eef2ff; color: #4338ca; }
.chip-sigma { background: #fdf2f2; color: #b91c1c; }
.sc-sub { font-size: 11px; color: var(--muted); }

/* ── RRG ── */
.quad-strip { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.quad {
  flex: 1; text-align: center; font-size: 11px; padding: 4px 0;
  border-radius: 6px; background: #f3f4f6; color: var(--muted); white-space: nowrap;
}
.quad.leading { background: rgba(0, 128, 0, 0.09); color: #15803d; }
.quad.weakening { background: rgba(218, 165, 32, 0.13); color: #a16207; }
.quad.lagging { background: rgba(255, 0, 0, 0.07); color: #b91c1c; }
.quad.improving { background: rgba(70, 130, 180, 0.10); color: #1d4ed8; }
.rrg-box { width: 100%; height: 400px; }

/* 控制区 */
.ctrl-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ctrl-label { font-size: 12px; color: var(--muted); flex: 0 0 34px; }
.ctrl-slider { flex: 1; accent-color: #1f77b4; }
.ctrl-value { font-size: 12px; color: var(--ink); min-width: 74px; text-align: right; white-space: nowrap; }

.industry-toggle {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; font-size: 13px; cursor: pointer; user-select: none;
  border-top: 1px solid #f1f3f5;
}
.industry-toggle .arrow { color: var(--muted); font-size: 11px; }
.ind-actions { display: flex; gap: 14px; margin: 8px 0; }
.ind-btn { font-size: 12px; color: var(--accent); cursor: pointer; }
.ind-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px 8px; }
.ind-item { display: flex; align-items: center; gap: 5px; font-size: 12px; cursor: pointer; }
.ind-item input[type="checkbox"] { accent-color: var(--accent); margin: 0; }
.ind-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; }
.ind-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── 宽基动量（broadmomentum） ── */
.bm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 10px; }
.bm-card {
  background: var(--card); border-radius: var(--radius); padding: 10px 12px;
  box-shadow: 0 1px 2px rgba(31,41,55,0.05); border-top: 3px solid var(--green);
}
.bm-card.on { border-top-color: var(--red); }
.bm-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.bm-name { font-size: 13px; font-weight: 600; }
.bm-code { font-size: 11px; color: var(--gray); margin-left: 4px; font-weight: 400; }
.bm-badge { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.bm-badge.on { background: rgba(214,69,65,0.12); color: var(--red); }
.bm-badge.off { background: rgba(47,158,68,0.12); color: var(--green); }
.bm-kv { display: flex; justify-content: space-between; font-size: 11px; padding: 2px 0; }
.bm-kv .k { color: var(--muted); }
.bm-kv .v { font-weight: 600; }
.bm-kv .v.warn { color: var(--orange); }
.bm-card .switch-line { margin-top: 4px; font-size: 11px; color: var(--gray); }
.bm-card .switch-line.warn { color: var(--orange); }
.bm-obs-title { margin: 6px 0 2px; padding-top: 5px; border-top: 1px dashed rgba(107,114,128,0.35); font-size: 10px; color: var(--muted); }
.bm-obs-note { font-size: 11px; color: var(--muted); margin: -2px 0 10px; }
.bm-obs-help { margin: 0 0 10px; background: var(--card); border-radius: var(--radius); border: 1px solid var(--light); }
.bm-obs-help summary { cursor: pointer; padding: 9px 12px; font-size: 12px; font-weight: 600; color: var(--muted); list-style: none; }
.bm-obs-help summary::-webkit-details-marker { display: none; }
.bm-obs-help summary::before { content: "▸ "; color: var(--gray); }
.bm-obs-help[open] summary::before { content: "▾ "; }
.bm-help-body { padding: 0 12px 12px; }
.bm-help-block { margin-top: 12px; }
.bm-help-block h4 { font-size: 12px; margin: 0 0 4px; color: var(--ink); }
.bm-help-block p { font-size: 11px; line-height: 1.7; margin: 3px 0; color: var(--ink); }
.bm-help-block ul { margin: 3px 0; padding-left: 18px; font-size: 11px; line-height: 1.7; color: var(--ink); }
.bm-help-block b { color: var(--muted); font-weight: 600; }
.tbl .td.warn { color: var(--orange); }

/* 基差监测：当前信号卡的数据时点角标（卡片头右侧；stale = 数据非最新的回退值） */
.bm-asof { font-size: 11px; color: var(--muted); white-space: nowrap; font-weight: 400; }
.bm-asof.stale {
  color: var(--orange); background: rgba(245, 158, 11, 0.12);
  padding: 0 7px; border-radius: 999px;
}
.chart-sub.warn { color: var(--orange); margin-bottom: 12px; }
/* 指数走势与操作点位（单列卡，每指数一张） */
.bm-idx-card { padding: 8px 10px 4px; margin-bottom: 8px; }
.bm-idx-card .bm-head { margin-bottom: 0; }
.bm-idx-right { display: flex; align-items: baseline; gap: 6px; }
.bm-idx-count { font-size: 11px; color: var(--muted); white-space: nowrap; }
.chart-box.bmidx { height: 230px; }
.tbl .td.c-idx { text-align: left; font-weight: 600; white-space: nowrap; }

/* ── 页脚 ── */
.footer { padding: 6px 4px 10px; font-size: 11px; color: var(--muted); line-height: 1.8; }
.footer .note { color: var(--gray); }
.footer .warn { color: var(--red); }
.foot-note { padding: 2px 4px 10px; font-size: 11px; color: var(--muted); line-height: 1.8; }
.site-footer {
  max-width: var(--wrap); margin: 0 auto; padding: 10px 16px 32px;
  text-align: center; font-size: 11px; color: var(--gray); line-height: 1.8;
}

/* ── 宏观两页 ── */
.chart-box.track { height: 250px; }
.chart-box.timeline { height: 150px; }
.chart-box.risk { height: 210px; }
.chart-box.heat { height: 270px; }
.chart-box.factor4 { height: 280px; }

.card.rg-card { border-left: 4px solid var(--ink); }
.conf-line { margin-top: 6px; font-size: 11px; color: var(--muted); }
.drive-chip {
  display: inline-block; margin-top: 8px; padding: 2px 10px;
  font-size: 11px; border-radius: 999px;
  background: #f3f4f6; color: #374151;
}
.regime-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 6px; font-size: 11px; color: var(--muted); }
.regime-legend .dot { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }

/* 宏观状态判定卡：显示状态与本月原判定分行（滞回维持时两者不同）+ 滞回维持标记 */
.dir-line { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.held-chip {
  display: inline-block; padding: 2px 8px; font-size: 11px;
  border-radius: 999px; background: #eef2ff; color: #4f46e5;
}
.raw-line { margin-top: 6px; font-size: 12px; font-weight: 600; color: #374151; }
.hold-note { margin-top: 4px; font-size: 11px; color: var(--muted); line-height: 1.6; }

/* ⓘ 口径提示：文案写在 data-tip；桌面悬停 / 移动点按（tabindex 聚焦）展开；
   右列元素加 .anchor-r 让气泡向左展开，防溢出 */
.hint {
  position: relative; display: inline-block; margin-left: 3px;
  font-size: 11px; color: var(--gray); cursor: help;
  -webkit-tap-highlight-color: transparent;
}
.hint::after {
  content: attr(data-tip);
  position: absolute; top: calc(100% + 5px); left: 0; z-index: 40;
  display: none; width: max-content; max-width: min(230px, 62vw);
  padding: 6px 8px; font-size: 11px; font-weight: 400; line-height: 1.6;
  white-space: normal; text-align: left; color: #374151;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 6px;
  box-shadow: 0 4px 12px rgba(31, 41, 55, 0.12);
}
.hint:hover::after, .hint:focus::after { display: block; }
.hint.anchor-r::after { left: auto; right: 0; }

.factor-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 10px; }
.mini-card { background: var(--card); border-radius: var(--radius); padding: 10px 12px; box-shadow: 0 1px 2px rgba(31,41,55,0.05); }
.mini-label { font-size: 12px; color: var(--muted); }
.mini-value { font-size: 24px; font-weight: 700; margin-top: 2px; }
.mini-value.pos { color: var(--red); }
.mini-value.neg { color: var(--green); }
.mini-value.warn { color: var(--orange); }
.mini-date { font-size: 11px; color: var(--gray); margin-top: 2px; }

/* ── 股债时钟：成长×红利观察迷你卡（桌面端 5 张一行，手机端 2 列）── */
.gd-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 8px 0 4px; }
@media (min-width: 640px) { .gd-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ── 宏观跟踪（macrotrack） ── */
.theme-tabs { display: flex; gap: 6px; margin: 4px 0 10px; }
.theme-tab {
  padding: 5px 14px; font-size: 12px; border: 1px solid var(--light);
  border-radius: 999px; background: var(--card); color: var(--muted);
}
.theme-tab.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chart-box.mtrack { height: 230px; }
.mtrack-sub { margin-top: -2px; font-size: 11px; color: var(--gray); }
.mtrack-note {
  margin: 4px 0; padding: 4px 8px; font-size: 11px; color: #92400e;
  background: #fef3c7; border-radius: 6px; line-height: 1.5;
}

/* ── 多资产配置（multialloc） ── */
.sig-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }

/* ── 桌面适配 ── */
@media (min-width: 640px) {
  :root { --pad: 16px; }                /* 桌面端内边距（面板/顶栏/tab 栏共用） */
  .hold-note { white-space: nowrap; }   /* 判定说明短句：宽屏保持单行 */
  .bm-grid { grid-template-columns: repeat(3, 1fr); }
  .chart-box.main { height: 320px; }
  .chart-box.bmidx { height: 310px; }
  .chart-box.peer { height: 300px; }
  .chart-box.val { height: 300px; }
  .chart-box.dir { height: 170px; }
  .chart-box.comp { height: 150px; }
  .chart-box.pos { height: 200px; }
  .chart-box.nav { height: 260px; }
  .rrg-box { height: 520px; }
  .chart-box.track { height: 300px; }
  .chart-box.timeline { height: 170px; }
  .chart-box.risk { height: 250px; }
  .chart-box.heat { height: 320px; }
  .chart-box.factor4 { height: 340px; }
  .chart-box.mtrack { height: 300px; }
  .sig-grid { grid-template-columns: repeat(3, 1fr); }
  .factor-grid { grid-template-columns: repeat(4, 1fr); }
  .sig-left .dir { font-size: 28px; }
  .tbl { font-size: 13px; }
}

/* ── 融资盘风险（marginrisk） ── */
.chart-box.mr-guar { height: 260px; }
.chart-box.mr-buckets { height: 230px; }
.chart-box.mr-dist { height: 230px; }
.chart-box.mr-ratio { height: 230px; }
.chart-box.mr-balance { height: 200px; }
.chart-box.mr-style { height: 230px; }
@media (min-width: 640px) {
  .chart-box.mr-guar { height: 320px; }
  .chart-box.mr-buckets { height: 280px; }
  .chart-box.mr-dist { height: 280px; }
  .chart-box.mr-ratio { height: 280px; }
  .chart-box.mr-balance { height: 250px; }
  .chart-box.mr-style { height: 260px; }
}

/* ── 相关性矩阵（assetcorr）── */
.corr-wins { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.corr-win {
  border: 1px solid #e5e7eb; background: var(--card); color: var(--muted);
  font-size: 12px; padding: 4px 12px; border-radius: 999px; cursor: pointer;
}
.corr-win.on { border-color: var(--accent); color: var(--accent); background: #eef2ff; }
.corr-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; } /* 21×21 矩阵手机横滚 */
.corr-box { min-width: 780px; } /* 轴标签 45° 旋转下保证单元格可读宽度 */
.chart-box.corr-box { height: 676px; } /* 兜底高度：真实值由模板内联样式按资产数给出（须在 echarts.init 前生效） */
.chart-box.corr-detail { height: 280px; }
@media (min-width: 640px) { .chart-box.corr-detail { height: 320px; } }

/* ── 国家队资金（etfflow） ── */
.nf-wins { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.nf-win {
  border: 1px solid #e5e7eb; background: var(--card); color: var(--muted);
  font-size: 12px; padding: 4px 12px; border-radius: 999px; cursor: pointer;
}
.nf-win.on { border-color: var(--accent); color: var(--accent); background: #eef2ff; }
.nf-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 14px; margin-top: 10px; }
@media (min-width: 640px) { .nf-grid { grid-template-columns: repeat(3, 1fr); } }
.nf-cell { padding: 6px 0 2px; border-bottom: 1px dashed #f1f3f5; }
.nf-cell:last-child { border-bottom: none; }
.nf-name { font-size: 12px; font-weight: 600; color: #374151; }
.nf-grp { font-size: 11px; color: var(--gray); margin-left: 5px; font-weight: 400; }
.nf-grp-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 4px; }
.nf-bar { height: 5px; background: #f3f4f6; border-radius: 999px; margin: 5px 0 3px; overflow: hidden; }
.nf-fill { height: 100%; border-radius: 999px; }
/* 色彩语义（A股口径）：红=利好（汇金持有量仍被总份额覆盖）、绿=利空（已减持） */
.nf-fill.inv { background: var(--green); }
.nf-fill.ok { background: var(--red); }
.nf-fill.na { background: var(--light); }
.nf-pct { font-size: 11px; color: var(--ink); font-weight: 600; }
.nf-dim { font-size: 11px; color: var(--gray); font-weight: 400; }
.nf-badge {
  display: inline-block; font-size: 11px; line-height: 1; padding: 2px 6px;
  border-radius: 999px; margin-left: 6px; vertical-align: 1px;
}
.nf-badge.inv { background: rgba(47, 158, 68, 0.12); color: var(--green); }
.nf-badge.na { background: #f3f4f6; color: var(--gray); }
.nf-ev { padding: 6px 0; border-bottom: 1px dashed #f1f3f5; }
.nf-ev:last-child { border-bottom: none; }
.nf-ev-date { font-size: 11px; font-weight: 700; color: var(--ink); margin-right: 8px; }
.nf-ev-src { font-size: 11px; color: var(--gray); }
.nf-ev-note { font-size: 11px; color: var(--muted); line-height: 1.6; margin-top: 2px; }
.nf-tier {
  display: inline-block; font-size: 11px; line-height: 1; padding: 2px 5px;
  border-radius: 4px; margin-left: 5px;
}
.nf-tier.t1 { background: rgba(58, 109, 240, 0.1); color: var(--accent); }
.nf-tier.t2 { background: #f3f4f6; color: var(--gray); }
.td.c-code { white-space: nowrap; font-weight: 600; }
.td.c-name { text-align: left; white-space: nowrap; }
.td.neg-inv { color: var(--green); font-weight: 700; }  /* 当前/汇金持有 <100%（已减持，利空→绿） */
.mini-sub { font-size: 11px; color: var(--gray); margin-top: 1px; }
.chart-box.nf-main { height: 260px; }
.chart-box.nf-grp { height: 230px; }

/* ── 全球流动性（globalliquidity） ── */
.lq-signal .sig-sub { margin-top: 6px; }
.lq-head-right { text-align: right; }
.lq-score { font-size: 30px; font-weight: 800; line-height: 1.1; }
.lq-tiers { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 10px; }
.lq-tier { padding: 10px 12px; }
.lq-tier-head { display: flex; justify-content: space-between; align-items: baseline; }
.lq-tier-name { font-size: 13px; font-weight: 600; }
.lq-tier-score { font-size: 18px; font-weight: 800; }
.lq-votes { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; }
.lq-vote { font-size: 11px; color: var(--muted); }
.lq-chip {
  display: inline-block; font-size: 10px; font-weight: 700; line-height: 1;
  padding: 2px 7px; border-radius: 999px; border: 1px solid; margin-left: 3px;
}
.lq-rule { margin-top: 6px; font-size: 11px; color: var(--gray); }
.chart-box.lq-tiers-chart { height: 200px; }
.lq-grid4 { display: grid; grid-template-columns: 1fr; gap: 14px 8px; margin-bottom: 10px; }
.lq-grid4 .card { padding: 8px 10px; }
.lq-grid4 .chart-title.sm { font-size: 12px; margin-bottom: 2px; }
.lq-grid4 .chart-sub { margin-top: 0; }
.chart-box.lq-mini { height: 130px; margin-top: 4px; }
@media (min-width: 640px) {
  .lq-tiers { grid-template-columns: repeat(3, 1fr); }
  .lq-grid4 { grid-template-columns: repeat(2, 1fr); }
}

/* ── 风格罗盘（stylelens） ── */
.chart-box.sl-share { height: 230px; }
.chart-box.sl-sr { height: 230px; }
.chart-box.sl-rot { height: 200px; }
.sl-unit { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 1px; }
.sl-sub { font-size: 10px; color: var(--gray); line-height: 1.5; margin: 1px 0 3px; }
.sl-chip {
  display: inline-block; font-size: 10px; font-weight: 700; line-height: 1;
  padding: 2px 7px; border-radius: 999px; margin-left: 6px; vertical-align: 3px;
}
.sl-chip.beta { background: #fee2e2; color: #b91c1c; }
.sl-chip.transition { background: #fef3c7; color: #b45309; }
.sl-chip.active { background: #dcfce7; color: #15803d; }
.sl-chip.dividend { background: #e0f2fe; color: #0369a1; }
.sl-chip.growth { background: #ede9fe; color: #6d28d9; }
.sl-chip.consumer { background: #dcfce7; color: #15803d; }
.sl-chip.hardcycle { background: #fff7ed; color: #c2410c; }
.sl-chip.normal { background: #dcfce7; color: #15803d; }
.sl-chip.warming { background: #fef3c7; color: #b45309; }
.sl-chip.alarm { background: #fee2e2; color: #b91c1c; }
.sl-chip.neutral { background: #f3f4f6; color: var(--muted); }
.sl-combo {
  margin: 0 0 10px; padding: 8px 12px; font-size: 12px; color: #374151;
  background: var(--card); border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(31,41,55,0.05);
}
.sl-combo b { font-size: 13px; }
.sl-combo-ref { margin-left: 10px; font-size: 11px; color: var(--gray); }
.sl-read { display: grid; grid-template-columns: 1fr; gap: 8px; }
.sl-read-item { font-size: 11px; color: var(--gray); line-height: 1.7; }
.sl-read-item b { color: #374151; }
@media (min-width: 640px) {
  .chart-box.sl-share { height: 300px; }
  .chart-box.sl-sr { height: 300px; }
  .chart-box.sl-rot { height: 260px; }
  .sl-read { grid-template-columns: repeat(2, 1fr); }
}
