/* 涌电通「推荐有礼」H5 样式 —— 品牌 VI：主橙 FF6600 / 深橙 E85D04 / 浅辅 FFF5EB / 灰阶 333/666/999 */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --orange: #FF6600;
  --orange-deep: #E85D04;
  --orange-light: #FFF5EB;
  --ink: #333333;
  --gray: #666666;
  --gray-light: #999999;
  --line: #f0e3d8;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f6f1eb;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
}

.app {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  background: #fffdfa;
  position: relative;
}

.view { min-height: 100vh; }

/* ===== 顶部返回栏 ===== */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 16px;
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid var(--line);
}
.topbar .back {
  width: 36px; height: 36px; border: none; border-radius: 50%;
  background: var(--orange-light); color: var(--orange-deep);
  font-size: 18px; cursor: pointer; display: grid; place-items: center;
}
.topbar .title { font-size: 16px; font-weight: 600; }

/* ===== 首页 Hero ===== */
.hero {
  background: linear-gradient(160deg, #FF7A1A 0%, var(--orange-deep) 100%);
  color: #fff; padding: 32px 20px 44px;
  position: relative; overflow: hidden;
}
.hero .brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.hero .brand .logo {
  width: 36px; height: 36px; border-radius: 10px; background: #fff;
  color: var(--orange); display: grid; place-items: center; font-weight: 800; font-size: 18px;
}
.hero .tag {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 20px; padding: 4px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.18); font-size: 12px;
}
.hero h1 { margin-top: 14px; font-size: 30px; font-weight: 800; line-height: 1.3; }
.hero .sub { margin-top: 10px; font-size: 13px; color: #fff2e6; }

.reward-card {
  margin-top: 24px; display: grid; grid-template-columns: 1fr 1px 1fr;
  align-items: center; gap: 12px; text-align: center;
  background: #fff; border-radius: 20px; padding: 18px 12px;
  color: #3a2a1e; box-shadow: 0 10px 24px rgba(232,93,4,0.18);
}
.reward-card .divider { width: 1px; height: 48px; background: #f3e2d5; justify-self: center; }
.reward-card .lbl { font-size: 12px; color: var(--gray-light); }
.reward-card .amt { margin-top: 4px; font-size: 30px; font-weight: 800; }
.reward-card .amt small { font-size: 16px; }
.reward-card .amt.r1 { color: var(--orange-deep); }
.reward-card .amt.r2 { color: var(--orange); }
.hero .self-tip { margin-top: 12px; text-align: center; font-size: 12px; color: #fff2e6; }

/* ===== 首页入口 ===== */
.entry-list {
  margin-top: -20px; padding: 0 16px 40px; position: relative; z-index: 2;
}
.action {
  width: 100%; display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid #f7ebe0; border-radius: 16px;
  padding: 16px; margin-top: 12px; cursor: pointer; text-align: left;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.action .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; flex-shrink: 0; }
.action .ic.c-orange { background: #FFF0E6; color: #FF6B19; }
.action .ic.c-yellow { background: #FFF7DA; color: #E89B00; }
.action .ic.c-blue { background: #F0F5FF; color: #3978DB; }
.action .tx { flex: 1; }
.action .tx b { font-size: 16px; display: block; }
.action .tx small { font-size: 12px; color: var(--gray-light); }
.action .arrow { color: #f0c39b; font-size: 18px; }
.rules-link { text-align: center; margin-top: 20px; }
.rules-link button { background: none; border: none; color: var(--gray); font-size: 13px; text-decoration: underline; cursor: pointer; }
.foot-hint { text-align: center; margin-top: 16px; font-size: 12px; color: #c4bcb3; }

/* ===== 表单 ===== */
.form { padding: 16px 16px 40px; }
.banner {
  background: linear-gradient(90deg, #FF7A1A 0%, #FF8B1A 100%);
  color: #fff; border-radius: 16px; padding: 16px; font-weight: 600;
}
.banner p { margin-top: 6px; font-size: 12px; font-weight: 400; color: #fff2e6; }
.section { margin-top: 14px; background: #fff; border: 1px solid #f7ebe0; border-radius: 16px; padding: 16px; }
.section h3 { font-size: 15px; font-weight: 600; padding-left: 10px; border-left: 4px solid var(--orange); line-height: 1.3; }
.field { margin-top: 14px; }
.field label { display: block; font-size: 13px; color: var(--gray); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; height: 46px; border: 1px solid #f0e3d8; border-radius: 12px;
  background: var(--orange-light); padding: 0 12px; font-size: 14px; color: var(--ink);
  outline: none; font-family: inherit;
}
.field textarea { height: auto; padding: 10px 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--orange); }
.consent {
  display: flex; gap: 8px; align-items: flex-start; margin-top: 14px;
  background: var(--orange-light); border-radius: 12px; padding: 12px; font-size: 12px; color: var(--gray);
}
.consent input { margin-top: 3px; }
.err { margin-top: 14px; background: #FDECEC; color: #C62828; border-radius: 12px; padding: 12px; font-size: 13px; }
.submit-btn {
  width: 100%; height: 52px; margin-top: 16px; border: none; border-radius: 16px;
  background: linear-gradient(90deg, #FF5D19 0%, #FF8B00 100%);
  color: #fff; font-size: 16px; font-weight: 700; cursor: pointer;
  box-shadow: 0 6px 16px rgba(232,93,4,0.25);
}
.submit-btn:disabled { opacity: 0.6; }

/* ===== 查询 ===== */
.query { padding: 16px 16px 40px; }
.query .tip { background: var(--orange-light); border-radius: 14px; padding: 14px; font-size: 13px; color: var(--gray); }
.query-form { margin-top: 14px; background: #fff; border: 1px solid #f7ebe0; border-radius: 16px; padding: 16px; }
.query-btn {
  width: 100%; height: 48px; border: none; border-radius: 12px;
  background: var(--orange); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer;
}
.result-card { margin-top: 14px; background: #fff; border: 1px solid #f7ebe0; border-radius: 16px; padding: 16px; }
.result-card .head { display: flex; justify-content: space-between; align-items: flex-start; }
.result-card .head b { font-size: 16px; }
.result-card .head .meta { font-size: 12px; color: var(--gray-light); margin-top: 2px; }
.badge { background: var(--orange-light); color: var(--orange-deep); border-radius: 999px; padding: 4px 12px; font-size: 12px; white-space: nowrap; }
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; margin-top: 22px; text-align: center; }
.steps .dot { width: 10px; height: 10px; border-radius: 50%; margin: 0 auto; }
.steps .dot.on { background: var(--orange); }
.steps .dot.off { background: #e8e0d8; }
.steps span { display: block; margin-top: 6px; font-size: 10px; color: var(--gray-light); }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; background: #FFF8F1; border-radius: 12px; padding: 14px; }
.metrics small { color: var(--gray-light); }
.metrics b { display: block; margin-top: 2px; font-size: 17px; }
.metrics b.hl { color: var(--orange-deep); }
.reward-line { margin-top: 12px; font-size: 13px; color: var(--gray); }

/* ===== 成功页 ===== */
.success { text-align: center; padding: 56px 24px; }
.success .icon { font-size: 60px; }
.success h2 { margin-top: 18px; font-size: 22px; font-weight: 700; }
.success .desc { margin-top: 8px; font-size: 13px; color: var(--gray); }
.code-box {
  max-width: 300px; margin: 24px auto 0; border: 2px dashed #F0C39B;
  background: var(--orange-light); border-radius: 16px; padding: 18px;
}
.code-box small { color: var(--gray-light); }
.code-box .code { display: block; margin-top: 6px; font-size: 30px; font-weight: 800; letter-spacing: 0.25em; color: var(--orange-deep); }
.code-box .warn { margin-top: 8px; font-size: 12px; color: #c4bcb3; }
.success .primary {
  width: 100%; height: 48px; margin-top: 28px; border: none; border-radius: 12px;
  background: var(--orange); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer;
}
.success .ghost {
  width: 100%; height: 48px; margin-top: 12px; border: 1px solid #F0C39B; border-radius: 12px;
  background: #fff; color: var(--orange-deep); font-size: 15px; font-weight: 500; cursor: pointer;
}

/* ===== 规则页 ===== */
.rules { padding: 20px 20px 48px; }
.rules h2 { font-size: 20px; font-weight: 700; }
.rules ol { margin-top: 16px; padding-left: 20px; }
.rules li { margin-top: 12px; font-size: 14px; color: var(--gray); }
.rules .foot { margin-top: 20px; background: var(--orange-light); border-radius: 12px; padding: 14px; font-size: 12px; color: var(--gray); }
.rules .service { margin-top: 16px; font-size: 13px; color: var(--gray); }

.hidden { display: none; }
