@import url(./base.css);
.service-range {
  margin: 0 auto;
  margin-top: 60px !important;
}
.oneModel {
  margin-top: 20px !important;
}
.hero-section {
  width: 100%;
  min-height: 700px; /* 保证移动端有足够高度 */
  background: url("../assets/images/home/66.webp") no-repeat center center; /* 替换为实际背景图路径 */
  background-size: cover; /* 背景图自适应容器 */
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
   position: relative;
}

/* 内容容器：限制电脑端最大宽度 */
.hero-content {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
 
}

/* 标题：响应式字体（适配不同屏幕） */
.hero-title {
  font-size: var(--banner-size);
  color: var(--primary); /* 文字颜色可根据设计调整 */
  margin-bottom: 24px;
  font-weight: bold;
  padding:5px 40px ;
  position: absolute;
  top: 5%;
  z-index: 12;
 @media (max-width: 768px) {
    font-size: 22px !important ;
}
}

.hero-title::after {
  position: absolute;
  left: 0;
  top: 0;
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, #fff, #fff);
  /*padding: 10px 20px;*/
  clip-path: polygon(0% 0, 95% 0, 100% 100%, 5% 100%);
  color:var(--primary);
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  z-index: -1;
  opacity: 0.8;
  @media (max-width: 786px) {
      width: 90vw !important;
      /*display: none !important ;*/
      background-color: #fff!important;
  }
}

/* 按钮：样式 +  hover 交互 + 响应式 */
.consult-btn {
  font-size: clamp(1rem, 2vw, 1.2rem);
  padding: 12px 24px;
  background-color: var(--primary); /* 按钮颜色可调整 */
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
   position: absolute;
  bottom: 5%;
}

.consult-btn:hover {
  background-color:rgba(115, 155, 45,0.8); /*  hover 加深颜色 */
  transform: translateY(5px);
}

/* 移动端专属适配（屏幕宽度 ≤ 768px 时） */
@media (max-width: 768px) {
  .hero-section {
    padding: 30px 15px;
    min-height: 350px;
  }
  
  .consult-btn {
    padding: 10px 20px;
    margin-top: 20px;
  }
}
/*=========================== 引领特种功能性油脂分子蒸馏技术革新 */
.module {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  margin-top: 40px;
}
/* 上半部分：文字与图片布局 */
.top-section {
  display: flex;
  flex-wrap: wrap; /* 移动端自动换行 */
  /*align-items: center;*/
  gap: 30px; /* 文字与图片的间距 */
  margin-bottom: 20px;
  @media (max-width:786px){
      flex-direction: column;
  }
}

.text-area {
  flex: 3; /* 弹性伸缩，移动端最小宽度400px */

}

/* 标题：左侧绿色竖线 + 响应式字体 */
.section-title {
  color: var(--primary);
  font-size: var(--text-modeltree-size);
  margin-bottom: 15px;
  padding-left: 10px;
  border-left: 4px solid var(--primary);
}

/* 描述文字：响应式字体 + 行高 */
.section-desc {
  color: var(--text);
  font-size: var(--text-modelfive-size);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* 按钮： hover 交互 + 响应式 */
.more-btn {
  background-color: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  transition: all 0.3s ease;
  max-width: 120px;
}

.more-btn:hover {
  background-color: var(--primary);
  color: white;
}

/* 图片容器：弹性伸缩 + 图片自适应 */
.image-area {
  flex: 3;
}

.factory-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* 下半部分：数据统计栏（绿色背景） */
.stats-section {
    /* #4caf50 */
  background-color: var(--primary);
  color: white;
  padding: 20px;
  display: flex;
  /* flex-wrap: wrap; */
  align-items: center;
  justify-content: space-between;
  @media (max-width:786px) {
    flex-direction: column;
}
}

.stats-title {
  font-size: var(--text-model-size);
  font-weight: 600;
  flex: 1 1 100%; /* 占满一行，移动端居上 */
  margin-bottom: 15px;
  text-align: center;
}

/* 数据项容器：弹性换行 */
.stats-items {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-around;
  width: 100%;
}

/* 单个数据项：居中 + 响应式宽度 */
.stats-item {
  text-align: center;
  margin: 10px;
  @media (max-width: 786px) {
    margin: 0 !important;
}
}

.stats-number {
  font-size: var(--text-model-size);
  font-weight: bold;
  margin-bottom: 5px;
}

.stats-label {
  font-size: var(--text-modelfive-size);
}

/* 移动端适配（屏幕宽度 ≤ 768px） */
@media (max-width: 768px) {
  .module {
    padding: 15px;
  }
  .top-section {
    gap: 20px;
  }
  .stats-section {
    padding: 15px;
  }
  /* 数据项：移动端一行显示2个 */
  .stats-item {
    flex: 1 1 calc(50% - 20px);
  }
}
/*================================== 分子蒸馏技术 */
.tech-content {
  display: flex;
  flex-wrap: wrap; /* 移动端自动换行 */
  gap: 30px; /* 文字与图片的间距 */
  margin-bottom: 20px;
  align-items: flex-start;
  @media (max-width:786px) {
    flex-direction: column;
}
}

/* 文字区域：弹性伸缩 + 最小宽度 */
.tech-text {
  flex: 3; /* 最小宽度300px，自动占剩余空间 */
}

/* 标题：左侧绿色竖线 + 响应式字体 */
.tech-title {
  color: var(--primary);
  font-size: clamp(1.2rem, 2vw, 1.8rem); /* 字体随屏幕宽度自适应 */
  margin-bottom: 15px;
  padding-left: 10px;
  border-left: 4px solid var(--primary);
}

/* 描述文字：响应式字体 + 行高 */
.tech-desc {
  font-size: var(--text-modelfive-size);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* “查看更多”按钮：hover 交互 + 响应式 */
.more-btn {
  background-color: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  transition: all 0.3s ease;
}

.more-btn:hover {
  background-color: var(--primary);
  color: white;
}

/* 图片区域：弹性伸缩 + 图片自适应 */
.tech-image {
  flex: 3; /* 最小宽度400px，自动占剩余空间 */
}

.tech-image img {
  width: 100%;
}

/* 技术标签容器：弹性伸缩 + 自动换行 */
.tech-tags {
  display: flex;
  flex-wrap: wrap; /* 移动端自动换行 */
  gap: 15px;
}

/* 单个标签按钮：绿色背景 + 响应式宽度 */
.tag-btn {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 30px 15px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: var(--text-modelfour-size);
  transition: background-color 0.3s ease;
  flex: 1 1 calc(25% - 15px); /* 电脑端4个按钮平分宽度（减去间隙） */
  min-width: 200px; /* 移动端最小宽度，避免挤压 */
  text-align: center;
  transition: all 0.3s;
}

.tag-btn:hover {
  background-color:rgba(115, 155, 45,0.8); /* hover 加深颜色 */
  transform: translateY(5px);
}
.tech-module{
    padding-top:20px ;
}
/* 移动端适配（屏幕宽度 ≤ 768px） */
@media (max-width: 768px) {
  .tech-module {
    padding: 15px;
  }
  .tech-content {
    gap: 20px;
  }
  /* 标签按钮：移动端一行显示2个 */
  .tag-btn {
    flex: 1 1 calc(50% - 15px);
  }
}
/* =======业务范围 */
/* 模块容器：居中 + 内边距 */
.service-module {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* 卡片容器：响应式网格布局 
   - auto-fit：自动适配列数
   - minmax(300px, 1fr)：每列最小300px，剩余空间等分
*/
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  
  gap: 20px; /* 卡片之间的间距 */
 @media (max-width: 768px){
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  }
}

/* 单个卡片：阴影 + 圆角 + hover 动效 */
.service-card {
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  overflow: hidden; /* 让图片圆角与卡片同步 */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px); /* hover 上移效果 */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35); /* hover 阴影加深 */
}

/* 卡片图片：宽度自适应 */
.card-img {
  width: 100%;
  height: auto;
  display: block;
}

/* 卡片标题：字体与间距 */
.card-title {
  font-size: var(--text-model-size);
  color: #333;
  margin: 15px 15px 10px;
  text-align: center;
  font-weight: 600;
}

/* 卡片描述：行高与颜色 */
.card-desc {
  font-size: var(--text-modelfour-size);
  color: #333;
  margin: 0 15px 10px;
  line-height: 1.5;
}

/* 卡片特性列表：自定义圆点 + 布局 */
.card-features {
  list-style: none;
  margin: 0 15px 15px;
}

.card-features li {
  font-size: calc(var(--text-modelfour-size) - 1px);
  color: #666;
  margin-bottom: 5px;
  padding-left: 20px;
  position: relative;
}

.card-features li::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("../assets/images/apply_scene/apply6.png");
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  left: 0px;
  top: 5px;
}

/* 卡片链接：颜色与 hover 效果 */
.card-link {
  display: inline-block;
 font-size: var(--text-modelfour-size);
  color: var(--primary);
  text-decoration: none;
  margin: 0 15px 15px;
  transition: color 0.3s ease;
}

.card-link:hover {
  color: #388e3c; /* hover 加深颜色 */
}

/* 移动端适配（屏幕宽度 ≤ 768px） */
@media (max-width: 768px) {
  .service-module {
    padding: 15px;
  }
  .service-cards {
    gap: 15px;
  }
  /* 调整字体大小，适配小屏幕 */
  .card-title {
    font-size: 1.1rem;
  }
  .card-desc,
  .card-features li,
  .card-link {
    font-size: 0.8rem;
  }
}
