#newScanTest{
  margin:18px 0;
  border:2px solid #1b83d4;
  border-radius:14px;
  background:#071b29;
  overflow:hidden;
}
#newScanTest *{box-sizing:border-box}
#newScanTest .nst-head{
  padding:16px 18px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
#newScanTest .nst-title{
  font-size:22px;
  font-weight:900;
  color:#fff;
}
#newScanTest .nst-badge{
  margin-left:10px;
  padding:4px 9px;
  border-radius:6px;
  background:#126db0;
  font-size:12px;
}
#newScanTest .nst-meta{color:#85badc;font-size:13px}
#newScanTest .nst-box{overflow-x:auto}
#newScanTest table{
  width:100%;
  min-width:1550px;
  border-collapse:collapse;
  table-layout:fixed;
}
#newScanTest th{
  height:105px;
  background:#0b2b3e;
  border:1px solid #1d465e;
  color:#d8efff;
  font-size:14px;
  text-align:center;
  padding:6px;
}
#newScanTest td{
  height:82px;
  border:1px solid #193f55;
  background:#081f2e;
  text-align:center;
  color:#eef8ff;
  font-weight:800;
  padding:5px;
}
#newScanTest tbody tr:nth-child(even) td{background:#0a2636}
#newScanTest th[data-sort]{cursor:pointer;user-select:none}
#newScanTest th[data-sort]:hover{background:#113850}
#newScanTest th.activeSort{background:#17415c}
#newScanTest .arrow{color:#79c8ff}
#newScanTest .subtools{
  margin-top:8px;
  display:flex;
  justify-content:center;
  gap:5px;
}
#newScanTest select,
#newScanTest .smallBtn{
  height:30px;
  padding:0 7px;
  border:1px solid #34627c;
  border-radius:7px;
  background:#09283a;
  color:#8fd0ff;
  font-weight:700;
}
#newScanTest .cell{
  display:flex;
  flex-direction:column;
  gap:5px;
  align-items:center;
}
#newScanTest .sub{font-size:12px;color:#8ebcdc}
#newScanTest .bull{color:#ff6262}
#newScanTest .bear{color:#19dca9}
#newScanTest .neutral{color:#8dcaff}
#newScanTest .star{
  width:40px;height:40px;
  border:1px solid #396780;
  border-radius:9px;
  background:#09283a;
  color:#78c9ff;
  font-size:23px;
}
#newScanTest .star.on{color:#ffd45a}
#newScanTest .kbtn{
  padding:6px 10px;
  background:#fff;
  color:#111;
  border:1px solid #aaa;
}
#newScanTest .up{color:#ff5759}
#newScanTest .down{color:#13d9a5}

/* =====================================================
   NEW SCAN TEST - 列宽与排版修正
   ===================================================== */

/* 整体更稳一些 */
#newScanTest table{
  min-width:1700px !important;
}

#newScanTest th,
#newScanTest td{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  vertical-align:middle;
}

/* 表头 */
#newScanTest th{
  height:110px;
  padding:6px 4px;
}

#newScanTest .subtools{
  margin-top:8px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:6px;
  flex-wrap:nowrap;
}

#newScanTest select,
#newScanTest .smallBtn{
  min-width:62px;
  height:34px;
  padding:0 8px;
  font-size:12px;
  white-space:nowrap;
}

/* 单元格内容 */
#newScanTest td{
  height:86px;
  padding:6px 4px;
}

#newScanTest .cell{
  gap:4px;
}

#newScanTest .cell b{
  display:block;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

#newScanTest .sub{
  display:block;
  font-size:12px;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* 主力合约更清楚 */
#newScanTest td:nth-child(3){
  font-size:15px;
  font-weight:900;
}

/* 成交额排行不要断成两行 */
#newScanTest td:nth-child(11){
  white-space:nowrap !important;
}

/* K线按钮 */
#newScanTest .kbtn{
  min-width:48px;
  height:34px;
  border-radius:4px;
}

/* ===== 列宽重新分配 ===== */
/* 1 # */
#newScanTest th:nth-child(1),
#newScanTest td:nth-child(1){
  width:52px;
}

/* 2 收藏 */
#newScanTest th:nth-child(2),
#newScanTest td:nth-child(2){
  width:72px;
}

/* 3 主力合约 */
#newScanTest th:nth-child(3),
#newScanTest td:nth-child(3){
  width:122px;
}

/* 4 最新价 */
#newScanTest th:nth-child(4),
#newScanTest td:nth-child(4){
  width:92px;
}

/* 5 日K结构 */
#newScanTest th:nth-child(5),
#newScanTest td:nth-child(5){
  width:138px;
}

/* 6 MA5/10 */
#newScanTest th:nth-child(6),
#newScanTest td:nth-child(6){
  width:122px;
}

/* 7 日K重叠 */
#newScanTest th:nth-child(7),
#newScanTest td:nth-child(7){
  width:84px;
}

/* 8 1H动能RSI */
#newScanTest th:nth-child(8),
#newScanTest td:nth-child(8){
  width:122px;
}

/* 9 1H6均线 */
#newScanTest th:nth-child(9),
#newScanTest td:nth-child(9){
  width:92px;
}

/* 10 1H DIF */
#newScanTest th:nth-child(10),
#newScanTest td:nth-child(10){
  width:122px;
}

/* 11 成交额排行 */
#newScanTest th:nth-child(11),
#newScanTest td:nth-child(11){
  width:118px;
}

/* 12-15 涨跌幅 */
#newScanTest th:nth-child(12),
#newScanTest td:nth-child(12),
#newScanTest th:nth-child(13),
#newScanTest td:nth-child(13),
#newScanTest th:nth-child(14),
#newScanTest td:nth-child(14),
#newScanTest th:nth-child(15),
#newScanTest td:nth-child(15){
  width:92px;
}

/* 16 K线 */
#newScanTest th:nth-child(16),
#newScanTest td:nth-child(16){
  width:68px;
}

/* 固定前3列也同步调一下 left */
#newScanTest th:nth-child(1),
#newScanTest td:nth-child(1){
  left:0;
}

#newScanTest th:nth-child(2),
#newScanTest td:nth-child(2){
  left:52px;
}

#newScanTest th:nth-child(3),
#newScanTest td:nth-child(3){
  left:124px;
}


/* K线列删除后，15列重新分配 */
#newScanTest th:nth-child(1),
#newScanTest td:nth-child(1){width:3% !important;}

#newScanTest th:nth-child(2),
#newScanTest td:nth-child(2){width:4% !important;}

#newScanTest th:nth-child(3),
#newScanTest td:nth-child(3){width:9% !important;}

#newScanTest th:nth-child(4),
#newScanTest td:nth-child(4){width:6% !important;}

#newScanTest th:nth-child(5),
#newScanTest td:nth-child(5){width:10% !important;}

#newScanTest th:nth-child(6),
#newScanTest td:nth-child(6){width:9% !important;}

#newScanTest th:nth-child(7),
#newScanTest td:nth-child(7){width:5% !important;}

#newScanTest th:nth-child(8),
#newScanTest td:nth-child(8){width:10% !important;}

#newScanTest th:nth-child(9),
#newScanTest td:nth-child(9){width:7% !important;}

#newScanTest th:nth-child(10),
#newScanTest td:nth-child(10){width:9% !important;}

#newScanTest th:nth-child(11),
#newScanTest td:nth-child(11){width:8% !important;}

#newScanTest th:nth-child(12),
#newScanTest td:nth-child(12),
#newScanTest th:nth-child(13),
#newScanTest td:nth-child(13),
#newScanTest th:nth-child(14),
#newScanTest td:nth-child(14),
#newScanTest th:nth-child(15),
#newScanTest td:nth-child(15){width:5% !important;}

/* 防止旧16列规则影响 */
#newScanTest th:nth-child(16),
#newScanTest td:nth-child(16){
  display:none !important;
}

/* =====================================================
   NEW SCAN FINAL - 15列单窗口显示
   无横向滚动条
   ===================================================== */

#newScanTest{
  width:100% !important;
  max-width:100% !important;
  overflow:hidden !important;
}

#newScanTest .nst-box{
  width:100% !important;
  max-width:100% !important;
  overflow-x:hidden !important;
  overflow-y:visible !important;
}

#newScanTest table{
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  table-layout:fixed !important;
}

/* 所有旧 min-width 全部压掉 */
#newScanTest th,
#newScanTest td{
  min-width:0 !important;
  max-width:none !important;
  box-sizing:border-box !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}

/* 表头压缩 */
#newScanTest th{
  height:96px !important;
  padding:4px 2px !important;
  font-size:12px !important;
  line-height:1.15 !important;
}

/* 数据行压缩 */
#newScanTest td{
  height:76px !important;
  padding:4px 2px !important;
  font-size:12px !important;
  line-height:1.2 !important;
}

/* 主数据 */
#newScanTest .cell{
  gap:3px !important;
  min-width:0 !important;
}

#newScanTest .cell b{
  font-size:12px !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  max-width:100% !important;
}

#newScanTest .sub{
  font-size:10px !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  max-width:100% !important;
}

/* 表头筛选框再压缩 */
#newScanTest .subtools{
  margin-top:6px !important;
  gap:3px !important;
  width:100% !important;
  flex-wrap:nowrap !important;
}

#newScanTest select,
#newScanTest .smallBtn{
  height:29px !important;
  min-width:0 !important;
  padding:0 3px !important;
  font-size:10px !important;
  border-radius:6px !important;
}

/* 日K结构 */
#newScanTest #nfMa20{
  width:50% !important;
}

#newScanTest #nfStruct{
  width:46% !important;
}

/* MA5/10 */
#newScanTest #nfMa510{
  width:72% !important;
}

/* RSI */
#newScanTest #nfRsi{
  width:55% !important;
}

#newScanTest #nfRsiTime{
  width:41% !important;
}

/* DIF */
#newScanTest #nfDif{
  width:55% !important;
}

#newScanTest #nfDifTime{
  width:41% !important;
}

/* 收藏星星压缩 */
#newScanTest .star{
  width:34px !important;
  height:34px !important;
  font-size:19px !important;
}


/* =====================================================
   15列最终比例
   ===================================================== */

/* 1 编号 */
#newScanTest th:nth-child(1),
#newScanTest td:nth-child(1){
  width:3% !important;
}

/* 2 收藏 */
#newScanTest th:nth-child(2),
#newScanTest td:nth-child(2){
  width:4% !important;
}

/* 3 主力合约 */
#newScanTest th:nth-child(3),
#newScanTest td:nth-child(3){
  width:9% !important;
}

/* 4 最新价 */
#newScanTest th:nth-child(4),
#newScanTest td:nth-child(4){
  width:5.5% !important;
}

/* 5 日K结构 */
#newScanTest th:nth-child(5),
#newScanTest td:nth-child(5){
  width:10% !important;
}

/* 6 MA5/10 */
#newScanTest th:nth-child(6),
#newScanTest td:nth-child(6){
  width:8.5% !important;
}

/* 7 日K重叠 */
#newScanTest th:nth-child(7),
#newScanTest td:nth-child(7){
  width:4.5% !important;
}

/* 8 1H动能RSI */
#newScanTest th:nth-child(8),
#newScanTest td:nth-child(8){
  width:10% !important;
}

/* 9 1H6均线 */
#newScanTest th:nth-child(9),
#newScanTest td:nth-child(9){
  width:6% !important;
}

/* 10 1H DIF */
#newScanTest th:nth-child(10),
#newScanTest td:nth-child(10){
  width:9% !important;
}

/* 11 成交额排行 */
#newScanTest th:nth-child(11),
#newScanTest td:nth-child(11){
  width:8% !important;
}

/* 12 1H涨跌 */
#newScanTest th:nth-child(12),
#newScanTest td:nth-child(12){
  width:5% !important;
}

/* 13 日涨跌 */
#newScanTest th:nth-child(13),
#newScanTest td:nth-child(13){
  width:5% !important;
}

/* 14 周涨跌 */
#newScanTest th:nth-child(14),
#newScanTest td:nth-child(14){
  width:5% !important;
}

/* 15 月涨跌 */
#newScanTest th:nth-child(15),
#newScanTest td:nth-child(15){
  width:5% !important;
}

/* 已删除K线列 */
#newScanTest th:nth-child(n+16),
#newScanTest td:nth-child(n+16){
  display:none !important;
}

/* 单窗口模式取消固定列，避免占宽冲突 */
#newScanTest th:nth-child(1),
#newScanTest td:nth-child(1),
#newScanTest th:nth-child(2),
#newScanTest td:nth-child(2),
#newScanTest th:nth-child(3),
#newScanTest td:nth-child(3){
  position:static !important;
  left:auto !important;
}

/* 成交额保持一行 */
#newScanTest th:nth-child(11),
#newScanTest td:nth-child(11){
  white-space:nowrap !important;
}

