@import url("base.css");
@import url("header.css");
@import url("footer.css");
@import url("consultation.css");

/* Hero Section */
.hero {
  height: 640px;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  color: #fff;
  text-align: left;
}
.hero .swiper-container {
  height: 640px;

  .container {
    height: 100%;
  }
  .swiper-pagination {
    position: absolute;
    top: -118px;
    left: 0;
    width: 130px;
    white-space: nowrap;
    .swiper-pagination-bullet {
      /* 不允许换行 */
      margin: 0 2px;
      width: 40px;
      height: 2px;
      opacity: 1;
      background: rgba(24, 24, 245, 0.1);
    }
    .swiper-pagination-bullet-active {
      background: #1818f5;
    }
  }
}

.hero h1 {
  margin-top: 200px;
  font-size: 56px;
  font-weight: normal;
  line-height: 64px;
  letter-spacing: 0em;
  font-family: Alibaba PuHuiTi 3;
  color: #061b1f;
}

.hero p {
  margin: 24px 0 32px;
  font-size: 24px;
  font-weight: 400;
  line-height: 32px;
  letter-spacing: 0em;
  color: rgba(3, 13, 13, 0.6);
}

.hero .btn {
  background-color: #1818f5;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  &:hover {
    background-color: #007bff;
  }
}

.swiper-slide {
  font-size: 18px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.swiper-pagination-bullet {
  width: 30px;
  height: 4px;
  background: #ccc;
  border-radius: 0;
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: #007bff;
}

.swiper-button-next,
.swiper-button-prev {
  color: #fff;
}

/* Industry Solutions Section */
.industry-solutions {
  padding: 0 0 80px;
  position: relative;
  overflow: hidden;
  color: #333;
  background-color: #fff; /* 确保背景色为白色，因为卡片是深色的 */
}

/* 移除全局背景相关样式 */

.industry-solutions .container {
  position: relative;
  z-index: 3;
}

.industry-solutions h2 {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 16px;
  color: #061b1f; /* 恢复标题深色 */
}

.industry-solutions .subtitle {
  text-align: center;
  font-size: 16px;
  color: #666;
  margin-bottom: 60px;
}

.solution-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  height: 450px; /* 固定高度 */
}

.solution-card {
  position: relative;
  flex: 1;
  /* 默认状态：蓝色渐变背景 */
  background: linear-gradient(180deg, #0045ff 0%, #007aff 100%);
  color: #fff;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
  border: none; /* 移除之前可能添加的边框 */
}

/* Hover/Expanded State: Specific Background Image */
.solution-card:hover {
  flex: 2.5; /* 展开效果 */
  background-size: cover;
  background-position: center;
}
.solution-card:nth-child(1) {
  background: url("/images/solution/1.png") no-repeat center center;
  background-size: cover;
}
.solution-card:nth-child(2) {
  background: url("/images/solution/2.png") no-repeat center center;
  background-size: cover;
}
.solution-card:nth-child(3) {
  background: url("/images/solution/3.png") no-repeat center center;
  background-size: cover;
}
.solution-card:nth-child(4) {
  background: url("/images/solution/4.png") no-repeat center center;
  background-size: cover;
}
.solution-card:nth-child(5) {
  background: url("/images/solution/5.png") no-repeat center center;
  background-size: cover;
}

/* Specific Backgrounds for Hover State */
.solution-card:nth-child(1):hover {
  background-image: url("/images/industry-solutions-bg.png");
}
.solution-card:nth-child(2):hover {
  background-image: url("/images/industry-solutions-bg2.png");
}
.solution-card:nth-child(3):hover {
  background-image: url("/images/industry-solutions-bg4.png");
} /* Note: bg4 is education */
.solution-card:nth-child(4):hover {
  background-image: url("/images/industry-solutions-bg3.png");
}
.solution-card:nth-child(5):hover {
  background-image: url("/images/industry-solutions-bg5.png");
}

/* Dark Overlay for Hover State to ensure text readability */
.solution-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* 半透明黑色遮罩 */
  opacity: 0;
  transition: opacity 0.5s;
  z-index: 1;
}

.solution-card:hover::before {
  opacity: 1;
}

.card-content {
  padding: 30px 20px;
  height: 100%;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.solution-card h3 {
  font-size: 24px;
  font-weight: normal;
  margin-bottom: 20px;
  white-space: nowrap;
  position: relative;
  display: inline-block;
}

/* Title underline (from reference image) */
.solution-card h3::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: #fff;
  margin-top: 10px;
}

.card-desc {
  margin-bottom: 30px;
  transition: opacity 0.3s;
}

.card-desc p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  white-space: nowrap;
}

.card-tags {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  height: 0; /* 默认隐藏 */
}

.card-tags span {
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.1);
}

.card-detail {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  margin-top: 20px; /* 推到底部 */
}

.card-detail p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.9);
}

.btn-more {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid #fff;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.3s;
  float: right; /* Button on the right as per image */
  background: rgba(0, 0, 0, 0.3);
}

.btn-more:hover {
  background: #fff;
  color: #0045ff;
}

.card-icon {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 150px;
  height: 150px;
  opacity: 0.2; /* Icon visibility in default state */
  transition: all 0.5s;
  filter: brightness(0) invert(1); /* Ensure icon is white/transparent */
}

.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Hover State Logic */
.solution-card:hover .card-desc {
  display: none; /* 展开时隐藏简述 */
}

.solution-card:hover .card-tags {
  opacity: 1;
  transform: translateY(0);
  height: auto;
  margin-bottom: 30px;
}

.solution-card:hover .card-detail {
  opacity: 1;
  transform: translateY(0);
}

/* Hide large icon on hover as the background image takes over */
.solution-card:hover .card-icon {
  opacity: 0;
}

/* Product Application Section */
.product-application {
  height: 728px;
  overflow: hidden;
  background: #ffffff;
}

.product-application h2 {
  margin-top: 64px;
  margin-bottom: 16px;
  text-align: center;
  font-size: 40px;
  font-weight: bold;
  line-height: 48px;
  letter-spacing: 0em;
  color: #061b1f;
}
.product-application p {
  text-align: center;
  font-size: 14px;
  font-weight: normal;
  line-height: 24px;
  letter-spacing: 0em;

  font-variation-settings: "opsz" auto;
  color: rgba(6, 27, 31, 0.6);
}
.tabs {
  margin-top: 2rem;
  text-align: center;
}

.tab-buttons {
  display: inline-block;
  margin-bottom: 56px;
  background: #f0f2f5;
  border-radius: 2px;
}
.tab-content {
  /* background: url("/images/customer-insight.png") no-repeat center right; */
}
.tab-btn {
  background: none;
  border: none;
  padding: 8px 32px;
  cursor: pointer;
  font-size: 1.1rem;
  color: #333;
  position: relative;
  border-radius: 2px;
}

.tab-btn.active {
  background: #1818f5;
  color: #fff;
}

.tab-btn.active::after {
  content: none;
}

.tab-pane {
  display: none;
  /* padding-top: 30px; */
  background-image: url("/images/customer-insight.png");
  background-position: center right;
  background-repeat: no-repeat;
  background-size: cover;
}

.tab-pane.active {
  display: block;
}

.tab-pane-content {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 24px;
}

.tab-pane-content .text {
  position: relative;
  flex: 4;
  padding-top: 20px;
  height: 430px;
  h3 {
    margin-bottom: 24px;
    font-size: 24px;
    font-weight: 400;
    line-height: 40px;
    letter-spacing: 0em;

    font-variation-settings: "opsz" auto;
    color: rgb(0, 0, 0);
  }
  p {
    margin-bottom: 24px;
    font-size: 16px;
    font-weight: normal;
    line-height: 32px;
    letter-spacing: 0em;
    font-variation-settings: "opsz" auto;
    color: rgba(6, 27, 31, 0.8);
    text-align: left;
  }
  .btn {
    position: absolute;
    bottom: 70px;
    right: 0;
    padding: 4px 12px;
    box-sizing: border-box;
    background-color: #1818f5;
    font-size: 14px;
    font-weight: 500;
    line-height: 24px;
    text-align: center;
    letter-spacing: 0em;
    border-radius: 4px;
    font-variation-settings: "opsz" auto;
    color: #fff;
    /* transition: all 0.3s ease; */
  }

  .btn:hover {
    background-color: #8080f7;
    color: #fff;
  }

  .btn::after {
    display: none;
  }
}

.tab-pane-content .image {
  flex: 6;
  width: 588px;
  height: 360px;
  text-align: center;
  /* background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%23dadada' stroke-width='2' stroke-dasharray='4 %2c 10' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e"); */
  padding: 1px;
}

.tab-pane-content img {
  width: 100%;
}

/* Business Blueprint Section */
.business-blueprint {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(1000px);
  text-align: center;
  /* height: 918px; */
  padding-bottom: 76px;
  opacity: 1;
  background: #f6fbff;
}

.business-blueprint h2 {
  margin-top: 64px;
  font-size: 32px;
  color: #061b1f;
  font-weight: 400;
  margin-bottom: 48px;
}

.business-blueprint-container {
  /* background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%23dadada' stroke-width='2' stroke-dasharray='4 %2c 10' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e"); */
}

.business-blueprint img {
  max-width: 100%;
}

/* Sections */
.about-section,
.products-section,
.contact-section {
  padding: 4rem 0;
}

.products-section .product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.product {
  text-align: center;
}

.product i {
  font-size: 3rem;
  color: #007bff;
  margin-bottom: 1rem;
}
