/* ===== KV 品牌色板（取自真实主KV：明黄海洋主题）=====
   主背景黄 #F3D14F / 披风红 #D23F47 / 海浪青蓝 #4ECDC4,#45B7D1 / 节庆金 #E8B84B */
:root {
  --brand-red: #D23F47;
  --brand-red-deep: #B52A20;
  --brand-red-16: rgba(210, 63, 71, 0.16);
  --brand-red-30: rgba(210, 63, 71, 0.30);
  --brand-red-50: rgba(210, 63, 71, 0.50);
  --brand-blue: #2B7CD3;
  --brand-gold: #E8B84B;
  --brand-gold-soft: rgba(232, 184, 75, 0.18);
}

/* ===== 基础重置 ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #0f172a;
  color: #fff;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, .logo h1, .p-brand .logo { font-family: "Noto Serif SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", serif; }
#app {
  min-height: 100dvh;
  max-width: 430px;
  margin: 0 auto;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  position: relative;
  /* 2026-09-14：原为 30px。各页 min-height 已是 100dvh，这 30px 会顶出一个纯粹的
     「容器内多余的 30px 条带」—— 以前显示的是 #app 的黄底（与页面对齐不突兀），
     现在容器底色已去掉、会露出白条。改为 0，让每页自己的背景正好铺满整个容器。 */
  padding-bottom: 0;
}

/* ===== 通用元素 ===== */
.page {
  min-height: 100dvh;
  padding: clamp(20px, 5vw, 28px) clamp(16px, 4.5vw, 24px);
  animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.logo {
  text-align: center;
  padding-top: 40px;
  margin-bottom: 24px;
}
.logo .moon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fef3c7, #f59e0b);
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.4);
  margin: 0 auto 16px;
  position: relative;
}
.logo .moon::after {
  content: "</>";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 22px;
  font-weight: 700;
  color: #78350f;
}
.logo h1 { font-size: 26px; font-weight: 700; letter-spacing: 2px; margin-bottom: 8px; }
.logo p { font-size: 13px; color: #94a3b8; }
.intro-logo-img { height: 42px; width: auto; margin: 0 auto 14px; display: block; }
.card .intro-text p { color: #2576bc; font-weight: 500; line-height: 1.85; margin-bottom: 12px; }

.card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
}
.card h2 { font-size: 18px; margin-bottom: 14px; color: var(--brand-red); }
.card p, .card li { font-size: 14px; line-height: 1.7; color: #cbd5e1; }
.card ul { padding-left: 18px; }
.card li { margin-bottom: 6px; }

.btn {
  display: block;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-deep));
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: transform 0.1s, opacity 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn.ghost {
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(196,30,58,.25);
  color: var(--brand-red);
}

.btn-row {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.btn-row .btn { flex: 1; }

label { display: block; font-size: 14px; color: #94a3b8; margin-bottom: 8px; }
input[type="text"], input[type="number"] {
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  font-size: 15px;
  outline: none;
}
input:focus { border-color: var(--brand-red); }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #94a3b8;
  margin: 16px 0;
}
.checkbox input { margin-top: 2px; }

.err {
  color: #f87171;
  font-size: 13px;
  margin-top: 10px;
  display: none;
}

.hint { font-size: 12px; color: #64748b; margin-top: 10px; }

/* ===== 字段说明（身份证后 4 位等） ===== */
.field-tip { font-size: 12px; color: #64748b; margin-top: 6px; margin-bottom: 14px; }

/* 协议勾选框：勾选图标与文字顶部对齐，长文案换行后不错位 */
.chk {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.55;
  color: #475569;
  margin-bottom: 6px;
}
.chk input { flex: 0 0 auto; width: 16px; height: 16px; margin: 2px 0 0; accent-color: #0088c8; }
.chk a { color: #0b6bb8; }

/* ===== 步骤选择 ===== */
.step-title {
  text-align: center;
  margin-bottom: 20px;
}
.step-title .tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--brand-red-16);
  color: var(--brand-red);
  border-radius: 20px;
  font-size: 12px;
  margin-bottom: 10px;
}
.step-title h2 { font-size: 20px; }

.options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.option {
  padding: 14px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  text-align: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
}
.option.selected {
  background: var(--brand-red-30);
  border-color: var(--brand-red);
  color: #fff;
}
.option.disabled { opacity: 0.4; cursor: not-allowed; }

.count-bar {
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 14px;
}
.count-bar span { color: var(--brand-red); font-weight: 600; }

.motto-input { margin-top: 10px; }
.char-count { text-align: right; font-size: 12px; color: #64748b; margin-top: 6px; }

/* ===== 代码诗生成（推演注释 + 代码诗，统一编辑器呈现） ===== */
/* 代码区去掉不透明白底：改深色半透明，透出底层海浪 KV（不再是盖住画面的一块板子） */
.code-poem {
  background: rgba(2, 6, 23, .8);
  border: 1px solid rgba(51, 65, 85, .75);
  border-radius: 14px;
  padding: 20px;
  font-family: "SF Mono", "Consolas", "Courier New", monospace;
  font-size: 15px;
  line-height: 1.85;
  color: #f1f5f9;
  position: relative;
  overflow-y: auto;
  max-height: 56dvh;
}
.code-poem .line { display: block; white-space: pre-wrap; }
.code-poem .comment { color: #86c46a; }
.code-poem .keyword { color: #c586c0; }
.code-poem .string { color: #ce9178; }
.code-poem .func { color: #dcdcaa; }
/* 推演注释行：绿色斜体 + 左侧竖线，与代码区隔
   支持「意向映射」两行推演：pre-wrap 允许换行、完整呈现，不再省略截断 */
.code-poem .line.cmt {
  color: #86c46a;
  font-style: italic;
  border-left: 2px solid #475569;
  padding-left: 6px;
  margin: 1px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.code-poem .line.blank { min-height: .6em; }
.code-poem .line.code { color: #f1f5f9; }
.code-poem .stream-line { display: block; white-space: pre-wrap; min-height: 1.1em; }
.code-poem .stream-line.cmt {
  color: #86c46a;
  font-style: italic;
  border-left: 2px solid #475569;
  padding-left: 6px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.code-poem .stream-line.code { color: #f1f5f9; }
.code-poem .cursor { display: inline-block; color: #4ade80; font-weight: 700; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
/* ===== 生成页：整页 flex 列布局，代码块按内容高度收放 =====
   目的：代码推演再长，「生成的诗 + 底部按钮」也始终留在首屏，页面本身不出现垂直滚动条；
   代码块高度贴合行数（不撑出空黑底），行数过多时才在块内滚动 */
.generate-page {
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 22px clamp(16px, 4.5vw, 24px);
}
.generate-page .step-title { flex: 0 0 auto; margin-bottom: 10px; }
.generate-page > .kv { flex: 0 0 auto; margin-bottom: 10px; color: #1a1a1a; }
.generate-page .code-wrap {
  position: relative;
  /* 0 1 auto：按代码内容的自然高度收放，不再用 flex-grow 把剩余高度吃成一块空的黑底。
     空间不足时（小屏 / 行数多）仍可被压缩，由 .code-poem 内部滚动兜底 */
  flex: 0 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-top: 0;
}
.generate-page .code-bar { flex: 0 0 auto; }
.generate-page .code-poem {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;           /* 高度交给 flex 决定，不再固定 56dvh */
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.62;
  border: none;
  border-radius: 0;
  background: rgba(2, 6, 23, .82);
}
.generate-page .btn-row { flex: 0 0 auto; margin-top: 10px; }

/* 生成的诗：去掉白色卡片底，诗句直接落在底层画面上；行距收紧 + 逐行淡入上浮 */
.poem-final {
  display: none;
  flex: 0 0 auto;
  margin: 10px 0 0;
  animation: fadeIn .5s ease both;
}
.poem-final-body {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  text-align: center;
  box-shadow: none;
  /* 浮动效果：整块诗句像浮在水面上一样缓慢起伏 */
  animation: poemFloat 3.6s ease-in-out infinite;
  will-change: transform;
}
.poem-final-body div {
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 17px;
  line-height: 1.38;               /* 行列间距收紧：1.95 → 1.45 → 1.38 */
  letter-spacing: 3px;
  color: #000000;                  /* 诗句一律纯黑 */
  white-space: nowrap;
  text-shadow: 0 0 5px rgba(255,255,255,.95), 0 1px 2px rgba(255,255,255,.9), 0 0 14px rgba(255,255,255,.75);   /* 无白底的代价：用白晕保证在插画/海浪上依然清晰 */
  opacity: 0;                                    /* 由 JS 逐行设置 animation-delay 依次浮现 */
  animation: poemLineIn .55s cubic-bezier(.2,.8,.2,1) both;
}
.poem-final-body div.motto {
  color: #000000;                  /* 尾句同样纯黑，靠加粗与字距区分层次 */
  font-weight: 700;
  letter-spacing: 2px;
  margin-top: 4px;
  text-shadow: 0 0 5px rgba(255,255,255,.95), 0 1px 2px rgba(255,255,255,.9), 0 0 14px rgba(255,255,255,.75);
}
@keyframes poemLineIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
/* 诗句整体浮动：轻微上下起伏，配合白晕形成「浮在画面上」的观感 */
@keyframes poemFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ===== 代码块（编辑器外壳 + 等宽 + 代码色） ===== */
.code-wrap { margin-top: 14px; border-radius: 14px; overflow: hidden; border: 1px solid #334155; }
.code-bar { display: flex; align-items: center; gap: 6px; background: #0b1220; padding: 9px 12px; border-bottom: 1px solid #334155; }
.code-bar .dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.code-bar .dot.r { background: #ff5f56; }
.code-bar .dot.y { background: #ffbd2e; }
.code-bar .dot.g { background: #27c93f; }
.code-bar .code-file { margin-left: 8px; font-size: 12px; color: #64748b; font-family: "SF Mono","Consolas","Courier New",monospace; }
.code-bar .code-badge { margin-left: auto; font-size: 11px; color: #fff; background: linear-gradient(135deg,#c41e3a,#e11d48); padding: 2px 10px; border-radius: 999px; letter-spacing: .5px; }
.code-wrap .code-poem { border: none; border-radius: 0; }

/* ===== 微信红包卡片 ===== */
.packet {
  background: linear-gradient(135deg, #1677ff, #0a5ad6);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 14px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.packet::before {
  content: "支付宝口令";
  position: absolute;
  top: 10px; right: -30px;
  background: rgba(255,255,255,0.2);
  padding: 4px 30px;
  font-size: 11px;
  transform: rotate(35deg);
}
.packet .head { font-size: 14px; color: rgba(255,255,255,0.92); margin-bottom: 2px; }
.packet .ali-logo {
  display: inline-block;
  background: #fff; color: #1677ff;
  border-radius: 6px; padding: 1px 8px; font-weight: 700; margin-right: 4px;
}
.packet .amt { font-size: 36px; font-weight: 700; color: #fff; margin: 6px 0; }
.packet .amt small { font-size: 16px; }
.packet .lab { font-size: 12px; color: rgba(255,255,255,0.85); margin-top: 2px; }
.packet .kouling {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(255,255,255,0.96); color: #0a2540;
  border-radius: 10px; padding: 8px 10px; margin: 10px 0 4px;
}
.packet .kouling-txt { font-weight: 700; letter-spacing: 1px; font-size: 15px; }
.packet .tip { font-size: 12px; color: rgba(255,255,255,0.9); margin-top: 6px; }
.packet.miss { background: #334155; }
.packet.miss .guide { color: #cbd5e1; }

/* 支付宝红包按钮 */
.btn.alipay { background: linear-gradient(135deg, #1677ff, #0a5ad6); color: #fff; }
.btn.sm { padding: 6px 12px; font-size: 13px; }

/* 演示/环境提示条 */
.wechat-tip {
  background: rgba(148,163,184,0.15);
  border: 1px solid rgba(148,163,184,0.3);
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.5;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 14px;
}
.wechat-tip.ok {
  background: rgba(7,193,96,0.15);
  border-color: rgba(7,193,96,0.4);
  color: #6ee7b7;
}

/* ===== 海报 ===== */
.poster-preview {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, #0f172a, #1e3a8a, #0f172a);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.poster-preview .brand { text-align: center; }
.poster-preview .brand h3 { font-size: 16px; letter-spacing: 2px; }
.poster-preview .brand p { font-size: 11px; color: #94a3b8; margin-top: 4px; }
.poster-preview .poem-area {
  background: rgba(0,0,0,0.3);
  border-radius: 12px;
  padding: 16px;
  font-family: monospace;
  font-size: 13px;
  line-height: 1.8;
}
.poster-preview .footer-info {
  text-align: center;
  font-size: 12px;
  color: #cbd5e1;
}
.poster-preview .serial {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 8px;
}

/* ===== 顶部进度条 ===== */
.progress {
  display: flex;
  gap: 6px;
  padding: 16px 20px 0;
}
.progress .dot {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}
.progress .dot.active { background: var(--brand-red); }

/* ===== Toast ===== */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--brand-red-50);
  color: var(--brand-red);
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  z-index: 1000;
  display: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* ===== 加载页 ===== */
.loading-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.loading-page .spinner {
  width: 50px; height: 50px;
  border: 3px solid var(--brand-red-16);
  border-top-color: var(--brand-red);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 加载页 · 中秋主题视觉（点击「进入活动」或轻触画面进入） */
.splash-mid {
  gap: 0; cursor: pointer; overflow: hidden; position: relative;
  background: url('../img/kv/splash-bg.png') center / cover no-repeat, #f3d14f;
  /* 标题区固定在画面上部（约 22%），按钮组单独下沉到 70% 处，拉开文字与按钮的间距 */
  justify-content: flex-start;
  padding-top: 22dvh;
  padding-bottom: 0;
}
.splash-mid .splash-titles h1 { font-size: 28px; }
.splash-mid .sub2 { font-size: 14px; color: #cbd5e1; margin-top: 6px; }
.splash-mid .hint { font-size: 12px; color: #64748b; margin-top: 10px; }
/* 按钮 + 下方提示文字：整组定位在页面垂直 70% 位置 */
.splash-mid .splash-cta {
  position: absolute;
  top: 70%;
  left: 20px;    /* 与 .page 左右内边距一致，保持近通栏宽度 */
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* 「进入活动」按钮：按设计稿改为纯色蓝、近通栏、高 52px、圆角 10px */
.splash-mid .btn {
  width: calc(100% - 12px);
  height: 52px;
  padding: 0;
  border-radius: 10px;
  background: #0088c8;
  font-size: 17px;
  margin-top: 0;
}
.splash-mid .btn:active { transform: scale(0.98); }
/* 极短屏（≤620px 高，如 iPhone5/SE1）：按钮组整体上移，避免压到底部吉祥物 */
@media (max-height: 620px) {
  .splash-mid .splash-cta { top: 62%; }
}

/* ===== 活动说明页：单屏自适应 =====
   全页尺寸统一以 --iu 为单位（1em = --iu）。--iu 同时受视口宽、高约束，
   于是「整页总高 / 视口高」在各机型上几乎恒定（约 58 个 --iu），不会出现垂直滚动条。
   顶部品牌条、20Farben logo 拆成独立图层以便分别缩小；底部吉祥物用 flex 吸收剩余空间。 */
.intro-page {
  --iu: max(10.5px, min(3.72vw, 1.72vh)); /* 430×932 → 16px，作为设计基准 */
  font-size: var(--iu);
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;            /* 本页不产生垂直滚动 */
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.7em 1em 0;
  background-color: #f5d741;
}
/* 顶部品牌区：品牌条与 logo 之间只留极小间距，让 logo 整体上移 */
.intro-head {
  flex: 0 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* 品牌条「月满同心 / ONE MOON ONE HEART」：由原先整页 100% 宽收到 20.6em（约 77%），字号同步变小 */
.intro-brand { display: block; width: 20.6em; height: auto; }
/* 20Farben logo + 活动说明：高度由原 6.56em 缩至 4.05em（约 -38%），并紧随品牌条上移 */
.intro-logo { display: block; height: 4.05em; width: auto; margin-top: 0.3em; }
.intro-page .intro-card {
  flex: 0 0 auto;
  width: 100%;
  margin: 0.95em 0 0.85em;
  background: #fbf2c5;
  border: 1px solid rgba(0,136,200,.12);
  box-shadow: none;
  backdrop-filter: none;
  border-radius: 0.875em;
  padding: 1.1em 1em;
}
.intro-page .intro-title {
  font-size: 1.25em;
  text-align: center;
  margin: 0 0 0.75em;
  font-weight: 800;
  letter-spacing: 1px;
  color: transparent;
  background: linear-gradient(180deg, #e6a817 0%, #c77700 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
/* 当使用标题图片时，去掉文字渐变背景，避免透明底图片透出渐变 */
.intro-page .intro-title:has(.intro-title-img) {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: transparent;
}
.intro-page .intro-title-img {
  display: block;
  max-width: 90%;
  height: auto;
  margin: 0 auto;
}
/* 说明文字：字号 0.8125em（=13px@基准）、行距 1.45、段间距 0.2em，按设计稿逐行居中 */
.intro-page .intro-text p {
  font-size: 0.8125em;
  color: #2576bc;
  text-align: center;
  line-height: 1.45;
  margin-bottom: 0.2em;
}
.intro-page .intro-text p:last-child { margin-bottom: 0; }
/* 高亮：金色加粗 + 轻底色，非红色 */
.intro-hl {
  color: #c77700;
  font-weight: 700;
  background: rgba(255, 193, 7, .14);
  border-radius: 4px;
  padding: 0 3px;
}
.intro-page .btn {
  flex: 0 0 auto;
  width: 100%;
  background: #0088c8;
  height: 3.4em;
  padding: 0;
  border-radius: 0.75em;
  font-size: 1.0625em;
}
.intro-page .intro-back {
  background: rgba(255,255,255,.78);
  color: #0b6bb8;
  border: 1px solid rgba(0,136,200,.35);
  height: 2.65em;
  font-size: 0.875em;
  margin-top: 0.5em;
}
/* 底部吉祥物：吃掉剩余高度；空间不足时等比缩小，而不是把页面顶出滚动条 */
.intro-foot {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  margin-top: 0.5em;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.intro-foot img {
  display: block;
  /* 宽高都用 auto + max 约束：浏览器按固有比例等比缩放，不会在矮屏被 max-height 压扁 */
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-position: center bottom;
}

/* ===== STEP1 信息确认页：官方 KV 背景 + 与首页一致的蓝色主按钮 ===== */
.verify-page {
  position: relative;          /* 定位后背景层绘制在 #app::before KV 装饰层之上 */
  min-height: 100dvh;          /* 背景铺满视口，避免下方露出 #app 渐变与装饰层 */
  background: url('../img/kv/splash-bg.png') center / cover no-repeat, #f3d14f;
}
.verify-page .btn {
  background: #0088c8;
  height: 52px;
  padding: 0;
  border-radius: 10px;
  font-size: 17px;
}
.verify-page .back-btn {
  background: rgba(255,255,255,.78);
  color: #0b6bb8;
  border: 1px solid rgba(0,136,200,.35);
  height: 44px;
  font-size: 14px;
  margin-top: 10px;
}

/* ===== 复用首页官方 KV 背景（splash-bg.png）的页面：赋诗 / 抽奖 / 海报 =====
   仅设置背景，不覆盖 .btn 样式，避免影响页面内 secondary/ghost/alipay 按钮 */
.bg-home {
  position: relative;
  min-height: 100dvh;
  background: url('../img/kv/splash-bg.png') center / cover no-repeat, #f3d14f;
}

/* ===== 选择页 1-4：统一使用官方海浪边框 KV 背景 ===== */
.step-page {
  position: relative;                 /* 背景层绘制在 #app::before 装饰层之上 */
  min-height: 100dvh;                 /* 背景铺满视口，避免下方露出 #app 渐变与装饰层 */
  background: url('../img/kv/step-bg.png') center top / cover no-repeat, #f3d14f;
  padding: clamp(56px, 16vw, 72px) clamp(20px, 7vw, 34px) clamp(40px, 12vw, 52px);  /* 内容避开顶部/左右/底部海浪边框，并随宽度自适应 */
}
.step-page .step-title { margin-bottom: 14px; }
/* 选择页①②③④ 标题与副标题：改为黑色（原先的蓝/红色在海浪黄底上偏色、对比不足） */
.step-page .step-title h2 { color: #1a1a1a; text-shadow: 0 1px 0 rgba(255,255,255,.35); }
.step-page .step-title .sub { color: #1a1a1a; }
/* 进度条：铺满内容宽度，未激活段改白以在蓝色海浪上保持可见 */
.step-page .progress { padding: 16px 0 0; }
.step-page .progress .dot { background: rgba(255,255,255,.62); box-shadow: 0 1px 2px rgba(30,41,59,.12); }
.step-page .progress .dot.active { background: var(--brand-red); }

/* ===== 选择页①：大船 + 燃料槽 ===== */
.ship-page .sub, .step-title .sub { font-size: 13px; color: #94a3b8; margin-top: 6px; }
.ship-stage {
  position: relative; height: min(38dvh, 240px); margin: 10px 0 4px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, #071a30 0%, #0c2e4a 60%, #0e4d68 100%);
  box-shadow: inset 0 0 40px rgba(0,0,0,.4);
}
.ship-stage .moon-deco {
  position: absolute; top: 16px; right: 22px; width: 46px; height: 46px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fef3c7, #f59e0b);
  box-shadow: 0 0 28px rgba(245,158,11,.55);
}
.ship { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); width: 210px; transition: transform .6s ease, filter .6s ease; }
.ship .mast {
  position: absolute; left: 50%; bottom: 46px; transform: translateX(-50%);
  width: 5px; height: 96px; background: linear-gradient(#caa472,#8a6233); border-radius: 3px;
}
.ship .sail {
  position: absolute; bottom: 0; left: 7px; width: 66px; height: 0;
  background: linear-gradient(135deg,#ffffff,#fde68a); clip-path: polygon(0 0,100% 0,100% 100%,0 100%);
  opacity: .95; transition: height .8s cubic-bezier(.2,.8,.2,1); box-shadow: 0 4px 10px rgba(0,0,0,.2);
}
.ship.full .sail { height: 82px; }
.ship.full { filter: drop-shadow(0 0 18px rgba(245,158,11,.7)); animation: shipGlide 1.4s ease; }
@keyframes shipGlide { 0%{transform:translateX(-50%)} 50%{transform:translateX(-50%) translateY(-8px)} 100%{transform:translateX(-50%) translateY(0)} }
.ship .hull {
  position: relative; width: 170px; height: 58px; margin: 0 auto;
  background: linear-gradient(180deg,#8a5a36,#5b3f28); border-radius: 0 0 90px 90px / 0 0 46px 46px;
  box-shadow: inset 0 4px 0 rgba(255,255,255,.15);
}
.ship .hull::before {
  content: ''; position: absolute; top: -8px; left: 16px; right: 16px; height: 16px;
  background: linear-gradient(#caa472,#8a6233); border-radius: 8px;
}
.ship .tank { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: auto; }
.ship .tank-label {
  position: absolute; top: -26px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  font-size: 11px; color: #cbd5e1; background: rgba(0,0,0,.3); padding: 2px 8px; border-radius: 10px;
}
.ship .slots { display: flex; gap: 8px; }
.ship .slot {
  width: 44px; height: 44px; border: 2px dashed rgba(255,255,255,.55); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 11px; line-height: 1.15;
  color: #fff; text-align: center; background: rgba(0,0,0,.28); padding: 3px; transition: all .2s;
}
.ship .slot.filled { border-style: solid; border-color: var(--brand-red); background: var(--brand-red-30); box-shadow: 0 0 14px var(--brand-red-50); font-weight: 600; }
.ship .tank.hot .slot { border-color: var(--brand-red); background: var(--brand-red-30); }
.ship .waves {
  position: absolute; left: -10%; right: -10%; bottom: -12px; height: 36px;
  background: radial-gradient(circle at 20% 100%, rgba(255,255,255,.12) 6px, transparent 7px) repeat-x;
  background-size: 40px 36px; animation: waveMove 3s linear infinite;
}
@keyframes waveMove { to { background-position: 40px 0; } }

/* 船底燃料（随注入能量增长） */
.ship .ship-fuel {
  position: absolute; left: 14px; right: 14px; bottom: 6px; height: 9px; border-radius: 6px;
  background: rgba(0,0,0,.35); overflow: hidden; border: 1px solid rgba(255,255,255,.25);
}
.ship .ship-fuel-fill {
  height: 100%; width: 0%; border-radius: 6px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-red)); transition: width .5s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 0 10px var(--brand-red-50);
}
.ship .flame {
  position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%) scale(0); font-size: 22px;
  opacity: 0; transition: transform .4s, opacity .4s; filter: drop-shadow(0 0 8px rgba(245,158,11,.9));
}
.ship .flame.show { transform: translateX(-50%) scale(1); opacity: 1; animation: flameFlicker .6s ease-in-out infinite alternate; }
@keyframes flameFlicker { from { transform: translateX(-50%) scale(1) rotate(-3deg); } to { transform: translateX(-50%) scale(1.12) rotate(3deg); } }
.ship .slot { cursor: grab; }
.ship .slot.filled { cursor: grab; background: var(--brand-red-30); border-style: solid; border-color: var(--brand-red); box-shadow: 0 0 14px var(--brand-red-50); font-weight: 600; }
.ship .slot.filled:active { cursor: grabbing; }
.ship .tank.hot .slot, .fuel-tray.hot .fuel-block { border-color: var(--brand-red); background: var(--brand-red-30); }
.fuel-tray.hot { background: var(--brand-red-16); border-radius: 14px; box-shadow: inset 0 0 0 2px var(--brand-red-50); padding: 6px; }

.count-bar { text-align: center; font-size: 13px; color: #94a3b8; margin: 6px 0; }
.count-bar span { color: var(--brand-red); font-weight: 600; }
.ship-banner {
  display: none; text-align: center; color: var(--brand-red); font-weight: 700; font-size: 15px; margin: 6px 0;
  animation: pop .4s ease; text-shadow: 0 0 12px var(--brand-red-50);
}
.ship-banner.show { display: block; }
@keyframes pop { from{transform:scale(.8);opacity:0} to{transform:scale(1);opacity:1} }

.fuel-tray { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 14px; }
.fuel-block {
  padding: 12px 14px; border-radius: 12px; background: linear-gradient(135deg, var(--brand-blue), #3b82c4); color: #fff;
  font-size: 14px; cursor: grab; touch-action: none; user-select: none; border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 4px 14px rgba(28,102,163,.35); transition: transform .12s;
}
.fuel-block:active { cursor: grabbing; transform: scale(1.05); }
.fuel-block.used { opacity: .28; pointer-events: none; transform: scale(.9); }
.fuel-block.dragging { position: fixed; z-index: 1000; pointer-events: none; transform: scale(1.08) rotate(-3deg); box-shadow: 0 12px 30px rgba(0,0,0,.5); margin: 0; }
.ff-block-input {
  padding: 10px 12px; border-radius: 12px; border: 1px solid var(--brand-red); background: rgba(0,0,0,.3);
  color: #fff; font-size: 14px; outline: none; width: 130px;
  /* z-index 必须显式抬高：.ship-stage 内的 .fuel-pack 用了正 z-index，
     否则这个 body 级 fixed 输入框会被压在船体/燃料槽下面（点不到也看不见） */
  z-index: 10001; box-shadow: 0 4px 16px rgba(0,0,0,.22);
}

/* ===== 选择页②③：意向图标卡片（2×3 网格，点击高亮放大） ===== */
.icon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 6px; }
.icon-card {
  position: relative; z-index: 1;
  background: var(--accent-16, rgba(255,255,255,.05)); border: 1px solid var(--accent-30, rgba(255,255,255,.12)); border-radius: 16px;
  padding: 14px 8px; text-align: center; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .15s, border-color .15s;
}
.icon-card:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.icon-card .icon { width: 54px; height: 54px; margin: 0 auto 10px; color: var(--accent, #cbd5e1); }
.icon-card .icon svg { width: 100%; height: 100%; display: block; }
.icon-card .icon-label { font-size: 13px; color: var(--accent, #cbd5e1); line-height: 1.3; }
.icon-card.selected { z-index: 3; background: var(--accent-30, var(--brand-red-30)); border-color: var(--accent, var(--brand-red)); transform: scale(1.08); box-shadow: 0 0 22px var(--accent-50, var(--brand-red-50)); }
.icon-card.selected .icon-label { color: #fff; font-weight: 600; }
.icon-card .ff-input {
  display: none; width: 90%; margin-top: 8px; padding: 6px; border-radius: 8px; border: 1px solid var(--brand-red);
  background: rgba(0,0,0,.3); color: #fff; font-size: 13px; outline: none; text-align: center;
}

/* ===== 代码诗：定制文案高亮（生成页，深色底用浅金） ===== */
.code-poem .motto-line {
  color: #fde68a !important; background: rgba(245,158,11,.18); border-radius: 6px; padding: 0 4px;
  font-weight: 700; box-shadow: 0 0 10px rgba(245,158,11,.4);
}

/* ===== 海报页（设计稿版）：整页黄色主视觉底 + 卡片设计稿底图 + 动态文案叠层 =====
   卡片底图 poster-card.png 为 340×477 设计稿（已抹去示例文案，保留标题/绶带/海浪/插画/蓝框），
   动态内容按百分比精确落在设计稿预留的空白区。字号用 cqw（卡片容器宽度百分比）随卡片等比缩放。 */
.poster-page {
  position: relative;
  min-height: 100dvh;
  padding: 18px 20px 40px;
  background: url('../img/kv/poster-bg-2x.png?v=20260914a') center / cover no-repeat, #f5d741;
}
.poster {
  position: relative;
  width: 100%;
  aspect-ratio: 340 / 477;
  container-type: inline-size;
  background: url('../img/kv/poster-card-2x.png?v=20260914a') center / 100% 100% no-repeat;
  filter: drop-shadow(0 10px 22px rgba(120,90,10,.22));
}

/* 「向新」专属：卡片底图换成 poster-card-new.png（内部主视觉面板已由 image#2 替换）。
   卡片几何与向海卡完全一致（100% 100%），故动态叠层位置沿用 .poster 原值，无需重排。 */
.poster-new {
  /* v= 破除 nginx 1h 图片缓存：内部主视觉面板已换为高清素材（2026-09-14） */
  background-image: url('../img/kv/poster-card-new-2x.png?v=20260914l');
}

/* ⓪ 抬头「专属海报 · 您的数字印记」：一行小字，按需求移到卡片左上角。
   改用矢量文本，不再用两行位图：字随设备物理分辨率绘制，且一行更省空间。 */
.p-header {
  position: absolute;
  left: 6%;              /* 原为 right: 20.5%（右上角），现改左上 —— 不要同时写 left/right，会把宽度拉开 */
  top: 4.9%;
  display: block;
  color: #1a7fc0;
  font-size: 2.75cqw;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .5px;
  white-space: nowrap;
  pointer-events: none;
}

/* ① 推演层：整段 AI 推演脚本（注释↔诗句交错，与生成页同源）铺满卡片代码区，
   字号按 16 行刚好填满区域（区域高 38.8% × 477）反推。
   按需求：代码文字直接落在底层画面（主视觉面板）上，不加任何白色衬底，
   可读性改由文字自身的白色描边保证（见 .p-code-inner 的 text-shadow）。 */
.p-code {
  position: absolute; left: 19.1%; top: 25.2%; width: 66.2%; height: 38.8%;
  overflow: hidden;
}
.p-code-inner {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 2.42cqw;      /* 原 3.0cqw（只够 4 行注释）→ 缩小以容纳整段推演 */
  line-height: 1.2;
  /* 原为 #1a7fc0 蓝：蓝白面板与其同色系，实测对比仅约 2.7:1，且下部压到插画/深蓝放射线时糊掉。
     改为深墨青（浅底上对比约 11:1）。
     按需求不加白色衬底 → 可读性由「四方向白色描边 + 轻光晕」托出，
     让文字直接压在插画/深蓝放射线上时依然清晰。 */
  color: #10202e;
  text-shadow:
    -1px -1px 0 rgba(255,255,255,.92), 1px -1px 0 rgba(255,255,255,.92),
    -1px  1px 0 rgba(255,255,255,.92), 1px  1px 0 rgba(255,255,255,.92),
     0    0   2px rgba(255,255,255,.85);
  word-break: break-word;
}
.p-code-inner .line { display: block; }
.p-code-inner .line.cmt { opacity: .72; }   /* 注释略淡，与 print 诗句分层 */
/* 诗句字面量：暖棕金强调（与黄壳/红披风同族），在蓝白底上形成冷暖对比，一眼看出「诗」 */
.p-code-inner .string { color: #8a4a12; font-weight: 700; }
.p-code-inner .motto-line { font-weight: 800; }
.p-code-inner .motto-line .string { color: #a03818; }   /* 尾句金句再深一档，收尾更重 */

/* 「向未来」专属：卡片底图换成 poster-card-future.png。
   本轮改为与「向海」同版式：沿用 poster-card.png 的整卡外壳（黄框/米色卡面/抬头/logo/
   底部金句框/二维码留白），仅内部代码面板（asset x19..319 / y64..364）由 image#1 替换。
   卡片几何与向海卡完全一致（100% 100%），故动态叠层沿用 .poster 原值 —— 不再有专属位移。
   v=20260911j：卡片不再叠 print 诗句，源图抹字阈值收紧到 249 清掉残字浅灰边。 */
.poster-future {
  /* v= 破除 nginx 1h 图片缓存：内部主视觉面板已换为高清素材（2026-09-14，锐度 6.97→11.20） */
  background-image: url('../img/kv/poster-card-future-2x.png?v=20260914p');
}

/* ② 金句摘录：直接叠在设计稿的蓝框上，只出白字（不重复画框） */
.p-quote {
  position: absolute; left: 8.8%; top: 78.4%; width: 31.5%; height: 9.9%;
  color: #fff; font-size: 9px; font-size: 2.7cqw; line-height: 1.28;
  overflow: hidden;
}
.p-quote-item { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ③ 身份层：脱敏工号 */
.p-id {
  position: absolute; left: 7.1%; top: 89.0%;
  color: #0b7fbf; font-size: 11px; font-size: 3.24cqw; font-weight: 600;
  white-space: nowrap;
}
/* ④ 二维码 + 扫码文案：固定在卡片右下留白区，改用「法本信息公众号」静态二维码。
   top 与左侧金句/代码诗同高（78.4%）→ 两者水平对齐；原先的「第 N 份数字印记 · 长按保存分享」已移除。 */
.p-qr {
  position: absolute; right: 6.8%; top: 78.4%; width: 18.5%;
  display: flex; flex-direction: column; align-items: center;
}
.p-qr-box {
  width: 100%; aspect-ratio: 1 / 1;
  background: #fff; border-radius: 6px; overflow: hidden;
}
.p-qr-box svg, .p-qr-box img { width: 100%; height: 100%; display: block; }
/* 「扫码迎好彩」：金色粗体（对齐参考效果），米色卡底上以浅棕描边保证可读 */
.p-qr-tip {
  margin-top: 3px;
  color: #f0b429;
  font-size: 2.7cqw; font-weight: 800;
  line-height: 1.15; white-space: nowrap; letter-spacing: .5px;
  text-shadow: 0 0 1px rgba(122,67,31,.95), 0 .5px 0 rgba(122,67,31,.75), 0 -.5px 0 rgba(122,67,31,.55);
}

/* 底部按钮组 */
.poster-actions { margin-top: 14px; }
.poster-page .btn { height: 48px; padding: 0; border-radius: 12px; font-size: 15px; font-weight: 600; }
.poster-btnrow { margin-top: 10px; }
.btn.pbtn-light { background: #fff; color: #1b6fb5; border: 1px solid #dbe6f0; box-shadow: 0 3px 10px rgba(30,58,95,.08); }
.btn.pbtn-red { background: linear-gradient(135deg, #f0645a, #d92b3f); color: #fff; border: none; box-shadow: 0 6px 16px rgba(217,43,63,.28); }
.btn.pbtn-blue { background: #1b6fb5; color: #fff; border: none; margin-top: 10px; box-shadow: 0 6px 16px rgba(27,111,181,.26); }

/* ===== 海报导出预览层：不支持系统分享的浏览器（尤其微信内置）走「长按保存到相册」 ===== */
.pp-mask {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(15,23,42,.78);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: fadeIn .25s ease both;
}
.pp-box {
  max-width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.pp-tip { color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .5px; }
/* 宽高都 auto + max 约束：等比缩放不变形（写 width:100% 会与 max-height 打架被压扁） */
.pp-img {
  display: block; width: auto; height: auto;
  max-width: 100%; max-height: 62dvh;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.pp-actions { display: flex; gap: 10px; width: 100%; max-width: 340px; }
.pp-btn {
  flex: 1; height: 42px; line-height: 42px;
  border-radius: 10px; border: none;
  font-size: 15px; font-weight: 600; text-align: center;
  text-decoration: none; cursor: pointer;
}
.pp-dl { background: #1b6fb5; color: #fff; }
.pp-close { background: rgba(255,255,255,.92); color: #334155; }

/* ===== 响应式：根据屏幕宽度微调内边距与字号，避免小屏拥挤、大屏过大 ===== */
@media (max-width: 360px) {
  .logo h1 { font-size: 22px; }
  .step-title h2 { font-size: 18px; }
  .sign-amt { font-size: 34px; }
  .draw-cta .envelope { font-size: 54px; }
  .card { padding: 16px 14px; }
  .ship-stage { height: min(46dvh, 240px); }
}
@media (min-width: 414px) {
  .logo h1 { font-size: 28px; }
}
@media (min-width: 430px) {
  #app { box-shadow: 0 0 40px rgba(0,0,0,0.4); }
}

/* ============================================================
   黄色 KV 主题覆盖层（真实主KV：明黄海洋 #F3D14F + 披风红 + 海浪青蓝）
   翻转「深色底 + 白字」为「黄底 + 深字 + 红/蓝点缀」
   ============================================================ */
/* 2026-09-14 第三轮：容器外「去掉底层黄 / 绿」，容器内各页背景原样保留
   容器 #app 最大宽 430px 居中，桌面宽屏下容器之外原本会露出三层底色：
     ① html/body 纯黄 #f3d14f + 底部青蓝渐变（青蓝叠黄 = 截图底部那条绿带）；
     ② #app::before 的 KV 主视觉幽灵层（fixed 全宽、contain 溢出成矩形边，
        即截图中容器右侧那条被圈出的浅色竖条）；
     ③ #app::after 的底部 110px 青蓝波浪径向渐变（同一条绿带的来源）。
   现三层全部去掉，容器外为纯白；容器内每一页自己的 cover 底图与兜底色不动。 */
html, body { background: #ffffff; color: #1e293b; }
#app { background: none; box-shadow: none; }
#app::before, #app::after { content: none; }
#app > * { position: relative; z-index: 1; }

.logo h1 { color: #1e293b; text-shadow: 0 1px 0 rgba(255,255,255,.35); }
.logo p { color: #475569; }

.card { background: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.65); box-shadow: 0 4px 18px rgba(30,41,59,.1); }
.card h2 { color: var(--brand-red); }
.card p, .card li, .card ul { color: #475569; }

label { color: #64748b; }
input[type="text"], input[type="number"] { background: #fff; border: 1px solid #e2d39a; color: #1e293b; }
input:focus { border-color: var(--brand-red); }

.checkbox { color: #475569; }
.hint { color: #64748b; }
.err { color: #dc2626; }

/* 字段说明文字：浅色主题下次级灰 */
.field-tip { color: #64748b; }

.step-title h2 { color: #1e293b; }
.step-title .sub { color: #64748b; }

.option { background: rgba(255,255,255,.78); border: 1px solid rgba(226,211,154,.8); color: #334155; }
.option.selected { background: var(--brand-red-30); border-color: var(--brand-red); color: #fff; }

.count-bar { color: #64748b; }
.count-bar span { color: var(--brand-red); }

.btn.secondary { background: rgba(255,255,255,.85); border: 1px solid #e2d39a; color: #334155; }

.wechat-tip { background: rgba(255,255,255,.78); border: 1px solid #e2d39a; color: #475569; }
.wechat-tip.ok { background: rgba(7,193,96,.12); border-color: rgba(7,193,96,.4); color: #047857; }

.progress .dot { background: rgba(30,41,59,.15); }
.progress .dot.active { background: var(--brand-red); }

/* 加载 / 开场 */
.loading-page { color: #1e293b; }
.splash-mid .sub2 { color: #475569; }
.splash-mid .hint { color: #64748b; }
.splash-mid .splash-titles h1 { color: #1e293b; text-shadow: 0 1px 0 rgba(255,255,255,.4); }

/* 选择页①：大船 + 燃料槽（stage 改为透明容器，露出整页海浪 KV 底图，不再贴第二层底色） */
.ship-stage { background: none; box-shadow: none; border: none; }
.ship-stage .moon-deco { box-shadow: 0 0 28px rgba(245,158,11,.45); }
.ship .tank-label { color: #475569; background: rgba(255,255,255,.5); }
.ship .slot { color: #1e293b; background: rgba(255,255,255,.55); border: 2px dashed rgba(30,41,59,.18); }
.ship .slot.filled { color: #fff; border-style: solid; }
.ship .ship-fuel { background: rgba(30,41,59,.08); border: 1px solid rgba(30,41,59,.12); }
.ship .hull { background: linear-gradient(180deg,#a06a3e,#6b4a30); }
.ship .hull::before { background: linear-gradient(#caa472,#8a6233); }

/* 意向图标卡片（黄底化） */
.icon-card { background: rgba(255,255,255,.78); border: 1px solid rgba(226,211,154,.7); }
.icon-card .icon, .icon-card .icon-label { color: #475569; }
.icon-card.selected { background: var(--accent-30, rgba(226,211,154,.7)); border-color: var(--accent, var(--brand-red)); }
.icon-card.selected .icon-label { color: var(--accent, #1e293b); font-weight: 700; }
.icon-card .ff-input { background: #fff; border: 1px solid var(--brand-red); color: #1e293b; }
.ff-block-input { background: #fff; border: 1px solid var(--brand-red); color: #1e293b; }

/* 海报：已改为白卡设计稿版（旧的深色卡片覆盖层规则已移除，配色见上方 .poster 白卡定义） */
.share-tip { color: #334155; background: rgba(255,255,255,.65); border-left-color: var(--brand-red); }
.poster .kv, .kv { color: #64748b; }
/* 抽奖页引导语（.kv-dark）：改黑色。原 #64748b 灰蓝在黄色海浪 KV 上偏色、对比不足 */
.kv.kv-dark { color: #1a1a1a; }

/* ===== 选项页① · 向新向海向未来 · 大船航行海面 ===== */
.ship-stage {
  position: relative; height: min(54dvh, 460px); border-radius: 18px; overflow: visible;
  /* 去掉贴片渐变与内阴影：整页海浪 KV 已是背景，stage 只作为透明的船只摆放容器 */
  background: none;
  box-shadow: none;
}
/* 原 stage 内的两层背景装饰（白色光晕 / 底部波纹）一并去掉，避免与整页海浪重复叠加 */
.sky-glow { display: none; }
.sea-waves { display: none; }
@keyframes waveMove { to { background-position: 100px 0, 100px 0, 100px 0, 100px 0; } }

/* 大船整体居中，完整可见 */
.ship {
  position: absolute; left: 50%; top: 48%; transform: translate(-50%,-50%) rotate(-2deg);
  width: min(320px, 86vw); aspect-ratio: 320 / 260; height: auto; z-index: 2; transform-origin: center center;
}
.ship.full { animation: shipGo 1.2s ease-in-out infinite; }
.ship.full .ship-svg { filter: drop-shadow(0 0 22px rgba(243,209,79,.9)); }
@keyframes shipGo {
  0%,100% { transform: translate(-50%,-50%) rotate(-2.5deg) translateY(0); }
  50% { transform: translate(-50%,-52%) rotate(1.5deg) translateY(-14px); }
}

/* SVG 大船 */
.ship-svg {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  overflow: visible; filter: drop-shadow(0 10px 16px rgba(0,0,0,.28));
}
.svg-sail { transform-origin: bottom left; transition: transform .8s cubic-bezier(.2,.9,.2,1); }
.svg-sail-main { transform: scale(0.92); }
.svg-sail-front { transform: scale(0.92); }
.ship.full .svg-sail-main { transform: scale(1.06); }
.ship.full .svg-sail-front { transform: scale(1.06); }
.svg-flag { transform-origin: left center; animation: flagWave 1.2s ease-in-out infinite alternate; }
@keyframes flagWave { to { transform: skewY(-6deg) scaleX(0.92); } }

/* 甲板燃料槽 */
.ship-deck {
  position: absolute; left: 50%; top: 26%; transform: translateX(-50%); width: 170px; z-index: 4;
}
.fuel-tank {
  position: relative; width: 100%; background: rgba(255,255,255,.88); border: 2px dashed var(--brand-red, #d23f47);
  border-radius: 12px; padding: 6px 6px 8px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.15); transition: all .25s;
}
.fuel-tank.hot { background: rgba(210,63,71,.18); border-color: var(--brand-red, #d23f47); box-shadow: 0 0 18px rgba(210,63,71,.6); transform: scale(1.05); }
.ship .tank-label { color: #7a431f; background: transparent; font-size: 11px; font-weight: 700; margin-bottom: 5px; }
.slots { display: flex; gap: 5px; justify-content: center; }
.ship .slot {
  flex: 1; height: 30px; border-radius: 8px; background: rgba(122,67,31,.12); border: 1px solid rgba(122,67,31,.32);
  display: flex; align-items: center; justify-content: center; font-size: 12px; color: #7a431f; font-weight: 600; transition: all .2s;
  touch-action: none; cursor: grab;
}
.ship .slot.filled {
  background: linear-gradient(135deg, var(--brand-red, #d23f47), #b52a20); color: #fff; border-style: solid; border-color: #fff;
  box-shadow: 0 0 12px rgba(210,63,71,.55);
}

/* 船底能量条（覆盖在 SVG 船体底部） */
.ship-fuel { position: absolute; left: 42px; right: 78px; bottom: 24px; height: 6px; background: rgba(255,255,255,.35); border-radius: 4px; overflow: hidden; }
.ship-fuel-fill { height: 100%; width: 0%; background: linear-gradient(90deg,#4ecdc4,#f3d14f); transition: width .5s; }

.ship-flame { position: absolute; left: 4px; top: 78px; font-size: 28px; opacity: 0; transform: scale(0); transition: all .3s; }
.ship-flame.show { opacity: 1; transform: scale(1); animation: flicker .25s infinite alternate; }
@keyframes flicker { to { transform: scale(1.2) rotate(-8deg); } }

.fuel-pack {
  position: absolute; z-index: 5;
  display: flex; align-items: center; gap: 4px; padding: 7px 11px; border-radius: 18px;
  /* 去掉药丸底色/描边/投影：关键词直接漂浮在底层画面（海浪 KV）上，只保留文字与图标 */
  background: none; border: none; box-shadow: none; color: #7a431f;
  text-shadow: 0 1px 2px rgba(255,255,255,.55);
  font-size: 12.5px; font-weight: 700; white-space: nowrap; cursor: grab; user-select: none;
  touch-action: none;
  animation: floaty 3s ease-in-out infinite; animation-delay: var(--d, 0s);
}
/* 注意：定位由 JS 直接设置左上角(left/top)，不再用 translate(-50%) 居中，避免 transform 行为不一致导致溢出 */
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.fuel-pack:active { cursor: grabbing; }
.fuel-pack .fp-ico { font-size: 13px; }
.fuel-pack.used { opacity: .4; filter: grayscale(.45); cursor: default; box-shadow: none; animation: none; }
.fuel-pack.dragging-src { opacity: .25; }
.dragging { position: fixed !important; z-index: 9999 !important; pointer-events: none; transform: none !important; animation: none !important; margin: 0 !important; }

.ship-banner { margin-top: 10px; text-align: center; font-weight: 800; font-size: 15px; color: #b52a20; opacity: 0; transform: translateY(8px); transition: all .4s; }
.ship-banner.show { opacity: 1; transform: translateY(0); animation: pop .5s ease; }
@keyframes pop { 0% { transform: scale(.9); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }

/* ===== 抽奖页：拆红包 + 签文 ===== */
.draw-cta { text-align: center; margin: 22px 0 16px; }
.draw-cta .envelope { font-size: 64px; animation: floaty 2.4s ease-in-out infinite; }
.draw-cta .draw-hint { color: #1e293b; font-size: 12px; margin-top: 12px; line-height: 1.6; font-weight: 500; }
.btn.big { font-size: 18px; padding: 16px 34px; }

.sign-card {
  background: linear-gradient(160deg, rgba(255,245,224,.96), rgba(255,228,196,.92));
  border: 1px solid rgba(202,138,4,.35);
  border-radius: 18px;
  padding: 26px 20px 22px;
  text-align: center;
  box-shadow: 0 10px 34px rgba(202,138,4,.25);
  margin: 8px 0 16px;
  color: #7c2d12;
}
.sign-card.hidden-sign {
  background: linear-gradient(160deg, #fef3c7, #fde68a);
  border-color: #d97706;
  box-shadow: 0 10px 34px rgba(217,119,6,.35);
}
.sign-card.grand {
  background: linear-gradient(160deg, #fff7ed, #fee2e2);
  border-color: #dc2626;
  box-shadow: 0 0 36px rgba(220,38,38,.45);
  animation: glow 1.6s ease-in-out infinite;
}
@keyframes glow { 0%,100% { box-shadow: 0 0 28px rgba(220,38,38,.35); } 50% { box-shadow: 0 0 46px rgba(220,38,38,.6); } }
.sign-amt { font-size: 42px; font-weight: 800; color: #b45309; letter-spacing: 1px; }
.sign-card.grand .sign-amt { color: #dc2626; }
.sign-name { font-size: 26px; font-weight: 800; margin: 6px 0 4px; color: #451206; }
.sign-tag { font-size: 14px; color: #451206; line-height: 1.65; margin-bottom: 14px; padding: 0 6px; font-weight: 600; }
.sign-card .kouling {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: rgba(255,255,255,.6); border: 1px dashed rgba(202,138,4,.5);
  border-radius: 12px; padding: 8px 12px; margin: 0 auto 10px; max-width: 280px;
}
.sign-card .kouling-txt { font-weight: 700; letter-spacing: 1px; font-size: 15px; }
.sign-card .tip { font-size: 12px; color: #a16207; }

/* 现金红包领取区（授权 / 直发） */
.rp-result { text-align: center; margin: 4px auto 10px; max-width: 300px; }
.rp-result.ok { background: rgba(22,119,255,.08); border: 1px solid rgba(22,119,255,.25); border-radius: 12px; padding: 12px; }
.rp-amt { font-size: 16px; font-weight: 700; color: #1677ff; margin-bottom: 6px; }
.rp-result .tip { font-size: 12px; color: #475569; margin-top: 4px; line-height: 1.5; }
.sign-card .btn.alipay.big { margin: 10px auto 4px; }

.sign-share { text-align: center; margin: 16px 0 6px; }
.sign-share p { color: #1e293b; font-size: 13px; margin-bottom: 10px; line-height: 1.6; font-weight: 500; }
/* 分享解锁提示：只剩一句后显式居中（不再依赖父级继承，避免日后有人改 .sign-share 对齐时被带偏） */
.sign-share .draw-hint { text-align: center; }

/* 拆红包 loading 全屏遮罩 */
.draw-loading {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(8,11,26,.84);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.draw-loading.hidden { display: none; }
.dl-box { text-align: center; color: #fff; }
.dl-envelope { font-size: 72px; animation: shake 0.9s ease-in-out infinite; }
.dl-spinner {
  width: 42px; height: 42px; margin: 18px auto 12px;
  border: 4px solid rgba(255,255,255,.25);
  border-top-color: #fbbf24; border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.dl-text { font-size: 16px; letter-spacing: 1px; color: #fde68a; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shake { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-8px) rotate(4deg); } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- 分享真实性校验：引导层 + 截图兜底 ---------- */
.share-guide {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(8,11,26,.82);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0 0 18px;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.sg-card {
  width: min(94%, 420px);
  background: #fffdf7;
  border-radius: 18px;
  padding: 18px 16px 14px;
  box-shadow: 0 18px 46px rgba(0,0,0,.32);
  animation: sgIn .22s ease-out;
}
@keyframes sgIn { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.sg-title { font-size: 16px; font-weight: 700; color: #8c2f2f; text-align: center; margin-bottom: 10px; }
.sg-steps { margin: 0 0 12px; padding-left: 20px; }
.sg-steps li { font-size: 13px; color: #1e293b; line-height: 1.75; }
.sg-steps b { color: #b91c1c; }
.sg-bar { height: 6px; border-radius: 6px; background: rgba(30,41,59,.12); overflow: hidden; }
.sg-bar > i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg,#f0a72f,#e0433a); transition: width .25s ease; }
.sg-tip { font-size: 12px; color: #475569; line-height: 1.6; margin: 8px 0 12px; text-align: center; }
.sg-actions { display: flex; flex-direction: column; gap: 8px; }
.sg-actions .btn.sm { font-size: 13px; padding: 10px 12px; }
.proof-btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; margin-top: 4px; }
.proof-note { color: #166534 !important; }

/* 后台看板：分享举证（朋友圈截图）核对 */
.proof-row { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(30,41,59,.1); }
.proof-row:last-of-type { border-bottom: none; }
.proof-thumb { width: 64px; height: 84px; object-fit: cover; border-radius: 8px; background: rgba(30,41,59,.08); flex: 0 0 auto; }
.proof-meta { flex: 1; min-width: 0; font-size: 13px; line-height: 1.6; color: #1e293b; }
.proof-time { font-size: 12px; color: #64748b; }
.proof-ops { display: flex; gap: 8px; margin-top: 6px; }
.proof-ops .btn.sm { font-size: 12px; padding: 6px 10px; }
.proof-hist { margin-top: 8px; font-size: 12px; color: #475569; }
.proof-hist summary { cursor: pointer; }

/* 燃料槽内的长关键词（≥3 字）缩一号字，避免在窄槽里换行溢出 */
.ship .slot.long { font-size: 10px; line-height: 1.1; letter-spacing: -0.2px; padding: 2px; }
