:root {
  --bg: #ffffff;
  --brand: #06c755;
  --text: #171717;
  --subtext: #b6b6b6;
  --dot: rgba(0, 0, 0, 0.08);
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Helvetica Neue", "Noto Sans SC", sans-serif;
  overflow: hidden;
}

.page {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 400px;
  height: 800px;
  background: #fff;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  overflow: hidden;
}

.hero {
  position: absolute;
  left: 0;
  top: 94px;
  width: 400px;
}

.hero h1 {
  margin: 0;
  text-align: center;
  color: var(--brand);
  font-size: 37px;
  line-height: 1.2578;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.carousel {
  position: absolute;
  left: 20px;
  top: 220px;
  width: 360px;
  height: 280px;
  border-radius: 0;
  overflow: hidden;
  background: #ffffff;
}

.slides {
  display: flex;
  width: 360px;
  height: 280px;
  transition: transform 0.3s ease;
}

.slide {
  width: 360px;
  height: 280px;
  flex: 0 0 360px;
  display: grid;
  place-items: center;
  padding: 0;
}

.slide img {
  width: 360px;
  height: 280px;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.copy {
  position: absolute;
  left: 50%;
  top: 500px;
  width: 260px;
  transform: translateX(-50%);
  text-align: center;
}

.copy h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2578;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.copy p {
  margin: 8px 0 0;
  color: var(--subtext);
  font-size: 15px;
  line-height: 1.358;
  letter-spacing: 0.08em;
  min-height: 40px;
}

.dots {
  position: absolute;
  left: 50%;
  top: 605px;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  width: 76px;
  height: 3px;
}

.dot {
  border: 0;
  width: 16px;
  height: 3px;
  border-radius: 10px;
  background: var(--dot);
  padding: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.dot.active {
  background: var(--dot);
}

.dot-progress {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left center;
}

.open-btn {
  position: absolute;
  left: 57px;
  top: 675px;
  width: 286px;
  height: 60px;
  border: 0;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 24px 0 12px;
  gap: 12px;
  background: var(--brand);
  color: var(--white);
  font-size: 22.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.open-btn:active {
  transform: translateY(1px);
}

.btn-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.btn-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-text {
  white-space: nowrap;
  line-height: 1;
  flex-shrink: 0;
}

.wechat-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  z-index: 1000;
  padding: 18px 14px 14px;
}

.qr-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  z-index: 1000;
  padding: 24px;
  display: grid;
}

.wechat-guide {
  display: block;
  width: 160px;
  height: auto;
  margin-left: auto;
  margin-right: 0;
}

.qr-panel {
  align-self: center;
  justify-self: center;
  width: min(320px, 90vw);
  border-radius: 14px;
  background: #ffffff;
  color: #171717;
  padding: 16px 16px 14px;
  text-align: center;
}

.qr-panel h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.qr-panel img {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
  margin: 14px auto 0;
  border-radius: 8px;
}

.hidden {
  display: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(90px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(20, 20, 20, 0.88);
  color: #fff;
  font-size: 13px;
  z-index: 1001;
}
