/**
 * 手机号绑定弹窗样式（参照 WH5 PhoneInputModal）
 * 使用虚拟数字键盘，不依赖系统键盘
 */

/* 全屏遮罩层 */
.phone-bind-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 15000;
  display: none;
  align-items: center;
  justify-content: center;
}

/* 半透明背景蒙层 */
.phone-bind-mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

/* 内容面板 */
.phone-bind-content {
  position: relative;
  width: 85%;
  max-width: 500px;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 30px 25px;
  box-sizing: border-box;
  z-index: 1;
  max-height: 80vh;
  overflow-y: auto;
}

/* 标题 */
.phone-bind-title {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  text-align: center;
  margin-bottom: 20px;
}

/* 提示区 */
.phone-bind-tips {
  margin-bottom: 20px;
}

.phone-bind-tip {
  font-size: 13px;
  line-height: 1.8em;
  color: #666666;
  margin-bottom: 8px;
}

.phone-bind-tip:last-child {
  margin-bottom: 0;
}

/* 错误提示：红色加粗 */
.phone-bind-tip-error {
  color: #e53935;
  font-weight: 600;
  display: none;
}

/* 第二步确认提示（初始隐藏，第二步时由 JS 显示） */
#phone-bind-tip-step2 {
  display: none;
}

/* 手机号展示行：底部蓝色线 + 光标 */
.phone-bind-display {
  position: relative;
  height: 48px;
  border-bottom: 2px solid #0287fc;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  padding: 0 4px;
}

.phone-bind-text {
  font-size: 22px;
  font-weight: bold;
  color: #0287fc;
  letter-spacing: 3px;
}

.phone-bind-placeholder {
  font-size: 15px;
  color: #bbb;
  position: absolute;
  left: 4px;
}

/* 闪烁光标 */
.phone-bind-cursor {
  width: 2px;
  height: 22px;
  background-color: #0287fc;
  margin-left: 2px;
  opacity: 0;
}

.phone-bind-cursor.blink {
  animation: phone-cursor-blink 1s step-end infinite;
}

@keyframes phone-cursor-blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* 虚拟数字键盘：3 列布局 */
.phone-bind-keyboard {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  gap: 10px;
  padding: 0 0 10px;
  box-sizing: border-box;
}

/* 单个按键 */
.phone-bind-key {
  background-color: #ffffff;
  flex: 1 0 calc(33.333% - 10px);
  min-height: 48px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  color: #0287fc;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  transition: all 0.2s;
}

.phone-bind-key:active {
  background-color: #e8f4fe;
}

/* 清除键：橙色 */
.phone-bind-key-clear {
  color: #fff;
  font-size: 15px;
  background-color: #fb9345;
}

.phone-bind-key-clear:active {
  background-color: #e8823a;
}

/* 确定键：蓝色 */
.phone-bind-key-confirm {
  color: #fff;
  font-size: 15px;
  background-color: #0287fc;
}

.phone-bind-key-confirm:active {
  background-color: #0270d9;
}

/* 确定键禁用态 */
.phone-bind-key-confirm.disabled {
  background-color: #ccc;
  color: #999;
  cursor: not-allowed;
}