/* 产品中心布局：左侧分类菜单 + 右侧内容区 */
.products-center-container {
  display: flex;
  gap: 0;
  align-items: flex-start;
  max-width: 1400px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 18px 0 rgba(40,60,120,0.06);
  min-height: 600px;
  padding: 0;
}
.products-sidebar {
  width: 235px;
  background: #f6f8fa;
  border-radius: 16px 0 0 16px;
  padding: 1.5em 0.5em 1.5em 1.5em;
  min-height: 600px;
  box-sizing: border-box;
  box-shadow: 1px 0 0 #ececec inset;
}
.products-sidebar-title {
  font-size: 1.2em;
  font-weight: bold;
  color: #1976d2;
  margin-bottom: 1.5em;
  letter-spacing: 1px;
}
.products-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.products-sidebar-item {
  margin-bottom: 0.6em;
}
.products-sidebar-link {
  display: block;
  padding: 0.7em 1em 0.7em 0.7em;
  color: #333;
  font-size: 1.07em;
  border-radius: 8px 0 0 8px;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
  cursor: pointer;
}
.products-sidebar-link.active, .products-sidebar-link:hover {
  background: #1976d2;
  color: #fff;
  font-weight: bold;
}
.products-main {
  flex: 1 1 auto;
  padding: 2em 2.5em 2em 2.5em;
}
.products-breadcrumb {
  font-size: 0.98em;
  color: #888;
  margin-bottom: 1.2em;
}
.products-breadcrumb span {
  color: #1976d2;
  margin: 0 0.25em;
}
.products-category-title {
  font-size: 1.6em;
  font-weight: 700;
  color: #1976d2;
  margin-bottom: 0.5em;
}
.products-category-desc {
  font-size: 1.05em;
  color: #555;
  margin-bottom: 1.2em;
  line-height: 1.6;
}
.products-grid {
  display: grid;
  gap: 2.5em 2.5em;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  min-height: 260px;
  padding: 0.5em 0.5em 0.5em 0.5em;
}
.product-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(40,60,120,0.07);
  padding: 1.5em 1em 1.5em 1em;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s;
  cursor: pointer;
  position: relative;
  min-height: 240px;
  min-width: 210px;
  max-width: 320px;
  width: 100%;
  border: 2.5px solid #b7d3f7;
  box-sizing: border-box;
  margin: 0;
  justify-content: flex-start;
}
.product-card:nth-child(3n+1) { border-color: #b7d3f7; /* 蓝 */ }
.product-card:nth-child(3n+2) { border-color: #b7f7c2; /* 绿 */ }
.product-card:nth-child(3n)   { border-color: #ffe2b7; /* 橙 */ }
.product-card:hover {
  box-shadow: 0 8px 32px 0 rgba(40,60,120,0.13);
  border-color: #1976d2;
  transform: translateY(-3px) scale(1.03);
}
.product-card img {
  max-width: 96%;
  max-height: 220px;
  min-height: 120px;
  border-radius: 10px;
  margin-bottom: 0.6em;
  object-fit: contain;
  background: #f5f7fa;
  box-shadow: 0 1px 6px rgba(60,80,140,0.04);
  cursor: pointer;
  display: block;
}
.product-card h3 {
  font-size: 1.13em;
  font-weight: 600;
  color: #1976d2;
  margin: 0.2em 0 0.2em 0;
  text-align: center;
}
.product-card .product-desc {
  font-size: 0.97em;
  color: #444;
  margin: 0.5em 0 0 0;
  text-align: center;
  flex: 1 1 auto;
  max-height: 3.6em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
@media (max-width: 900px) {
  .products-center-container { flex-direction: column; box-shadow: none; }
  .products-sidebar { width: 100%; border-radius: 16px 16px 0 0; min-height: unset; box-shadow: none; padding: 1em 1.2em; display: flex; overflow-x: auto; }
  .products-sidebar-list { display: flex; gap: 0.7em; }
  .products-sidebar-item { margin-bottom: 0; }
  .products-sidebar-link { border-radius: 8px; }
  .products-main { padding: 1.2em 0.5em 1.2em 0.5em; }
  .products-grid { gap: 1.2em; padding: 0.2em; }
  .product-card { min-height: 140px; max-width: 100%; padding: 1em 0.6em; }
}
