* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #f4f5f7;
  color: #3a1a18;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.scan-page {
  position: relative;
  width: min(100%, 392px);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  background:
    linear-gradient(180deg, #fffefd 0%, #fffdfc 58%, #fff8f4 100%);
}

.hero-band {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 0;
  height: calc(123px + env(safe-area-inset-top));
  pointer-events: none;
}

.top-decor {
  display: block;
  width: 100%;
  height: calc(123px + env(safe-area-inset-top));
  object-fit: fill;
  object-position: top center;
}

.video-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  padding:
    calc(140px + env(safe-area-inset-top))
    calc(16px + env(safe-area-inset-right))
    calc(118px + env(safe-area-inset-bottom))
    calc(16px + env(safe-area-inset-left));
}

.title-block {
  display: grid;
  justify-items: center;
  margin: 0 0 28px;
  text-align: center;
}

.title-block h1 {
  margin: 0;
  color: #be111a;
  font-family: "STKaiti", "KaiTi", "Kaiti SC", "Songti SC", "SimSun", serif;
  font-size: 45px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 3px 0 rgba(255, 229, 220, 0.92),
    0 9px 18px rgba(188, 18, 26, 0.12);
}

.star-divider {
  display: grid;
  grid-template-columns: 1fr max-content 1fr;
  align-items: center;
  gap: 15px;
  width: 78%;
  margin-top: 23px;
}

.star-divider span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(194, 24, 31, 0.48));
}

.star-divider span:last-child {
  background: linear-gradient(90deg, rgba(194, 24, 31, 0.48), transparent);
}

.star-divider strong {
  padding-left: 6px;
  color: #c81720;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 6px;
}

.title-block p {
  margin: 13px 0 0;
  color: #4d4544;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: 0;
}

.video-card {
  overflow: hidden;
  border-radius: 7px;
  background: #000;
  box-shadow:
    0 18px 25px rgba(40, 20, 17, 0.18),
    0 6px 10px rgba(147, 21, 22, 0.12);
}

.demo-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 202px;
  border: 0;
  background: #000;
  object-fit: contain;
}

.section-divider {
  width: 78%;
  margin: 28px auto 0;
}

.landscape-accent {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  height: calc(118px + env(safe-area-inset-bottom));
  overflow: hidden;
  pointer-events: none;
}

.bottom-decor {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 393px) {
  .scan-page {
    min-height: 100vh;
    box-shadow: 0 18px 52px rgba(31, 41, 55, 0.12);
  }
}

@media (max-width: 380px) {
  .hero-band,
  .top-decor {
    height: calc(116px + env(safe-area-inset-top));
  }

  .video-stage {
    padding:
      calc(132px + env(safe-area-inset-top))
      calc(14px + env(safe-area-inset-right))
      calc(112px + env(safe-area-inset-bottom))
      calc(14px + env(safe-area-inset-left));
  }

  .title-block h1 {
    font-size: 42px;
  }

  .title-block p {
    font-size: 15px;
  }

  .star-divider {
    gap: 12px;
    width: 80%;
    margin-top: 21px;
  }

  .section-divider {
    width: 80%;
    margin-top: 26px;
  }

  .landscape-accent {
    height: calc(112px + env(safe-area-inset-bottom));
  }
}
