/* 首页特定样式 - 字体已在 fonts.css 中统一管理 */

/* 主要内容区域样式 */
.banner-section {
  position: relative;
  min-height: 644px;
  background: linear-gradient(
    180deg,
    rgba(240, 245, 255, 1) 0%,
    rgba(240, 245, 255, 0.9) 100%
  );
  display: flex;
  align-items: center;
  /* justify-content: center; */
  /* text-align: center; */
  padding: 80px 20px;
  overflow: hidden;
  margin-top: -80px; /* 抵消header的padding-top */
}

.banner-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../images/index/hf.jpg") no-repeat center center;
  background-size: cover;
  opacity: 0.8;
  z-index: 1;
}

.banner-content {
  position: relative;
  z-index: 2;
  max-width: 1920px;
  margin-left: 15%;
  /* margin: 0 auto; */
}

.banner-title {
  font-family: var(--font-heading);
  font-size: 48px;
  color: #0066ff;
  margin-bottom: 72px;
  line-height: 1.2;
}

.banner-subtitle {
  font-size: 36px;
  color: #333333;
  margin-bottom: 72px;
  font-family: var(--font-heading);
}

.banner-btn-container {
  display: flex;
  align-items: center;
  cursor: pointer;
  /* margin-left: 10%; */
  /* justify-content: center; */
  color: #0066ff;
  font-size: 16px;
  gap: 10px;
  background: #ecf5fc;
  width: fit-content;
  border: 1px solid #0066ff;
  border-radius: 3px;
  padding: 10px 20px;
}

.banner-btn {
  display: inline-block;
  padding: 15px 40px;
  background: #0066ff;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-size: 18px;
  font-weight: 500;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 102, 255, 0.3);
}

/* 悬浮动画效果 */
.hover-float {
  transition: transform 0.3s ease;
}

.hover-float:hover {
  transform: translateY(-5px);
}

/* 响应式样式 */
@media (max-width: 768px) {
  .banner-title {
    font-size: 32px;
  }

  .banner-subtitle {
    font-size: 20px;
  }

  .banner-btn {
    padding: 12px 30px;
    font-size: 16px;
  }
}

/* 公司介绍部分 */
.company-intro {
  padding: 80px 0;
  background-color: #F2F4FA;
  text-align: center;
}

.section-title {
  font-family: var(--font-medium);
  font-size: 32px;
  color: #333;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 16px;
  color: #333333;
  margin-bottom: 60px;
  font-family: var(--font-light);
}

.feature-container {
  max-width: 1400px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 5px;
  padding: 25px 30px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.03);
}

.feature-cards {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}

.feature-card {
  width: calc(25% - 15px);
  margin-bottom: 30px;
  text-align: center;
  padding: 5px 20px;
  background-color: #fff;
  position: relative;
  /* border-radius: px; */
  /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.05); */
}

/* 添加右侧竖线 */
.feature-card:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -7.5px;
  bottom: -25px; /* 调整竖线的起始位置 */
  height: calc(60% - 10px); /* 调整竖线的长度，上下各留出20px的间距 */
  width: 1px; /* 减小分隔线的宽度 */
  background-color: #EAEAEA;
}

.feature-card-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-family: var(--font-primary);
}

.feature-card-icon {
  width: 50px;
  height: 50px;
  margin-right: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  /* border: 1px dashed #1E90FF; */
  border-radius: 5px;
  position: relative;
}

.feature-card-icon::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 60px;
  right: 3px;
  bottom: 3px;
  width: 40px;
  height: 2px;
  background-color: #23AAFF;
  /* border-radius: 3px; */
  /* background-color: rgba(30, 144, 255, 0.08); */
}

.feature-card-icon img {
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 2;
  opacity: 1; /* 显示图标 */
}

.feature-card-title {
  font-size: 16px;
  font-weight: bold;
  color: #0D7DFC;
  text-align: left;
  margin: 0;
}

.feature-card-divider {
  height: 1px;
  background-color: #eee;
  margin: 15px 0;
}

.feature-card-content {
  text-align: left;
  font-family: var(--font-light);
}

.feature-card-desc {
  font-size: 14px;
  line-height: 1.8;
  color: #666;
  text-align: left;
  margin: 0;
}

/* 修改响应式布局下的竖线显示逻辑 */
@media (max-width: 992px) {
  .feature-card {
    width: calc(50% - 20px);
  }

  .feature-card:nth-child(2n)::after {
    display: none; /* 在两列布局时，每行最后一个不显示竖线 */
  }
}

@media (max-width: 768px) {
  .feature-container {
    padding: 20px 10px;
  }
}

@media (max-width: 576px) {
  .feature-card {
    width: 100%;
    margin-bottom: 30px;
  }

  .feature-card::after {
    display: none; /* 在单列布局时不显示竖线 */
  }
}

/* 服务地图部分 */
.service-map {
  width: 100%;
  margin: 0 auto;
  padding: 20px 0;
  text-align: center;
  position: relative;
}

.service-map::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: contain;
  opacity: 0.1;
}

.map-stats {
  /* margin-bottom: 40px; */
  width: fit-content;
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 150px;
  left: 20%;
  z-index: 2;
}

.stat-item {
  display: inline-block;
  margin: 0 40px;
}

.stat-number {
  font-size: 36px;
  color: #0D7DFC;
  font-family: var(--font-number);
}

.stat-label {
  font-size: 16px;
  color: #333333;
  margin-top: 10px;
  font-family: var(--font-light);
}

.map-container {
  max-width: 1200px;
  margin: 0 auto;
  height: 600px;
  background: url("../images/index/map.png") no-repeat center center;
  background-size: contain;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .map-container {
    height: 400px;
  }

  .stat-item {
    margin: 0 20px;
  }

  .stat-number {
    font-size: 28px;
  }

  .stat-label {
    font-size: 14px;
  }
}

/* 我们的优势新版布局 */
.our-advantages {
  padding: 80px 0;
  background: #DFE7FA;
  .section-title  {
    text-align: center;
    font-family: var(--font-medium);
    font-weight: 65 Medium;
    color:#333333;
  }
  .section-subtitle {
    text-align: center;
    font-family: var(--font-light);
    color:#333333;
    font-weight: 45 Light;
  }
}
.advantage-flex {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  gap: 30px;
}
.advantage-main-card {
  flex: 1 1 18%;
  background: url('../images/index/advantage.png') no-repeat center center / cover;
  color: #fff;
  border-radius: 3px;
  box-shadow: 0 8px 32px rgba(58,141,255,0.18);
  padding: 48px 16px;
  display: flex;
  flex-direction: column;
}
.main-card-title {
  font-size: 20px;
  font-family: var(--font-primary);
  font-weight: 55 Regular;
  margin-bottom: 48px;
  letter-spacing: 1px;
}
.main-card-desc {
  font-size: 14px;
  line-height: 2;
  font-family: var(--font-light);
  font-weight: 45 Light;
}
.advantage-grid {
  flex: 2 1 67%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 24px;
}
.advantage-card {
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  padding: 32px 20px 24px 24px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.advantage-card-title {
  font-size: 16px;
  font-family: var(--font-primary);
  font-weight: 55 Regular;
  color: #0D7DFC;
  margin-bottom: 16px;
}
.advantage-card-desc {
  font-size: 14px;
  font-family: var(--font-light);
  font-weight: 45 Light;
  color: #333;
  line-height: 1.8;
}
@media (max-width: 1100px) {
  .advantage-flex {
    flex-direction: column;
    gap: 24px;
  }
  .advantage-main-card {
    max-width: 100%;
    min-width: unset;
    margin-bottom: 16px;
  }
  .advantage-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }
}
@media (max-width: 700px) {
  .advantage-flex {
    flex-direction: column;
    gap: 16px;
  }
  .advantage-main-card {
    padding: 32px 16px;
  }
  .advantage-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 1fr);
    gap: 12px;
  }
  .advantage-card {
    padding: 20px 12px 16px 14px;
    min-height: unset;
  }
}

/* 品牌展示部分 */
.brand-showcase {
  padding: 80px 0;
  background: #f5f6fa;
  text-align: center;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
  justify-items: center;
  align-items: center;
}

.brand-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  box-shadow: none;
  border: none;
  cursor: pointer;
}

.brand-img-wrapper {
  width: 120px;
  height: 120px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  margin-bottom: 10px;
  transition: border 0.2s, box-shadow 0.2s, transform 0.3s cubic-bezier(.4,2,.6,1);
  border: 2px solid transparent;
  overflow: hidden;
}

.brand-item:hover .brand-img-wrapper {
  border: 2px solid #1165FF;
  box-shadow: 0 8px 32px rgba(17,101,255,0.18);
  transform: scale(1.15);
}

.brand-img-wrapper img {
  transition: transform 0.4s cubic-bezier(.4,2,.6,1);
}

.brand-item:hover .brand-img-wrapper img {
  transform: scale(1.4);
}

.brand-label {
  margin-top: 0;
  text-align: center;
  color: #4CA6FF;
  font-size: 14px;
  letter-spacing: 1px;
  width: fit-contact;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 联系我们部分 */
.contact-us {
  padding: 80px 0;
  text-align: center;
}

.contact-form {
  display: flex;
  align-items: center;
  border-radius: 8px;
  padding: 6px 6px 6px 16px;
  max-width: 440px;
  margin: 0 auto;
}

.contact-input {
  flex: 1;
  border: 1.5px solid #E3EAF5;
  outline: none;
  font-size: 16px;
  padding: 8px 12px;
  background: #fff;
  color: #A9A9A9;
  font-family: var(--font-light), sans-serif;
  font-weight: 45 Light;
  box-shadow: none;
  /* transition: border-color 0.2s; */
}

.contact-input::placeholder {
  color: #C0C7D1;
  font-size: 15px;
}

.contact-input:focus {
  border: 1.5px solid #4CA6FF;
  outline: none;
  box-shadow: none;
  background: #fff;
  color: #333;
}

.contact-submit {
  /* margin-left: 8px; */
  padding: 0 28px;
  height: 42px;
  border: none;
  background: linear-gradient(90deg, #4CA6FF 0%, #1CB5FF 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  font-family: var(--font-medium), sans-serif;
  font-weight: 65 Medium;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(76,166,255,0.10);
}

.contact-submit:hover {
  background: linear-gradient(90deg, #4CA6FF 0%, #1CB5FF 100%);
  box-shadow: 0 2px 8px rgba(76,166,255,0.10);
  transform: none;
}

/* 首页特定的导航栏样式 */
body.index-page #header.header-transparent {
  background: transparent !important;
  box-shadow: none !important;
}

body.index-page #header.header-default {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

body.index-page #header nav ul li a {
  color: #333;
}

body.index-page #header nav ul li a:hover,
body.index-page #header nav ul li a.active {
  color: #0066ff;
}

/* 产品矩阵样式 */
.about-products {
  padding: 80px 20px;
  background: #F2F4FA;
  text-align: center;
}

.about-products-title {
  font-size: 36px;
  font-family: var(--font-heading);
  color: #333;
  margin-bottom: 16px;
}

.about-products-subtitle {
  font-size: 16px;
  color: #666;
  margin-bottom: 60px;
  font-family: var(--font-light);
}

.about-products-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 85%;
  margin: 0 auto;
}

.about-products-card {
  background: #fff;
  border-radius: 3px;
  padding: 10px 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.about-products-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.about-products-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.about-products-icon::before {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

.about-products-card-title {
  font-size: 18px;
  font-family: var(--font-medium);
  color: #0D7DFC;
  margin-bottom: 16px;
}

.about-products-card-subtitle {
  font-size: 14px;
  color: #333333;
  margin-bottom: 16px;
  font-family: var(--font-primary);
}

.about-products-card-desc {
  font-size: 14px;
  color: #333333;
  line-height: 1.6;
  font-family: var(--font-primary);
}

/* 响应式样式 */
@media (max-width: 992px) {
  .about-products-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .about-products {
    padding: 60px 20px;
  }

  .about-products-title {
    font-size: 28px;
  }

  .about-products-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-products-card {
    padding: 30px 20px;
  }
}
