/* ==========================================================================
   产品中心 2.0 · 一排分类筛选 + 15 张统一规格卡片
   只被 products/index.html 引用，类名统一 pdx- 前缀
   替代旧版：三组 chip + 15 行对比表 + 5 组列表
   ========================================================================== */

.pdx {
  background: #fff;
  padding: clamp(26px, 3.2vw, 44px) 0 clamp(40px, 4.6vw, 68px);
}

.pdx-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* —— 筛选条 —— */
.pdx-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  margin-bottom: 26px;
  border-bottom: 1px solid #E7E7E2;
}

.pdx-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pdx-tab {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border: 1px solid #DDDDD8;
  border-radius: 3px;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  color: #3B3F45;
  cursor: pointer;
  transition: border-color .18s, background .18s, color .18s;
}
.pdx-tab em {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-style: normal;
  font-size: 10.5px;
  font-weight: 600;
  color: #A0A4A0;
  letter-spacing: .02em;
}
.pdx-tab:hover { border-color: #17181A; color: #17181A; }
.pdx-tab:focus-visible { outline: 2px solid #17181A; outline-offset: 2px; }
.pdx-tab.is-on {
  background: #17181A;
  border-color: #17181A;
  color: #fff;
}
.pdx-tab.is-on em { color: #C6C6BE; }

.pdx-count {
  margin: 0;
  font-size: 12.5px;
  letter-spacing: .02em;
  color: #8A8F94;
}

/* —— 卡片网格 —— */
.pdx-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pdx-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid #E6E6E1;
  border-radius: 4px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.pdx-card:hover {
  border-color: #17181A;
  box-shadow: 0 12px 28px -18px rgba(23, 24, 26, .42);
}
.pdx-card[hidden] { display: none; }

.pdx-card__fig {
  display: block;
  overflow: hidden;
  aspect-ratio: 760 / 570;
  background: #FBFBF7;
  border-bottom: 1px solid #EFEFEA;
  border-radius: 3px 3px 0 0;
}
.pdx-card__fig img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.22, .61, .36, 1);
}
.pdx-card:hover .pdx-card__fig img { transform: scale(1.035); }

.pdx-no {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 3px 7px;
  border: 1px solid #E4E4DE;
  border-radius: 2px;
  background: rgba(255, 255, 255, .92);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  color: #6E7278;
}

.pdx-card__bd {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 15px 16px 16px;
}

.pdx-card h3 {
  margin: 0 0 11px;
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -.012em;
  color: #17181A;
}
.pdx-card h3 a { color: inherit; text-decoration: none; }

.pdx-spec {
  margin: 0 0 15px;
  padding: 0;
  font-size: 12.3px;
  line-height: 1.5;
}
.pdx-spec > div {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 5px 0;
  border-bottom: 1px dotted #EAEAE4;
}
.pdx-spec > div:last-child { border-bottom: 0; }
.pdx-spec dt {
  flex: 0 0 auto;
  width: 56px;
  color: #8B8F94;
  letter-spacing: .01em;
}
.pdx-spec dd {
  margin: 0;
  min-width: 0;
  color: #2C3037;
  font-weight: 600;
}

.pdx-go {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  align-self: flex-start;
  font-size: 12.8px;
  font-weight: 700;
  color: #17181A;
  text-decoration: none;
}
.pdx-go span { border-bottom: 2px solid transparent; transition: border-color .18s; }
.pdx-go svg { transition: transform .2s; }
.pdx-card:hover .pdx-go span { border-color: #F2F224; }
.pdx-card:hover .pdx-go svg { transform: translateX(3px); }

/* —— 页脚提示 —— */
.pdx-note {
  margin: 26px 0 0;
  padding: 14px 16px;
  border: 1px solid #EFEFE6;
  border-left: 3px solid #F2F224;
  border-radius: 3px;
  background: #FCFCF3;
  font-size: 12.4px;
  line-height: 1.85;
  color: #5A5E64;
}
.pdx-note b { color: #2C3037; }

/* —— 自适应 —— */
@media (max-width: 1080px) {
  .pdx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .pdx-tab { padding: 8px 12px; font-size: 13px; }
  .pdx-spec dt { width: 54px; }
}
@media (max-width: 640px) {
  .pdx-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .pdx-bar { padding-bottom: 14px; margin-bottom: 20px; }
  .pdx-count { display: none; }
  .pdx-card h3 { font-size: 16px; }
}
