/* ========================================
   Careers 页面专用样式
   全局导航 / 页脚样式见 css/styles.css
   ======================================== */

.careers-page {
  padding-top: var(--header-height);
  background: var(--color-white);
}

.careers-page .section-spaced {
  padding-top: 100px;
}

.careers-page .section-spaced > .container:first-of-type {
  padding-bottom: 100px;
}

.careers-banner {
  width: 100%;
  height: 550px;
  background-image: url('../assets/images/careers/banner.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.careers-banner-inner {
  max-width: 960px;
  padding: 0 24px;
  text-align: center;
}

.careers-banner-title {
  margin: 0 0 24px;
  font-size: 46px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.careers-banner-subtitle {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  color: #fff;
  line-height: 1.65;
}

/* ========== How We Work ========== */
.careers-how {
  background: var(--color-white);
}

.careers-how-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 616px;
  gap: 48px;
  align-items: start;
  margin-bottom: 80px;
}

.careers-how-title {
  margin: 0 0 16px;
  font-size: 40px;
  font-weight: 400;
  color: #222;
  line-height: 1.25;
}

.careers-how-accent {
  width: 80px;
  height: 2px;
  margin-bottom: 36px;
  background: #0982e5;
}

.careers-how-text {
  margin: 0;
  max-width: 560px;
  font-size: 16px;
  font-weight: 400;
  color: #444;
  line-height: 1.75;
}

.careers-how-media {
  width: 616px;
  height: 410px;
  max-width: 100%;
  flex-shrink: 0;
  justify-self: end;
}

.careers-how-media img {
  display: block;
  width: 616px;
  height: 410px;
  max-width: 100%;
  object-fit: cover;
}

.careers-how-traits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.careers-trait-title {
  margin: 0 0 16px;
  font-size: 26px;
  font-weight: 700;
  color: #015fcb;
  line-height: 1.4;
}

.careers-trait-text {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  color: #444;
  line-height: 1.75;
}

/* ========== How We Hire ========== */
.careers-hire {
  background: var(--color-white);
}

.careers-hire-header {
  text-align: center;
  margin-bottom: 72px;
}

.careers-hire-title {
  margin: 0 0 16px;
  font-size: 40px;
  font-weight: 400;
  color: #222;
  line-height: 1.25;
}

.careers-hire-accent {
  width: 80px;
  height: 2px;
  margin: 0 auto;
  background: #0982e5;
}

.careers-hire-flow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  margin: 0 auto;
  gap: 0;
}

.careers-hire-step {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 300px;
  height: 327px;
  text-align: center;
  flex-shrink: 0;
}

.careers-hire-step-icon {
  display: block;
  width: 180px;
  height: 180px;
  flex-shrink: 0;
  object-fit: contain;
}

.careers-hire-step-title {
  margin: 24px 0 12px;
  font-size: 22px;
  font-weight: 400;
  color: #3e3e44;
  line-height: 1.4;
}

.careers-hire-step-text {
  margin: 0;
  width: 100%;
  font-size: 16px;
  font-weight: 400;
  color: #444;
  line-height: 1.6;
}

.careers-hire-arrow {
  display: block;
  width: 64px;
  height: 60px;
  margin-top: 60px;
  flex-shrink: 0;
  object-fit: contain;
}

/* ========== Advantage ========== */
.careers-advantage {
  background: var(--color-white);
}

.careers-advantage-header {
  text-align: center;
  margin-bottom: 72px;
}

.careers-advantage-title {
  margin: 0 0 16px;
  font-size: 40px;
  font-weight: 400;
  color: #222;
  line-height: 1.25;
}

.careers-advantage-accent {
  width: 80px;
  height: 2px;
  margin: 0 auto;
  background: #0982e5;
}

.careers-advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, 466px);
  justify-content: space-between;
  row-gap: 56px;
  width: 100%;
}

.careers-advantage-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 466px;
  height: 327px;
  text-align: center;
}

.careers-advantage-icon {
  display: block;
  width: 180px;
  height: 150px;
  flex-shrink: 0;
  object-fit: contain;
}

.careers-advantage-card-title {
  margin: 24px 0 12px;
  font-size: 22px;
  font-weight: 400;
  color: #3e3e44;
  line-height: 1.4;
}

.careers-advantage-card-text {
  margin: 0;
  width: 100%;
  font-size: 16px;
  font-weight: 400;
  color: #444;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .careers-banner {
    height: 360px;
  }

  .careers-banner-title {
    margin-bottom: 16px;
    font-size: 32px;
  }

  .careers-banner-subtitle {
    font-size: 16px;
  }

  .careers-how-top {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 56px;
  }

  .careers-how-title {
    font-size: 32px;
  }

  .careers-how-media {
    width: 100%;
    height: auto;
    justify-self: stretch;
  }

  .careers-how-media img {
    width: 100%;
    height: auto;
    aspect-ratio: 616 / 410;
  }

  .careers-how-traits {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .careers-trait-title {
    font-size: 22px;
  }

  .careers-hire-header {
    margin-bottom: 48px;
  }

  .careers-hire-title {
    font-size: 32px;
  }

  .careers-hire-flow {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 32px;
    max-width: 100%;
  }

  .careers-hire-step {
    width: 300px;
    max-width: 100%;
    height: auto;
    min-height: 327px;
  }

  .careers-hire-arrow {
    margin-top: 0;
    transform: rotate(90deg);
  }

  .careers-advantage-header {
    margin-bottom: 48px;
  }

  .careers-advantage-title {
    font-size: 32px;
  }

  .careers-advantage-grid {
    grid-template-columns: 1fr;
    justify-content: center;
    row-gap: 40px;
  }

  .careers-advantage-card {
    width: 100%;
    max-width: 466px;
    height: auto;
    min-height: 327px;
    margin: 0 auto;
  }
}

@media (max-width: 1200px) and (min-width: 769px) {
  .careers-how-top {
    grid-template-columns: 1fr;
  }

  .careers-how-media {
    justify-self: start;
  }

  .careers-how-traits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .careers-hire-flow {
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px 0;
  }

  .careers-hire-arrow {
    margin-top: 60px;
  }

  .careers-advantage-grid {
    grid-template-columns: repeat(2, 466px);
    justify-content: center;
    gap: 40px 32px;
  }
}
