/* ============================================
   Filez Homepage 2.0 Styles
   ============================================ */

/* ========== Banner Section ========== */
.index-banner {
  position: relative;
  overflow: hidden;
}

.index-banner .section-container {
  padding-top: 0;
  padding-bottom: 0;
}

.index-banner .section-body {
  position: relative;
}
#banner .section-body {
  min-height: 800px;
}

#banner:after{
  background: none;  
}

.banner-wrapper {
  position: relative;
  /* min-height: 460px; */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 140px;
  overflow: hidden;
}

.banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.banner-title {
  text-align: center !important;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.banner-desc {
  margin: 0;
  text-align: center !important;
  max-width: 100%;
}

/* Banner 使用通用按钮，通过 section 组件渲染 */
.index-banner .banner-buttons {
  margin-top: 32px;
  justify-content: center;
  min-width: auto;
}

/* ========== Products Section (6 Cards Grid) ========== */
.index-products .section-title {
  margin-bottom: 48px;
}

.products-wrapper {
  width: 100%;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: #EEF2FA;
  border-radius: 24px;
  padding: 32px 0 0 32px;
  text-decoration: none;
  /* border: 1px solid rgba(16, 28, 47, 0.06); */
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
  min-height: 370px;
}

.product-card:hover {
  /* box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08); */
  border-color: transparent;
  transform: translateY(-4px);
}

/* 卡片右上角箭头 */
.product-card .card-arrow {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 24px;
  height: 24px;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-card:hover .card-arrow {
  opacity: 1;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.card-icon {
  width: 32px;
  height: 32px;
}

.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-label {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: rgba(10, 100, 250, 0.08);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #0a64fa;
}

.product-card .card-title {
  font-size: 24px;
font-weight: 600;
line-height: normal;
  color: #101C2F;
  /* margin: 16px 0 8px; */
}

.product-card .card-desc {
  font-size: 16px;
  font-weight: normal;
  line-height: 28px;
  color: #101C2F;
  margin-bottom: 16px;
  margin-right: 32px;

}

.card-content {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  /* margin-top: -20%; */
}

.card-content img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.product-card:hover .card-content img {
  transform: scale(1.02);
}

/* ========== Solutions Section (非对称2x2布局) ========== */
.index-solutions .section-title {
  margin-bottom: 48px;
}

.solutions-wrapper {
  width: 100%;
}

.solutions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* grid-template-rows: auto auto; */
  gap: 24px;
  align-items: start
}


/* 通用卡片样式 */
.solution-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #EEF2FA;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 大卡片（带背景图） */
.solution-card-large {
  min-height: 400px;
}
.solution-card-large:nth-of-type(4) {
  margin-top: -118px;
}
#en .solution-card-large:nth-of-type(4) {
  margin-top: -122px;
}
.solution-card-with-bg .card-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.solution-card-with-bg .card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.solution-card-with-bg:hover .card-bg img {
  transform: scale(1.03);
}

/* 大卡片底部的白色覆盖层 */
.solution-card-with-bg .card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  background: rgba(238, 242, 250, 0.8);
  backdrop-filter: blur(40px);
  border-radius: 24px;
  padding: 24px;
  margin: 16px;
}

/* 小卡片（纯文字，可选右侧图片） */
.solution-card-text {
  /* background: #fff; */
  border: 1px solid rgba(16, 28, 47, 0.06);
  flex-direction: row;
  align-items: flex-start;
}

.solution-card-text .card-content {
  flex: 1;
  padding: 28px;
  display: flex;
  flex-direction: column;
  background: transparent;
  border-radius: 0;
}

.solution-card-text .card-img-right {
  flex: 0 0 45%;
  align-self: stretch;
  overflow: hidden;
}

.solution-card-text .card-img-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.solution-card-text:hover .card-img-right img {
  transform: scale(1.03);
}

/* 标签样式 */
.solution-card .card-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: 16px;
  font-weight: 600;
  background: linear-gradient(101deg, #2DD4BF -8%, #2563EB 50%, #F43F5E 107%), linear-gradient(90deg, #3A7CF5 0%, #3C8EF3 34%, #A68AE5 64%, #DD5961 100%), #FFFFFF;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  letter-spacing: 0.08em;
  margin-bottom: 32px;
}

.solution-card .card-title {
  font-size: 24px;
  font-weight: 600;
  color: #101C2F;
  margin-bottom: 8px;
  line-height: normal;
}

.solution-card .card-desc {
  font-size: 16px;
  font-weight: normal;
  line-height: 28px;
  color: #101C2F;
  margin-bottom: 24px;
}

.solution-card .card-link {
  display: inline-flex;
  align-items: center;
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  color: #101c2f;
  text-decoration: none;
  padding: 11px 24px;
  gap: 16px;
  border: 1px solid #101c2f;
  border-radius: 8px;
  transition: all 0.3s ease;
  width: fit-content;
  margin-top: auto;
}
/* .solution-card .card-link:hover {
  background: linear-gradient(121deg, #2DD4BF -73%, #002E93 40%, #F43F5E 152%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  border: 1px solid #0448A9;
} */

/* .solution-card .card-link:active {
  color: #03094E;
  border: 1px solid #03094E;
} */

.solution-card .card-link img {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}


.solution-card .card-link:hover img {
  transform: translate(3px, -3px);
}



/* ========== Certifications Section ========== */


.certifications-wrapper {
  width: 100%;
}

.cert-list {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.cert-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 100px;
  position: relative;
}

/* 分割线 - 每个认证项前面（除了第一个） */
.cert-item:not(:first-of-type)::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 48px;
  background-color: #101C2F;
  opacity: 0.8;
}

.cert-icon {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cert-name {
  font-size: 16px;
  font-weight: normal;
  line-height: 28px;
  color: #101C2F;
  text-align: center;
}
#products .card-content img{
  position: absolute;
    top: 40px;
    right: 0;
}
/* ========== CTA Section ========== */
/* .index-cta {
  margin-top: 40px;
} */

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .solutions-grid {
    grid-template-columns: 1fr;
  }
  
  .solution-card-large {
    min-height: 320px;
  }
  
  .banner-title {
    font-size: 40px;
  }
  
  .banner-desc {
    font-size: 18px;
  }
  
  .cert-list {
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .banner-wrapper {
    padding-top: 100px;
    min-height: 320px;
  }
  
  .banner-title {
    font-size: 28px;
  }
  
  .banner-desc {
    font-size: 16px;
  }
  
  .solution-card-text {
    flex-direction: column;
  }
  
  .solution-card-text .card-img-right {
    flex: none;
    height: 200px;
  }
  
  .solution-card .card-title {
    font-size: 20px;
  }
  
  .cert-list {
    gap: 24px;
  }
  
  .cert-icon {
    width: 48px;
    height: 48px;
  }

  /* 小屏幕隐藏分割线 */
  .cert-item:not(:first-of-type)::before {
    display: none;
  }
}
#en .index-banner .banner-content {
  max-width: 1000px;
}