/**
 * 产品展示部分样式
 */

/* 产品展示区域容器 */
.products-section {
  padding: 80px 0;
  background-image: url('../assets/product-bg.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top center;
  padding-bottom: 400px;
}

/* 产品网格布局 */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 87px;
  margin-top: 50px;
}

/* 产品卡片基础样式 */
.product-card {
  background-color: #22164a;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* 产品卡片悬停效果 */
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* 产品图片区域 */
.product-image {
  height: 166px;
  overflow: hidden;
  margin: 24px;
  margin-bottom: 0;
  border-radius: 12px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 产品卡片内容区域 */
.product-card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* 产品标题样式 */
.product-card-title {
  color: #fff;
  font-size: 24px;
  margin: 0 0 12px 0;
  font-weight: 600;
}

/* 产品描述样式 */
.product-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.5;
  height: 38px;
}

/* 产品特性列表 */
.product-features {
  list-style-type: none;
  padding: 0;
  margin: 0 0 20px 0;
  flex-grow: 1;
}

/* 产品特性项目样式 */
.product-features li {
  padding: 8px 0;
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  display: flex;
  align-items: center;
}

/* 产品卡片按钮样式 */
.product-card-btn {
  position: relative;
  border-radius: 10px;
  padding: 14px 20px;
  background: linear-gradient(90deg, #dc5ebb 0%, #8256de 48%, #4550f3 100%);
  box-shadow: 0px 10px 20px 0px #4d2456;
  text-align: center;
  font-size: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  z-index: 1;
  background-position: 0% 0%;
}

.product-card-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 10px;
  padding: 1px;
  background: linear-gradient(270deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1), rgba(160, 132, 158, 0));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
}

.product-card-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  background-position: 100% 0%;
  animation: gradientShift 3s linear infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* 响应式调整 */
@media (max-width: 1000px) {
  .products-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
  }

  .product-image {
    height: 160px;
  }
}
