/* 分类列表区域样式 */
.tech-categories-section {
  padding: 1.25rem 0;
  background: var(--background-primary);
  position: relative;
}

/* 区域标题样式 */
.tech-section-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.tech-section-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
  position: relative;
}

.tech-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 12px;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.15);
}

.tech-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.tech-section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0;
  opacity: 0.8;
}

/* More 链接 - 右侧小文字链接 */
.tech-category-more-link {
  position: absolute;
  right: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.3s ease;
  opacity: 0.7;
}

.tech-category-more-link:hover {
  color: var(--primary-color);
  opacity: 1;
}

.tech-category-more-link i {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.tech-category-more-link:hover i {
  transform: translateX(2px);
}

/* 分类网格 - 一行4列布局 */
.tech-category-grid-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

/* 分类卡片 */
.tech-category-card {
  background: var(--background-secondary);
  border: 1px solid rgba(0, 212, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.tech-category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

/* 分类图片 */
.tech-category-image {
  position: relative;
  height: 220px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
}

.tech-category-image a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.tech-category-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.tech-category-card:hover .tech-category-img {
  transform: scale(1.05);
}

/* 分类信息 */
.tech-category-info {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* 分类名称 */
.tech-category-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.tech-category-name a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tech-category-name a:hover {
  color: var(--primary-color);
}

/* 分类描述容器 */
.tech-category-desc-container {
  flex: 1;
  margin-bottom: 1rem;
  min-height: 3rem;
}

.tech-category-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 产品数量 */
.tech-category-count {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.tech-category-count i {
  color: var(--primary-color);
  font-size: 0.9rem;
}

/* 查看分类按钮 */
.tech-category-actions {
  margin-top: auto;
}

.tech-btn-view-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: var(--gradient-primary);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.tech-btn-view-category:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(107, 163, 214, 0.4);
}

.tech-btn-view-category i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.tech-btn-view-category:hover i {
  transform: translateX(3px);
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .tech-category-grid-4col {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .tech-category-grid-4col {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .tech-categories-section {
    padding: 2rem 0;
  }

  .tech-category-image {
    height: 180px;
  }

  .tech-category-info {
    padding: 1rem;
  }

  .tech-category-name {
    font-size: 1rem;
  }

  .tech-category-desc-container {
    margin-bottom: 0.75rem;
  }

  .tech-category-count {
    margin-bottom: 1rem;
  }

  .tech-btn-view-category {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }

  .tech-category-more-link {
    position: static;
    margin-top: 0.5rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .tech-category-grid-4col {
    grid-template-columns: 1fr;
  }

  .tech-category-image {
    height: 200px;
  }
}
