* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  width: 100%;
  height: 100%;
  font-family: Arial, sans-serif;
}


/* Banner 部分 */
.esg-banner {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: url("https://cn.uniview.com/tres/images/2022/ESG/banner.jpg")
    no-repeat center center/cover;
  position: relative;
  color: white;
  text-align: center;
  padding: 5vw;
}

.esg-title {
  width: 60%;
  max-width: 1200px;
  text-align: center;
  font-size: clamp(50px, 6vw, 140px);
  font-weight: bold;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 4vh;
  margin-bottom: 3vh;
}

.esg-title span:first-child {
  align-self: flex-start;
}

.esg-title span:last-child {
  align-self: flex-end;
}

.esg-text-box {
  width: 60%;
  max-width: 1200px;
  padding: 5vh 5vw;
  background: rgba(93, 191, 211, 0.2);
  backdrop-filter: blur(5px);
  border-radius: 30px;
  font-size: clamp(16px, 1vw, 24px);
  line-height: 1.5;
  text-align: left;
  margin-top: 2vh;
}

/* 案例部分 */
.esg-cases {
  padding: 8vh 5vw;
  color: #2a4b5e;
}

.esg-box-header {
  text-align: center;
  margin-bottom: 3vh;
}

.esg-box-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: bold;
  margin-bottom: 2vh;
  letter-spacing: 40px;
  text-indent: 40px;
  color: rgba(93, 191, 211, 1);
}

.esg-box-subtitle {
  font-size: clamp(18px, 2vw, 28px);
  letter-spacing: 10px;
  text-indent: 10px;
  font-weight: 500;
  color: rgba(48, 48, 48, 1);
}

/* 轮播容器 */
.esg-carousel {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  padding: 0 50px;
}

.esg-carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  gap: 30px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.esg-carousel-track::-webkit-scrollbar {
  display: none;
}

/* 轮播项 */
.esg-carousel-item {
  flex: 0 0 calc(33.333% - 20px);
  scroll-snap-align: start;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 15px rgba(93, 191, 211, 0.1);
}

.esg-case-image {
  height: 380px;
  object-fit: cover;
  width: 100%;
  scale: 1.1;
}

/* 文字叠加层 */
.esg-case-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  min-height: 120px;
  justify-content: flex-end;
}

.esg-case-title {
  font-size: 1.4em;
  margin-bottom: 8px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 1.3em;
}

.esg-case-desc {
  font-size: 1em;
  line-height: 1.4;
  opacity: 0.9;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 2.8em;
}

/* 右上角图标 */
.esg-case-icon {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  z-index: 2;
  background: url("https://cn.uniview.com/tres/images/2022/ESG/icon-paw.png")
    no-repeat center/contain;
}

/* 导航按钮 */
.esg-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: none;
  color: #2a4b5e;
  font-size: 20px;
}

.esg-nav-prev {
  left: 0;
  transform: translate(-50%, -50%);
}

.esg-nav-next {
  right: 0;
  transform: translate(50%, -50%);
}

.esg-highlights {
  position: relative;
  border-radius: 20px;
  padding: 50px 5vw;
  text-align: center;
  color: white;
  margin: 8vh auto;
  max-width: 1200px;
  overflow: hidden;
}

.esg-highlights::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: rgba(93, 191, 211, 0.8);
  border-radius: 20px 20px 20px 20px;
  z-index: -1;
}

.esg-highlights-title {
  font-size: clamp(36px, 5vw, 48px);
  font-weight: bold;
  margin-bottom: 30px;
}

.esg-highlights-content {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.esg-highlight-box {
  flex: 1;
  background: rgb(255, 255, 255);
  border-radius: 15px;
  padding: 25px;
  text-align: left;
  color: black;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: relative;
}

.esg-highlight-box:nth-child(1)::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: url("https://cn.uniview.com/tres/images/2022/ESG/icon-dot1.png")
    no-repeat center/contain;
}

.esg-highlight-box:nth-child(2)::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: url("https://cn.uniview.com/tres/images/2022/ESG/icon-dot2.png")
    no-repeat center/contain;
}

.esg-highlight-box:nth-child(3)::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: url("https://cn.uniview.com/tres/images/2022/ESG/icon-dot3.png")
    no-repeat center/contain;
}

.esg-highlight-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  justify-content: center;
}

.esg-highlight-icon {
  width: 40px;
  height: auto;
}

.esg-highlight-title {
  font-size: 24px;
  font-weight: bold;
}

.esg-highlight-list {
  list-style: none;
  padding-left: 0;
}

.esg-highlight-list li {
  font-size: 18px;
  line-height: 1.6;
  position: relative;
  padding-left: 20px;
}

.esg-highlight-list li::before {
  content: "•";
  color: black;
  font-size: 20px;
  position: absolute;
  left: 0;
  top: 0;
}

.esg-button-container {
  display: flex;
  justify-content: center;
}

.esg-public-button {
  display: inline-block;
  background-color: rgba(93, 191, 211, 0.1);
  color: rgb(93, 191, 211);
  font-size: 24px;
  letter-spacing: 10px;
  text-indent: 10px;
  text-align: center;
  padding: 10px 40px;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.3s ease;
  margin-bottom: 30px;
}

.esg-public-button:hover {
  background-color: rgb(73, 171, 191);
  color: #f5fafb;
}

.esg-public-carousel-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
}

.esg-public-carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.esg-public-carousel-image {
  width: 500px;
  height: 330px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 8px;
}

.esg-public-m {
  display: none;
}

.esg-solutions {
  margin: 8vh auto;
}

.esg-solution-container {
  width: 80%;
  max-width: 1200px;
  margin: auto;
}

/* 统一盒子样式 */
.esg-solution-box {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 15px;
  overflow: hidden;
  text-decoration: none;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.esg-solution-box:hover {
  transform: scale(1.01);
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
  color: white;
}

/* 文字内容 */
.esg-solution-content {
  position: relative;
  z-index: 2;
}

.esg-solution-content h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 1em;
  letter-spacing: 8px;
  text-indent: 8px;
}

.esg-solution-content p {
  font-size: 16px;
}

/* 模糊背景 */
.esg-solution-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(4px);
  background: rgba(30, 131, 151, 0.1);
  z-index: 1;
}

/* PC 端布局 */
.esg-solution-large-box {
  width: 100%;
  height: 350px;
  margin-bottom: 20px;
}

.esg-solution-large-box h2 {
  font-size: 2em;
}

.esg-solution-large-box p {
  font-size: 18px;
}

.esg-solution-small-boxes {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

/* PC 端小盒子 */
.esg-solution-small-box {
  flex: 1;
  height: 350px;
}

.esg-certification {
  position: relative;
  max-width: 1500px;
  padding-bottom: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  background-image: url("https://cn.uniview.com/tres/images/2022/ESG/esg-bg-pc.png");
  background-size: contain;
  background-position: bottom;
  background-repeat: no-repeat;
  margin: 8vh auto;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .esg-solution-container {
    width: 90%;
  }

  .esg-solution-box {
    width: 100%;
    height: 250px;
    margin-bottom: 15px;
  }

  .esg-solution-small-boxes {
    display: flex;
    flex-direction: column;
    height: 780px;
    gap: 0px;
  }

  .esg-title {
    width: 90%;
    font-size: clamp(40px, 12vw, 100px);
    line-height: 1.5;
    letter-spacing: 10px;
    text-indent: 10px;
  }

  .esg-title span:first-child {
    align-self: center;
  }

  .esg-title span:last-child {
    align-self: center;
  }

  .esg-text-box {
    width: 90%;
    padding: 4vh 4vw;
    font-size: clamp(14px, 4vw, 20px);
  }

  .esg-carousel {
    padding: 0 30px;
  }

  .esg-carousel-item {
    flex: 0 0 80%;
  }

  .esg-case-content {
    min-height: 100px;
    padding: 15px;
  }

  .esg-case-image {
    height: 340px;
  }

  .esg-case-title {
    font-size: 1.2em;
  }

  .esg-case-desc {
    font-size: 0.9em;
  }

  .esg-carousel-nav {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .esg-highlights-title {
    font-size: 28px;
  }
  .esg-highlights::before {
    width: 80%;
    height: 100%;
    margin: 0 10%;
  }
  .esg-highlight-list {
    text-align: left;
  }

  .esg-highlights-content {
    flex-direction: column;
    gap: 15px;
  }

  .esg-highlight-box {
    text-align: center;
  }

  .esg-highlight-header {
    justify-content: center;
  }
.esg-highlight-list li{
  font-size: 16px;
  line-height: 2.6;
}



  .esg-public-carousel-container {
    padding: 0 20px; /* 添加左右边距 */
    display: none;
  }

  .esg-public-carousel {
    gap: 20px;
    margin: 0 auto;
    width: calc(100% - 40px); /* 减去左右边距 */
  }

  .esg-public-carousel-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 500/330; /* 保持图片比例 */
  }

  .esg-public-m {
    display: block;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
  }

  .esg-public-m-slider {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
  }

  .esg-public-m-slide {
    flex: 0 0 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .esg-public-m-slide img {
    width: 85%;
    height: auto;
    display: block;
    border-radius: 15px;
  }
  .esg-certification {
    background-image: url("https://cn.uniview.com/tres/images/2022/ESG/esg-bg-m.png");
    background-size: contain;
  }
  .esg-public-button {
    font-size: 14px;
    letter-spacing: 5px;
    text-indent: 5px;
    text-align: center;
    padding: 10px 30px;
  }


.esg-solution-large-box h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 1em;
    letter-spacing: 8px;
    text-indent: 8px;
}

.esg-solution-large-box p{
  font-size: 16px;
}
.esg-certification{
  margin-bottom: 0;
  background-size: 90%;
}

  .esg-certification .esg-public-button {
    display: inline-block;
    background-color: rgba(93, 191, 211, 0.1);
    color: rgb(93, 191, 211);
    font-size: 12px;
    padding: 10px 20px;
  }
}

/* PC端样式 - 显示2.5张图片 */
@media (min-width: 768px) {
  .esg-public-carousel-container {
    max-width: 1280px;
    padding: 0 calc((1280px - (500px * 2 + 250px + 20px)) / 2);
  }

  .esg-public-carousel {
    gap: 20px;
  }
}
