/* 基础样式 */
body {
    font-family: '微软雅黑', sans-serif;
    margin: 0;
    background: #f5f7fa;
}

.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 2000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 50px;
}

.search-box {
    margin-left: auto;
    display: flex;
}
/* 产品展示区 */
/* 产品容器 */
.product-grid {
  display: flex;
  justify-content: space-between; /* 等间距分布 */
  width: 1600px; /* (200px * 5) + (20px * 4) */
  margin: 0 auto;
  padding: 20px 0;
  background: #f8f9fa;
}

/* 产品卡片 */
.product-card {
  width: 300px;
  height: 350px;
  background: #710413;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  flex-shrink: 0; /* 禁止缩小 */
}

/* 图片处理 */
.product-card img {
  width: 100%;
  height: 300px;
  border-bottom: 1px solid #eee;
}

/* 文字内容 */
.product-card h3 {
  font-size: 28px;
  color: #ffffff;
  margin: 12px 15px 8px;
  text-align: center;
  margin: 0 auto;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card p {
  font-size: 12px;
  color:  #4CAF50;
  margin: 0 15px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* 限制两行显示 */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 悬停效果 */
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* 装饰性元素 */
.product-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
}
.site-footer {
  background-color: #333; /* 深色背景 */
  color: #fff; /* 白色文字 */
  padding: 20px 0;
  text-align: center; /* 内容居中 */
  font-size: 20px;
  border-top: 1px solid #444; /* 顶部边框 */
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto; /* 水平居中 */
}

.site-footer a {
  color: #ccc; /* 浅灰色链接 */
  text-decoration: none; /* 去掉下划线 */
  transition: color 0.3s; /* 悬停动画 */
}

.site-footer a:hover {
  color: #fff; /* 悬停变白色 */
}