/* =========================================================
   防伪查询 — 与 store 一致的编辑风格
   （页面本身保留 Tailwind + Vue，这里只覆盖视觉层）
   ========================================================= */

.af-body {
  background: var(--bg, #f7f9fd);
  color: var(--ink, #0d1a33);
  font-family: var(--sans);
}

.af-main {
  max-width: var(--wrap, 1200px);
  margin: 0 auto;
  padding: 68px 28px 96px;
}

/* ---------- 标题区 ---------- */
.af-intro { max-width: 660px; margin: 0 auto 46px; text-align: center; }

.af-kicker {
  margin: 0 0 16px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent, #1447d6);
}

.af-h1 {
  margin: 0 0 16px;
  font-family: var(--sans);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.028em;
  color: var(--ink, #0d1a33);
}

.af-sub {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--muted, #6f6a78);
}

/* ---------- 主体两栏 ---------- */
.af-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .82fr);
  gap: 30px;
  align-items: start;
  max-width: 1040px;
  margin: 0 auto;
}

/* ---------- 查询卡 ---------- */
.af-card {
  background: var(--surface, #fff);
  border: 1px solid var(--line, #e8e2db);
  border-radius: var(--radius-l, 22px);
  padding: 30px;
  box-shadow: var(--shadow, 0 12px 32px -12px rgba(25, 23, 32, .18));
}

.af-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 22px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line-2, #f1ece6);
}

.af-guide {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2, #2b3952);
  transition: color .2s var(--ease, ease);
}

.af-guide:hover { color: var(--accent, #1447d6); }

.af-guide-ico {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line, #e8e2db);
  background: var(--sand, #f4eee7);
  color: var(--ink, #0d1a33);
  font-size: 9px;
  padding-left: 2px;
}

.af-guide:hover .af-guide-ico { border-color: var(--accent, #1447d6); color: var(--accent, #1447d6); }

.af-langwrap {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  height: 34px;
  border: 1px solid var(--line, #e8e2db);
  border-radius: 999px;
  background: var(--bg, #f7f9fd);
  color: var(--muted, #6f6a78);
  font-size: 11px;
}

.af-lang {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2, #2b3952);
  padding: 0 2px;
  cursor: pointer;
  outline: none;
}

/* ---------- 表单 ---------- */
.af-form { display: block; }

.af-label {
  display: block;
  margin-bottom: 9px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted, #6f6a78);
}

.af-row { display: flex; gap: 10px; }

.af-input {
  flex: 1;
  min-width: 0;
  height: 58px;
  padding: 0 18px;
  border: 1px solid var(--line, #e8e2db);
  border-radius: var(--radius, 12px);
  background: var(--bg, #f7f9fd);
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--ink, #0d1a33);
  outline: none;
  transition: border-color .2s var(--ease, ease), background .2s var(--ease, ease), box-shadow .2s var(--ease, ease);
}

.af-input::placeholder { font-size: 14px; letter-spacing: 0; font-weight: 400; color: #a8a2b0; }
.af-input:focus {
  border-color: var(--ink, #0d1a33);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(20, 71, 214, .1);
}

.af-scan {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink, #0d1a33);
  border-radius: var(--radius, 12px);
  background: var(--ink, #0d1a33);
  color: #fff;
  font-size: 19px;
  cursor: pointer;
  transition: background .2s var(--ease, ease), transform .2s var(--ease, ease);
}

.af-scan:hover { background: var(--accent, #1447d6); border-color: var(--accent, #1447d6); }
.af-scan:active { transform: scale(.97); }

.af-submit {
  width: 100%;
  height: 54px;
  margin-top: 14px;
  border: 0;
  border-radius: var(--radius, 12px);
  background: var(--accent, #1447d6);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .2s var(--ease, ease), transform .2s var(--ease, ease), opacity .2s;
}

.af-submit:hover:not(:disabled) { background: var(--accent-dark, #8e1a46); }
.af-submit:active:not(:disabled) { transform: translateY(1px); }
.af-submit:disabled { opacity: .38; cursor: not-allowed; }

/* ---------- 结果 ---------- */
.af-result {
  margin-top: 24px;
  padding: 20px 22px;
  border-radius: var(--radius, 12px);
  border: 1px solid var(--line, #e8e2db);
  background: var(--bg, #f7f9fd);
  animation: afFade .45s var(--ease, ease);
}

@keyframes afFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.af-result.is-success { border-color: #cfe4d8; background: #f2f8f4; }
.af-result.is-repeated { border-color: #ecdfc4; background: #fdf8ec; }
.af-result.is-error { border-color: #f0d2d6; background: #fdf3f4; }

.af-result-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.af-result-top i { font-size: 20px; }
.af-result-top strong { font-family: var(--sans); font-size: 20px; font-weight: 700; }
.af-result.is-success .af-result-top i,
.af-result.is-success .af-result-top strong { color: #23684a; }
.af-result.is-repeated .af-result-top i,
.af-result.is-repeated .af-result-top strong { color: #8a6a1e; }
.af-result.is-error .af-result-top i,
.af-result.is-error .af-result-top strong { color: #a3283a; }

.af-facts { margin: 0; }

.af-facts > div {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 14px;
  padding: 7px 0;
  border-top: 1px solid rgba(25, 23, 32, .06);
}

.af-facts > div:first-child { border-top: 0; padding-top: 0; }

.af-facts dt {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted, #6f6a78);
  line-height: 1.7;
}

.af-facts dd {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-2, #2b3952);
  word-break: break-word;
}

.af-warn {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px dashed rgba(138, 106, 30, .3);
  font-size: 12.5px;
  line-height: 1.65;
  color: #8a6a1e;
}

.af-fail { margin: 0; font-size: 13.5px; line-height: 1.7; color: #a3283a; }

.af-error {
  margin: 16px 0 0;
  font-size: 12.5px;
  color: #a3283a;
  text-align: center;
}

.af-foot {
  margin: 26px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line-2, #f1ece6);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #a8a2b0;
  text-align: center;
}

/* ---------- 右侧说明 ---------- */
.af-side {
  background: var(--sand, #f4eee7);
  border-radius: var(--radius-l, 22px);
  padding: 30px 28px;
}

.af-side-h {
  margin: 0 0 22px;
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -.01em;
  color: var(--ink, #0d1a33);
}

.af-steps { list-style: none; margin: 0; padding: 0; }

.af-steps li {
  display: flex;
  gap: 14px;
  padding: 15px 0;
  border-top: 1px solid rgba(25, 23, 32, .08);
}

.af-steps li:first-child { border-top: 0; padding-top: 0; }

.af-step-n {
  flex: 0 0 auto;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent, #1447d6);
  padding-top: 2px;
}

.af-steps strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink, #0d1a33);
}

.af-steps p {
  margin: 0;
  font-size: 12.8px;
  line-height: 1.68;
  color: #5c5766;
}

.af-note {
  display: flex;
  gap: 11px;
  margin-top: 20px;
  padding: 15px 16px;
  border-radius: var(--radius, 12px);
  background: rgba(255, 255, 255, .72);
}

.af-note i { color: var(--accent, #1447d6); font-size: 15px; padding-top: 2px; }
.af-note p { margin: 0; font-size: 12.2px; line-height: 1.65; color: #5c5766; }

/* ---------- 弹窗兜底（原 Tailwind 弹窗保持，只调字体与圆角）---------- */
.video-container, .camera-container { border-radius: var(--radius, 12px); }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .af-main { padding: 44px 20px 72px; }
  .af-grid { grid-template-columns: 1fr; gap: 22px; }
  .af-intro { margin-bottom: 30px; text-align: left; }
  .af-card { padding: 22px; }
  .af-side { padding: 24px 22px; }
}

@media (max-width: 560px) {
  .af-h1 { font-size: 33px; }
  .af-card-head { flex-wrap: wrap; gap: 12px; }
  .af-input { height: 54px; font-size: 17px; letter-spacing: .1em; padding: 0 14px; }
  .af-scan { width: 54px; height: 54px; flex-basis: 54px; }
  .af-facts > div { grid-template-columns: 1fr; gap: 2px; }
  .af-facts dt { font-size: 10.5px; }
}
