/* 掘金工作台 · 手机版样式（只做覆盖，不改桌面版 client.js 的结构） */
html, body {
  margin: 0; padding: 0; height: 100%;
  background: #070b14; color: #dbe4f5;
  font: 14px/1.5 -apple-system, "Segoe UI", system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
}
* { -webkit-tap-highlight-color: transparent; }

/* ---------- 启动屏 ---------- */
#boot {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 35%, #241033, #070b14 70%);
}
#boot .boot-logo { font-size: 64px; line-height: 1; filter: drop-shadow(0 0 18px rgba(255,213,79,.45)); }
#boot .boot-name { margin-top: 14px; font-size: 20px; font-weight: 800; color: #ffd54f; letter-spacing: 2px; }
#boot .boot-tip { margin-top: 10px; font-size: 13px; color: #93a4c4; }

/* ---------- 入口页 ---------- */
#launcher {
  position: fixed; inset: 0; z-index: 9000; display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: radial-gradient(circle at 50% 30%, #1a1030, #070b14 72%);
  padding: 24px; text-align: center;
}
#launcher .launch-logo { font-size: 56px; }
#launcher .launch-title { font-size: 24px; font-weight: 800; color: #ffd54f; letter-spacing: 2px; }
#launcher .launch-sub { font-size: 13px; color: #9fb2d4; }
#launcher #btn-open {
  margin-top: 18px; padding: 14px 44px; font-size: 16px; font-weight: 700;
  border: 0; border-radius: 999px; color: #2b033f;
  background: linear-gradient(180deg, #ffd54f, #f0b429);
  box-shadow: 0 10px 26px rgba(255,213,79,.28);
}
#launcher .launch-note { margin-top: 14px; font-size: 12px; color: #6b7c9c; }

/* ---------- 面板：手机全屏 ---------- */
#biga-panel.mobile,
#biga-panel {
  position: fixed !important;
  left: 0 !important; top: 0 !important;
  width: 100vw !important; height: 100vh !important;
  max-width: 100vw !important; max-height: 100vh !important;
  min-width: 0 !important; min-height: 0 !important;
  border: 0 !important; border-radius: 0 !important;
  box-shadow: none !important;
  padding-bottom: env(safe-area-inset-bottom);
}
#biga-panel .hd {
  padding: 10px 10px calc(10px) 12px !important;
  padding-top: calc(10px + env(safe-area-inset-top)) !important;
  gap: 6px !important; flex-wrap: nowrap !important; overflow-x: auto;
  cursor: default !important;
}
#biga-panel .hd .ttl { font-size: 15px !important; margin-right: 4px !important; }
#biga-panel .tabs { display: flex; gap: 6px; overflow-x: auto; flex: 1 1 auto; scrollbar-width: none; }
#biga-panel .tabs::-webkit-scrollbar { display: none; }
#biga-panel .tb {
  padding: 7px 10px !important; font-size: 12.5px !important; white-space: nowrap;
  border-radius: 8px; flex: 0 0 auto;
}
/* 手机上隐藏窗口控制按钮（最大/最小/弹出/关闭） */
#biga-panel .hd .wbtn, #biga-panel .hd button[text="X"] { display: none !important; }
#biga-panel .hd .wbtn { display: none !important; }
#biga-panel .grip { display: none !important; }

/* 工具条：允许横向滚动，点按区域加大 */
#biga-panel .bar {
  padding: 8px 10px !important; gap: 6px !important;
  overflow-x: auto; flex-wrap: nowrap !important; scrollbar-width: none;
}
#biga-panel .bar::-webkit-scrollbar { display: none; }
#biga-panel .bar input {
  min-width: 150px !important; flex: 1 1 150px; font-size: 13px !important; padding: 8px 10px !important;
}
#biga-panel .bar button, #biga-panel .bar select {
  padding: 8px 10px !important; font-size: 12.5px !important; white-space: nowrap;
}
#biga-panel .chip { padding: 6px 10px !important; font-size: 12.5px !important; }

/* 汇总行 */
#biga-panel .sum { font-size: 12px !important; line-height: 1.55; padding: 6px 10px !important; }

/* 表格：字号与行高适合手指 */
#biga-panel .tw { -webkit-overflow-scrolling: touch; }
#biga-panel table { font-size: 12.5px !important; }
#biga-panel th, #biga-panel td { padding: 8px 8px !important; }
#biga-panel th { position: sticky; top: 0; z-index: 2; }

/* 规则面板：手机上给足高度并可滚 */
#biga-panel .rules { max-height: 52vh !important; }

/* 帮助卡：手机上几乎满屏 */
#biga-panel .qhcard {
  width: 94vw !important; max-height: 86vh !important;
  font-size: 13.5px !important; padding: 14px 14px 18px !important;
}
#biga-panel .qhcard .x { font-size: 20px; padding: 4px 8px; }

/* 自选库弹窗 */
.pool-pop .pool-box { width: 92vw !important; max-height: 80vh !important; }
.pool-pop .pool-item { padding: 10px 8px !important; }

/* 个股图：手机全屏 + 触屏友好 */
#biga-chart-mask { padding: 0 !important; align-items: stretch !important; }
#biga-chart {
  width: 100vw !important; height: 100vh !important; max-width: 100vw !important;
  border-radius: 0 !important; border: 0 !important;
}
#biga-chart .ch {
  padding: 8px !important; gap: 6px !important;
  padding-top: calc(8px + env(safe-area-inset-top)) !important;
  overflow-x: auto; flex-wrap: nowrap !important; scrollbar-width: none;
}
#biga-chart .ch::-webkit-scrollbar { display: none; }
#biga-chart .ch b { font-size: 13px !important; }
#biga-chart .ctab { padding: 7px 9px !important; font-size: 12.5px !important; white-space: nowrap; }
#biga-chart .biga-xg { top: calc(6px + env(safe-area-inset-top)) !important; right: 8px !important; }
#biga-chart .biga-xg button { padding: 6px 9px !important; }
/* 主图/副图工具行 */
#biga-chart .flt, #biga-chart .bar button { padding: 6px 9px !important; font-size: 12px !important; }
#biga-chart .indbar, #biga-chart .cfg4 {
  overflow-x: auto; flex-wrap: nowrap !important; scrollbar-width: none;
  padding: 6px 8px !important;
}
#biga-chart .indbar::-webkit-scrollbar, #biga-chart .cfg4::-webkit-scrollbar { display: none; }
/* 追踪模式的价格标签在手机上略小 */
#biga-chart .zjptag { font-size: 11px !important; }

/* 悬浮球：手机上一个不碍事的角标（面板默认全屏打开） */
#biga-fab {
  right: 10px !important; bottom: calc(16px + env(safe-area-inset-bottom)) !important;
  width: 44px !important; height: 44px !important; opacity: .92;
}


/* ================= 个股图工具条（手机重排） ================= */
/* 真实类名：#biga-chart .cind（主图/副图行）、.r4cfg（四灯配置行） */
#biga-chart .cind,
#biga-chart .r4cfg {
  display: flex; flex-wrap: wrap !important;
  align-items: center; gap: 6px 8px !important;
  padding: 8px 10px !important;
  overflow: visible !important;
}
#biga-chart .cind .lb { font-size: 11.5px !important; color: #8fa3c4; }
#biga-chart .cind .fltbox { display: flex; gap: 6px; flex-wrap: nowrap; }
#biga-chart .cind .sp { flex: 1 1 0; min-width: 0; }
#biga-chart .cind button, #biga-chart .r4cfg button {
  padding: 7px 10px !important; font-size: 12.5px !important;
  border-radius: 8px; white-space: nowrap;
}
#biga-chart .cind .flt.on, #biga-chart .cind .flt {
  padding: 7px 10px !important; font-size: 12.5px !important;
}
#biga-chart .cind .subbar { display: flex; gap: 6px; flex-wrap: wrap; }
/* 顶栏（标题+周期+指数）允许换行，不要横向滚成一条 */
#biga-chart .ch {
  display: flex; flex-wrap: wrap !important; gap: 6px 8px !important;
  padding: 8px 10px !important;
  padding-top: calc(8px + env(safe-area-inset-top)) !important;
  overflow: visible !important;
}
#biga-chart .ch .idxline { font-size: 11px !important; opacity: .85; }
#biga-chart .ch .sp { display: none !important; }
/* 右上角按钮避开顶栏文字 */
#biga-chart .biga-xg { position: absolute !important; top: calc(6px + env(safe-area-inset-top)) !important; right: 8px !important; }
#biga-chart .biga-xg button { padding: 6px 9px !important; font-size: 13px !important; }
/* 底部说明文字 */
#biga-chart .cf { font-size: 11px !important; line-height: 1.5; padding: 6px 10px calc(8px + env(safe-area-inset-bottom)) !important; }
/* 画布区在手机上占满剩余高度 */
#biga-chart { display: flex; flex-direction: column; }
#biga-chart canvas { flex: 0 0 auto; }


/* ===== 工具条进一步压缩（一屏看得到图） ===== */
#biga-chart .ch { padding: 6px 8px !important; gap: 4px 6px !important; }
#biga-chart .ch b { font-size: 12.5px !important; }
#biga-chart .ch .ctab { padding: 5px 8px !important; font-size: 12px !important; }
#biga-chart .ch .idxline { font-size: 10px !important; opacity: .8; }
#biga-chart .cind { padding: 5px 8px !important; gap: 4px 5px !important; }
#biga-chart .cind .lb { font-size: 10.5px !important; }
#biga-chart .cind button, #biga-chart .cind .flt {
  padding: 5px 8px !important; font-size: 11.5px !important; border-radius: 7px;
}
#biga-chart .r4cfg { padding: 5px 8px !important; gap: 4px 6px !important; font-size: 11.5px !important; }
#biga-chart .r4cfg button { padding: 4px 7px !important; font-size: 11.5px !important; }
#biga-chart .biga-xg button { padding: 5px 8px !important; font-size: 12.5px !important; }
#biga-chart .cf { font-size: 10.5px !important; padding: 4px 8px calc(6px + env(safe-area-inset-bottom)) !important; }


/* ===== 顶栏手机化：标题不换行、按钮更小、四个页签一屏放下 ===== */
#biga-panel .hd {
  display: flex !important; flex-wrap: nowrap !important;
  align-items: center; gap: 5px !important;
  padding: 8px 8px !important;
  padding-top: calc(8px + env(safe-area-inset-top)) !important;
  overflow: visible !important;
}
#biga-panel .hd .ttl {
  font-size: 13px !important; font-weight: 800 !important;
  margin-right: 2px !important; white-space: nowrap !important;
  flex: 0 0 auto; letter-spacing: 0 !important;
}
#biga-panel .hd .tabs {
  display: flex; gap: 4px; flex: 1 1 auto; min-width: 0;
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
#biga-panel .hd .tb {
  padding: 6px 8px !important; font-size: 12px !important;
  border-radius: 7px; white-space: nowrap; flex: 0 0 auto;
}
#biga-panel .hd button.tb { padding: 6px 7px !important; font-size: 11.5px !important; }
#biga-panel .hd button:not(.tb) { padding: 6px 8px !important; font-size: 11.5px !important; flex: 0 0 auto; }
/* 底部状态栏：单行省略，别撑高 */
#biga-panel .foot {
  font-size: 10.5px !important; padding: 4px 8px calc(6px + env(safe-area-inset-bottom)) !important;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* 汇总行允许换行但紧凑 */
#biga-panel .sum { padding: 5px 8px !important; font-size: 11.5px !important; }


/* ===== 顶栏终极压缩：藏标题/藏关闭、使用说明变图标，四个页签一屏放下 ===== */
#biga-panel .hd .ttl { display: none !important; }
#biga-panel .hd > button:not(.tb) { display: none !important; }   /* 关闭：全屏面板不需要 */
#biga-panel .hd button.tb {
  font-size: 0 !important; padding: 6px 9px !important; line-height: 1 !important;
  flex: 0 0 auto;
}
#biga-panel .hd button.tb::before { content: "📖"; font-size: 15px; }
#biga-panel .hd .tabs { gap: 3px; }
#biga-panel .hd .tb { padding: 6px 7px !important; font-size: 11.5px !important; }


/* ================= 触屏手势支持 ================= */
/* 图表画布自己处理手势（单指平移 / 双指缩放），禁止浏览器默认滚动与缩放 */
#biga-chart canvas { touch-action: none !important; -webkit-user-select: none; user-select: none; }
/* 列表/帮助卡/规则面板：允许手指上下滑动 */
#biga-panel .tw,
#biga-panel .rules,
#biga-panel .qhcard,
.pool-pop .pool-box,
#biga-panel .bar,
#biga-panel .tabs {
  touch-action: auto;
  -webkit-overflow-scrolling: touch;
}
/* 面板整体：允许纵向滚动（内容超屏时可上下拖） */
#biga-panel { overflow-y: auto !important; overflow-x: hidden !important; }
/* 顶部工具条/页签保持横向滚动优先 */
#biga-panel .hd, #biga-panel .bar { touch-action: auto; }
/* 个股图容器：整体不可滚，只有画布手势 */
#biga-chart { overflow-y: auto !important; touch-action: pan-y; }
#biga-chart .ch, #biga-chart .cind, #biga-chart .r4cfg { touch-action: auto; }
/* 表格行点击反馈（手指按下有反馈，避免误以为没响应） */
#biga-panel tbody tr:active td { background: #17233c !important; }


/* ================= 全站可缩放（手机双指放大任意界面） ================= */
/* 除图表画布外，都交给浏览器原生缩放：双指放大 0.5x~5x、双击放大 */
#biga-panel, #biga-panel * { touch-action: auto; }
#biga-panel .tabs, #biga-panel .bar, #biga-chart .ch, #biga-chart .cind, #biga-chart .r4cfg { touch-action: auto; }
/* 图表画布独占手势（单指平移 / 双指缩放K线，不缩放整页） */
#biga-chart canvas { touch-action: none !important; }


/* ================= 手机触控尺寸 & 输入体验（复核后修复） ================= */
/* 1) 所有可点元素 ≥ 34px（原来 20~30px，手指点不准） */
#biga-panel button,
#biga-panel .chip,
#biga-panel .flt,
#biga-panel .ctab,
#biga-panel .qh,
#biga-panel .tb,
.pool-pop button,
#biga-chart button,
#biga-chart .flt,
#biga-chart .ctab,
#biga-chart .qh {
  min-height: 34px;
  box-sizing: border-box;
}
#biga-panel .qh, #biga-chart .qh {
  min-width: 34px;
  display: inline-flex; align-items: center; justify-content: center;
}
/* 顶栏的图标按钮单独收窄，避免挤占页签 */
#biga-panel .hd button.tb { min-height: 34px; min-width: 34px; }

/* 2) 输入框 16px：iOS 聚焦时不会自动放大整页 */
#biga-panel input,
#biga-panel select,
.pool-pop input,
#biga-chart input {
  font-size: 16px !important;
  min-height: 36px;
  padding: 6px 10px !important;
  box-sizing: border-box;
}

/* 3) 表格首列吸附：手机左右滑动看后面的列时，代码/名称不跑丢 */
#biga-panel .tw table th:first-child,
#biga-panel .tw table td:first-child {
  position: sticky; left: 0; z-index: 3;
  background: #0b1120;
  box-shadow: 1px 0 0 #1b2740;
}
#biga-panel .tw table th:first-child { z-index: 4; }

/* 4) 表头提示：右侧还有列（可左右滑） */
#biga-panel .tw { position: relative; }

/* 5) 触感：按下有反馈 */
#biga-panel button:active, #biga-panel .chip:active, #biga-panel .flt:active,
#biga-chart button:active, #biga-chart .ctab:active, #biga-chart .flt:active {
  filter: brightness(1.25);
}

/* 输入框 16px 强制覆盖（比 .bar input 的 13px 规则更靠后、同/更高优先级） */
#biga-panel .bar input,
#biga-panel .bar select,
#biga-panel .rules input,
#biga-panel .rules select,
#biga-panel .rulegrid input,
.pool-pop input {
  font-size: 16px !important;
  min-height: 36px !important;
}

/* 表头加大点击区（排序用） */
#biga-panel th { min-height: 34px; padding: 8px !important; font-size: 12.5px !important; }
/* 首列与表头同时吸附（横向滑动时列标题不丢） */
#biga-panel .tw table th:first-child { position: sticky; left: 0; top: 0; z-index: 5; }
#biga-panel .tw table td:first-child { position: sticky; left: 0; z-index: 3; }

/* 帮助卡宽度收敛到视口内（原来 94vw + padding 会溢出 6px） */
#biga-panel .qhcard {
  width: auto !important;
  left: 6px !important; right: 6px !important;
  transform: none !important;
  max-width: none !important;
  box-sizing: border-box !important;
  max-height: 86vh !important;
  overflow-y: auto !important;
}
/* 自选库弹窗同理 */
.pool-pop .pool-box { width: auto !important; left: 8px; right: 8px; box-sizing: border-box; margin: 0 auto; }

/* 前两列吸附（代码 + 名称），横向滑动时股票是谁不丢 */
#biga-panel .tw table th:first-child,
#biga-panel .tw table td:first-child { position: sticky; left: 0 !important; z-index: 3; background: #0b1120; }
#biga-panel .tw table th:nth-child(2),
#biga-panel .tw table td:nth-child(2) { position: sticky; left: var(--jj-c1, 76px) !important; z-index: 3; background: #0b1120; box-shadow: 1px 0 0 #1b2740; }
#biga-panel .tw table th:first-child,
#biga-panel .tw table th:nth-child(2) { z-index: 4; top: 0; }
/* 汇总行紧凑一点 */
#biga-panel .sum { font-size: 11.5px !important; line-height: 1.5 !important; }

/* 第二列吸附位置由脚本按实际列宽写入变量（避免出现缝隙露出底层文字） */
#biga-panel .tw table th:nth-child(2),
#biga-panel .tw table td:nth-child(2) {
  left: var(--jj-c1, 76px) !important;
  background: #0b1120 !important;
}
#biga-panel .tw table th:first-child,
#biga-panel .tw table td:first-child {
  background: #0b1120 !important;
}

/* ===== 手机紧凑排版：一屏多看几行 ===== */
#biga-panel .sum {
  font-size: 11px !important;
  line-height: 1.45 !important;
  padding: 5px 8px !important;
  max-height: 64px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
#biga-panel td { padding: 6px 7px !important; line-height: 1.25 !important; }
#biga-panel th { padding: 7px !important; }
#biga-panel table { font-size: 12.5px !important; }
/* 表格内的小按钮（星标等）保持可点但不撑高行 */
#biga-panel td button { min-height: 28px !important; padding: 2px 6px !important; font-size: 13px !important; }


/* ================= 个股图：工具栏默认折叠，图占满屏幕 ================= */
/* 折叠时只留顶栏（标题/周期/⚙/□/✕）；主图/副图/缩放/四灯 收进 ⚙ */
#biga-chart .cind, #biga-chart .r4cfg { display: none !important; }
#biga-chart.tools-open .cind { display: flex !important; }
#biga-chart.tools-open .r4cfg { display: flex !important; }

/* 顶栏更紧凑；周期胶囊换行滚动 */
#biga-chart .ch { padding: 6px 8px !important; padding-top: calc(6px + env(safe-area-inset-top)) !important; gap: 4px 6px !important; }
#biga-chart .ch .ctab { padding: 5px 8px !important; font-size: 12px !important; min-height: 30px !important; }
#biga-chart .ch b { font-size: 12.5px !important; }
#biga-chart .ch .idxline { font-size: 10px !important; opacity: .75; }
#biga-chart .biga-xg { top: calc(4px + env(safe-area-inset-top)) !important; }
/* ⚙ 按钮样式 */
#biga-chart .biga-xg .jj-gear {
  font-size: 15px !important; line-height: 1 !important;
  padding: 6px 9px !important; min-width: 34px;
}
#biga-chart .biga-xg .jj-gear.on { background: #2563eb !important; border-color: #3b82f6 !important; color: #fff !important; }
/* 画布：宽度铺满，高度由脚本按屏幕算（吃满剩余空间） */
#biga-chart canvas { width: 100% !important; display: block; }
/* 底部说明压到一行 */
#biga-chart .cf { font-size: 10px !important; padding: 3px 8px calc(4px + env(safe-area-inset-bottom)) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ================= 横屏：顶栏压成一行、指数隐藏、图更高 ================= */
@media (orientation: landscape) and (max-height: 560px) {
  #biga-chart .ch { padding: 4px 8px !important; padding-top: calc(4px + env(safe-area-inset-top)) !important; gap: 4px !important; flex-wrap: nowrap !important; overflow-x: auto; }
  #biga-chart .ch .idxline { display: none !important; }
  #biga-chart .ch .ctab { padding: 4px 7px !important; font-size: 11.5px !important; min-height: 28px !important; }
  #biga-chart .cf { display: none !important; }
  #biga-chart .cind, #biga-chart .r4cfg { max-height: 38vh; overflow-y: auto; }
  #biga-panel .hd { padding-top: 4px !important; }
  #biga-panel .tb { padding: 5px 7px !important; font-size: 11.5px !important; }
  #biga-panel .bar, #biga-panel .sum { max-height: none; }
}
/* 竖屏小屏（< 700 高）也收紧一点 */
@media (orientation: portrait) and (max-height: 700px) {
  #biga-chart .ch { padding: 4px 8px !important; }
  #biga-chart .ch .idxline { display: none !important; }
}

/* 竖屏隐藏指数行（个股图不需要，省 90px 给 K 线） */
@media (orientation: portrait) {
  #biga-chart .ch .idxline { display: none !important; }
}
/* 底部「主力异动」条与图例固定在可视区内 */
#biga-chart { overflow: hidden !important; }
#biga-chart .zjstrip { flex: 0 0 auto; }
#biga-chart .cf { flex: 0 0 auto; }
/* 竖屏时主图再高一点 */
@media (orientation: portrait) {
  #biga-chart canvas { max-height: calc(100vh - 210px); }
}

/* 手机上「主力异动」副条压到 88px（原来 150px，占掉太多 K 线空间） */
#biga-chart .zjstrip { flex: 0 0 88px !important; height: 88px !important; }
@media (orientation: landscape) {
  #biga-chart .zjstrip { flex: 0 0 72px !important; height: 72px !important; }
}

/* ===== ⚙ 展开工具栏后：图仍可见，整块区域可上下滑动 ===== */
#biga-chart.tools-open {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
}
#biga-chart.tools-open .ch {
  position: sticky; top: 0; z-index: 25;
  background: #0b1120;
  border-bottom: 1px solid #16203a;
}
/* 展开时工具栏本身可滚动（参数多时不撑爆） */
#biga-chart.tools-open .cind,
#biga-chart.tools-open .r4cfg {
  max-height: 46vh; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
/* 工具栏按钮更紧凑，少占高度 */
#biga-chart .cind .flt, #biga-chart .cind button { padding: 4px 9px !important; font-size: 12px !important; min-height: 30px !important; }
#biga-chart .cind { gap: 4px !important; padding: 4px 8px !important; }
#biga-chart .r4cfg { padding: 4px 8px !important; gap: 4px !important; }

/* 横屏：把画布还给 K 线（顶栏一行、工具栏覆盖而非挤压） */
@media (orientation: landscape) {
  #biga-chart .ch { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; }
  #biga-chart .ch::-webkit-scrollbar { display: none; }
}

/* 展开工具栏后：画布上竖滑=滚动页面，横滑=平移K线（touch-action: pan-y 只放行竖向） */
#biga-chart.tools-open canvas { touch-action: pan-y !important; }

/* ===== 影子跟踪弹窗：手机全屏、表头紧凑、图上留白收窄 ===== */
@media (max-width: 900px) {
  .zjpop { padding: 0 !important; }
  .zjpopbox {
    width: 100vw !important; height: 100dvh !important;
    max-width: none !important; max-height: none !important;
    border-radius: 0 !important; border: none !important;
  }
  .zjpopph {
    padding: 6px 8px !important; gap: 4px !important;
    padding-top: calc(6px + env(safe-area-inset-top)) !important;
    flex-wrap: nowrap !important; overflow-x: auto !important;
    scrollbar-width: none;
  }
  .zjpopph::-webkit-scrollbar { display: none; }
  .zjpopph b { font-size: 13px !important; }
  .zjpop button { padding: 4px 8px !important; font-size: 11.5px !important; min-height: 30px !important; }
  .zjpop .chip { padding: 3px 7px !important; font-size: 11.5px !important; }
  .zjpop .zjper { flex-wrap: nowrap !important; }
  .zjpop .zjpopmeta {
    font-size: 10.5px !important; padding: 3px 8px !important;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .zjpop .zjpopplot { padding: 0 2px 2px !important; }
  .zjpop .zjstrip2 { flex: 0 0 24% !important; min-height: 74px !important; max-height: 130px !important; }
}

/* 手机：影子跟踪弹窗表头隐藏「上证/深证/创业板」指数行（与股票名挤在一起） */
@media (max-width: 900px) {
  .zjpopph .idxline { display: none !important; }
  .zjpopph b { max-width: 52vw; overflow: hidden; text-overflow: ellipsis; }
}

/* 横屏：隐藏弹窗提示行，把高度让给 K 线 */
@media (orientation: landscape) and (max-height: 560px) {
  .zjpop .zjpopmeta { display: none !important; }
  .zjpopph { padding: 4px 8px !important; }
  .zjpop .zjstrip2 { flex: 0 0 22% !important; min-height: 60px !important; }
}
