/* 产品中心专属样式 —— 左侧固定分类栏 */

/* 双品牌说明带 */
.dual-brand { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 26px; }
.db-item {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 18px 20px; border-left: 4px solid var(--primary);
}
.db-item.agent { border-left-color: var(--navy); }
.db-tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1px;
  color: var(--primary); margin-bottom: 8px;
}
.db-item.agent .db-tag { color: var(--navy); }
.db-item p { font-size: 13.5px; color: var(--muted); line-height: 1.85; }
.db-item strong { color: var(--navy); }
.catalog-layout { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 34px; align-items: start; }
.catalog-main { min-width: 0; }
.cat-side { min-width: 0; position: sticky; top: 84px; align-self: start; }
.cat-side-inner {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 18px 12px; box-shadow: 0 6px 20px rgba(11,44,82,.06);
}
.cat-side-title {
  font-size: 13px; font-weight: 700; color: var(--navy); letter-spacing: 2px;
  padding: 0 12px 10px; margin-bottom: 8px; border-bottom: 1px solid var(--border);
}
.cat-nav { display: flex; flex-direction: column; gap: 2px; }
.cat-nav a {
  display: flex; align-items: center; min-height: 38px;
  font-size: 14px; color: #4a5b70; background: transparent;
  border-left: 3px solid transparent; border-radius: 6px; padding: 7px 12px;
  transition: background .18s, color .18s, border-color .18s;
}
.cat-nav a:hover { background: var(--bg-soft); color: var(--navy); text-decoration: none; }
.cat-nav a.active { background: var(--navy); color: #fff; border-left-color: var(--accent); font-weight: 700; }
.cat-side-note {
  margin: 12px 12px 0; padding-top: 12px; border-top: 1px solid var(--border);
  font-size: 12px; line-height: 1.6; color: var(--muted);
}

.group { margin-bottom: 56px; scroll-margin-top: 80px; }
.group-head {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  border-bottom: 2px solid var(--navy); padding-bottom: 12px; margin-bottom: 8px;
}
.group-head h2 { font-size: 23px; color: var(--navy); }
.group-head .en { font-size: 13px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.group-desc { color: var(--muted); font-size: 14px; margin-bottom: 22px; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-card {
  background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s;
}
.product-card:hover { box-shadow: 0 12px 28px rgba(11,44,82,.12); transform: translateY(-3px); }
.product-thumb {
  height: 210px; background: #f7f9fc; display: flex; align-items: center; justify-content: center;
  overflow: hidden; cursor: zoom-in; padding: 12px;
}
.product-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .3s; }
.product-card:hover .product-thumb img { transform: scale(1.05); }
.product-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.product-brand {
  display: inline-block; align-self: flex-start; font-size: 12px; color: var(--primary);
  background: var(--primary-light); border-radius: 4px; padding: 1px 8px; margin-bottom: 8px;
}
.product-brand.own { color: #9a6510; background: #fdf2e0; }
.product-body h3 { font-size: 16px; color: var(--navy); line-height: 1.5; margin-bottom: 8px; }
.product-body .use { font-size: 13px; color: var(--muted); line-height: 1.65; }
.more-bar {
  margin-top: 40px; background: var(--navy); color: #fff; border-radius: 14px;
  padding: 30px 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.more-bar h3 { font-size: 20px; }
.more-bar p { color: #cfe0f2; font-size: 14px; margin-top: 4px; }
.more-bar .btn { background: var(--accent); color: #3a2708; font-weight: 700; }
.more-bar .btn:hover { background: #ffb65c; text-decoration: none; }

/* 灯箱 */
.lightbox { display:none; position:fixed; inset:0; background:rgba(6,20,38,.88); z-index:99;
  align-items:center; justify-content:center; padding:30px; cursor:zoom-out; }
.lightbox.on { display:flex; }
.lightbox img { max-width:100%; max-height:90vh; object-fit:contain; border-radius:8px; }

@media (max-width: 900px) {
  .dual-brand { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  /* 窄屏：侧栏改为吸顶横滑条，不占正文宽度 */
  .catalog-layout { display: block; }
  .cat-side { position: sticky; top: 66px; z-index: 90; margin-bottom: 22px; }
  .cat-side-inner { position: static; border-radius: 10px; padding: 8px 10px; }
  .cat-side-title, .cat-side-note { display: none; }
  .cat-nav { flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 3px; scrollbar-width: none; }
  .cat-nav::-webkit-scrollbar { display: none; }
  .cat-nav a {
    flex: none; white-space: nowrap; min-height: 34px; font-size: 13px;
    background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 6px 13px;
  }
  .cat-nav a.active { background: var(--navy); color: #fff; border-color: var(--navy); }
}
@media (max-width: 600px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-thumb { height: 200px; }
}
