/* 微信支付收款系统 · 前台样式
   移动优先，克制的暖灰底 + 深绿主色，钱相关的页面少用颜色，避免廉价感 */

:root {
  --bg:        #f5f4f0;
  --card:      #ffffff;
  --ink:       #17211e;
  --ink-2:     #3d4a45;
  --sub:       #6d7873;
  --faint:     #a3ada8;
  --line:      #e9e6df;
  --line-2:    #f0eee8;
  --accent:    #14624e;
  --accent-dk: #0f4d3d;
  --warn-bg:   #fdf6e3;
  --warn-ink:  #8a5d0a;
  --radius:    18px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 16px env(safe-area-inset-bottom);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- 顶部品牌条 ---------- */
.brandbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 4px 14px;
  color: var(--sub);
  font-size: 13px;
  letter-spacing: .02em;
}
.brand-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(20, 98, 78, .12);
}
.brand-name { font-weight: 600; color: var(--ink-2); }

.main { flex: 1 0 auto; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid rgba(23, 33, 30, .05);
  box-shadow: 0 1px 2px rgba(23, 33, 30, .04), 0 12px 28px -18px rgba(23, 33, 30, .22);
  padding: 26px 22px 24px;
}
.card + .card { margin-top: 12px; }
.card-center { text-align: center; }

/* ---------- 文案 ---------- */
.kicker {
  margin: 0 0 10px;
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
}
.h1 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -.01em;
}
.lede {
  margin: 0 0 4px;
  color: var(--sub);
  font-size: 14px;
  line-height: 1.7;
}
.sub { margin: 0 0 4px; color: var(--sub); font-size: 14px; }

/* ---------- 金额 ---------- */
.amount {
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.1;
  margin: 4px 0 12px;
  font-variant-numeric: tabular-nums;
}
.amount .cur {
  font-size: 22px;
  font-weight: 600;
  margin-right: 3px;
  vertical-align: 10px;
  color: var(--ink-2);
}
.amount-sm { font-size: 33px; margin: 6px 0 10px; }
.amount-sm .cur { font-size: 17px; vertical-align: 6px; }
.order-title { font-size: 17px; font-weight: 600; margin: 0 0 4px; }

/* ---------- 键值表 ---------- */
.kv { margin: 20px 0 4px; padding: 0; }
.kv > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-2);
}
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--sub); font-size: 13px; flex: none; }
.kv dd { margin: 0; font-size: 13px; text-align: right; word-break: break-all; }
.kv-tight { margin-top: 16px; text-align: left; }
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  letter-spacing: -.01em;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 50px;
  padding: 0 18px;
  border: 0;
  border-radius: 13px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background-color .15s ease, transform .06s ease;
  margin-top: 18px;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:active { background: var(--accent-dk); }
.btn-ghost { background: #f2f1ec; color: var(--ink); font-weight: 500; }
.btn-ghost:active { background: #e9e7e0; }
.btn[disabled] { opacity: .72; pointer-events: none; }
.is-loading { letter-spacing: .04em; }

.tip {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--sub);
  text-align: center;
  line-height: 1.6;
}

/* ---------- 安全说明 ---------- */
.safety {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
  font-size: 12px;
  color: var(--sub);
  line-height: 1.6;
}
.shield { color: var(--accent); flex: none; margin-top: 1px; }

/* ---------- 引导步骤 ---------- */
.steps { list-style: none; margin: 18px 0 0; padding: 0; }
.steps li {
  display: flex;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-2);
}
.steps li:last-child { border-bottom: 0; }
.step-no {
  flex: none;
  width: 23px; height: 23px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps b { display: block; font-size: 14.5px; font-weight: 600; margin-bottom: 2px; }
.steps span { display: block; font-size: 12.5px; color: var(--sub); line-height: 1.6; }

.order-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 0;
  padding: 13px 15px;
  background: #f7f6f2;
  border-radius: 12px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.order-mini b { font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- 状态图标 ---------- */
.state-icon {
  width: 56px; height: 56px;
  margin: 2px auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.state-ok   { background: #e6f2ed; color: var(--accent); }
.state-warn { background: #fdf3e0; color: var(--warn-ink); }
.state-info { background: #e9eef6; color: #2b5b95; }
.state-wait { background: #eef1ee; color: #4a5852; }

.state-title {
  margin: 0 0 8px;
  font-size: 19.5px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.state-text {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--sub);
  line-height: 1.72;
}
.state-hint {
  margin: 16px 0 0;
  padding: 11px 13px;
  background: var(--warn-bg);
  border: 1px solid #f2e3bb;
  border-radius: 11px;
  font-size: 12.5px;
  color: var(--warn-ink);
  text-align: left;
  line-height: 1.68;
}
.card-center .amount { margin-left: auto; margin-right: auto; }

/* ---------- 页脚 ---------- */
.foot {
  flex: none;
  padding: 22px 0 30px;
  text-align: center;
}
.foot p { margin: 0; font-size: 11.5px; color: var(--faint); }

/* ---------- 小屏微调 ---------- */
@media (max-width: 360px) {
  .amount { font-size: 40px; }
  .card { padding: 22px 18px 20px; }
  .h1 { font-size: 19px; }
}

/* ---------- 文件下载区（付款成功后出现） ---------- */
.dl-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.dl-sub {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--sub);
  line-height: 1.6;
}

.dl-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 列表里多个按钮时去掉 .btn 自带的上间距，否则会层层叠加 */
.dl-list .dl-item {
  margin-top: 0;
  text-decoration: none;
}

.dl-item svg {
  flex: none;
}
