/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}
.imgback{
  background: 
      url("../img/hardware.webp") center top no-repeat;
  background-size: cover;
}
/* 产品网格布局 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* 单个产品卡片样式 */
.product-card {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(43, 108, 176, 0.1);
}

/* 产品图片容器 */
.product-image {
  width: 100%;
  height: 200px;
  background: #f7fafc;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  mix-blend-mode: multiply;
}

.product-card:hover .product-image img {
  transform: scale(1.03);
}

/* 产品信息样式 */
.product-title {
  color: #2b6cb0;
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  position: relative;
  padding-bottom: 0.5rem;
  
  /* 新增滑动样式 */
  display: inline-block; /* 保持行内块特性 */
  max-width: 100%;       /* 限制最大宽度 */
  overflow-x: auto;      /* 启用水平滚动 */
  white-space: nowrap;   /* 禁止换行 */
  padding-right: 1.2rem; /* 为滚动条预留空间 */
}

/* 隐藏原生滚动条（可选） */
.product-title::-webkit-scrollbar {
  height: 6px;
  background: transparent;
}

.product-title::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 3px;
}

.product-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 3px;
  background: currentColor;
  border-radius: 2px;
}

.product-description {
  color: #4a5568;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 1rem 0;
  height: 6.8em;  /* 修改为固定高度 */

}

/* 关键特性列表 */
.features2 {
  margin: 1.5rem 0;
  list-style: none;
}

.features2 li {
  display: flex;
  align-items: center;
  margin: 0.7rem 0;
  color: #718096;
  font-size: 0.95rem;
}

.features2 li::before {
  content: "◆";
  color: #2b6cb0;
  margin-right: 0.8rem;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
}

/* 行动按钮样式 */
.action-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.8rem;
  background: #2b6cb0;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  transition: all 0.3s ease;
  margin-top: 1rem;
  font-weight: 600;
  gap: 0.5rem;
}

.action-btn:hover {
  background: #2c5282;
  transform: translateX(3px);
}

/* 科技光效动画 */
.product-card::before {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(43, 108, 176, 0.15),
    transparent
  );
  opacity: 0;
  transition: all 0.5s ease;
}

.product-card:hover::before {
  top: 100%;
  opacity: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .header h1 {
    font-size: 2rem;
  }
}
