/* 数字人页面 */

/* 导航栏 */
.dropdown {
  position: relative;
  display: inline-block;
  margin: 0 50px;
  /* 添加以下属性，创建一个透明的"桥梁"区域 */
  padding-bottom: 12px;
  /* 与原来dropdown-content的margin-top相同 */
}

.dropbtn {
  color: #0858AB;
  font-weight: bold;
  margin: 0 14px;
  font-size: 18px;
  text-align: center;
  font-family: PingFangSC-Semibold;
  padding: 4px 0;
  position: relative;
  transition: color 0.2s;
  background-color: transparent;
  border: none;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: rgba(255, 255, 255, 1);
  border-radius: 6px;
  box-shadow: 0px 2px 10px -2px rgba(0, 68, 139, 0.3);
  z-index: 1;
  padding: 10px 0;
  /* 修改以下属性 */
  margin-top: 12px;
  /* 保持原来的间隙 */
  top: 100%;
  /* 确保下拉菜单在按钮下方 */
  left: 0;
  /* 确保下拉菜单与按钮左对齐 */
  min-width: 100%;
  /* 确保下拉菜单宽度不小于按钮 */
}

.dropdown-content a {
  color: #4E5966;
  padding: 6px 20px;
  font-size: 14px;
  font-family: PingFangSC-Regular;
  display: block;
  /* 确保链接占据整行 */
}

.dropdown-content a.active,
.dropdown-content a:hover {
  color: #1377DF;
}

/* 修改hover效果，确保整个下拉区域都能保持展开状态 */
.dropdown:hover .dropdown-content,
.dropdown-content:hover {
  display: block;
}

/* 添加一个透明的"桥梁"元素，连接按钮和下拉菜单 */
.dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
  /* 与间隙大小相同 */
  background-color: transparent;
  z-index: 2;
  /* 确保它在下拉菜单上方 */
}

/* 页面内容样式 */
.digitalContainer {
  margin: 0 auto;
}

.header {
  position: relative;
  text-align: left;
  margin-bottom: 0;
}

.header img {
  width: 100%;
  height: auto;
  margin-bottom: 0;
}


.banner-text {
  position: absolute;
  left: 124px;
  bottom: calc(50% - 130px);
  width: 640px;
  padding: 20px;
  box-sizing: border-box;
}

.header p {
  line-height: 26px;
  color: rgba(8, 88, 171, 1);
  font-size: 24px;
  text-align: left;
  font-family: PingFangSC-Medium;
  margin: 0;
  font-weight: 500;
}

.header .section-title {
  font-size: 50px;
  color: #05111E;
  margin-bottom: 40px;
  letter-spacing: 1px;
  font-family: PingFangSC-Semibold;
  margin: 0;
  font-weight: bold;
  line-height: 70px;
  margin-bottom: 15px;
}

.header .section-subtitle {
  color: rgba(8, 88, 171, 1);
}

.header .section-desc {
  line-height: 30px;
  color: rgba(78, 89, 102, 1);
  font-size: 16px;
  text-align: justify;
  font-family: PingFangSC-Regular;
}

/* 内容 */

.top-title {
  line-height: 37px;
  display: flex;
  justify-content: center;
  align-items: baseline;
  color: rgba(31, 42, 54, 1);
  font-size: 36px;
  text-align: left;
  font-family: PingFangSC-Semibold;
  font-weight: bold;
}

.top-title img {
  width: 10px;
  height: 10px;
  margin: 0 6px;
}

.subTitle {
  line-height: 30px;
  color: rgba(78, 89, 102, 1);
  font-size: 28px;
  text-align: center;
  font-family: PingFangSC-Medium;
  margin: 0;
}

.st1 {
  margin: 50px 0 37px;
}

.st2 {
  margin: 50px 0 18px;
}

.st3 {
  margin: 44px 0 52px;
}

.st4 {
  padding: 78px 0 48px;
}

.st5 {
  margin: 78px 0 38px;
}

.digitalContainer .scenarios {
  padding: 80px 0;
  text-align: center;
}

.scenario-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 42px;
}

.scenario-card {
  width: 360px;
  height: 500px;
  position: relative;
  color: #fff;
}

.scenario-card img {
  width: 100%;
}

.scenario-card .scenario-desc {
  position: absolute;
  top: 300px;
  padding: 40px 32px;
}

.scenario-card .scenario-desc h4 {
  height: 36px;
  font-size: 30px;
  text-align: left;
  font-family: AlimamaShuHeiTi-Bold;
  margin: 0;
  margin-bottom: 20px;
}

.scenario-card .scenario-desc span {
  display: block;
  font-size: 14px;
  text-align: left;
  font-family: PingFangSC-Regular;
  font-weight: 300;
}

.scenarios .mannger-desc {
  line-height: 24px;
  color: rgba(128, 136, 145, 1);
  font-size: 16px;
  text-align: center;
  font-family: PingFangSC-Regular;
  margin: 18px 0 30px;
}

.scenarios .mannger-img {
  width: 1164px;
}


/* 产品能力板块 - hover放大效果 */
.abilities {
  padding: 60px 0 0;
}

.abilities .bottomLine {
  width: 336px;
  position: absolute;
  bottom: -35px;
  left: calc(50% - 168px);
  z-index: 999;
}

.base-abilities {
  position: relative;
  text-align: center;
  background-image: linear-gradient(180deg, #F5F9FF 0%, #ECF0F8 95%);
}

.base-abilities-container {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
  margin-bottom: 76px;
}

.ability-card {
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.31) 95%);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  width: 534px;
  box-sizing: border-box;
  transition: all 0.3s ease;
  cursor: pointer;
}

.ability-card:hover {
  background: #fff;
  transform: scale(1.07);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.ability-card h3 {
  color: rgba(31, 42, 54, 1);
  font-size: 18px;
  text-align: left;
  font-family: PingFangSC-Medium;
  margin: 0;
}

.ability-card p {
  line-height: 24px;
  color: rgba(31, 42, 54, 1);
  font-size: 14px;
  text-align: justify;
  font-family: PingFangSC-Regular;
  margin: 0;
}

/* 核心能力板块 - 悬浮式设计 */
.core-abilities {
  padding-bottom: 80px;
  text-align: center;
  background-color: rgba(243, 249, 255, 1);
  position: relative;
}

.core-abilities-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.core-card {
  position: relative;
  width: 270px;
  height: 420px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
  border-radius: 0;
}

/* Hover效果 */
.core-card:hover {
  width: 438px;
  background: white;
  z-index: 10;
  box-shadow: 0 10px 30px rgba(0, 68, 139, 0.15);
  border: none;
  border-radius: 0;
}

.core-card-image {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.core-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
  position: absolute;
  top: 0;
  left: 0;
}

/* 未激活状态 */
.inactive-div {
  opacity: 1;
  visibility: visible;
}

/* Hover时的状态切换 */
.core-card:hover .inactive-div {
  opacity: 0;
  visibility: hidden;
}

/* 激活状态 */
.active-div {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Hover时的状态切换 */
.core-card:hover .active-div {
  opacity: 1;
  visibility: visible;
}

.active-div .active-img {
  width: 390px;
  height: 240px;
  object-fit: cover;
  margin: 24px 24px 0;
}

/* 图片上的悬浮文本 */
.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 25px 25px;
  transition: all 0.4s ease;
}

.image-overlay h3 {
  color: rgba(255, 255, 255, 1);
  font-size: 20px;
  text-align: left;
  font-family: PingFangSC-Medium;
  margin: 0;
  margin-bottom: 6px;
  white-space: nowrap;
}

.image-overlay p {
  text-align: left;
  color: rgba(223, 224, 226, 1);
  font-size: 14px;
  font-family: PingFangSC-Regular;
  margin: 0;
}

/* 激活状态的详细内容 */
.core-card-content {
  position: absolute;
  top: 240px;
  left: 0;
  width: 100%;
  height: calc(100% - 240px);
  background: white;
  padding: 16px 39px;
  box-sizing: border-box;
}

.core-card-content h3 {
  line-height: 24px;
  color: rgba(16, 54, 122, 1);
  font-size: 20px;
  text-align: left;
  font-family: PingFangSC-Medium;
  margin: 0px;
  margin-bottom: 12px;
}

.core-card-content p {
  color: rgba(0, 68, 139, 1);
  font-size: 14px;
  text-align: justify;
  font-family: PingFangSC-Regular;
  line-height: 1.5;
  margin: 0;
}

/* 响应式设计 */
@media (max-width: 1100px) {
  .core-card:hover {
    width: 90%;
    max-width: 600px;
  }

  .core-abilities-container {
    flex-direction: column;
    align-items: center;
  }

  .core-card {
    width: 90%;
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .core-card:hover {
    width: 95%;
    height: auto;
    min-height: 500px;
  }

  .core-card-content {
    position: relative;
    top: 0;
    height: auto;
    padding: 30px 20px;
  }

  .active-div .active-img {
    width: 100%;
    height: 200px;
  }

  .core-card-content h3 {
    font-size: 18px;
  }

  .core-card-content p {
    font-size: 13px;
  }
}

/* 服务能力板块 - 轮播效果 */
.service-carousel {
  padding: 60px 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(#E7EEF9 0%, #FBFDFF 100%);

}

.service-carousel-container {
  position: relative;
  overflow: visible;
}

.service-cards {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 265px;
}

.service-card {
  background: linear-gradient(to right, rgba(230, 239, 255, 1) 0%, #feffff 50%);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 24px 30px;
  box-sizing: border-box;
  transition: all 0.5s ease;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.service-card .service-card-container {
  display: flex;
  flex-direction: column;
  margin-right: 24px;
  width: 300px;
}

/* 左侧卡片 */
.service-card.prev {
  left: calc(50% - 1040px);
  z-index: 1;
}

/* 中间卡片（激活状态） */
.service-card.active {
  left: 50%;
  transform: translate(-50%, -50%) scale(1.07);
  box-shadow: 0 15px 30px rgba(0, 68, 139, 0.2);
  background: linear-gradient(to right bottom, rgba(230, 239, 255, 1) 0%, rgba(255, 255, 255, 1) 50%);
  padding: 40px;
  opacity: 1;
  z-index: 3;
}

/* 右侧卡片 */
.service-card.next {
  left: calc(50% + 420px);
  z-index: 1;
}

.service-card h3 {
  line-height: 24px;
  color: rgba(31, 42, 54, 1);
  font-size: 20px;
  margin: 0;
  transition: all 0.3s ease;
}

.service-card p {
  line-height: 24px;
  color: rgba(78, 89, 102, 1);
  font-size: 16px;
  font-family: PingFangSC-Regular;
  margin: 16px 0 0;
  transition: all 0.3s ease;
}

.service-card.active .service-card-container {
  margin-right: 30px;
}

.service-card.active img {
  width: 277px;
  height: 156px;
}

.service-card img {
  width: 240px;
  height: 135px;
}

/* 申请 */
.apply {
  position: relative;
  margin-bottom: 0;
}

.apply img {
  width: 100%;
  display: block;
}

.apply-content {
  position: absolute;
  top: 43%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.apply-content h2 {
  color: rgba(0, 68, 139, 1);
  font-size: 48px;
  text-align: center;
  font-family: AlimamaShuHeiTi-Bold;
  margin-bottom: 0;
  line-height: 57px;
}

.apply-content h2 span {
  color: #1377df;
}

.apply-desc {
  color: rgba(0, 68, 139, 1);
  font-size: 20px;
  text-align: center;
  font-family: PingFangSC-Regular;
  margin: 23px 0 40px;
}

.apply-btns {
  display: flex;
  justify-content: center;
}

.apply-btns .btn {
  border-radius: 4px;
  background-color: rgba(16, 119, 224, 1);
  color: rgba(255, 255, 255, 1);
  font-size: 14px;
  text-align: center;
  font-family: PingFangSC-Regular;
  border: none;
  padding: 12px 34px;
  margin-top: auto;
  /* 关键属性，将按钮推到底部 */
}

/* 响应式设计 */
@media (max-width: 768px) {
  .navbar {
    padding: 10px 5%;
  }

  .dropdown {
    margin: 0 20px;
  }

  .section-title {
    font-size: 26px;
  }

  .section-subtitle {
    font-size: 18px;
  }

  .ability-card,
  .service-card {
    width: 100%;
    max-width: 350px;
  }
}