/*-----------------------------------*\
  #WHY CHOOSE US ENHANCED - 优化样式
\*-----------------------------------*/

.why-choose-enhanced {
  position: relative;
}

/* 卡片悬停效果 */
.why-choose-card {
  cursor: default;
  border: 1px solid transparent;
}

.why-choose-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 102, 102, 0.15) !important;
  border-color: rgba(0, 166, 166, 0.1);
}

/* 数字标识动画 */
.why-choose-card .card-number {
  transition: all 0.3s ease;
}

.why-choose-card:hover .card-number {
  transform: scale(1.1) translateX(-4px) translateY(4px);
  color: rgba(0, 166, 166, 0.12) !important;
}

/* 图标容器悬停效果 */
.why-choose-card .icon-wrapper {
  box-shadow: 0 0 0 rgba(0, 166, 166, 0.2);
}

.why-choose-card:hover .icon-wrapper {
  transform: scale(1.1) rotate(5deg) !important;
  box-shadow: 0 6px 20px rgba(0, 166, 166, 0.2);
}

/* 标题颜色变化 */
.why-choose-card h3 {
  transition: color 0.3s ease;
}

.why-choose-card:hover h3 {
  color: var(--verdigris) !important;
}

/* 发光效果 */
.why-choose-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(0, 166, 166, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.why-choose-card:hover::before {
  opacity: 1;
}

/* 响应式布局 */
@media (max-width: 768px) {
  .why-choose-enhanced {
    padding-block: 60px 50px !important;
  }
  
  .why-choose-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  
  .why-choose-card {
    padding: 32px 24px !important;
  }
  
  .why-choose-card .card-number {
    font-size: 56px !important;
  }
  
  .why-choose-card .icon-wrapper {
    width: 64px !important;
    height: 64px !important;
  }
  
  .why-choose-card .icon-wrapper img {
    width: 36px !important;
    height: 36px !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .why-choose-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (min-width: 1025px) {
  .why-choose-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* 每个卡片不同的渐变色 */
.why-choose-card:nth-child(1) .icon-wrapper {
  background: linear-gradient(135deg, rgba(0, 166, 166, 0.12), rgba(0, 166, 166, 0.06)) !important;
}

.why-choose-card:nth-child(2) .icon-wrapper {
  background: linear-gradient(135deg, rgba(0, 198, 198, 0.12), rgba(0, 198, 198, 0.06)) !important;
}

.why-choose-card:nth-child(3) .icon-wrapper {
  background: linear-gradient(135deg, rgba(0, 214, 214, 0.12), rgba(0, 214, 214, 0.06)) !important;
}

.why-choose-card:nth-child(4) .icon-wrapper {
  background: linear-gradient(135deg, rgba(0, 230, 230, 0.12), rgba(0, 230, 230, 0.06)) !important;
}

/* 打印样式 */
@media print {
  .why-choose-enhanced {
    background: white !important;
  }
  
  .why-choose-card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    page-break-inside: avoid;
  }
  
  .why-choose-card .card-number {
    color: rgba(0, 0, 0, 0.1) !important;
  }
}

/* 无障碍优化：聚焦状态 */
.why-choose-card:focus-within {
  outline: 3px solid var(--verdigris);
  outline-offset: 4px;
  border-radius: 24px;
}

/* 深色模式支持（可选） */
@media (prefers-color-scheme: dark) {
  .why-choose-enhanced {
    background: #1a1a1a !important;
  }
  
  .why-choose-card {
    background: #2a2a2a !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3) !important;
  }
  
  .why-choose-card h3 {
    color: #f0f9f9 !important;
  }
  
  .why-choose-card .card-text {
    color: #b8caca !important;
  }
  
  .why-choose-card .card-number {
    color: rgba(0, 166, 166, 0.15) !important;
  }
}

/* 减少动画（无障碍） */
@media (prefers-reduced-motion: reduce) {
  .why-choose-card,
  .why-choose-card *,
  .why-choose-card::before {
    transition: none !important;
    animation: none !important;
  }
}

/* 背景装饰动画（可选） */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.why-choose-enhanced > div:first-child {
  animation: float 8s ease-in-out infinite;
}

.why-choose-enhanced > div:nth-child(2) {
  animation: float 10s ease-in-out infinite;
  animation-delay: 1s;
}

