/* ==================== 首页产品轮播与产品区 ==================== */

.product-carousel {
  height: min(760px, calc(100vh - var(--nav-height) - 72px));
  min-height: 520px;
  display: block;
  background: #050508;
  border-bottom: 1px solid var(--border-light);
}

.product-carousel::before {
  display: none;
}

.product-carousel-track,
.product-carousel-slide {
  position: absolute;
  inset: 0;
}

.product-carousel-track {
  overflow: hidden;
}

.product-carousel-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.56s ease;
}

.product-carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.product-carousel-slide:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -6px;
}

.product-carousel-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.product-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(10, 10, 15, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  font-size: 30px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
}

.product-carousel-arrow:hover {
  background: rgba(255, 107, 53, 0.86);
  border-color: rgba(255, 255, 255, 0.38);
}

.product-carousel-arrow:focus-visible,
.product-carousel-dot:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.product-carousel-arrow--prev {
  left: 22px;
}

.product-carousel-arrow--next {
  right: 22px;
}

.product-carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
}

.product-carousel-dot {
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  transition: width var(--transition-base), background var(--transition-base);
}

.product-carousel-dot.is-active {
  width: 54px;
  background: var(--color-accent);
}

.section-products {
  padding: 86px 24px 96px;
  background: var(--bg-page);
}

.products-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.products-inner .section-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 10px;
  text-align: center;
  color: var(--text-primary);
}

.products-sub {
  max-width: 620px;
  margin: 0 auto 42px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
  text-align: center;
}

.product-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.product-showcase-card {
  --entry-accent: var(--color-accent);
  --entry-accent-soft: rgba(255, 107, 53, 0.16);
  --entry-border: rgba(255, 107, 53, 0.42);
  min-width: 0;
  min-height: 430px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 32%),
    linear-gradient(180deg, var(--bg-card), rgba(8, 8, 13, 0.98));
  border: 1px solid var(--border-light);
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.product-showcase-card--cooler {
  --entry-accent: #4EC8FF;
  --entry-accent-soft: rgba(78, 200, 255, 0.16);
  --entry-border: rgba(78, 200, 255, 0.44);
}

.product-showcase-card--controller {
  --entry-accent: var(--color-accent);
  --entry-accent-soft: rgba(255, 107, 53, 0.17);
  --entry-border: rgba(255, 107, 53, 0.42);
}

.product-showcase-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-top: 3px solid var(--entry-accent);
  background:
    linear-gradient(90deg, var(--entry-accent-soft), transparent 42%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 16px);
  opacity: 0.86;
  pointer-events: none;
}

.product-showcase-card::after {
  content: attr(data-entry-code);
  position: absolute;
  right: 22px;
  bottom: 14px;
  color: rgba(255, 255, 255, 0.035);
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  pointer-events: none;
}

.product-showcase-card:hover {
  transform: translateY(-4px);
  border-color: var(--entry-border);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.34);
}

.product-showcase-card:focus-visible {
  outline: 2px solid var(--entry-accent);
  outline-offset: 4px;
}

.product-showcase-topline,
.product-showcase-body {
  position: relative;
  z-index: 1;
}

.product-showcase-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.product-showcase-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.product-showcase-kicker {
  color: var(--entry-accent);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.product-showcase-model {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
}

.product-showcase-title {
  color: var(--text-primary);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
}

.product-showcase-desc {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.product-showcase-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 26px 0 24px;
  padding: 1px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.product-showcase-spec {
  min-width: 0;
  padding: 16px 12px;
  background: rgba(6, 6, 10, 0.78);
}

.product-showcase-spec dt {
  color: var(--entry-accent);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0;
  white-space: nowrap;
}

.product-showcase-spec dd {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.product-showcase-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.product-showcase-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .product-carousel {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .product-carousel-arrow {
    width: 36px;
    height: 36px;
    font-size: 24px;
  }

  .product-carousel-arrow--prev {
    left: 10px;
  }

  .product-carousel-arrow--next {
    right: 10px;
  }

  .product-carousel-dots {
    bottom: 10px;
  }

  .product-carousel-dot {
    width: 22px;
    height: 3px;
  }

  .product-carousel-dot.is-active {
    width: 36px;
  }

  .section-products {
    padding: 56px 16px 66px;
  }

  .products-inner .section-title {
    font-size: 26px;
  }

  .products-sub {
    margin-bottom: 28px;
    font-size: 14px;
  }

  .product-showcase-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .product-showcase-card {
    min-height: 0;
    padding: 24px 18px;
  }

  .product-showcase-topline {
    margin-bottom: 24px;
  }

  .product-showcase-title {
    font-size: 26px;
  }

  .product-showcase-specs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-showcase-spec {
    padding: 13px 8px;
  }

  .product-showcase-spec dt {
    font-size: 20px;
  }

  .product-showcase-spec dd {
    margin-top: 7px;
  }
}

@media (max-width: 420px) {
  .product-showcase-card {
    padding: 22px 16px;
  }

  .product-showcase-specs {
    grid-template-columns: 1fr;
  }

  .product-showcase-spec {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 12px;
  }

  .product-showcase-spec dd {
    margin-top: 0;
    text-align: right;
  }
}
