.modalWrapper {
  :global(.ant-modal-content) {
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
  }

  :global(.ant-modal-body) {
    padding: 0;
    max-height: 85vh;
    overflow: hidden;
  }
}

.modal {
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  background: #fff;
}

// 头部
.header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.headerLeft {
  flex: 1;
}

.title {
  font-size: 18px;
  font-weight: 600;
  color: #222;
  margin: 0 0 8px 0;
}

.subtitle {
  font-size: 12px;
  color: #888;
  margin: 0;
  line-height: 1.4;
}

.closeBtn {
  font-size: 20px;
  color: #888;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
  margin-left: 12px;

  &:hover {
    color: #222;
  }
}

// 创建方式选择
.methodTabs {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
}

.methodTab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #f8f9fa;
  color: #666;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;

  &:hover {
    border-color: #1890ff;
    color: #1890ff;
  }

  &.active {
    background: #fff;
    border-color: #1890ff;
    color: #222;
    font-weight: 500;
  }
}

.tabIcon {
  font-size: 16px;
}

// 内容区域
.content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  min-height: 0;
}

// 表单样式
.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.formItem {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.label {
  font-size: 14px;
  color: #222;
  font-weight: 500;
}

.required {
  color: #ff4d4f;
  margin-left: 2px;
}

.input {
  :global(.ant-input) {
    border-radius: 8px;
    height: 44px;
    font-size: 14px;
  }
}

.phoneHint {
  margin-top: 4px;
  min-height: 18px;
  display: flex;
  align-items: center;
}

.textarea {
  :global(.adm-text-area) {
    border-radius: 8px;
    font-size: 14px;
    padding: 12px;
  }
}

// 扫码创建样式
.scanContent {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
}

.qrCodeContainer {
  margin-bottom: 20px;
}

.qrCodeBox {
  width: 200px;
  height: 200px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.qrCode {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qrCodePlaceholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qrCodeIcon {
  font-size: 80px;
  color: #ddd;
}

.scanInstruction {
  font-size: 16px;
  color: #222;
  margin: 0 0 8px 0;
  font-weight: 500;
}

.scanDescription {
  font-size: 13px;
  color: #888;
  margin: 0 0 20px 0;
  text-align: center;
}

.qrCodeTypeSelector {
  width: 100%;
  margin-bottom: 24px;
}

.typeTabs {
  display: flex;
  gap: 12px;
  background: #f5f5f5;
  padding: 4px;
  border-radius: 8px;
}

.typeTab {
  flex: 1;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #666;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;

  &:hover {
    color: #1890ff;
  }

  &.active {
    background: #fff;
    color: #1890ff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
}

// 底部按钮
.footer {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid #f0f0f0;
  background: #fff;
}

.cancelBtn {
  flex: 1;
  height: 44px;
  font-size: 16px;
}

.submitBtn {
  flex: 1;
  height: 44px;
  font-size: 16px;
}

// 响应式
@media (max-width: 375px) {
  .header {
    padding: 16px;
  }

  .methodTabs {
    padding: 12px 16px;
  }

  .content {
    padding: 16px;
  }

  .qrCodeBox {
    width: 180px;
    height: 180px;
  }
}
