@import "base.css";
/* 工程服务范围 */
.service-range {
  margin: 0 auto;
  margin-top: 40px;
}

.service-cards {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
}

.card {
  flex: 1 1 300px;
  max-width: 350px;
  border: 1px solid #eee;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-header {
  background: linear-gradient(to bottom, #739B2D, #7ebe0f);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 150px;
  padding: 35px;
}
.card-header img{
    height: 80px;
}
/* 卡片标题 */
.card .card-title {
  text-align: center;
  font-size: var(--text-modeltree-size);
  margin: 15px 0 10px;
   color: var(--text);
}

/* 卡片描述文字 */
 .card .card-desc {
  text-align: center;
  color: var(--text-light);
  font-size: var(--text-modelfive-size);
  padding: 0 40px;
  margin-bottom: 15px;
}

/* 卡片列表 */
.card-list {
  list-style-type: disc;
  /* padding-left: 40px; */
  margin: 0 40px 20px;
}

/* 列表项 */
.card-list li {
  margin-bottom: 8px;
 color: var(--text);
  font-size: var(--text-modelfive-size);
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-list li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary);
}
/*====================================核心工程能力  */

.advantages-container {
  width: 100%;
  margin: 0 auto;
  padding: 20px;
}

.advantage-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  margin-bottom: 20px;
  transition: box-shadow 0.3s ease; /* hover阴影过渡 */
}

.advantage-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.advantage-icon {
  width: 40px;
  height: 40px;
  margin-right: 20px;
  flex-shrink: 0; /* 防止图标被压缩 */
  color: #7cb342; /* 图标颜色匹配主题绿 */
}

/* 文字内容区域 */
.advantage-content {
  flex: 1; /* 占满剩余宽度 */
}

.advantage-title {
  font-size: var(--text-modeltree-size);
  color: var(--primary);
  margin-bottom: 10px;
  font-weight: 600;
}

.advantage-desc {
  font-size: var(--text-modelfive-size);
     color: var(--text);
  line-height: 1.6;
  margin-bottom: 8px;
}

/* 响应式：移动端纵向排列 */
@media (max-width: 768px) {
  .advantage-item {
    flex-direction: column; /* 图标与文字纵向排列 */
  }
  .advantage-icon {
    margin-bottom: 15px; /* 图标下方增加间距 */
  }
}
/* ===================================核心工程能力  end */
/* ================工程项目实施流程 */
.process-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* 时间线父容器：PC端Flex布局 */
.timeline {
  display: flex;
  position: relative;
}

/* 垂直时间轴（PC端居中，移动端靠左） */
.timeline-axis {
  width: 2px;
  background-color: #7cb342; /* 绿色轴线 */
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  transform: translateX(-50%);
  transition: left 0.3s; /* 响应式时轴线位置过渡 */
}

/* 左侧内容区：PC端占50%，右对齐 */
.timeline-left {
  width: 50%;
  padding-right: 60px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-evenly;
  margin-right:70px ;
   @media (max-width:786px ){
      align-items: center !important;
      margin: 0!important; gap: 20px;
  }
}

/* 右侧内容区：PC端占50%，左对齐 */
.timeline-right {
  width: 50%;
  padding-left: 60px;
   margin-left:50px ;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 60px;
  @media (max-width:786px ){
      align-items: center !important;
     gap: 20px;
      margin: 20px  0 0!important;
  }
}

/* 步骤卡片通用样式：边框 + 相对定位（伪元素依赖） */
.process-card {
  border: 1px solid #7cb342;
  border-radius: 6px;
  padding: 10px 20px;
  width: 80%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
  position: relative; /* 伪元素相对卡片定位 */
}

.process-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* hover时阴影加深 */
}

/* 左侧卡片：文字右对齐 + 右侧三角形（伪元素） */
.process-card.left {
  text-align: right;
}
.timeline-left .process-card::before {
  content: "";
  position: absolute;
  right: -12px; /* 三角形超出卡片右侧，与轴线衔接 */
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #7cb342; /* 三角形颜色匹配边框 */
  @media (max-width: 786px) {
    display: none !important;
}
}
.timeline-left .card-title{
    padding: 0 !important;
}
/* 右侧卡片：文字左对齐 + 左侧三角形（伪元素） */
.timeline-right .process-card::before {
  content: "";
  position: absolute;
  left: -12px; /* 三角形超出卡片左侧，与轴线衔接 */
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 12px solid #7cb342; /* 三角形颜色匹配边框 */
  @media (max-width: 786px) {
    display: none !important;
}
}

/* 卡片图标容器：居中显示 */
.card-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7cb342; /* 图标颜色（与轴线同色） */
}

/* 卡片标题 */
.process-container .card-title {
  font-size: var(--text-modeltree-size);
  color:#000;
  font-weight: 600;
  margin-top: 10px;
}

/* 卡片描述文字 */
.process-container .card-desc {
  font-size: var(--text-modelfive-size);
color:#000;
  line-height: 1.6;
  margin-top: 10px;
}

.timeline-left .card-icon {
  margin-left: 86%;
   @media (max-width: 786px) {

  margin-left: 0!important ;
    
}
}
.timeline-left .card-desc,
.timeline-left .card-title {
  text-align: right;
  @media (max-width: 786px) {
  text-align: left !important;
    padding: 0;
}
}
.timeline-right .card-icon {
  margin-left: 6% !important;
}
.timeline-right .card-desc,
.timeline-right .card-title {
  text-align: left;  padding: 0;
}
/* 步骤序号：圆形 + 垂直居中于轴线 */
.step-number {
  width: 30px;
  /* height: 30px; */
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-modelfive-size);
  font-weight: 600;
  position: absolute;
  left: 0;
  top: 49%;
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: left 0.3s;
  border-bottom: var(--primary) 1px solid;
}
.timeline-right .step-number {
  left: -10%;
}
.timeline-left .step-number {
  left: 110%;
}
.timeline-left{
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}
  .timeline-right {
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
  }
/* 移动端适配（屏幕＜768px） */
@media (max-width: 768px) {
  /* 时间线改为垂直堆叠 */
  .timeline {
    flex-direction: column;
  }

  /* 轴线靠左 */
  .timeline-axis {
    left: 24px;
    transform: none;
    @media (max-width: 786px) {
    display: none !important;
}

    .process-card,
  .process-card.left {
    width: calc(100%);
    /*text-align: left;*/
  }
  }
  /* 卡片宽度自适应，与轴线保持间距 + 统一左对齐 */
  .process-card,
  .process-card.left {
    width: calc(100% - 48px);
    margin-left:10px  auto;
    text-align: left;
  }

  /* 左侧卡片的三角形方向调整（移动端统一左三角形） */
  .timeline-left .process-card::before {
    border-left: 12px solid #7cb342;
    border-right: none;
    left: -12px;
    right: auto;
    display: none !important;

  }

  /* 序号靠左，与轴线对齐 */
  .step-number {
    left: 12px;
    transform: translate(0, -50%); /* 仅垂直居中 */
    
    display: none !important;

  }
}
/* ===================================工程项目实施流程  end */
/* ==========================================成功工程案例 */

/* 外层容器：居中 + 内边距 */
.projects-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* 项目卡片网格：PC端多列自适应，移动端单列 */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px; /* 卡片间距 */
}

/* 单个项目卡片：阴影 + 圆角 +  hover 效果 */
.project-card {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  overflow: hidden; /* 防止内部元素溢出 */
  transition: box-shadow 0.3s ease;
}

.project-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.32); /* hover 阴影加深 */
}

/* 图片容器：相对定位（用于标签绝对定位） */
.project-img-wrapper {
  position: relative;
  height: 240px; /* 图片固定高度 */
  overflow: hidden; /* 图片缩放不溢出 */
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 保持图片比例 */
  transition: transform 0.3s ease; /* 图片缩放动画 */
}

.project-card:hover .project-img {
  transform: scale(1.05); /* hover 图片轻微放大 */
}

/* 项目标签：绝对定位在图片右上角 */
.project-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #ffb700; /* 黄色标签背景 */
  color: #fff;
  font-size: var(--text-modelfive-size);
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
}

/* 卡片内容区域：内边距 + 文字样式 */
.project-content {
  padding: 16px;
}

.project-title {
  font-size: var(--text-modeltree-size);
  font-weight: 600;
  margin-bottom: 8px;
  color:   color: var(--text);;
  line-height: 1.8;
}

.project-desc {
  font-size: var(--text-modelfive-size);
  color:   color: var(--text);;
  margin-bottom: 16px;
  line-height: 1.8;
}

/* 数据指标网格：2列布局 */
.project-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px; /* 指标项间距 */
}

.metric-item {
  background-color: #f8faf5; /* 浅绿背景 */
  padding: 12px;
  border-radius: 6px;
  text-align: center;
}

.metric-label {
  font-size: var(--text-modelfive-size);
  color: var(--text);
  margin-bottom: 4px;
}

.metric-value {
  font-size: var(--text-modeltree-size;)
  font-weight: 600;
  line-height: 1.8;
}

/* 指标值颜色区分 */
.metric-value.red {
  font-size: var(--text-modeltree-size);
  color: #de2910; /* 红色文字 */
  font-weight: bold;
}

.metric-value.green {
    font-size: var(--text-modeltree-size);
  color:var(--primary); /* 绿色文字 */
   font-weight: bold;
}

/* 移动端适配（屏幕＜768px） */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr; /* 单列布局 */
  }
  .project-img-wrapper {
    height: 180px; /* 缩小图片高度 */
  }
}
/* ========================================成功工程案例 */
