* {
  box-sizing: border-box;
}

[hidden] { display: none !important; }

html,
body {
  margin: 0;
  min-height: 100%;
  background: #f1f1f1;
  color: #4e586b;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

body {
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

.page {
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  background: #f1f1f1;
}

.hero {
  height: 126px;
  padding-top: 17px;
  background: linear-gradient(180deg, #9f1712 0%, #7c0e0b 100%);
}

.count-circle {
  width: 92px;
  height: 92px;
  margin: 0 auto;
  border-radius: 50%;
  background: #d8f0df;
  color: #198754;
  box-shadow: inset 0 0 0 1px rgba(25, 135, 84, 0.12), 0 2px 4px rgba(0, 0, 0, 0.08);
  font-size: 39px;
  font-weight: 300;
  line-height: 92px;
  text-align: center;
}

.content {
  padding: 8px;
}

.notice-card,
.info-card,
.records-card {
  margin: 0 0 8px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.notice-card {
  display: flex;
  gap: 12px;
  padding: 15px 20px 20px 18px;
}

.speaker {
  display: inline-block;
  flex: 0 0 auto;
  margin-top: 4px;
  color: #198754;
  font-size: 18px;
  transform: scaleX(0.85);
}

.notice-card p {
  margin: 0;
  color: #4d5668;
  font-size: 16px;
  line-height: 1.85;
}

.genuine-title {
  color: #198754;
}

.modal-circle {
  background: #d8f0df;
  color: #198754;
}

.info-card {
  padding: 14px 16px 8px;
}

.label-image {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 168px;
  padding: 6px 0 14px;
}

.label-image img {
  display: block;
  width: 86%;
  max-width: 300px;
  border-radius: 8px;
}

.row {
  display: flex;
  border-bottom: 1px solid #e7e7e7;
  min-height: 42px;
  align-items: center;
  color: #4d5668;
  font-size: 16px;
}

.row span {
  width: 112px;
  color: #3d4658;
}

.row strong {
  font-weight: 400;
  word-break: break-all;
}

.identity {
  padding: 14px 0 8px;
  color: #4d5668;
  font-size: 15px;
}

.records-card {
  position: relative;
  padding: 12px 10px 0;
}

.records-title {
  margin-bottom: 8px;
  color: #343b4a;
  font-size: 16px;
}

.report-link {
  position: absolute;
  right: 12px;
  top: -36px;
  color: #208400;
  font-size: 17px;
  text-decoration: none;
  white-space: nowrap;
}

.record {
  padding: 10px 0 9px;
  border-top: 1px solid #e2e2e2;
}

.record-main {
  display: grid;
  grid-template-columns: 120px 1fr 50px;
  align-items: center;
  gap: 8px;
}

.record-title,
.record-time,
.record-address {
  color: #4d5668;
  font-size: 15px;
}

.record-address {
  margin-top: 6px;
}

.record-source {
  min-width: 50px;
  padding: 2px 8px;
  border-radius: 14px;
  color: #fff;
  font-size: 14px;
  text-align: center;
}

.record-source.web {
  background: #1d66a9;
}

.record-source.wechat {
  background: #4e8f09;
}

.more-btn {
  display: block;
  margin: 10px auto 8px;
  border: 0;
  background: transparent;
  color: #5c6372;
  font-size: 16px;
}

.footer {
  padding: 8px 0 16px;
  color: #606060;
  font-size: 12px;
  text-align: center;
}

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 165px;
  background: rgba(0, 0, 0, 0.45);
}

.modal-mask.hidden {
  display: none;
}

.result-modal {
  position: relative;
  width: 80%;
  max-width: 312px;
  overflow: hidden;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.close-btn {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: transparent;
  font-size: 29px;
  line-height: 21px;
}

.modal-top,
.modal-mid {
  background: #198754;
  color: #fff;
  text-align: center;
}

.modal-top {
  padding: 44px 14px 16px;
}

.modal-circle {
  width: 120px;
  height: 120px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #d8f0df;
  color: #198754;
  box-shadow: inset 0 0 0 1px rgba(25, 135, 84, 0.12);
  font-size: 50px;
  font-weight: 300;
  line-height: 120px;
}

.modal-top h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.modal-mid {
  padding: 17px 18px 16px;
  border-top: 2px solid rgba(255, 255, 255, 0.85);
}

.modal-label {
  font-size: 16px;
  font-weight: 700;
}

.modal-code,
.modal-time {
  margin-top: 8px;
  font-size: 15px;
}

.modal-divider {
  width: 162px;
  height: 1px;
  margin: 8px auto 7px;
  background: #fff;
}

.modal-bottom {
  display: grid;
  grid-template-columns: 22px 1fr;
  column-gap: 9px;
  padding: 20px 18px 18px;
  color: #566074;
}

.modal-bottom p {
  margin: 0;
  font-size: 16px;
  line-height: 1.72;
}

.modal-report {
  grid-column: 2;
  justify-self: end;
  margin-top: 10px;
  color: green;
  font-size: 17px;
  text-decoration: none;
}

@media (min-width: 430px) {
  .modal-mask {
    padding-top: 176px;
  }
}

.report-page {
  background: #f5f5f5;
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 48px;
  padding: 0 15px;
  color: #222a38;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  font-size: 17px;
}

.report-header a {
  color: #2d8cf0;
  text-decoration: none;
}

.home-icon {
  color: #666;
  font-size: 20px;
}

.report-form {
  margin-top: 10px;
  background: #fff;
}

.form-section-title {
  height: 42px;
  padding: 13px 15px 0;
  color: #303849;
  background: #f7f7f7;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.form-item,
.textarea-item {
  display: grid;
  grid-template-columns: 96px 1fr 24px;
  align-items: center;
  min-height: 50px;
  padding: 0 15px;
  background: #fff;
  border-bottom: 1px solid #ededed;
}

.form-item span,
.textarea-item span {
  color: #222a38;
  font-size: 16px;
}

.form-item input,
.textarea-item textarea {
  width: 100%;
  border: 0;
  outline: 0;
  color: #515a6e;
  background: transparent;
  font-size: 16px;
  font-family: inherit;
}

.form-item input::placeholder {
  color: #b6b6b6;
}

.select-like::after {
  content: "›";
  justify-self: end;
  color: #bbb;
  font-size: 22px;
  line-height: 0;
  grid-column: 3;
  grid-row: 1;
}

.select-like input {
  padding-right: 22px;
}

.scan-icon {
  width: 20px;
  height: 20px;
  border: 2px solid #a62323;
  border-radius: 3px;
  position: relative;
}

.scan-icon::before,
.scan-icon::after {
  content: "";
  position: absolute;
  background: #fff;
}

.scan-icon::before {
  left: 6px;
  top: -3px;
  width: 4px;
  height: 24px;
}

.scan-icon::after {
  left: -3px;
  top: 6px;
  width: 24px;
  height: 4px;
}

.upload-block {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: start;
  min-height: 92px;
  padding: 13px 15px;
  border-bottom: 1px solid #ededed;
  background: #fff;
}

.upload-title {
  color: #303849;
  font-size: 16px;
}

.upload-btn {
  justify-self: start;
  width: 94px;
  height: 72px;
  border: 1px dashed #d9d9d9;
  border-radius: 3px;
  color: #999;
  background: #fafafa;
  font-size: 28px;
}

.upload-input {
  display: none;
}

.upload-count {
  width: 94px;
  margin-top: 8px;
  color: #999;
  font-size: 13px;
  text-align: center;
}

.textarea-item {
  align-items: start;
  display: block;
  min-height: 190px;
  padding-top: 13px;
}

.textarea-item textarea {
  min-height: 140px;
  margin-top: 18px;
  resize: none;
}

.submit-report {
  display: block;
  width: calc(100% - 30px);
  height: 42px;
  margin: 36px auto 0;
  border: 0;
  border-radius: 4px;
  color: #fff;
  background: #a50e0e;
  font-size: 17px;
  font-family: inherit;
}

.dialog-mask {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.45);
}

.dialog-mask.hidden {
  display: none;
}

.tip-dialog {
  width: 100%;
  max-width: 370px;
  overflow: hidden;
  border-radius: 7px;
  background: #fff;
  text-align: left;
}

.tip-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 29px 34px 5px;
}

.tip-x,
.tip-ok {
  display: inline-block;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  color: #fff;
  background: #f33a12;
  font-size: 25px;
  line-height: 20px;
  text-align: center;
  font-weight: 300;
}

.tip-ok {
  background: #19be6b;
  font-size: 18px;
  font-weight: 700;
  line-height: 23px;
}

.tip-dialog h2 {
  margin: 0;
  color: #303849;
  font-size: 20px;
  font-weight: 500;
}

.tip-dialog p {
  margin: 0;
  padding: 8px 47px 21px 72px;
  color: #515a6e;
  font-size: 16px;
  line-height: 1.7;
  text-align: left;
}

.tip-dialog button {
  display: block;
  width: 60px;
  height: 40px;
  margin: 0 32px 24px auto;
  border: 0;
  border-radius: 4px;
  color: #fff;
  background: #079f91;
  font-size: 16px;
  font-family: inherit;
}

.sheet-mask {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: flex;
  align-items: flex-end;
  background: rgba(0, 0, 0, 0.45);
}

.sheet-mask.hidden {
  display: none;
}

.sheet {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: #f7f7f7;
}

.sheet-title {
  height: 44px;
  color: #888;
  background: #fff;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  line-height: 44px;
  text-align: center;
}

.sheet-option,
.sheet-cancel {
  display: block;
  width: 100%;
  height: 48px;
  border: 0;
  border-bottom: 1px solid #eee;
  color: #303849;
  background: #fff;
  font-size: 16px;
  font-family: inherit;
}

.sheet-cancel {
  margin-top: 8px;
}

.success-page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: #f5f5f5;
}

.success-panel {
  width: 100%;
  max-width: 360px;
  padding: 42px 24px 36px;
  border-radius: 6px;
  background: #fff;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.success-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  color: #fff;
  background: #19be6b;
  font-size: 40px;
  line-height: 64px;
}

.success-panel h1 {
  margin: 0 0 12px;
  color: #303849;
  font-size: 22px;
  font-weight: 500;
}

.success-panel p {
  margin: 0;
  color: #515a6e;
  font-size: 16px;
  line-height: 1.8;
}

.success-back {
  display: block;
  width: 100%;
  max-width: 360px;
  height: 42px;
  margin-top: 18px;
  border-radius: 4px;
  color: #fff;
  background: #a50e0e;
  font-size: 17px;
  line-height: 42px;
  text-align: center;
  text-decoration: none;
}

/* First-query genuine-result demonstration. */
.hero { background: #198754; height: 123px; padding-top: 16px; }
.count-circle, .modal-circle { background: #fff; color: #198754; box-shadow: none; }
.modal-top, .modal-mid { background: #198754; }
.genuine-title { color: #fff; }
.speaker { color: #198754; }
.modal-mask { padding: min(19.7vh, 166px) 0 24px; overflow-y: auto; }
.result-modal { flex-shrink: 0; }
.modal-top { padding: 44px 14px 12px; }
.modal-top h1, .modal-label { font-weight: 400; }
.modal-circle { font-size: 56px; margin-bottom: 12px; }
.modal-code, .modal-time { overflow-wrap: anywhere; }
.modal-bottom { display: block; padding: 20px; }
.modal-bottom .speaker { float: left; margin-right: 14px; }
.modal-bottom p { line-height: 1.4; }
.modal-report { display: block; text-align: right; margin-top: 4px; }
.demo-note { display: block; margin-bottom: 10px; color: #737b86; font-size: 11px; }
.row span { flex-shrink: 0; }
.identity { overflow-wrap: anywhere; }
.report-link { top: 12px; }
.record-main { grid-template-columns: auto 1fr 50px; gap: 10px; }
.record-title, .record-time, .record-address { font-size: 13px; }
.record-address { padding-top: 5px; border-top: 1px solid #eee; }
.more-btn { text-decoration: underline; cursor: pointer; }
button, a, .select-like { cursor: pointer; }
:focus-visible { outline: 2px solid #287cba; outline-offset: 3px; }
@media (max-height: 650px) { .modal-mask { padding-top: 20px; } }
