/* ========== Products Hero ========== */
.products-hero {
  margin-top: var(--header-height);
  position: relative;
  overflow: hidden;
  min-height: 160px;
}

.products-hero-img {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  z-index: 0;
}

/* 手机端 Banner（后台填写后才输出，默认隐藏） */
.products-hero-img-mobile {
  display: none;
}

.products-hero-inner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.products-hero-content {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 24px;
  max-width: 49%;
  min-width: 280px;
}

.products-hero-content h1 {
  font-size: var(--mid-font-size);
  font-weight: 700;
  color: white;
  margin-bottom: 24px;
  line-height: 1.3;
}

.products-hero-content p {
  font-size: var(--small-font-size);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.75;
  /* max-width: 85%; */
  max-width: 64%;
}

/* ========== Product Category ========== */
.product-category {
  padding: 80px 0;
}

.product-category.bg-light {
  background: var(--color-bg-light);
}

.category-header {
  margin-bottom: 56px;
}

.category-badge {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  padding: 1px 8px;
  background: rgba(0, 102, 255, 0.08);
  border-radius: 4px;
  margin-bottom: 12px;
  position: relative;
}
.category-badge::after{
  position: absolute;
    left: -10px;
    top: 0;
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: var(--color-primary);
    flex-shrink: 0;
}
.category-title {
  font-size: var(--big-font-size);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.category-desc {
  font-size: 15px;
  color: var(--color-text-light);
}

/* ========== Product Grid ========== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
 
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== Product Card ========== */
.product-card {
  background: #F9F9FA;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  /* border: 1px solid var(--color-border); */
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.product-card.compact {
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: center;
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
}

.product-card.compact .product-card-image {
  height: 140px;
}

.product-card-image {
  padding: 15px 10px;
  /* height: 282px; */
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

.product-card-info {
  padding: 20px 24px;
}

.product-colors {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.color-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--color-border);
}

.product-card-info h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 12px;
}

.product-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-model {
  font-size: 16px;
  color: #667085;
}

/* ========== Product Detail ========== */
.pd-hero {
  margin-top: var(--header-height);
  padding: 60px 0;
  background: var(--color-bg-light);
}

.pd-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.pd-gallery-main {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1;
  margin-bottom: 16px;
}

.pd-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 24px;
}

.pd-gallery-thumbs {
  display: flex;
  gap: 12px;
}

.pd-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
  background: white;
}

.pd-thumb.active,
.pd-thumb:hover {
  border-color: var(--color-primary);
}

.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
  padding: 1px 8px;
  background: rgba(0, 102, 255, 0.08);
  border-radius: 4px;
  margin-bottom: 16px;
}

.pd-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
}

.pd-size {
  font-size: 15px;
  color: var(--color-text-light);
  margin-bottom: 20px;
}

.pd-colors {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.pd-color-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 0 1px var(--color-border);
}

.pd-specs {
  border-top: 1px solid var(--color-border);
  margin-bottom: 32px;
}

.pd-spec-row {
  display: flex;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}

.pd-spec-label {
  width: 120px;
  color: var(--color-text-lighter);
  flex-shrink: 0;
}

.pd-spec-value {
  color: var(--color-text);
}

.pd-cta {
  display: inline-flex;
  align-items: center;
  padding: 14px 36px;
  background: var(--color-primary);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  transition: background 0.3s ease;
}

.pd-cta:hover {
  background: #0052cc;
}

.pd-desc-section {
  padding: 60px 0;
}

.pd-desc-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-light);
}

.pd-back {
  padding: 0 0 60px;
}

.pd-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.pd-back-link:hover {
  opacity: 0.7;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .products-hero-content {
    max-width: 48%;
  }
  .products-hero-content h1 {
    font-size: 30px;
  }
  .products-hero-content p {
    font-size: 14px;
  }
}
@media (max-width: 768px) {
  /* 配置了手机端 Banner 时，≤768px 用手机端图，否则沿用 PC 端图 */
  .products-hero.has-mobile-banner .products-hero-img-pc {
    display: none;
  }

  .products-hero.has-mobile-banner .products-hero-img-mobile {
    display: block;
  }

  .products-hero-content {
    left: 16px;
    right: 16px;
    top: 73%;
    max-width: none;
    min-width: 0;
    /* background: rgba(0, 102, 255, 0.55); */
    /* border-radius: 12px;
    padding: 20px; */
    /* backdrop-filter: blur(4px); */
  }

  .products-hero-content h1 {
    font-size: 28px;
  }

  .products-hero-content p {
    max-width: 100%;
  }

  .product-grid.cols-2 {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .product-card.compact {
    grid-template-columns: 1fr;
  }

  .product-card.compact .product-card-image {
    height: 180px;
  }
  .pd-hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pd-title {
    font-size: 24px;
  }
  .color-dot{width: 16px;height: 16px;}
}
