/* 1. 定义全局CSS变量，方便JS读取和统一管理 */
:root {
  --banner-font-size: 16px; /* 字体大小（用作间距） */
  --transition-duration: 0.6s; /* 动画持续时间 */
  --wave-delay-step: 0.1s; /* 波浪动画的延迟步长 */
}

.fifth-page {
  background: linear-gradient(
      252.6deg,
      rgba(255, 255, 255, 0) 23.06%,
      #ffffff 57.48%
    ),
    linear-gradient(63.73deg, rgba(0, 0, 0, 0) 67.41%, rgba(0, 0, 0, 0.2) 73.8%),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #f5f5f5 100%);
  padding-left: 6em;
  padding-top: 2em;
  padding-bottom: 2em;
  position: relative;
}
.fifth-page-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  transform: translateX(25%) translateY(-25%);
  transition: background-image var(--transition-duration) ease-in-out;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}
.fifth-head {
  width: 100%;
  height: 10%;
  display: flex;
  align-items: flex-end;
  padding: 0.5em;
}
.fifth-head h1 {
  color: #000;
  font-size: 2em;
  font-weight: bold;
}
.fifth-head span {
  font-size: 1.2em;
  color: #848484;
}
.fifth-content {
  width: 100%;
  height: 90%;
  padding: 2em 0;
}
.fifth-banner {
  width: 100%;
  height: 55%;
  padding-left: 6em;
  display: flex;
  align-items: center;
}

.fifth-banner-imgs {
  width: 100%;
  position: relative;
  overflow: hidden;
}
.fifth-banner-img {
  position: absolute;
  top: 0;
  height: 100%;

  /* overflow: hidden; */
  transition: transform var(--transition-duration) ease-in-out;
  will-change: transform;
  text-decoration: none;
}

.fifth-banner-img img {
  width: 100%;
  height: 100%;
  overflow: hidden;
  object-fit: cover;
  pointer-events: none; /* 防止图片干扰点击事件 */
  user-select: none;
  z-index: 1;
  border-radius: 1em;
}

.fifth-banner-img p {
  position: absolute;
  top: calc(100% + 0.5rem);
  bottom: -3.5rem;
  left: 0;
  right: 0;
  padding: 0 0.5rem;
  font-size: 1rem;
  line-height: 1.5rem;
  color: #767676;
  z-index: -1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: font-weight 0.3s ease-in-out;
  overflow: hidden;
}

.fifth-banner-dots {
  width: 20%;
  height: 100%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}
.fifth-banner-dots .dot {
  width: 2em;
  height: 2em;
  border-radius: 50%;
  border: 0.1em solid rgba(189, 189, 189, 1);
  /* margin: 0 1em; */
  cursor: pointer;
  position: relative;
}
.fifth-banner-dots .dot::after {
  position: absolute;
  top: 50%;
  left: 50%;
  content: '';
  display: block;
  width: 1.2em;
  height: 1.2em;
  line-height: 1.2em;
  text-align: center;
  border-radius: 50%;
  background-color: rgba(189, 189, 189, 1);
  transform: translate(-50%, -50%);
}
.fifth-banner-dots .active {
  transform: scale(1.2);
  transform-origin: center center;
  border: 0.1em solid transparent;
  background: linear-gradient(white, white) padding-box,
    linear-gradient(85.43deg, #c875f0 -6.33%, #4a6cf7 90.46%) border-box;
}
.fifth-banner-dots .active::after {
  content: attr(data-index);
  background: linear-gradient(85.43deg, #c875f0 -6.33%, #4a6cf7 90.46%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-color: transparent;
}

.fifth-headline {
  width: 50%;
  height: 50%;
  padding-left: 6em;
  padding-right: 1em;
}

.fifth-headline-title {
  font-size: 1.5em;
  margin-bottom: 0.5em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: font-weight 0.3s ease-in-out;
  overflow: hidden;
}
.fifth-headline-separate {
  display: inline-block;
  width: 100%;
  height: min(0.1em, 1px);
  background-color: rgba(112, 112, 112, 1);
  margin: 0.5em 0;
}
.fifth-headline-content {
  color: rgba(44, 44, 52, 1);
  line-height: 1.5em;
}
@media (max-width: 1024px) {
  .fifth-headline-content {
    line-height: 1.2em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }
}
.fifth-headline .more {
  margin-top: 1em;
  width: 5.5em;
  height: 1em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
}
.fifth-headline .more span {
  background: linear-gradient(85.43deg, #c875f0 -6.33%, #4a6cf7 90.46%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1em;
}
.fifth-headline .more img {
  width: auto;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .fifth-page {
    height: auto;
    padding: 1rem !important;
    padding-top: 12rem !important;
    background: linear-gradient(
        228.03deg,
        rgba(255, 255, 255, 0) -3.82%,
        #f5f5f5 51.08%
      ),
      linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #f5f5f5 100%);
  }
  .fifth-headline {
    width: 100%;
    padding-left: 1rem;

    min-height: 16rem;
  }
  .fifth-banner {
    flex-direction: column-reverse;
    /* padding-left: 0; */
    padding: 2rem 0;
  }
  .fifth-banner-dots {
    width: 100%;
    justify-content: center;
    gap: 2rem;
  }
  .fifth-page-bg {
    transform: translateX(0%) translateY(-25%);
  }
}