/* 首页特定样式 */

/* ========== 首页Hero区域（带粒子效果） ========== */
/* 首页hero区域需要更高的高度 */
.hero {
  min-height: 100vh !important;
  flex-wrap: nowrap;
}

/* ========== 通用样式类 ========== */
.section-bg-secondary {
  background: var(--bg-secondary);
}

.section-bg-gradient {
  background: var(--gradient-hero);
  color: var(--text-white);
}

/* 产品图片容器 */
.product-image-gradient-1 {
  background: var(--gradient-1);
}

.product-image-gradient-2 {
  background: var(--gradient-2);
}

.product-image-gradient-3 {
  background: var(--gradient-3);
}

.product-image-gradient-4 {
  background: var(--gradient-4);
}

.product-icon {
  font-size: 4rem;
  color: var(--text-white);
}

/* 服务卡片图标 */
.service-icon-large {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
}

.service-icon-gradient-1 {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.service-icon-gradient-3 {
  background: var(--gradient-3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.service-icon-gradient-4 {
  background: var(--gradient-4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.service-title-text {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

.service-desc-text {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
}

.service-feature-list {
  list-style: none;
  padding: 0;
}

.service-feature-item {
  padding: 0.5rem 0;
  color: var(--text-secondary);
}

/* 统计数据 */
.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.125rem;
  opacity: var(--opacity-90);
}

/* 确保只有 div 子元素参与 flex 布局，canvas 不参与 */
.hero > canvas {
  /* canvas 应该完全脱离 flex 布局 */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.particles-canvas {
  /* 完全脱离文档流，不影响 flex 布局 */
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1 !important;
  pointer-events: none; /* 不响应鼠标事件，避免影响交互 */
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  outline: none !important;
  /* 确保在 flex 容器中不参与布局计算 */
  flex: none !important;
  flex-grow: 0 !important;
  flex-shrink: 0 !important;
  flex-basis: 0 !important;
  order: 0 !important;
  align-self: stretch !important;
  /* 确保不会影响其他 flex items */
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
}

/* 首页产品展示区域 */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.product-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
}

.product-content {
  padding: 1.5rem;
}

.product-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.product-desc {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.product-link {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap var(--transition-fast);
}

.product-link:hover {
  gap: 1rem;
}

/* 首页移动端适配 */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .hero {
    padding: 100px 1rem 3rem !important;
    min-height: 50vh !important;
  }
  
  .hero-content {
    padding: 1rem !important;
  }
}

