* {
  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;
  font-weight: 700;
  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;
  overflow: hidden;
  background: #000;
}

.scan-head {
  position: fixed;
  height: 51px;
  box-shadow: none;
}

.scan-back {
  left: 14px;
  top: 10px;
  z-index: 6;
  width: 28px;
  height: 28px;
  overflow: hidden;
  color: transparent;
  font-size: 0;
}

.scan-back::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-left: 3px solid #111;
  border-bottom: 3px solid #111;
  transform: rotate(45deg);
}

.scan-camera {
  position: fixed;
  left: 0;
  right: 0;
  top: 51px;
  bottom: 0;
  overflow: hidden;
  background: #000;
}

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

.scan-frame {
  position: absolute;
  left: 50%;
  top: 56%;
  width: min(52.7vw, 255px);
  height: min(52.7vw, 255px);
  transform: translate(-50%, -50%);
  border: 1px solid rgba(0, 255, 64, .35);
  box-shadow: 0 0 18px rgba(0, 255, 64, .12);
}

.scan-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: #00ff45;
  border-style: solid;
}

.scan-corner-tl {
  left: -1px;
  top: -1px;
  border-width: 3px 0 0 3px;
}

.scan-corner-tr {
  right: -1px;
  top: -1px;
  border-width: 3px 3px 0 0;
}

.scan-corner-bl {
  left: -1px;
  bottom: -1px;
  border-width: 0 0 3px 3px;
}

.scan-corner-br {
  right: -1px;
  bottom: -1px;
  border-width: 0 3px 3px 0;
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 70%;
  height: 5px;
  background: #00ff45;
  box-shadow: 0 -78px 78px rgba(0, 255, 64, .38);
  animation: scanLine 2.2s ease-in-out infinite alternate;
}

@keyframes scanLine {
  from {
    top: 18%;
  }

  to {
    top: 80%;
  }
}

.torch-button {
  position: fixed;
  left: 50%;
  top: calc(55% + min(26.35vw, 127.5px) + 82px);
  z-index: 7;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 130px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  text-align: center;
  font-size: 20px;
  line-height: 1.35;
  transform: translateX(-50%);
}

.torch-icon {
  display: block;
  width: 48px;
  height: 48px;
  margin-bottom: 3px;
  object-fit: contain;
}

.scan-help {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: min(86%, 315px);
  padding: 20px 22px;
  transform: translate(-50%, -50%);
  background: transparent;
  color: #fff;
  font-size: 12px;
  line-height: 17px;
}

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

.scan-help p {
  margin: 0;
}

.scan-actions {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.photo-scan-button {
  display: block;
  height: 42px;
  background: rgba(255, 255, 255, .94);
  color: #111;
  cursor: pointer;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  line-height: 42px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .16);
}

.scan-actions input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.scan-manual {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.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;
  }
}
