/* 自然语言处理页面样式 */
#nlp-intro{
   width: 100%;
   height: 100%; /* 设置最小高度为视口高度 */
   background-image: url('../images/图片资料/能力中心/图像稽核/图像稽核背景图.png');
   background-size: cover; /* 使用 cover 替代 100% 100% */
   background-position: center; /* 确保背景图片居中显示 */
   background-repeat: no-repeat; /* 防止背景图重复 */
   display: flex; /* 添加弹性布局 */
   align-items: center; /* 垂直居中内容 */
   position: relative; /* 添加相对定位 */
}

#nlp-intro .container {
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}


/* 介绍部分 */
.nlp-intro-content {
  width: 50%;
  display: flex;
  align-items: center;
  gap: 60px;
  margin-top: 30px;
 
}

.nlp-intro-text {
  flex: 0.7;
}

.nlp-intro-text p {
  margin-bottom: 20px;
  line-height: 1.8;
  font-size: 18px; /* 增大字体 */
  color: #fff; /* 加深字体颜色 */
}
.nlp-intro-text h1 {
  color: #fff; /* 加深字体颜色 */
  font-size: 42px; 
  margin-bottom: 20px;
}

.nlp-intro-image {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2); /* 增强阴影 */
}

.nlp-intro-image img {
  width: 100%;
  height: auto;
  display: block;
}

.section-title {
  position: relative;
  margin-bottom: 50px;
  text-align: center;
  font-size: 32px;
  font-weight: 700;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #3498db, #2980b9);
  border-radius: 2px;
}
/* 识别能力 */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.capability-item {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  text-align: left; /* 改为左对齐 */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex; /* 添加flex布局 */
  align-items: flex-start; /* 顶部对齐 */
  gap: 20px; /* 图标和内容之间的间距 */
}

.capability-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.capability-item .icon {
  width: 70px;
  height: 70px;
  margin: 0; /* 移除自动边距 */
  flex-shrink: 0; /* 防止图标缩小 */
}

.capability-item .content {
  flex: 1; /* 让内容区域占据剩余空间 */
}

.capability-item .icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.capability-item h3 {
  font-size: 22px;
  color: #333;
  margin-bottom: 15px;
  text-align: left; /* 确保标题左对齐 */
  width: 100px; /* 确保标题宽度占满 */ 
}

.capability-item p {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  text-align: left; /* 确保段落左对齐 */
}

/* 应用场景 */
.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.scenario-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 300px;
}

.scenario-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.scenario-item:hover img {
  transform: scale(1.05);
}

/* 应用场景部分样式修改 */
.scenario-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 20px;
  height: 200px; /* 设置固定高度 */
  overflow-y: auto; /* 内容过多时可滚动 */
  box-sizing: border-box; /* 确保padding不会增加元素总高度 */
}

.scenario-content h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.scenario-content ul {
  list-style-type: disc;
  padding-left: 20px;
  margin-top: 10px;
}

.scenario-content li {
  margin-bottom: 5px;
  font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .capabilities-grid {
    grid-template-columns: 1fr;
  }
  
  .scenarios-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nlp-intro-content {
    flex-direction: column;
    gap: 40px;
  }
  
  .capability-item {
    padding: 20px;
  }
}

@media (max-width: 576px) {
  .scenarios-grid {
    grid-template-columns: 1fr;
  }
  
  .scenario-item {
    height: 250px;
  }
}