/* ===== Coverflow 聚焦轮播 ===== */

.industries-showcase {
  background: transparent;
  padding: 10px 0;
  overflow: hidden;
  position: relative;
  margin-top:100px;
}

/* 深灰背景覆盖顶部约 60% 高度（标题区 + 图片上半部分） */
.industries-showcase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: #3a3a3a;
  z-index: 0;
}

/* 确保内部元素在伪元素之上 */
.industries-showcase__header,
.industries-showcase__carousel,
.industries-showcase__footer {
  position: relative;
  z-index: 1;
}

.industries-showcase__header {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 30px;
  text-align: center;
}

.industries-showcase__title {
  color: #fff;
  font-size: calc(31.25px + 7.8125 * (100vw - 960px) / 320);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0;
  margin-top:10px;
}

/* 轮播外层容器：箭头 + track 并排 */
.industries-showcase__carousel {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
  position: relative;
  display: flex;
  align-items: center;
}

/* 轨道容器：裁切左右溢出，只露出一屏 3 张 */
.industries-showcase__track-wrapper {
  flex: 1;
  overflow: hidden;
  /* 为中间卡片 scale 略放大/阴影预留垂直空间，避免被裁切 */
  /* padding: 8px 0 16px; */
  z-index:1;
}

.industries-showcase__track {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  position: relative;
  min-height: 380px;
  /* transform 由 JS 控制，这里给个默认过渡（JS 也会显式设置） */
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

/* 所有卡片：水平排列，每张占 1/3 宽度；side/其他保持 scale(1) 保证顶部对齐 + 卡间无空隙 */
.industries-showcase__card {
  flex: 0 0 calc(100% / 3);
  min-width: calc(100% / 3);
  max-width: calc(100% / 3);
  background: #333333;
  overflow: hidden;
  border-radius: 4px;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
              opacity 0.45s ease,
              box-shadow 0.45s ease;
  /* 统一缩放基点为顶边中点：放大时只向下+左右扩展，顶边保持对齐 */
  transform-origin: center top;
  transform: scale(1);
  opacity: 1;
  will-change: transform, opacity;
}

/* 相邻两张：半透明弱化，不缩放 → 与中间卡顶边保持在同一水平线 */
.industries-showcase__card.coverflow-side {
  opacity: 1;
}

/* 中间焦点卡片：从顶边向下/两侧放大，顶部依旧对齐，左右略溢出盖住相邻卡边缘 */
.industries-showcase__card.coverflow-center {
  opacity: 1;
  transform: scale(1.12);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

/* 轨道瞬移那一帧：临时禁用卡片自身过渡，避免首/尾循环时焦点卡闪烁 */
.industries-showcase.is-no-card-transition .industries-showcase__card {
  transition: none !important;
}

/* 卡片图片：横图 16:9，整行贴边 */
.industries-showcase__card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  background-size: cover;
  background-position: center;
  background-color: #ddd;
  transition: transform 0.3s ease;
}

/* 卡片内容区 */
.industries-showcase__card-content {
  padding: 25px 30px 30px;
  background: #fff;
}

.industries-showcase__card-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #333;
}

.industries-showcase__card-desc {
  font-size: 20px;
  line-height: 1.4;
  margin: 0;
  color: #333;
}

.industries-showcase__card-link-wrapper {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.industries-showcase__card-link-wrapper:hover .industries-showcase__card-image {
  transform: scale(1.05);
}

.industries-showcase__card-link-wrapper:hover .industries-showcase__card-title {
  color: #00049E;
}

/* 导航箭头 - 左右两侧 */
.industries-showcase__arrow {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  /* border: 2px solid #999; */
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 10;
  align-self: flex-start;
  margin-top: 30px;
}

.industries-showcase__arrow-icon {
  display: inline-block;
  width: 24px;
  height: 16px;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDI0IDE2Ij48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMTUuNy4zbC0xLjQgMS40TDE5LjYgN0gwdjJoMTkuNmwtNS4zIDUuMyAxLjQgMS40TDIzLjQgOHoiLz48L3N2Zz4=");
  background-repeat: no-repeat;
  background-size: 24px 16px;
  background-position: center;
  transition: filter 0.3s;
}

.industries-showcase__arrow--prev .industries-showcase__arrow-icon {
  transform: rotate(180deg);
}

/* .industries-showcase__arrow:hover {
  border-color: #333;
  background: #333;
} */

/* .industries-showcase__arrow:hover .industries-showcase__arrow-icon {
  filter: brightness(0) invert(1);
} */

.industries-showcase__arrow--prev {
  margin-right: 15px;
}

.industries-showcase__arrow--next {
  margin-left: 15px;
}

/* .industries-showcase__arrow:hover {
  border-color: #333;
  background: #333;
  color: #fff;
  opacity: 1;
} */

/* 底部链接 */
.industries-showcase__footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
  position: relative;
  /* display: flex; */
  align-items: center;
  text-align: right;
  margin-top: 10px;
}

.industries-showcase__view-all {
  color: #00049E;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: color 0.3s;
}

/* .industries-showcase__view-all:hover {
  color: rgba(255, 255, 255, 0.7);
} */

/* ===== 响应式 ===== */
@media (max-width: 960px) {
  .industries-showcase__carousel {
    padding: 0 20px;
  }
  .industries-showcase__card {
    flex: 0 0 50%;
    min-width: 50%;
    max-width: 50%;
  }
}

@media (max-width: 640px) {
  .industries-showcase__carousel {
    padding: 0 10px;
  }
  .industries-showcase__arrow {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
  .industries-showcase__arrow--prev {
    margin-right: 8px;
  }
  .industries-showcase__arrow--next {
    margin-left: 8px;
  }
  .industries-showcase__card {
    flex: 0 0 85%;
    min-width: 85%;
    max-width: 85%;
  }
  .industries-showcase__title {
    font-size: 22px;
  }
  .industries-showcase__card-desc {
    font-size: 16px;
  }
}
