/* =============================================================
   第一套 H5 移植样式（蓝色主题适配）
   —— 老板端「我的」页
   —— 老板端商品详情页（点商品 → 商品详情 → 立即下单）
   —— 打手端 4 页：首页 / 接单池 / 消息 / 我的
   仅作用于 .pt- .pm- .pb- .pp- .pg- .pu- .pdp- 前缀，不影响原有页面
   ============================================================= */

/* ---------------- 通用骨架 ---------------- */
.pt-page { min-height: 100vh; background: var(--bg); padding-bottom: 8px; }

.pt-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #5cadff 0%, #3c9cff 52%, #2b85e4 100%);
  padding: calc(10px + env(safe-area-inset-top)) 16px 56px;
  border-radius: 0 0 22px 22px;
  color: #fff;
}
.pt-hero::before,
.pt-hero::after {
  content: ''; position: absolute; border-radius: 50%;
  background: rgba(255, 255, 255, .13);
}
.pt-hero::before { width: 190px; height: 190px; right: -60px; top: -80px; }
.pt-hero::after  { width: 110px; height: 110px; right: 60px; bottom: -60px; }

.pt-navbar {
  position: relative; z-index: 1;
  height: 34px; line-height: 34px; text-align: center;
  font-size: 17px; font-weight: 600; letter-spacing: 1px;
}
/* 「我的」页去掉顶部标题后，用等高占位保持头像位置不变 */
.pt-hero-gap { height: 34px; }
.pt-navbar-back {
  position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
}
.pt-navbar-back svg { width: 20px; height: 20px; }

.pt-content { position: relative; z-index: 2; margin-top: -44px; padding: 0 12px; }

.pt-card {
  background: #fff; border-radius: 16px; padding: 14px;
  box-shadow: 0 4px 16px rgba(60, 156, 255, .09);
  margin-bottom: 12px;
}
.pt-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pt-card-title { font-size: 14px; font-weight: 700; color: var(--text); }
.pt-card-link { font-size: 12px; color: var(--text-4); display: inline-flex; align-items: center; gap: 2px; }
.pt-sec-title { font-size: 13px; font-weight: 700; color: var(--text); margin: 2px 2px 10px; }

/* 头像 + 昵称 / ID */
.pt-profile { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.pt-avatar {
  width: 60px; height: 60px; border-radius: 50%; flex-shrink: 0;
  overflow: hidden; background: rgba(255, 255, 255, .3);
  border: 2px solid rgba(255, 255, 255, .75);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700;
}
.pt-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pt-avatar-wrap { position: relative; flex-shrink: 0; }
.pt-audit-mask {
  position: absolute; inset: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .48); color: #fff;
  font-size: 9px; line-height: 1.15; text-align: center;
  display: flex; align-items: center; justify-content: center; padding: 4px;
}
.pt-profile-info { flex: 1; min-width: 0; }
.pt-name-line { display: flex; align-items: center; gap: 8px; }
.pt-name {
  font-size: 18px; font-weight: 700; max-width: 62%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pt-role-tag {
  font-size: 10px; line-height: 1; padding: 3px 7px; border-radius: 999px;
  background: rgba(255, 255, 255, .26); border: 1px solid rgba(255, 255, 255, .5);
}
.pt-id {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 7px; font-size: 12px; color: rgba(255, 255, 255, .92);
}
.pt-id svg { width: 13px; height: 13px; }
.pt-id-copy { display: inline-flex; align-items: center; }
.pt-switch-link {
  flex-shrink: 0; font-size: 11.5px; padding: 5px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .55);
}

/* 双列信息卡：我的余额 / 切换身份 */
.pt-duo {
  display: flex; align-items: stretch;
  background: #fff; border-radius: 16px; padding: 14px 4px;
  box-shadow: 0 4px 16px rgba(60, 156, 255, .1);
  margin-bottom: 12px;
}
.pt-duo-item { flex: 1; min-width: 0; padding: 0 12px; color: inherit; display: block; }
.pt-duo-item + .pt-duo-item { border-left: 1px solid var(--divider-soft); }
.pt-duo-label { font-size: 12px; color: var(--text-4); display: flex; align-items: center; gap: 3px; }
.pt-duo-num { font-size: 21px; font-weight: 800; color: var(--primary-deep); margin-top: 7px; }
.pt-duo-num .u { font-size: 13px; font-weight: 700; }
.pt-duo-val { font-size: 14.5px; font-weight: 700; color: var(--text); margin-top: 10px; }

/* 风险提示条 */
.pt-warn {
  display: flex; align-items: flex-start; gap: 6px;
  background: #fff8e8; border: 1px solid #ffe2ad; color: #b8751b;
  border-radius: 12px; padding: 9px 11px; font-size: 11px; line-height: 1.55;
  margin-bottom: 12px;
}
.pt-warn svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 1px; }

/* 宫格（订单状态 / 功能入口） */
.pt-grid { display: grid; gap: 2px; }
.pt-grid-5 { grid-template-columns: repeat(5, 1fr); }
.pt-grid-4 { grid-template-columns: repeat(4, 1fr); }
.pt-grid-3 { grid-template-columns: repeat(3, 1fr); }
.pt-grid-2 { grid-template-columns: repeat(2, 1fr); }

.pt-cell {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 9px 2px; position: relative; color: var(--text-2);
}
.pt-cell-ico { width: 40px; height: 40px; border-radius: 13px; background: var(--blue-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.pt-cell-ico svg { width: 22px; height: 22px; }
.pt-cell-ico.plain { background: transparent; }
.pt-cell-label { font-size: 11px; line-height: 1.1; text-align: center; }
.pt-cell-label em { font-style: normal; font-weight: 700; color: var(--primary-deep); margin-left: 2px; }
.pt-cell-dot {
  position: absolute; top: 4px; left: 50%; margin-left: 10px;
  min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px;
  background: var(--red); color: #fff; font-size: 9.5px; font-weight: 700;
  line-height: 15px; text-align: center;
}

/* 顶端按钮 / 小按钮 */
.pt-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 30px; padding: 0 14px; border-radius: 999px;
  font-size: 12px; font-weight: 600; border: 0; background: var(--grad-main); color: #fff;
}
.pt-btn.ghost { background: #fff; color: var(--primary-deep); border: 1px solid var(--primary-2); }
.pt-btn.dis, .pt-btn[disabled] { background: var(--divider-soft); color: var(--text-4); }
.pt-btn-block { width: 100%; height: 40px; font-size: 14px; }

/* 打手端上线开关（hero 内） */
.pt-online-row {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; padding: 10px 12px; border-radius: 14px;
  background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .42);
}
.pt-online-t { font-size: 13px; font-weight: 600; }
.pt-online-s { font-size: 11px; opacity: .88; margin-top: 2px; }
.pt-online-btn {
  font-size: 12px; font-weight: 700; padding: 7px 15px; border-radius: 999px;
  background: #fff; color: var(--primary-deep); flex-shrink: 0;
}
.pt-online-btn.off { background: rgba(255, 255, 255, .22); color: #fff; border: 1px solid rgba(255, 255, 255, .62); }

/* 三项统计 */
.pt-stats { position: relative; z-index: 1; display: flex; margin-top: 14px; }
.pt-stat { flex: 1; text-align: center; }
.pt-stat b { display: block; font-size: 19px; font-weight: 800; letter-spacing: .3px; }
.pt-stat span { font-size: 11px; opacity: .9; }
.pt-stat + .pt-stat { border-left: 1px solid rgba(255, 255, 255, .3); }

/* 订单卡（首页今日订单 / 我的最近订单 / 接单池） */
.pt-order {
  display: block; position: relative; background: #fff; border-radius: 14px; padding: 12px;
  box-shadow: 0 3px 12px rgba(60, 156, 255, .08); margin-bottom: 10px;
  color: inherit;
}
.pt-order-top { display: flex; align-items: flex-start; gap: 10px; }
.pt-order-thumb {
  width: 54px; height: 54px; border-radius: 10px; flex-shrink: 0; object-fit: cover;
  background: var(--blue-soft); color: var(--primary-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
}
.pt-order-mid { flex: 1; min-width: 0; }
.pt-order-title {
  font-size: 13.5px; font-weight: 600; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pt-order-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pt-order-tag { font-size: 10px; padding: 2px 7px; border-radius: 6px; background: var(--blue-soft); color: var(--primary-deep); }
.pt-order-tag.mch { background: rgba(245, 166, 35, .14); color: #c2790f; }
.pt-order-right { flex-shrink: 0; text-align: right; }
.pt-order-fee { font-size: 15px; font-weight: 800; color: var(--price-sym); }
.pt-order-fee-sub { font-size: 10.5px; color: var(--text-4); margin-top: 3px; }
.pt-order-badge { font-size: 10px; padding: 2px 7px; border-radius: 999px; background: var(--blue-soft); color: var(--primary-deep); }

.pt-order-rows {
  margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--divider-soft);
  display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; color: var(--text-3);
}
.pt-order-row { display: flex; gap: 8px; }
.pt-order-row i { font-style: normal; color: var(--text-4); flex-shrink: 0; }
.pt-order-row em { font-style: normal; color: var(--price-sym); font-weight: 700; }
.pt-order-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 11px; }
.pt-order-foot-l { font-size: 11px; color: var(--text-4); }
.pt-order-foot-r { display: flex; align-items: center; gap: 8px; }

/* 空状态 */
.pt-empty { text-align: center; padding: 34px 0 26px; color: var(--text-4); font-size: 12.5px; }
.pt-empty-ico {
  width: 62px; height: 62px; margin: 0 auto 12px; border-radius: 50%;
  background: var(--blue-soft); color: var(--primary-2);
  display: flex; align-items: center; justify-content: center;
}
.pt-empty-ico svg { width: 30px; height: 30px; }
.pt-more { text-align: center; padding: 6px 0 14px; font-size: 12px; color: var(--text-4); }

/* ---------------- 打手端 · 接单池筛选 ---------------- */
.pp-title { height: 40px; line-height: 40px; text-align: center; font-size: 17px; font-weight: 600; color: var(--text); }
.pt-heat { color: var(--text-4); }
.pt-heat b { color: var(--primary-deep); font-weight: 700; }
.pp-filter {
  position: sticky; top: 0; z-index: 12;
  background: rgba(247, 247, 247, .95);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: calc(6px + env(safe-area-inset-top)) 0 8px;
}
.pp-nav { display: flex; gap: 8px; overflow-x: auto; padding: 0 12px 8px; -webkit-overflow-scrolling: touch; }
.pp-nav::-webkit-scrollbar, .pp-cats::-webkit-scrollbar { display: none; }
.pp-nav-item {
  flex-shrink: 0; padding: 7px 15px; border-radius: 999px;
  background: #fff; font-size: 12.5px; color: var(--text-3); border: 1px solid var(--divider-soft);
}
.pp-nav-item.on { background: var(--grad-main); color: #fff; font-weight: 600; border-color: transparent; }
.pp-cats { display: flex; gap: 8px; overflow-x: auto; padding: 0 12px; -webkit-overflow-scrolling: touch; }
.pp-cat-item { flex-shrink: 0; padding: 5px 12px; border-radius: 8px; background: #fff; font-size: 12px; color: var(--text-3); }
.pp-cat-item.on { background: var(--blue-soft); color: var(--primary-deep); font-weight: 600; }
.pp-list { padding: 4px 12px 0; }
.pp-offline {
  display: flex; align-items: center; gap: 8px;
  margin: 4px 12px 10px; padding: 10px 12px; border-radius: 12px;
  background: #fff4e5; border: 1px solid #ffdca8; color: #b8751b; font-size: 12px;
}
.pp-offline svg { width: 16px; height: 16px; flex-shrink: 0; }
.pp-offline a { margin-left: auto; font-weight: 700; color: #b8751b; text-decoration: underline; }

/* ---------------- 打手端 · 消息 ---------------- */
.pg-list { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 16px rgba(60, 156, 255, .09); }
.pg-item { display: flex; gap: 10px; padding: 13px 14px; color: inherit; }
.pg-item.notify-item { margin-bottom: 0; border-radius: 0; box-shadow: none; padding: 13px 14px; }
.pg-t .notify-dot { margin-top: 0; flex-shrink: 0; }
.pg-item + .pg-item { border-top: 1px solid var(--divider-soft); }
.pg-ico {
  width: 40px; height: 40px; border-radius: 13px; flex-shrink: 0;
  background: var(--blue-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.pg-ico svg { width: 21px; height: 21px; }
.pg-body { flex: 1; min-width: 0; }
.pg-t { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--text); }
.pg-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
.pg-x { font-size: 12px; color: var(--text-3); margin-top: 4px; line-height: 1.55; }
.pg-time { font-size: 11px; color: var(--text-4); margin-top: 6px; }
.pg-more { text-align: center; font-size: 12px; color: var(--text-4); padding: 10px 0 0; }

/* ---------------- 复用原有 mine-* 类名，套用第一套视觉 ---------------- */
.pt-page .mine-order-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; margin-top: 2px; }
.pt-page .mine-order-item { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 9px 2px; position: relative; color: var(--text-2); }
.pt-page .mine-order-icon { width: 40px; height: 40px; border-radius: 13px; background: var(--blue-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.pt-page .mine-order-icon svg { width: 22px; height: 22px; }
.pt-page .mine-order-label { font-size: 11px; line-height: 1.1; text-align: center; }
.pt-page .mine-order-dot {
  position: absolute; top: 4px; left: 50%; margin-left: 10px;
  min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px;
  background: var(--red); color: #fff; font-size: 9.5px; font-weight: 700;
  line-height: 15px; text-align: center;
}
.pt-page .mine-menu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.pt-page .mine-menu-item { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 10px 2px; position: relative; color: var(--text-2); }
.pt-page .mine-menu-icon { width: 40px; height: 40px; border-radius: 13px; background: var(--blue-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.pt-page .mine-menu-icon svg { width: 21px; height: 21px; }
.pt-page .mine-menu-label { font-size: 11px; line-height: 1.15; text-align: center; }
.pt-page .mine-menu-count, .pt-page .mine-menu-dot {
  position: absolute; top: 6px; left: 50%; margin-left: 8px;
  min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px;
  background: var(--red); color: #fff; font-size: 9.5px; font-weight: 700;
  line-height: 15px; text-align: center;
}

/* ---------------- 打手接单门槛：保证金 / 会员 ---------------- */
.pkgate {
  display: flex; align-items: center; gap: 12px;
  margin: 0 12px 12px; padding: 16px;
  border-radius: 16px;
  background: var(--grad-main);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.pkgate.off { background: var(--grad-modern); }
.pkgate-ico {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 50%; background: rgba(255, 255, 255, .22);
  display: flex; align-items: center; justify-content: center;
}
.pkgate-ico svg { width: 24px; height: 24px; }
.pkgate-t { font-size: 15px; font-weight: 700; }
.pkgate-s { font-size: 12px; line-height: 1.5; color: rgba(255, 255, 255, .86); margin-top: 3px; }

/* 轻提示 */
.pt-toast {
  position: fixed; left: 50%; bottom: 26%; transform: translateX(-50%);
  z-index: 3000; background: rgba(0, 0, 0, .78); color: #fff;
  font-size: 13px; padding: 9px 16px; border-radius: 999px;
  animation: fadeUp .2s ease-out;
}

/* ---------------- 老板端「我的」：底部制作方署名 ---------------- */
.pt-made { padding: 2px 0 12px; text-align: center; }
.pt-made a {
  display: inline-block; padding: 4px 10px;
  font-size: 11px; line-height: 1.5; letter-spacing: .3px;
  color: var(--text-4); opacity: .6;
}
.pt-made a:active { opacity: .9; }

/* =============================================================
   第一套 H5 移植：商品详情页（点商品 → 商品详情 → 立即下单）
   仅作用于 .pdp- 前缀，不影响原有页面
   ============================================================= */
.pdp-page { margin: 0 -12px; background: var(--bg); }
@media (min-width: 640px) { .pdp-page { margin: 0 -16px; } } /* 与 .wrap-pad 的响应式内边距保持一致 */
.pdp-shop {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px 9px; background: #fff;
  font-size: 13px; font-weight: 600; color: var(--text);
}
.pdp-shop svg { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; }
.pdp-hero { position: relative; background: #f0f2f5; padding-top: 75%; }
.pdp-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-soldout {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .42); color: #fff; font-size: 17px; font-weight: 700; letter-spacing: 3px;
}
.pdp-head { padding: 13px 14px; background: #fff; }
.pdp-title { font-size: 17px; font-weight: 700; line-height: 1.45; color: var(--text); word-break: break-word; }
.pdp-picked { margin-top: 7px; font-size: 12px; color: var(--primary-deep); }
.pdp-priceline { display: flex; align-items: baseline; gap: 8px; margin-top: 11px; }
.pdp-now { display: flex; align-items: baseline; color: var(--price-sym); font-weight: 800; }
.pdp-now i { font-style: normal; font-size: 13px; }
.pdp-now b { font-size: 25px; letter-spacing: -.5px; }
.pdp-old { font-size: 12.5px; color: var(--text-4); text-decoration: line-through; }
.pdp-sold { margin-left: auto; font-size: 12px; color: var(--text-4); }
.pdp-sec { margin-top: 8px; padding: 13px 14px; background: #fff; }
.pdp-sec-head { display: flex; align-items: center; gap: 6px; margin-bottom: 9px; }
.pdp-sec-bar { width: 3px; height: 14px; border-radius: 2px; background: var(--grad-main); }
.pdp-sec-title { font-size: 14px; font-weight: 700; color: var(--text); }
.pdp-text { font-size: 13px; line-height: 1.85; color: var(--text-3); word-break: break-word; }
.pdp-badges {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  margin-top: 8px; padding: 14px 10px; background: #fff;
}
.pdp-badge { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 11px; color: var(--text-3); }
.pdp-badge svg { width: 23px; height: 23px; color: var(--primary); }
.pdp-review { padding: 11px 0; border-bottom: 1px solid var(--divider-soft); }
.pdp-review:last-child { border-bottom: 0; padding-bottom: 2px; }
.pdp-review-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.pdp-review-top b { font-weight: 600; color: var(--text-2); }
.pdp-review-top span { color: #f9ae3d; letter-spacing: 1px; }
.pdp-review-txt { margin-top: 6px; font-size: 12.5px; line-height: 1.75; color: var(--text-3); word-break: break-word; }
.pdp-empty { padding: 16px 0 6px; text-align: center; font-size: 12.5px; color: var(--text-4); }
.pdp-note { padding: 14px 18px 6px; text-align: center; font-size: 11px; line-height: 1.7; color: var(--text-5); }

/* 商品详情 · 底部固定「立即下单」栏 */
.pdp-bar-spacer { height: 72px; }
.pdp-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--divider-soft); box-shadow: 0 -2px 12px rgba(0, 0, 0, .06);
}
.pdp-bar-form { flex: 0 0 auto; margin: 0; }
.pdp-icon-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  width: 54px; height: 46px; padding: 0; border: 0; background: transparent;
  font-size: 10px; color: var(--text-4);
}
.pdp-icon-btn svg { width: 21px; height: 21px; }
.pdp-icon-btn.on { color: var(--primary-deep); }
.pdp-icon-btn:disabled { opacity: .5; }
.pdp-order-btn {
  flex: 1; display: flex; align-items: center; justify-content: center;
  height: 46px; border: 0; border-radius: var(--r-pill);
  background: var(--grad-modern); color: #fff;
  font-size: 16px; font-weight: 700; letter-spacing: 2px;
  box-shadow: var(--shadow-blue);
}
.pdp-order-btn.dis { background: var(--text-5); color: #fff; box-shadow: none; }

/* =============================================================
   商家派单端（merchant.php）—— 独立端：首页 / 订单 / 我的
   沿用打手端 pt-* 组件与蓝色主题，仅补充商家专属的少量组件
   ============================================================= */

/* 首页两张派单入口卡（默认蓝色调 = 自定义派单，.amber = 常规派单） */
.mch-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.mch-act {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 14px; border-radius: var(--r-l); background: var(--card);
  border: 1px solid var(--divider-soft); box-shadow: var(--shadow-card);
}
.mch-act-ico {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; margin-bottom: 8px; border-radius: 12px;
  background: var(--blue-soft-2); color: var(--primary-deep);
}
.mch-act-ico svg { width: 21px; height: 21px; }
.mch-act-title { font-size: 15px; font-weight: 700; color: var(--text-strong); }
.mch-act-sub { min-height: 34px; margin-top: 3px; font-size: 11.5px; line-height: 1.5; color: var(--text-4); }
.mch-act-btn {
  margin-top: 8px; padding: 6px 14px; border-radius: var(--r-pill);
  background: var(--grad-modern); color: #fff; font-size: 12.5px; font-weight: 600;
  box-shadow: var(--shadow-blue);
}
.mch-act.amber .mch-act-ico { background: rgba(249, 174, 61, .16); color: #c07b12; }
.mch-act.amber .mch-act-btn { background: linear-gradient(135deg, #ffc86b, #f9ae3d); box-shadow: 0 2px 6px rgba(249, 174, 61, .35); }

/* 选择芯片（游戏 / 区服 / 服务类型 / 订单状态） */
.mch-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; -webkit-overflow-scrolling: touch; }
.mch-chips::-webkit-scrollbar { display: none; }
.mch-chip { position: relative; flex: 0 0 auto; margin: 0; }
.mch-chip input { position: absolute; opacity: 0; pointer-events: none; }
.mch-chip > span {
  display: block; padding: 7px 14px; border-radius: var(--r-pill);
  background: #fff; border: 1px solid var(--divider);
  font-size: 13px; color: var(--text-3); white-space: nowrap;
}
.mch-chip input:checked + span,
.mch-chip.on > span { background: var(--grad-modern); border-color: transparent; color: #fff; font-weight: 600; }

/* 表单 */
.mch-field { margin-top: 12px; }
.mch-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.mch-req { margin-left: 2px; color: var(--red); font-style: normal; }
.mch-input {
  box-sizing: border-box; width: 100%; height: 42px; padding: 0 12px;
  border: 1px solid var(--divider); border-radius: var(--r-m);
  background: #fff; font-size: 14px; color: var(--text-strong);
}
.mch-input:focus { border-color: var(--primary); outline: none; }
textarea.mch-textarea { height: auto; padding: 10px 12px; line-height: 1.6; resize: vertical; font-family: inherit; }
select.mch-input { padding: 0 8px; }
.mch-note { margin-top: 8px; font-size: 12px; line-height: 1.6; color: var(--text-4); }
.mch-tip { font-size: 11.5px; color: var(--text-4); }
.mch-submit-card { margin-bottom: 0; }
.mch-submit-card .pt-btn { margin-top: 10px; }

/* 常规派单：服务摘要 */
.mch-svc { display: flex; align-items: center; gap: 12px; }
.mch-svc-img { flex: 0 0 auto; width: 64px; height: 64px; border-radius: var(--r-m); overflow: hidden; background: var(--blue-soft); }
.mch-svc-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mch-svc-body { min-width: 0; }
.mch-svc-title { font-size: 14.5px; font-weight: 700; color: var(--text-strong); }
.mch-svc-price { margin-top: 4px; font-size: 12.5px; color: var(--price-num); }

/* 订单页合计条 */
.mch-sum {
  display: flex; align-items: center; justify-content: space-between;
  margin: 2px 0 10px; padding: 10px 14px; border-radius: var(--r-m);
  background: var(--blue-soft); font-size: 12.5px; color: var(--text-3);
}
.mch-sum b { font-size: 14px; color: var(--primary-deep); }

/* 我的资产 */
.mch-balance { padding: 4px 0 2px; }
.mch-balance-num { font-size: 26px; font-weight: 800; letter-spacing: .5px; color: var(--primary-deep); }
.mch-balance-hint { margin-top: 4px; font-size: 12px; line-height: 1.6; color: var(--text-4); }
.mch-balance-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--divider-soft);
  font-size: 13px; color: var(--text-3);
}
.mch-balance-row b { font-size: 14px; color: var(--text-strong); }
.mch-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.mch-two-btn {
  display: flex; align-items: center; justify-content: center; height: 42px;
  border-radius: var(--r-pill); background: var(--blue-soft-2);
  color: var(--primary-deep); font-size: 14px; font-weight: 600;
}
.mch-two-btn.primary { background: var(--grad-modern); color: #fff; box-shadow: var(--shadow-blue); }

/* 资产明细 */
.mch-amt { margin-left: 8px; font-style: normal; font-weight: 700; }
.mch-amt.in { color: var(--ok); }
.mch-amt.out { color: var(--red); }

/* 订单进度时间线 */
.mch-timeline { padding-top: 2px; }
.mch-tl-item { display: flex; gap: 10px; padding-bottom: 14px; }
.mch-tl-dot { flex: 0 0 auto; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--blue-soft-2); }
.mch-tl-body { flex: 1; min-width: 0; }
.mch-tl-text { font-size: 13.5px; line-height: 1.6; color: var(--text-2); }
.mch-tl-time { margin-top: 2px; font-size: 11.5px; color: var(--text-4); }
.mch-tl-img { display: block; max-width: 130px; margin-top: 6px; border-radius: var(--r-s); }

/* 订单留言 */
.mch-chat { display: flex; flex-direction: column; gap: 10px; max-height: 320px; overflow-y: auto; }
.mch-chat-row { display: flex; }
.mch-chat-row.me { justify-content: flex-end; }
.mch-chat-bubble { max-width: 78%; padding: 8px 12px; border-radius: 12px; background: var(--bg); }
.mch-chat-row.me .mch-chat-bubble { background: var(--blue-soft-2); }
.mch-chat-name { font-size: 11.5px; color: var(--text-4); }
.mch-chat-text { margin-top: 2px; font-size: 13.5px; line-height: 1.6; color: var(--text-2); word-break: break-word; }
.mch-chat-time { margin-top: 3px; font-size: 11px; color: var(--text-5); text-align: right; }
.mch-chat-form { display: flex; gap: 8px; margin-top: 12px; }
.mch-chat-form .mch-input { flex: 1; }
.mch-chat-form .pt-btn { flex: 0 0 auto; width: auto; height: 42px; padding: 0 18px; }

/* 详情页底部操作条（关闭派单 / 去支付 / 确认收货） */
.mch-bar-pad { height: 76px; }
.mch-bar {
  position: fixed; left: 0; right: 0; z-index: 998;
  bottom: calc(88px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px;
  max-width: 640px; margin: 0 auto; padding: 10px 16px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--divider-soft);
}
.mch-bar > a, .mch-bar > form { flex: 1; margin: 0; }
.mch-bar-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 46px; border: 0; border-radius: var(--r-pill);
  font-size: 15px; font-weight: 700; letter-spacing: 1px;
}
.mch-bar-btn.primary { background: var(--grad-modern); color: #fff; box-shadow: var(--shadow-blue); }
.mch-bar-btn.ghost { background: #fff; color: var(--text-3); border: 1px solid var(--divider); }

@media (max-width: 360px) {
  .mch-acts { grid-template-columns: 1fr; }
}
