/* 产品中心内页 · Figma 136:5291 */
body.page-products {
  padding-top: var(--header-h);
  background: #fff;
}

body.page-products .header {
  position: fixed;
}

/* ========== Banner 1920 x 455 ========== */
.page-hero {
  position: relative;
  width: 100%;
  height: 455px;
  overflow: hidden;
  background: #1f2937;
}

.page-hero-media {
  position: absolute;
  inset: 0;
  opacity: 0.8;
  overflow: hidden;
}

.page-hero-media img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  max-width: none;
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: center center;
}

.page-hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--c-primary) 0%, rgba(255, 255, 255, 0) 71.693%);
  pointer-events: none;
}

.page-hero-copy {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 1px;
}

.page-hero-copy h1 {
  font-size: 48px;
  line-height: 48px;
  font-weight: 400;
  letter-spacing: 1.2px;
  color: #fff;
  margin-bottom: 24px;
}

.crumb {
  display: flex;
  align-items: center;
  font-size: 16px;
  line-height: 24px;
  color: #e5e7eb;
}

.crumb a {
  color: #e5e7eb;
  margin-left: 8px;
}

.crumb i {
  margin-left: 8px;
  font-style: normal;
}

.crumb span {
  margin-left: 8px;
  color: #fff;
}

/* ========== 产品列表 ========== */
.plist {
  padding: 67px 0 90px;
}

.plist-card {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.19);
}

.plist-hit {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.plist-card + .plist-card {
  margin-top: 54px;
}

.plist-card:hover {
  border-color: transparent;
}

.plist-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.plist-card:hover .plist-bg {
  opacity: 0.7;
  visibility: visible;
}

.plist-copy {
  position: relative;
  z-index: 3;
  min-width: 0;
}

.plist-copy h2 {
  font-size: 40px;
  line-height: 32px;
  font-weight: 400;
  letter-spacing: 1.2px;
  color: #333;
  transition: color 0.25s ease;
}

.plist-card:hover .plist-copy h2 {
  color: var(--c-primary);
}

.plist-copy p {
  margin-top: 47px;
  font-size: 18px;
  line-height: 30px;
  color: #666;
}

.plist-btn {
  display: none;
  align-items: center;
  justify-content: center;
  margin-top: 47px;
  height: 46px;
  padding: 0 24px;
  background: var(--c-primary);
  color: #fff;
  font-size: 16px;
  line-height: 20px;
  border-radius: 12px;
}

.plist-card:hover .plist-btn {
  display: inline-flex;
}

.plist-more {
  display: inline-block;
  margin-top: 62px;
  font-size: 16px;
  line-height: 24px;
  color: var(--c-primary);
}

.plist-card:hover .plist-more {
  display: none;
}

/* Figma 136:5291 · 左文右图 flex，避免绝对定位错位/大块留白 */
.plist-photo {
  position: relative;
  z-index: 1;
  overflow: visible;
  pointer-events: none;
  background: transparent;
}

.plist-photo img {
  display: block;
  background: transparent;
}

/* 素材白底 JPG：悬停时与 plist-bg 纹理融合，避免出现白块 */
.plist-card:hover .plist-photo img {
  mix-blend-mode: multiply;
}

@media (min-width: 1020px) {
  .plist-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(28px, 4vw, 72px);
    min-height: 585px;
    padding: 40px clamp(24px, 3vw, 48px) 40px clamp(24px, 10vw, 225px);
  }

  .plist-copy {
    flex: 0 1 468px;
    width: min(468px, 38%);
    max-width: 468px;
    margin: 0;
    padding: 0;
  }

  .plist-photo {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: clamp(280px, 28vw, 481px);
    max-width: 58%;
  }

  .plist-photo img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: right center;
  }

  .plist-photo--1 {
    max-width: min(58%, 554px);
    height: clamp(280px, 28vw, 481px);
  }

  .plist-photo--2 {
    max-width: min(50%, 450px);
    height: clamp(240px, 22vw, 378px);
  }

  .plist-photo--2 img {
    transform: scale(1.14);
    transform-origin: right center;
  }

  .plist-photo--3 {
    max-width: min(58%, 554px);
    height: clamp(240px, 22vw, 377px);
  }

  .plist-photo--3 img {
    transform: scale(1.12);
    transform-origin: right center;
  }

  .plist-photo--4 {
    max-width: min(62%, 710px);
    height: clamp(260px, 24vw, 400px);
  }
}

@media (max-width: 1600px) and (min-width: 1020px) {
  .plist-card {
    padding-left: clamp(24px, 5vw, 80px);
  }
}

@media (max-width: 1366px) and (min-width: 1020px) {
  .plist {
    padding: 48px 0 72px;
  }

  .plist-card {
    min-height: 520px;
    gap: 24px;
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .plist-card + .plist-card {
    margin-top: 32px;
  }

  .plist-copy {
    width: min(420px, 42%);
  }

  .plist-copy h2 {
    font-size: 30px;
    line-height: 1.25;
  }

  .plist-copy p {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.65;
  }

  .plist-more,
  .plist-btn {
    margin-top: 28px;
  }

  .plist-photo {
    max-width: 52%;
  }
}

@media (max-width: 1019px) {
  .page-hero {
    height: 320px;
  }

  .page-hero-media img {
    left: 50%;
    top: 50%;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    object-position: center center;
  }

  .page-hero-copy h1 {
    font-size: 36px;
    line-height: 40px;
  }

  .plist {
    padding: 40px 0 64px;
  }

  .plist-card {
    min-height: 0;
    height: auto;
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    padding: 24px 24px 40px;
  }

  .plist-card + .plist-card {
    margin-top: 24px;
  }

  .plist-copy {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 8px 0 0;
  }

  .plist-copy h2 {
    font-size: 28px;
    line-height: 36px;
  }

  .plist-copy p {
    margin-top: 16px;
  }

  .plist-btn,
  .plist-more {
    margin-top: 24px;
  }

  .plist-photo,
  .plist-photo--1,
  .plist-photo--2,
  .plist-photo--3,
  .plist-photo--4 {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    width: 100%;
    max-width: 520px;
    height: 280px;
    margin: 0 auto 16px;
  }

  .plist-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    object-fit: contain;
    object-position: center;
  }

  .plist-photo--2 img,
  .plist-photo--3 img {
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    transform: none;
  }

  .plist-photo {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-hero {
    height: 180px;
  }

  .page-hero-copy h1 {
    font-size: 24px;
    line-height: 30px;
    margin-bottom: 10px;
    letter-spacing: 0.4px;
  }

  .crumb {
    font-size: 12px;
    line-height: 18px;
    flex-wrap: wrap;
  }

  .plist {
    padding: 24px 0 48px;
  }

  .plist-card {
    padding: 16px 16px 24px;
  }

  .plist-copy h2 {
    font-size: 20px;
    line-height: 28px;
  }

  .plist-copy p {
    font-size: 14px;
    line-height: 24px;
  }

  .plist-btn {
    display: inline-flex;
    margin-top: 16px;
    height: 40px;
    font-size: 14px;
  }

  .plist-more {
    display: none;
  }

  .plist-photo,
  .plist-photo--1,
  .plist-photo--2,
  .plist-photo--3,
  .plist-photo--4 {
    height: 180px;
    margin-bottom: 8px;
  }
}

@media (max-width: 480px) {
  .page-hero {
    height: 148px;
  }

  .page-hero-copy h1 {
    font-size: 22px;
    line-height: 28px;
  }
}

@media (hover: none) {
  .plist-btn {
    display: inline-flex;
  }

  .plist-more {
    display: none;
  }

  .plist-card:hover {
    border-color: rgba(0, 0, 0, 0.19);
  }

  .plist-card:hover .plist-copy h2 {
    color: #333;
  }
}

.plist-result {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 24px;
  color: #64748b;
}

.plist-empty {
  padding: 48px 0;
  text-align: center;
  color: #6b7280;
  font-size: 16px;
}

.npage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 52px;
  padding-top: 8px;
}

.npage a,
.npage span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  background: #eceef2;
  color: #4b5563;
  font-size: 16px;
  line-height: 20px;
  border-radius: 9999px;
}

.npage a.is-active {
  background: var(--c-primary);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.npage .npage-ellipsis {
  min-width: 0;
  height: auto;
  padding: 0 4px;
  background: none;
  color: #9ca3af;
  font-size: 14px;
}

.npage .npage-next,
.npage .npage-prev {
  padding: 0 20px;
}

@media (max-width: 1019px) {
  .npage {
    gap: 8px;
    margin-top: 28px;
  }
}
