:root{--bg:#071019;--panel:#0c1823;--panel2:#101f2b;--line:#294155;--text:#e7f0f7;--muted:#91a5b5;--blue:#2f80ed;--red:#ff6673;--green:#42db90;--gold:#f3bf4b}*{box-sizing:border-box}html,body{margin:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;font-size:13px}body{overflow-x:hidden}.topbar{position:sticky;top:0;z-index:40;display:flex;justify-content:space-between;align-items:center;padding:9px 11px;background:#08131d;border-bottom:1px solid var(--line)}.brand{font-size:18px;font-weight:900}.brand span{display:inline-block;font-size:11px;background:#133b5b;color:#75c8ff;border-radius:7px;padding:3px 6px;margin-left:4px}.sub{font-size:10px;color:var(--muted);margin-top:2px}.iconbtn{width:48px;height:42px;border:1px solid #31506a;border-radius:10px;background:#0f2130;color:#7ed6ff;font-size:18px}.iconbtn small{display:block;font-size:9px;color:#dbe8f2}main{padding:7px}.panel{border:1px solid var(--line);border-radius:11px;background:var(--panel);padding:8px;margin-bottom:7px}.section-title{font-size:11px;color:#91adc1;font-weight:800;margin-bottom:7px}.search-row{display:grid;grid-template-columns:minmax(160px,1fr) auto auto;gap:5px}.search-row input{min-width:0;border:1px solid #31506a;border-radius:8px;background:#08141e;color:var(--text);padding:10px;font-size:14px}.search-row button,.rank-scroll button{border:1px solid #31506a;border-radius:8px;background:#102334;color:#dcebf6;padding:9px 10px;font-weight:800;white-space:nowrap}.search-row .primary{background:#174c78;color:#fff}.chips{display:flex;gap:5px;margin-top:7px;overflow-x:auto;padding-bottom:1px}.chip{display:inline-flex;align-items:center;white-space:nowrap;text-decoration:none;border:1px solid #31506a;border-radius:8px;background:#102334;color:#dcebf6;padding:8px 10px;font-weight:800}.chip.blue{color:#79d4ff}.chip.gold{color:#ffd166}.breadth-grid{display:grid;grid-template-columns:repeat(4,minmax(112px,1fr));gap:5px;overflow-x:auto}.metric{border:1px solid #294155;border-radius:9px;padding:8px 9px;min-width:112px}.metric span{display:block;color:#8fa7b8;font-size:10px}.metric b{display:block;font-size:17px;margin-top:3px}.metric.long{background:#28171c}.metric.long b{color:var(--red)}.metric.short{background:#13251e}.metric.short b{color:var(--green)}.metric.neutral{background:#152431}.metric.neutral b{color:#8fb8db}.metric.ratio{background:#111c27}.metric.ratio b{font-size:12px;color:#ffd37a}.note{font-size:9px;color:#7892a5;margin-top:6px}.rank-scroll{display:flex;gap:5px;overflow-x:auto}.legend{display:flex;gap:12px;flex-wrap:wrap;font-size:10px;font-weight:800}.up{color:var(--red)}.down{color:var(--green)}.range{color:#65a9ff}.progress{height:3px;background:#132331;margin:7px 0 5px}.progress i{display:block;width:100%;height:100%;background:#2f80ed}.status-panel #status{font-size:9px;color:#7892a5}.table-panel{border:1px solid var(--line);border-radius:10px;background:#08141e;overflow:hidden}.table-title{display:flex;justify-content:space-between;align-items:center;padding:8px 9px;border-bottom:1px solid var(--line);font-size:11px}.table-title span{color:#7791a4;margin-left:5px;font-size:9px}.table-title em{font-style:normal;color:#7791a4;font-size:9px}.table-wrap{overflow:auto;max-height:calc(100vh - 330px);-webkit-overflow-scrolling:touch}table{border-collapse:separate;border-spacing:0;min-width:1580px;width:max-content;font-size:10px}th,td{height:31px;padding:5px 7px;text-align:center;white-space:nowrap;border-right:1px solid #203545;border-bottom:1px solid #1d3040;background:#091721}th{position:sticky;top:0;z-index:12;background:#112434;color:#dce7f2;font-weight:900}tbody tr.long-row td{background:#241419;color:#ff7a85}tbody tr.short-row td{background:#10231c;color:#51e29b}tbody tr.range-row td{color:#75b8ff}.fix-no,.fix-fav,.fix-symbol{position:sticky;z-index:20}.fix-no{left:0;width:42px;min-width:42px}.fix-fav{left:42px;width:48px;min-width:48px}.fix-symbol{left:90px;width:132px;min-width:132px;text-align:left}thead .fix-no,thead .fix-fav,thead .fix-symbol{z-index:30}.symbol-cell{font-weight:900;text-align:left}.favbtn,.detailbtn{border:1px solid #31506a;background:#102334;color:#dcebf6;border-radius:7px;padding:5px 7px}.favbtn.on{color:#ffd166}.signal-head small{display:block;color:#6ca9d2;font-size:8px}.sig{font-weight:900}.sig.long{color:#ff7a85}.sig.short{color:#51e29b}.modal{position:fixed;inset:0;background:#000a;z-index:100;display:flex;align-items:flex-end;justify-content:center}.hidden{display:none}.modal-card{width:100%;max-height:88vh;overflow:auto;background:#071019;border:1px solid #31506a;border-radius:15px 15px 0 0;padding:10px}.modal-head{position:sticky;top:0;z-index:5;display:flex;justify-content:space-between;align-items:center;background:#071019;padding:6px 2px 10px}.modal-head b{display:block;font-size:17px}.modal-head span{font-size:11px;color:#8fa7b8}.modal-head button{width:35px;height:35px;border-radius:9px;border:1px solid #31506a;background:#102334;color:#fff;font-size:22px}.detail-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:6px}.detail-card{background:#0d1923;border:1px solid #294155;border-radius:9px;padding:9px}.detail-card span{font-size:9px;color:#8fa7b8}.detail-card b{display:block;margin-top:3px}.edge-card{margin-top:7px;background:#101f2b;border:1px solid #294155;border-radius:9px;padding:10px;line-height:1.8}.detail-table{width:100%;min-width:620px;margin-top:8px;font-size:10px}.detail-tabs{display:flex;gap:5px;margin:8px 0}.detail-tabs button{border:1px solid #31506a;background:#102334;color:#dcebf6;border-radius:7px;padding:7px 10px}.detail-tabs button.on{background:#174c78}@media(max-width:700px){.brand{font-size:16px}.sub{max-width:290px}.breadth-grid{grid-template-columns:repeat(4,122px)}.table-wrap{max-height:calc(100vh - 345px)}.search-row{grid-template-columns:minmax(130px,1fr) auto auto}.search-row button{padding:8px 7px;font-size:11px}}

/* V4.6.2 algorithm-field sync */

/* V4.6.3 synchronization feedback */
#breadthRatio{font-variant-numeric:tabular-nums}
.syncing{opacity:.78}

/* V4.6.4 ACTIVE snapshot mode */
#status{font-variant-numeric:tabular-nums}

/* =========================================================
   V4.6.5 手机四卡适配微调
   只调整“当前行情 · 日K MA20 市场宽度”四张卡片。
   ========================================================= */
@media (max-width:700px){
  .breadth-panel{
    padding:7px 7px 6px;
  }

  .breadth-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:4px;
    overflow:visible;
    width:100%;
  }

  .metric{
    min-width:0;
    width:100%;
    padding:6px 5px;
    border-radius:8px;
    overflow:hidden;
  }

  .metric span{
    font-size:9px;
    line-height:1.15;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .metric b{
    font-size:15px;
    line-height:1.2;
    margin-top:3px;
    white-space:nowrap;
  }

  .metric.ratio{
    padding-left:5px;
    padding-right:4px;
  }

  .metric.ratio b{
    font-size:9.5px;
    line-height:1.25;
    white-space:normal;
    overflow-wrap:anywhere;
  }

  .breadth-panel .note{
    margin-top:5px;
    font-size:8px;
    line-height:1.35;
  }
}

@media (max-width:390px){
  .breadth-grid{gap:3px}
  .metric{padding:5px 4px}
  .metric span{font-size:8.5px}
  .metric b{font-size:14px}
  .metric.ratio b{font-size:9px}
}

/* V4.6.6 fast bootstrap; V4.6.5 four-card mobile sizing retained. */

/* V4.6.7 MA20 desktop parity; UI unchanged. */

/* V4.6.8: refresh behavior changed; layout unchanged. */


/* V4.6.8B：仅移动刷新按钮，V4.6.8快速刷新逻辑保持不变 */
.rank-scroll .rank-refresh{
  color:#79d4ff;
  border-color:#315b78;
  background:#0f2636;
}

.rank-scroll .rank-refresh:active{
  background:#174c78;
  color:#fff;
}

@media(max-width:700px){
  .rank-scroll{
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:4px;
    overflow:visible;
    width:100%;
  }

  .rank-scroll button{
    min-width:0;
    width:100%;
    padding:8px 4px;
    font-size:10.5px;
    border-radius:8px;
  }
}

@media(max-width:390px){
  .rank-scroll{
    gap:3px;
  }

  .rank-scroll button{
    padding:7px 2px;
    font-size:10px;
  }
}

/* V4.6.8C: 点击刷新后，行情时间即时更新；结构快照时间独立保留。 */


/* =========================================================
   V4.6.8D
   1) 整行颜色只看日K MA20
   2) 手机主表行高进一步压缩
   3) 市场排序使用说明
   ========================================================= */

/* 彻底覆盖旧的结构/趋势行背景 */
.market-table tbody tr,
table.market-table tbody tr,
#marketTable tbody tr{
  background:#0b1822 !important;
}

/* MA20多头：整行红色 */
.market-table tbody tr.row-ma20-long,
table.market-table tbody tr.row-ma20-long,
#marketTable tbody tr.row-ma20-long{
  background:#2a151b !important;
  color:#ff7580 !important;
}

/* MA20空头：整行绿色 */
.market-table tbody tr.row-ma20-short,
table.market-table tbody tr.row-ma20-short,
#marketTable tbody tr.row-ma20-short{
  background:#0d261d !important;
  color:#45dc95 !important;
}

/* 无MA20/临界 */
.market-table tbody tr.row-ma20-neutral,
table.market-table tbody tr.row-ma20-neutral,
#marketTable tbody tr.row-ma20-neutral{
  background:#0c1923 !important;
  color:#8fa8bd !important;
}


/* MA20栏文字明确：
   多头=红，空头=绿 */
.market-table tbody tr.row-ma20-long td:nth-child(7),
#marketTable tbody tr.row-ma20-long td:nth-child(7){
  color:#ff6d79 !important;
  font-weight:700;
}

.market-table tbody tr.row-ma20-short td:nth-child(7),
#marketTable tbody tr.row-ma20-short td:nth-child(7){
  color:#42df94 !important;
  font-weight:700;
}

/* 手机主表压缩行高，币种区域能多显示几行 */
@media(max-width:700px){
  .market-table tbody td,
  #marketTable tbody td{
    padding-top:5px !important;
    padding-bottom:5px !important;
    line-height:1.08 !important;
    height:auto !important;
  }

  .market-table tbody tr,
  #marketTable tbody tr{
    height:36px !important;
    min-height:36px !important;
  }

  .market-table .fav-btn,
  #marketTable .fav-btn{
    width:28px !important;
    height:28px !important;
    min-width:28px !important;
    padding:0 !important;
  }

  .market-table td:nth-child(3),
  #marketTable td:nth-child(3){
    font-size:11px !important;
    font-weight:700;
  }

  .ma20-usage-note{
    margin:7px 2px 0;
    padding:7px 8px;
    border:1px solid #29485f;
    border-radius:8px;
    background:#0c1b26;
    color:#89bad9;
    font-size:10px;
    line-height:1.35;
    text-align:center;
    white-space:normal;
  }
}

@media(max-width:390px){
  .market-table tbody td,
  #marketTable tbody td{
    padding-top:4px !important;
    padding-bottom:4px !important;
  }

  .market-table tbody tr,
  #marketTable tbody tr{
    height:34px !important;
    min-height:34px !important;
  }

  .ma20-usage-note{
    font-size:9.5px;
    padding:6px 6px;
  }
}


/* =========================================================
   V4.6.8E 主表列宽精调
   目标：减少币种 -> 最新价之间的大空隙，同时保留信号可读性。
   仅调整UI尺寸，不改任何交易逻辑。
   ========================================================= */

@media(max-width:700px){

  /* 主表采用更紧凑的固定列宽 */
  .market-table,
  #marketTable{
    table-layout:fixed !important;
  }

  /* 编号 */
  .market-table th:nth-child(1),
  .market-table td:nth-child(1),
  #marketTable th:nth-child(1),
  #marketTable td:nth-child(1){
    width:38px !important;
    min-width:38px !important;
    max-width:38px !important;
  }

  /* 收藏 */
  .market-table th:nth-child(2),
  .market-table td:nth-child(2),
  #marketTable th:nth-child(2),
  #marketTable td:nth-child(2){
    width:48px !important;
    min-width:48px !important;
    max-width:48px !important;
  }

  /* 币种：重点收紧 */
  .market-table th:nth-child(3),
  .market-table td:nth-child(3),
  #marketTable th:nth-child(3),
  #marketTable td:nth-child(3){
    width:92px !important;
    min-width:92px !important;
    max-width:92px !important;
    padding-left:6px !important;
    padding-right:6px !important;
    text-align:left !important;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  /* 最新价：去掉大面积留白 */
  .market-table th:nth-child(4),
  .market-table td:nth-child(4),
  #marketTable th:nth-child(4),
  #marketTable td:nth-child(4){
    width:92px !important;
    min-width:92px !important;
    max-width:92px !important;
    padding-left:5px !important;
    padding-right:5px !important;
    text-align:right !important;
    font-variant-numeric:tabular-nums;
  }

  /* 日K结构 */
  .market-table th:nth-child(5),
  .market-table td:nth-child(5),
  #marketTable th:nth-child(5),
  #marketTable td:nth-child(5){
    width:96px !important;
    min-width:96px !important;
    max-width:96px !important;
  }

  /* 日K重叠 */
  .market-table th:nth-child(6),
  .market-table td:nth-child(6),
  #marketTable th:nth-child(6),
  #marketTable td:nth-child(6){
    width:58px !important;
    min-width:58px !important;
    max-width:58px !important;
  }

  /* 日K MA20 */
  .market-table th:nth-child(7),
  .market-table td:nth-child(7),
  #marketTable th:nth-child(7),
  #marketTable td:nth-child(7){
    width:88px !important;
    min-width:88px !important;
    max-width:88px !important;
  }

  /* 1H重叠 */
  .market-table th:nth-child(8),
  .market-table td:nth-child(8),
  #marketTable th:nth-child(8),
  #marketTable td:nth-child(8){
    width:58px !important;
    min-width:58px !important;
    max-width:58px !important;
  }

  /* 1H趋势 */
  .market-table th:nth-child(9),
  .market-table td:nth-child(9),
  #marketTable th:nth-child(9),
  #marketTable td:nth-child(9){
    width:82px !important;
    min-width:82px !important;
    max-width:82px !important;
  }

  /* 15M重叠 */
  .market-table th:nth-child(10),
  .market-table td:nth-child(10),
  #marketTable th:nth-child(10),
  #marketTable td:nth-child(10){
    width:62px !important;
    min-width:62px !important;
    max-width:62px !important;
  }

  /* 1H信号：时间信息要留空间 */
  .market-table th:nth-child(11),
  .market-table td:nth-child(11),
  #marketTable th:nth-child(11),
  #marketTable td:nth-child(11){
    width:142px !important;
    min-width:142px !important;
    max-width:142px !important;
  }

  /* 5M信号 */
  .market-table th:nth-child(12),
  .market-table td:nth-child(12),
  #marketTable th:nth-child(12),
  #marketTable td:nth-child(12){
    width:142px !important;
    min-width:142px !important;
    max-width:142px !important;
  }

  /* 成交额排行 */
  .market-table th:nth-child(13),
  .market-table td:nth-child(13),
  #marketTable th:nth-child(13),
  #marketTable td:nth-child(13){
    width:104px !important;
    min-width:104px !important;
    max-width:104px !important;
  }

  /* 日/周/月 */
  .market-table th:nth-child(14),
  .market-table td:nth-child(14),
  #marketTable th:nth-child(14),
  #marketTable td:nth-child(14),
  .market-table th:nth-child(15),
  .market-table td:nth-child(15),
  #marketTable th:nth-child(15),
  #marketTable td:nth-child(15),
  .market-table th:nth-child(16),
  .market-table td:nth-child(16),
  #marketTable th:nth-child(16),
  #marketTable td:nth-child(16){
    width:68px !important;
    min-width:68px !important;
    max-width:68px !important;
  }

  /* 详情 */
  .market-table th:nth-child(17),
  .market-table td:nth-child(17),
  #marketTable th:nth-child(17),
  #marketTable td:nth-child(17){
    width:62px !important;
    min-width:62px !important;
    max-width:62px !important;
  }

  /* 所有单元格整体再收紧一点 */
  .market-table th,
  .market-table td,
  #marketTable th,
  #marketTable td{
    padding-left:4px !important;
    padding-right:4px !important;
  }
}

@media(max-width:390px){
  .market-table th:nth-child(3),
  .market-table td:nth-child(3),
  #marketTable th:nth-child(3),
  #marketTable td:nth-child(3){
    width:88px !important;
    min-width:88px !important;
    max-width:88px !important;
  }

  .market-table th:nth-child(4),
  .market-table td:nth-child(4),
  #marketTable th:nth-child(4),
  #marketTable td:nth-child(4){
    width:88px !important;
    min-width:88px !important;
    max-width:88px !important;
  }
}

/* V4.6.9 actual-table MA20-only row coloring */
.table-wrap tbody tr.long-row>td,.table-wrap tbody tr.short-row>td,.table-wrap tbody tr.range-row>td{background:#091721!important;color:inherit}
.table-wrap tbody tr.row-ma20-long>td{background:#2a151b!important;color:#ff7883!important}
.table-wrap tbody tr.row-ma20-short>td{background:#0d261d!important;color:#48df98!important}
.table-wrap tbody tr.row-ma20-neutral>td{background:#091721!important;color:#9aafbf!important}
.table-wrap tbody tr.row-ma20-long>td.fix-no,.table-wrap tbody tr.row-ma20-long>td.fix-fav,.table-wrap tbody tr.row-ma20-long>td.fix-symbol{background:#2a151b!important}
.table-wrap tbody tr.row-ma20-short>td.fix-no,.table-wrap tbody tr.row-ma20-short>td.fix-fav,.table-wrap tbody tr.row-ma20-short>td.fix-symbol{background:#0d261d!important}
.table-wrap tbody tr.row-ma20-neutral>td.fix-no,.table-wrap tbody tr.row-ma20-neutral>td.fix-fav,.table-wrap tbody tr.row-ma20-neutral>td.fix-symbol{background:#091721!important}
.table-wrap tbody tr.row-ma20-long>td:nth-child(7){color:#ff6673!important;font-weight:900!important}
.table-wrap tbody tr.row-ma20-short>td:nth-child(7){color:#42db90!important;font-weight:900!important}
.table-wrap tbody tr.row-ma20-long>td.fix-symbol{color:#ff7883!important}.table-wrap tbody tr.row-ma20-short>td.fix-symbol{color:#48df98!important}


/* =========================================================
   V4.6.9A 主表列距紧凑优化
   直接命中真实 .table-wrap table，解决币种与最新价之间空隙过大。
   只调整UI尺寸，不改任何交易逻辑。
   ========================================================= */

@media(max-width:700px){

  /* 总表宽度适当压缩，仍保留横向滑动 */
  .table-wrap table{
    table-layout:fixed !important;
    min-width:1390px !important;
    width:1390px !important;
  }

  /* 所有格子统一更紧凑 */
  .table-wrap th,
  .table-wrap td{
    padding-left:4px !important;
    padding-right:4px !important;
  }

  /* 1 编号 */
  .table-wrap th:nth-child(1),
  .table-wrap td:nth-child(1){
    width:38px !important;
    min-width:38px !important;
    max-width:38px !important;
  }

  /* 2 收藏 */
  .table-wrap th:nth-child(2),
  .table-wrap td:nth-child(2){
    width:44px !important;
    min-width:44px !important;
    max-width:44px !important;
  }

  /* 3 币种：从原132px压到84px */
  .table-wrap th:nth-child(3),
  .table-wrap td:nth-child(3){
    width:84px !important;
    min-width:84px !important;
    max-width:84px !important;
    padding-left:6px !important;
    padding-right:4px !important;
    text-align:left !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
  }

  /* 固定左三列位置重新计算：38 + 44 */
  .table-wrap .fix-no{
    left:0 !important;
    width:38px !important;
    min-width:38px !important;
    max-width:38px !important;
  }

  .table-wrap .fix-fav{
    left:38px !important;
    width:44px !important;
    min-width:44px !important;
    max-width:44px !important;
  }

  .table-wrap .fix-symbol{
    left:82px !important;
    width:84px !important;
    min-width:84px !important;
    max-width:84px !important;
    padding-left:6px !important;
    padding-right:4px !important;
    border-right:1px solid #294155 !important;
    box-shadow:3px 0 5px rgba(0,0,0,.22) !important;
  }

  /* 4 最新价：紧贴币种后面，右对齐 */
  .table-wrap th:nth-child(4),
  .table-wrap td:nth-child(4){
    width:92px !important;
    min-width:92px !important;
    max-width:92px !important;
    text-align:right !important;
    padding-left:4px !important;
    padding-right:7px !important;
    font-variant-numeric:tabular-nums !important;
  }

  /* 5 日K结构 */
  .table-wrap th:nth-child(5),
  .table-wrap td:nth-child(5){
    width:94px !important;
    min-width:94px !important;
    max-width:94px !important;
  }

  /* 6 日K重叠 */
  .table-wrap th:nth-child(6),
  .table-wrap td:nth-child(6){
    width:56px !important;
    min-width:56px !important;
    max-width:56px !important;
  }

  /* 7 日K MA20 */
  .table-wrap th:nth-child(7),
  .table-wrap td:nth-child(7){
    width:88px !important;
    min-width:88px !important;
    max-width:88px !important;
  }

  /* 8 1H重叠 */
  .table-wrap th:nth-child(8),
  .table-wrap td:nth-child(8){
    width:56px !important;
    min-width:56px !important;
    max-width:56px !important;
  }

  /* 9 1H趋势 */
  .table-wrap th:nth-child(9),
  .table-wrap td:nth-child(9){
    width:80px !important;
    min-width:80px !important;
    max-width:80px !important;
  }

  /* 10 15M重叠 */
  .table-wrap th:nth-child(10),
  .table-wrap td:nth-child(10){
    width:58px !important;
    min-width:58px !important;
    max-width:58px !important;
  }

  /* 11 / 12 信号：不压得过头，时间需要完整 */
  .table-wrap th:nth-child(11),
  .table-wrap td:nth-child(11),
  .table-wrap th:nth-child(12),
  .table-wrap td:nth-child(12){
    width:138px !important;
    min-width:138px !important;
    max-width:138px !important;
  }

  /* 13 成交额排行 */
  .table-wrap th:nth-child(13),
  .table-wrap td:nth-child(13){
    width:104px !important;
    min-width:104px !important;
    max-width:104px !important;
  }

  /* 14/15/16 日周月 */
  .table-wrap th:nth-child(14),
  .table-wrap td:nth-child(14),
  .table-wrap th:nth-child(15),
  .table-wrap td:nth-child(15),
  .table-wrap th:nth-child(16),
  .table-wrap td:nth-child(16){
    width:66px !important;
    min-width:66px !important;
    max-width:66px !important;
  }

  /* 17 详情 */
  .table-wrap th:nth-child(17),
  .table-wrap td:nth-child(17){
    width:60px !important;
    min-width:60px !important;
    max-width:60px !important;
  }

  /* 收藏按钮也微收一点 */
  .table-wrap .favbtn{
    min-width:30px !important;
    width:30px !important;
    height:30px !important;
    padding:0 !important;
  }
}

@media(max-width:390px){
  .table-wrap th:nth-child(3),
  .table-wrap td:nth-child(3),
  .table-wrap .fix-symbol{
    width:80px !important;
    min-width:80px !important;
    max-width:80px !important;
  }

  .table-wrap th:nth-child(4),
  .table-wrap td:nth-child(4){
    width:88px !important;
    min-width:88px !important;
    max-width:88px !important;
  }
}

/* V4.7.0: 全市场1H WebSocket实时结构；UI沿用V4.6.9A。 */

/* V4.7.1 全市场1H快速追平：UI沿用V4.7.0C。 */

/* V4.7.2: 电脑版同源1H完整600根缓存；UI保持不变。 */

/* V4.7.2A: 清理旧1H DO状态后按电脑版同源600根缓存重建。 */

/* V4.7.2B Cron强制建库 + WebSocket诊断；交易UI不变。 */

/* V4.7.2C: 修复OKX WebSocket订阅ID格式；交易UI不变。 */

/* V4.8.0 Workers Paid 四分片H1永久缓存；交易UI保持不变。 */


/* V5.0.1 desktop-box sync: 日涨跌家数 + 1H结构 + 1H涨跌 */
.breadth-grid{grid-template-columns:repeat(6,minmax(112px,1fr))}
.metric.day-up{background:#28171c}.metric.day-up b{color:var(--red);font-size:14px}
.metric.day-down{background:#13251e}.metric.day-down b{color:var(--green);font-size:14px}
@media(max-width:700px){
  .breadth-grid{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:5px;
  }
}
/* 新增两列后主表总宽度稍加宽，保持电脑端可读 */
#marketTable{min-width:1760px}


/* mobile-column-fix-20260827：当前表格共19列，手机端列宽重新对齐 */
@media (max-width:700px){
  .table-wrap th:nth-child(11),
  .table-wrap td:nth-child(11){
    width:58px !important;
    min-width:58px !important;
  }

  .table-wrap th:nth-child(12),
  .table-wrap td:nth-child(12),
  .table-wrap th:nth-child(13),
  .table-wrap td:nth-child(13){
    width:150px !important;
    min-width:150px !important;
  }

  .table-wrap td:nth-child(12),
  .table-wrap td:nth-child(13){
    white-space:normal !important;
    word-break:break-word !important;
    line-height:1.3 !important;
  }

  .table-wrap th:nth-child(14),
  .table-wrap td:nth-child(14){
    width:104px !important;
    min-width:104px !important;
  }

  .table-wrap th:nth-child(15),
  .table-wrap td:nth-child(15),
  .table-wrap th:nth-child(16),
  .table-wrap td:nth-child(16),
  .table-wrap th:nth-child(17),
  .table-wrap td:nth-child(17),
  .table-wrap th:nth-child(18),
  .table-wrap td:nth-child(18){
    width:68px !important;
    min-width:68px !important;
    white-space:nowrap !important;
  }

  .table-wrap th:nth-child(19),
  .table-wrap td:nth-child(19){
    width:62px !important;
    min-width:62px !important;
  }
}
