/* ==========================================
   平台案例页面样式 - product.css
   ========================================== */

/* ==========================================
   Banner区域样式
   ========================================== */
.product-banner {
  margin-top: 76px;
  padding: 5rem 0 4rem;
  background-color: #fafafa;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.product-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.product-banner-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
  letter-spacing: -0.03em;
  line-height: 1.1;
  position: relative;
  z-index: 1;
}

.product-banner-title .highlight {
  color: #6366f1;
  position: relative;
}

.product-banner-subtitle {
  font-size: 1.2rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* ==========================================
   产品案例区域样式
   ========================================== */
.products-section {
  padding: 6rem 0;
  background-color: #fff;
}

.product-item {
  margin-bottom: 6rem;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.product-item:last-child {
  margin-bottom: 0;
}

.product-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.product-row.reverse {
  direction: rtl;
}

.product-row.reverse > * {
  direction: ltr;
}

.product-image-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-image-wrapper:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.15);
}

.product-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-image-wrapper:hover .product-image {
  transform: scale(1.05);
}

.product-content {
  padding: 2rem 0;
}

.product-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #f3f4f6;
  color: #374151;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.product-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.product-description {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #6b7280;
  margin-bottom: 2rem;
}

.product-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.product-features li {
  padding: 0.75rem 0;
  color: #374151;
  font-size: 0.95rem;
  position: relative;
  padding-left: 1.75rem;
}

.product-features li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: #6366f1;
  font-size: 0.9rem;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #1a1a1a;
  font-weight: 600;
  text-decoration: none;
  padding: 0.75rem 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.product-link::after {
  content: '';
  position: absolute;
  bottom: 0.5rem;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #1a1a1a;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-link:hover {
  color: #6366f1;
}

.product-link:hover::after {
  width: 100%;
}

.product-link i {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-link:hover i {
  transform: translateX(5px);
}

/* ==========================================
   响应式设计
   ========================================== */
@media (max-width: 992px) {
  .product-row,
  .product-row.reverse {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    direction: ltr;
  }
  
  .product-item {
    margin-bottom: 4rem;
  }
  
  .product-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 768px) {
  .product-banner {
    padding: 4rem 0 3rem;
  }
  
  .products-section {
    padding: 4rem 0;
  }
  
  .product-title {
    font-size: 1.5rem;
  }
  
  .product-description {
    font-size: 1rem;
  }
}
