/* 提取码弹窗遮罩 */
.code-tip-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s;
}

.code-tip-overlay.show {
  opacity: 1;
}

/* 弹窗主体 */
.code-tip-modal {
  background: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  padding: 24px;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 标题 */
.code-tip-header {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

/* 内容区 */
.code-tip-body {
  text-align: center;
  margin-bottom: 24px;
}

.code-tip-body p {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
}

.code-tip-code {
  display: inline-block;
  background: #f5f5f5;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 24px;
  font-weight: 600;
  color: #e74c3c;
  letter-spacing: 2px;
  user-select: all;
}

/* 按钮区 */
.code-tip-actions {
  display: flex;
  gap: 12px;
}

.code-tip-btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.code-tip-btn-copy {
  background: #f0f0f0;
  color: #333;
}

.code-tip-btn-copy:hover {
  background: #e0e0e0;
}

.code-tip-btn-go {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.code-tip-btn-go:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 关闭按钮 */
.code-tip-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s;
}

.code-tip-close:hover {
  color: #333;
}

/* Toast提示 */
.toast-message {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s;
}

.toast-message.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .code-tip-modal {
    width: 85%;
    padding: 20px;
  }

  .code-tip-header {
    font-size: 18px;
  }

  .code-tip-code {
    font-size: 20px;
    padding: 10px 20px;
  }

  .code-tip-btn {
    padding: 10px 16px;
    font-size: 14px;
  }
}
