/* 产品防伪查询页（#15）的样式。输入框和按钮都标了 data-role="none"，不让 jQuery Mobile 改造，排版完全由这里决定：
   每个输入框占满一行，提交按钮单独一行，手机上不会错位。
   2026-11-06 优化（用户要求，老皮肤里只有防伪页的表单和结果区这样改）：输入框用浮动标记（标签在框里，点进去或填了内容就缩小浮到框的上边缘，
   由 antifake.js 给 .af-row 加 af-filled；同时用 :placeholder-shown 兜一层）、点击高亮、出错标红、结果卡片按类型换颜色和图标、按钮提交中状态。 */
.af-wrap { background: #f2f2f2; }
/* 内容不够长时（比如结果页、完成页），页面本身的白底会在内容下面露出来：把整页底色都设成同一个灰，内容多长都是灰色铺满（用户 2026-11-06 要求） */
html, body, .ui-mobile, .ui-page, .ui-body-f, .ui-content { background: #f2f2f2 !important; }
.af-panel { background: #016cb7; padding: 16px 14px 18px; }
.af-panel form { margin: 0; }

/* 输入框 + 浮动标记 */
.af-row { position: relative; margin: 0 0 12px; }
.af-field { display: block; width: 100%; box-sizing: border-box; height: 54px; margin: 0; padding: 22px 14px 6px; line-height: 24px;
    border: 0; border-radius: 8px; background: #fff; color: #333; font-size: 16px; -webkit-appearance: none; appearance: none; }
.af-field::placeholder { color: transparent; }
.af-row label { position: absolute; left: 14px; top: 15px; margin: 0; max-width: calc(100% - 28px); overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
    font-size: 16px; line-height: 24px; color: #999; pointer-events: none; transform-origin: left top; transition: transform .15s ease, color .15s ease;
    -webkit-transition: transform .15s ease, color .15s ease; }
/* 浮上去：缩小到 0.75 倍，移到框的上沿（缩小后文字约 12px） */
.af-row.af-filled label, .af-field:focus + label { transform: translateY(-9px) scale(.75); -webkit-transform: translateY(-9px) scale(.75); color: #016cb7; }
.af-field:not(:placeholder-shown) + label { transform: translateY(-9px) scale(.75); -webkit-transform: translateY(-9px) scale(.75); color: #016cb7; }
.af-field:focus { outline: 0; box-shadow: 0 0 0 3px #ffd84d; }
.af-row.af-bad .af-field { box-shadow: 0 0 0 2px #ff6b5e; }
.af-row.af-bad .af-field:focus { box-shadow: 0 0 0 3px #ffd84d; }
.af-row.af-bad label { color: #d93025; }
.af-err { margin: 6px 0 0; padding: 6px 10px; border-radius: 6px; background: #fff3f0; color: #d93025; font-size: 13px; line-height: 18px; font-weight: bold; }

/* 按钮 */
.af-btn { display: block; width: 100%; box-sizing: border-box; height: 48px; line-height: 48px; margin: 6px 0 0; padding: 0; border: 0; border-radius: 8px;
    background: #ffd84d; color: #333; font-size: 17px; font-weight: bold; text-align: center; cursor: pointer; -webkit-appearance: none; appearance: none; }
.af-btn:active { background: #f2c418; }
.af-btn.af-busy { background: #e3cf8a; color: #6b6140; cursor: default; }

/* 提示、错误 */
.af-hint { margin: 12px 14px 0; padding: 12px 14px; border-radius: 8px; background: #fff; color: #666; font-size: 14px; line-height: 22px; }
.af-msg { margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; background: #fff3f0; color: #d93025; font-size: 14px; line-height: 20px; font-weight: bold; }

/* 结果卡片：按回复类型（ok 正品、seen 已被查询过、fake 不存在、info 认不出）换颜色和图标；文字里的换行按换行显示 */
.af-result { display: flex; display: -webkit-flex; align-items: flex-start; -webkit-align-items: flex-start; margin: 14px; padding: 14px; border-radius: 12px; border-left: 6px solid #016cb7; background: #e8f1f9; color: #333; }
.af-result .af-icon { flex: 0 0 auto; -webkit-flex: 0 0 auto; width: 32px; height: 32px; margin-right: 12px; border-radius: 50%; background: #016cb7; color: #fff; font-size: 18px; line-height: 32px; text-align: center; font-weight: bold; font-style: normal; }
.af-result-body { flex: 1 1 auto; -webkit-flex: 1 1 auto; min-width: 0; }
.af-result-body strong { display: block; margin-bottom: 4px; font-size: 16px; line-height: 24px; color: #222; }
.af-result-body p { margin: 0; white-space: pre-line; font-size: 15px; line-height: 24px; color: #444; }
.af-kind-ok { border-left-color: #1b7f3b; background: #e8f5ec; }
.af-kind-ok .af-icon { background: #1b7f3b; }
.af-kind-seen { border-left-color: #d97706; background: #fff4e0; }
.af-kind-seen .af-icon { background: #d97706; }
.af-kind-fake { border-left-color: #d93025; background: #fdecea; }
.af-kind-fake .af-icon { background: #d93025; }

/* 注册有奖区、完成页、再查一个 */
.af-activity { margin: 0 14px 12px; padding: 12px 14px; border-radius: 8px; background: #fff; font-size: 13px; line-height: 20px; color: #333; }
.af-activity .af-warn { margin-top: 6px; color: #d93025; font-weight: bold; }
.af-wrap > .af-panel { margin-bottom: 0; }
.af-done { margin: 14px; padding: 22px 14px; border-radius: 12px; background: #e8f5ec; color: #1b7f3b; font-size: 17px; font-weight: bold; text-align: center; }
.af-done .af-icon { display: inline-block; width: 28px; height: 28px; margin-right: 8px; border-radius: 50%; background: #1b7f3b; color: #fff; font-size: 16px; line-height: 28px; vertical-align: middle; font-style: normal; }
.af-again-wrap { padding: 14px; }
.af-again, .af-again:visited { display: block; box-sizing: border-box; height: 46px; line-height: 44px; border: 1px solid #016cb7; border-radius: 8px; background: #fff; color: #016cb7 !important; font-size: 16px; font-weight: bold; text-align: center; text-shadow: none; text-decoration: none; }
.af-again:active { background: #e8f1f9; }

/* 流程图 */
.af-images { background: #4862ad; margin-top: 10px; padding-bottom: 60px; }
.af-images img { display: block; width: 100%; }
