/* 在CSS文件最顶部添加字体声明 */
/* 在原有基础上添加以下配置 */
@font-face {
  font-family: "YouSheBiaoTiHei";
  src: url("../font/YouSheBiaoTiHei.ttf") format("truetype");
  font-display: swap;
  font-weight: 400;
  /* 明确字重 */
  unicode-range: U+0-FF;
  /* 按需加载中文字符 */
}

/* 基础布局重置 */
html,
body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  /* 禁用默认滚动 */
  width: 100%;
  height: 100%;
}

/* 滚动容器 */
.screen-container {
  position: relative;
  /*height: calc(100vh - 60px);*/
  height: 100vh;
  /* 修正高度计算 */
  padding-top: 60px;
  overflow-y: auto;
  /* scroll-behavior: smooth; */
  scroll-snap-type: y mandatory;

  overscroll-behavior: contain;
}

/* 单屏通用样式 */
.screen-section {
  position: relative;
  width: 100%;
  height: 100vh;
  scroll-snap-align: start;
  overflow: hidden;
  will-change: transform;
  transform: translateZ(0);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  /* 增加强制对齐 */
}

/* 轮播容器 */

.swiper-slide {
  position: relative;
  background: #f5f7fa;
  /* 备用背景色 */
}

.banner-inner {
  position: absolute;
  top: 23.06vh;
  /* 调整为相对于顶部的高度 */
  left: 15%;

  color: #fff;

  z-index: 2;
}
.banner-image {
  width: 100%;
}

.banner-inner h2 {
  font-size: 5.2vw;
  font-family: "YouSheBiaoTiHei";
  text-shadow: 5px 0px 20px #000000;
  font-style: normal;
  opacity: 0;
  transform: translateY(100%) rotateZ(0deg);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.active .banner-inner h2 {
  opacity: 1;
  transform: translateY(0) rotateZ(0deg);
}

.banner-inner h2 span {
  font-size: 7.8vw;
  font-family: "YouSheBiaoTiHei";
}

.banner-inner-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  position: relative;
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease-out;
  /* 改为transition方式 */
}

.active .swiper-slide-active .banner-inner-item {
  /* 增加激活类 */
  opacity: 1;
  transform: translateX(0);
}

/* 延迟设置修正 */
.active .swiper-slide-active .banner-inner-item:nth-child(1) {
  transition-delay: 0.3s;
}

.active .swiper-slide-active .banner-inner-item:nth-child(2) {
  transition-delay: 0.6s;
}

.active  .swiper-slide-active .banner-inner-item:nth-child(3) {
  transition-delay: 0.9s;
}

/* 延迟设置 */
.display-flex .banner-inner-item:nth-child(1) {
  animation-delay: 0.3s;
}

.display-flex .banner-inner-item:nth-child(2) {
  animation-delay: 0.6s;
}

.display-flex .banner-inner-item:nth-child(3) {
  animation-delay: 0.9s;
}

.banner-img {
  width: 179px;
  height: 179px;
  object-fit: contain;
  margin: 15px 0;
  transition: transform 0.3s ease;
}

.banner-inner .title-box {
  padding-top: 80px;
}
.title-box .title {
  font-size: 66px;
  color: #333333;
  font-weight: 600;
}

.banner-inner .title-desc {
  font-weight: 400;
  font-size: 34px;
  color: #333333;
  margin-top: 40px;
}

.banner-inner .item-box {
  display: flex;
  align-items: center;
 justify-content: space-between;
}
.item-box .banner-inner-item2 {
  display: flex;
  align-items: center;
  flex-direction: row;

  background: #127ee0;
  border-radius: 24px;
  border: 5px solid #ffffff;
  height: 59px;
  margin-top: 40px;
  font-weight: 600;
  font-size: 18px;
  color: #ffffff;
  padding: 0 20px;
  opacity: 0;
  transform: translateX(-100%);
  transition: all 0.8s ease-out;
  will-change: transform, opacity;
}

.active  .swiper-slide-active .banner-inner-item2{
   transform: translateX(0);
   opacity: 1;
}

.active .swiper-slide-active .banner-inner-item2:nth-child(1) {
  transition-delay: 0.2s;
}

.active .swiper-slide-active .banner-inner-item2:nth-child(2) {
  transition-delay: 0.5s;
}

.active .swiper-slide-active .banner-inner-item2:nth-child(3) {
  transition-delay: 0.8s;
}




.banner-inner-item2 img {
  width: 40px;
  height: 40px;
}

.inner-item-title {
  font-size: 1.26vw;
  color: #fff;
  font-weight: bold;
  text-align: center;
  line-height: 1.4;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.inner-item-text {
  font-size: 1.04vw;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  line-height: 1.5;
  margin-top: 15px;
}

/* 产品介绍页面样式 */

.product-intro {
  position: relative;
  background-color: #cfd3da;
  /* 备用背景色 */
}

.product-bg {
  position: absolute;
  width: 100%;
  height: 100%;


  z-index: 1;
}

.product-container {
  position: relative;
  z-index: 2;
  height: 100%;
  padding-top: 22vh;
  width: 73.95vw;
  margin: 0 auto;
}

/* 上半部分布局 */
.product-top {
  display: flex;
  justify-content: space-between;
}

.product-title {
  font-weight: 800;
  font-size: 3.12vw;
  color: #333333;
}

.product-info p {
  font-size: 1.04vw;
  color: #333;
  line-height: 29px;
  margin-top: 5px;
  text-transform: uppercase;
}

/* 特性列表 */
.feature-list {
  display: flex;
  flex-direction: column;
}

.feature-item {
  display: flex;
  align-items: center;
  /* padding: 1.5rem; */
  background: rgba(51, 51, 51, 0.1);
  /* 对应#333333 + 0.1透明度 */
  border-radius: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 12px;
  height: 40px;
}

.feature-icon {
  width: 20px;
  height: 20px;
  background: #08d8ae;
  border-radius: 50%;
  margin-left: 13px;
  margin-right: 13px;
}

.feature-text {
  font-size: 18px;
  color: #333333;
}

/* 产品图样式 */
.product-image {
  width: 28.28vw;
  height: 38.51vh;
}

.product-image img {
  width: 100%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-image:hover img {
  transform: scale(1.05) translateY(-5%);
}

/* 公式区样式 */
.formula-section {
  height: 30vh;
  margin-top: 5vh;
}

.formula-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
}

.formula-section .formula-item {
  text-align: center;
  width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;

  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.active .formula-section .formula-item {
  opacity: 1;
  transform: translateY(0);
}

.active .formula-item:nth-child(1) {
  transition-delay: 0.3s;
}

.active .formula-item:nth-child(3) {
  transition-delay: 0.5s;
}

.active .formula-item:nth-child(5) {
  transition-delay: 0.7s;
}

.active .formula-item:nth-child(7) {
  transition-delay: 0.9s;
}

.formula-img-box {
  width: 100px;
  height: 100px;
  /* margin: 0 auto;
    background: white;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
}

.formula-img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.formula-label {
  font-weight: 400;
  color: #333;
  font-size: 1.25vw;
}

.operator {
  font-size: 1.87vw;
  color: #333;
  margin: 0 1rem;
}

.screen-section {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

.banner-inner-item,
.formula-item {
  will-change: transform, opacity;
}

/**设备接入*/

.product-center {
  background: #fff;
}

.product-center-container {
  padding-top: 10.37vh;
  text-align: center;
}

.center-title {
  font-weight: bold;
  font-size: 2.5vw;
  color: #011020;
  line-height: normal;
}

.center-desc {
  color: #333333;
  font-size: 1.25vw;
}

.center-list {
  width: 71.35vw;
  margin: 0 auto;
  padding: 40px 0;
}

/* 通用行样式 */
.row-first,
.row-second {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}

/* 产品项基础样式 */
.product-item {
  position: relative;
  height: 26.2vh;
  overflow: hidden;
  border-radius: 10px;
  overflow: hidden;
  /* 确保图片放大不溢出 */
  transform: translateZ(0);
  /* 触发GPU加速 */

  opacity: 0;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform, opacity;
}

/* 尺寸配置 */
.row-first .product-item:not(.wide) {
  width: 20.15vw;
}

.row-first .wide {
  width: 28.9vw;
}

.row-second .large {
  width: 41.4vw;
}

.row-second .wide {
  width: 28.9vw;
}

/* 图片填充 */
.product-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), filter 0.4s ease;
  will-change: transform;
}

.product-item:hover img {
  transform: scale(1.08);
  filter: brightness(1.05) contrast(1.1);
}

/* 产品标签 */
.product-label {
  position: absolute;
  top: 24px;
  left: 29px;
  font-size: 1.66vw;
}

/* 为不同位置的元素分配动画 */
.row-first .product-item:nth-child(1) {
  transform: translateX(-100px) rotateZ(-5deg);
}

.row-first .product-item:nth-child(2) {
  transform: translateY(80px) scale(0.8);
}

.row-first .product-item:nth-child(3) {
  transform: translateX(100px) rotateZ(5deg);
}

.row-second .product-item:nth-child(1) {
  transform: translateX(-150px) skewX(10deg);
}

.row-second .product-item:nth-child(2) {
  transform: translateX(150px) skewX(-10deg);
}

/* 激活动画 */
.screen-section.active .product-item {
  opacity: 1;
  transform: none;
}

/* 延迟设置 */
.screen-section.active .row-first .product-item:nth-child(1) {
  transition-delay: 0.2s;
}

.screen-section.active .row-first .product-item:nth-child(2) {
  transition-delay: 0.4s;
}

.screen-section.active .row-first .product-item:nth-child(3) {
  transition-delay: 0.6s;
}

.screen-section.active .row-second .product-item:nth-child(1) {
  transition-delay: 0.8s;
}

.screen-section.active .row-second .product-item:nth-child(2) {
  transition-delay: 1s;
}

/* 性能优化 */
.product-center {
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* 行业痛点容器 */
.industry-pain {
  padding-top: 10vh;
  background: #fff;
}

.industry-container {
  width: 72vw;
  margin: 0 auto;
  overflow: hidden;
}

/* 标题样式 */
.industry-title {
  font-size: 2.5vw;
  color: #011020;
  text-align: center;
  font-weight: bold;
  margin-bottom: 20px;
}

/* 描述文字 */
.industry-desc {
  font-size: 1.25vw;
  color: #333333;
  text-align: center;
  margin: 0 auto 40px;
  line-height: 1.8;
}

/* 走马灯容器 */
.industry-pain .swiper-container-wrapper {
  position: relative;
  padding: 0 80px;
  /* 给导航按钮留出空间 */
}

/* 幻灯片项样式 */
.industry-pain .swiper-slide {
  width: 205px !important;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  transform: scale(0.9);
}

.industry-pain .swiper-slide-active {
  transform: scale(1);
  width: 416px !important;
  z-index: 2;
}

/* 痛点项卡片 */
.pain-item {
  position: relative;
  height: 472px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.pain-item:hover {
  transform: translateY(-5px);
}

.pain-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pain-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 92px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4vw;
  padding: 0 20px;
  text-align: center;
  line-height: 1.3;
}

/* 导航按钮样式 */
.industry-pain .industry-prev,
.industry-pain .industry-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.industry-prev:hover,
.industry-next:hover {
  background: #f8f9fa;
  transform: translateY(-50%) scale(1.1);
}

.industry-prev {
  left: 10px;
}

.industry-next {
  right: 10px;
}

.arrow {
  display: block;
  width: 12px;
  height: 12px;
  border: 2px solid #2d3748;
  position: absolute;
  top: 50%;
  left: 50%;
}

.industry-prev .arrow {
  border-width: 2px 0 0 2px;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.industry-next .arrow {
  border-width: 2px 2px 0 0;
  transform: translate(-50%, -50%) rotate(45deg);
}

.industry-prev::after,
.industry-next::after {
  content: none !important;
}

/*解决方案*/

.solution {
  padding-top: 10vh;
  background: linear-gradient(to bottom, #ffffff 0%, #a3c6fd 100%);
}

.solution-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(to bottom, #ffffff 0%, #a3c6fd 100%);
  z-index: 0;
  /* 确保背景在内容下方 */
}

/* 调整容器层级 */
.solution-container {
  position: relative;
  z-index: 1;
  /* 确保内容在背景上方 */
}

.solution-list {
  width: 1474px;
  height: 470px;
  margin: 0 auto;
  /* 水平居中 */
  position: relative;
  display: flex;
  border-radius: 30px;
  background: linear-gradient(to bottom, #ffffff 0%, #a3c6fd 100%);
  box-sizing: border-box;
}

.solution-nav {
  width: 300px;
  /* 增加导航宽度 */
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;

  /* 垂直居中 */
}

.nav-item {
  height: 156px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 26px;
  color: #333;
  border-radius: 10px;
  line-height: 166px;
  text-align: center;
  border-bottom: 2px solid #fff;
}

.nav-item.active {
  background: #409eff;
  color: white;
  font-weight: 500;
  border-radius: 30px 0 0 30px;
}

.solution-content {
  flex: 1;
  height: 100%;
  position: relative;
}

.content-card {
  position: absolute;
  width: 100%;
  height: 470px;
  opacity: 0;
  transition: all 0.3s;
  transform: translateY(20px);
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  box-sizing: border-box;
  padding-top: 60px;
  padding-left: 55px;
}

.content-card.active {
  opacity: 1;
  transform: translateY(0);
  display: flex;
  gap: 40px;
}

.card-left h3 {
  font-weight: bold;
  font-size: 42px;
  color: #0f2b68;
}

.solutions-line {
  width: 164px;
  height: 1px;
  background: #5391cc;
  margin-top: 20px;
}

.card-left .desc {
  width: 430px;
  margin-top: 20px;
  font-size: 24px;
  color: #333333;
  line-height: 30px;
}

.features {
  margin-top: 64px;
}

.features li {
  position: relative;
  list-style: none;
  padding-left: 25px;
  /* 留出图标位置 */
  margin-bottom: 12px;
  font-size: 24px;
  color: #333;
}

.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 17px;
  height: 17px;
  background: #2b7ff3;
  border-radius: 50%;
}

.card-right {
  /* position: relative;  */
  width: 483px;
  height: 540px;
  margin-top: -34px;
  overflow: visible;
  /* 允许图片溢出 */
}

.card-right img {
  position: absolute;
  top: -34px;
  /* 上溢出34px */
  bottom: -34px;
  /* 下溢出34px */
  right: 98px;
  /* 右侧间距保持98px */
  height: auto;
  /* 改用自动高度 */
  max-height: calc(100% + 68px);
  /* 总高度=容器高度+上下溢出 */
  width: auto;
  /* 保持图片原始比例 */
  max-width: 480px;
  /* 防止图片过宽 */
}

/*电力通讯*/

.communication {
  padding-top: 10vh;
  background: #fff;
}

.communication .industry-desc {
  width: 1300px;
  font-weight: 400;
  font-size: 24px;
  color: #333333;
}

.communication-list {
  display: flex;
  justify-content: space-between;
  width: 1600px;

  margin: 40px auto 0;
}

.communication-item {
  width: 390px;
  height: 390px;
  padding: 30px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.comm-icon {
  width: 115px;
  height: 115px;
  object-fit: contain;
}

.comm-title {
  font-size: 40px;
  color: #333;
}

.comm-desc {
  margin-top: 5px;
  font-size: 17px;
  color: #333333;
  text-align: center;
  flex: 1;
  width: 275px;
}

.pros-cons {
  width: 305px;
}

.pros {
  font-size: 21px;
  color: #333333;
}

/**应用领域 */
.solution {
  padding-top: 10vh;
}

.sector-list {
  display: grid;
  grid-template-columns: repeat(4, 329px);
  gap: 30px;
  width: 1440px;
  margin: 50px auto 0;
}

.sector-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
  perspective: 1000px;
}

.img-box {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  opacity: 0;
  transform: translateY(80px) rotateX(15deg);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  transition-property: opacity, transform;
  will-change: transform, opacity;
}

.img-box img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

.img-box:hover img {
  transform: scale(1.05);
}
.sector{
  padding-top: 10vh;
}

/* 尺寸交替设置 */
.sector-group:nth-child(odd) .tall-top {
  height: 200px;
}

.sector-group:nth-child(odd) .short-bottom {
  height: 271px;
}

.sector-group:nth-child(even) .tall-top {
  height: 271px;
}

.sector-group:nth-child(even) .short-bottom {
  height: 200px;
}

/* 奇数组动效 */
.sector-group:nth-child(odd) .tall-top {
  transform: translateX(-100px) rotateZ(-5deg);
}

.sector-group:nth-child(odd) .short-bottom {
  transform: translateX(100px) rotateZ(5deg);
}

/* 偶数组动效 */
.sector-group:nth-child(even) .tall-top {
  transform: translateX(100px) rotateZ(5deg);
}

.sector-group:nth-child(even) .short-bottom {
  transform: translateX(-100px) rotateZ(-5deg);
}

/* 激活动画 */
.screen-section.active .img-box {
  opacity: 1;
  transform: none;
}

/* 延迟设置 */
.screen-section.active .sector-group:nth-child(1) .img-box {
  transition-delay: 0.2s;
}

.screen-section.active .sector-group:nth-child(2) .img-box {
  transition-delay: 0.4s;
}

.screen-section.active .sector-group:nth-child(3) .img-box {
  transition-delay: 0.6s;
}

.screen-section.active .sector-group:nth-child(4) .img-box {
  transition-delay: 0.8s;
}

.img-caption {
  position: absolute;
  top: 15px;
  left: 15px;
  color: white;

  padding: 8px 15px;

  border-radius: 6px;
}

.img-caption h4 {
  font-size: 20px;
  margin: 0 0 5px;
}

/* 性能优化 */
.sector-list {
  backface-visibility: hidden;
  transform: translateZ(0);
}

.cases{
  padding-top: 10vh;
}


/*企业案例*/
.cases-list {
  width: 1392px;
  margin: 0 auto;
  /* padding: 0 20px; */
}

/* 案例行布局 */
.cases-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.case-item {
  display: flex;
  /*垂直居中*/
  align-items: center;
}

.case-item img {
  /* height: 100%; */
  width: 100%;
  /* object-fit: contain; */
  /* padding: 25px; */
}

/* 底部整体样式 */

.index-footer {
  padding-top: 10vh;
  box-sizing: border-box;
}
.footer-btn {
  text-align: center; /* 水平居中 */
  margin: 30px 0; /* 添加上下间距 */
  padding: 0 20px; /* 添加左右内边距 */
}

.footer-btn a {
  display: inline-block; /* 使容器根据内容自适应 */
  max-width: 100%; /* 防止图片溢出 */
}

.footer-btn img {
  width: 970px; /* 设计图标准宽度 */
  height: 88px; /* 设计图标准高度 */
  display: block; /* 消除图片底部间隙 */
  margin: 0 auto; /* 双重保障水平居中 */
  transition: opacity 0.3s; /* 添加悬停效果 */
}
