/* ============================================================
   惠民信息申报 · 中国风移动端样式
   仅面向手机端，响应式适配 320px ~ 430px 及各安卓机型
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
  --red: #B01E24;          /* 中国红 */
  --red-deep: #7A1519;     /* 深红 */
  --red-soft: #C8464B;     /* 浅红 */
  --gold: #C9A24B;         /* 描金 */
  --gold-light: #E4CE8F;   /* 浅金 */
  --paper: #F7F1E3;        /* 宣纸底 */
  --paper-2: #FBF6EA;      /* 浅宣纸 */
  --ink: #2B2622;          /* 墨色 */
  --ink-soft: #5C544B;     /* 淡墨 */
  --line: #E0D3B4;         /* 描金分隔 */
  --white: #FFFDF8;
  --shadow: 0 8px 30px rgba(122, 21, 25, 0.12);
  --radius: 16px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ---------- 基础重置 ---------- */
* { 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", "Source Han Sans SC", sans-serif;
  color: var(--ink);
  background: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

/* 桌面端访问时，居中显示手机宽度容器（模拟手机视图） */
.app {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  position: relative;
  background:
    radial-gradient(circle at 20% 12%, rgba(201,162,75,0.10), transparent 42%),
    radial-gradient(circle at 82% 82%, rgba(176,30,36,0.06), transparent 46%),
    var(--paper);
  /* 宣纸纹理 */
  background-color: var(--paper);
  box-shadow: 0 0 40px rgba(0,0,0,0.25);
  overflow-x: hidden;
}

/* 宣纸纹理叠加层 */
.app::before {
  content: "";
  position: fixed;
  inset: 0;
  max-width: 480px;
  margin: 0 auto;
  pointer-events: none;
  opacity: 0.5;
  z-index: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(120,90,40,0.025) 0 2px, transparent 2px 4px),
    repeating-linear-gradient(90deg, rgba(120,90,40,0.02) 0 2px, transparent 2px 4px);
}

/* ============================================================
   页头 · 中国风横幅
   ============================================================ */
.header {
  position: relative;
  z-index: 1;
  padding: calc(var(--safe-top) + 26px) 20px 30px;
  text-align: center;
  color: var(--white);
  background:
    linear-gradient(160deg, var(--red) 0%, var(--red-deep) 100%);
  border-bottom: 3px solid var(--gold);
  overflow: hidden;
}

/* 祥云纹装饰（顶部两侧） */
.header::before,
.header::after {
  content: "";
  position: absolute;
  top: calc(var(--safe-top) + 14px);
  width: 60px; height: 60px;
  opacity: 0.28;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%23E4CE8F' stroke-width='4'%3E%3Cpath d='M10,60 q10,-20 25,-10 q5,-18 22,-10 q18,-4 22,12 q16,2 11,18 L10,80 Z'/%3E%3C/svg%3E");
}
.header::before { left: -6px; transform: scaleX(-1); }
.header::after { right: -6px; }

.header .emblem {
  width: 58px; height: 58px;
  margin: 0 auto 12px;
  border: 2px solid var(--gold-light);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 4px rgba(228,206,143,0.18);
}
.header .emblem svg { width: 32px; height: 32px; }

.header .title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.header .subtitle {
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--gold-light);
}
/* 回纹分隔线 */
.header .fret {
  margin: 16px auto 0;
  width: 120px; height: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='8' viewBox='0 0 40 8'%3E%3Cpath d='M0,7 h6 v-5 h6 v3 h-3 M20,7 h6 v-5 h6 v3 h-3' stroke='%23E4CE8F' stroke-width='1.4' fill='none'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  opacity: 0.8;
}

/* ============================================================
   公告条
   ============================================================ */
.notice {
  position: relative;
  z-index: 1;
  margin: 16px 16px 0;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--red-deep);
  background: linear-gradient(90deg, rgba(201,162,75,0.16), rgba(201,162,75,0.05));
  border: 1px solid var(--line);
  border-radius: 10px;
}
.notice .dot {
  flex: none;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(176,30,36,0.15);
}

/* ============================================================
   国家补助款（固定展示横幅）
   ============================================================ */
.subsidy {
  position: relative;
  z-index: 1;
  margin: 14px 16px 0;
  padding: 20px 18px 18px;
  text-align: center;
  color: var(--gold-light);
  background:
    radial-gradient(circle at 50% -30%, rgba(228,206,143,0.28), transparent 60%),
    linear-gradient(160deg, #8E1319 0%, #5E0F12 100%);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(122,21,25,0.28);
  overflow: hidden;
}
/* 描金内框 */
.subsidy::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(201,162,75,0.55);
  border-radius: calc(var(--radius) - 5px);
  pointer-events: none;
}
/* 光泽流动装饰 */
.subsidy-deco {
  position: absolute;
  top: -40%; left: -20%;
  width: 60%; height: 180%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.14), transparent);
  transform: rotate(18deg);
  animation: shine 3.6s ease-in-out infinite;
}
@keyframes shine {
  0%, 60% { left: -40%; }
  100% { left: 120%; }
}
.subsidy-label {
  position: relative;
  font-size: 14px;
  letter-spacing: 6px;
  color: var(--gold-light);
  margin-bottom: 4px;
}
.subsidy-amount {
  position: relative;
  line-height: 1;
  color: #FFE9A8;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
.subsidy-amount em {
  font-style: normal;
  font-size: 52px;
  font-weight: 900;
  letter-spacing: 2px;
}
.subsidy-amount span {
  font-size: 20px;
  font-weight: 700;
  margin-left: 6px;
}
.subsidy-tip {
  position: relative;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 1px;
  color: rgba(228,206,143,0.85);
}

/* ============================================================
   注意事项卡片
   ============================================================ */
.tips-card {
  position: relative;
  z-index: 1;
  margin: 14px 16px 0;
  padding: 14px 16px 15px;
  background: linear-gradient(180deg, #FFF7E9, #FBEFD8);
  border: 1px solid var(--gold);
  border-left: 5px solid var(--red);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(122,21,25,0.10);
}
.tips-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: var(--red-deep);
  letter-spacing: 2px;
  margin-bottom: 9px;
}
.tips-icon {
  flex: none;
  width: 20px; height: 20px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(176,30,36,0.15);
}
.tips-body {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink);
  text-align: justify;
}
.tips-body strong {
  color: var(--red);
  font-weight: 800;
}
.tips-body em {
  font-style: normal;
  display: inline-block;
  margin-top: 2px;
  color: var(--red);
  font-weight: 900;
  letter-spacing: 1px;
  animation: tipBlink 1s ease-in-out infinite;
}
@keyframes tipBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* ============================================================
   表单卡片
   ============================================================ */
.card {
  position: relative;
  z-index: 1;
  margin: 16px;
  padding: 22px 18px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
/* 卡片描金内框 */
.card::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(201,162,75,0.35);
  border-radius: calc(var(--radius) - 6px);
  pointer-events: none;
}

.card-title {
  position: relative;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  color: var(--red-deep);
  letter-spacing: 2px;
  margin-bottom: 20px;
}
.card-title span {
  position: relative;
  padding: 0 14px;
}
.card-title span::before,
.card-title span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.card-title span::before { right: 100%; }
.card-title span::after { left: 100%; transform: scaleX(-1); }

/* ---------- 表单项 ---------- */
.field { margin-bottom: 16px; position: relative; }

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}
.field label .req { color: var(--red); margin-left: 2px; }

.field input,
.field select,
.field textarea {
  width: 100%;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
  height: 48px;                 /* 触控友好 ≥44px */
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  appearance: none;
  font-family: inherit;
}
.field textarea {
  height: auto;
  min-height: 90px;
  padding: 12px 14px;
  resize: none;
  line-height: 1.6;
}
.field input::placeholder,
.field textarea::placeholder { color: #B6ab97; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(201,162,75,0.18);
}

/* 下拉箭头 */
.field.select-wrap::after {
  content: "";
  position: absolute;
  right: 16px; bottom: 18px;
  width: 8px; height: 8px;
  border-right: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(45deg);
  pointer-events: none;
}

/* 错误状态 */
.field.error input,
.field.error select,
.field.error textarea {
  border-color: var(--red-soft);
  background: #FDF0F0;
}
.field .err-msg {
  display: none;
  font-size: 12px;
  color: var(--red);
  margin-top: 5px;
}
.field.error .err-msg { display: block; }

/* ---------- 协议勾选 ---------- */
.agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-soft);
  margin: 4px 0 20px;
}
.agree input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--red); flex: none; }
.agree a { color: var(--red); text-decoration: none; }

/* ---------- 提交按钮 ---------- */
.btn-submit {
  width: 100%;
  height: 52px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--gold-light);
  background: linear-gradient(160deg, var(--red) 0%, var(--red-deep) 100%);
  border: none;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(122,21,25,0.35);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform .12s, box-shadow .2s, opacity .2s;
}
.btn-submit:active { transform: translateY(2px); box-shadow: 0 3px 10px rgba(122,21,25,0.3); }
.btn-submit:disabled { opacity: .7; cursor: not-allowed; }
.btn-submit .spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid rgba(228,206,143,0.4);
  border-top-color: var(--gold-light);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}
.btn-submit.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   页脚
   ============================================================ */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 18px 20px calc(var(--safe-bottom) + 24px);
  font-size: 11.5px;
  color: var(--ink-soft);
  line-height: 1.9;
}
.footer .seal-line {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--red-deep);
  letter-spacing: 1px;
}

/* ============================================================
   Toast 轻提示
   ============================================================ */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(90px + var(--safe-bottom));
  transform: translateX(-50%) translateY(20px);
  background: rgba(43,38,34,0.94);
  color: #fff;
  font-size: 13.5px;
  padding: 11px 20px;
  border-radius: 24px;
  border: 1px solid rgba(201,162,75,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 999;
  max-width: 80%;
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   成功页
   ============================================================ */
.success-wrap {
  position: relative;
  z-index: 1;
  padding: calc(var(--safe-top) + 50px) 20px 40px;
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 印章 */
.seal {
  width: 150px; height: 150px;
  margin: 6px auto 26px;
  position: relative;
  opacity: 0;
  transform: scale(1.6) rotate(-12deg);
  animation: sealDrop .6s cubic-bezier(.2,.8,.3,1.2) .2s forwards;
}
@keyframes sealDrop {
  to { opacity: 1; transform: scale(1) rotate(-8deg); }
}
.seal svg { width: 100%; height: 100%; }

.success-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--red-deep);
  letter-spacing: 6px;
  opacity: 0;
  animation: fadeUp .5s ease .7s forwards;
}
.success-desc {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 1px;
  opacity: 0;
  animation: fadeUp .5s ease .85s forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 回执卡片 */
.receipt {
  width: 100%;
  margin: 28px 0 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  opacity: 0;
  animation: fadeUp .5s ease 1s forwards;
}
.receipt-head {
  background: linear-gradient(160deg, var(--red), var(--red-deep));
  color: var(--gold-light);
  padding: 14px;
  font-size: 14px;
  letter-spacing: 3px;
  border-bottom: 2px dashed rgba(228,206,143,0.5);
}
.receipt-no {
  padding: 16px 16px 6px;
  font-size: 20px;
  font-weight: 800;
  color: var(--red-deep);
  letter-spacing: 2px;
}
.receipt-no small { display:block; font-size: 11px; color: var(--ink-soft); font-weight: 400; letter-spacing: 1px; margin-bottom: 4px;}
.receipt-body { padding: 10px 18px 20px; text-align: left; }
.receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #F0E8D3;
  font-size: 14px;
}
.receipt-row:last-child { border-bottom: none; }
.receipt-row .k { color: var(--ink-soft); flex: none; }
.receipt-row .v { color: var(--ink); font-weight: 600; text-align: right; word-break: break-all; }
.receipt-row .v.subsidy-v { color: var(--red); font-weight: 800; font-size: 16px; }

.success-actions {
  width: 100%;
  display: flex;
  gap: 12px;
  opacity: 0;
  animation: fadeUp .5s ease 1.15s forwards;
}
.btn {
  flex: 1;
  height: 50px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  display: grid;
  place-items: center;
  text-decoration: none;
  cursor: pointer;
  border: none;
}
.btn-primary {
  color: var(--gold-light);
  background: linear-gradient(160deg, var(--red), var(--red-deep));
  box-shadow: 0 6px 16px rgba(122,21,25,0.3);
}
.btn-ghost {
  color: var(--red-deep);
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.btn:active { transform: translateY(2px); }

/* ============================================================
   ★ 新增布局元素 ★
   ============================================================ */

/* ---------- 页头灯笼 & 印章升级 ---------- */
.lantern {
  position: absolute;
  top: calc(var(--safe-top) + 12px);
  width: 34px;
  z-index: 2;
  transform-origin: 50% 4px;
  animation: sway 3.8s ease-in-out infinite;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,0.35));
}
.lantern-left { left: 14px; }
.lantern-right { right: 14px; animation-delay: -1.9s; }
.lantern svg { width: 100%; height: auto; display: block; }
@keyframes sway {
  0%, 100% { transform: rotate(-7deg); }
  50%      { transform: rotate(7deg); }
}

/* 升级印章大小 */
.header .emblem { width: 72px; height: 72px; }
.header .emblem svg { width: 52px; height: 52px; }
.header .title { font-size: 28px; }

/* ---------- 权威认证徽章 ---------- */
.badges {
  position: relative;
  z-index: 1;
  margin: 16px 12px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.badge {
  position: relative;
  padding: 12px 4px 10px;
  text-align: center;
  background: linear-gradient(180deg, #FDF7E5, #F5E6BC);
  border: 1px solid var(--gold);
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(122,21,25,0.10);
  color: var(--red-deep);
  overflow: hidden;
}
.badge::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px dashed rgba(201,162,75,0.6);
  border-radius: 9px;
  pointer-events: none;
}
.badge-icon {
  width: 28px; height: 28px;
  margin: 0 auto 5px;
  color: var(--red);
}
.badge-icon svg { width: 100%; height: 100%; display: block; }
.badge-text {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 2px;
}

/* ---------- 卡片四角描金角花 ---------- */
.corner {
  position: absolute;
  width: 22px; height: 22px;
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 2;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A24B' stroke-width='1.4'%3E%3Cpath d='M2 12 V2 H12'/%3E%3Cpath d='M4 8 V4 H8'/%3E%3Ccircle cx='7' cy='7' r='1.2' fill='%23C9A24B' stroke='none'/%3E%3C/svg%3E");
}
.c-tl { top: 6px; left: 6px; }
.c-tr { top: 6px; right: 6px; transform: scaleX(-1); }
.c-bl { bottom: 6px; left: 6px; transform: scaleY(-1); }
.c-br { bottom: 6px; right: 6px; transform: scale(-1); }

/* ---------- 表单内嵌补助款金额条 ---------- */
.amount-box {
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  padding: 14px 14px 14px 76px;
  background:
    radial-gradient(circle at 100% 0%, rgba(228,206,143,0.28), transparent 60%),
    linear-gradient(160deg, #8E1319 0%, #5E0F12 100%);
  border: 1.5px solid var(--gold);
  border-radius: 12px;
  color: var(--gold-light);
  box-shadow: inset 0 0 0 1px rgba(228,206,143,0.35),
              0 6px 18px rgba(122,21,25,0.22);
}
.amount-shine {
  position: absolute;
  top: -40%; left: -30%;
  width: 55%; height: 180%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.16), transparent);
  transform: rotate(18deg);
  animation: shine 3.6s ease-in-out infinite;
  pointer-events: none;
}
.amount-seal {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%) rotate(-6deg);
  width: 54px; height: 54px;
}
.amount-seal svg {
  width: 100%; height: 100%;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35));
}
.amount-info { position: relative; z-index: 1; }
.amount-label {
  font-size: 11.5px;
  letter-spacing: 3px;
  color: var(--gold-light);
}
.amount-value {
  font-size: 26px;
  font-weight: 900;
  color: #FFE9A8;
  letter-spacing: 1px;
  line-height: 1.15;
  margin-top: 3px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.amount-value span {
  font-size: 14px;
  font-weight: 700;
  margin-left: 4px;
}
.amount-hint {
  margin-top: 5px;
  font-size: 11px;
  color: rgba(228,206,143,0.9);
  letter-spacing: 1px;
}

/* ---------- 通用分节标题 ---------- */
.section-title {
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  color: var(--red-deep);
  letter-spacing: 4px;
  margin-bottom: 16px;
}
.section-title span {
  position: relative;
  padding: 0 14px;
}
.section-title span::before,
.section-title span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 30px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.section-title span::before { right: 100%; }
.section-title span::after { left: 100%; transform: scaleX(-1); }

/* ---------- 申请流程 ---------- */
.steps-wrap {
  position: relative;
  z-index: 1;
  margin: 20px 16px 0;
  padding: 22px 12px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  position: relative;
  padding: 0;
}
.steps::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 14%; right: 14%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 6px, transparent 6px 12px);
  opacity: 0.7;
  z-index: 0;
}
.step {
  position: relative;
  text-align: center;
  z-index: 1;
}
.step-coin {
  position: relative;
  display: block;
  width: 46px; height: 46px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #F4DFA0 0%, #C9A24B 55%, #A98832 100%);
  border: 2px solid #FFF3D0;
  box-shadow: 0 3px 8px rgba(122,21,25,0.28), inset 0 0 0 1px rgba(255,255,255,0.4);
}
.step-coin::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px solid rgba(122,21,25,0.35);
}
.step-coin span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 900;
  color: var(--red-deep);
  font-family: 'STKaiti','KaiTi','PingFang SC',serif;
}
.step-text {
  display: block;
  font-size: 12.5px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 1px;
}

/* ---------- 常见问答 ---------- */
.faq {
  position: relative;
  z-index: 1;
  margin: 20px 16px 0;
  padding: 22px 16px 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.faq-item {
  padding: 12px 0;
  border-bottom: 1px dashed #E5D9BC;
}
.faq-item:last-child { border-bottom: none; }
.faq-q, .faq-a {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.faq-q {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.faq-a {
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.q-mark, .a-mark {
  flex: none;
  width: 20px; height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  margin-top: 1px;
  font-family: 'STKaiti','KaiTi','PingFang SC',serif;
}
.q-mark { background: var(--red); }
.a-mark { background: var(--gold); }

/* ---------- 页脚升级 ---------- */
.footer { padding-top: 22px; }
.footer-fret {
  height: 8px;
  margin: 0 auto 12px;
  width: 140px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='8' viewBox='0 0 40 8'%3E%3Cpath d='M0,7 h6 v-5 h6 v3 h-3 M20,7 h6 v-5 h6 v3 h-3' stroke='%23C9A24B' stroke-width='1.2' fill='none'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  opacity: 0.7;
}
.footer .seal-line { letter-spacing: 3px; font-weight: 700; }
.footer-copy {
  margin-top: 6px;
  color: var(--red-deep);
  letter-spacing: 1.5px;
  font-size: 11px;
}

/* ---------- 各区块进场淡入 ---------- */
.badges, .card, .steps-wrap, .tips-card, .faq {
  animation: sectionIn .55s ease both;
}
.badges     { animation-delay: 0.05s; }
.card       { animation-delay: 0.15s; }
.steps-wrap { animation-delay: 0.25s; }
.tips-card  { animation-delay: 0.35s; }
.faq        { animation-delay: 0.45s; }
@keyframes sectionIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   ★ 成功页专属元素 ★
   ============================================================ */

/* 成功印章区（无 100vh 强制高度） */
.success-hero {
  position: relative;
  z-index: 1;
  padding: 22px 20px 6px;
  text-align: center;
}
/* 成功对勾图标（替代原印章） */
.success-check {
  width: 72px;
  height: 72px;
  margin: 6px auto 14px;
  opacity: 0;
  transform: scale(0.6);
  animation: checkPop .5s cubic-bezier(.2,.9,.3,1.3) .15s forwards;
  filter: drop-shadow(0 6px 12px rgba(43,130,65,0.35));
}
.success-check svg { width: 100%; height: 100%; display: block; }
@keyframes checkPop {
  to { opacity: 1; transform: scale(1); }
}
.success-hero .success-title {
  font-size: 22px;
  letter-spacing: 6px;
}
.success-hero .success-desc { margin-top: 8px; }

/* 回执卡片调整（复用 .card） */
.card.receipt-card { padding: 20px 16px 8px; }
.card.receipt-card .receipt-no {
  text-align: center;
  padding: 6px 4px 10px;
  border-bottom: 1px dashed rgba(201,162,75,0.5);
  margin-bottom: 6px;
}
.card.receipt-card .receipt-body { padding: 4px 6px 10px; }

/* 下一步 CTA 卡片 */
.next-step {
  position: relative;
  z-index: 1;
  margin: 20px 16px 0;
  padding: 22px 18px 20px;
  color: var(--gold-light);
  background:
    radial-gradient(circle at 100% 0%, rgba(228,206,143,0.28), transparent 60%),
    linear-gradient(160deg, var(--red) 0%, var(--red-deep) 100%);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(122,21,25,0.28);
  overflow: hidden;
  animation: sectionIn .55s ease .2s both;
}
.next-step::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(228,206,143,0.5);
  border-radius: calc(var(--radius) - 5px);
  pointer-events: none;
}
.next-badge {
  position: absolute;
  top: 0; right: 0;
  padding: 5px 14px 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--red-deep);
  background: linear-gradient(180deg, #FFE9A8, #E4CE8F);
  letter-spacing: 3px;
  border-radius: 0 var(--radius) 0 12px;
  z-index: 1;
}
.next-title {
  position: relative;
  font-size: 20px;
  font-weight: 800;
  color: #FFE9A8;
  letter-spacing: 4px;
  margin-bottom: 12px;
  padding-right: 60px;
}
.next-title em {
  font-style: normal;
  color: #fff;
  animation: tipBlink 1.2s ease-in-out infinite;
}
.next-body {
  position: relative;
  font-size: 13.5px;
  line-height: 1.85;
  color: rgba(255,241,206,0.95);
  text-align: justify;
}
.next-body strong {
  color: #FFE9A8;
  font-weight: 800;
}
.next-body em {
  font-style: normal;
  color: #FFE9A8;
  font-weight: 900;
}
.next-warn {
  display: block;
  margin-top: 10px;
  padding: 9px 12px;
  background: rgba(0,0,0,0.28);
  border-left: 3px solid #FFE9A8;
  color: #FFE9A8;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 0 6px 6px 0;
}

/* 步骤状态：已完成 / 当前 */
.step.done .step-coin {
  background: radial-gradient(circle at 32% 30%, #A8E1B2 0%, #43A85E 55%, #2B8241 100%);
  border-color: #E1F5E7;
}
.step.done .step-coin::before { border-color: rgba(255,255,255,0.35); }
.step.done .step-coin span { color: #fff; font-size: 18px; }
.step.done .step-text { color: #2B8241; }

.step.current .step-coin {
  animation: coinPulse 1.6s ease-in-out infinite;
}
.step.current .step-text { color: var(--red); font-weight: 800; }
@keyframes coinPulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(176,30,36,0.15), 0 3px 8px rgba(122,21,25,0.28); }
  50%     { box-shadow: 0 0 0 10px rgba(176,30,36,0.05), 0 3px 8px rgba(122,21,25,0.28); }
}

/* 成功页按钮容器（脱离 .success-wrap 后独立布局） */
.app > .success-actions {
  width: auto;                 /* 覆盖基础 width:100%，避免与两侧 margin 相加溢出 */
  margin: 20px 16px 20px;
  animation: sectionIn .55s ease .5s both;
  opacity: 0;
}

/* 小屏（≤360px）微调 */
@media (max-width: 360px) {
  .header .title { font-size: 22px; letter-spacing: 3px; }
  .success-title { font-size: 21px; letter-spacing: 4px; }
  .field input, .field select { height: 46px; font-size: 14.5px; }
  .receipt-no { font-size: 18px; }
  .amount-value { font-size: 22px; }
  .amount-box { padding-left: 68px; }
  .amount-seal { width: 48px; height: 48px; }
  .badge-text { font-size: 11.5px; letter-spacing: 1px; }
  .step-coin { width: 40px; height: 40px; }
  .step-coin span { font-size: 15px; }
  .step-text { font-size: 11.5px; letter-spacing: 0; }
  .lantern { width: 28px; }
  .next-title { font-size: 18px; letter-spacing: 3px; padding-right: 54px; }
  .success-hero .seal { width: 120px; height: 120px; }
}
