* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #ecedef;
  color: rgba(0, 0, 0, .9);
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

button {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-head {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 5;
  width: 100%;
  height: 44px;
  background: #f8f8f8;
  color: #000;
}

.back-button {
  position: absolute;
  left: 5px;
  top: 6px;
  width: 27px;
  height: 27px;
  background: transparent;
  color: #000;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 38px;
  font-weight: 300;
  line-height: 23px;
}

.page-title {
  position: absolute;
  left: 70px;
  right: 70px;
  top: 7px;
  height: 30px;
  overflow: hidden;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 16px;
  line-height: 30px;
}

.home-page,
.detail-page {
  width: 100%;
  min-height: 100vh;
  padding-top: 44px;
}

.home-page {
  background-image: url("https://www.fakeme.vip/static/bg.png");
  background-position: center;
  background-size: cover;
}

.brand {
  text-align: center;
}

.brand-logo {
  display: block;
  width: 75%;
  height: 200px;
  margin: 0 auto;
  object-fit: fill;
}

.brand-tagline {
  margin-top: -37px;
  text-align: center;
  font-size: 19px;
  line-height: 27px;
}

.verify-card {
  width: 90%;
  margin: 70px auto 0;
  background: #fff;
  box-shadow: 0 0 5px #fff;
  text-align: center;
}

.verify-card h1 {
  margin: 0;
  padding-top: 25px;
  font-size: 15px;
  line-height: 21px;
  font-weight: 700;
}

.scan-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 135px;
  height: 120px;
  margin: 10px auto 5px;
  border-radius: 5px;
  background: #f3f3f3;
  box-shadow: inset 0 0 6px #d9d9d9;
  color: #000;
  cursor: pointer;
}

.scan-entry img {
  width: 74px;
  height: 72px;
}

.scan-entry span {
  padding-top: 5px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
}

.scan-page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: #fff;
}

.scan-back {
  z-index: 4;
}

.scan-camera {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #111;
}

.scan-camera video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scan-frame {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(72vw, 310px);
  height: min(72vw, 310px);
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 255, 255, .9);
  box-shadow: 0 0 0 999px rgba(0, 0, 0, .22);
}

.scan-help {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: min(86%, 360px);
  padding: 20px 22px;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, .88);
  color: #333;
  font-size: 14px;
  line-height: 1.55;
}

.scan-help[hidden],
.scan-dialog[hidden] {
  display: none;
}

.scan-help p {
  margin: 0;
}

.scan-manual {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 3;
  display: flex;
  gap: 8px;
  max-width: 390px;
  margin: 0 auto;
}

.scan-manual input {
  min-width: 0;
  flex: 1;
  height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 0;
  background: rgba(255, 255, 255, .92);
  font: inherit;
}

.scan-manual button {
  width: 76px;
  height: 38px;
  background: #4b4b4b;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}

.scan-dialog {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .18);
}

.scan-dialog-box {
  width: 300px;
  overflow: hidden;
  background: #fff;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .18);
}

.scan-dialog-box strong {
  display: block;
  padding: 15px 20px 7px;
  font-size: 17px;
  line-height: 24px;
}

.scan-dialog-box p {
  margin: 0;
  padding: 0 20px 16px;
  color: #555;
  font-size: 14px;
  line-height: 24px;
}

.scan-dialog-actions {
  display: flex;
  border-top: 1px solid #eee;
}

.scan-dialog-actions button {
  flex: 1;
  height: 48px;
  background: #fff;
  color: #333;
  cursor: pointer;
  font-size: 15px;
}

.scan-dialog-actions button + button {
  border-left: 1px solid #eee;
}

.verify-card p {
  margin: 0;
  padding-bottom: 22px;
  font-size: 18px;
  line-height: 25px;
  font-weight: 700;
}

.bottom-copy {
  position: relative;
  width: 90%;
  margin: 58px auto 0;
  font-size: 17px;
  line-height: 25px;
  font-weight: 700;
}

.bottom-copy p {
  margin: 0;
}

.bottom-copy img {
  position: absolute;
  right: 7px;
  top: 50px;
  width: 60px;
  height: 35px;
  object-fit: fill;
}

.hero-image,
.hero-image img {
  width: 100%;
  height: 312px;
}

.hero-image {
  overflow: hidden;
}

.hero-image img {
  display: block;
  object-fit: cover;
  object-position: center;
}

.result-card {
  width: 90%;
  margin: 5px auto 0;
  padding: 20px;
  background: #fff;
}

.result {
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
}

.result.error {
  color: #b3261e;
}

.title {
  margin-left: 13px;
  margin-bottom: 18px;
  font-size: 12px;
  line-height: 17px;
}

.info {
  margin-left: 13px;
  font-size: 12px;
  line-height: 17px;
}

.item {
  margin-bottom: 5px;
}

.buttons {
  margin: 20px 0;
}

.buttons button,
.buttons a {
  display: block;
  width: 100%;
  height: 36px;
  margin-bottom: 5px;
  background: #4b4b4b;
  color: #c5c5c5;
  cursor: pointer;
  text-align: center;
  font-size: 11px;
  line-height: 36px;
}

.detail-logo {
  width: 93px;
  height: 93px;
  margin: 0 auto;
}

.detail-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

@media (min-width: 430px) {
  .home-page,
  .detail-page {
    max-width: 430px;
    margin: 0 auto;
  }
}
