/* r27：五套版式列表字体更饱满 + 运营商透明水印 */
html body .ncard { position: relative; }

/* 号码卡运营商透明 Logo（移动/联通/电信/广电/民营） */
.nc-op-wm {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 62px;
  max-height: 34px;
  transform: translate(-50%, -50%);
  object-fit: contain;
  opacity: .16;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
/* 有真实水印图时不再叠加旧的伪元素水印，避免重影 */
html body .ncard:has(> .nc-op-wm)::before { display: none !important; }
html body[data-theme="blackgold"] .nc-op-wm {
  filter: none;
  mix-blend-mode: screen;
  opacity: .24;
  width: 44px;
  max-height: 25px;
}
html body .ncard.op-vno::before { opacity: .1 !important; font-size: 20px !important; }

/* 文字压在 Logo 上方，保证号码与价格清晰 */
html body[data-layout] .ncard > .nc-num,
html body[data-layout] .ncard > .nc-sub,
html body[data-layout] .ncard > .nc-left,
html body[data-layout] .ncard > .nc-row,
html body[data-layout] .ncard > .nc-meta,
html body[data-layout] .ncard > .nc-right {
  position: relative;
  z-index: 1;
}

/* 双列 / 单列号码卡：号码明显放大，归属地和价格同步提升 */
html body[data-layout] :is(.list-grid,.grp-grid,.fav-sec,.lay-grid) .ncard .nc-num {
  font-size: clamp(16px, 4.7vw, 19.5px) !important;
  line-height: 1.14 !important;
  letter-spacing: 0 !important;
}
html body[data-layout] :is(.list-grid,.grp-grid,.fav-sec,.lay-grid) .ncard .nc-loc {
  font-size: clamp(11.5px, 3.2vw, 13.5px) !important;
  line-height: 1.35 !important;
  padding: 1px 7px !important;
}
html body[data-layout] :is(.list-grid,.grp-grid,.fav-sec,.lay-grid) .ncard .nc-sub .nc-price,
html body[data-layout] :is(.list-grid,.grp-grid,.fav-sec,.lay-grid) .ncard .nc-price,
html body[data-layout] :is(.list-grid,.grp-grid,.fav-sec,.lay-grid) .ncard .nc-price.ask,
html body[data-layout] :is(.list-grid,.grp-grid,.fav-sec,.lay-grid) .ncard .nc-price.ask span {
  font-size: clamp(13px, 3.6vw, 15px) !important;
  line-height: 1.2 !important;
  padding: 2px 7px !important;
}
html body[data-layout] :is(.list-grid,.grp-grid,.fav-sec,.lay-grid) .ncard .nc-pin,
html body[data-layout] :is(.list-grid,.grp-grid,.fav-sec,.lay-grid) .ncard .nc-special {
  font-size: 9.5px !important;
  line-height: 15px !important;
  padding: 0 5px !important;
}

html body[data-layout] :is(.list-grid,.grp-grid,.fav-sec,.lay-grid) .ncard .nc-price.ask span,
html body[data-layout] :is(.list-grid,.grp-grid,.fav-sec,.lay-grid) .ncard .nc-price.ask,
html body[data-layout] .ncard .nc-sub .nc-price.ask,
html body[data-layout] .ncard .nc-sub .nc-price.ask span {
  font-size: 15px !important;
  line-height: 1.2 !important;
}

/* 表格版式同样放大，行高略收紧 */
html body[data-layout="table"] .ncard .nc-num {
  font-size: clamp(16px, 4.4vw, 19px) !important;
  line-height: 1.16 !important;
}
html body[data-layout="table"] .ncard .nc-loc { font-size: 12.5px !important; }
html body[data-layout="table"] .ncard .nc-price { font-size: 14.5px !important; }

/* 分类/推荐/规则：压缩卡片上下留白，字号占比更高 */
html body[data-layout] .lay-grid .ncard {
  min-height: 62px !important;
  padding: 7px 7px 8px !important;
  gap: 2px !important;
}
html body[data-layout] .lay-grid .ncard.has-marks { padding-top: 21px !important; }
html body[data-layout] .lay-grid .ncard .nc-sub { margin-top: 2px !important; gap: 3px 6px !important; }
html body[data-layout] .lay-grid { gap: 6px !important; }

/* 分类/推荐/规则标题与“更多号码”稍放大 */
html body[data-layout] .lay-title b { font-size: 16.5px !important; }
html body[data-layout] .lay-more { font-size: 12.5px !important; }

/* 安卓窄屏：保持双列，进一步收紧边距；超窄屏才单列 */
@media (max-width: 520px) {
  html body[data-layout] .lay-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 5px !important;
  }
  html body[data-layout] .lay-grid .ncard {
    min-height: 60px !important;
    padding: 6px 5px 7px !important;
  }
  html body[data-layout] .lay-grid .ncard.has-marks { padding-top: 20px !important; }
  html body[data-layout] .lay-grid .ncard .nc-num {
    font-size: clamp(15.5px, 4.6vw, 18px) !important;
    letter-spacing: 0 !important;
  }
  html body[data-layout] .lay-grid .ncard .nc-loc {
    font-size: 12px !important;
    padding: 1px 6px !important;
  }
  html body[data-layout] .lay-grid .ncard .nc-price,
  html body[data-layout] .lay-grid .ncard .nc-price.ask,
  html body[data-layout] .lay-grid .ncard .nc-price.ask span {
    font-size: 13px !important;
    padding: 1px 6px !important;
  }
  html body[data-layout] .lay-grid .ncard .nc-op-wm { width: 54px; max-height: 30px; }
  html body[data-theme="blackgold"] .lay-grid .ncard .nc-op-wm { width: 40px; max-height: 22px; }
}
@media (max-width: 340px) {
  html body[data-layout] .lay-grid { grid-template-columns: 1fr !important; }
}

/* r28c：桌面/高分屏下分类、推荐、规则版式同样保留两行卡片高度，避免字段挤压 */
@media (min-width: 560px) {
  html body[data-layout] .lay-grid .ncard {
    min-height: 76px !important;
  }
  html body[data-layout] .lay-grid .ncard.has-marks {
    min-height: 82px !important;
    padding-top: 24px !important;
  }
  html body[data-layout] .lay-grid .ncard .nc-sub {
    row-gap: 4px !important;
  }
}
