@charset "utf-8";
.header-space {
  height: 0;
}

.header-wrap {
  background-color: rgba(255, 255, 255, 0.2) !important;
}

/*  */

/*  */
.index-banner {
  position: relative;
  z-index: 1;
  height: 100vh;
  overflow: hidden;
}

/*  */
#gradient-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.index-banner-animate {
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.index-banner-bt {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  justify-content: space-between;
  padding: 0 120px;
  transform: translateY(-50%);
  opacity: 0;
  will-change: opacity;
  animation: bannerBtFadeIn 0.8s ease 1.9s forwards;
}

@keyframes bannerBtFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.index-banner-bt p {
  font-size: 24px;
  color: #fff;
}

.banner-title {
  padding: 20px 120px;
  width: 100%;
  font-size: 5vw;
  color: #fff;
  opacity: 0;
  position: relative;
  z-index: 1;
  will-change: transform, opacity;
}

/* 文字分别从左侧 / 右侧进入 */
.banner-title-left {
  text-align: left;
  animation: bannerTextLeftIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.banner-title-right {
  text-align: right;
  animation: bannerTextRightIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

@keyframes bannerTextLeftIn {
  from {
    opacity: 0;
    transform: translateX(-8vw);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bannerTextRightIn {
  from {
    opacity: 0;
    transform: translateX(8vw);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 1440px) {
  .banner-title {
    padding: 20px 60px;
  }

  .index-banner-bt {
    padding: 0 60px;
  }
}

/* 视频初始隐藏，文字就位后高度展开，形成文字间间距 */
.banner-video {
  display: block;
  width: 35vw;
  height: 0;
  margin: 0 auto;
  overflow: hidden;
  opacity: 0;
  object-fit: cover;
  border-radius: 4px;
  position: relative;
  z-index: 2;
  animation: bannerVideoExpand 0.9s cubic-bezier(0.22, 1, 0.36, 1) 1s forwards;
}

@keyframes bannerVideoExpand {
  from {
    height: 0;
    opacity: 0;
  }
  to {
    height: 22vw;
    opacity: 1;
  }
}

/* 尊重减弱动效偏好：直接显示终态 */
@media (prefers-reduced-motion: reduce) {
  .banner-title,
  .banner-video {
    opacity: 1 !important;
    transform: none !important;
    height: 22vw !important;
    animation: none !important;
  }
}

@media (max-width: 768px) {
  .index-banner-bt {
    padding: 0 15px;
  }

  .banner-title {
    font-size: 7vw;
    padding: 16px 24px;
  }
  .banner-video {
    width: 64vw;
    animation-name: bannerVideoExpandMobile;
  }
  @keyframes bannerVideoExpandMobile {
    from {
      height: 0;
      opacity: 0;
    }
    to {
      height: 40vw;
      opacity: 1;
    }
  }
}

/*  */

.index-case-list ul {
  margin-left: -40px;
}

.index-case-list ul li {
  width: 50%;
  padding-left: 40px;
  margin-top: 50px;
}

.index-case-list .cp-poster {
  width: 100%;
  overflow: hidden;
}

.index-case-list .cp-poster img {
  display: block;
  width: 100%;
}

.index-case-list .cp-title {
  margin-top: 20px;
}

.index-case-list .cp-title h3 {
  margin-top: 10px;
  font-size: 24px;
}

.index-case-list .cp-title p {
  font-size: 14px;
  color: var(--color-primary);
}

@media (max-width: 1366px) {
  .index-case-list ul {
    margin-left: -30px;
  }

  .index-case-list ul li {
    padding-left: 30px;
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .index-case-list ul {
    margin-left: 0;
  }

  .index-case-list ul li {
    width: 100%;
    padding-left: 0;
    margin-top: 30px;
  }

  .index-case-list .cp-title h3 {
    font-size: 20px;
  }
}
/*  */

.index-service-section {
  background-color: var(--color-primary);
}

.index-service-list {
  margin-top: 50px;
}

.item-service-index {
  position: relative;
  z-index: 1;
  display: flex;
  padding: 30px 50px 30px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  height: 90px;
  cursor: pointer;
  transition: height 0.5s ease;
  overflow: hidden;
}

.item-service-index:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.item-service-index .item-service-left {
  /* width: 50%; */
}

.item-service-index .item-title {
  width: 230px;
  padding-right: 30px;
}

.item-service-index .item-title h3 {
  font-size: 20px;
  color: #fff;
}

.item-service-index .item-poster {
  width: 600px;
  overflow: hidden;
  opacity: 0;
  transform: perspective(800px) rotateY(30deg) translateX(30px);
  transform-origin: left center;
  backface-visibility: hidden;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  padding-bottom: 30px;
}

.item-service-index .item-poster img,
.item-service-index .item-poster video {
  display: block;
  width: 100%;
}

.item-service-index .item-content {
  flex: 1;
  min-width: 0;
  padding-left: 40px;
  padding-top: 5px;
  color: #fff;
}

.item-service-index .item-tags {
  color: rgba(255, 255, 255, 0.6);
}

.item-service-index .item-desc {
  margin-top: 15px;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.item-service-index .item-desc p {
  font-size: 18px;
  line-height: 1.7;
}

.item-service-index .item-status {
  position: absolute;
  z-index: 1;
  top: 25px;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #fff;
}

.item-service-index .item-status span {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  background-color: #fff;
  transition: background-color 0.3s ease;
}

.item-service-index .item-status span::before {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  content: "";
  width: 2px;
  height: 20px;
  background-color: #fff;
  transition:
    transform 0.3s ease,
    background-color 0.3s ease;
}

.item-service-index.active {
  min-height: 400px;
}

.item-service-index.active .item-poster {
  opacity: 1;
  transform: perspective(800px) rotateY(0deg) translateX(0);
}

.item-service-index.active .item-desc {
  opacity: 1;
  transform: translateX(0);
}

.item-service-index.active .item-status span::before {
  transform: translate(-50%, -50%) scaleY(0);
}

/* ===========================================
   index-strategy 首页策略板块
   =========================================== */

.index-strategy-wrapper {
  gap: 100px;
  align-items: flex-start;
}

.index-strategy-left {
  width: 36%;
}

.index-strategy-list {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
}

.index-strategy-list .item-strategy {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 33.33%;
  min-height: 380px; /* 每张等高，避免空占位/图标卡导致各行高度不一致 */
  border: 1px solid #dedede;
  padding: 20px;
  margin: -1px -1px 0 0;
}

.index-strategy-list .strategy-number {
  align-self: flex-start;
  display: block;
  text-align: left;
}

.index-strategy-list .strategy-icon {
  width: 40%;
  margin: 10px auto 60px;
}

.index-strategy-list .strategy-pic {
  width: 70%;
}

.index-strategy-list .strategy-pic img,
.index-strategy-list .strategy-icon img {
  display: block;
  width: 100%;
}

.index-strategy-list .strategy-title h3 {
  font-size: 20px;
}

.index-strategy-list .strategy-title p {
  margin-top: 10px;
  font-size: 14px;
}

.index-strategy-list .item-strategy:nth-child(1),
.index-strategy-list .item-strategy:nth-child(3) {
  visibility: hidden;
}

.index-strategy-list .item-strategy:nth-child(7) {
  position: absolute;
  bottom: 0;
  left: calc(-33.33% + 1px);
}

/* ===========================================================
   首页多端适配
   断点：1440 / 1366 / 1200 / 960 / 768 / 480
   （1600 由全局 .cp-container 限宽处理）
   =========================================================== */

/* 1440：策略区收窄间距，服务左侧占比收敛 */
@media (max-width: 1440px) {
  .index-strategy-wrapper {
    gap: 60px;
  }
  .item-service-index .item-title {
    width: 300px;
  }
  .item-service-index .item-poster {
    width: 520px;
  }
}

/* 1366：继续收敛 */
@media (max-width: 1366px) {
  .index-strategy-wrapper {
    gap: 50px;
  }
  .item-service-index .item-title {
    width: 280px;
  }
  .item-service-index .item-poster {
    width: 480px;
  }
}

/* 1200：容器由全局收敛；服务左侧进一步收敛 */
@media (max-width: 1200px) {
  .index-strategy-wrapper {
    gap: 40px;
  }
  .item-service-index .item-title {
    width: 240px;
  }
  .item-service-index .item-poster {
    width: 420px;
  }
  .item-service-index .item-content {
    padding-left: 30px;
  }
}

/* 960：进入平板 —— 新闻两列、服务列表转纵向、策略区堆叠 */
@media (max-width: 960px) {
  /* 服务列表：关闭 hover 折叠（JS 在 ≤960 不激活），改为纵向堆叠静态展示 */
  .item-service-index {
    flex-direction: column;
    height: auto !important;
    min-height: 0 !important;
    padding: 30px 40px 30px 0;
  }
  .item-service-index .item-service-left {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
  .item-service-index .item-title {
    width: 100%;
    padding-right: 50px;
  }
  .item-service-index {
    cursor: pointer;
  }
  .item-service-index .item-poster {
    width: 100%;
    max-width: 520px;
    margin-top: 0;
    opacity: 0;
    transform: none;
    max-height: 0;
    overflow: hidden;
    padding-bottom: 0;
    transition:
      opacity 0.4s ease,
      max-height 0.4s ease,
      margin-top 0.4s ease,
      padding-bottom 0.4s ease;
  }
  .item-service-index .item-content {
    width: 100%;
    padding-left: 0;
    padding-top: 20px;
  }
  .item-service-index .item-desc {
    opacity: 0;
    transform: none;
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
    transition:
      opacity 0.4s ease,
      max-height 0.4s ease,
      margin-top 0.4s ease;
  }
  /* 移动端折叠：仅激活项展开海报与详情（互斥） */
  .item-service-index.active .item-poster {
    opacity: 1;
    margin-top: 20px;
    max-height: 60vh;
    padding-bottom: 30px;
  }
  .item-service-index.active .item-desc {
    opacity: 1;
    margin-top: 15px;
    max-height: 320px;
  }
  .item-service-index .item-status {
    top: 30px;
  }

  /* 策略区：左栏置顶、右栏通栏，取消棋盘占位与绝对定位改正常网格 */
  .index-strategy-wrapper {
    flex-direction: column;
    gap: 50px;
  }
  .index-strategy-left {
    width: 100%;
  }
  .index-strategy-list {
    width: 100%;
    flex: none;
  }
  .index-strategy-list .item-strategy:nth-child(1),
  .index-strategy-list .item-strategy:nth-child(3) {
    display: none;
  }
  .index-strategy-list .item-strategy:nth-child(7) {
    position: relative;
    left: 0;
  }
  .index-strategy-list .item-strategy {
    width: 33.33%;
  }
}

/* 768：新闻单列由全局处理；策略两列、服务细节收敛 */
@media (max-width: 768px) {
  .item-service-index .item-status {
    display: flex;
  }
  .index-strategy-list .item-strategy {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: auto;
  }

  .index-strategy-list .strategy-number {
    position: absolute;
    top: 20px;
    right: 20px;
  }

  .index-strategy-list .strategy-icon {
    width: 50px;
    margin: 0;
  }

  .strategy-title {
    flex: 1;
    padding-left: 20px;
  }

  .news-item .cp-content {
    height: auto;
    padding: 24px;
  }
  .news-item .cp-title h3 {
    font-size: 22px;
  }

  .index-strategy-list .item-strategy:nth-child(5),
  .index-strategy-list .item-strategy:nth-child(8) {
    display: none;
  }

  .index-strategy-list .item-strategy {
    flex-direction: row;
  }
  .item-service-index .item-status {
    width: 20px;
    height: 20px;
  }

  .item-service-index .item-status span {
    width: 8px;
  }

  .item-service-index .item-status span::before {
    height: 8px;
  }
  .item-service-index .item-desc p {
    font-size: 14px;
  }
}
