@charset "utf-8";

/* ============================================================
   job.css — 加入我们（参考砺星 join，红色主题）
   ============================================================ */

.page-job .site-header {
  background: #fff;
  border-bottom: 1px solid var(--c-line);
}

.page-job .site-wrap {
  width: var(--site-width-pct);
  max-width: var(--site-max-width);
}

/* ---------- Intro（对齐砺星 join-ab） ---------- */
.job-main {
  background: #fff;
}

.job-intro {
  padding: 6.25vw 0 0;
}

.job-intro__ab {
  display: flex;
  align-items: flex-start;
  font-size: 0;
}

.job-intro__text {
  width: 53.8%;
  padding-right: 5.2vw;
  box-sizing: border-box;
}

.job-intro__text h2 {
  margin: 0;
  font-size: clamp(22px, 2.08333vw, 40px);
  font-weight: 700;
  line-height: 1.45;
  color: #1a1a1a;
}

.job-intro__line {
  display: block;
  width: 2.1vw;
  min-width: 28px;
  height: 3px;
  margin-top: 2.1vw;
  background: var(--c-accent, #c8102e);
}

.job-intro__desc {
  margin-top: 2.5vw;
}

.job-intro__desc p {
  margin: 0 0 1.1em;
  font-size: clamp(14px, 1.04166vw, 18px);
  line-height: 1.9;
  color: #999;
}

.job-intro__desc p:last-child {
  margin-bottom: 0;
}

/* ---------- 全屏配图（替代原人才理念轮播） ---------- */
.job-banner {
  position: relative;
  width: 100%;
  height: 41.66vw;
  min-height: 320px;
  max-height: 720px;
  margin-top: 6.25vw;
  overflow: hidden;
  background: #1a1a1a;
}

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

.job-intro__pic {
  width: 46.2%;
  margin: 0;
  border-radius: 1.5vw;
  overflow: hidden;
  background: #f5f5f5;
}

.job-intro__pic img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  transition: transform .6s ease;
}

.job-intro__pic:hover img {
  transform: scale(1.04);
}

/* ---------- 厂房环境（对齐砺星 join-e 图库） ---------- */
.job-env {
  padding: 10vw 0 0;
}

.job-env__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 3px solid #f0f0f0;
}

.job-env__title {
  position: relative;
  display: inline-block;
  padding-bottom: 1.56vw;
  font-size: clamp(22px, 2.08333vw, 40px);
  font-weight: 700;
  line-height: 1;
  color: #1a1a1a;
}

.job-env__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 3px;
  background: var(--c-accent, #c8102e);
}

.job-env__arrows {
  width: 3.2vw;
  min-width: 50px;
  height: 2.1vw;
  min-height: 30px;
  margin-bottom: 1.2vw;
  display: flex;
  justify-content: space-between;
}

.job-env__prev,
.job-env__next {
  width: 1.5vw;
  min-width: 20px;
  height: 100%;
  cursor: pointer;
  opacity: .45;
  background: no-repeat center;
  background-size: 1vw auto;
  transition: opacity .25s ease;
}

.job-env__prev {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23999' stroke-width='1.5' d='M10 3L5 8l5 5'/%3E%3C/svg%3E");
}

.job-env__next {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23999' stroke-width='1.5' d='M6 3l5 5-5 5'/%3E%3C/svg%3E");
}

.job-env__prev:hover,
.job-env__next:hover {
  opacity: 1;
}

.job-env__viewport {
  margin-top: 4.1vw;
  overflow: hidden;
}

.job-env__track {
  display: flex;
  gap: 1.2vw;
  transition: transform .55s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}

.job-env__item {
  position: relative;
  flex: 0 0 calc((100% - 2.4vw) / 3);
  margin: 0;
  height: 20.3vw;
  min-height: 180px;
  max-height: 360px;
  border-radius: 1vw;
  overflow: hidden;
  background: #eee;
}

.job-env__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}

.job-env__item:hover img {
  transform: scale(1.06);
}

.job-env__shade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45%;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .45) 100%);
  pointer-events: none;
  z-index: 1;
}

.job-env__item figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  width: 100%;
  padding: 1.5vw 2.1vw;
  box-sizing: border-box;
  margin: 0;
  font-size: clamp(14px, 1.5625vw, 28px);
  color: #fff;
  line-height: 1.3;
}

/* ---------- Jobs accordion ---------- */
.job-section__head {
  margin-bottom: clamp(24px, 3vw, 36px);
}

.job-section__head span {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--c-accent, #c8102e);
}

.job-section__head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  color: #1a1a1a;
}

.job-section__head p {
  margin: 12px 0 0;
  font-size: 14px;
  color: #888;
}

.job-jobs {
  padding: clamp(48px, 6vw, 88px) 0 clamp(72px, 8vw, 110px);
}

.job-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.job-item {
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.job-item.is-open {
  border-color: rgba(200, 16, 46, .35);
  box-shadow: 0 10px 28px rgba(200, 16, 46, .08);
}

.job-item__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  text-align: left;
  cursor: pointer;
}

.job-item__title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  transition: color .25s var(--ease);
}

.job-item__desc {
  margin: 0;
  font-size: 13px;
  color: #999;
}

.job-item__toggle {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  position: relative;
  border-radius: 50%;
  background: #f5f5f5;
}

.job-item__toggle::before,
.job-item__toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: #666;
  transition: transform .25s var(--ease), background .25s var(--ease);
}

.job-item__toggle::before {
  width: 12px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.job-item__toggle::after {
  width: 2px;
  height: 12px;
  transform: translate(-50%, -50%);
}

.job-item.is-open .job-item__toggle {
  background: rgba(200, 16, 46, .1);
}

.job-item.is-open .job-item__toggle::before,
.job-item.is-open .job-item__toggle::after {
  background: var(--c-accent, #c8102e);
}

.job-item.is-open .job-item__toggle::after {
  transform: translate(-50%, -50%) scaleY(0);
}

.job-item.is-open .job-item__title,
.job-item__head:hover .job-item__title {
  color: var(--c-accent, #c8102e);
}

.job-item__body[hidden] {
  display: none !important;
}

.job-item__content {
  padding: 0 24px 24px;
  font-size: 14px;
  line-height: 1.85;
  color: #555;
  border-top: 1px solid #f0f0f0;
}

.job-item__content p {
  margin: 14px 0 8px;
}

.job-item__content ul {
  margin: 0;
  padding-left: 1.2em;
  list-style: disc;
}

.job-item__content li {
  margin: 4px 0;
}

.job-item__content strong {
  color: #1a1a1a;
}

.job-empty {
  margin: 0;
  padding: 48px 0;
  text-align: center;
  color: #999;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 960px) {
  .job-intro__ab {
    flex-direction: column;
  }

  .job-intro__text,
  .job-intro__pic {
    width: 100%;
  }

  .job-intro__text {
    padding-right: 0;
    margin-bottom: 28px;
  }

  .job-env__item {
    flex: 0 0 calc((100% - 1.2vw) / 2);
    height: 36vw;
  }

  .job-banner {
    height: 56vw;
    max-height: none;
  }
}

@media (max-width: 640px) {
  .job-env__item {
    flex: 0 0 100%;
    height: 56vw;
  }

  .job-item__head {
    padding: 18px 16px;
  }

  .job-item__content {
    padding: 0 16px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .job-env__item img,
  .job-env__track,
  .page-hero__scroll-bar::after,
  .job-item__toggle::before,
  .job-item__toggle::after {
    transition: none;
    animation: none;
  }
}
