/* 案例列表页面样式 */
.cases-main {
  background: #fff;
  min-height: 100vh;
  padding-top: 80px;
}

.cases-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px;
}

.page-title {
  font-size: 25px;
  font-weight: 500;
  color: #000;
  text-align: left;
  margin: 0 0 60px 0;
  letter-spacing: 0.5px;
}

/* 案例网格布局 */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 80px;
}

/* 案例卡片 */
.case-card {
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid #f0f0f0;
  user-select: none;
  text-decoration: none;
}

.case-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-color: #ddd;
}

.case-card:active {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 案例图片 */
.case-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: #f8f9fa;
  position: relative;
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  background: linear-gradient(45deg, #f0f0f0, #f8f8f8);
}

.case-image:hover img {
  transform: scale(1.05);
}

.case-card:hover .case-image img {
  transform: scale(1.05);
}

/* 案例内容区域 */
.case-content {
  padding: 25px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.case-title {
  font-size: 16px;
  font-weight: 500;
  color: #000;
  margin: 0;
  letter-spacing: 0.5px;
}

.case-link {
  color: #666;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
  position: relative;
}

.case-link:hover {
  color: #000;
}

.case-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #000;
  transition: width 0.3s ease;
}

.case-link:hover::after {
  width: 100%;
}

/* 确保更多链接在整个卡片可点击的情况下仍然突出显示 */
.case-card:hover .case-link {
  color: #000;
}

/* SEE ALL NEWS 按钮 */
.see-all-container {
  text-align: center;
  margin-top: 60px;
}

.see-all-btn {
  background: #000;
  color: #fff;
  border: none;
  padding: 15px 40px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 0;
  position: relative;
  overflow: hidden;
}

.see-all-btn:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.see-all-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.see-all-btn:hover::before {
  left: 100%;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .cases-container {
    padding: 40px 30px;
  }

  .cases-grid {
    gap: 25px;
  }
}

@media (max-width: 992px) {
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .page-title {
    font-size: 28px;
    margin-bottom: 40px;
  }

  .case-image {
    height: 220px;
  }
}

@media (max-width: 768px) {
  .cases-container {
    padding: 30px 20px;
  }

  .cases-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-title {
    font-size: 24px;
    text-align: center;
    margin-bottom: 30px;
  }

  .case-image {
    height: 200px;
  }

  .case-content {
    padding: 20px 15px;
  }

  .case-title {
    font-size: 15px;
  }

  .case-link {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .cases-container {
    padding: 20px 15px;
  }

  .case-image {
    height: 180px;
  }

  .case-content {
    padding: 15px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .see-all-btn {
    padding: 12px 30px;
    font-size: 13px;
  }
}
