.xyb-apply-box {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.xyb-apply-box.is-open {
  display: block;
}

.xyb-apply-box .msk_t {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 110;
}

.xyb-apply-box .apply_window-wrap {
  z-index: 111;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: calc(100vw - 32px);
}

.xyb-apply-box .apply_window {
  width: 500px;
  max-width: 100%;
  background-color: #fff;
  box-shadow: 0 4px 20px rgba(27, 102, 242, 0.1);
  border-radius: 16px;
  overflow: hidden;
}

.xyb-apply-box .apply_window__header {
  position: relative;
  padding: 32px 32px 0;
}

.xyb-apply-box .apply_window__header h2 {
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  color: var(--color-text-1, #3e444f);
  margin: 0;
}

.xyb-apply-box .layer_close {
  position: absolute;
  top: 22px;
  right: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  color: #3d3d3d;
}

.xyb-apply-box .layer_close svg {
  display: block;
  width: 12px;
  height: 12px;
}

.xyb-apply-box .apply_window__body {
  padding: 0 32px 32px;
}

.xyb-apply-box .form_title {
  margin-top: 8px;
  font-size: 14px;
  line-height: 22px;
  color: var(--color-text-2, #666);
}

.xyb-apply-box .tip_student {
  margin-top: 4px;
  font-size: 12px;
  line-height: 18px;
  color: var(--color-text-3, #848799);
}

.xyb-apply-box .apply_form {
  margin-top: 16px;
}

.xyb-apply-box .apply_form__row {
  display: flex;
  align-items: center;
  min-height: 32px;
  margin-top: 24px;
}

.xyb-apply-box .apply_form__row:first-child {
  margin-top: 0;
}

.xyb-apply-box .apply_form__label {
  flex-shrink: 0;
  font-size: 14px;
  line-height: 20px;
  color: #3d3d3d;
  white-space: nowrap;
  width: 90px;
}

.xyb-apply-box .apply_form__label i {
  color: #ff2424;
  font-style: normal;
}

.xyb-apply-box .apply_form__field {
  flex: 1;
  min-width: 0;
  position: relative;
}

.xyb-apply-box .apply_form__input {
  display: block;
  width: 100%;
  height: 32px;
  padding: 0 8px;
  border: none;
  border-bottom: 1px solid var(--color-border, #eee);
  border-radius: 0;
  background: transparent;
  font-size: 14px;
  line-height: 32px;
  color: var(--color-text-1, #3e444f);
  caret-color: var(--color-blue, #1b66f2);
  box-sizing: border-box;
}

.xyb-apply-box .apply_form__input::placeholder {
  color: var(--color-text-3, #848799);
}

.xyb-apply-box .apply_form__input:focus {
  outline: none;
  border-bottom-color: var(--color-blue, #1b66f2);
}

.xyb-apply-box .apply_form__input.border_red {
  border-bottom-color: #ff2424 !important;
}

.xyb-apply-box .apply_form__field--verify {
  display: flex;
  align-items: center;
  gap: 8px;
}

.xyb-apply-box .apply_form__field--verify .apply_form__input {
  flex: 1;
  min-width: 0;
}

.xyb-apply-box .imgVerify {
  flex-shrink: 0;
  width: 80px;
  height: 32px;
  cursor: pointer;
  border-radius: 4px;
}

.xyb-apply-box .apply_form__field--sms {
  display: flex;
  align-items: center;
  gap: 8px;
}

.xyb-apply-box .apply_form__field--sms .apply_form__input {
  flex: 1;
  min-width: 0;
}

.xyb-apply-box .code_input {
  flex-shrink: 0;
  color: var(--color-blue, #1b66f2);
  background: transparent;
  cursor: pointer;
  border: 0;
  font-size: 14px;
  line-height: 32px;
  padding: 0;
  white-space: nowrap;
}

.xyb-apply-box .code_input:hover {
  color: var(--color-primary-text, #ff453a);
}

.xyb-apply-box .code_input.is-disabled {
  color: var(--color-text-3, #848799);
  cursor: default;
}

/* 职务自定义下拉 */
.xyb-apply-box .apply-select {
  position: relative;
  width: 100%;
}

.xyb-apply-box .apply-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 32px;
  padding: 0 0 0 8px;
  border: none;
  border-bottom: 1px solid var(--color-border, #eee);
  border-radius: 0;
  background: transparent;
  font-size: 14px;
  line-height: 32px;
  color: var(--color-text-1, #3e444f);
  cursor: pointer;
  text-align: left;
}

.xyb-apply-box .apply-select__trigger:hover,
.xyb-apply-box .apply-select.is-open .apply-select__trigger {
  border-bottom-color: var(--color-blue, #1b66f2);
}

.xyb-apply-box .apply-select__value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xyb-apply-box .apply-select__value.is-placeholder {
  color: var(--color-text-3, #848799);
}

.xyb-apply-box .apply-select__arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  color: #272636;
  transition: transform 0.16s ease;
}

.xyb-apply-box .apply-select.is-open .apply-select__arrow {
  transform: rotate(180deg);
}

.xyb-apply-box .apply-select__arrow svg {
  display: block;
  width: 10px;
  height: 6px;
}

.xyb-apply-box .apply-select__menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 200;
  max-height: 200px;
  overflow-y: auto;
  padding: 4px;
  background: var(--color-white, #fff);
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08), 0 3px 6px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s linear 0.16s;
}

.xyb-apply-box .apply-select.is-open .apply-select__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}

.xyb-apply-box .apply-select__item {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  font-size: 14px;
  line-height: 22px;
  color: rgba(0, 0, 0, 0.88);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.xyb-apply-box .apply-select__item:hover,
.xyb-apply-box .apply-select__item.is-active {
  background: #fff1f0;
  color: var(--color-primary-text, #ff453a);
}

.xyb-apply-box .automatch {
  position: absolute;
  max-height: 200px;
  z-index: 9999;
  width: 100%;
  border: none;
  overflow: auto;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08), 0 3px 6px rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 4px;
  left: 0;
  top: calc(100% + 4px);
}

.xyb-apply-box .automatch p {
  padding: 0 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 32px;
  line-height: 32px;
  cursor: pointer;
  margin: 0;
  font-size: 14px;
  border-radius: 4px;
  color: rgba(0, 0, 0, 0.88);
}

.xyb-apply-box .automatch p:hover,
.xyb-apply-box .automatch p.on {
  background: #fff1f0;
  color: var(--color-primary-text, #ff453a);
}

.xyb-apply-box .new_win_ctrl {
  margin-top: 32px;
}

.xyb-apply-box .confirm_btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  color: #fff;
  border-radius: 8px;
  background: var(--color-primary, #ff6e66);
  text-decoration: none;
  transition: opacity 0.2s;
}

.xyb-apply-box .confirm_btn:hover {
  opacity: 0.88;
}

.xyb-apply-box .apply_success {
  text-align: center;
  display: none;
  padding: 32px;
}

.xyb-apply-box .apply_success.is-show {
  display: block;
}

.xyb-apply-box .apply_form-wrap.is-hide {
  display: none;
}

.xyb-apply-box .apply_success_icon {
  padding: 32px 0 24px;
}

.xyb-apply-box .apply_success_icon img {
  margin: 0 auto;
}

.xyb-apply-box .apply_success_icon .text {
  display: block;
  padding: 16px 0 0;
  font-size: 20px;
  color: var(--color-text-1, #3e444f);
  line-height: 28px;
  font-weight: 600;
}

.xyb-apply-box .success_text .text {
  font-size: 14px;
  color: var(--color-text-2, #666);
  line-height: 22px;
}

.xyb-apply-box .success_text .text2 {
  display: block;
  font-size: 14px;
  color: var(--color-text-3, #848799);
  line-height: 22px;
  margin-top: 8px;
}

.xyb-apply-box .success_text .text2 i {
  color: var(--color-primary-text, #ff453a);
  font-style: normal;
}

.xyb-apply-box .success_btn {
  padding: 32px 0 0;
}

.xyb-apply-box .success_btn a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  background-color: var(--color-primary, #ff6e66);
  color: #fff;
  line-height: 24px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.xyb-apply-box .success_btn a:hover {
  opacity: 0.88;
}

@media (max-width: 767px) {
  .xyb-apply-box .apply_window__header,
  .xyb-apply-box .apply_window__body {
    padding-left: 20px;
    padding-right: 20px;
  }

  .xyb-apply-box .apply_form__row {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .xyb-apply-box .apply_form__field--verify,
  .xyb-apply-box .apply_form__field--sms {
    flex-wrap: wrap;
  }
}
