/* ============================================================
   软件开发咨询 · 移动端收款页
   基准 375px，桌面居中 480px；支付走支付宝 WAP / 微信 H5，无二维码
   ============================================================ */

:root {
  --primary: #1d4ed8;
  --primary-2: #3b82f6;
  --price: #e11d48;
  --text: #0f172a;
  --text-2: #475569;
  --muted: #64748b;
  --hint: #94a3b8;
  --line: #e2e8f0;
  --bg: #eef2f7;
  --card: #fff;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 10px 28px -18px rgba(15, 23, 42, .22);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}

img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

.page {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  overflow: hidden;
  background: var(--bg);
}

/* ---------------- 顶部 ---------------- */
.hero {
  position: relative;
  padding: calc(24px + env(safe-area-inset-top)) 20px 24px;
  color: #fff;
  background: linear-gradient(140deg, #0f172a 0%, #1e293b 55%, #1d4ed8 100%);
  border-radius: 0 0 24px 24px;
  overflow: hidden;
}
.deco { position: absolute; border-radius: 50%; pointer-events: none; }
.deco-1 { width: 170px; height: 170px; top: -66px; right: -44px; background: rgba(255, 255, 255, .10); }
.deco-2 { width: 110px; height: 110px; bottom: -58px; left: -28px; background: rgba(255, 255, 255, .07); }

.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; position: relative; }
.brand-logo {
  width: 42px; height: 42px; flex: 0 0 42px;
  display: grid; place-items: center;
  font-size: 19px; font-weight: 700;
  border-radius: 12px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28);
}
.brand-text { line-height: 1.35; min-width: 0; }
.brand-name { font-size: 14.5px; font-weight: 600; letter-spacing: .4px; }
.brand-tag { font-size: 8.5px; letter-spacing: 2.2px; opacity: .68; }

.hero h1 { font-size: 24px; font-weight: 700; line-height: 1.32; letter-spacing: .4px; position: relative; }
.hero-sub { font-size: 12.5px; opacity: .85; margin-top: 6px; letter-spacing: .3px; position: relative; }
.hero-badges { display: flex; gap: 7px; margin-top: 15px; position: relative; flex-wrap: wrap; }
.hero-badges span {
  font-size: 10.5px; padding: 4px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .22);
}

/* ---------------- 区块 ---------------- */
.section {
  margin: 13px 12px;
  padding: 17px 15px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: fadeUp .45s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }

.section-title {
  position: relative;
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px;
  padding-left: 11px;
  font-size: 15.5px; font-weight: 700; line-height: 1.4;
}
.section-title::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 4px; height: 14px; border-radius: 2px;
  background: linear-gradient(180deg, #2563eb, #60a5fa);
}
.section-sub { font-size: 10.5px; font-weight: 400; color: var(--hint); }

/* ---------------- 档位 ---------------- */
.plans { display: grid; gap: 10px; margin-top: 12px; }
.plan {
  position: relative;
  width: 100%;
  padding: 14px;
  text-align: left;
  border: 1.5px solid var(--line);
  border-radius: 13px;
  background: #fff;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.plan.active {
  border-color: var(--primary);
  background: #f6f9ff;
  box-shadow: 0 8px 22px -16px rgba(29, 78, 216, .9);
}
.plan.active::after {
  content: "✓";
  position: absolute; top: 11px; right: 12px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-size: 12px; font-weight: 700;
  display: grid; place-items: center;
}
.plan-h { display: flex; align-items: baseline; justify-content: space-between; padding-right: 28px; gap: 8px; }
.plan-name { font-size: 15px; font-weight: 700; }
.plan-price { font-size: 19px; font-weight: 800; color: var(--price); letter-spacing: -.3px; }
.plan-tag { margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.plan-items { list-style: none; display: grid; gap: 3px; margin-top: 9px; }
.plan-items li { position: relative; padding-left: 14px; font-size: 12px; color: var(--text-2); line-height: 1.55; }
.plan-items li::before { content: "·"; position: absolute; left: 4px; top: -.5px; color: var(--primary); font-weight: 700; }

/* ---------------- 表单 ---------------- */
.field { margin-top: 12px; }
.field:first-of-type { margin-top: 14px; }
.field label { display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 500; color: #334155; }
.field label em { color: var(--price); font-style: normal; }
.field label .opt { color: var(--hint); font-weight: 400; font-size: 11px; }
.field input, .field textarea {
  width: 100%;
  padding: 11px 12px;
  font-family: inherit; font-size: 15px; color: var(--text);
  background: #f8fafc;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  outline: none;
  transition: border-color .18s, background .18s, box-shadow .18s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 78px; resize: vertical; line-height: 1.6; font-size: 14px; }
.field input::placeholder, .field textarea::placeholder { color: #a8b4c4; font-size: 13.5px; }
.field input:focus, .field textarea:focus {
  background: #fff; border-color: var(--primary-2);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.form-note { margin-top: 10px; font-size: 11px; color: var(--hint); line-height: 1.6; }

/* ---------------- 流程 ---------------- */
.steps { list-style: none; counter-reset: s; display: grid; gap: 11px; margin-top: 12px; }
.steps li { counter-increment: s; position: relative; padding-left: 33px; }
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #e8effb; color: var(--primary);
  font-size: 12px; font-weight: 700;
  display: grid; place-items: center;
}
.steps b { display: block; font-size: 13.5px; font-weight: 600; }
.steps span { font-size: 12px; color: var(--muted); }

/* ---------------- 联系信息 ---------------- */
.contact { margin-top: 4px; }
.kv {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}
.kv:last-child { border-bottom: 0; }
.kv > span { font-size: 12px; color: var(--muted); }
.kv > strong { font-size: 13px; font-weight: 600; color: var(--text); word-break: break-all; line-height: 1.5; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace; letter-spacing: .3px; }
.mini {
  padding: 3px 9px; border-radius: 7px;
  border: 1px solid #dbeafe; background: #eff6ff; color: var(--primary);
  font-size: 11px; font-weight: 600; white-space: nowrap;
}
.tip {
  margin-top: 10px; padding: 9px 10px;
  border-radius: 9px;
  background: #fffbeb; border: 1px solid #fde68a;
  color: #b45309; font-size: 11.5px; line-height: 1.6;
}

/* ---------------- 页脚 ---------------- */
.footer { padding: 18px 20px 12px; text-align: center; font-size: 11px; color: var(--hint); line-height: 1.9; }
.footer .legal { font-size: 10.5px; color: #b6c2d2; line-height: 1.7; }
.footer .icp { margin-top: 6px; font-size: 10.5px; color: #b6c2d2; line-height: 1.8; }
.footer .icp a { color: #93a7be; text-decoration: none; }
.footer .icp a:hover { color: var(--ink2); }
.footer .icp .sep { margin: 0 5px; opacity: .55; }

/* ---------------- 底部支付栏 ---------------- */
.paybar {
  position: fixed; z-index: 20;
  left: max(0px, calc((100vw - 480px) / 2));
  right: max(0px, calc((100vw - 480px) / 2));
  bottom: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px -18px rgba(15, 23, 42, .5);
  backdrop-filter: blur(8px);
}
.paybar-info { display: flex; flex-direction: column; line-height: 1.2; min-width: 62px; }
.pb-label { font-size: 10.5px; color: var(--hint); }
.pb-price { font-size: 19px; font-weight: 800; color: var(--price); letter-spacing: -.3px; }
.paybar-btns { flex: 1; display: flex; gap: 8px; }
.btn-pay {
  flex: 1; min-height: 46px;
  border: 0; border-radius: 12px;
  color: #fff; font-size: 15px; font-weight: 700;
  transition: transform .12s, filter .18s;
}
.btn-pay.ali { background: #1677ff; }
.btn-pay.wx { background: #07c160; }
.btn-pay:active { transform: scale(.985); filter: brightness(.95); }
.btn-pay[disabled] { opacity: .55; }

/* ---------------- 结果页 ---------------- */
.page-result { padding-bottom: 10px; }
.r-hero {
  padding: 34px 20px 26px;
  text-align: center;
  color: #fff;
  background: linear-gradient(160deg, #0f172a, #1e293b 70%, #334155);
  border-radius: 0 0 22px 22px;
}
.r-icon { width: 66px; height: 66px; margin: 0 auto 14px; display: grid; place-items: center; }
.r-icon svg { width: 66px; height: 66px; }
.r-title { font-size: 20px; font-weight: 700; letter-spacing: .3px; }
.r-sub { font-size: 12.5px; opacity: .75; margin-top: 6px; }
.r-amount { color: var(--price); font-weight: 800; font-size: 15px; }
.r-no { font-size: 11.5px !important; font-weight: 500 !important; color: var(--text-2) !important; }
.r-note { font-size: 12.5px; color: var(--text-2); line-height: 1.7; }
.r-actions { display: flex; gap: 10px; margin-top: 14px; }
.r-actions .btn-ghost, .r-actions .btn-primary { flex: 1; margin: 0; padding: 11px; display: flex; align-items: center; justify-content: center; }

.btn-primary {
  border: 0; border-radius: 11px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .5px;
}
.btn-ghost {
  border: 1px solid #dbeafe; border-radius: 11px;
  background: #eff6ff; color: var(--primary);
  font-size: 14px; font-weight: 600;
}

/* ---------------- 轻提示 ---------------- */
.toast {
  position: fixed; left: 50%; bottom: calc(110px + env(safe-area-inset-bottom));
  z-index: 99; max-width: 84vw;
  padding: 10px 16px; border-radius: 999px;
  background: rgba(15, 23, 42, .92); color: #fff;
  font-size: 13px; text-align: center;
  opacity: 0; transform: translate(-50%, 14px);
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- 桌面端 ---------------- */
@media (min-width: 560px) {
  body { background: #e7ecf3; }
  .page { box-shadow: 0 0 60px rgba(15, 23, 42, .10); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
