/* ==========================================================================
   PRODUCTS PAGE
   ========================================================================== */

.products-page {
  background: #fff;
  color: var(--title-color);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.products-hero {
  position: relative;
  overflow: hidden;
  margin-top: 80px;
  padding: 0;
  display: flex;
  align-items: center;
  min-height: 280px;
  background: #0b0b0b;
}

.products-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.products-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.products-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
          90deg,
          rgba(8, 8, 10, 0.97) 0%,
          rgba(8, 8, 10, 0.9) 42%,
          rgba(8, 8, 10, 0.42) 68%,
          rgba(8, 8, 10, 0.1) 100%
  );
}

.products-hero-inner {
  position: relative;
  z-index: 2;
  padding: 56px 0;
}

/* Hero 深色底上的 eyebrow：只覆盖颜色 + 前置短线 */
.products-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ef3b45;
}

.products-eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: #ef3b45;
}

.products-hero h1 {
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  max-width: 760px;
}

.products-hero p {
  margin-top: 14px;
  max-width: 620px;
  font-size: clamp(15px, 1.05vw, 16.5px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

/* ==========================================================================
   Category cards
   ========================================================================== */
.products-categories {
  padding: 40px 0;
}

.products-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.products-cat-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px 18px 8px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  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);
}

.products-cat-card:hover {
  border-color: #d8d8d8;
}

.products-cat-media {
  flex: 0 0 44%;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-height: 110px;
}

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

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

.products-cat-body {
  flex: 1;
  min-width: 0;
}

.products-cat-name {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--title-color);
  margin-bottom: 8px;
}

.products-cat-name:hover{
  color: #1e6ffa;
}

.products-cat-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-color);
  margin-bottom: 14px;
}

.products-cat-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--secondary-color);
}

.products-cat-link i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--secondary-color);
  color: #fff;
  font-size: 9px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.products-cat-card:hover .products-cat-link i {
  transform: translateX(4px);
}

/* ==========================================================================
   Featured series
   ========================================================================== */
.products-series-body {
  display: grid;
  grid-template-columns: 250px 1fr;
  background: #fff;
  border: 1px solid #ededed;
  border-radius: 6px;
  overflow: hidden;
}

/* 左侧主推卡片（3 张轮换） */
.series-feature-col {
  position: relative;
  min-height: 320px;
}

.series-feature-slides {
  position: absolute;
  inset: 0;
}

.series-feature {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  text-decoration: none;
  background: #111;
  opacity: 0;
  visibility: hidden;
  transition:
          opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
          visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.series-feature.is-active {
  opacity: 1;
  visibility: visible;
}

.series-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.series-feature:hover img {
  transform: scale(1.06);
}

.series-feature-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
          to top,
          rgba(0, 0, 0, 0.82) 0%,
          rgba(0, 0, 0, 0.35) 45%,
          rgba(0, 0, 0, 0.1) 100%
  );
}

.series-feature-body {
  position: relative;
  z-index: 1;
  display: block;
  padding: 24px 22px 54px;
}

/* 切换圆点 */
.series-dots {
  position: absolute;
  left: 22px;
  bottom: 24px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.series-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  transition:
          background 0.25s,
          width 0.25s;
}

.series-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.series-dot.is-active {
  width: 22px;
  border-radius: 5px;
  background: #fff;
}

.series-feature-name {
  display: block;
  padding-top: 12px;
  border-top: 2px solid var(--secondary-color);
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.series-feature-sub {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.72);
}

/* 右侧型号网格（3 组，每次显示一组） */
.series-panels {
  display: grid;
}

.series-grid {
  list-style: none;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 1px;
  background: #ededed;
}

.series-grid.is-active {
  display: grid;
}

.series-item {
  background: #fff;
}

.series-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 100%;
  padding: 20px 12px;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s;
}

.series-item a:hover {
  background: #fafafa;
}

.series-item-img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  margin-bottom: 8px;
}

.series-item-img img {
  max-width: 100%;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.series-item strong {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--title-color);
  line-height: 1.3;
}

.series-item-sub {
  font-size: 12.5px;
  color: var(--text-color);
  line-height: 1.4;
}

/* ==========================================================================
   Why choose band
   ========================================================================== */
.products-why {
  padding: 0;
  background: #fff;
}

.products-why-band {
  display: grid;
  grid-template-columns: 38% 1fr;
  align-items: stretch;
  min-height: 150px;
  background: #0a0a0a;
  overflow: hidden;
}

.products-why-media {
  position: relative;
  min-height: 200px;
}

.products-why-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--secondary-color);
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
  transform: translateX(16px);
}

.products-why-media img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
}

.products-why-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 36px 40px 36px 56px;
}

.products-why-copy p {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

.products-why-btn {
  flex-shrink: 0;
  padding: 12px 24px;
  border-radius: 24px;
}

/* ==========================================================================
   Feature strip
   ========================================================================== */
.products-features {
  padding-top: 34px;
  padding-bottom: 34px;
}

.products-feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
}

.products-feature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 4px 16px;
  border-left: 1px solid var(--border-color);
}

.products-feature:first-child {
  border-left: none;
}

.products-feature i {
  color: var(--secondary-color);
  font-size: 26px;
  flex-shrink: 0;
}

.products-feature span {
  font-size: 15px;
  font-weight: 600;
  color: var(--title-color);
  line-height: 1.35;
}

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

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

  .products-series-body {
    grid-template-columns: 220px 1fr;
  }

  .series-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .products-why-band {
    grid-template-columns: 42% 1fr;
  }

  .products-why-content {
    padding: 32px 28px 32px 40px;
    gap: 28px;
  }

  .products-feature-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px 0;
  }

  .products-feature:nth-child(4) {
    border-left: none;
  }
}

/* ≤ 900px */
@media (max-width: 900px) {
  .products-series-body {
    grid-template-columns: 1fr;
  }

  .series-feature-col {
    min-height: 220px;
  }

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

  .products-why-band {
    grid-template-columns: 1fr;
  }

  .products-why-media {
    min-height: 180px;
  }

  .products-why-media::before,
  .products-why-media img {
    clip-path: none;
  }

  .products-why-media::before {
    display: none;
  }

  .products-why-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 28px 24px 32px;
  }

  .products-feature-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-feature:nth-child(4),
  .products-feature:nth-child(3) {
    border-left: none;
  }
}

/* ≤ 768px */
@media (max-width: 768px) {
  .products-hero {
    margin-top: 60px;
    min-height: 0;
  }

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

  .products-hero-inner {
    padding: 44px 0;
  }

  .products-cat-grid {
    grid-template-columns: 1fr;
  }

  .products-cat-card {
    padding: 14px 16px 14px 6px;
  }

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

  .products-feature-list {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .products-feature,
  .products-feature:nth-child(3),
  .products-feature:nth-child(4) {
    border-left: none;
    justify-content: flex-start;
  }
}
