/* =====================================================================
   前台 H5 样式(移动端优先) - 简约高级 / 结构分明
   主色: 展会绿  图标统一 SVG  组件全局统一
   ===================================================================== */
:root {
  --c-primary: #22ac38;
  --c-primary-dark: #1b8f2e;
  --c-bg: #f5f6f7;
  --c-card: #ffffff;
  --c-panel: #ececec;
  --c-text: #1f2329;
  --c-sub: #6b7280;
  --c-border: #d9d9d9;
  --c-warn: #f5a623;
  --c-danger: #d0021b;
  --radius: 6px;
  --shadow: 0 2px 10px rgba(0, 0, 0, .06);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.ic { width: 1em; height: 1em; vertical-align: -0.15em; }

/* ---------- 通用组件 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; border-radius: var(--radius); cursor: pointer;
  background: var(--c-primary); color: #fff;
  font-size: 15px; line-height: 1; padding: 12px 22px;
  transition: opacity .15s;
}
.btn:active { opacity: .85; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-block { display: flex; width: 100%; }
.btn-ghost { background: #fff; color: var(--c-text); border: 1px solid var(--c-border); }
.input {
  width: 100%; padding: 12px 12px; font-size: 15px; color: var(--c-text);
  background: #fff; border: 1px solid var(--c-border); border-radius: 2px;
  outline: none;
}
.input:focus { border-color: var(--c-primary); }
.input::placeholder { color: #b6bcc4; }
.field { margin-bottom: 18px; }
.field-label { display: block; font-size: 15px; margin-bottom: 8px; color: var(--c-text); }
.toast {
  position: fixed; left: 50%; top: 40%; transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, .78); color: #fff; font-size: 14px;
  padding: 10px 18px; border-radius: 6px; z-index: 999; max-width: 80%;
  text-align: center; pointer-events: none;
}

/* ---------- 首页 ---------- */
.home-banner { width: 100%; display: block; }
.home-body { position: relative; background: var(--c-primary); padding: 22px 18px 90px; min-height: 60vh; }
.home-login { color: #fff; text-align: center; font-size: 13px; margin-bottom: 22px; }
.home-login .u { border-bottom: 1px solid rgba(255,255,255,.7); padding-bottom: 4px; }
.home-login a { text-decoration: underline; }
.home-cards { display: flex; gap: 18px; justify-content: center; margin-bottom: 26px; }
.home-card {
  flex: 1; max-width: 180px; background: #f7f7f7; border-radius: 4px;
  padding: 34px 10px 26px; text-align: center; color: var(--c-text);
  box-shadow: var(--shadow);
}
.home-card .ic { font-size: 56px; width: 56px; height: 56px; color: #2b2f36; }
.home-card .label { display: block; margin-top: 22px; font-size: 19px; }
.home-notice-title { color: #fff; font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.home-notice { color: #fff; font-size: 13px; line-height: 1.8; }
.home-notice p { margin-bottom: 12px; }
.expo-card { background: #f7f7f7; border-radius: 4px; padding: 18px 16px 20px; margin-top: 8px; box-shadow: var(--shadow); }
.expo-card .expo-head { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; padding-bottom: 12px; border-bottom: 1px solid #e3e3e3; margin-bottom: 14px; }
.expo-card .expo-head::before { content: ""; width: 4px; height: 16px; background: var(--c-primary); border-radius: 2px; }
.expo-card .expo-name { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.expo-card .expo-line { font-size: 13px; color: #333; line-height: 2; }
.home-animal { position: absolute; right: 6px; bottom: 12px; width: 130px; pointer-events: none; }

/* ---------- 登记页 ---------- */
.page-white { background: #f7f7f7; min-height: 100%; padding: 26px 20px 30px; }
.upload-row { display: flex; align-items: center; gap: 16px; margin: 26px 0 8px; }
.upload-tip { flex: 1; font-size: 15px; line-height: 1.7; }
.upload-tip b { font-weight: 700; }
.upload-btn {
  width: 96px; height: 84px; background: var(--c-primary); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  font-size: 13px; cursor: pointer; border: none;
}
.upload-btn .ic { width: 26px; height: 26px; }
.upload-preview { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 4px; }
.upload-preview .thumb { position: relative; width: 72px; height: 72px; border: 1px solid var(--c-border); border-radius: 4px; overflow: hidden; }
.upload-preview .thumb img { width: 100%; height: 100%; object-fit: cover; }
.upload-preview .thumb .rm {
  position: absolute; right: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.upload-preview .thumb .rm .ic { width: 10px; height: 10px; }
.submit-wrap { text-align: center; margin-top: 40px; }
.submit-wrap .btn { min-width: 220px; }
.form-foot { text-align: center; font-size: 14px; font-weight: 700; margin-top: 18px; }
.form-error { color: var(--c-danger); font-size: 13px; min-height: 18px; margin-top: 10px; text-align: center; }

/* ---------- 结果页(成功/审核中/凭证/未通过) ---------- */
.result-page { background: var(--c-primary); min-height: 100%; padding: 26px 16px 30px; }
.result-title { color: #fff; text-align: center; font-size: 18px; font-weight: 700; margin-bottom: 18px; }
.result-card { background: var(--c-panel); border-radius: 4px; padding: 26px 20px 30px; }
.result-card .expo-name { text-align: center; font-size: 15px; font-weight: 700; margin-bottom: 22px; }
.badge { display: flex; align-items: center; justify-content: center; width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 18px; }
.badge .ic { width: 30px; height: 30px; color: #fff; }
.badge-success { background: var(--c-primary); }
.badge-fail { background: var(--c-danger); }
.badge-pending { background: var(--c-warn); }
.kv { text-align: center; font-size: 14px; font-weight: 700; line-height: 1.9; }
.result-msg { text-align: center; font-size: 17px; font-weight: 700; margin: 40px 0; }
.result-notice-title { font-size: 16px; font-weight: 700; margin: 26px 0 12px; }
.result-notice { font-size: 13px; line-height: 1.9; }
.result-notice p { margin-bottom: 12px; }
.qr-box { background: #fff; width: 190px; margin: 20px auto; padding: 12px; border-radius: 4px; }
.qr-box img, .qr-box svg, .qr-box canvas { width: 100%; height: auto; display: block; }
.confirm-no { text-align: center; font-size: 14px; font-weight: 700; margin-top: 6px; }
.result-venue { text-align: center; font-size: 12px; color: #444; margin-top: 8px; }
.result-dates { text-align: center; font-size: 13px; line-height: 2; margin-top: 14px; }
.notes-title { text-align: center; font-size: 14px; font-weight: 700; margin: 18px 0 10px; }
.notes-list { font-size: 14px; line-height: 2; }
.result-foot { color: #fff; text-align: center; font-size: 13px; font-weight: 700; margin-top: 20px; }
.fail-box { display: flex; gap: 12px; align-items: center; background: var(--c-primary); border-radius: 4px; padding: 12px; margin-top: 22px; }
.fail-box .qr { width: 84px; height: 84px; background: #fff; padding: 6px; border-radius: 4px; flex: none; }
.fail-box .qr img { width: 100%; height: 100%; object-fit: contain; }
.fail-box .qr span { display: block; width: 100%; height: 100%; }
.fail-box .qr svg { width: 100%; height: 100%; display: block; }
.fail-box .txt { color: #fff; font-size: 14px; line-height: 1.7; }

/* 成功页(纯绿底居中) */
.success-page { background: var(--c-primary); min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 90px 20px 40px; text-align: center; }
.success-page .ok-circle { width: 78px; height: 78px; border-radius: 50%; background: #f7f7f7; display: flex; align-items: center; justify-content: center; margin: 0 auto 26px; }
.success-page .ok-circle .ic { width: 40px; height: 40px; color: var(--c-primary); }
.success-page .t1 { color: #fff; font-size: 17px; margin-bottom: 26px; }
.success-page .t2 { color: #fff; font-size: 16px; line-height: 2; }
.success-page .expo { color: #fff; }
.success-page .expo .n { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.success-page .expo .d { font-size: 13px; line-height: 2; }
.success-page .expo .v { font-size: 12px; margin-top: 10px; }
