/* pages/putv1/putv1 静态复刻 — 类名与 DOM 对齐线上 uni-app 渲染结构 */

:root {
  --page-orange: #ff4d30;
  --card-border: #2b6cff;
  --title-cool: #5a1f1f;
  --xy-blue: #4a9eff;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #222;
  background: #000;
  -webkit-tap-highlight-color: transparent;
}

/* 自定义标签按块级渲染（浏览器不认识 uni-* 时默认为 inline） */
uni-app,
uni-page,
uni-page-wrapper,
uni-page-body,
uni-modal,
uni-view,
uni-text,
uni-resize-sensor {
  display: block;
}

#app {
  min-height: 100vh;
}

.uni-app--maxwidth {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--page-orange);
}

.put {
  position: relative;
  width: 100%;
}

/* 背景主图 764px */
.put-img {
  position: relative;
  width: 100%;
  height: 764px;
  overflow: hidden;
}

.put-img > div:first-of-type {
  position: absolute;
  inset: 0;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.put-img > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

uni-resize-sensor {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
}

/* 装饰图：金额飘带 + VIP（相对 .put 定位） */
.money {
  position: absolute;
  left: 0;
  top: 14%;
  width: 38%;
  max-width: 180px;
  z-index: 4;
  pointer-events: none;
  transform-origin: 45% 75%;
  animation: deco-wobble 2.8s ease-in-out infinite;
}

.vip {
  position: absolute;
  right: 6%;
  top: 11%;
  width: 32%;
  max-width: 150px;
  z-index: 4;
  pointer-events: none;
  transform-origin: 55% 72%;
  animation: deco-wobble 3.2s ease-in-out infinite;
  animation-delay: -0.6s;
}

@keyframes deco-wobble {
  0%,
  100% {
    transform: rotate(-7deg) translateX(-2px);
  }
  50% {
    transform: rotate(7deg) translateX(2px);
  }
}

/* 右侧竖排：会员协议 / 联系客服 */
.liatu {
  position: absolute;
  right: 0;
  top: 22%;
  z-index: 12;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.liatu > div,
.liatu > a.liatu-link {
  text-decoration: none;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.12em;
  padding: 14px 10px;
  border-radius: 10px 0 0 10px;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(180deg, rgba(130, 90, 210, 0.92), rgba(75, 45, 170, 0.92));
  box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

/* 手机号滚动条 + 表单区：叠在背景下方留白处 */
.put > div[style*="height: 303px"] {
  position: relative;
  margin-top: -240px;
  z-index: 6;
  min-height: 303px;
  height: auto !important;
  padding-bottom: 8px;
}

.scroll-container {
  margin: 0 auto 12px;
  width: 100%;
  max-width: min(100%, 400px);
  overflow: hidden;
  border-radius: 0;
  background: transparent;
  border: none;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.put-phone {
  overflow: hidden;
  width: 100%;
}

.phone-list {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  width: max-content;
  /* 与 JS 双份 DOM 配合：滚过第一份宽度后视觉上无缝接回 */
  animation: phone-scroll-x 14s linear infinite;
}

@keyframes phone-scroll-x {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.phone-item {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  color: #fff;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.42);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* 首屏登录外层：淡白半透明框（示意参考图） */
.content-shell {
  margin: 0 12px 6px;
  padding: 14px 12px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* 登录表单 */
.content.content--inline,
.content.content--dock {
  padding: 4px 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.content .radus_head {
  width: 86%;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

.content .radus_btn {
  width: 70%;
  max-width: 196px;
  margin-left: auto;
  margin-right: auto;
}

.radus_head {
  margin-bottom: 14px;
}

.uni-input-wrapper {
  position: relative;
  height: 48px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.uni-input-input {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 0 16px;
  border: none;
  outline: none;
  font-size: 17px;
  text-align: center;
  background: transparent;
}

.uni-input-placeholder.input-placeholder {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  text-align: center;
  font-size: 16px;
  color: #999;
  pointer-events: none;
}

.uni-input-wrapper.has-value .uni-input-placeholder,
.uni-input-wrapper:focus-within .uni-input-placeholder {
  opacity: 0;
}

/* 按钮外层容器（仅占位布局，不做上下跳动） */
.login-bounce-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.radus_btn {
  margin-bottom: 10px;
}

.content .payTextcontent {
  margin-top: 4px;
}

.radus_btn .btn {
  position: relative;
  height: 62px;
  border-radius: 31px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #fff000 0%, #ffb020 100%);
  box-shadow: 0 6px 14px rgba(160, 60, 0, 0.38);
  transform-origin: center center;
}

/* 黄色按钮：仅中心缩放 + 光晕呼吸，无位移，避免上下跳显得突兀 */
.radus_btn .btn--pulse-out {
  /* 频率提高 10% → 周期 × (1/1.1) */
  animation: btn-pulse-out calc(0.75s / 1.1) ease-in-out infinite;
  transform-origin: center center;
  will-change: transform, box-shadow;
}

@keyframes btn-pulse-out {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 6px 14px rgba(160, 60, 0, 0.38), 0 0 0 0 rgba(255, 210, 60, 0.5);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 10px 24px rgba(185, 80, 0, 0.45), 0 0 0 14px rgba(255, 220, 100, 0);
  }
}

.radus_btn .text {
  font-size: 20px;
  font-weight: 800;
  color: #c62828;
}

.payTextcontent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 0 4px;
  width: 100%;
  max-width: 100%;
}

.check_box {
  flex-shrink: 0;
  padding-top: 2px;
}

.check_box uni-text,
.check_box .uni-icons {
  display: inline-block;
}

/* 协议勾选：黄色圆钮 + 白勾（默认勾选），取消后为空心圆环 */
.agreement-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  vertical-align: middle;
  -webkit-tap-highlight-color: transparent;
}

.agreement-chip__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.agreement-chip__circle {
  box-sizing: border-box;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff000;
  box-shadow: inset 0 0 0 1px rgba(255, 200, 0, 0.35);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.agreement-chip__input:checked + .agreement-chip__circle {
  background: linear-gradient(180deg, #fff59d 0%, #ffea00 55%, #ffd600 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 1px 3px rgba(180, 120, 0, 0.25);
}

.agreement-chip__input:checked + .agreement-chip__circle::after {
  content: "";
  display: block;
  width: 5px;
  height: 9px;
  margin-top: -2px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.agreement-chip__input:not(:checked) + .agreement-chip__circle {
  background: #fffef8;
  box-shadow: inset 0 0 0 2px rgba(200, 190, 160, 0.65);
}

.agreement-chip__input:not(:checked) + .agreement-chip__circle::after {
  display: none;
}

.agreement-chip:focus-within .agreement-chip__circle {
  outline: 2px solid rgba(74, 158, 255, 0.55);
  outline-offset: 2px;
}

/* 居中灰色 Toast，替代 alert */
.app-toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10050;
  max-width: min(88vw, 300px);
  padding: 14px 22px;
  border-radius: 14px;
  background: rgba(48, 48, 48, 0.88);
  color: #fff;
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
  word-break: break-word;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.app-toast.is-visible {
  opacity: 1;
  visibility: visible;
}

.check_text {
  flex: 1;
  font-size: 11px;
  line-height: 1.55;
  color: rgba(55, 55, 55, 0.92);
}

.xy {
  color: var(--xy-blue);
  text-decoration: underline;
  cursor: pointer;
}

/* 权益卡片区块 */
.main {
  padding: 0 12px 14px;
}

.introduction .box {
  background: #fff;
  border: 3px solid var(--card-border);
  border-radius: 28px;
  padding: 18px 14px 20px;
  margin-bottom: 12px;
}

.introduction .box h1 {
  margin: 0 0 16px;
  text-align: center;
  font-size: 17px;
  font-weight: 800;
  color: var(--title-cool);
}

.introduction .box h3 {
  margin: 0 0 14px;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  color: #111;
}

.goods {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 8px;
  justify-content: center;
}

.goods-box {
  width: calc(25% - 8px);
  min-width: 68px;
  max-width: 82px;
}

.item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  vertical-align: top;
}

.introduction .box p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.65;
  color: #111;
}

.introduction .box p:last-child {
  margin-bottom: 0;
}

#rule + p,
.introduction .box h3 ~ p {
  text-align: left;
}

/* 底部留出安全区；预留固定登录条高度，滑到底仍可读完「产品说明」且不被遮挡 */
.uni-page-body {
  padding-bottom: calc(280px + var(--safe-bottom));
}

/* 首屏登录滚出视口后：底部固定登录条 */
.login-fixed-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  padding: 10px 10px calc(10px + var(--safe-bottom));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 120, 100, 0.15) 40%, rgba(255, 80, 60, 0.35) 100%);
  pointer-events: none;
}

.login-fixed-dock[hidden] {
  display: none !important;
}

.login-fixed-dock__inner {
  max-width: 480px;
  margin: 0 auto;
  pointer-events: auto;
}

/* 必须覆盖 .content.content--dock 的 flex；否则在 max-height 内 flex 子项会把协议区 shrink 到看不见 */
.login-fixed-dock .content.content--dock {
  display: block;
  padding: 16px 16px 18px;
  background: rgba(255, 236, 236, 0.94);
  border-radius: 18px 18px 12px 12px;
  box-shadow: 0 -6px 28px rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.65);
  max-height: min(88vh, 620px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.login-fixed-dock .payTextcontent {
  padding-bottom: 8px;
  flex-shrink: 0;
  width: 100%;
}

.login-fixed-dock .check_text {
  color: #444 !important;
  font-size: 11px;
  line-height: 1.55;
  flex: none !important;
  min-height: 0;
}

.login-fixed-dock .uni-input-wrapper {
  background: #f3f3f3;
}


/* 隐藏弹窗壳 */
uni-modal[style*="display: none"] {
  display: none !important;
}

uni-modal .uni-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

uni-modal .uni-modal {
  position: fixed;
  z-index: 999;
  width: 80%;
  max-width: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
}

uni-modal .uni-modal__ft {
  display: flex;
  border-top: 1px solid #ddd;
}

uni-modal .uni-modal__btn {
  flex: 1;
  text-align: center;
  padding: 12px;
  font-size: 17px;
}

/* ========== 银行选择 + 填写用户信息 底部弹层 ========== */
body.sheet-open {
  overflow: hidden;
  touch-action: none;
}

.sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 5100;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0.28s;
}

.sheet-overlay.is-open {
  visibility: visible;
  pointer-events: auto;
}

.sheet-overlay--userinfo {
  z-index: 5150;
}

.sheet-overlay__mask {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.48);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.sheet-overlay.is-open .sheet-overlay__mask {
  opacity: 1;
}

.bank-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  max-height: 74vh;
  background: #fff;
  border-radius: 18px 18px 0 0;
  transform: translateY(105%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.12);
}

.sheet-overlay.is-open .bank-sheet {
  transform: translateY(0);
}

.bank-sheet__title {
  flex-shrink: 0;
  padding: 16px 18px 12px;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  color: #111;
}

.bank-main {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-height: 0;
}

.bank-list-empty {
  margin: 24px 16px;
  text-align: center;
  font-size: 14px;
  color: #999;
}

uni-radio-group {
  display: block;
}

.uni-list-cell.uni-list-cell-pd.uni-label-pointer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #efefef;
  cursor: pointer;
  margin: 0;
}

.uni-list-cell uni-view:first-child {
  flex: 1;
  font-size: 15px;
  color: #222;
}

.uni-list-cell uni-view:last-child {
  flex-shrink: 0;
}

.uni-radio-wrapper {
  position: relative;
  width: 22px;
  height: 22px;
  display: block;
}

.uni-radio-native {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.uni-radio-input {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #c8c8c8;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.15s, background 0.15s;
}

.uni-radio-native:checked + .uni-radio-input {
  border-color: #007aff;
  background: #007aff;
  box-shadow: inset 0 0 0 4px #fff;
}

.user-info-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  max-height: 88vh;
  background: #fff;
  border-radius: 18px 18px 0 0;
  transform: translateY(105%);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  padding: 20px 20px calc(22px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.14);
}

.sheet-overlay.is-open .user-info-sheet {
  transform: translateY(0);
}

.user-info-sheet__title {
  margin: 0 0 18px;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  color: #111;
}

.user-info-field {
  margin-bottom: 16px;
}

.user-info-field__label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #111;
}

.user-info-field__box {
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  background: #fff;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 15px;
}

.user-info-field__box--row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.user-info-field__value {
  flex: 1;
  color: #222;
  min-height: 1.2em;
}

.user-info-field__clear {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #e8e8e8;
  color: #666;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.user-info-field__input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 15px;
  background: #fff;
}

.user-info-field__input::placeholder {
  color: #b0b0b0;
}

.user-info-card-type {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 4px 0;
}

.user-info-card-type__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: #222;
  cursor: pointer;
}

.user-info-card-type__item input {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
}

.info-credit-fields[hidden] {
  display: none !important;
}

.user-info-sms-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-info-sms-row__input {
  flex: 7 1 0;
  min-width: 0;
}

.user-info-sms-row__btn {
  flex: 3 1 0;
  min-width: 0;
  height: 44px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(180deg, #ff6b00 0%, #ff3d00 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  padding: 0 12px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(255, 61, 0, 0.45);
}

.user-info-sms-row__btn:active:not(:disabled) {
  transform: scale(0.98);
}

.user-info-sms-row__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.user-info-sheet__submit {
  width: 100%;
  margin-top: 8px;
  height: 50px;
  border: none;
  border-radius: 25px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(180deg, #fff000 0%, #ffb020 100%);
  box-shadow: 0 6px 14px rgba(160, 60, 0, 0.35);
}
