/*
 * 文件作用：
 * 产品中心（shop-home）页面的英雄轮播、产品板块、产品网格样式。
 * 仅对 body.pmgr-page-shop 生效，不污染其他页面。
 *
 * 非首页的导航是白色 fixed（见 nav-footer.css），所以本页面
 * body 需要 padding-top 等于导航高度，避免内容被遮住。
 */

/* ── 页面底色 + 顶部偏移（为 fixed nav 留出空间）── */
body.pmgr-page-shop {
  background: #ffffff !important;
  padding-top: var(--pmgr-nav-height, 84px);
}

/* ══════════════════════════════════════════════════════════════
   英雄轮播区
   ══════════════════════════════════════════════════════════════ */

body.pmgr-page-shop .hero-slider {
  position: relative;
  width: 100% !important;
  max-width: none !important;
  height: 520px;
  overflow: hidden;
  background: #000;
  margin: 0 !important;
}

/* 单张幻灯片 */
body.pmgr-page-shop .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

body.pmgr-page-shop .slide.active {
  opacity: 1;
}

/* 背景图层 */
body.pmgr-page-shop .slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.55) saturate(1.05);
}

/* 渐变叠加层 */
body.pmgr-page-shop .slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.25) 70%, rgba(0, 0, 0, 0) 100%);
}

/* 幻灯片文字内容 */
body.pmgr-page-shop .slide-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  padding: 0 80px;
}

body.pmgr-page-shop .slide-tag {
  display: inline-block;
  background: var(--pmgr-red, #C8102E);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  padding: 6px 14px;
  border-radius: 2px;
  margin-bottom: 18px;
  text-transform: uppercase;
}

body.pmgr-page-shop .slide-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 14px;
  max-width: 680px;
  color: #ffffff !important;
}

body.pmgr-page-shop .slide-subtitle {
  font-size: 17px;
  opacity: 0.9;
  margin: 0 0 28px;
  max-width: 580px;
  color: #ffffff !important;
}

body.pmgr-page-shop .slide-btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--pmgr-red, #C8102E);
  color: #fff !important;
  font-weight: 500;
  border-radius: 4px;
  transition: background 0.2s;
  text-decoration: none;
}

body.pmgr-page-shop .slide-btn:hover {
  background: var(--pmgr-red-hover, #E13349);
}

/* 翻页箭头 */
body.pmgr-page-shop .slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.18);
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s;
}

body.pmgr-page-shop .slider-arrow:hover {
  background: rgba(255, 255, 255, 0.35);
}

body.pmgr-page-shop .slider-prev { left: 24px; }
body.pmgr-page-shop .slider-next { right: 24px; }

/* 圆点指示器 */
body.pmgr-page-shop .slider-dots {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 10;
}

body.pmgr-page-shop .slider-dots button {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, width 0.2s;
}

body.pmgr-page-shop .slider-dots button.active {
  background: #fff;
  width: 30px;
  border-radius: 5px;
}

/* ══════════════════════════════════════════════════════════════
   产品板块（.shop-section）
   ══════════════════════════════════════════════════════════════ */

body.pmgr-page-shop .shop-section {
  padding: 80px 40px;
  width: 100% !important;
}

body.pmgr-page-shop .shop-section.alt,
body.pmgr-page-shop .section-alt {
  background: #f5f6f8;
}

/* 板块标题区 */
body.pmgr-page-shop .section-head {
  max-width: 1280px;
  margin: 0 auto 48px;
  text-align: center;
}

body.pmgr-page-shop .section-head h2 {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1d !important;
  margin: 0 0 10px;
}

body.pmgr-page-shop .section-tag {
  display: inline-block;
  color: var(--pmgr-red, #C8102E);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

body.pmgr-page-shop .section-head p {
  color: #5a5a60 !important;
  font-size: 15px;
}

body.pmgr-page-shop .section-head .divider {
  width: 40px;
  height: 3px;
  background: var(--pmgr-red, #C8102E);
  margin: 14px auto 0;
}

/* 四列产品网格 */
body.pmgr-page-shop .product-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ── 产品卡片 ── */
body.pmgr-page-shop .product-card {
  background: #fff;
  border: 1px solid #e5e6ea;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
  position: relative;
}

body.pmgr-page-shop .product-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

/* 图片区 */
body.pmgr-page-shop .product-img {
  height: 220px;
  background: #f7f8fa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
}

body.pmgr-page-shop .product-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.35s;
}

body.pmgr-page-shop .product-card:hover .product-img img {
  transform: scale(1.06);
}

/* 促销角标 */
body.pmgr-page-shop .product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--pmgr-red, #C8102E);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 2px;
  z-index: 2;
}

/* 卡片正文 */
body.pmgr-page-shop .product-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

body.pmgr-page-shop .product-sku {
  color: var(--pmgr-red, #C8102E);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

body.pmgr-page-shop .product-name {
  font-size: 15px;
  font-weight: 600;
  color: #222226;
  line-height: 1.4;
  margin-bottom: 12px;
  min-height: 42px;
}

body.pmgr-page-shop .product-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

body.pmgr-page-shop .product-price {
  color: var(--pmgr-red, #C8102E);
  font-size: 20px;
  font-weight: 700;
}

body.pmgr-page-shop .product-price-old {
  color: #999;
  font-size: 13px;
  text-decoration: line-through;
}

/* 加购按钮 */
body.pmgr-page-shop .product-btn {
  margin-top: auto;
  display: block;
  text-align: center;
  padding: 10px 0;
  background: #222226;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  border-radius: 4px;
  transition: background 0.2s;
  text-decoration: none;
}

body.pmgr-page-shop .product-btn:hover {
  background: var(--pmgr-red, #C8102E);
}

/* ══════════════════════════════════════════════════════════════
   响应式 — 平板 ≤1023px
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 1023px) {
  body.pmgr-page-shop {
    padding-top: 64px;
  }

  body.pmgr-page-shop .hero-slider {
    height: 400px;
  }

  body.pmgr-page-shop .slide-content {
    padding: 0 40px;
  }

  body.pmgr-page-shop .slide-title {
    font-size: 34px !important;
  }

  body.pmgr-page-shop .slide-subtitle {
    font-size: 15px !important;
  }

  body.pmgr-page-shop .slider-arrow {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  body.pmgr-page-shop .slider-prev { left: 12px; }
  body.pmgr-page-shop .slider-next { right: 12px; }

  body.pmgr-page-shop .shop-section {
    padding: 72px 24px;
  }

  body.pmgr-page-shop .section-head h2 {
    font-size: 28px !important;
  }

  body.pmgr-page-shop .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  body.pmgr-page-shop .product-img {
    height: 180px;
  }
}

/* ══════════════════════════════════════════════════════════════
   响应式 — 手机 ≤639px
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 639px) {
  body.pmgr-page-shop .hero-slider {
    height: 340px;
  }

  body.pmgr-page-shop .slide-content {
    padding: 0 20px;
  }

  body.pmgr-page-shop .slide-tag {
    font-size: 11px;
    padding: 5px 10px;
    margin-bottom: 12px;
  }

  body.pmgr-page-shop .slide-title {
    font-size: 26px !important;
    margin-bottom: 10px;
  }

  body.pmgr-page-shop .slide-subtitle {
    font-size: 13px !important;
    margin-bottom: 18px;
  }

  body.pmgr-page-shop .slider-arrow {
    display: none;
  }

  body.pmgr-page-shop .shop-section {
    padding: 48px 16px;
  }

  body.pmgr-page-shop .section-head {
    margin-bottom: 28px;
  }

  body.pmgr-page-shop .section-head h2 {
    font-size: 22px !important;
  }

  body.pmgr-page-shop .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  body.pmgr-page-shop .product-img {
    height: 140px;
  }
}
