:root {
  color: #fff;
  background: #050308;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
}

* {
  box-sizing: border-box;
}

html,
body,
.app-shell {
  min-height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
}

button {
  font: inherit;
}

.page {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  background-position: center;
  background-size: cover;
}

.mobile-page {
  background-image: url("./bj.jpg");
}

.desktop-page {
  background-image: url("./bj.jpg");
}

.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 10px clamp(14px, 4vw, 44px);
}

.logo {
  height: 100%;
  max-width: 44vw;
  object-fit: contain;
}

.nav-actions {
  display: flex;
  gap: 10px;
}

.nav-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  color: #fff;
  background: rgba(9, 4, 14, 0.44);
  cursor: pointer;
  text-decoration: none;
}

.mobile-stage {
  height: calc(100dvh - 172px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 18px;
}

.headline {
  width: min(88vw, 420px);
}

.hero-phone {
  width: min(88vw, 430px);
  max-height: 54dvh;
  object-fit: contain;
}

.mobile-ticker {
  position: fixed;
  left: 50%;
  bottom: 90px;
  width: min(92vw, 420px);
  transform: translateX(-50%);
}

.ticker {
  width: 100%;
  display: block;
}

.download-row,
.desktop-buttons {
  position: fixed;
  z-index: 3;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  display: flex;
  gap: 14px;
  transform: translateX(-50%);
}

.download-button {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.download-button.mobile .download-image {
  width: min(42vw, 180px);
}

.download-button.desktop .download-image {
  width: 168px;
}

.desktop-stage {
  display: grid;
  grid-template-columns: minmax(460px, 1fr) minmax(360px, 0.72fr);
  align-items: center;
  gap: 24px;
  height: calc(100dvh - 150px);
  padding: 24px 7vw 90px;
}

.desktop-copy {
  min-width: 0;
}

.desktop-headline {
  display: block;
  width: min(46vw, 650px);
  margin: 0 auto 42px;
}

.desktop-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.qr-sample {
  width: 150px;
  aspect-ratio: 1;
  border: 8px solid #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  color: #17101f;
  font-weight: 700;
}

.qr-sample canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.scan-label {
  width: 28px;
  min-height: 150px;
  padding: 8px 5px;
  background: #a98bf0;
  color: #fff;
  font-size: 16px;
  line-height: 1.25;
}

.notice {
  width: min(38vw, 420px);
  text-align: left;
}

.notice strong,
.notice span {
  display: block;
  color: #ffd84f;
  font-size: 18px;
}

.notice p {
  margin: 8px 0 0;
  color: #d8d3dc;
  font-size: 13px;
}

.desktop-hero {
  justify-self: center;
  width: min(30vw, 430px);
  max-height: 70dvh;
  object-fit: contain;
}

.tips {
  position: fixed;
  left: 50%;
  bottom: calc(64px + env(safe-area-inset-bottom));
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  width: min(92vw, 760px);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  transform: translateX(-50%);
}

.desktop-page .tips {
  bottom: 18px;
}

.toast {
  position: fixed;
  z-index: 10;
  left: 50%;
  top: 18px;
  max-width: min(88vw, 420px);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(15, 10, 20, 0.88);
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transform: translateX(-50%);
}

.tutorial-overlay {
  position: fixed;
  z-index: 8;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: rgba(18, 3, 22, 0.72);
  overflow: hidden;
}

.tutorial-panel {
  width: calc(100vw - 48px);
  max-width: 690px;
  min-width: 0;
  max-height: min(94dvh, 900px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  color: #333;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.tutorial-panel,
.tutorial-panel * {
  box-sizing: border-box;
  min-width: 0;
}

.tutorial-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 28px 10px;
  background: #fff;
  color: #333;
}

.tutorial-header,
.tutorial-tabs {
  flex: 0 0 auto;
}

.tutorial-header > div {
  min-width: 0;
}

.tutorial-header h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.tutorial-close {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #999;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
}

.tutorial-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  overflow: visible;
  padding: 4px 28px 18px;
  background: #fff;
}

.tutorial-tab {
  flex: 0 0 70px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  color: #333;
  background: #f4f4f4;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.tutorial-tab[aria-selected="true"] {
  color: #fff;
  background: #ff8600;
  font-weight: 600;
}

.tutorial-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 54px 50px 24px;
}

.tutorial-warning {
  margin: 0 auto 28px;
  padding: 16px 18px;
  border: 1px dashed #f00;
  border-radius: 12px;
  color: #f00;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  overflow-wrap: anywhere;
}

.tutorial-lead {
  margin: 0 auto 26px;
  max-width: 560px;
  color: #333;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  overflow-wrap: anywhere;
}

.tutorial-step {
  margin-bottom: 30px;
  text-align: center;
}

.tutorial-step h2 {
  margin: 0 0 22px;
  color: #333;
  font-size: 16px;
  font-weight: 600;
}

.tutorial-step p {
  margin: 0 0 16px;
  color: #666;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.tutorial-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 20px;
}

.tutorial-image {
  width: 100%;
  display: block;
  border-radius: 0;
}

.tutorial-footer {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  padding: 0 24px 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 28%);
}

.tutorial-download {
  width: min(340px, 76vw);
  height: 58px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(100deg, #ff8700, #ef2f75);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 16px 28px rgba(239, 47, 117, 0.2);
}

@media (max-width: 520px) {
  .nav {
    height: 66px;
    padding-inline: 10px;
  }

  .nav-actions {
    gap: 6px;
  }

  .nav-action {
    min-width: 42px;
    height: 32px;
    font-size: 13px;
  }

  .tips {
    bottom: calc(62px + env(safe-area-inset-bottom));
  }

  .tutorial-panel {
    max-height: 94dvh;
  }

  .tutorial-header {
    padding: 24px 24px 8px;
  }

  .tutorial-header h1 {
    font-size: 18px;
  }

  .tutorial-tabs {
    gap: 8px 10px;
    padding: 4px 24px 18px;
  }

  .tutorial-tab {
    min-width: 70px;
    height: 40px;
  }

  .tutorial-body {
    padding: 48px 24px 24px;
  }

  .tutorial-warning {
    font-size: 14px;
  }

  .tutorial-lead {
    font-size: 15px;
  }

  .tutorial-step h2 {
    font-size: 16px;
  }

  .tutorial-step p {
    font-size: 14px;
  }
}
