/* ========== 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, #00d4ff 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: #00d4ff;
  }

  .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: #00d4ff;
    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区域整体 */
  .ems-services-section {
    padding: 40px 0 !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%) !important;
  }

  /* 标题区域 */
  .ems-services-section .index-text {
    margin-bottom: 24px !important;
  }

  .ems-services-section .index-text h2.cn {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    margin-bottom: 8px !important;
  }

  .ems-services-section .index-text h3.en {
    font-size: 11px !important;
    color: #888 !important;
    letter-spacing: 1px !important;
  }

  /* 卡片列表布局 */
  .ems-items-wrapper ul {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .ems-items-wrapper ul li {
    background: #ffffff !important;
    border-radius: 16px !important;
    border: 1px solid rgba(0, 102, 255, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
    margin-bottom: 0 !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
  }

  .ems-items-wrapper ul li:active {
    transform: scale(0.98) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
  }

  .ems-items-wrapper ul li a {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 20px !important;
    text-decoration: none !important;
  }

  /* 图标样式 */
  .ems-icon {
    flex-shrink: 0 !important;
    width: 64px !important;
    height: 64px !important;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.08) 0%, rgba(0, 212, 255, 0.05) 100%) !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
  }

  .ems-icon svg {
    width: 40px !important;
    height: 40px !important;
  }

  /* 文字区域 */
  .ems-text {
    flex: 1 !important;
    min-width: 0 !important;
  }

  .ems-text h3 {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    margin-bottom: 6px !important;
    line-height: 1.3 !important;
  }

  .ems-text p {
    font-size: 13px !important;
    color: #666 !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  /* 了解更多按钮 */
  .ems-services-section .index-more {
    margin-top: 24px !important;
  }

  .ems-services-section .index-more a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: linear-gradient(135deg, #0066ff 0%, #00a8ff 100%) !important;
    color: #fff !important;
    padding: 12px 32px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.3) !important;
    transition: all 0.3s ease !important;
  }

  .ems-services-section .index-more a:active {
    transform: scale(0.95) !important;
  }
}
