.careers-page {
  --careers-blue: #0067c8;
  --careers-ink: #181b20;
  --careers-muted: #666b73;
  background: #fff;
  color: var(--careers-ink);
}

.careers-hero {
  height: clamp(340px, 41vw, 790px);
  background: url("../assets/join-banner.png") center / cover no-repeat;
}

.page-section { padding: 104px 0; }
.careers-inner { width: 1480px; max-width: calc(100% - 120px); margin: 0 auto; }
.careers-inner--wide { width: 1680px; }
.careers-title { margin: 0 0 70px; text-align: center; font-size: 42px; line-height: 1.2; font-weight: 700; letter-spacing: 1px; }

.careers-jobs { background: #f7f7f7; }
.careers-job-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 46px 48px; }
.careers-job-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 460px;
  overflow: hidden;
  padding: 42px 38px 26px;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(24, 42, 70, .04);
  transition: transform .3s ease, box-shadow .3s ease, background-color .3s ease, color .3s ease;
}
.careers-job-card::after { content: ""; position: absolute; top: 148px; right: 38px; width: 1px; height: 210px; background: #c8cdd3; }
.careers-job-card::before { content: ""; position: absolute; z-index: 2; top: 142px; right: 33px; width: 11px; height: 11px; border-radius: 50%; background: var(--careers-blue); }
.careers-job-card:hover { transform: translateY(-5px); box-shadow: 0 22px 50px rgba(24, 42, 70, .1); }
.careers-job-card:focus-visible { outline: 3px solid rgba(0, 103, 200, .4); outline-offset: 3px; }
.careers-job-card h2 { margin: 0 0 22px; font-size: 22px; line-height: 1.35; font-weight: 700; }
.careers-job-title-link { color: inherit; text-decoration: none; }
.careers-job-title-link:hover, .careers-job-title-link:focus-visible { color: var(--careers-blue); }
.careers-job-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; padding-bottom: 25px; color: #4f555d; font-size: 14px; }
.careers-job-meta span { position: relative; padding-left: 20px; }
.careers-job-meta span::before { position: absolute; left: 0; top: 0; color: #2d333b; font-size: 13px; }
.careers-job-meta .meta-location::before { content: "⌖"; }
.careers-job-meta .meta-education::before { content: "◇"; }
.careers-job-meta .meta-headcount::before { content: "♙"; }
.careers-job-copy {
  flex: 1 1 auto;
  min-height: 0;
  padding-right: 22px;
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--careers-muted);
  font-size: 14px;
  line-height: 1.85;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.careers-job-copy::-webkit-scrollbar { display: none; width: 0; height: 0; }
.careers-job-copy:focus-visible { outline: 2px solid rgba(0, 103, 200, .35); outline-offset: 3px; }
.careers-job-copy h3 { margin: 12px 0 7px; color: #272b31; font-size: 15px; font-weight: 700; }
.careers-job-text { white-space: pre-line; }
.careers-job-copy p, .careers-job-copy ol, .careers-job-copy ul { margin: 0; }
.careers-job-copy ol, .careers-job-copy ul { padding-left: 20px; }
.careers-card-delivery {
  flex: 0 0 auto;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 3px solid var(--careers-blue);
  color: #2c333b;
  font-size: 14px;
  line-height: 1.6;
}
.careers-card-delivery a { color: #2c333b; overflow-wrap: anywhere; }
.careers-card-delivery a:hover { color: var(--careers-blue); }
.careers-job-card:hover,
.careers-job-card:focus-within {
  color: #fff;
  background: linear-gradient(145deg, #0759b7 0%, #0875dc 100%);
}
.careers-job-card:hover::after,
.careers-job-card:focus-within::after { background: rgba(255, 255, 255, .5); }
.careers-job-card:hover::before,
.careers-job-card:focus-within::before { background: #fff; }
.careers-job-card:hover .careers-job-title-link,
.careers-job-card:focus-within .careers-job-title-link,
.careers-job-card:hover .careers-job-meta,
.careers-job-card:focus-within .careers-job-meta,
.careers-job-card:hover .careers-job-meta span::before,
.careers-job-card:focus-within .careers-job-meta span::before,
.careers-job-card:hover .careers-job-copy,
.careers-job-card:focus-within .careers-job-copy,
.careers-job-card:hover .careers-job-copy h3,
.careers-job-card:focus-within .careers-job-copy h3,
.careers-job-card:hover .careers-card-delivery,
.careers-job-card:focus-within .careers-card-delivery,
.careers-job-card:hover .careers-card-delivery a,
.careers-job-card:focus-within .careers-card-delivery a { color: #fff; }
.careers-job-card:hover .careers-card-delivery,
.careers-job-card:focus-within .careers-card-delivery { border-top-color: rgba(255, 255, 255, .8); }
.careers-empty { grid-column: 1 / -1; padding: 70px 30px; text-align: center; color: var(--careers-muted); background: #fff; }

.careers-locations { padding-top: 120px; }
.locations-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 58px; }
.locations-heading .careers-title { margin: 0; text-align: left; }
.location-tabs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 16px 24px; }
.location-tabs button { position: relative; border: 0; padding: 6px 0; color: #252a31; font-size: 15px; background: transparent; cursor: pointer; }
.location-tabs button::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 0; height: 2px; background: var(--careers-blue); transition: left .2s ease, right .2s ease; }
.location-tabs button:hover, .location-tabs button.is-active { color: var(--careers-blue); }
.location-tabs button.is-active::after { left: 0; right: 0; }
.location-panel { position: relative; min-height: 485px; overflow: hidden; background: #eef0f2; }
.location-panel[hidden] { display: none; }
.location-panel > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.location-panel__veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(245, 246, 247, .98) 0%, rgba(245, 246, 247, .91) 28%, rgba(245, 246, 247, .42) 56%, rgba(245, 246, 247, .04) 78%); }
.location-panel__content { position: relative; z-index: 1; width: 51%; padding: 145px 60px 80px 110px; }
.location-panel__content h3 { margin: 0 0 42px; font-size: 28px; line-height: 1.4; font-weight: 500; }
.location-panel__content dl { margin: 0; color: #353b43; font-size: 15px; line-height: 1.9; }
.location-panel__content dl div + div { margin-top: 24px; }
.location-panel__content dt { margin-bottom: 4px; }
.location-panel__content dd { margin: 0; }

.careers-life { overflow: hidden; padding-top: 64px; padding-bottom: 116px; }
.careers-life .careers-title { margin-bottom: 58px; font-weight: 400; }
.careers-life .life-slider { position: relative; width: 1480px; max-width: 100%; height: 360px; margin: 0 auto; padding: 28px 78px 52px; overflow: visible; }
.careers-life .life-viewport { width: 1200px; max-width: 100%; height: 276px; margin: 0 auto; overflow: hidden; }
.careers-life .life-track { display: flex; width: 100%; height: 276px; margin: 0; border: 0; align-items: center; }
.careers-life .life-slide { flex-shrink: 0; height: 238px; overflow: hidden; opacity: .28; transform: scale(.88); transition: opacity .65s ease, transform .65s ease; }
.careers-life .life-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.careers-life .swiper-slide-active { z-index: 2; opacity: 1; transform: scale(1.28); }
.careers-life .life-slider button { position: absolute; top: 50%; z-index: 5; width: 64px; height: 100px; border: 0; color: #b9bdc2; font-size: 92px; line-height: 1; background: transparent; transform: translateY(-58%); cursor: pointer; transition: color .25s ease; }
.careers-life .life-slider button:hover { color: var(--careers-blue); }
.careers-life .life-prev { left: 0; }
.careers-life .life-next { right: 0; }

/* 企业风采使用独立的三槽轮播，避免少量图片触发 Swiper 的循环空位。 */
.careers-life .life-slider.is-custom-ready .life-track { position: relative; display: block; }
.careers-life .life-slider.is-custom-ready .life-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 33.333%;
  height: 224px;
  margin: 0 !important;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.88);
  transition: left .65s ease, width .65s ease, height .65s ease, opacity .65s ease, transform .65s ease;
}
.careers-life .life-slider.is-custom-ready .life-slide.is-previous { left: 20%; z-index: 1; opacity: .28; }
.careers-life .life-slider.is-custom-ready .life-slide.is-next { left: 80%; z-index: 1; opacity: .28; }
.careers-life .life-slider.is-custom-ready .life-slide.is-current {
  left: 50%;
  z-index: 2;
  width: 40%;
  height: 270px;
  opacity: 1;
  transform: translate(-50%, -50%);
}

@media (max-width: 1200px) {
  .careers-inner { max-width: calc(100% - 48px); }
  .careers-job-grid { gap: 24px; }
  .careers-job-card { padding: 34px 26px 24px; }
  .careers-job-card::after { right: 26px; }
  .careers-job-card::before { right: 21px; }
  .location-panel__content { padding-left: 64px; }
}

@media (max-width: 900px) {
  .page-section { padding: 72px 0; }
  .careers-title { margin-bottom: 44px; font-size: 34px; }
  .careers-job-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .locations-heading { display: block; }
  .locations-heading .careers-title { margin-bottom: 24px; }
  .location-tabs { justify-content: flex-start; }
  .location-panel__content { width: 68%; }
}

@media (max-width: 640px) {
  .careers-hero { height: 230px; }
  .careers-inner { width: 100%; max-width: none; padding: 0 16px; }
  .page-section { padding: 54px 0; }
  .careers-title { margin-bottom: 34px; font-size: 29px; }
  .careers-job-grid { grid-template-columns: 1fr; gap: 18px; }
  .careers-job-card { height: 460px; padding: 28px 22px 22px; }
  .careers-job-card::after { top: 126px; right: 22px; height: 190px; }
  .careers-job-card::before { top: 120px; right: 17px; }
  .careers-job-card h2 { font-size: 20px; }
  .careers-job-copy { padding-right: 18px; font-size: 14px; }
  .careers-card-delivery { font-size: 13px; }
  .locations-heading { margin-bottom: 30px; }
  .locations-heading .careers-title { margin-bottom: 18px; }
  .location-tabs { gap: 8px 18px; }
  .location-panel { min-height: 390px; }
  .location-panel__veil { background: linear-gradient(180deg, rgba(245,246,247,.95), rgba(245,246,247,.8) 58%, rgba(245,246,247,.3)); }
  .location-panel__content { width: 100%; padding: 58px 28px; }
  .location-panel__content h3 { margin-bottom: 34px; font-size: 23px; }
  .careers-life { padding: 48px 0 68px; }
  .careers-life .careers-title { margin-bottom: 28px; }
  .careers-life .life-slider {
    width: 100%;
    height: auto;
    padding: 0;
    overflow: hidden;
  }
  .careers-life .life-viewport,
  .careers-life .life-track {
    width: 100% !important;
    height: auto;
    aspect-ratio: 4 / 3;
  }
  .careers-life .life-slide {
    width: 100% !important;
    height: 100%;
    opacity: 1;
    transform: none;
    background: #eef1f4;
  }
  .careers-life .life-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .careers-life .swiper-slide-active { transform: none; }
  .careers-life .life-slider.is-custom-ready .life-slide,
  .careers-life .life-slider.is-custom-ready .life-slide.is-previous,
  .careers-life .life-slider.is-custom-ready .life-slide.is-next {
    left: 50%;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translate(-50%, -50%);
  }
  .careers-life .life-slider.is-custom-ready .life-slide.is-current {
    height: 100%;
    opacity: 1;
  }
  .careers-life .life-slider button {
    top: 50%;
    display: flex !important;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    margin: 0;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 50%;
    color: #fff;
    font-size: 34px;
    line-height: 1;
    background: rgba(0,40,92,.62);
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
    transform: translateY(-50%);
  }
  .careers-life .life-prev { left: 12px; }
  .careers-life .life-next { right: 12px; }
}
