.first-swiper,
.first-swiper-item,
.first-swiper-container {
  width: 100vw;
  height: 100vh;
  margin: auto;
}
.first-swiper-container {
}

.first-swiper-item {
  position: relative;
  /* -webkit-background-size: 100% 100%; */
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.first-swiper-item .first-box {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: absolute;
  transform: translate(-50%, 0%);
  left: 50%;
  top: 10%;
  z-index: 1;
}

.first-swiper-item .first-box-item {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transform-origin: center top;
}

.first-swiper-item.campus-banner .first-box {
  left: 34.2%;
  top: calc(1.4% + 70px);
}

.first-swiper-item.campus-banner .first-slogan {
  display: block;
  width: 1024px;
}

.first-swiper-item.campus-banner .first-title {
  display: block;
  position: relative;
  left: -48px;
  margin-top: 15px;
  width: 650px;
}

.first-swiper-item.campus-banner .first-center-btn {
  display: block;
  position: relative;
  left: 278px;
  margin-top: 522px;
}

.first-swiper-item.campus-banner .first-center-btn img {
  display: block;
  width: 345px;
}

.first-swiper-item.operations .first-box {
  top: 50%;
  right: 130px;
  left: unset;
  transform-origin: right;
  transform: translate(calc(0%), calc(-50% + 60px)) scale(0.8);
}

.first-swiper-item.plan .first-box {
  top: 79%;
  left: 25%;

  transform: translate(calc(-50%), calc(-50%));
}

.first-swiper-item.new-banner .first-box {
  top: 50%;
  left: 6%;
  transform: translate(0, -50%);
}

.first-swiper-item.new-banner .first-box-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform-origin: left center;
}

.first-swiper-item.new-banner .new-banner-text1 {
  display: block;
  /* margin-bottom: 20px; */
  opacity: 0;
  transform: translateY(20px);
  width: 700px;
}

.first-swiper-item.new-banner .new-banner-text1.fadeIn-active {
  animation: fadeIn 0.9s 0.1s 1 forwards;
}

.first-swiper-item.new-banner .new-banner-text2 {
  display: block;
  /* margin-bottom: 30px; */
  opacity: 0;
  transform: translateY(20px);
  margin-left: 90px;
  margin-top: -33px;
  width: 520px;
}

.first-swiper-item.new-banner .new-banner-text2.fadeIn-active {
  animation: fadeIn 0.9s 0.3s 1 forwards;
}

.first-swiper-item.new-banner .new-banner-btn-link {
  display: inline-block;
  margin-left: 170px;
  opacity: 0;
  transform: translateY(20px);
}

.first-swiper-item.new-banner .new-banner-btn-link.fadeIn-active {
  animation: fadeIn 1s 0.6s 1 forwards;
}

.first-swiper-item.new-banner .new-banner-btn {
  cursor: pointer;
  display: block;
  transition: transform 0.3s ease;
  width: 370px;
}

.first-swiper-item.new-banner .new-banner-btn:hover {
  transform: scale(1.15);
}

/* 暂时屏蔽：原三张轮播图按顺序绑定背景，恢复全部轮播项时可取消注释 */
/*
.first-swiper-item:nth-child(1) {
  background-image: url('/campus-assets/pic/re/cms/campus/portal/202402/images/first-plan.jpg');
}

.first-swiper-item:nth-child(2) {
  background-image: url('/campus-assets/pic/re/cms/campus/portal/202402/images/section1-bg.jpg');
}

.first-swiper-item:nth-child(3) {
  background-image: url('/campus/images/new-banner-bg.png');
}
*/

.first-swiper-item:nth-child(1) {
  background-image: url('/campus-assets/pic/re/cms/campus/portal/202402/images/section1-bg.jpg');
}

.first-swiper-item:nth-child(2) {
  background-image: url('/campus/images/new-banner-bg.png');
}

/* 当前仅展示中间的校园招聘轮播图，使用类名绑定背景以避免序号变化 */
/* .first-swiper-item.campus-banner {
  background-image: url('/campus-assets/pic/re/cms/campus/portal/202402/images/section1-bg.jpg');
} */

.first-swiper-prev,
.first-swiper-next {
  position: absolute;
  top: 50%;
  z-index: 10;
  cursor: pointer;
  width: 80px;
}

.first-swiper-prev {
  left: 30px;
}

.first-swiper-next {
  right: 30px;
}

.first-swiper-item .first-slogan {
  animation: left 1s 0.2s 1 backwards;
}

.first-swiper-item .first-title {
  animation: left 1s 0.4s 1 backwards;
}

.first-swiper-item .first-center-btn {
  animation: bottom 1s 0.6s 1 backwards;
  transition: transform 0.3s;
}
.first-swiper-item .first-center-btn:hover {
  transform: scale(1.1);
}

.first-swiper-item .first-btn {
  cursor: pointer;
  z-index: 12;
  width: 3rem;
  transition: transform 0.3s;
}

.first-swiper-item.operations .first-btn {
  margin-top: 40px;
}

.first-swiper-item.plan .first-btn {
  /* margin-top: 40px; */
}

.first-swiper-item .first-star {
  position: absolute;
  left: 45%;
  top: 18%;
  cursor: pointer;
  z-index: 30;
  width: 1rem;
  transition: filter 0.3s;
  animation: star 1s 1s backwards, glow 3s 2s linear infinite alternate;
  /* background: #222922; */
  filter: drop-shadow(rgba(255, 255, 255, 0) 0px 0px 8px);
}
.first-swiper-item .first-star:hover {
  filter: drop-shadow(rgb(249, 254, 184) 0px 0px 8px);
}

@keyframes star {
  0% {
    transform: scale(0);
    animation-timing-function: ease-in;
    opacity: 0;
  }
  38% {
    transform: scale(1);
    animation-timing-function: ease-out;
    opacity: 1;
  }
  55% {
    transform: scale(0.66);
    animation-timing-function: ease-in;
  }
  72% {
    transform: scale(1);
    animation-timing-function: ease-out;
  }
  81% {
    transform: scale(0.8);
    animation-timing-function: ease-in;
  }
  89% {
    transform: scale(1);
    animation-timing-function: ease-out;
  }
  95% {
    transform: scale(0.95);
    animation-timing-function: ease-in;
  }
  100% {
    transform: scale(1);
    animation-timing-function: ease-out;
  }
}
@keyframes glow {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(10px, 10px) scale(0.9);
  }
  60% {
    opacity: 0.6;
  }
  70% {
    opacity: 1;
  }
  100% {
    transform: translate(20px, 0) scale(1);
  }
}

@keyframes left {
  0% {
    transform: translate(100px);
    opacity: 0;
  }
}

@keyframes bottom {
  0% {
    transform: translate(0, 30px);
    opacity: 0;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.first-swiper-item .first-btn:hover {
  transform: scale(1.1);
}

.first-swiper-item:nth-child(1) .first-btn {
  left: 18%;
  top: 75%;
  width: 18rem;
}
.part-title {
  margin-bottom: 5vh;
}

.part1-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  height: 500px;
}
.part1-box:hover .part1-box-item {
  width: 450px;
  height: 400px;
  color: #505050;
  background-position-y: 0;
}
.part1-box-item {
  width: 450px;
  height: 400px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  box-sizing: border-box;

  align-items: center;
  flex-direction: column;
  color: #505050;
  font-size: 24px;
  transition: all 0.3s;
  cursor: pointer;
  padding: 40px 40px 30px;
  background: linear-gradient(
    to bottom,
    rgb(255, 237, 214),
    rgb(255, 237, 214) 33%,
    rgb(254, 132, 43) 66%,
    rgb(254, 132, 43),
    rgb(253, 177, 65)
  );
  background-size: 100% 300%;
  background-position-y: 0;
}

.part1-box-item:nth-child(2) {
  width: 500px;
  height: 500px;
  color: #fff;
  background-position-y: 100%;
}

.part1-box .part1-box-item:hover {
  width: 500px;
  height: 500px;
  color: #fff;
  background-position-y: 100%;
}

.part1-box-title {
  font-size: 38px;
  font-weight: bold;
  width: 100%;
  line-height: 1.5;
}

.part1-box-text {
  flex: 1;
  font-size: 20px;
  line-height: 1.5;
  width: 100%;
  margin-top: 40px;
}

.part1-box-btn::after {
  content: '';
  box-sizing: border-box;
  width: 15px;
  height: 15px;
  border: solid #fe8c23;
  border-width: 0 3px 3px 0;
  transform: rotate(-45deg);
}

.part1-box-btn {
  width: 200px;
  height: 50px;
  border-radius: 50px;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fe8c23;
  font-weight: bold;
}

.part2-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-direction: column;
}
.part2-list {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}
.part2-item {
  width: 30%;
  background-image: url('/campus-assets/pic/re/cms/campus/portal/202402/images/title-part2-item.png');
  height: 100px;
  padding: 20px 40px;
  box-sizing: border-box;
  background-size: 100%;
  border-radius: 24px;
  color: #fff;
  font-size: 26px;
  font-weight: bold;
  cursor: pointer;
  position: relative;
}
.part2-item > a {
  width: 100%;
  height: 100%;
  display: inline-block;
  position: absolute;
}
.part2-item span {
  line-height: 1;
  transition: line-height 0.3s;
}

.part2-item span::after {
  position: absolute;
  top: 50px;
  left: 40px;
  z-index: 0;
  margin-top: 10px;
  content: '查看岗位>>';
  display: block;
  font-size: 18px;
  font-weight: 200;
  transition: transform 0.3s;
}
.part2-item:hover span {
  line-height: 2.5;
}
.part2-item:hover span::after {
  transform: translate(200px, -30px);
}

.g-slide-box {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  transform-origin: center center;
  height: 100%;
}
@media (max-height: 1080px) {
  .first-box-item {
    transform: scale(1);
  }
  .g-slide-box {
    transform: scale(1);
  }
}
@media (max-height: 900px) {
  .first-box-item {
    transform: scale(0.8);
  }
  .g-slide-box {
    transform: scale(0.9);
  }
}
@media (max-height: 800px) {
  .first-box-item {
    transform: scale(0.7);
  }
  .g-slide-box {
    transform: scale(0.9);
  }
}
@media (max-height: 700px) {
  .first-box-item {
    transform: scale(0.7);
  }
  .g-slide-box {
    transform: scale(0.75);
  }
}
@media (max-height: 600px) {
  .first-box-item {
    transform: scale(0.65);
  }
  .g-slide-box {
    transform: scale(0.65);
  }
}
@media (max-height: 500px) {
  .first-box-item {
    transform: scale(0.6);
  }
  .g-slide-box {
    transform: scale(0.6);
  }
}
