/**
 * 案例展示部分样式
 */

/* 案例区域容器 */
.cases-section {
  background: #ffffff;
  color: #333;
  padding: 80px 0 100px;
  position: relative;
}

/* 标题和副标题样式 */
.cases-section .section-title {
  color: #222;
  text-align: center;
  font-size: 2.25rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.cases-section .section-subtitle {
  color: #666;
  text-align: center;
  font-size: 0.95rem;
  margin-bottom: 40px;
  font-weight: 400;
}

/* 容器边框和阴影效果 */
.cases-section .container {
  background-color: #fff;
  border-radius: 16px;
  max-width: 1240px;
  margin-top: 20px;
}

/* 案例网格布局 */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1140px;
  margin: 0 auto;
}

/* 案例卡片基础样式 */
.case-card {
  background: #fff;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  padding: 0;
  transition: all 0.3s ease;
  overflow: hidden;
}

.case-card:hover {
  transform: translateY(-3px);
}

/* 案例类别标签 */
.case-category {
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 12px;
  font-weight: 500;
  text-transform: none;
  opacity: 0.7;
}

/* 案例图片容器 */
.case-image-container {
  width: 100%;
  height: 266px;
  overflow: hidden;
  margin-bottom: 15px;
}

/* 案例图片样式 */
.case-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.5s ease;
}

/* 案例标题样式 */
.case-title {
  font-size: 0.95rem;
  color: #222;
  line-height: 1.4;
  margin-bottom: 16px;
  font-weight: 500;
  min-height: 44px;
}

/* 案例数据指标容器 */
.case-metrics {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 12px;
}

/* 单个指标项样式 */
.metric-item {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 1;
  max-width: calc(50% - 6px);
  background-color: #efeffa;
  border-radius: 4px;
  padding: 8px 12px;
}

/* 指标数值样式 */
.metric-value {
  font-size: 18px;
  font-weight: 600;
  color: #866fb3;
  margin-bottom: 2px;
}

/* 指标标签样式 */
.metric-label {
  font-size: 14px;
  text-wrap: nowrap;
  color: #866fb3;
  font-weight: 400;
}

/* "获取解决方案"按钮样式 */
.case-button {
  display: inline-flex;
  font-weight: 500;
  font-size: 16px;
  margin: 8px 0 20px 20px;
  text-decoration: none;
  position: relative;
}

.case-button:after {
  content: '';
  position: absolute;
  left: 120px;
  top: 12px;
  width: 30px;
  height: 1px;
  background-color: #333;
  transition: all 0.3s ease;
}

/* 响应式调整 - 统一断点 */
@media (max-width: 1000px) {
  .cases-grid {
    gap: 25px;
  }

  .case-title {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .cases-grid {
    grid-template-columns: 1fr;
  }

  .case-image-container {
    height: 200px;
  }

  .case-metrics {
    flex-wrap: wrap;
  }

  .metric-item {
    max-width: 100%;
    flex-basis: 50%;
    margin-bottom: 10px;
  }
}
