/* ==========================================================================
   产品页 — 总览 / 分类 / 详情
   沿用 blog.css 的页头与页脚，这里只负责产品特有的排布
   ========================================================================== */

/* ---------------------------------------------------------------- 面包屑 */
.pcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 26px 0 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.pcrumb a { color: var(--text-muted); text-decoration: none; border-bottom: 1px solid transparent; }
.pcrumb a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.bl-head--tight { padding-top: 22px; }

/* ---------------------------------------------------------------- 分类块 */
.pgrp {
  padding: 44px 0 8px;
  border-top: 1px solid var(--line);
}
.pgrp:first-of-type { border-top: none; padding-top: 8px; }

.pgrp__head {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: baseline;
  gap: 4px 14px;
}
.pgrp__idx { font-size: 11px; color: var(--accent); letter-spacing: 0.1em; }
.pgrp__head h2 {
  font-family: var(--font-display);
  font-size: var(--fs-d3);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}
.pgrp__head h2 a { color: inherit; text-decoration: none; }
.pgrp__head h2 a:hover { color: var(--accent); }
.pgrp__count {
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pgrp__note {
  max-width: 62ch;
  margin: 10px 0 22px 60px;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.62;
}

/* ---------------------------------------------------------------- SKU 行 */
.prows { border-top: 1px solid var(--line); }

.prow {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 6px 20px;
  align-items: baseline;
  padding: 17px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 0.18s ease, padding-left 0.18s ease;
}
.prow:hover { background: var(--bg-raised); padding-left: 10px; }

.prow__code {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-900);
}
.prow:hover .prow__code { color: var(--accent); }

.prow__body { display: grid; gap: 3px; min-width: 0; }
.prow__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.prow__sub {
  color: var(--text-muted);
  font-size: 0.8125rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* ---------------------------------------------------------------- 详情 */
.pdetail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: clamp(28px, 5vw, 76px);
  padding: 26px 0 56px;
  align-items: start;
}

.pdetail__code {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 12px;
}
.pdetail h1 {
  font-family: var(--font-display);
  font-size: var(--fs-d2);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0 0 20px;
}
.pdetail__body {
  max-width: 60ch;
  font-size: var(--fs-body);
  line-height: 1.68;
  color: var(--ink-700);
}

.pdetail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 26px 0 0;
}
.ptag {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.ptag.mono { color: var(--ink-900); border-color: var(--ink-900); }

.pdetail__act {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
}
.pbtn {
  display: inline-block;
  padding: 13px 22px;
  background: var(--ink-900);
  color: var(--paper-100);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.18s ease;
}
.pbtn:hover { background: var(--accent); }
.plink {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
}
.plink:hover { color: var(--accent); }

/* 规格卡 */
.pdetail__side {
  border: 1px solid var(--line);
  background: var(--bg-raised);
  padding: 22px 22px 8px;
  position: sticky;
  top: 88px;
}
.pspecs__head {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.pspecs { margin: 0; }
.pspecs div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.pspecs div:last-child { border-bottom: none; }
.pspecs dt {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.pspecs dd { margin: 0; font-size: 0.875rem; line-height: 1.4; }

/* ---------------------------------------------------------------- 同系统 */
.psib { padding: 0 0 56px; }
.psib__head {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.psib__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--line);
}
.psib__list a {
  display: grid;
  gap: 5px;
  padding: 15px 16px;
  background: var(--bg);
  text-decoration: none;
  color: inherit;
  transition: background 0.18s ease;
}
.psib__list a:hover { background: var(--bg-raised); }
.psib__list a .mono { font-size: 11px; color: var(--accent); letter-spacing: 0.06em; }
.psib__list a span:last-child { font-size: 0.875rem; color: var(--ink-700); line-height: 1.4; }

/* ---------------------------------------------------------------- 响应式 */
@media (max-width: 900px) {
  .pdetail { grid-template-columns: 1fr; }
  .pdetail__side { position: static; }
  .prow { grid-template-columns: 1fr; }
  .prow__code { grid-column: 1; }
  .prow__body { grid-column: 1 / -1; }
  .pgrp__note { margin-left: 0; }
}
