/* ==========================================================================
   PRODUCT CATEGORY PAGE
   ========================================================================== */

.product-category-page {
  background: #fff;
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.pcat-top {
  padding-top: 80px;
}

.pcat-hero-top {
  padding: 22px 0;
}

.pcat-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-color);
}

.pcat-breadcrumb a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.2s;
}

.pcat-breadcrumb a:hover {
  color: var(--secondary-color);
}

.pcat-breadcrumb span[aria-current] {
  color: var(--title-color);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.pcat-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0;
  min-height: 300px;
  display: flex;
  align-items: center;
  background: #0b0b0b url("/dist/img/banner/product-category-banner.webp") center right / cover no-repeat;
}

.pcat-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
          90deg,
          rgba(6, 6, 8, 0.96) 0%,
          rgba(6, 6, 8, 0.88) 45%,
          rgba(6, 6, 8, 0.45) 72%,
          rgba(6, 6, 8, 0.15) 100%
  );
}

.pcat-hero .section-content {
  position: relative;
  z-index: 1;
}

.pcat-hero-eyebrow {
  color: #ef3b45;
}

.pcat-hero-title {
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin: 10px 0 16px;
}

.pcat-hero-desc {
  max-width: 560px;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 26px;
}

.pcat-hero .cta-row {
  align-items: center;
  gap: 22px;
}

/*.pcat-hero .btn {*/
/*  padding: 12px 24px;*/
/*}*/

/* ==========================================================================
   Series grid
   ========================================================================== */
.pcat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.pcat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 3px;
  text-decoration: none;
  transition:
          border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
          box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/*.pcat-card:hover {*/
/*  border-color: #d9d9d9;*/
/*  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);*/
/*}*/

.pcat-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
  padding: 15px;
  background: #fff;
}

.pcat-card-media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.pcat-card:hover .pcat-card-media img {
  transform: scale(1.05);
}

.pcat-card-body {
  padding: 14px 16px 16px;
  min-width: 0;
}

.pcat-card-name {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--title-color);
}

.pcat-card-name:hover{
  color: #1e6ffa;
}

.pcat-card-series {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  padding: 3px 8px;
  border: 1px solid #ececec;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.94);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--title-color);
}

.pcat-card-spec {
  margin-top: 5px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-color);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pcat-card-link {
  display: inline-flex;
  justify-content: end;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 600;
  text-align: right;
  color: var(--secondary-color);
  width: 100%;

}

.pcat-card-link i {
  font-size: 10px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.pcat-card:hover .pcat-card-link i {
  transform: translateX(3px);
}

/* ==========================================================================
   Series comparison table
   ========================================================================== */

.series-comparison-section{
  background: rgba(14,14,14,.5) url("/dist/img/banner/cta-banner.webp") center right no-repeat;
  background-size: cover;
  background-blend-mode: multiply;
}

.pcat-table-wrap {
  overflow-x: auto;
  border-radius: 4px;
  background: #fff;
}

.pcat-compare {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 15px;
}

.pcat-compare thead th {
  padding:10px 15px;
  background: var(--secondary-color);
  border-bottom: 1px solid #ececec;

  font-size: 16px;
  font-weight: 500;
  text-align: left;
  color: #fff;
  white-space: nowrap;
}

.pcat-compare tbody th,
.pcat-compare tbody td {
  padding:10px 15px;
  border-bottom: 1px solid #f0f0f0;
  text-align: left;
  font-weight: 400;
  color: var(--text-color);
  vertical-align: middle;
}

.pcat-compare tbody tr:last-child th,
.pcat-compare tbody tr:last-child td {
  border-bottom: none;
}

.pcat-compare tbody tr:nth-child(even) th,
.pcat-compare tbody tr:nth-child(even) td {
  background: #fafafa;
}

.pcat-compare tbody tr:hover th,
.pcat-compare tbody tr:hover td {
  background: #f3f4f6;
}

.pcat-compare-name {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--title-color) !important;
  font-weight: 600 !important;
}

.pcat-compare-name img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
}

/* 深色背景下的模块标题与描述 */
.series-comparison-section .section-head p {
  color: rgba(255, 255, 255, 0.75);
}

/* 隐藏的表格行 */
.pcat-compare-hidden {
  display: none;
}

/* 展开/收起按钮容器 */
.pcat-table-toggle {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.pcat-table-toggle .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.pcat-table-toggle .btn i {
  font-size: 12px;
  transition: transform 0.3s ease;
}

/* ==========================================================================
   Selection guide steps
   ========================================================================== */


.pcat-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.pcat-step {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 26px 20px 18px;
  border: 1px solid #ececec;
  border-radius: 4px;
  background-color: #fff;
  background-image: url("/dist/img/insulated-terminal.png");
  background-repeat: no-repeat;
  background-position: right -6px bottom -4px;
  background-size: 78px auto;
}

/* 步骤之间的箭头 */
.pcat-step::after {
  content: "\203A";
  position: absolute;
  top: 50%;
  right: -22px;
  transform: translateY(-50%);
  font-size: 22px;
  line-height: 1;
  color: #c9c9c9;
}

.pcat-step:last-child::after {
  display: none;
}

.pcat-step-num {
  position: absolute;
  top: -14px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--secondary-color);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.pcat-step-copy {
  min-width: 0;
}

.pcat-step-title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--title-color);
}

.pcat-step-copy p {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-color);
}

/* ==========================================================================
   Part number guide
   ========================================================================== */
.pcat-guide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.pcat-guide-block {
  padding: 26px 28px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 4px;
}

.pcat-guide-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--title-color);
  line-height: 1.35;
  margin-bottom: 18px;
}

.pcat-guide-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pcat-guide-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.pcat-guide-row dt {
  flex: 0 0 62px;
  padding: 3px 0;
  border-radius: 3px;
  background: rgba(176, 13, 21, 0.08);
  color: var(--secondary-color);
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
}

.pcat-guide-row dd {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-color);
}

.pcat-guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.pcat-guide-table th,
.pcat-guide-table td {
  padding: 9px 10px;
  text-align: left;
  border-bottom: 1px solid #ececec;
}

.pcat-guide-table th {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-color);
}

.pcat-guide-table tbody tr:last-child td {
  border-bottom: none;
}

.pcat-guide-table td {
  color: var(--title-color);
}

.pcat-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ==========================================================================
   Industries & applications
   ========================================================================== */
.pcat-ind-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.pcat-industry-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.pcat-industry-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 4px;
  transition:
          border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
          box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.pcat-industry-media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #f2f2f2;
}

.pcat-industry-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.pcat-industry-card:hover .pcat-industry-media img {
  transform: scale(1.06);
}

.pcat-industry-body {
  padding: 14px 16px 18px;
}

.pcat-industry-name {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--title-color);
}

.pcat-industry-body p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-color);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.pcat-faq {
  border-top: 1px solid #ececec;
}

.pcat-faq-item {
  border-bottom: 1px solid #ececec;
}

.pcat-faq-q {
  padding: 16px 2px 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--title-color);
}

.pcat-faq-a p {
  padding: 8px 2px 16px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-color);
}

/* ==========================================================================
   CTA
   ========================================================================== */
.pcat-cta {
  position: relative;
  padding: 56px 0;
  text-align: center;
  background: #0a0a0a url("/dist/img/banner/cta-banner.webp") center right / cover no-repeat;
}

.pcat-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
          90deg,
          rgba(6, 6, 8, 0.95) 0%,
          rgba(24, 4, 6, 0.9) 52%,
          rgba(10, 10, 12, 0.72) 100%
  );
}

.pcat-cta .section-content {
  position: relative;
  z-index: 1;
}

.pcat-cta .section-title {
  margin-bottom: 10px;
}

.pcat-cta p {
  max-width: 620px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.74);
}

.pcat-cta .btn {
  margin-top: 20px;
  padding: 12px 24px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* ≤ 1200px */
@media (max-width: 1200px) {
  .pcat-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pcat-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
  }

  .pcat-step:nth-child(2n)::after {
    display: none;
  }
}

/* ≤ 1000px */
@media (max-width: 1000px) {
  .pcat-guide {
    grid-template-columns: 1fr;
  }
}

/* ≤ 900px */
@media (max-width: 900px) {
  .pcat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pcat-industry-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ≤ 768px */
@media (max-width: 768px) {
  .pcat-top {
    padding-top: 60px;
  }

  .pcat-hero {
    padding: 42px 0;
    min-height: 0;
  }

  .pcat-hero::before {
    background: linear-gradient(
            180deg,
            rgba(6, 6, 8, 0.94) 0%,
            rgba(6, 6, 8, 0.86) 60%,
            rgba(6, 6, 8, 0.72) 100%
    );
  }

  .pcat-steps {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .pcat-step::after {
    display: none;
  }

  .pcat-cta {
    padding: 40px 0;
  }
}

/* ≤ 480px */
@media (max-width: 480px) {
  .pcat-grid {
    grid-template-columns: 1fr;
  }

  .pcat-industry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 分类下暂无产品系列时的占位文案 */
.pcat-empty {
  padding: 40px 0;
  text-align: center;
  font-size: 15px;
  color: var(--text-color);
}
