/* ============================================================
   products.css - 产品中心页专属样式
   仅在 products.html 加载
   ============================================================ */

.products-layout { display: flex; gap: 32px; align-items: flex-start; }
.products-sidebar { flex: 0 0 260px; position: sticky; top: 90px; background: #fff; border-radius: 12px; box-shadow: 0 1px 6px rgba(0,0,0,.06); overflow: hidden; border: 1px solid #e5e7eb; }
.sidebar-title { padding: 16px 20px; font-size: 1rem; font-weight: 700; color: #fff; background: var(--brand); }
.cat-item { border-bottom: 1px solid #f3f4f6; }
.cat-item:last-child { border-bottom: none; }
.cat-header { padding: 14px 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: .92rem; font-weight: 600; color: #1f2937; transition: background .2s; user-select: none; }
.cat-header:hover { background: #f0f4ff; }
.cat-arrow { font-size: .7rem; color: #9ca3af; transition: transform .2s; }
.cat-header.open .cat-arrow { transform: rotate(180deg); }
.sub-list { display: none; padding: 0 0 8px; }
.sub-list a { display: block; padding: 8px 20px 8px 32px; font-size: .85rem; color: #4b5563; text-decoration: none; transition: all .15s; border-left: 3px solid transparent; }
.sub-list a:hover { background: #f0f4ff; color: var(--brand); }
.sub-list a.active { background: #eef2ff; color: var(--brand); border-left-color: var(--brand); font-weight: 600; }
.products-content { flex: 1; min-width: 0; }
.prod-section { display: none; }
.prod-section:first-child { display: block; }
.prod-section-title { font-size: 1.3rem; font-weight: 700; color: #1f2937; margin-bottom: 24px; padding-bottom: 12px; border-bottom: 2px solid var(--brand); }
.product-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.product-card { background: #fff; border-radius: 12px; border: 1px solid #e5e7eb; padding: 24px; display: flex; flex-direction: column; transition: all .2s; }
.product-card:hover { border-color: var(--brand); box-shadow: 0 4px 16px rgba(0,82,155,.1); transform: translateY(-2px); }
.product-card-icon { font-size: 2rem; margin-bottom: 12px; }
.product-card-title { font-size: 1.05rem; font-weight: 700; color: #1f2937; margin-bottom: 10px; }
.product-card-desc { font-size: .85rem; color: #6b7280; line-height: 1.6; margin-bottom: 16px; flex: 1; }
.product-card-btn { display: inline-block; padding: 8px 20px; font-size: .82rem; font-weight: 600; color: #fff; background: var(--brand); border-radius: 6px; text-decoration: none; text-align: center; transition: background .2s; align-self: flex-start; }
.product-card-btn:hover { background: #003d75; }
@media (max-width: 768px) {
  .products-layout { flex-direction: column; }
  .products-sidebar { flex: none; width: 100%; position: static; }
  .product-cards { grid-template-columns: 1fr; }
}
