.verification-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
}

/* 显示弹窗 */
.verification-popup.show {
  display: block;
}

/* 遮罩层 */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  animation: fadeIn 0.3s ease;
}

/* 弹窗内容 */
.popup-content {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 400px;
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  animation: scaleIn 0.3s ease;
}

/* 标题区域 */
.popup-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 24px 16px;
  position: relative;
}

.title {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
}

.close-btn {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #f5f5f5;
}

/* 提示信息 */
.message {
  text-align: center;
  font-size: 14px;
  color: #666;
  padding: 0 24px 20px;
}

/* 验证码输入框容器 */
.code-input-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 0 24px 24px;
  position: relative;
}

/* 单个验证码输入框 */
.code-input {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
  transition: all 0.2s ease;
}

/* 激活状态 */
.code-input.active {
  border-color: #07c160;
  box-shadow: 0 0 0 2px rgba(7, 193, 96, 0.2);
}

/* 已填充状态 */
.code-input.filled {
  border-color: #eee;
  background-color: #fafafa;
}

/* 实际输入框（隐藏） */
.real-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* 操作区域 */
.operation-area {
  padding: 0 24px 24px;
}

/* 确认按钮 */
.confirm-btn {
  width: 100%;
  height: 48px;
  line-height: 48px;
  background-color: #07c160;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  border-radius: 24px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirm-btn::after {
  border: none;
}

.confirm-btn:disabled {
  background-color: #e5e5e5;
  color: #999;
}

/* 重新发送区域 */
.resend-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #666;
}

/* 重新发送按钮 */
.resend-btn {
  color: #07c160;
  font-weight: 500;
}

.resend-btn:not(.active) {
  color: #999;
  pointer-events: none;
}

/* 动画效果 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { transform: translate(-50%, -50%) scale(0.9); opacity: 0; }
  to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
