/* ========== EMS电子制造区域增强样式 ========== */

@media (min-width: 1024px) {
  /* 优化卡片布局和视觉效果 */
  .ems-items-wrapper ul li {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    border: 1px solid rgba(0, 102, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
  }

  /* 添加卡片背景装饰 */
  .ems-items-wrapper ul li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0066ff 0%, #00d4ff 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
  }

  .ems-items-wrapper ul li:hover::before {
    transform: scaleX(1);
  }

  .ems-items-wrapper ul li:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 102, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.3);
  }

  /* 增强图标效果 */
  .ems-icon {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    transition: all 0.4s ease;
  }

  .ems-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 110%;
    height: 110%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
  }

  .ems-items-wrapper ul li:hover .ems-icon::before {
    opacity: 1;
  }

  .ems-items-wrapper ul li:hover .ems-icon {
    transform: scale(1.1) rotate(5deg);
  }

  /* SVG图标动画增强 */
  .ems-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 8px rgba(0, 102, 255, 0.2));
    transition: all 0.4s ease;
  }

  .ems-items-wrapper ul li:hover .ems-icon svg {
    filter: drop-shadow(0 8px 16px rgba(0, 212, 255, 0.4));
  }

  /* 优化文字区域 */
  .ems-text h3 {
    color: #1a1a1a;
    font-weight: 700;
    margin-bottom: 12px;
    transition: color 0.3s ease;
  }

  .ems-items-wrapper ul li:hover .ems-text h3 {
    color: #0066ff;
  }

  .ems-text p {
    color: #666;
    line-height: 1.7;
    font-size: 15px;
    transition: color 0.3s ease;
  }

  .ems-items-wrapper ul li:hover .ems-text p {
    color: #333;
  }

  /* 添加"了解更多"提示 */
  .ems-items-wrapper ul li::after {
    content: '了解更多 →';
    position: absolute;
    bottom: 20px;
    right: 25px;
    color: #0066ff;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
  }

  .ems-items-wrapper ul li:hover::after {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 移动端优化 */
@media (max-width: 1023px) {
  .ems-items-wrapper ul li {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0, 102, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
  }

  .ems-icon {
    width: 80px;
    height: 80px;
  }
}
