/* 申请页：对齐原站 yjhx 申请页布局与配色 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: #333;
  -webkit-font-smoothing: antialiased;
  background: #eceff4;
}

a {
  text-decoration: none;
  color: inherit;
}

.app-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background-color: #eceff4;
}

/* ===== Header（原站 app.css） ===== */
.g-hd {
  height: 126px;
  background: #fff;
  border-top: 12px solid #2f7af7;
  overflow: hidden;
  flex-shrink: 0;
}

.m-hd {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0 auto;
  width: 1170px;
  max-width: 100%;
  height: 100%;
  padding: 0 16px;
}

.u-logo-box {
  display: flex;
  align-items: center;
  padding-right: 62px;
  border-right: 1px solid #dcdcdc;
  flex-shrink: 0;
}

.u-logo {
  height: 56px;
  width: auto;
}

.u-logo-txt {
  margin-top: 10px;
  margin-left: 20px;
  height: 42px;
  width: auto;
}

.u-sys-txt {
  margin-left: 54px;
  font-size: 38px;
  color: #000;
  letter-spacing: 2px;
  font-weight: 100;
  white-space: nowrap;
}

.u-sys-sub-tt {
  margin-left: 20px;
  font-size: 24px;
  font-weight: 100;
  color: #333;
  white-space: nowrap;
}

/* ===== Body ===== */
.g-bd {
  padding: 28px 0 40px;
  flex: 1 1 0;
}

.f-fixed-width {
  width: 1170px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

.apply-card {
  background: #fff;
  border: 1px solid #d6dce6;
  padding: 48px 80px 36px;
}

.apply-form {
  max-width: 640px;
  margin: 0 auto;
}

.form-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 22px;
}

.form-label {
  width: 100px;
  flex-shrink: 0;
  text-align: right;
  padding-right: 12px;
  line-height: 40px;
  font-size: 15px;
  color: #333;
}

.form-label.required::before {
  content: "*";
  color: #f20000;
  margin-right: 4px;
}

.form-content {
  flex: 1;
  min-width: 0;
}

.form-input {
  display: block;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #d6dce6;
  border-radius: 0;
  font-size: 15px;
  color: #333;
  background: #fff;
  font-family: inherit;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus {
  border-color: #2f7af7;
}

.form-input::placeholder {
  color: #c0c4cc;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2390999c' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}

.u-tip {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: #ff9e2b;
}

.form-content-captcha {
  display: flex;
  align-items: center;
  gap: 12px;
}

.captcha-input {
  width: 60%;
  flex: 0 0 60%;
}

.captcha-img {
  height: 40px;
  width: 110px;
  border: 1px solid #d6dce6;
  cursor: pointer;
  background: #f5f7fa;
  object-fit: cover;
}

/* 证件正反面上传 */
.upload-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.upload-card {
  width: 160px;
  cursor: pointer;
}

.upload-preview {
  width: 160px;
  height: 100px;
  border: 1px dashed #d6dce6;
  background: #fafbfc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: border-color 0.15s, background 0.15s;
}

.upload-card:hover .upload-preview {
  border-color: #2f7af7;
  background: #f4f8ff;
}

.upload-preview.has-img {
  border-style: solid;
}

.upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.upload-plus {
  font-size: 28px;
  color: #2f7af7;
  line-height: 1;
  margin-bottom: 4px;
}

.upload-text {
  font-size: 12px;
  color: #888;
}

.radio-row {
  display: flex;
  gap: 28px;
  align-items: center;
  height: 40px;
}

.radio-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: #333;
  cursor: pointer;
}

.radio-item input {
  width: 16px;
  height: 16px;
  accent-color: #2f7af7;
}

/* ===== 协议区 ===== */
.u-tools-box {
  margin-top: 22px;
  padding: 0 46px;
}

.u-tips-box {
  display: flex;
  align-items: flex-start;
  font-size: 14px;
  line-height: 28px;
  color: #333;
  margin-bottom: 6px;
}

.agree-check {
  width: 18px;
  height: 18px;
  margin-top: 6px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: #2f7af7;
}

.u-txt-box {
  margin: 2px 0 2px 12px;
}

.u-pop-tt {
  font-weight: 500;
  color: #e80000;
  cursor: pointer;
}

.u-pop-tt:hover {
  text-decoration: underline;
}

.u-btn-box {
  margin-top: 26px;
  text-align: center;
}

.u-sub-btn {
  display: inline-block;
  min-width: 120px;
  height: 40px;
  padding: 0 36px;
  background: #2f7af7;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 5px 0 rgba(47, 122, 247, 0.32);
  font-weight: 100;
}

.u-sub-btn:hover {
  background: #538ff8;
}

.u-sub-btn:disabled,
.u-sub-btn.is-disabled {
  background: #c5cbd6;
  box-shadow: none;
  cursor: not-allowed;
}

/* ===== Footer ===== */
.g-ft {
  height: 119px;
  overflow: hidden;
  background: #eee;
  border-top: 1px solid #dcdcdc;
  flex-shrink: 0;
}

.m-cprt {
  position: relative;
  margin: 0 auto;
  padding: 30px 16px;
  width: 1170px;
  max-width: 100%;
  color: #5a5a5a;
}

.u-cprt-txt {
  font-size: 0;
}

.u-cprt-txt > a,
.u-cprt-txt > span {
  margin-right: 40px;
  display: inline-block;
  font-size: 12px;
  line-height: 30px;
  color: #5a5a5a;
}

.u-beian img {
  vertical-align: -4px;
  margin-right: 4px;
}

.u-dzjg {
  position: absolute;
  top: 30px;
  right: 10px;
  width: 48px;
  height: 60px;
}

.u-dzjg img {
  width: 100%;
  height: auto;
}

/* ===== Dialog（对齐原站 Notify 弹层） ===== */
.dialog-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px 30px;
  overflow-y: auto;
}

.dialog-mask[hidden] {
  display: none !important;
}

.dialog-box {
  width: 860px;
  max-width: 100%;
  background: #fff;
  border-radius: 2px;
  overflow: hidden;
  margin: auto 0;
}

.dialog-box.u-notify1-box {
  padding: 8px 0 4px;
}

.dialog-tt,
.u-notify1-box .u-tt {
  margin: 0;
  font-size: 20px;
  line-height: 42px;
  color: #212f46;
  font-weight: 600;
  text-align: center;
  padding: 8px 24px 0;
}

.dialog-bd,
.u-notify1-box .bd {
  margin: 16px 45px 8px;
  padding: 20px 35px;
  background-color: #fff;
  border: 1px solid #ddd;
  max-height: 280px;
  overflow-y: auto;
}

.u-notify1-box .bd.bd-tall {
  max-height: 300px;
}

.dialog-bd p,
.u-notify1-box .bd p {
  margin: 15px 0;
  text-indent: 30px;
  font-size: 14px;
  line-height: 22px;
  color: #212f46;
  font-weight: 400;
}

.u-notify1-box .bd p.p1 {
  font-size: 16px;
  line-height: 30px;
  font-weight: 600;
  text-indent: 0;
}

.u-notify1-box .bd p.p2 {
  font-size: 16px;
  line-height: 36px;
  font-weight: 600;
  text-align: center;
  text-indent: 0;
}

.u-notify1-box .bd p.p3 {
  font-size: 16px;
  line-height: 30px;
  font-weight: 600;
  text-align: center;
  text-indent: 0;
}

.u-notify1-box .bd p.sign-right {
  text-align: right;
  text-indent: 0;
  line-height: 28px;
}

.u-notify1-box .bd p span {
  margin-right: 20px;
  font-weight: 600;
}

.dialog-ft {
  text-align: center;
  padding: 18px 20px 26px;
}

.dialog-ok {
  min-width: 120px;
  height: 40px;
  padding: 0 28px;
  background: #409eff;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
}

.dialog-ok:hover {
  background: #66b1ff;
}

.dialog-ok:disabled {
  background: #a0cfff;
  cursor: not-allowed;
}

.dialog-box.dialog-sm {
  width: 640px;
}

.dialog-box.dialog-sm .dialog-bd {
  margin: 16px 32px 12px;
  max-height: 360px;
}

@media (max-width: 900px) {
  .g-hd {
    height: auto;
    min-height: 126px;
  }

  .m-hd {
    flex-wrap: wrap;
    justify-content: center;
    padding: 16px;
    height: auto;
  }

  .u-logo-box {
    border-right: none;
    padding-right: 0;
  }

  .u-sys-txt {
    margin: 10px 0 0;
    font-size: 24px;
    width: 100%;
    text-align: center;
  }

  .u-sys-sub-tt {
    margin: 6px 0 0;
    font-size: 18px;
    width: 100%;
    text-align: center;
  }

  .apply-card {
    padding: 28px 16px;
  }

  .form-item {
    flex-direction: column;
  }

  .form-label {
    text-align: left;
    line-height: 1.4;
    margin-bottom: 8px;
  }

  .u-tools-box {
    padding: 0 8px;
  }

  .g-ft {
    height: auto;
  }

  .u-dzjg {
    display: none;
  }
}
