/**
 * 首页客户案例区块样式
 * 冻结自参考站 en/index.html 的 #case section
 * 作用域前缀：.ki-home-cases
 */

.ki-home-cases {
  padding: var(--space-12, 80px) 0;
  background: var(--surface-alt, #f8f9fa);
}

.ki-home-cases .container {
  max-width: var(--container-max, 1200px);
  margin: 0 auto;
  padding: 0 var(--space-4, 16px);
}

.ki-home-cases .section-head {
  text-align: center;
  margin-bottom: var(--space-8, 48px);
}

.ki-home-cases .section-kicker {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--brand-blue, #036edc);
  margin-bottom: var(--space-3, 12px);
}

.ki-home-cases .section-heading {
  font-family: var(--font-display, 'Commissioner', sans-serif);
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 600;
  color: var(--text, #1a1a1a);
  margin: 0;
  line-height: 1.25;
}

.ki-home-cases .grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5, 20px);
}

.ki-home-cases .cs-card {
  display: flex;
  gap: 28px;
  padding: 28px 24px;
  border: 1px solid var(--gray-border, #e5e5e5);
  border-radius: var(--radius, 8px);
  background: var(--surface, #fff);
  text-decoration: none;
  color: var(--text, #1a1a1a);
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  align-items: center;
}

.ki-home-cases .cs-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md, 0 10px 30px rgba(0,0,0,0.1));
  border-color: var(--brand, #e53935);
}

.ki-home-cases .cs-logo {
  flex-shrink: 0;
  width: 160px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-light, #f5f5f5);
  border-radius: 8px;
  padding: 10px;
}

.ki-home-cases .cs-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ki-home-cases .cs-body {
  flex: 1;
  min-width: 0;
}

.ki-home-cases .cs-badge {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--brand-blue, #036edc);
  margin-bottom: 6px;
}

.ki-home-cases .cs-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text, #1a1a1a);
  line-height: 1.3;
}

.ki-home-cases .cs-card:hover .cs-body h3 {
  color: var(--brand, #e53935);
}

.ki-home-cases .cs-client {
  font-size: 13px;
  color: var(--text-secondary, #666);
  font-weight: 400;
  margin: 0;
}

.ki-home-cases .cs-loc {
  color: var(--text-secondary, #666);
}

.ki-home-cases .cta-row {
  text-align: center;
  margin-top: var(--space-8, 48px);
}

.ki-home-cases .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius, 8px);
  transition: all 0.3s ease;
}

.ki-home-cases .btn-outline {
  color: var(--text, #1a1a1a);
  border: 2px solid var(--border, #e5e5e5);
  background: transparent;
}

.ki-home-cases .btn-outline:hover {
  color: var(--brand, #e53935);
  border-color: var(--brand, #e53935);
}

/* Tablet */
@media (max-width: 1024px) {
  .ki-home-cases .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 640px) {
  .ki-home-cases .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .ki-home-cases .cs-card {
    padding: 20px 16px;
    gap: 16px;
  }
  
  .ki-home-cases .cs-logo {
    width: 120px;
    height: 76px;
  }
  
  .ki-home-cases .cs-body h3 {
    font-size: 15px;
  }
}

@media (max-width: 420px) {
  .ki-home-cases .cs-card {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
    text-align: center;
  }
  
  .ki-home-cases .cs-logo {
    width: 100%;
    height: 80px;
  }
}
