/* 注册三步单页（独立于落地页） */
.register-page {
  color: #333;
  background-color: #eeeeee;
}

.register-page .register {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  min-height: 100vh;
  background-color: #ffffff;
}

.register__topbar {
  width: 100%;
  background-color: #B2BAFB;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  /* 上内边距决定 logo 距顶；只加大下内边距 / min-height，logo 位置不变 */
  padding-top: calc(18px + env(safe-area-inset-top, 0px));
  padding-right: 16px;
  padding-bottom: 18px;
  padding-left: 16px;
  min-height: 110px;
  box-sizing: border-box;
}

.register__topbar-logo {
  display: block;
  width: auto;
  height: auto;
  max-height: 70px;
  max-width: min(78vw, 300px);
  object-fit: contain;
}

.register__inner {
  display: flex;
  flex-direction: column;
  padding: 10px 20px 40px;
  position: relative;
}

.register__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

/* .register__game-name {
  margin: 0;
  font-weight: 1000;
  font-size: 28px;
  color: #55504d;
  text-align: center;
  flex: 1;
} */

.register__step-label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

.register__step-label--step3 {
  margin-top: 60px;
}

.register__step-label p {
  margin: 0 0 0 10px;
  font-size: 22px;
  color: #1888f0;
  font-weight: bold;
}

.register__step-label.is-muted p,
.register__step-title--muted {
  color: #909090;
}

.register__step-icon {
  width: 35px;
  height: 35px;
  flex-shrink: 0;
  background: url("../assets/media/zyf_biaoqing_fengmian_7.png") no-repeat center / contain;
}

.register__step-icon--step2.is-done {
  opacity: 1;
  filter: none;
}

.register__step-icon--step2.is-pending {
  opacity: 0.45;
  filter: grayscale(1);
}

.register__step-title {
  display: flex;
  /* justify-content: center; */
  padding-top: 10px;
  padding-bottom: 5px;
  margin: 0;
  color: #000000;
  font-size: 16px;
  font-weight: 500;
}

.register__content {
  background-color: #ffffff;
}

.register__field-label {
  margin: 0 0 8px;
  padding: 0;
  text-align: left;
  color: #000000;
  font-size: 14px;
  line-height: 1.3;
}

.register__field-bg {
  margin-bottom: 12px;
  background-color: #F0F0F1;
  border-radius: 5px;
  height: 40px;
  display: flex;
  align-items: center;
}

/* .register__field-bg--invite {
  background-color: #eeebe0;
  height: auto;
  min-height: 40px;
} */

.register__input {
  flex: 1;
  height: 38px;
  border: none;
  background: transparent;
  font-size: 14px;
  padding: 0 10px;
  outline: none;
  color: #000000;
}

.register__input::placeholder {
  color: #A19F9F;
}

.register__eye {
  width: 26px;
  height: 26px;
  margin-right: 10px;
  border: none;
  background: transparent url("../assets/media/icon_biyan.png") center / contain no-repeat;
  cursor: pointer;
  flex-shrink: 0;
}

.register__eye.is-visible {
  background-image: url("../assets/media/icon_zhengyan.png");
}

/* .register__invite-label {
  margin: 0 0 8px;
  color: #000000;
  font-size: 14px;
}

.register__invite-code {
  margin: 0;
  padding: 10px;
  color: #333;
  font-size: 14px;
  word-break: break-all;
} */

.register__submit {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 42px;
  background-color: #f13b54;
  border: none;
  border-radius: 5px;
  color: #fffced;
  font-size: 18px;
  font-weight: 400;
  cursor: pointer;
}

/*
 * 完成注册按钮：九宫格左右各 280px（源图 590×90），高度按 590:90 随宽度变化
 */
#btn-register-submit {
  position: relative;
  width: calc(100% - 100px);
  margin-left: auto;
  margin-right: auto;
  height: auto;
  aspect-ratio: 590 / 90;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  overflow: visible;
}

#btn-register-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  box-sizing: border-box;
  border-style: solid;
  border-color: transparent;
  border-width: 0 47.45762711864407%;
  border-image-source: url('../assets/media/luodiye_anniuhei.png');
  border-image-slice: 0 280 0 280 fill;
  border-image-width: 0 47.45762711864407% 0 47.45762711864407%;
  border-image-repeat: stretch;
  pointer-events: none;
}

#btn-register-submit > span {
  position: relative;
  z-index: 1;
}


.register__promo {
  padding-top: 20px;
  margin: 0;
  color: #ff6521;
  font-size: 18px;
  line-height: 1.4;
  text-align: center;
}

.register__spacer {
  height: 50px;
}

/* 下载按钮：与落地页 landing-btn-download 一致 */
.register__download-row {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 20px;
}

.register__download-row .landing-btn-download {
  position: relative;
  z-index: 1;
  width: 9.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
  background: transparent;
  padding: 0;
  font: inherit;
}

.register__download-row .landing-btn-download img {
  width: 100%;
  max-width: 145px;
  height: auto;
  display: block;
}

.register__download-row .landing-btn-download__text {
  position: absolute;
  left: 34%;
  bottom: 17%;
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  pointer-events: none;
  line-height: 1;
}

.register__download-row .landing-btn-download:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.register__download-row .landing-btn-download:not(:disabled):hover,
.register__download-row .landing-btn-download:not(:disabled):active {
  opacity: 0.9;
  transform: scale(0.98);
}

.register__guide-steps {
  margin-top: 20px;
}

.register__guide-step {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.register__guide-step + .register__guide-step {
  margin-top: 0;
}

.register__guide-step img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

.register__guide-step__text {
  position: absolute;
  left: 30px;
  right: 30px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  display: block;
  box-sizing: border-box;
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  white-space: pre-line;
  pointer-events: none;
  text-align: center;
}

.register__guide-step__text-col {
  position: absolute;
  left: calc(50% + 20px);
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-sizing: border-box;
  pointer-events: none;
}

.register__guide-step__text--ios-tip-1,
.register__guide-step__text--ios-tip-1-1 {
  position: static;
  inset: auto;
  display: block;
  padding: 0;
  text-align: left;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  white-space: pre-line;
}

.register__guide-step__text--ios-tip-1 {
  color: #000000;
}

.register__guide-step__text--ios-tip-1-1 {
  color: #ffffff;
  margin-top: 5px;
  -webkit-text-stroke: 1px #000000;
  paint-order: stroke fill;
  text-shadow:
    -1px -1px 0 #000000,
    1px -1px 0 #000000,
    -1px 1px 0 #000000,
    1px 1px 0 #000000;
}

/* iOS 安装步骤文案定位（相对父图中心） */
.register__guide-step__text--pos {
  position: absolute;
  inset: auto;
  display: block;
  width: auto;
  max-width: calc(50% - 60px);
  padding: 0;
  text-align: left;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  white-space: pre-line;
  pointer-events: none;
}

.register__guide-step__text--black {
  color: #000000;
}

.register__guide-step__text--white-stroke {
  color: #ffffff;
  -webkit-text-stroke: 1px #000000;
  paint-order: stroke fill;
  text-shadow:
    -1px -1px 0 #000000,
    1px -1px 0 #000000,
    -1px 1px 0 #000000,
    1px 1px 0 #000000;
}

.register__guide-step__text--center {
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  max-width: 88%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.register__guide-step__text--ios-tip-2 {
  right: auto;
  left: 24%;          /* 图标中心的 X 坐标 */
  transform: translateX(-50%);
  bottom: calc(50% + 90px);
  top: auto;
  font-size: 24px;
  text-align: center;
}

.register__guide-step__text--ios-tip-2-1 {
  right: auto;
  left: 24%;          /* 图标中心的 X 坐标 */
  transform: translateX(-50%);
  top: calc(50% - 15px);
  bottom: auto;
  font-size: 18px;
  text-align: center;
}

.register__guide-step__text--ios-tip-3 {
  left: calc(50% + 10px);
  right: auto;
  bottom: calc(50% + 50px);
  top: auto;
  font-size: 24px;
}

.register__guide-step__text--ios-tip-3-1 {
  left: calc(50% + 10px);
  right: 16px;
  top: calc(50% - 35px);
  bottom: auto;
  width: auto;
  max-width: none;
  transform: none;
  font-size: 18px;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* .register__guide-step__text--ios-tip-3-2 {
  left: calc(50% + 10px);
  right: auto;
  top: calc(50% + 40px);
  bottom: auto;
  font-size: 18px;
  text-align: left;
} */

.register__guide-step__text--ios-tip-4 {
  left: 24%;         
  bottom: calc(50% + 50px);
  top: auto;
  font-size: 24px;
  text-align: left;
}

.register__guide-step__text--ios-tip-4-1 {
  left: 24%;          
  top: calc(50% - 10px);
  bottom: auto;
  font-size: 18px;
  text-align: left;
  max-width: calc(100% - 70% - 20px);
  overflow-wrap: break-word;
}

/* .register__guide-step__text--ios-tip-4-2 {
  left: 24%;         
  top: calc(50% + 20px);
  bottom: auto;
  font-size: 18px;
  text-align: left;
} */

.register__guide-step__text--ios-tip-5 {
  left: calc(50% + 10px);
  right: auto;
  bottom: calc(50% + 130px);
  top: auto;
  font-size: 24px;
}

.register__guide-step__text--ios-tip-5-1 {
  left: calc(50% + 10px);
  right: auto;
  top: auto;
  bottom: calc(50% + 70px);
  font-size: 18px;
}

/* .register__guide-step__text--ios-tip-5-2 {
  left: calc(50% + 10px);
  right: auto;
  top: calc(50% - 65px);
  bottom: auto;
  font-size: 18px;
  text-align: left;
} */

.register__guide-step__text--ios-tip-6 {
  left: 50%;
  right: auto;
  width: calc(100% - 40px);
  max-width: calc(100% - 40px);
  box-sizing: border-box;
  padding: 0 20px;
  top: calc(50% + 100px);
  bottom: auto;
  transform: translateX(-50%);
  font-size: 24px;
  text-align: center;
}
