/* 栏目页 / 分类列表页样式 */

.page-body { padding: 26px 0 76px; }

.layout { display: grid; grid-template-columns: 258px 1fr; gap: 46px; align-items: start; }

/* ---------------- 侧栏 ---------------- */
.side { position: sticky; top: 92px; display: grid; gap: 20px; }
.side-nav {
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
.side-nav h2 {
  margin: 0; padding: 16px 20px;
  font-size: .92rem; letter-spacing: .04em;
  color: #fff; background: var(--dark);
}
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav li + li { border-top: 1px solid var(--line-soft); }
.side-nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 20px; font-size: .93rem; color: var(--ink-3);
  transition: background .2s ease, color .2s ease, padding .2s ease;
}
.side-nav a:hover { background: var(--brand-soft); color: var(--brand-deep); padding-left: 24px; }
.side-nav a[aria-current="page"] { color: var(--brand-deep); font-weight: 600; background: var(--brand-soft); box-shadow: inset 3px 0 0 var(--brand); }
.side-nav a svg { width: 14px; height: 14px; opacity: .5; }

.side-card {
  padding: 24px 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, #0a3a7a 0%, #03245a 100%);
  color: rgba(255, 255, 255, .76);
}
.side-card h3 { color: #fff; font-size: 1rem; margin-bottom: .4em; }
.side-card p { font-size: .86rem; margin-bottom: 16px; color: rgba(255, 255, 255, .66); }
.side-card .tel {
  display: block; font-size: 1.24rem; font-weight: 700; color: #fff; letter-spacing: .02em;
  margin-bottom: 14px;
}
.side-card .tel:hover { color: var(--brand); }
.side-card .btn { width: 100%; justify-content: center; }

/* ---------------- 列表头部 ---------------- */
.list-head { margin-bottom: 26px; }
.list-head h1 { font-size: 1.76rem; margin-bottom: .3em; }
.list-head p { color: var(--ink-3); margin: 0; max-width: 70ch; }
.list-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 8px;
}
.list-toolbar .count { font-size: .84rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a {
  padding: 6px 14px; font-size: .85rem; color: var(--ink-3);
  border: 1px solid var(--line); border-radius: 999px;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.chips a:hover { border-color: var(--brand); color: var(--brand-deep); background: var(--brand-soft); }
.chips a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------------- 产品网格 ---------------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: #fff; overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.product-card:hover { border-color: var(--brand-tint); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product-card .thumb {
  display: grid; place-items: center;
  padding: 18px; background: var(--paper-warm);
  border-bottom: 1px solid var(--line-soft);
}
.product-card .thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; transition: transform .4s ease; }
.product-card:hover .thumb img { transform: scale(1.03); }
.product-card .info { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1 1 auto; }
.product-card h3 { font-size: .98rem; margin: 0; line-height: 1.5; }
.product-card h3 a:hover { color: var(--brand-strong); }
.product-card .cat { font-size: .78rem; color: var(--muted); letter-spacing: .04em; }
.product-card .card-more { font-size: .84rem; padding-top: 4px; }

/* ---------------- 分类卡片（栏目中心） ---------------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.cat-card:hover { border-color: var(--brand-tint); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.cat-card .cat-icon {
  width: 42px; height: 42px; flex: 0 0 42px;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-deep);
  border-radius: 6px;
}
.cat-card .cat-icon svg { width: 20px; height: 20px; }
.cat-card h3 { font-size: 1rem; margin: 0 0 4px; }
.cat-card p { font-size: .86rem; color: var(--ink-3); margin: 0 0 8px; }
.cat-card .count { font-size: .78rem; color: var(--muted); }

/* ---------------- 列表 + 侧栏的小卡 ---------------- */
.feature-card {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  background: #fff; margin-bottom: 30px;
}
.feature-card .fc-media img { width: 100%; height: 100%; object-fit: contain; background: var(--paper-warm); padding: 20px; }
.feature-card .fc-body { padding: 30px 32px; }
.feature-card h2 { font-size: 1.3rem; }
.feature-card p { color: var(--ink-3); font-size: .94rem; }
.feature-card .fc-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: .84rem; color: var(--muted); }

@media (max-width: 1080px) {
  .layout { grid-template-columns: 1fr; gap: 30px; }
  .side { position: static; order: 2; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .product-grid, .cat-grid { grid-template-columns: 1fr; }
  .list-head h1 { font-size: 1.5rem; }
  .feature-card .fc-body { padding: 22px; }
}

/* ---------------- 细节补强 ---------------- */
.list-head h2 {
  font-size: 1.5rem;
  margin-bottom: .3em;
  color: var(--ink);
}
.product-card .info p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.entry p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
