/* ===================== 人才招聘 ===================== */

.rc-main {
  --rc-blue: #004EA2;
  --rc-ink: #353D42;
  --rc-gray: #666;
  --rc-line: #DDD;
  --rc-red: #E62129;
}

/* ===================== Banner ===================== */
.rc-hero {
  position: relative;
  aspect-ratio: 1440 / 385;
  min-height: 300px;
  overflow: hidden;
  background: #33414f;
}

.rc-hero-bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.rc-hero-inner {
  position: relative;
  z-index: 2;
  width: 1200px;
  max-width: 100%;
  height: 100%;
  margin: 0 auto;
}

/* 左侧蓝色半透明面板 */
.rc-hero-panel {
  position: absolute;
  left: 0;
  top: 50%;
  width: 42%;
  height: calc(100% - 100px);
  padding: 0 15px;
  transform: translateY(-50%);
}

.rc-hero-panel::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: calc(100% + 360px);
  height: 100%;
  background: rgba(0, 78, 162, .9);
}

/* 面包屑 */
.rc-crumb {
  position: absolute;
  left: 15px;
  top: 28px;
  z-index: 2;
  display: flex;
  align-items: center;
  font-size: 14px;
  line-height: 1.75;
}

.rc-crumb li {
  position: relative;
  padding: 0 15px;
}

.rc-crumb li:first-child {
  padding-left: 0;
}

.rc-crumb li + li::before {
  content: '>';
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  opacity: .7;
}

.rc-crumb a {
  color: #fff;
  opacity: .7;
}

.rc-crumb li:last-child a {
  opacity: 1;
}

.rc-crumb a:hover {
  opacity: 1;
}

/* 标题 */
.rc-hero-txt {
  position: absolute;
  left: 15px;
  top: 50%;
  z-index: 2;
  width: calc(100% - 30px);
  transform: translateY(-50%);
}

.rc-hero-txt h1 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

/* ===================== 表单区 ===================== */
.rc-sec {
  padding: 80px 0;
  background: #F7F7F7;
}

.rc-card {
  width: 1100px;
  max-width: calc(100% - 40px);
  margin: 0 auto;
  padding: 56px 60px 72px;
  background: #fff;
}

.rc-head {
  text-align: center;
}

.rc-title {
  font-size: 34px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--rc-ink);
  text-align: center;
}

.rc-sub {
  margin: 62px 0 22px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--rc-gray);
  text-align: left;
}

/* 两列表单 */
.rc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 20px;
  row-gap: 22px;
}

.rc-item {
  position: relative;
  min-width: 0;
}

.rc-item.is-full {
  grid-column: 1 / -1;
}

/* 字段外框 */
.rc-field {
  position: relative;
  height: 44px;
  background: #fff;
  border: 1px solid var(--rc-line);
  transition: border-color .25s;
}

.rc-field:hover {
  border-color: #C9C9C9;
}

.rc-field:focus-within,
.rc-field.is-open {
  border-color: var(--rc-blue);
}

.rc-item.is-invalid .rc-field {
  border-color: var(--rc-red);
}

.rc-input {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0 15px;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  color: var(--rc-ink);
}

.rc-input::placeholder {
  font-size: 14px;
  color: #999;
  opacity: 1;
}

/* 下拉选择 */
.rc-select-trigger {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 0 44px 0 15px;
  outline: 0;
  background: transparent;
  font-size: 14px;
  color: var(--rc-ink);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
}

.rc-select-text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rc-select-text.is-ph {
  color: #999;
}

.rc-caret {
  position: absolute;
  right: 16px;
  top: 50%;
  color: var(--rc-red);
  transform: translateY(-50%);
  transition: transform .25s;
}

.rc-field.is-open .rc-caret {
  transform: translateY(-50%) rotate(180deg);
}

.rc-options {
  position: absolute;
  left: -1px;
  top: calc(100% + 5px);
  z-index: 30;
  display: none;
  width: calc(100% + 2px);
  max-height: 264px;
  padding: 6px 0;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--rc-line);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .09);
  overscroll-behavior: contain;
}

.rc-field.is-open .rc-options {
  display: block;
}

.rc-option {
  padding: 9px 15px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--rc-gray);
  cursor: pointer;
  transition: background .2s, color .2s;
}

.rc-option:hover {
  color: var(--rc-blue);
  background: #F3F6FA;
}

.rc-option.is-on {
  color: var(--rc-blue);
}

.rc-options::-webkit-scrollbar {
  width: 6px;
}

.rc-options::-webkit-scrollbar-thumb {
  background: #D6D6D6;
  border-radius: 3px;
}

/* 简历上传 */
.rc-file {
  display: flex;
  align-items: center;
  padding: 0 15px;
}

.rc-file-label {
  flex: 0 0 auto;
  margin-right: 10px;
  font-size: 14px;
  color: #999;
}

.rc-file-btn {
  flex: 0 0 auto;
  height: 26px;
  padding: 0 10px;
  background: #F5F5F5;
  border: 1px solid #999;
  font-size: 13px;
  line-height: 1;
  color: #333;
  transition: background .2s, border-color .2s;
}

.rc-file-btn:hover {
  background: #EDEDED;
  border-color: #666;
}

.rc-file-name {
  flex: 1 1 auto;
  min-width: 0;
  margin-left: 8px;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.4;
  color: #999;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rc-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* 错误提示 */
.rc-err {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 2;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--rc-red);
}

.rc-item.is-invalid .rc-err {
  display: block;
}

/* 提交按钮 */
.rc-submit {
  display: block;
  width: 100%;
  height: 46px;
  margin-top: 22px;
  background: var(--rc-blue);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  transition: background .3s;
}

.rc-submit:hover {
  background: #003E82;
}

/* 提交成功 */
.rc-card.is-done {
  padding-top: 96px;
  padding-bottom: 110px;
}

.rc-card.is-done .rc-head,
.rc-card.is-done .rc-form {
  display: none;
}

.rc-success {
  text-align: center;
}

.rc-success-title {
  font-size: 30px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--rc-ink);
}

.rc-success-tip {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--rc-gray);
}

.rc-success-ic {
  margin-top: 36px;
  line-height: 0;
}

/* ===================== 响应式 ===================== */
@media screen and (max-width: 1200px) {
  .rc-hero-inner {
    width: 100%;
  }

  .rc-hero-panel {
    left: 20px;
  }

  .rc-card {
    padding: 50px 40px 60px;
  }

  .rc-card.is-done {
    padding-top: 80px;
    padding-bottom: 90px;
  }
}

@media screen and (max-width: 991px) {
  .rc-hero {
    aspect-ratio: auto;
    height: 340px;
  }

  .rc-hero-panel {
    height: calc(100% - 80px);
  }

  .rc-hero-txt h1 {
    font-size: 34px;
  }

  .rc-sec {
    padding: 60px 0;
  }

  .rc-card {
    padding: 44px 32px 52px;
  }

  .rc-title {
    font-size: 28px;
  }

  .rc-sub {
    margin-top: 40px;
  }
}

@media screen and (max-width: 768px) {
  .rc-hero {
    aspect-ratio: auto;
    height: 300px;
  }

  .rc-hero-panel {
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0 20px;
  }

  .rc-hero-panel::before {
    width: 100%;
    opacity: .88;
  }

  .rc-crumb {
    left: 20px;
    top: 18px;
    font-size: 13px;
  }

  .rc-crumb li {
    padding: 0 12px;
  }

  .rc-hero-txt {
    left: 20px;
    width: calc(100% - 40px);
  }

  .rc-hero-txt h1 {
    font-size: 32px;
  }

  .rc-sec {
    padding: 40px 0;
  }

  .rc-card {
    max-width: calc(100% - 32px);
    padding: 36px 20px 42px;
  }

  .rc-card.is-done {
    padding-top: 60px;
    padding-bottom: 68px;
  }

  .rc-title {
    font-size: 26px;
  }

  .rc-sub {
    margin: 24px 0 18px;
    font-size: 15px;
  }

  .rc-grid {
    grid-template-columns: 1fr;
    row-gap: 22px;
  }

  .rc-field {
    height: 46px;
  }

  .rc-item.is-full {
    grid-column: auto;
  }

  .rc-submit {
    height: 46px;
    margin-top: 24px;
  }

  .rc-success-title {
    font-size: 26px;
  }

  .rc-success-tip {
    font-size: 15px;
  }

  .rc-file-label {
    margin-right: 8px;
  }
}
