/* 新人礼包条：对齐官方（背景图不含按钮文案，由组件叠字） */
.newcomer-coupon[data-v-8ccd6bf3],
.newcomer-coupon {
  overflow: hidden !important;
  box-sizing: border-box;
}

.newcomer-coupon .coupon-left,
.newcomer-coupon .coupon-left.size-s,
.newcomer-coupon .coupon-left.size-m,
.newcomer-coupon .coupon-left.size-l {
  overflow: visible !important;
  display: flex !important;
  align-items: center !important;
  line-height: 1 !important;
}

.newcomer-coupon .currency,
.newcomer-coupon .amount-value {
  overflow: visible !important;
  line-height: 1 !important;
}

.newcomer-coupon .coupon-action {
  color: rgba(20, 20, 20, 0.95) !important;
  -webkit-text-fill-color: rgba(20, 20, 20, 0.95) !important;
  font-weight: 600 !important;
}

/* ========== 商品双列：只排两列，高度跟 uni 原生 rpx（勿写死 px，否则比例偏矮留白） ========== */
.productList {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  align-content: flex-start !important;
  box-sizing: border-box !important;
  /* 用原生左右间距，避免额外 padding 撑出底空白 */
  gap: 0 8px !important;
  min-height: 0 !important;
  height: auto !important;
}

.productList > .fadein-ani-5 {
  width: calc(50% - 4px) !important;
  flex: 0 0 calc(50% - 4px) !important;
  box-sizing: border-box !important;
  max-width: calc(50% - 4px) !important;
  height: auto !important;
  min-height: 0 !important;
  margin-bottom: 0 !important;
}

.productList > .fadein-ani-5 > .product-item,
.product-item.pt-20rpx,
.product-item:has(.h402rpx) {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  /* 保持组件自带 padding（约 20rpx），不要强行 8px 改比例 */
  box-sizing: border-box !important;
  border-radius: 8px !important;
  overflow: hidden !important;
}

/* 封面：按 750 设计稿还原 402rpx/400rpx（屏宽换算），禁止写死 168px 导致矮卡留白 */
.product-item .h402rpx {
  height: calc(402 / 750 * 100vw) !important;
  max-height: none !important;
  margin-bottom: 6px !important;
}

.product-item .h400rpx {
  height: calc(400 / 750 * 100vw) !important;
  max-height: none !important;
  width: 100% !important;
}

.product-item .h402rpx .wd-img,
.product-item .h400rpx .wd-img,
.product-item .h402rpx uni-image,
.product-item .h400rpx uni-image {
  width: 100% !important;
  height: 100% !important;
}

/* 标题两行即可，勿 max-height 裁切后留下空带 */
.product-item .overflow-hidden.lh-36rpx,
.product-item .font-bold.font-size-28rpx {
  max-height: none !important;
}

/* 列表滚动区：去掉多余底留白 */
.zp-scroll-view-container,
.zp-scroll-view,
.uni-scroll-view,
.productList {
  padding-bottom: 0 !important;
}

/* 买号页底部 tab 已占位，避免再叠一大块空 padding */
uni-page-body.pages-buy-index,
.pages-buy-index,
uni-page-body {
  min-height: 0 !important;
}
