:root {
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: #111;
  background: #f1f1f1;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: #f1f1f1;
}

button,
a {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.preview {
  position: relative;
  width: 415px;
  height: 100%;
  margin: 0 auto;
}

.phone-shell {
  position: relative;
  width: 415px;
  height: 100%;
  overflow: hidden;
  border-radius: 4px;
  background: #fff;
  box-shadow: 2px 3px 10px #999;
}

.site-scroller {
  position: relative;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  background: #fff;
}

.site-scroller::-webkit-scrollbar {
  display: none;
}

.merchant-card {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  align-items: center;
  width: 100%;
  height: 73px;
  padding: 7px 17px 7px 19px;
  background: rgba(255, 255, 255, .98);
}

.merchant-logo {
  flex: 0 0 47px;
  width: 47px;
  height: 47px;
  margin-right: 13px;
  border-radius: 50%;
  object-fit: cover;
}

.merchant-info {
  min-width: 0;
  flex: 1;
}

.merchant-info h1 {
  overflow: hidden;
  margin: 0 0 5px;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.merchant-tags {
  display: flex;
  gap: 5px;
  overflow: hidden;
  white-space: nowrap;
}

.merchant-tags span {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid #aaa;
  border-radius: 10px;
  color: #555;
  font-size: 13px;
  line-height: 16px;
}

.page-content {
  padding-bottom: 62px;
}

.section-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

.call-strip,
.wechat-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 62px;
  padding-left: 20px;
  border: 0;
  background: #fff;
  color: #080808;
  font-size: 19px;
  text-decoration: none;
  cursor: pointer;
}

.call-strip strong,
.wechat-strip strong {
  display: grid;
  flex: 0 0 113px;
  height: 52px;
  margin-right: 16px;
  place-items: center;
  border-radius: 28px;
  background: #e9322f;
  color: #fff;
  font-size: 17px;
}

.icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
  margin-right: 8px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  vertical-align: middle;
}

.call-copy {
  display: flex;
  align-items: center;
}

.call-phone-icon {
  width: 21px;
  height: 21px;
  margin-right: 7px;
  stroke-width: 1.8;
}

.wechat-strip {
  color: #222;
}

.wechat-strip strong {
  background: #1aad17;
}

.wechat-icon {
  color: #1aad17;
  font-size: 10px;
  font-style: normal;
  letter-spacing: -4px;
}

.case-pair {
  display: grid;
  gap: 20px;
  padding-bottom: 0;
}

.site-footer {
  height: 89px;
  padding: 18px 12px;
  background: #f4f4f4;
  color: #999;
  text-align: center;
}

.site-footer p {
  margin: 0 0 7px;
  font-size: 12px;
}

.bottom-actions {
  position: sticky;
  z-index: 40;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 73px;
  margin-top: -73px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 -10px 20px rgba(0, 0, 0, .06);
}

.action-button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 53px;
  border: 0;
  border-radius: 27px;
  background: #ed302e;
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.icon-wechat {
  width: 27px;
  height: 24px;
  fill: currentColor;
  stroke: none;
}

.icon-wechat .icon-cutout {
  fill: #ed302e;
}

.action-button .icon-phone {
  width: 23px;
  height: 23px;
  stroke-width: 2;
}

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 92px;
  max-width: 300px;
  padding: 10px 16px;
  border-radius: 6px;
  background: rgba(0, 0, 0, .78);
  color: #fff;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: .2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.qr-card {
  position: absolute;
  top: 117px;
  left: 437px;
  width: 220px;
  height: 240px;
  padding: 10px;
  background: #fff;
}

#qrcode {
  width: 200px;
  height: 200px;
}

#qrcode img,
#qrcode canvas {
  display: block;
  width: 200px !important;
  height: 200px !important;
}

.qr-card p {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  margin: 0;
  color: #999;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 700px) {
  body {
    background: #fff;
  }

  .preview,
  .phone-shell {
    width: 100vw;
    max-width: none;
  }

  .preview {
    margin: 0;
  }

  .phone-shell {
    border-radius: 0;
    box-shadow: none;
  }

  .qr-card {
    display: none;
  }
}

@media (max-width: 380px) {
  .merchant-card {
    height: 66px;
    padding-right: 12px;
    padding-left: 16px;
  }

  .merchant-logo {
    flex-basis: 43px;
    width: 43px;
    height: 43px;
    margin-right: 11px;
  }

  .merchant-info h1 {
    font-size: 19px;
  }

  .merchant-tags span {
    padding-right: 5px;
    padding-left: 5px;
    font-size: 12px;
  }

  .call-strip,
  .wechat-strip {
    height: 56px;
    padding-left: 17px;
    font-size: 17px;
  }

  .call-strip strong,
  .wechat-strip strong {
    flex-basis: 102px;
    height: 48px;
    margin-right: 14px;
    font-size: 16px;
  }

  .bottom-actions {
    gap: 12px;
    height: 66px;
    margin-top: -66px;
    padding: 8px 18px;
  }

  .action-button {
    height: 49px;
    font-size: 18px;
  }
}
