/* ============================================================
   卡卡回来了 · MVP V0.1
   设计令牌 —— 与 UI/DESIGN_SPEC.md 一致
   （感谢费等业务数据以冻结文档 V0.1.3 为准）
   ============================================================ */
:root {
  --bg: #FAF8F5;
  --surface: #FFFFFF;
  --text-primary: #23262E;
  --text-secondary: #6B7079;
  --text-muted: #8E949C;
  --line: #ECE8E2;
  --accent: #F97316;
  --accent-strong: #C2410C;
  --accent-soft: #FFE9D8;
  --blue: #3B6FE0;
  --blue-soft: #EAF2FE;
  --success: #35A15C;
  --success-soft: #E8F6EC;
  --error: #D64545;
  --radius-md: 16px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: "Noto Sans SC", "PingFang SC", -apple-system, BlinkMacSystemFont,
    "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 单列、居中、大留白，390px 基准 */
.app {
  max-width: 390px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* 屏幕容器 */
.screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  animation: enter .28s ease both;
}
.screen--home   { padding: 28px 24px 32px; }
.screen--result { padding: 48px 24px 32px; }
.screen--done   { padding: 24px; justify-content: center; text-align: center; }

@keyframes enter {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Hero —— 品牌 + IP + 标题
   ============================================================ */
.hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.brand { font-size: 15px; font-weight: 700; letter-spacing: 2px; color: var(--accent-strong); }
.title { font-size: 34px; font-weight: 700; line-height: 1.25; }
.subtitle { font-size: 16px; font-weight: 400; color: var(--text-secondary); }

/* IP 光环 + 卡卡信鸽 */
.ip-halo {
  width: 156px; height: 156px; border-radius: 50%;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
}
.ip { width: 108px; height: 108px; display: block; }
.ip--small { width: 120px; height: 120px; }

/* ============================================================
   Form
   ============================================================ */
.form { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field .label { font-size: 16px; font-weight: 600; color: var(--text-primary); }
.field .control {
  height: 56px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0 16px;
  display: flex; align-items: center;
}
.field input {
  width: 100%; border: none; outline: none; background: transparent;
  font-family: inherit; font-size: 16px; font-weight: 400;
  color: var(--text-primary);
}
.field input::placeholder { color: var(--text-muted); }
.field .helper { font-size: 13px; font-weight: 400; color: var(--text-muted); }

/* 错误态：边框变红、提示变红、举例隐藏 */
.field.error .control { border-color: var(--error); }
.field .helper.error { color: var(--error); }
.field.error input::placeholder { color: transparent; }

/* ============================================================
   Button / Primary
   ============================================================ */
.btn {
  width: 100%; height: 56px;
  border: none; border-radius: var(--radius-md);
  background: var(--accent-strong);
  color: #FFFFFF; font-size: 16px; font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .06s ease, opacity .2s ease, background .2s ease;
}
.btn:active { transform: scale(.985); }
.btn:disabled { background: var(--accent-soft); color: var(--accent-strong); cursor: not-allowed; }
.btn--block { margin-top: 8px; }

/* S2.5 角色选择按钮（主文案 + 副文案） */
.role-btn {
  flex-direction: column;
  height: auto;
  padding: 18px 16px;
  gap: 4px;
}
.role-main { font-size: 16px; font-weight: 700; }
.role-sub { font-size: 13px; font-weight: 400; opacity: .85; }

/* 查询中 ··· 三点动画 */
.dots { display: inline-flex; }
.dot { display: inline-block; animation: blink 1.2s infinite; }
.dot:nth-child(2) { animation-delay: .2s; }
.dot:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* ============================================================
   结果页
   ============================================================ */
.result-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.result-title { font-size: 28px; font-weight: 700; }
.result-summary {
  font-size: 16px; font-weight: 600; color: var(--text-primary);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px 22px;
  letter-spacing: 1px;
}
.result-sub { font-size: 16px; font-weight: 400; color: var(--text-secondary); }

/* ============================================================
   支付页金额 + 费用分解
   ============================================================ */
.amount { font-size: 18px; font-weight: 600; color: var(--text-primary); }
.fee-note { font-size: 15px; font-weight: 400; color: var(--text-secondary); }
.fee-breakdown {
  font-size: 13px; font-weight: 400; color: var(--text-muted);
  text-align: center; margin-top: 4px;
}

/* ============================================================
   查看手机号
   ============================================================ */
.phone-label { font-size: 15px; font-weight: 400; color: var(--text-secondary); }
.phone-number { font-size: 34px; font-weight: 700; color: var(--text-primary); letter-spacing: 2px; }
.phone-hint { font-size: 15px; font-weight: 400; color: var(--text-secondary); text-align: center; }
.info-note {
  display: flex;
  align-items: center;   /* 改 flex-start → center */
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  justify-content: center;
  margin-top: 12px;
}
.info-note svg {
  flex-shrink: 0;
  /* margin-top: 2px;  ← 删除或注释掉这行 */
  width: 16px;   /* 新增：限制宽 */
  height: 16px;  /* 新增：限制高 */
}

/* ============================================================
   完成页（Check 光环）
   ============================================================ */
.check-halo {
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--success-soft);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.check-halo svg { width: 44px; height: 44px; }
.done-title { font-size: 24px; font-weight: 700; }
.done-sub { font-size: 16px; font-weight: 400; color: var(--text-secondary); margin-top: 6px; }
.done-foot { font-size: 14px; font-weight: 400; color: var(--text-muted); margin-top: 28px; }

/* ============================================================
   底部信任信息
   ============================================================ */
.trust {
  margin-top: 32px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.trust-item { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 400; color: var(--text-secondary); }
.trust-item svg { width: 14px; height: 14px; flex-shrink: 0; }

/* 屏幕底部留白（信任信息贴底） */
.screen--home .trust { margin-top: auto; padding-top: 32px; }
