* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  min-height: 100%;
  background: #f2f3f5;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1f2329;
}

.page {
  width: 100%;
  min-height: 100vh;
}

/* ============ 生成页 ============ */
.gen-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.gen-header {
  text-align: center;
  margin-bottom: 20px;
}

.gen-title {
  font-size: 24px;
  font-weight: 700;
  color: #1f2329;
}

.gen-sub {
  margin-top: 6px;
  font-size: 13px;
  color: #8a919f;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 20px 18px;
  margin-bottom: 18px;
  box-shadow: 0 1px 4px rgba(31, 35, 41, 0.06);
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #1f2329;
}

.field {
  margin-bottom: 14px;
}

.field-row {
  display: flex;
  gap: 12px;
}

.field.half {
  flex: 1;
}

.flabel {
  display: block;
  font-size: 13px;
  color: #4e5969;
  margin-bottom: 6px;
}

.finput {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #d5dae0;
  border-radius: 8px;
  background: #fff;
  font-size: 15px;
  color: #1f2329;
  outline: none;
}

.finput:focus {
  border-color: #00b42a;
}

.finput.file {
  padding-top: 11px;
  font-size: 13px;
  color: #4e5969;
}

.photo-preview {
  display: block;
  margin-top: 10px;
  width: 88px;
  height: 118px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #e5e6eb;
}

.form-error {
  color: #f53f3f;
  font-size: 13px;
  margin-bottom: 12px;
  text-align: center;
}

.btn {
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  background: #00b42a;
  color: #fff;
}

.btn-primary:active {
  background: #009a25;
}

.btn-ghost {
  background: #fff;
  border: 1px solid #d5dae0;
  color: #4e5969;
  font-size: 14px;
  font-weight: 500;
}

.qr-tip {
  font-size: 13px;
  color: #8a919f;
  margin-bottom: 14px;
  text-align: center;
}

.qr-box {
  display: flex;
  justify-content: center;
  padding: 16px 0;
}

.qr-box canvas,
.qr-box img {
  max-width: 100%;
  height: auto;
}

.qr-actions {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

/* ============ 结果页 ============ */
.result-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #f2f3f5;
}

.result-body {
  flex: 1;
  padding: 0 16px;
}

.verify-status {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 10px;
  padding: 18px 16px;
  margin-bottom: 16px;
}

.verify-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #00b42a;
  color: #fff;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.verify-title {
  font-size: 18px;
  font-weight: 700;
  color: #1f2329;
}

.verify-sub {
  margin-top: 2px;
  font-size: 13px;
  color: #4e5969;
}

.detail-header {
  font-size: 14px;
  font-weight: 600;
  color: #1f2329;
  margin: 4px 2px 10px;
}

.result-card {
  background: #fff;
  border-radius: 10px;
  padding: 6px 16px;
}

.photo-row {
  display: flex;
  justify-content: center;
  padding: 16px 0 12px;
}

.result-photo {
  width: 104px;
  height: 140px;
  object-fit: cover;
  border-radius: 4px;
  background: #f7f8fa;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid #f2f3f5;
}

.info-row:last-child {
  border-bottom: none;
}

.k {
  font-size: 15px;
  color: #1f2329;
}

.v {
  font-size: 15px;
  color: #4e5969;
  text-align: right;
  max-width: 60%;
  word-break: break-all;
}

.v.strong {
  color: #1f2329;
  font-weight: 600;
}

.result-footer {
  padding: 12px 16px 0;
}

.complaint {
  display: block;
  text-align: center;
  font-size: 12px;
  color: #c9cdd4;
  margin-bottom: 8px;
}

.btn-full {
  background: #00b42a;
  color: #fff;
  height: 48px;
  border-radius: 12px;
}

.btn-full:active {
  background: #009a25;
}

/* ============ 已退出遮罩 ============ */
.exit-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.exit-overlay-inner {
  text-align: center;
  padding: 0 32px;
}

.exit-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #f2f3f5;
  color: #4e5969;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-text {
  font-size: 18px;
  font-weight: 700;
  color: #1f2329;
}

.exit-overlay-tip {
  margin-top: 12px;
  font-size: 14px;
  color: #8a919f;
  line-height: 1.8;
}