/*
 * 来源：从原页面内联 <style> 迁出，并按用途拆分为独立 CSS。
 * 原始哈希：d120806156c0，用于追溯迁出前的样式内容。
 * 原始位置：index.html。
 * 维护说明：该文件依赖 HTML 中的 <link> 加载顺序，调整后请做页面回归检查。
 */
/* 首页应用场景区容器：保持明亮、清爽的工业展示风格。 */
#xinpin-product-categories {
  background-color: #ffffff;
  padding: 90px 20px;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  position: relative;
}

.xp-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* 标题区域：控制文字层级和上下间距。 */
.xp-header {
  text-align: center;
  margin-bottom: 60px;
}

.xp-header h2 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.xp-header h2 span {
  color: #FF5B00;
}

/* 橙色装饰线条 */
.xp-header::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: #FF5B00;
  margin: 0 auto;
}

.xp-header p {
  color: #64748b;
  font-size: 1.1rem;
  margin-top: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* 产品网格布局 */
.xp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* 卡片视觉：通过阴影和圆角区分产品项。 */
.xp-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.xp-card:hover {
  transform: translateY(-12px);
  border-color: #FF5B00;
  box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.15);
}

/* 图片容器：使用浅灰底突出机器轮廓。 */
.xp-img-box {
  width: 100%;
  height: 240px;
  background-color: #f8fafc;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  padding: 25px;
}

.xp-img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.xp-card:hover .xp-img-box img {
  transform: scale(1.1);
}

/* 文字与描述区域 */
.xp-info {
  padding: 20px;
  text-align: left;
  /* 左对齐文案，增强产品信息的扫描效率。 */
}

.xp-info h3 {
  font-size: 1.2rem;
  color: #1e293b;
  margin-bottom: 8px;
  font-weight: 700;
  transition: 0.3s;
}

.xp-card:hover .xp-info h3 {
  color: #FF5B00;
}

.xp-info p {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 15px;
  line-height: 1.4;
}

/* 链接按钮 */
.xp-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: #FF5B00;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.xp-link::after {
  content: ' →';
}

/* 响应式调整：在窄屏下保持内容层级和可读性。 */
@media (max-width: 1024px) {
  .xp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .xp-grid {
    grid-template-columns: 1fr;
  }

  .xp-header h2 {
    font-size: 2.2rem;
  }
}
