/* =========================================================
   V99
   只把“原四个小卡片位置”改为真实行情小卡片轮播
   数据来自原 quote-list / quote-row
   其他首页结构不动
   ========================================================= */

.cx99-mini-carousel{
  width:100%;
  margin:16px 0 14px;
  padding:0 14px 4px;
  box-sizing:border-box;
  overflow-x:auto;
  overflow-y:hidden;
  display:flex;
  flex-wrap:nowrap;
  gap:8px;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}

.cx99-mini-carousel::-webkit-scrollbar{
  display:none;
}

.cx99-mini-card{
  position:relative;
  flex:0 0 calc((100% - 24px)/4);
  width:calc((100% - 24px)/4);
  min-width:0;
  height:96px;
  padding:10px 8px;
  box-sizing:border-box;
  border-radius:13px;
  background:var(--cx-surface,#17191d);
  border:1px solid var(--cx-border,#25282f);
  color:var(--cx-text,#f5f6f7);
  overflow:hidden;
  cursor:pointer;
  scroll-snap-align:start;
  scroll-snap-stop:always;
  animation:none!important;
  transition:none!important;
}

.cx99-name{
  display:flex;
  align-items:center;
  gap:6px;
  min-width:0;
}

.cx99-name img{
  width:22px;
  height:22px;
  min-width:22px;
  border-radius:50%;
  object-fit:cover;
}

.cx99-name strong{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--cx-text,#f5f6f7);
  font-size:11px;
  line-height:15px;
  font-weight:800;
}

.cx99-volume{
  margin-top:3px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--cx-text-3,#8f949d);
  font-size:8px;
  line-height:11px;
}

.cx99-price{
  margin-top:10px;
  color:var(--cx-text,#f5f6f7);
  font-size:13px;
  line-height:17px;
  font-weight:850;
  font-variant-numeric:tabular-nums;
}

.cx99-change{
  margin-top:2px;
  font-size:10px;
  line-height:13px;
  font-weight:800;
}

.cx99-up{color:var(--cx-green,#10c79a)!important}
.cx99-down{color:var(--cx-red,#ff4d57)!important}

/* 四卡位滚动时依然保持紧凑 */
@media(max-width:390px){
  .cx99-mini-carousel{
    gap:6px;
    padding-left:12px;
    padding-right:12px;
  }

  .cx99-mini-card{
    flex-basis:calc((100% - 18px)/4);
    width:calc((100% - 18px)/4);
    height:90px;
    padding:9px 7px;
  }

  .cx99-name img{
    width:20px;
    height:20px;
    min-width:20px;
  }

  .cx99-name strong{
    font-size:10px;
  }

  .cx99-price{
    font-size:12px;
  }

  .cx99-change{
    font-size:9px;
  }
}

/* 隐藏旧 V92/V94/V95 的四个小卡片显示层，但不删其他区域 */
.cx92-mini-market,
.cx94-mini-market,
.cx95-mini{
  display:none!important;
}
