/* 基本重置 */
* {
  box-sizing: border-box;
}

.step-text {
  margin: 0 0;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #222;
  background: #fff;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;

  position: relative;
  overflow: hidden;
}

/* 装饰性彩色图形 */
.confetti {
  position: absolute;
  width: clamp(60px, 15vw, 120px);
  opacity: 0.95;
  pointer-events: none;
}

.a {
  width: 85px;
  height: 110px;
  position: absolute;
  top: 140px;
}

.aa {
  width: 80px;
  height: 128px;
  position: absolute;
  right: 0;
  bottom: 180px;
}

.aq {
  width: 200px;
  height: 120px;
  position: absolute;
  right: 300px;
  bottom: 0px;
}

.aw {
  width: 78px;
  height: 60px;
  position: absolute;
  left: 400px;
  bottom: 0px;
}

.ae {
  width: 78px;
  height: 60px;
  position: absolute;
  left: 50px;
  bottom: 150px;
}

.ar {
  width: 68px;
  height: 72px;
  position: absolute;
  left: 150px;
  bottom: 300px;
}

.confetti-left-top {
  left: clamp(10px, 20vw, 240px);
  top: 0px;
}

.confetti-right-top {
  right: clamp(280px, 3vw, 20px);
  top: clamp(0px, 0vw, 40px);
}

.confetti-left-bottom {
  width: 41px;
  height: 36px;
  position: absolute;
  right: 50px;
  top: 200px;
}

.confetti-right-bottom {
  width: 55px;
  height: 67px;
  position: absolute;
  right: 150px;
  top: 300px;
}

.brand {
  position: absolute;

  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
}

.brand-logo {
  width: clamp(120px, 30vw, 270px);
  height: auto;
  display: block;
  max-width: 90vw;
  margin: 0 auto 20px;
}

.card {
  width: 100%;
  max-width: 1284px;
  text-align: center;
  padding: 64px 40px 48px;
  margin: 0 20px;
}

.title {
  font-size: clamp(28px, 5.5vw, 40px);
  margin: clamp(20px, 4vw, 30px) 0 clamp(20px, 4vw, 30px);
  font-weight: 700;
  line-height: 1.2;
}

.subtitle {
  color: black;
  margin: 0 0 clamp(20px, 4vw, 30px);
  font-size: clamp(14px, 3vw, 16px);
  letter-spacing: 2px;
}

.steps {
  display: flex;
  gap: clamp(12px, 3vw, 50px);
  justify-content: center;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.step {
  width: clamp(100px, 22vw, 160px);
  flex-shrink: 0;
}

.step-circle {
  width: clamp(32px, 6vw, 25px);
  height: clamp(32px, 6vw, 25px);
  border-radius: 50%;
  background: #2b87f0;
  color: #fff;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: clamp(14px, 3vw, 16px);
}

.step-text {
  font-size: clamp(10px, 2.5vw, 12px);
  color: black;
  line-height: 1.4;
}

.redeem {
  margin: 15px auto 15px;
  max-width: 520px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.code-input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid #e0e6ef;
  border-radius: 6px;
  font-size: clamp(14px, 3vw, 15px);
  min-width: 0;
}

.code-input:focus {
  outline: none;
  border-color: #b6d0ff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.at {
  width: 26px;
  height: 22px;
  position: absolute;
  top: 70px;
  left: 40px;
  display: none;
}

.ay {
  width: 47px;
  height: 52px;
  position: absolute;
  top: 20px;
  right: 80px;
  display: none;
}

.au {
  width: 20px;
  height: 21px;
  position: absolute;
  top: 180px;
  right: 40px;
  display: none;
}

.ai {
  width: 20px;
  height: 22px;
  position: absolute;
  bottom: 220px;
  left: 40px;
  display: none;
}

.ao {
  width: 20px;
  height: 22px;
  position: absolute;
  bottom: 180px;
  right: 40px;
  display: none;
}

.ap {
  width: 25px;
  height: 22px;
  position: absolute;
  bottom: 0px;
  left: 450px;
  display: none;
}

.btn-primary {
  background: #3b82f6;
  color: #fff;
  border: none;
  width: 100%;
  max-width: 520px;
  padding: clamp(12px, 2.5vw, 14px) clamp(20px, 4vw, 25px);
  border-radius: 8px;
  font-size: clamp(14px, 3vw, 16px);
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.16);
  margin: 0 auto;
  display: block;
}

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

.hero-img {
  margin-top: 22px;
}

.hero-img img {
  width: 260px;
  max-width: clamp(150px, 40vw, 260px);
  height: auto;
  display: block;
  margin: 0 auto;
}

/* 平板设备 */
@media (max-width: 900px) {
  .card {
    padding: 48px 30px 40px;
  }
}

/* 手机设备 */
@media (max-width: 1200px) {
  .card {
    padding: 36px 20px 32px;
    margin: 0 15px;
  }

  .at {
    display: block;
  }

  .ay {
    display: block;
  }

  .au {
    display: block;
  }

  .ai {
    display: block;
  }

  .ao {
    display: block;
  }

  .ap {
    display: block;
  }

  .confetti {
    width: 60px;
  }

  .confetti-left-top {
    left: 10px;
    top: 10px;
    display: none;
  }

  .a {
    display: none;
  }

  .aa {
    display: none;
  }

  .aq {
    display: none;
  }

  .confetti-right-top {
    right: 10px;
    top: 20px;
    display: none;
  }

  .confetti-left-bottom {
    display: none;
    left: 5px;
    bottom: 20px;
    display: none;
  }

  .confetti-right-bottom {
    right: 5px;
    bottom: 10px;
    display: none;
  }

  .steps {
    gap: 8px;
    margin-bottom: 20px;
  }

  .ae {
    display: none;
  }

  .ar {
    display: none;
  }

  .aw {
    display: none;
  }

  .step {
    width: 100px;
  }

  .redeem {
    flex-direction: column;
    gap: 10px;
  }

  .code-input {
    width: 100%;
  }


}

/* 小屏手机 */
@media (max-width: 480px) {
  .card {
    padding: 28px 15px 24px;
    margin: 0 10px;
  }

  .confetti {
    width: 40px;
  }

  .steps {
    gap: 6px;
  }

  .step {
    width: 85px;
  }

  .step-circle {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .step-text {
    font-size: 10px;
  }

  .hero-img {
    margin-top: 16px;
  }

  .hero-img img {
    max-width: 50%;
  }
}

/* 超小屏手机 */
@media (max-width: 360px) {
  .card {
    padding: 20px 10px 20px;
    margin: 0 8px;
  }

  .confetti {
    width: 30px;
  }

  .steps {
    gap: 4px;
  }

  .step {
    width: 70px;
  }

  .step-circle {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .step-text {
    font-size: 9px;
  }

  .btn-primary {
    padding: 12px 16px;
  }
}

.sr-only {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}