/* H5 前台样式：商品页 / 收银台 / 发货页 */
.h5-body {
  margin: 0;
  background: #f2f3f5;
  color: #1f2937;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  padding-bottom: 84px;
}
.h5-wrap { max-width: 520px; margin: 0 auto; }

/* ---------------- 商品页头部 ---------------- */
.h5-hero { background: #fff; border-radius: 0 0 16px 16px; overflow: hidden; margin-bottom: 12px; }
.h5-hero-cover {
  height: 180px; background: linear-gradient(135deg, #1677ff, #0b3d91) center/cover no-repeat;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 34px; font-weight: 700;
}
.h5-hero-info { padding: 14px 16px 18px; }
.h5-hero-tag {
  display: inline-block; font-size: 11.5px; color: #1677ff; background: #e8f1ff;
  border-radius: 4px; padding: 2px 8px; margin-bottom: 8px;
}
.h5-hero-title { font-size: 19px; font-weight: 700; line-height: 1.35; }
.h5-hero-from { font-size: 12.5px; color: #98a2b3; margin-top: 6px; }
.h5-hero-price { margin-top: 10px; color: #f04438; font-size: 15px; }
.h5-hero-price strong { font-size: 27px; }

.h5-content { background: #f2f3f5; }
.h5-content .tpl-page { padding: 0; min-height: auto; background: transparent !important; }
.h5-content .tpl-container { box-shadow: none; border-radius: 14px; margin: 0 12px 12px; }

.h5-notice {
  margin: 0 12px 16px; background: #fffbe6; border: 1px solid #ffe58f; color: #ad6800;
  border-radius: 10px; padding: 10px 12px; font-size: 12.5px; line-height: 1.6; display: flex; gap: 8px;
}
.h5-notice i {
  flex: 0 0 16px; width: 16px; height: 16px; border-radius: 50%; background: #faad14; color: #fff;
  font-style: normal; font-size: 11px; display: flex; align-items: center; justify-content: center; margin-top: 1px;
}

/* ---------------- 底部支付栏 ---------------- */
.h5-footer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  max-width: 520px; margin: 0 auto; background: #fff; border-top: 1px solid #eef0f5;
  padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, .06);
}
.h5-footer-price { color: #f04438; font-size: 15px; font-weight: 700; }
.h5-footer-btn {
  flex: 1; text-align: center; background: linear-gradient(90deg, #ff8800, #ff4d4f); color: #fff;
  padding: 12px; border-radius: 24px; font-size: 16px; font-weight: 600; text-decoration: none;
}

/* ---------------- 首页弹窗 / 客服 ---------------- */
.h5-popup { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 60; display: flex; align-items: center; justify-content: center; }
.h5-popup-card { width: 82%; max-width: 340px; background: #fff; border-radius: 16px; padding: 22px 20px; text-align: center; }
.h5-popup-title { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.h5-popup-text { font-size: 13.5px; color: #667085; line-height: 1.65; margin-bottom: 18px; }
.h5-popup-btn { width: 100%; border: 0; color: #fff; padding: 12px; border-radius: 22px; font-size: 15px; font-weight: 600; }

.h5-service {
  position: fixed; right: 14px; bottom: 104px; width: 74px; background: #fff; border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .14); padding: 6px; display: none; flex-direction: column;
  align-items: center; z-index: 40;
}
.h5-service img { width: 62px; height: 62px; border-radius: 8px; object-fit: cover; }
.h5-service span { font-size: 10.5px; color: #667085; margin-top: 4px; text-align: center; }

/* ---------------- 收银台 ---------------- */
.cashier { background: #fff; margin: 0 12px 16px; border-radius: 16px; padding: 22px 18px 26px; }
.cashier-head { text-align: center; padding-bottom: 14px; border-bottom: 1px dashed #eef0f5; }
.cashier-amount { color: #f04438; font-size: 15px; }
.cashier-amount strong { font-size: 34px; }
.cashier-sub { font-size: 14px; color: #344054; margin-top: 4px; }
.cashier-no { font-size: 12px; color: #98a2b3; margin-top: 6px; }
.cashier-error { margin: 12px 0 0; background: #feeceb; color: #f04438; border-radius: 8px; padding: 9px 12px; font-size: 13px; }
.cashier-tabs { display: flex; gap: 10px; margin: 18px 0; }
.cashier-tabs a {
  flex: 1; text-align: center; padding: 11px; border: 1px solid #e4e7ec; border-radius: 10px;
  font-size: 14px; color: #667085; text-decoration: none;
}
.cashier-tabs a.active { border-color: #1677ff; color: #1677ff; background: #f5f9ff; font-weight: 600; }
.cashier-qr { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 0 16px; }
.cashier-qr #payQr { width: 200px; height: 200px; background: #fff; border: 1px solid #eef0f5; border-radius: 10px; padding: 8px; display: flex; align-items: center; justify-content: center; }
.cashier-qr img, .cashier-qr canvas { max-width: 184px; height: auto; }
.cashier-tip { font-size: 13px; color: #667085; }
.cashier-form { margin: 0; }
.cashier-btn {
  width: 100%; border: 0; border-radius: 24px; padding: 14px; color: #fff; font-size: 16px; font-weight: 600;
  background: linear-gradient(90deg, #1677ff, #0b57d0);
}
.cashier-countdown { text-align: center; font-size: 12.5px; color: #98a2b3; margin-top: 12px; }

/* ---------------- 发货页 ---------------- */
.done-head { background: linear-gradient(160deg, #12b76a, #059f5b); border-radius: 0 0 18px 18px; color: #fff; text-align: center; padding: 30px 18px 26px; }
.done-ico { width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 255, 255, .22); margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.done-title { font-size: 20px; font-weight: 700; }
.done-amount { font-size: 26px; font-weight: 700; margin-top: 8px; }
.done-sub, .done-time { font-size: 12.5px; opacity: .92; margin-top: 6px; }
.done-block { background: #fff; margin: 12px; border-radius: 14px; padding: 16px; }
.done-block-title { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.done-text { font-size: 13.5px; color: #475467; line-height: 1.7; }
.done-images { display: flex; flex-wrap: wrap; gap: 8px; }
.done-images img { width: calc(50% - 4px); border-radius: 8px; display: block; }
.done-center { text-align: center; }
.done-qr { width: 180px; height: 180px; object-fit: cover; border-radius: 10px; margin-bottom: 8px; }
.done-redirect {
  display: block; margin: 16px 12px 24px; text-align: center; background: #1677ff; color: #fff;
  padding: 13px; border-radius: 24px; font-size: 15px; font-weight: 600; text-decoration: none;
}