/* =========================================================
   V118 - Delivery Template UI ONLY
   深色：纯黑 / 大字白 / 小字灰白
   浅色：自动适配
   暂不处理接口
   ========================================================= */

html{
  --d118-bg:#000;
  --d118-card:#090a0c;
  --d118-card2:#14161a;
  --d118-card3:#1d2025;
  --d118-border:#2b2f35;
  --d118-title:#fff;
  --d118-body:#f1f2f3;
  --d118-small:#a7abb2;
  --d118-muted:#747982;
  --d118-green:#16c98a;
  --d118-red:#ff4d63;
  --d118-purple:#6c63ff;
}

html.cx-theme-light,
html[data-theme="light"],
html[data-cx-theme="light"]{
  --d118-bg:#fff;
  --d118-card:#fff;
  --d118-card2:#f4f5f7;
  --d118-card3:#eceef1;
  --d118-border:#dfe2e6;
  --d118-title:#111317;
  --d118-body:#30343a;
  --d118-small:#737981;
  --d118-muted:#9aa0a8;
  --d118-green:#0ea772;
  --d118-red:#df4155;
  --d118-purple:#6258e8;
}

body:has(.deliveryContract),
.deliveryContract{
  background:var(--d118-bg)!important;
  color:var(--d118-body)!important;
  min-height:100vh!important;
  padding-bottom:96px!important;
}

/* ===== 顶部 ===== */
.deliveryContract .contract-header{
  background:var(--d118-bg)!important;
  border-bottom:1px solid var(--d118-border)!important;
}
.deliveryContract .contract-header .pl-30.pr-30{
  padding-left:15px!important;
  padding-right:15px!important;
}
.deliveryContract .contract-header .pt-45{
  min-height:64px!important;
  padding-top:14px!important;
  padding-bottom:11px!important;
}
.deliveryContract .contract-header .font-35{
  color:var(--d118-title)!important;
  font-size:20px!important;
  line-height:24px!important;
  font-weight:850!important;
}
.deliveryContract .contract-header .ml-15{
  margin-left:8px!important;
  padding:3px 7px!important;
  border-radius:6px!important;
  background:var(--d118-card2)!important;
  color:var(--d118-small)!important;
  font-size:10px!important;
}
.deliveryContract .contract-header .pl-30.w-160{
  padding-left:10px!important;
  color:var(--d118-red)!important;
  font-size:12px!important;
  font-weight:750!important;
}

/* ===== K线大框 ===== */
.cx116-chart{
  margin:10px 14px 11px!important;
  border:1px solid var(--d118-border)!important;
  border-radius:10px!important;
  overflow:hidden!important;
  background:var(--d118-bg)!important;
}
.cx116-chart-tools{
  min-height:44px!important;
  padding:8px 10px!important;
  gap:15px!important;
  color:var(--d118-small)!important;
  font-size:10.5px!important;
}
.cx116-chart-tools .active{
  padding:5px 9px!important;
  border-radius:7px!important;
  background:var(--d118-card2)!important;
  color:var(--d118-title)!important;
  font-weight:800!important;
}
.cx116-chart-meta{
  padding:0 10px 4px!important;
  font-size:9px!important;
}
.cx116-chart-canvas{
  height:230px!important;
  background:var(--d11
}
.cx116-live{display:none!important}

/* ===== 主交易区 ===== */
.deliv
  padding:0 14px 16px!important;
  background:var(--d118-bg)!important;
}
.deliveryContract .Full-warehouse-bottom-flex,
.deliveryContract .segmentation{
  display:none!important;
}
.deliveryContract .Full-warehouse-list{
  display:grid!important;
  grid-template-columns:minmax(0,1.55fr) minmax(112px,.84fr)!important;
  gap:10px!important;
  align-items:start!important;
}

/* ===== 交易时间 4格 ===== */
.deliveryContract .Delivery-time-title{
  marg
  color:var(--d118-small)!important;
  font
}
.deliveryContract .Delivery-time-list{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:6px!important;
  margin-bottom:12px!important;
  overflow:visible!important;
}
.deliveryContract .Delivery-time-item{
  display:none!important;
}
.deliveryContract .Delivery-time-item:nth-child(-n+4){
  display:block!important;
  min-width:0!important;
  border:1px solid var(--d118-border)!important;
  border-ra
  overflow:hidden!important;
  background:var(--d118-card)!important;
}
.deliveryContract .Delivery-time-item-time{
  min-height:34px!important;
  display:flex!important;
  align-items:center!important;
  justify-conte
  background:transparent!important;
  color:var(--d118-title)!important;
  font-size:12px!important;
  font-weight:800!important;
}
.deliveryContract .Delivery-time-item-percentage{
  min-height:27px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:transparent!important;
  color:var(--d118-small)!important;
  font-size:8.8px!important;
}
.deliveryContract .Delivery-time-item:first-child{
  border-color:var(--d118-purple)!important;
  background:color-mix(in srgb,var(--d118-purple) 22%,var(--d118-card2))!important;
}

/* ===== 金额 ===== */
.cx118-ui-amount-label{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin:2px 0 7px;
  color:var(--d118-small);
  font-size:10.5px;
}
.deliveryContract .Delivery-time-input{
  margin-bottom:7px!important;
}
.deliveryContract .Delivery-time-input .van-cell{
  min-heigh
  padding:0 11px!important;
  border:1px solid var(--d118-border)!important;
  border-radius:8px!important;
  background:var(--d118-card)!important;
}
.deliveryContract .Delivery-time-input input{
  color:var(--d118-title)!important;
  font-size:13px!important;
}
.deliveryContract .Delivery-time-input input::placeholder{
  color:var(--d118-muted)!important;
}
.deliveryContract .Delivery-time-input-text{
  color:var(--d118-small)!important;
  font-size:11px!important;
}

/* ===== 金额快捷按钮：仅UI ===== */
.cx118-ui-presets{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:5px;
  margin-bottom:8px;
}
.cx118-ui-preset{
  height:28px;
  border:1px solid var(--d118-border);
  border-radius:6px;
  background:var(--d118-card2);
  color:var(--d118-body);
  font-size:10px;
}

/* ===== 看涨看跌 ===== */
.cx116-direction{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:8px!important;
  margin-bottom:8px!important;
}
.deliveryContract .Delivery-time-open-more{
  min-height:48px!important;
  margin:0!important;
  border:0!important;
  border-radius:9px!important;
  background:var(--d118-green)!important;
  color:#fff!important;
}
.deliveryContract .Delivery-time-open-more-red{
  background:var(--d118-red)!important;
}
.deliveryContract .Delivery-time-open-more-text{
  color:#fff!important;
  font-size:14px!important;
  font-weight:850!important;
}
.deliveryContract .Delivery-time-open-more-text2{
  color:rgba(255,255,255,.84)!important;
  font-size:9px!important;
}

/* ===== 立即购买：当前只做模板样式 ===== */
.cx116-buy-now{
  display:block!important;
  width:100%!important;
  height:48px!important;
  margin:0 0 9px!important;
  border:0!important;
  border-radius:8px!important;
  background:var(--d118-purple)!important;
  color:#fff!important;
  font-size:14px!important;
  font-weight:800!important;
  opacity:.92!important;
  pointer-events:none!important; /* 接口后再开启 */
}

/* ===== 手续费 ===== */
.deliveryContract .handling-fee{
  margin-top:9px!important;
  color:var(--d118-small)!important;
  font-size:10.5px!important;
}

/* ===== 右侧盘口 ===== */
.deliveryContract .price{
  min-width:0!important;
  padding-left:8px!important;
  border-left:1px solid var(--d118-border)!important;
}
.deliveryContract .price-text,
.deliveryContract .quantity,
.deliveryContract .unit-text,
.deliveryContract .unit-text2{
  color:var(--d118-muted)!important;
  font-size:9.5px!important;
}
.deliveryContract .price-item{
  min-height:23px!important;
}
.deliveryContract .price-item-text{
  color:var(--d118-green)!important;
  font-size:11px!important;
}
.deliveryContract .price-item-text-red{
  color:var(--d118-red)!important;
}
.deliveryContract .price-item-text2{
  color:var(--d118-small)!important;
  font-size:9.5px!important;
}
.deliveryContract .price-content-title{
  color:var(--d118-green)!important;
  font-size:17px!important;
  line-height:22px!important;
  font-weight:850!important;
}

/* ===== 底部仓位 ===== */
.deliveryContract .position{
  min-height:170px!important;
  border-top:1px solid var(--d118-border)!important;
  background:var(--d118-bg)!important;
}

/* ===== 主题切换 ===== */
.deliveryContract,
.cx116-chart,
.deliveryContract .Delivery-time-item,
.deliveryContract .Delivery-time-input .van-cell,
.deliveryContract .Delivery-time-open-more,
.cx116-buy-now{
  transition:background-color .14s ease,color .14s ease,border-color .14s ease!important;
}

@media(max-width:390px){
  .cx116-chart-canvas{height:205px!important}
  .deliveryContract .Full-warehouse-list{
    grid-template-columns:minmax(0,1.47fr) minmax(105px,.84fr)!important;
    gap:9px!important;
  }
  .deliveryContract .Delivery-time-list{gap:5px!important}
  .deliveryContract .Delivery-time-item-time{font-size:11px!important}
}
