* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: #fff;
  font-family: Arial, "Microsoft YaHei", sans-serif;
}

body {
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
}

.screen {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: #fff;
  overflow: hidden;
  container-type: inline-size;
  --top-crop: 12cqw;
}

.screen-image {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.screen-canvas {
  position: relative;
  margin-bottom: calc(-1 * var(--top-crop));
  transform: translateY(calc(-1 * var(--top-crop)));
}

.text-link {
  position: absolute;
  display: inline-block;
  color: transparent;
  background: transparent;
  text-decoration: none;
  overflow: hidden;
  z-index: 2;
  line-height: 1.18;
  letter-spacing: 0;
  white-space: nowrap;
  -webkit-tap-highlight-color: rgba(0, 98, 255, 0.16);
}

.text-link:focus-visible {
  outline: 2px solid #0f67ff;
  outline-offset: 2px;
}

.top-back {
  left: 0.5%;
  top: 5.55%;
  width: 12.5%;
  height: 4.8%;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  font-size: 11cqw;
  font-weight: 200;
  line-height: 6.7cqw;
  text-align: center;
  background: transparent;
}

.page2-back {
  color: transparent;
}

.dark-back {
  color: transparent;
}

.page1-citizen {
  left: 8.2%;
  top: 52.25%;
  width: 34.5%;
  height: 3.35%;
  font-size: 4.62cqw;
  font-weight: 500;
}

.page2-records {
  left: 16.2%;
  top: 75.95%;
  width: 30%;
  height: 3.3%;
  font-size: 3.85cqw;
  font-weight: 400;
}

.page2-doc-query {
  left: 16.2%;
  top: 81.95%;
  width: 30%;
  height: 3.3%;
  font-size: 3.85cqw;
  font-weight: 400;
}

.page3-next {
  left: 3.2%;
  top: 40.45%;
  width: 93.6%;
  height: 5.55%;
}

.screen.custom-date-visible .page3-next {
  top: 48.1%;
  width: 93.6%;
  height: 5.55%;
  z-index: 5;
  display: grid;
  place-items: center;
  color: #fff;
  background: #115fe8;
  border-radius: 999px;
  font-size: 5.13cqw;
}

.page4-search {
  left: 3.2%;
  top: 92.95%;
  width: 93.6%;
  height: 5.55%;
}

.page6-now {
  left: 3.2%;
  top: 18.55%;
  width: 93.6%;
  height: 4.55%;
  display: grid;
  place-items: center;
  font-size: 5.6cqw;
  font-weight: 400;
}

.button-link {
  color: transparent;
  background: transparent;
  font-size: 5.13cqw;
  font-weight: 400;
}

.loading-mask {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 10;
  background: rgba(0, 0, 0, 0.18);
}

.loading-mask.is-visible {
  display: grid;
}

.loading-box {
  width: min(38vw, 148px);
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #ededed;
  background: rgba(38, 38, 38, 0.86);
  border-radius: 14px;
  font-size: 20px;
}

.loading-spinner {
  width: 42px;
  height: 42px;
  border: 5px solid rgba(255, 255, 255, 0.28);
  border-top-color: rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.privacy-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.privacy-cover,
.privacy-value,
.privacy-toggle {
  position: absolute;
}

.privacy-cover {
  display: block;
  background: #fff;
}

.cover-name {
  left: 27%;
  top: 11.75%;
  width: 26%;
  height: 3.3%;
}

.cover-id {
  left: 27%;
  top: 16.55%;
  width: 58%;
  height: 3.35%;
}

.cover-eye {
  left: 86.3%;
  top: 13.3%;
  width: 8.5%;
  height: 4.6%;
}

.cover-time {
  left: 27%;
  top: 21.45%;
  width: 67%;
  height: 4.1%;
}

.privacy-value {
  color: #6f6f6f;
  font-size: 4.95cqw;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.privacy-name {
  left: 28.4%;
  top: 12.2%;
}

.privacy-id {
  left: 28.4%;
  top: 16.95%;
}

.privacy-time {
  left: 28.4%;
  top: 22.0%;
}

.privacy-toggle {
  left: 85.6%;
  top: 13.1%;
  width: 8.8%;
  height: 4.8%;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: auto;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(0, 98, 255, 0.16);
}

.privacy-toggle img {
  width: 72%;
  height: auto;
  display: block;
}

.custom-range-panel {
  position: absolute;
  left: 0;
  top: 23.55%;
  width: 100%;
  height: 6.4%;
  z-index: 4;
  display: block;
  font-family: Arial, "Microsoft YaHei", sans-serif;
}

.screen.custom-date-visible .custom-range-panel {
  height: 22.4%;
}

.range-cover {
  position: absolute;
  inset: 0;
  background: #fff;
}

.screen.custom-date-visible .range-cover {
  background: linear-gradient(#fff 0 51%, #f7f7f7 51% 100%);
}

.range-tabs {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 94%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3.5%;
  align-items: center;
  transform: translate(-50%, -50%);
}

.screen.custom-date-visible .range-tabs {
  top: 14.3%;
}

.range-tab {
  height: 7.2cqw;
  padding: 0;
  border: 1px solid #e9e9e9;
  border-radius: 5px;
  color: #8a8a8a;
  background: #fff;
  font-size: 4.25cqw;
  font-weight: 400;
  line-height: 1;
}

.range-tab.is-active {
  border-color: #5f91ff;
  color: #1d68ff;
}

.range-date-row {
  position: absolute;
  left: 3.2%;
  right: 3.2%;
  top: 25.8%;
  height: 22%;
  display: none;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 5.9%;
  border-top: 1px solid #eee;
  padding-top: 0;
}

.screen.custom-date-visible .range-date-row {
  display: grid;
}

.date-field {
  height: 7.6cqw;
  padding: 0 7.5cqw 0 2.6cqw;
  border: 1px solid #e8e8e8;
  border-radius: 0;
  color: #8c8c8c;
  background: #fff;
  font-size: 4.1cqw;
  font-weight: 400;
  line-height: 1;
  text-align: left;
  position: relative;
}

.date-field::after {
  content: "";
  position: absolute;
  right: 2.6cqw;
  top: 50%;
  width: 2.8cqw;
  height: 2.8cqw;
  border-right: 2px solid #b9b9b9;
  border-bottom: 2px solid #b9b9b9;
  transform: translateY(-65%) rotate(45deg);
}

.date-split {
  color: #8c8c8c;
  font-size: 4.1cqw;
}

.range-tip {
  position: absolute;
  left: 3.2%;
  right: 3.2%;
  top: 31%;
  display: none;
  margin: 0;
  color: #919191;
  font-size: 4.05cqw;
  line-height: 1.45;
}

.screen.custom-date-visible .range-tip {
  display: block;
  top: 52.5%;
}

.date-picker {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: none;
}

.date-picker.is-visible {
  display: block;
}

.date-picker-shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.date-picker-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40.9%;
  background: #fff;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
}

.picker-wheels {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 63%;
  margin: 7% 6% 0;
}

.picker-highlight {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 10.8cqw;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  transform: translateY(-50%);
  pointer-events: none;
}

.picker-wheel {
  height: 100%;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.picker-wheel::-webkit-scrollbar {
  display: none;
}

.picker-wheel::before,
.picker-wheel::after {
  content: "";
  display: block;
  height: calc(50% - 5.4cqw);
}

.picker-option {
  height: 10.8cqw;
  display: grid;
  place-items: center;
  color: #a8a8a8;
  font-size: 5.3cqw;
  scroll-snap-align: center;
}

.picker-option.is-selected {
  color: #1c1c1c;
  font-size: 6.1cqw;
}

.picker-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10%;
  padding: 5.5% 17% 0;
}

.picker-btn {
  height: 12.4cqw;
  border: 0;
  border-radius: 5px;
  font-size: 5cqw;
  font-weight: 600;
}

.picker-cancel {
  color: #11bf67;
  background: #f2f2f2;
}

.picker-confirm {
  color: #fff;
  background: #08c866;
}

.cert-toggle-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.cert-toggle-cover,
.cert-list-cover {
  position: absolute;
  display: block;
}

.cert-toggle-cover {
  left: 78%;
  top: 12.2%;
  width: 19.2%;
  height: 4.25%;
  background: #f7f7f7;
}

.cert-toggle {
  position: absolute;
  left: 78.4%;
  top: 12.55%;
  width: 18.2%;
  height: 3.35%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5cqw;
  padding: 0;
  border: 1.5px solid #0b67ad;
  border-radius: 999px;
  color: #0b67ad;
  background: #f7f7f7;
  font-size: 4.4cqw;
  font-weight: 400;
  line-height: 1;
  pointer-events: auto;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(0, 98, 255, 0.16);
}

.cert-toggle-arrow {
  width: 2.7cqw;
  height: 2.7cqw;
  border-right: 2px solid #0b67ad;
  border-bottom: 2px solid #0b67ad;
  transform: translateY(-18%) rotate(45deg);
}

.cert-list-cover {
  left: 0;
  top: 17.55%;
  right: 0;
  bottom: 7.1%;
  display: none;
  background: #f7f7f7;
}

.screen.certs-collapsed .cert-list-cover {
  display: block;
}

.screen.certs-collapsed .cert-toggle-arrow {
  transform: translateY(18%) rotate(225deg);
}
