/* ==========================================================
   工银e钱包新客开户活动 - 移动端 H5 样式
   主红 #C8281E / 金 #C9A063 / 米白 #FAF6F0
   ========================================================== */
:root {
  --red: #C8281E;
  --red-dark: #A01D15;
  --gold: #C9A063;
  --gold-light: #E8D5B0;
  --bg: #FAF6F0;
  --card: #FFFFFF;
  --text: #333333;
  --text-sub: #8C8C8C;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

.ic { width: 1em; height: 1em; display: inline-block; vertical-align: -0.12em; }

/* ---------- 头部 banner ---------- */
.hero { background: linear-gradient(180deg, #FFF7F2 0%, var(--bg) 100%); }
.hero-banner { display: block; width: 100%; height: auto; }

/* ---------- 主体 ---------- */
.main { max-width: 640px; margin: 0 auto; padding: 0 16px 40px; }
.result-main { padding-top: 40px; }

.head-card, .rules-card, .result-card, .tips-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(200, 40, 30, 0.06);
  padding: 24px 20px;
  margin-top: -28px;
  position: relative;
}
.rules-card, .tips-card { margin-top: 16px; }
.result-card { margin-top: 0; text-align: center; padding: 40px 24px; }

.title {
  font-size: 24px;
  font-weight: 700;
  color: var(--red);
  text-align: center;
  letter-spacing: 1px;
}
.subtitle {
  margin-top: 6px;
  text-align: center;
  color: var(--text-sub);
  font-size: 14px;
}

.benefit {
  margin: 18px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FFF9EF 0%, #FBEED8 100%);
  border: 1px solid var(--gold-light);
  color: #8A6D3B;
  font-size: 16px;
  font-weight: 600;
}
.benefit .ic { color: var(--gold); font-size: 18px; }

/* ---------- 按钮（全局统一） ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 20px;
  padding: 14px 20px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #E04A3A 0%, var(--red) 55%, var(--red-dark) 100%);
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(200, 40, 30, 0.28);
  transition: opacity 0.2s, transform 0.1s;
  text-decoration: none;
}
.btn-primary:active { transform: scale(0.98); }
.btn-primary[disabled] {
  background: #D8D8D8;
  color: #FFFFFF;
  box-shadow: none;
  cursor: not-allowed;
}
.btn-primary .btn-ic { font-size: 18px; }
.btn-primary.loading .btn-label::after { content: "…"; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 12px;
  padding: 12px 20px;
  border: 1px solid var(--red);
  border-radius: 999px;
  background: transparent;
  color: var(--red);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.btn-block { display: flex; }

.state-tip {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  color: var(--text-sub);
}

/* ---------- 细则卡片 ---------- */
.rules-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--red);
  padding-bottom: 12px;
  border-bottom: 1px solid #F2E8DC;
  margin-bottom: 12px;
}
.rules-head .ic { font-size: 18px; }

.rules-body { font-size: 14px; color: #555555; }
.rules-body p { margin: 6px 0; }
.rules-body h3, .rules-body h4 { color: var(--red); margin: 10px 0 6px; font-size: 15px; }
.rules-body ul, .rules-body ol { padding-left: 20px; margin: 6px 0; }
.rules-body li { margin: 4px 0; }

.foot-note {
  margin-top: 20px;
  text-align: center;
  font-size: 12px;
  color: #B4A48E;
}

/* ---------- 结果页 ---------- */
.result-icon { font-size: 56px; line-height: 1; color: var(--gold); }
.result-icon.ok { color: #1A7F37; }
.result-icon.fail { color: var(--red); }
.result-icon .ic { width: 1em; height: 1em; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.result-title { margin-top: 16px; font-size: 20px; color: var(--text); }
.result-msg { margin-top: 8px; font-size: 14px; color: var(--text-sub); min-height: 22px; }
.result-actions { margin-top: 26px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 15%;
  transform: translateX(-50%);
  max-width: 78%;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(40, 40, 40, 0.88);
  color: #FFFFFF;
  font-size: 14px;
  text-align: center;
  z-index: 99;
  animation: fadein 0.25s ease;
}
@keyframes fadein { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
