/* ============================================================
   MiniForge · 组件预览样式（H5）
   与导出小程序 app.wxss 一一对应，rpx / 2 = px
   ============================================================ */

.mf-w { position: relative; overflow: hidden; }

/* 文本 */
.mf-text { white-space: pre-wrap; word-break: break-word; }

/* 标题栏 */
.mf-title { display: flex; align-items: center; justify-content: space-between; }
.mf-title-left { display: flex; align-items: center; flex: 1; min-width: 0; }
.mf-title-bar { width: 4px; height: 16px; border-radius: 2px; margin-right: 8px; flex-shrink: 0; }
.mf-title-txt { display: flex; flex-direction: column; min-width: 0; }
.mf-title-main { font-weight: 600; line-height: 1.25; }
.mf-title-sub { font-size: 11px; color: #8c8c8c; margin-top: 3px; }
.mf-title-more { display: flex; align-items: center; font-size: 12px; color: #8c8c8c; flex-shrink: 0; padding-left: 8px; cursor: pointer; }
.mf-arrow { margin-left: 3px; font-size: 16px; line-height: 1; color: #c4c8ce; }

/* 图片 */
.mf-image { display: block; }

/* 按钮 */
.mf-btn { text-align: center; font-weight: 500; }

/* 轮播 */
.mf-banner-wrap { position: relative; overflow: hidden; border-radius: inherit; }
.mf-banner { width: 100%; height: 100%; overflow: hidden; }
.mf-banner-track { display: flex; width: 100%; height: 100%; transition: transform .45s ease; }
.mf-slide { flex: 0 0 100%; width: 100%; height: 100%; overflow: hidden; }
.mf-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mf-banner-ind { position: absolute; left: 0; right: 0; bottom: 9px; display: flex; justify-content: center; align-items: center; }
.mf-banner-ind-i { width: 13px; height: 2px; border-radius: 1px; background: rgba(255, 255, 255, .5); margin: 0 2px; display: block; }
.mf-banner-ind-i.on { width: 22px; background: #fff; }
.mf-banner-ind-i.mf-line { height: 2px; }

/* 金刚区 */
.mf-nav { display: flex; flex-wrap: wrap; }
.mf-nav-item { display: flex; flex-direction: column; align-items: center; padding: 6px 0; cursor: pointer; }
.mf-nav-ic { display: flex; align-items: center; justify-content: center; border-radius: 50%; line-height: 1; }
.mf-nav-t { margin-top: 6px; color: #1a1a1a; text-align: center; }

/* 商品 */
.mf-goods-grid { display: flex; flex-wrap: wrap; }
.mf-goods-card { width: calc(50% - 6px); min-width: 0; margin: 0 3px 6px; cursor: pointer; }
.mf-goods-imgwrap { position: relative; border-radius: 8px; overflow: hidden; }
.mf-goods-img { width: 100%; height: 170px; display: block; background: #f2f3f5; object-fit: cover; min-width: 0; }
.mf-goods-body { padding: 6px 2px 0; }
.mf-goods-name {
  font-size: 13px; line-height: 1.4; color: #1a1a1a;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mf-goods-tag { display: inline-block; align-self: flex-start; font-size: 10px; padding: 1px 5px; border-radius: 3px; margin-top: 4px; }
.mf-goods-imgwrap .mf-goods-tag { position: absolute; left: 5px; top: 5px; margin: 0; background: #ff5233; color: #fff; }
.mf-goods-price { margin-top: 5px; font-size: 16px; font-weight: 600; display: flex; align-items: baseline; }
.mf-goods-cur { font-size: 11px; margin-right: 1px; }
.mf-goods-origin { font-size: 11px; color: #b3b8bf; text-decoration: line-through; margin-left: 5px; font-weight: 400; }
.mf-goods-sales { font-size: 11px; color: #8c8c8c; margin-top: 3px; }

.mf-goods-list { display: flex; flex-direction: column; }
.mf-goods-row { display: flex; padding: 8px 0; cursor: pointer; }
.mf-goods-row + .mf-goods-row { border-top: 1px solid #f2f3f5; }
.mf-goods-row-img { width: 100px; height: 100px; border-radius: 7px; flex-shrink: 0; background: #f2f3f5; object-fit: cover; }
.mf-goods-row-body { flex: 1; min-width: 0; padding-left: 10px; display: flex; flex-direction: column; }
.mf-goods-row-body .mf-goods-name { font-size: 14px; -webkit-line-clamp: 2; }

.mf-goods-scroll { width: 100%; overflow-x: auto; overflow-y: hidden; }
.mf-goods-srow { display: flex; }
.mf-goods-scard { width: 130px; margin-right: 8px; flex-shrink: 0; cursor: pointer; }
.mf-goods-simg { width: 130px; height: 130px; border-radius: 8px; display: block; background: #f2f3f5; object-fit: cover; }
.mf-goods-name.s { margin-top: 5px; }

/* 优惠券 */
.mf-coupons { display: flex; flex-wrap: wrap; margin: 0 -3px; }
.mf-coupon {
  display: flex; align-items: center;
  background: linear-gradient(90deg, #fff6f3, #fff);
  border-radius: 8px; padding: 10px; margin: 0 3px 6px; flex: 1; min-width: 0; cursor: pointer;
}
.mf-coupons.two .mf-coupon { flex: 0 0 calc(50% - 6px); flex-direction: column; align-items: stretch; }
.mf-coupons.one .mf-coupon { flex: 0 0 calc(100% - 6px); }
.mf-coupon-left { display: flex; flex-direction: column; align-items: center; padding-right: 10px; border-right: 1px dashed #f0d6cc; flex-shrink: 0; }
.mf-coupons.two .mf-coupon-left { border-right: none; border-bottom: 1px dashed #f0d6cc; padding: 0 0 6px; flex-direction: row; align-items: baseline; justify-content: flex-start; }
.mf-coupons.two .mf-coupon-mid { padding: 8px 0 0; }
.mf-coupons.two .mf-coupon-btn { align-self: flex-start; margin-top: 8px; }
.mf-coupon-amt { font-size: 22px; font-weight: 700; line-height: 1.1; }
.mf-coupon-y { font-size: 12px; margin-right: 1px; }
.mf-coupon-unit { font-size: 10px; margin-left: 1px; font-weight: 400; }
.mf-coupon-exp { font-size: 9px; color: #8c8c8c; margin-top: 3px; white-space: nowrap; }
.mf-coupon-mid { flex: 1; min-width: 0; padding: 0 8px; display: flex; flex-direction: column; }
.mf-coupon-title { font-size: 13px; font-weight: 500; color: #1a1a1a; }
.mf-coupon-desc { font-size: 10px; color: #8c8c8c; margin-top: 3px; }
.mf-coupon-btn { flex-shrink: 0; color: #fff; font-size: 11px; padding: 5px 10px; border-radius: 999px; }

/* 倒计时 */
.mf-cd { display: flex; align-items: center; justify-content: space-between; border-radius: inherit; padding: 12px 14px; color: #fff; }
.mf-cd-left { display: flex; flex-direction: column; }
.mf-cd-title { font-size: 16px; font-weight: 700; }
.mf-cd-sub { font-size: 10px; opacity: .85; margin-top: 3px; }
.mf-cd-time { display: flex; align-items: center; }
.mf-cd-box { background: rgba(0, 0, 0, .28); border-radius: 4px; padding: 3px 5px; font-size: 13px; font-weight: 600; min-width: 23px; text-align: center; }
.mf-cd-colon { margin: 0 3px; font-weight: 700; }
.mf-cd-unit { font-size: 10px; margin-left: 5px; opacity: .9; }

/* 公告 */
.mf-notice { display: flex; align-items: center; height: 32px; }
.mf-notice-ic { font-size: 14px; margin-right: 6px; }
.mf-notice-sw { flex: 1; height: 32px; overflow: hidden; }
.mf-notice-track { transition: transform .4s ease; }
.mf-notice-t { font-size: 12px; line-height: 32px; height: 32px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }

/* 搜索 */
.mf-search { display: flex; align-items: center; background: #f2f3f5; padding: 0 12px; cursor: pointer; }
.mf-search-ic { font-size: 15px; color: #9aa0a6; margin-right: 5px; }
.mf-search-ph { flex: 1; font-size: 13px; color: #9aa0a6; }
.mf-search-btn { color: #fff; font-size: 12px; padding: 4px 11px; border-radius: 999px; margin-left: 6px; }

/* 分类 */
.mf-tabs { width: 100%; overflow-x: auto; }
.mf-tabs-inner { display: inline-flex; align-items: center; }
.mf-tab { display: inline-flex; flex-direction: column; align-items: center; padding: 6px 12px; position: relative; cursor: pointer; flex-shrink: 0; }
.mf-tab-t { font-size: 14px; color: #1a1a1a; }
.mf-tab.on .mf-tab-t { color: #ff5233; font-weight: 600; }
.mf-tab-bar { width: 16px; height: 3px; border-radius: 2px; background: #ff5233; margin-top: 4px; }
.mf-tabs.pill .mf-tab { background: #f2f3f5; border-radius: 999px; margin-right: 8px; padding: 6px 14px; }
.mf-tabs.pill .mf-tab.on { background: #fff1ed; }
.mf-tabs.pill .mf-tab-bar { display: none; }

/* 列表项 */
.mf-cells { overflow: hidden; }
.mf-cells.grouped { background: #fff; border-radius: 8px; }
.mf-cell { display: flex; align-items: center; padding: 13px 0; border-bottom: 1px solid #f2f3f5; cursor: pointer; }
.mf-cell:last-child { border-bottom: none; }
.mf-cell-ic { font-size: 17px; margin-right: 9px; }
.mf-cell-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mf-cell-t { font-size: 14px; color: #1a1a1a; }
.mf-cell-d { font-size: 11px; color: #8c8c8c; margin-top: 2px; }
.mf-cell-ex { font-size: 12px; color: #8c8c8c; margin-left: 6px; }

/* 图文卡片 */
.mf-cards { display: flex; flex-wrap: wrap; margin: 0 -3px; }
.mf-card { display: flex; background: #fff; border-radius: 8px; overflow: hidden; margin: 0 3px 6px; flex: 1; min-width: 0; cursor: pointer; }
.mf-cards.one .mf-card { flex: 0 0 calc(100% - 6px); }
.mf-cards.two .mf-card { flex: 0 0 calc(50% - 6px); flex-direction: column; }
.mf-card-imgwrap { position: relative; flex-shrink: 0; }
.mf-cards.one .mf-card-img { width: 110px; height: 80px; display: block; }
.mf-cards.two .mf-card-img { width: 100%; height: 100px; display: block; }
.mf-card-img { background: #f2f3f5; object-fit: cover; }
.mf-card-badge { position: absolute; left: 5px; top: 5px; background: rgba(0, 0, 0, .5); color: #fff; font-size: 9px; padding: 1px 5px; border-radius: 3px; }
.mf-card-body { padding: 9px 10px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.mf-card-t { font-size: 14px; font-weight: 500; color: #1a1a1a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-card-d { font-size: 11px; color: #8c8c8c; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 视频 */
.mf-video { width: 100%; border-radius: inherit; display: block; background: #000; }

/* 表单 */
.mf-form-card { display: flex; flex-direction: column; }
.mf-form-title { font-size: 16px; font-weight: 600; color: #1a1a1a; }
.mf-form-sub { font-size: 11px; color: #8c8c8c; margin-top: 4px; }
.mf-form-row { display: flex; flex-direction: column; margin-top: 12px; }
.mf-form-label { font-size: 12px; color: #8c8c8c; margin-bottom: 5px; }
.mf-form-req { color: #fa5151; margin-left: 2px; font-style: normal; }
.mf-form-input {
  background: #f7f8fa; border: none; border-radius: 6px; padding: 10px 11px;
  font-size: 14px; color: #1a1a1a; width: 100%; min-height: 42px; outline: none;
  font-family: inherit; resize: none;
}
.mf-form-input.area { height: 80px; }
.mf-form-btn { margin-top: 16px; color: #fff; text-align: center; border-radius: 999px; padding: 12px 0; font-size: 15px; font-weight: 500; cursor: pointer; }
.mf-form-tip { font-size: 10px; color: #b3b8bf; text-align: center; margin-top: 8px; }

/* 富文本 */
.mf-rich { font-size: 14px; line-height: 1.7; color: #1a1a1a; word-break: break-word; }
.mf-rich img { max-width: 100%; }
.mf-rich p { margin: 0 0 8px; }

/* 购物车 */
.mf-cart { display: flex; flex-direction: column; }
.mf-cart-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding-bottom: 10px;
}
.mf-cart-head em { font-style: normal; font-size: 10px; color: #b3b8bf; font-weight: 400; }
.mf-cart-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f2f3f5; }
.mf-cart-item:last-of-type { border-bottom: none; }
.mf-cart-item img { width: 66px; height: 66px; border-radius: 8px; object-fit: cover; background: #f2f3f5; display: block; }
.mf-cart-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.mf-cart-name { font-size: 13px; color: #1a1a1a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-cart-price { font-size: 14px; font-weight: 600; color: #ff5233; }
.mf-cart-qty { display: flex; align-items: center; gap: 0; flex-shrink: 0; }
.mf-cart-qty span {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border: 1px solid #e6e8ec;
  border-radius: 6px;
  font-size: 13px;
  color: #4b5563;
  background: #fff;
}
.mf-cart-qty b { min-width: 26px; text-align: center; font-size: 13px; font-weight: 500; }
.mf-cart-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #e6e8ec;
}
.mf-cart-total { font-size: 13px; color: #4b5563; }
.mf-cart-total b { font-size: 18px; margin-left: 4px; }
.mf-cart-btn { color: #fff; font-size: 13px; font-weight: 500; padding: 9px 22px; border-radius: 999px; }
