/* 产品中心：复刻 xyxcables.com/products.html 布局 */
.pc-wrap { padding: 30px 0 70px; background: #f7f8fa; }
.pc-wrap .wrap { max-width: 1240px; margin: 0 auto; padding: 0 15px; }

.pc-header { text-align: center; margin-bottom: 30px; }
.pc-header h1 { font-size: 30px; font-weight: 700; color: #22304a; margin: 0 0 8px; }
.pc-header h1::after { content: ''; display: block; width: 50px; height: 3px; background: #f39c12; margin: 12px auto 0; border-radius: 2px; }
.pc-header p { color: #7a869a; font-size: 14px; margin: 14px 0 0; }

.pc-layout { display: flex; gap: 24px; align-items: flex-start; }

/* 左侧分类树 */
.pc-sidebar { flex: 0 0 260px; background: #fff; border-radius: 6px; box-shadow: 0 1px 6px rgba(20,40,80,.06); overflow: hidden; }
.pc-side-title { background: #f39c12; color: #fff; font-size: 16px; font-weight: 700; padding: 14px 18px; }
.pc-cats { list-style: none; margin: 0; padding: 8px 0; }
.pc-cat { border-bottom: 1px solid #eef1f5; }
.pc-cat:last-child { border-bottom: 0; }
.pc-cat-main { display: block; padding: 11px 18px; color: #33405a; font-size: 14px; font-weight: 600; text-decoration: none; transition: background .15s, color .15s; }
.pc-cat-main:hover, .pc-cat.active > .pc-cat-main { background: #fff6e8; color: #e07d05; padding-left: 22px; }
.pc-cat-main::before { content: '\f105'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 11px; color: #c3cad6; margin-right: 9px; }
.pc-subcats { list-style: none; margin: 0; padding: 0 0 8px; background: #fafbfc; }
.pc-subcats li a { display: block; padding: 7px 18px 7px 42px; font-size: 13px; color: #6d788c; text-decoration: none; }
.pc-subcats li a:hover { color: #e07d05; }

/* 右侧产品网格 */
.pc-main { flex: 1; min-width: 0; }
.pc-main-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid #e8ecf2; }
.pc-main-head h2 { font-size: 20px; color: #22304a; margin: 0; }
.pc-count { font-size: 13px; color: #93a0b3; }

.pc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pc-card { background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 6px rgba(20,40,80,.06); transition: transform .2s, box-shadow .2s; }
.pc-card:hover { transform: translateY(-4px); box-shadow: 0 8px 22px rgba(20,40,80,.12); }
.pc-card-img { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #fff; }
.pc-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.pc-card:hover .pc-card-img img { transform: scale(1.05); }
.pc-card-title { font-size: 14px; line-height: 1.4; margin: 14px 14px 10px; min-height: 40px; }
.pc-card-title a { color: #2b3852; text-decoration: none; }
.pc-card-title a:hover { color: #e07d05; }
.pc-card-more { display: inline-block; margin: 0 14px 16px; font-size: 12px; color: #f39c12; text-decoration: none; }
.pc-card-more:hover { color: #e07d05; }
.pc-empty { color: #93a0b3; font-size: 14px; padding: 40px 0; }

/* 分页 */
.pc-pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 26px; }
.pc-page, .pc-dots { display: inline-block; min-width: 34px; padding: 7px 10px; text-align: center; font-size: 13px; color: #33405a; background: #fff; border: 1px solid #dde3ec; border-radius: 4px; text-decoration: none; }
.pc-page:hover { background: #fff6e8; border-color: #f39c12; color: #e07d05; }
.pc-page.current { background: #f39c12; border-color: #f39c12; color: #fff; }
.pc-dots { border-color: transparent; background: transparent; }

/* 子分类当前项 */
.pc-subcats li a.cur { color: #e07d05; font-weight: 700; }

@media (max-width: 1024px) {
  .pc-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .pc-layout { flex-direction: column; }
  .pc-sidebar { flex: 1 1 auto; width: 100%; }
  .pc-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pc-header h1 { font-size: 24px; }
}
@media (max-width: 480px) {
  .pc-grid { grid-template-columns: 1fr; }
}
