* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
  background: #f5f6f8;
  padding-bottom: 70px;
  max-width: 540px;
  margin: 0 auto;
}

/* 头部 */
.header {
  background: linear-gradient(135deg, #ff8f3c, #ff6a00);
  color: #fff;
  padding: 24px 16px 40px;
  border-radius: 0 0 20px 20px;
}
.header-title { font-size: 22px; font-weight: 700; }
.header-sub { font-size: 13px; opacity: .9; margin-top: 6px; }

.notice {
  margin: -24px 12px 12px;
  background: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: #ff6a00;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  position: relative;
}

/* 商品列表 */
.product-list { padding: 0 12px; }
.product-card {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.product-img {
  width: 72px; height: 72px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px;
  flex-shrink: 0;
}
.product-info { flex: 1; margin-left: 12px; min-width: 0; }
.product-name { font-size: 15px; font-weight: 600; color: #222; }
.product-spec { font-size: 12px; color: #999; margin: 4px 0; }
.product-price { font-size: 16px; font-weight: 700; color: #ff3b30; }
.product-price .unit { font-size: 12px; font-weight: 400; color: #999; }

/* 数量步进器 */
.stepper { display: flex; align-items: center; flex-shrink: 0; }
.stepper button {
  width: 28px; height: 28px;
  border: none; border-radius: 50%;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.btn-minus { background: #f0f0f0; color: #666; }
.btn-plus { background: #ff6a00; color: #fff; }
.stepper input {
  width: 36px; text-align: center;
  border: none; font-size: 15px; font-weight: 600;
  background: transparent; color: #222;
}

/* 底部结算栏 */
.cart-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 540px;
  margin: 0 auto;
  background: #fff;
  display: flex;
  align-items: center;
  padding: 10px 16px;
  box-shadow: 0 -2px 10px rgba(0,0,0,.06);
  border-radius: 16px 16px 0 0;
}
.cart-total { flex: 1; font-size: 14px; color: #333; }
.total-price { font-size: 19px; font-weight: 700; color: #ff3b30; }
.total-count { font-size: 12px; color: #999; margin-left: 6px; }
.btn-order {
  background: linear-gradient(135deg, #ff8f3c, #ff6a00);
  color: #fff; border: none;
  padding: 11px 34px;
  border-radius: 22px;
  font-size: 16px; font-weight: 600;
}

/* 弹窗 */
.modal-mask {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 100;
  align-items: flex-end;
  justify-content: center;
}
.modal-mask.show { display: flex; }
.modal {
  background: #fff;
  width: 100%; max-width: 540px;
  border-radius: 18px 18px 0 0;
  max-height: 85vh;
  overflow-y: auto;
}
.modal-title {
  text-align: center; font-size: 16px; font-weight: 700;
  padding: 16px; border-bottom: 1px solid #f0f0f0;
}
.modal-body { padding: 14px 16px; }
.order-items {
  background: #f8f8f8; border-radius: 10px;
  padding: 10px 12px; margin-bottom: 14px;
}
.order-item {
  display: flex; justify-content: space-between;
  font-size: 13px; color: #444; padding: 3px 0;
}
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 13px; color: #666; margin-bottom: 5px; }
.form-group input, .form-group textarea {
  width: 100%; border: 1px solid #e5e5e5;
  border-radius: 8px; padding: 10px 12px;
  font-size: 14px; outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: #ff6a00; }
.form-group textarea { height: 64px; resize: none; }
.modal-total {
  text-align: right; font-size: 14px; color: #333;
  padding: 8px 0 4px;
}
.modal-total span { font-size: 18px; font-weight: 700; color: #ff3b30; }
.modal-footer {
  display: flex; gap: 12px;
  padding: 12px 16px 20px;
  border-top: 1px solid #f0f0f0;
}
.btn-cancel, .btn-submit {
  flex: 1; padding: 12px; border: none;
  border-radius: 24px; font-size: 15px;
}
.btn-cancel { background: #f2f2f2; color: #666; }
.btn-submit { background: linear-gradient(135deg, #ff8f3c, #ff6a00); color: #fff; font-weight: 600; }
.btn-submit:disabled { opacity: .6; }

/* 提示 */
.toast {
  position: fixed; top: 40%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,.75); color: #fff;
  padding: 12px 22px; border-radius: 10px;
  font-size: 14px; z-index: 999;
  display: none; max-width: 80%;
  text-align: center;
}
.toast.show { display: block; }

/* 订单列表页 */
.order-page { padding: 12px; }
.order-card {
  background: #fff; border-radius: 12px;
  padding: 14px; margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.order-head {
  display: flex; justify-content: space-between;
  font-size: 13px; color: #999;
  border-bottom: 1px solid #f5f5f5; padding-bottom: 8px;
}
.order-no { color: #666; font-weight: 600; }
.order-status { color: #ff6a00; font-weight: 600; }
.order-goods { font-size: 14px; color: #333; padding: 8px 0; }
.order-goods div { padding: 2px 0; }
.order-buyer { font-size: 13px; color: #666; padding: 4px 0; }
.order-foot {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid #f5f5f5; padding-top: 8px; margin-top: 6px;
}
.order-amount { font-size: 15px; font-weight: 700; color: #ff3b30; }
.empty { text-align: center; color: #999; padding: 60px 0; font-size: 14px; }
.page-title {
  background: linear-gradient(135deg, #ff8f3c, #ff6a00);
  color: #fff; padding: 20px 16px;
  font-size: 18px; font-weight: 700;
}
.back-link { color: #fff; font-size: 13px; margin-top: 6px; display: inline-block; text-decoration: none; opacity: .9; }

/* 起订量提示 */
.product-min { font-size: 11px; color: #ff6a00; margin-top: 3px; }

/* ============ 收银台弹窗 ============ */
.pay-head {
  position: relative;
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
}
.pay-back {
  position: absolute; left: 10px; top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px; border: none; background: none;
  font-size: 24px; line-height: 1; color: #666; cursor: pointer;
}
.pay-head-title { text-align: center; font-size: 16px; font-weight: 700; color: #222; }
.pay-amount-box { text-align: center; padding: 20px 0 16px; }
.pay-amount-label { font-size: 13px; color: #999; }
.pay-amount-num { display: block; font-size: 32px; font-weight: 700; color: #ff3b30; margin-top: 6px; }

.pay-methods { padding: 0 16px; }
.pay-method {
  display: flex; align-items: center;
  border: 1.5px solid #f0f0f0; border-radius: 12px;
  padding: 12px; margin-bottom: 10px;
  cursor: pointer; background: #fff;
  transition: border-color .15s, background .15s;
}
.pay-method.active { border-color: #ff6a00; background: #fffaf5; }
.pay-method-icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-right: 12px; flex-shrink: 0;
}
.pay-method-icon.wechat { background: #09bb07; }
.pay-method-icon.alipay { background: #1677ff; font-size: 22px; font-weight: 700; color: #fff; }
.pay-method-icon.bank { background: #d03026; }
.pay-method-info { flex: 1; min-width: 0; }
.pay-method-name { font-size: 15px; font-weight: 600; color: #222; }
.pay-method-desc { font-size: 12px; color: #999; margin-top: 2px; }
.pay-check {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid #ddd; flex-shrink: 0; position: relative;
}
.pay-method.active .pay-check { border-color: #ff6a00; background: #ff6a00; }
.pay-method.active .pay-check::after {
  content: ''; position: absolute;
  left: 6px; top: 2px; width: 4px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* 对公转账面板 */
.bank-panel {
  margin: 0 16px 12px;
  background: #f8f8f8; border-radius: 12px;
  padding: 12px; display: none;
}
.bank-panel-title { font-size: 13px; font-weight: 600; color: #222; margin-bottom: 6px; }
.bank-row { display: flex; align-items: flex-start; font-size: 12.5px; padding: 3px 0; }
.bank-row > span { width: 56px; flex-shrink: 0; color: #999; padding-top: 1px; }
.bank-row > b { flex: 1; font-weight: 600; color: #333; word-break: break-all; }
.bank-copy {
  flex-shrink: 0; margin-left: 8px; margin-top: -1px;
  border: 1px solid #ff6a00; color: #ff6a00; background: #fff;
  border-radius: 10px; font-size: 11px; padding: 1px 8px; cursor: pointer;
}
.bank-copy:active { background: #ff6a00; color: #fff; }

/* 转账凭证上传 */
.bank-upload-label { font-size: 12.5px; color: #666; margin: 10px 0 6px; }
.upload-wrap { position: relative; }
.upload-box {
  border: 1.5px dashed #ddd; border-radius: 10px;
  background: #fff; height: 110px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; overflow: hidden;
}
.upload-placeholder { text-align: center; font-size: 12px; color: #aaa; line-height: 1.6; }
.upload-placeholder i { font-style: normal; display: block; font-size: 28px; margin-bottom: 2px; }
#proofPreview { max-width: 100%; max-height: 108px; object-fit: contain; }
.upload-remove {
  position: absolute; top: 6px; right: 6px;
  background: rgba(0,0,0,.55); color: #fff; border: none;
  border-radius: 10px; font-size: 11px; padding: 2px 8px; cursor: pointer;
  display: none;
}
.upload-status { font-size: 12px; color: #ff6a00; margin-top: 4px; min-height: 16px; }

/* 收银台底部按钮 */
.pay-footer { padding: 2px 16px 20px; }
.pay-confirm-btn {
  width: 100%; padding: 13px; border: none;
  border-radius: 24px; font-size: 16px; font-weight: 600;
  color: #fff; cursor: pointer;
  background: linear-gradient(135deg, #ff8f3c, #ff6a00);
}
.pay-confirm-btn:disabled { background: #eee; color: #bbb; cursor: not-allowed; }
.pay-confirm-btn.paying { opacity: .7; }

/* 支付成功页 */
.pay-result { padding: 32px 24px 28px; text-align: center; }
.pay-result-icon { font-size: 48px; }
.pay-result-title { font-size: 18px; font-weight: 700; margin: 10px 0; }
.pay-result-info { font-size: 13px; color: #666; line-height: 2; }
.pay-done-btn { width: 100%; margin-top: 20px; }

/* 订单支付方式标签 */
.pay-tag {
  display: inline-block; font-size: 11px; color: #666;
  border: 1px solid #e5e5e5; border-radius: 4px;
  padding: 1px 6px; margin-right: 8px; vertical-align: middle;
}

/* 订单转账凭证缩略图 */
.proof-thumb {
  max-width: 90px; max-height: 90px;
  border-radius: 8px; border: 1px solid #eee;
  vertical-align: middle;
}
