/* ========================
   案例卡片 全局基础
======================== */
.case-card-hover {
  border-radius: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ========================
   案例间距 极致缩小
======================== */
.case-item + .case-item {
  margin-top: 0.6rem !important;
}
.case-item section {
  margin-bottom: 2rem !important;
}

/* ========================
   图片容器 无圆角
======================== */
.case-image {
  padding: 2rem;
  overflow: hidden;
  border-radius: 0;
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.6s ease, box-shadow 0.5s ease;
}

/* 图片悬停放大 */
.case-card-hover:hover .case-image img {
  transform: scale(1.08);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* 卡片悬浮上浮 */
.case-card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
}

/* ========================
   内容区域 顶部对齐
======================== */
.case-content {
  transition: transform 0.4s ease;
  justify-content: flex-start !important;
  padding-top: 1.5rem;
}

.case-card-hover:hover .case-content {
  transform: translateX(6px);
}

/* 标题排版 */
.case-content h2 {
  line-height: 1.35;
  letter-spacing: 0.02em;
  margin-bottom: 1rem !important;
}

/* 正文：首行缩进2字符 + 加宽行间距字间距 */
.case-content .text-gray-700 {
  line-height: 1.85;
  letter-spacing: 0.03em;
  text-indent: 2em;
}

/* ========================
   按钮 直角样式
======================== */
.btn-hover {
  border-radius: 0 !important;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-hover:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
}

.btn-hover::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.7s ease;
}

.btn-hover:hover::after {
  left: 100%;
}

/* ========================
   AOS 动画优化
======================== */
[data-aos] {
  transition-duration: 800ms !important;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* ========================
   电脑端：奇偶交替布局
======================== */
@media (min-width: 768px) {
  /* 奇数：图片左 */
  .case-item:nth-child(odd) .case-image {
    order: 1 !important;
  }
  .case-item:nth-child(odd) .case-content {
    order: 2 !important;
  }

  /* 偶数：图片右 */
  .case-item:nth-child(even) .case-image {
    order: 2 !important;
  }
  .case-item:nth-child(even) .case-content {
    order: 1 !important;
  }
}

/* ========================
   手机端：强制全部 图片在上
======================== */
@media (max-width: 767px) {
  .grid.md\:grid-cols-2 {
    display: flex !important;
    flex-direction: column !important;
  }
  .case-image {
    order: 1 !important;
    width: 100% !important;
  }
  .case-content {
    order: 2 !important;
    width: 100% !important;
  }
}