/* Become A Partner 表单页样式（由 Vue 版 less 迁移，PC 基准 1920 / Mobile 基准 750） */
.become-page {
  background: #f4f4f4;
  padding-top: 4.375vw; /* 84px / 1920 */
  padding-bottom: 6.25vw; /* 120px / 1920 */
}

/* 顶部导航栏（参考 newsEventsAnualReturn 样式） */
.become-page .top-nav {
  position: sticky;
  top: 4.3229vw; /* 83px / 1920 */
  z-index: 1010;
  background-color: #fff;
  border: 0.0521vw solid #2318151a; /* 1px / 1920 */
}

.become-page .top-nav-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 !important;
  height: 3.9583vw; /* 76px / 1920 */
}

/* 主标题 (banner，参考 newsEventsFAQ 样式) */
.become-page .main-title {
  color: #231815;
  font-family: Montserrat;
  font-family: "Montserrat-SemiBold" !important;
  font-size: 2.0833vw; /* 40px / 1920 */
  font-style: normal;
  text-transform: capitalize;
  line-height: 150%;
  margin: 0;
}

/* 面包屑（参考 newsEventsFAQ 样式） */
.become-page .crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 1.25vw 0 4.1667vw; /* 24px 0 80px / 1920 */
}

.become-page .crumbs a {
  color: #909399;
  font-family: Montserrat;
  font-size: 0.7292vw; /* 14px / 1920 */
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  text-decoration: none;
}

.become-page .crumbs a:hover {
  color: #3a66fb;
}

.become-page .crumbs .iconfont {
  margin: 0 0.5208vw; /* 0 10px / 1920 */
  color: #909399;
  font-size: 0.7292vw; /* 14px / 1920 */
}

.become-page .crumbs .current-page {
  color: #231815;
  font-weight: 500;
}

.become {
  padding: 2.3438vw 4.8958vw; /* 45px 94px / 1920 */
  box-sizing: border-box;
  background: #fff;
  min-height: 31.25vw; /* 600px / 1920 */
}

.discription {
  width: 100%;
  font-size: 0.9375vw; /* 18px / 1920 */
  line-height: 1.25vw; /* 24px */
  letter-spacing: 0;
  color: #333333;
  margin-bottom: 1.5625vw; /* 30px */
}

.form-item {
  width: 100%;
  margin-bottom: 1.4583vw; /* 28px / 1920，输入框与下拉模块间距 */
}

.form-item label {
  display: block;
  color: #666;
  padding: 0;
  font-size: 0.7292vw; /* 14px / 1920 */
  margin-bottom: 0.4167vw; /* 8px */
}

.form-item .req,
.form-item sup {
  color: red;
  font-style: normal;
}

.form-item input[type="text"],
.form-item input[type="email"] {
  width: 100%;
  box-sizing: border-box;
  border: 0.0521vw solid #dcdfe6; /* Element UI 默认边框色 */
  border-radius: 0.2083vw; /* 4px / 1920 */
  padding: 0 0.7813vw; /* 15px / 1920 */
  height: 2.0833vw; /* 40px / 1920 */
  font-size: 0.7292vw; /* 14px */
  color: #606266;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.form-item input[type="text"]:focus,
.form-item input[type="email"]:focus {
  border-color: #409eff; /* Element UI 聚焦色 */
}

/* 原生 select 已隐藏，由自定义下拉组件替代 */

/* 自定义下拉组件 */
.select-wrap {
  position: relative;
}

/* 触发器（替代原生 select 外观） */
.select-wrap .select-trigger {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  border: 0.0521vw solid #bfc9d9;
  border-bottom-color: #dcdfe6;
  border-radius: 0;
  padding: 0 2.2917vw 0 0.7813vw;
  height: 2.0833vw; /* 40px / 1920 */
  font-size: 0.7292vw; /* 14px */
  color: #606266;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: border-color 0.2s;
  user-select: none;
}

.select-wrap .select-trigger-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 箭头恢复绝对定位，保持原版距右 16px 位置 */
.select-wrap .select-trigger .icon-a-icon_downarrow {
  position: absolute;
  right: 0.8333vw; /* 16px / 1920，与原 select 箭头一致 */
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
  font-size: 1.25vw; /* 24px / 1920 */
  color: #606266;
}

.select-wrap.open .select-trigger .icon-a-icon_downarrow {
  transform: translateY(-50%) rotate(180deg);
}

.select-wrap .select-trigger:hover {
  border-color: #c0c4cc;
}

.select-wrap.open .select-trigger {
  border-color: #409eff;
}

/* 下拉面板 */
.select-wrap .select-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.2604vw); /* 5px / 1920，参考 Element UI .el-select-dropdown margin */
  left: 0;
  width: 100%;
  max-height: 8.3333vw; /* 160px / 1920 */
  padding: 0.3125vw 0; /* 6px 0 / 1920，参考 Element UI 列表内边距 */
  overflow-y: auto;
  background: #fff;
  border: 0.0521vw solid #d1d9e5; /* 1px solid #d1d9e5 */
  z-index: 100;
  box-sizing: border-box;
}

.select-wrap.open .select-dropdown {
  display: block;
}

/* 滚动条：默认显示 */
.select-wrap .select-dropdown::-webkit-scrollbar {
  width: 6px;
}

.select-wrap .select-dropdown::-webkit-scrollbar-thumb {
  background: rgba(151, 168, 190, 0.5);
  border-radius: 3px;
}

.select-wrap .select-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

/* 选项 */
.select-wrap .select-option {
  padding: 0 1.0417vw; /* 20px / 1920，参考 Element UI .el-select-dropdown__item 左右内边距 */
  height: 2.0833vw; /* 40px / 1920 */
  line-height: 2.0833vw;
  font-size: 0.7292vw; /* 14px */
  color: #606266;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.15s;
}

/* 仅改 hover 背景色 */
.select-wrap .select-option:hover {
  background: #e4e7f1;
}

.select-wrap .select-option.selected {
  color: #409eff;
  font-weight: 500;
}

/* Region 为只读，展示为完整边框框 */
.region-item input[type="text"] {
  border: 0.0521vw solid #bfc9d9;
  background: #f5f5f5;
}

.error-tip {
  display: none;
  color: #f00;
  font-size: 0.625vw; /* 12px / 1920 */
  margin-top: 0.3125vw; /* 6px */
}

.form-item.has-error .error-tip {
  display: block;
}

.form-item.has-error input,
.form-item.has-error .select-trigger {
  border-color: #f00;
}

/* Bussiness Area：默认隐藏，Company Type = System Integrator 时显示 */
.bussiness-item {
  display: none;
}

.bussiness-checkboxs {
  width: 30%;
  min-width: 8.5417vw; /* 164px / 1920 */
  display: inline-block;
}

.check-item {
  display: inline-block;
  width: 100%;
  margin-left: 0.7813vw; /* 15px */
  font-size: 0.7292vw; /* 14px */
  color: #333;
  margin-bottom: 0.4167vw;
  cursor: pointer;
}

.other-input {
  display: inline-block;
  margin-left: 0.7813vw; /* 15px */
  width: fit-content;
}

.other-input input {
  width: auto;
  padding: 0 0.5208vw;
  border: 0.0521vw solid #bfc9d9;
  font-size: 0.7292vw;
}

.footer-policy {
  max-width: 38.1771vw; /* 733px / 1920 */
  margin-top: 1.5625vw; /* 30px */
}

.footer-policy p {
  font-size: 0.7292vw; /* 14px */
  line-height: 1.0417vw; /* 20px */
}

.footer-policy .policy-title {
  color: #000;
  font-weight: bold;
  margin-bottom: 0.625vw; /* 12px */
}

.footer-policy p:nth-of-type(2),
.footer-policy p:nth-of-type(4) {
  color: #333;
  margin-bottom: 1.1458vw; /* 22px */
}

.footer-policy a {
  color: #0e5fac;
  text-decoration: underline;
}

.agree-item {
  margin-top: 1.0417vw; /* 20px */
}

.agree-label {
  display: inline-block;
  font-size: 0.7292vw;
  color: #333;
  cursor: pointer;
}

.submit-btn {
  width: 7.5vw; /* 144px / 1920 */
  font-size: 0.7292vw; /* 14px */
  border-radius: 0.8333vw; /* 16px */
  margin-top: 1.0417vw; /* 20px */
  background: #0e5fac;
  color: #fff;
  border: none;
  padding: 0.625vw 0; /* 12px */
  cursor: pointer;
}

.submit-btn:hover {
  opacity: 0.9;
}

/* 提交结果提示弹窗（上下居中，不依赖 Bootstrap） */
.submit-tip-mask {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: rgba(35, 24, 21, 0.5);
  align-items: center;
  justify-content: center;
}
.submit-tip-mask.show {
  display: flex;
}
.submit-tip-box {
  width: 27.0833vw; /* 520px / 1920，与 loginTipModal 一致 */
  background: #fff;
  border-radius: 0.8333vw; /* 16px */
  padding: 3.125vw 2.0833vw; /* 60px 40px */
  text-align: center;
  box-shadow: 0 0.5208vw 2.6042vw rgba(35, 24, 21, 0.15);
}
.submit-tip-text {
  font-family: "Montserrat-SemiBold", Montserrat, sans-serif;
  font-size: 1.25vw; /* 24px */
  line-height: 1.5;
  color: #231815;
  margin: 0 0 2.0833vw; /* 40px */
}
.submit-tip-close {
  background: #3a66fb;
  color: #fff;
  border: none;
  border-radius: 1.25vw; /* 24px */
  padding: 0.625vw 3.125vw; /* 12px 60px */
  font-family: "Montserrat-SemiBold", Montserrat, sans-serif;
  font-size: 0.8333vw; /* 16px */
  cursor: pointer;
}

@media screen and (max-width: 768px) {
  .become {
    padding: 9.6vw 4vw; /* 上36px 左右15px / 375，删除 margin */
  }

  .become-page {
    padding-top: 12.8vw; /* 48px / 375 */
    padding-bottom: 10.6667vw; /* 40px / 375 */
  }

  .discription {
    font-size: 4.8vw; /* 18px / 375 */
    line-height: 6.4vw; /* 24px / 375 */
    margin-bottom: 8vw; /* 30px / 375 */
  }

  .form-item {
    margin-bottom: 2.6667vw; /* 10px / 375 */
  }

  .form-item label,
  .form-item input[type="text"],
  .form-item input[type="email"],
  .form-item select,
  .check-item,
  .agree-label,
  .footer-policy p,
  .submit-btn {
    font-size: 3.7333vw; /* 14px / 375 */
  }

  .form-item select {
    height: 10.6667vw; /* 40px / 375 */
  }

  /* 自定义下拉移动端适配 */
  .select-wrap .select-trigger {
    height: 10.6667vw; /* 40px / 375 */
    padding: 0 8vw 0 2.6667vw;
    font-size: 3.7333vw; /* 14px / 375 */
  }

  .select-wrap .select-trigger .icon-a-icon_downarrow {
    font-size: 6.4vw; /* 24px / 375 */
  }

  .select-wrap .select-dropdown {
    top: calc(100% + 1.3333vw); /* 5px / 375，参考 Element UI 间距 */
    padding: 1.6vw 0; /* 6px 0 / 375 */
    max-height: 32vw; /* 120px / 375 */
  }

  .select-wrap .select-option {
    height: 10.6667vw; /* 40px / 375 */
    line-height: 10.6667vw;
    padding: 0 5.3333vw; /* 20px / 375，参考 Element UI 选项左右内边距 */
    font-size: 3.7333vw; /* 14px / 375 */
  }

  .select-wrap .select-dropdown::-webkit-scrollbar {
    width: 6px;
  }

  .form-item input[type="text"],
  .form-item input[type="email"] {
    height: 10.6667vw; /* 40px / 375 */
    padding: 0 2.6667vw; /* 10px / 375 */
    border-radius: 1.0667vw; /* 4px / 375 */
  }

  .error-tip {
    font-size: 3.2vw; /* 12px / 375，修复移动端非空提示文字过小 */
    margin-top: 1.6vw; /* 6px / 375 */
  }

  .submit-btn {
    width: 30vw;
    border-radius: 4.2667vw; /* 16px / 375 */
    padding: 2.6667vw 0; /* 10px / 375 */
  }

  .bussiness-checkboxs {
    width: 100%;
  }

  .footer-policy {
    max-width: 100%;
    margin-top: 8vw; /* 30px / 375 */
  }

  .footer-policy p {
    line-height: 5.3333vw; /* 20px / 375，修复移动端行高过小导致文字重叠 */
  }

  .footer-policy .policy-title {
    margin-bottom: 1.6vw; /* 6px / 375 */
  }

  /* 移动端主标题与面包屑（参考 secureAndTrust/newsEventsAnualReturn，768 基准） */
  .become-page .top-nav {
    position: relative;
    top: 0;
    border-top: none;
    border-bottom: 0.2667vw solid #2318151a;
  }

  .become-page .top-nav-box {
    height: fit-content;
    flex-direction: column;
    align-items: flex-start;
    padding: 2.4vw 6.4vw !important; /* 18.4px 49px / 768，与 secureAndTrust 一致 */
  }

  .become-page .main-title {
    font-size: 4.2667vw; /* 32px / 768 */
  }

  .become-page .crumbs {
    padding: 3.2vw 0; /* 12px 0 / 375 */
  }

  .become-page .crumbs a,
  .become-page .crumbs .iconfont,
  .become-page .crumbs .current-page {
    font-size: 3.2vw; /* 12px / 375 */
  }

  /* 提交结果提示弹窗移动端（375 基准） */
  .submit-tip-box {
    width: 86.6667vw; /* 325px / 375 */
    border-radius: 2.1333vw; /* 8px / 375 */
    padding: 8vw 5.3333vw; /* 30px 20px / 375 */
  }
  .submit-tip-text {
    font-size: 3.7333vw; /* 14px / 375 */
    margin: 0 0 5.3333vw; /* 20px / 375 */
  }
  .submit-tip-close {
    border-radius: 5.3333vw; /* 20px / 375 */
    padding: 2.1333vw 8vw; /* 8px 30px / 375 */
    font-size: 3.7333vw; /* 14px / 375 */
  }
}
