/* ============================================================
   C 端 H5 付款页样式（docs/121）
   ------------------------------------------------------------
   客人是在微信里、单手、用手机看这个页面：
     - 主操作放首屏下半部，点按目标 >= 44px；
     - 价格用大字号、唯一强调色，不搞后台那种密集表格；
     - 状态提示用色块 + 一句人话，不用「状态码」「编排」「放行」这类内部词。
   与企业差旅 /corp/、酒店后台 /eb/ 刻意用不同主色，免得客人以为进错了地方。
   ============================================================ */
:root {
  --h-primary: #0f6f5c;
  --h-primary-dark: #0a5547;
  --h-primary-soft: #e6f4f0;
  --h-ink: #17212b;
  --h-ink-2: #4a5765;
  --h-ink-3: #8994a1;
  --h-line: #e4e9ed;
  --h-bg: #f4f6f8;
  --h-card: #ffffff;
  --h-price: #c0392b;
  --h-ok: #0f6f5c;
  --h-ok-soft: #e6f4f0;
  --h-warn: #a8600b;
  --h-warn-soft: #fff5e6;
  --h-danger: #b4262a;
  --h-danger-soft: #fdecec;
  --h-radius: 14px;
  --h-safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0;
  background: var(--h-bg); color: var(--h-ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 15px; line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
body { touch-action: manipulation; -webkit-touch-callout: none; }

.h-top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  height: 52px; background: #fff; border-bottom: 1px solid var(--h-line);
}
.h-top h1 { margin: 0; font-size: 17px; font-weight: 600; }
.h-back {
  position: absolute; left: 8px; top: 6px;
  width: 40px; height: 40px; border: 0; background: transparent;
  font-size: 28px; line-height: 1; color: var(--h-ink-2); cursor: pointer;
}

.h-wrap { max-width: 520px; margin: 0 auto; padding: 14px 14px calc(28px + var(--h-safe-b)); }
.h-card {
  background: var(--h-card); border-radius: var(--h-radius);
  padding: 16px; margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(20, 32, 51, .05);
}
.h-card h2 { margin: 0 0 12px; font-size: 15px; font-weight: 600; }
.h-row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; padding: 6px 0; font-size: 14px;
}
.h-row > span:first-child { color: var(--h-ink-2); flex: 0 0 auto; }
.h-row .h-v { color: var(--h-ink); text-align: right; word-break: break-all; }
.h-row.h-total { border-top: 1px solid var(--h-line); margin-top: 8px; padding-top: 12px; }
.h-row.h-total > span:first-child { font-weight: 600; color: var(--h-ink); }
.h-price { font-size: 24px; font-weight: 700; color: var(--h-price); }
.h-price small { font-size: 14px; font-weight: 600; }

.h-field { margin-bottom: 14px; }
.h-field label { display: block; font-size: 13px; color: var(--h-ink-2); margin-bottom: 6px; }
.h-field label .h-req { color: var(--h-danger); }
.h-field input, .h-field select {
  width: 100%; height: 44px; padding: 0 12px;
  border: 1px solid var(--h-line); border-radius: 10px;
  background: #fff; color: var(--h-ink); font-size: 15px;
  outline: none; -webkit-appearance: none;
}
.h-field input:focus, .h-field select:focus { border-color: var(--h-primary); }
.h-hint { font-size: 12px; color: var(--h-ink-3); margin-top: 6px; }

.h-stepper { display: flex; align-items: center; gap: 14px; }
.h-stepper button {
  width: 40px; height: 40px; border: 1px solid var(--h-line); border-radius: 10px;
  background: #fff; font-size: 22px; line-height: 1; color: var(--h-ink); cursor: pointer;
}
.h-stepper .h-num { min-width: 28px; text-align: center; font-size: 17px; font-weight: 600; }

.h-btn {
  display: block; width: 100%; min-height: 48px;
  border: 0; border-radius: 12px; background: var(--h-primary); color: #fff;
  font-size: 16px; font-weight: 600; cursor: pointer;
}
.h-btn:disabled { background: #a9b7b5; cursor: not-allowed; }
.h-btn.h-ghost { background: #fff; color: var(--h-primary); border: 1px solid var(--h-primary); margin-top: 10px; }

.h-tip {
  border-radius: 10px; padding: 10px 12px; margin-bottom: 12px;
  font-size: 13px; line-height: 1.55;
}
.h-tip.h-info { background: var(--h-primary-soft); color: var(--h-primary-dark); }
.h-tip.h-ok { background: var(--h-ok-soft); color: var(--h-ok); }
.h-tip.h-warn { background: var(--h-warn-soft); color: var(--h-warn); }
.h-tip.h-err { background: var(--h-danger-soft); color: var(--h-danger); }
.h-tip[hidden] { display: none; }

.h-foot { font-size: 12px; color: var(--h-ink-3); text-align: center; margin-top: 16px; line-height: 1.7; }
.h-loading { text-align: center; color: var(--h-ink-3); padding: 40px 0; font-size: 14px; }
.h-center { text-align: center; }
.h-state-icon {
  width: 62px; height: 62px; line-height: 62px; margin: 8px auto 14px;
  border-radius: 50%; font-size: 30px; color: #fff; background: var(--h-ok);
}
.h-state-icon.h-bad { background: var(--h-warn); }
.h-big { font-size: 19px; font-weight: 600; margin-bottom: 6px; }
