/* ===================================
   Products Page Styles
   =================================== */

/* 顶栏 fixed 叠在首屏 Banner 上，白底固定�?70% 透明�?*/
.g-products-page .pc-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.25s ease, backdrop-filter 0.25s ease;
}

/* 覆盖 common-global �?.pc-nav:hover 的实色，保持玻璃�?*/
.g-products-page .pc-nav:hover {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Banner Section */
.g-products-banner {
  position: relative;
  aspect-ratio: 1920 / 528;
  overflow: hidden;
  background: #f9f9f9;
}

.g-products-banner__bg {
 height:100%;
}

.g-products-banner__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  vertical-align: bottom;
}

.g-products-banner__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.g-products-banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}
.no-mengban{
   background: rgba(0, 0, 0, 0);
}
.g-products-banner--cn .g-products-banner__overlay-dark {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}

.g-products-banner__title {
  position: relative;
  font-family: 'Source Han Sans', sans-serif;
  font-weight: 500;
   font-size: clamp(20px, 2vw, 40px);
  color: #ffffff;
  text-align: center;
  letter-spacing: 0.48px;
  margin: 0;
}

.g-products-banner__desc {
  position: relative;
  font-family: 'Source Han Sans', sans-serif;
  font-weight: 400;
  font-size: clamp(16px, 1vw, 24px);
  color: #ffffff;
  text-align: center;
  margin: 16px 0 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.g-products-banner__content {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  vertical-align: bottom;
}

.g-products-banner__description {
  position: relative;
  font-family: 'Source Han Sans', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #ffffff;
  text-align: center;
  margin-top: 16px;
  letter-spacing: 0.16px;
}

/* Breadcrumb */
.g-products-breadcrumb {
  background: #ededed;
  padding: 16px 0;
}

.g-products-breadcrumb__list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.g-products-breadcrumb__item {
  font-family: 'Source Han Sans', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #2b2b2b;
}

.g-products-breadcrumb__link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.g-products-breadcrumb__link:hover {
  color: #f89d1b;
}

.g-products-breadcrumb__item--active .g-products-breadcrumb__link--current {
  color: #f89d1b;
}

.g-products-breadcrumb__separator {
  display: flex;
  align-items: center;
  color: #999;
}

/* 产品区：侧栏 + 列表，横�?flex、不换行；列表占满剩余宽�?*/
.g-products-layout {
  background: #fff;
}

.g-products-layout__inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: clamp(16px, 2vw, 24px);
  padding-top: 40px;
  padding-bottom: 80px;
  box-sizing: border-box;
  max-width: 1680px;
   
}

/* Category Sidebar：白底卡�?+ 深色标题 + 一级手风琴 + 二级复选框与数量（979px 以下�?media：全�?+ 折叠�?*/
.g-products-sidebar {
  flex: 0 0 auto;
  width: 302px;
  max-width: 100%;
  padding: 0;
}


.g-products-sidebar__inner {
  background: #ffffff;
  
  overflow: hidden;
}
.g-products-sidebar__icon img{
  width: 24px;
  height: 24px;
}
.g-products-sidebar__header {
  background: transparent;
  padding: 0 0 24px 0;
}

.g-products-sidebar__toggle {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: #111111;
  font-family: 'Source Han Sans', sans-serif;
  font-weight: bold;
  font-size: 18px;
  text-align: left;
  transition: background 0.2s ease;
  gap: 8px;
   cursor:text;
}

.g-products-sidebar__toggle:hover {
  background: transparent;
}

.g-products-sidebar__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111111;
  flex-shrink: 0;
}

.g-products-sidebar__title {
  margin: 0;
  color: #111111;
  font-size: 20px;
}

.g-products-sidebar__arrow {
  margin-left: auto;
  display: none;
  transition: transform 0.3s ease;
  color: #111111;
}

.g-products-sidebar__arrow svg {
  display: block;
}

@media (max-width: 977px) {
  .g-products-sidebar__arrow {
    display: block;
  }

  .g-products-sidebar__toggle[aria-expanded="true"] .g-products-sidebar__arrow {
    transform: rotate(180deg);
  }
}

.g-products-sidebar__content {
  background: #ffffff;
  padding: 0;
  max-height: none;
  overflow: hidden;
}

.g-products-sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.g-products-sidebar__item {
  border-bottom: none;
  margin-bottom: 8px;
}

.g-products-sidebar__item:last-child {
  margin-bottom: 0;
  background: #fff;
  border-radius: 8px;
}

.g-products-sidebar__acc {
  display: flex;
  flex-direction: column;

  border-radius: 8px;
  overflow: hidden;
}

.g-products-sidebar__acc .g-products-sidebar__chev{
  color: #333;
}
.g-products-sidebar__l1-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 18px;
  margin: 0;
  background: #f5f6f8;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Source Han Sans', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #111111;
  transition: background 0.15s ease, color 0.15s ease;
  border-radius: 8px;
}

.g-products-sidebar__l1-trigger:hover {
  background: #e8eaed;
}

.g-products-sidebar__l1-trigger.is-active {
  background: #424558;
  color: #ffffff;
  border-radius: 8px;
}

.g-products-sidebar__l1-trigger.is-active .g-products-sidebar__chev {
  color: #ffffff;
}

.g-products-sidebar__l1-text {
  flex: 1;
  min-width: 0;
  padding-right: 8px;
}

.g-products-sidebar__chev {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.g-products-sidebar__chev svg {
  display: block;
  transition: transform 0.25s ease;
}

.g-products-sidebar__l1-trigger[aria-expanded="true"] .g-products-sidebar__chev svg {
  transform: rotate(90deg);
}

.g-products-sidebar__l2 {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  background: #ffffff;
}

.g-products-sidebar__l2.is-open {
  display: block;
}

.g-products-sidebar__l2-item {
  margin: 0;
  border-bottom: 1px solid #eeeeee;
  padding-left: 24px;
  overflow: auto;

}

.g-products-sidebar__l2-item:last-child {
  border-bottom: none;
}

.g-products-sidebar__l2-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  padding-left: 0;
  margin: 0;
  cursor: pointer;
  font-family: 'Source Han Sans', sans-serif;
  font-size: 14px;
  color: #888888;
}
.g-products-sidebar__item--leaf .g-products-sidebar__l2-row{
  font-size: 16px;
}
.g-products-sidebar__item--leaf .g-products-sidebar__l2-row .g-products-sidebar__l2-link--root{
font-weight: 500;
}
.g-products-sidebar__chev-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: #888888;
  transition: color 0.2s ease;
}

.g-products-sidebar__chev-btn .g-products-sidebar__chev svg {
  transition: transform 0.25s ease;
}

.g-products-sidebar__chev-btn.is-open .g-products-sidebar__chev svg {
  transform: rotate(90deg);
}

.g-products-sidebar__l2-row:has(.g-products-sidebar__l2-trigger.is-active) .g-products-sidebar__chev-btn,
.g-products-sidebar__chev-btn:hover {
  color: #f89d1b;
}

.g-products-sidebar__l2-row--root {
  padding: 14px 18px;
  background: #f5f6f8;
}

.g-products-sidebar__l2-link {
  flex: 1;
  min-width: 0;
  text-align: left;
  color: #888888;
  text-decoration: none;
  font-weight: 400;
  line-height: 1.45;
  transition: color 0.2s ease;
}

.g-products-sidebar__l2-link:hover,
.g-products-sidebar__l2-link.is-active {
  color: #f89d1b;
  font-weight: 500;
}

.g-products-sidebar__l2-link--root {
  font-weight: bold;
  color: #111111;
}

.g-products-sidebar__l2-link--root:hover,
.g-products-sidebar__l2-link--root.is-active {
  color: #f89d1b;
    background: #f5f6f8;
}

.g-products-sidebar__l2-name {
  display: inline;
}

.g-products-sidebar__l2-item--accordion {
  margin: 0;
  border-bottom: 1px solid #eeeeee;
}

.g-products-sidebar__l2-item--accordion:last-child {
  border-bottom: none;
}

.g-products-sidebar__l2-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 2px 18px;
  margin: 0;
  padding-left: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Source Han Sans', sans-serif;
  font-size: 14px;
  color: #888888;
  font-weight: 400;
  line-height: 1.45;
  transition: color 0.2s ease;
}

.g-products-sidebar__l2-trigger:hover,
.g-products-sidebar__l2-trigger.is-active {
  color: #f89d1b;
  font-weight: 500;
}

.g-products-sidebar__l2-text {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.g-products-sidebar__l3 {
  list-style: none;
  margin: 0;
  padding: 0 0 8px 16px;
  display: none;
}

.g-products-sidebar__l3.is-open {
  display: block;
}

.g-products-sidebar__l3-item {
  margin: 0;
}

.g-products-sidebar__l3-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  padding-left: 0;
  margin: 0;
  cursor: pointer;
  font-family: 'Source Han Sans', sans-serif;
  font-size: 13px;
  color: #888888;
}

.g-products-sidebar__l3-link {
  flex: 1;
  min-width: 0;
  color: #888888;
  text-decoration: none;
  font-weight: 400;
  line-height: 1.45;

  transition: color 0.2s ease;
  font-size: 13px;
}

.g-products-sidebar__l3-link:hover,
.g-products-sidebar__l3-link.is-active {
  color: #f89d1b;
  font-weight: 500;
}

.g-products-sidebar__l3-name {
  display: inline;
}

.g-products-sidebar__count {
  flex-shrink: 0;
  color: #999999;
  font-size: 14px;
  font-weight: 400;
  display: none;
}

.g-products-category__checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.g-products-category__checkmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border: 1.5px solid #cccccc;
  border-radius: 3px;
  background: #ffffff;
  transition: all 0.2s ease;
  position: relative;
}

.g-products-category__checkbox:checked + .g-products-category__checkmark {
  background: #f89d1b;
  border-color: #f89d1b;
}

.g-products-category__checkbox:checked + .g-products-category__checkmark::after {
  content: '';
  width: 4px;
  height: 8px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

/* Products List */
.g-products-list {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  padding: 0;
  background: transparent;
  padding-bottom: 40px;
  display: flex;
  justify-content: flex-start;
  flex-direction: column ;
}


.g-products-list__grid {
  display: flex;
  flex-wrap: wrap;
  
  justify-content: flex-start;
  align-items: stretch;
 width: 100%;
}

.g-products-list__pagination {
  margin-top: 0px;
}
.g-section-title{
  font-size: 40px;
}
/*
 * 产品卡片列数（仅按视口，与侧栏无关；gap 24px �?n 列减�?(n-1)*24�? * �?<768�? �?| �?768�?199�? �?| �?1200�?399�? �?| 超大 �?400�? �? */
.g-product-card {
  /* 单卡宽度不低�?320px（空间不足时随容器变窄，避免小屏横向溢出�?*/
  

  box-sizing: border-box;
  background: #f6f6f7;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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


@media (max-width: 767.98px) {
  .g-product-card {
    width: 100%;
    aspect-ratio: unset;
  }
  .g-products-list {

  justify-content: center;
}
}


.g-product-card__image-wrap {
  position: relative;
  
  margin:0 auto;
  aspect-ratio: 280 / 280;
  overflow: hidden;
  padding: 0 ;
  margin-top: 24px;
  margin-top: 0;
}

@media (max-width: 1236px) {
  .g-product-card__image-wrap {
    max-width: 100%;
  }
}

.g-product-card__image-link {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  display: block;
}

.g-product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.g-product-card:hover .g-product-card__image {
  transform: scale(1.05);
}

.g-product-card__content {
  position: relative;
  overflow: hidden;
  --g-product-card-pad-x: clamp(12px, 2vw, 24px);
  --g-product-card-pad-b: clamp(14px, 3.2vw,24px);
  padding: 0 var(--g-product-card-pad-x) var(--g-product-card-pad-b);
}

.g-product-card__model {
  font-family: 'Source Han Sans', sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: #424558;
  margin-bottom: 8px;
  text-align: center;
  margin-top: 10px;
}

.g-product-card__title {
  font-family: 'Source Han Sans', sans-serif;
  font-weight: 600;
  font-size: clamp(18px,19px,20px);
  color: #111111;
  margin: 0 0 8px;
  line-height: 1.4;
  margin-top: 12px;
  
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  height: auto;
  text-align: center;
}

.g-product-card__title a {
  color: #424558;
  text-decoration: none;
  transition: color 0.2s ease;
}

.g-product-card:hover .g-product-card__title a {
  color: #f89d1b;
}

/* 悬停底部区：Tabs + CTA，默认在内容区外（不占文档流），悬停时整体上移出�?*/
.g-product-card__hover-footer {
  position: absolute;
  left: var(--g-product-card-pad-x);
  right: var(--g-product-card-pad-x);
  bottom: 49px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 0;
  opacity: 0;
  transform: translateY(calc(100% + 40px));
  pointer-events: none;
  transition:
    opacity 0.32s ease,
    transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 991.98px) {
  .g-product-card__content {
    --g-product-card-pad-x: clamp(12px, 4.2vw, 18px);
    --g-product-card-pad-b: clamp(14px, 4.2vw, 20px);
  }

  .g-product-card__hover-footer {
    bottom: 33px;
  }
}

/* Figma：Images | Description | Specifications，中灰字 + 竖线分隔 */
.g-product-card__tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  width: 100%;
}

.g-product-card__tab-sep {
  width: 1px;
  height: 15px;
  flex-shrink: 0;
  align-self: stretch;
  background: #ececee;
}

.g-product-card__tab {

  min-width: 0;
  font-family: 'Source Han Sans', system-ui, sans-serif;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.2;
  color: #888888;
  background: none;
  border: none;
  cursor: default;
  padding: 0 4px;
  margin: 0;
  position: relative;
  text-align: center;
  display: block;
  box-sizing: border-box;
}

/* 核心参数区域：悬停卡片时淡出（仍占位，避免布局跳动�?*/
.g-product-card__tab-content {
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease,
    transform 0.28s ease;
}

/* 核心参数：浅灰圆角条 + 左右键值（对齐设计稿） */
.g-product-card__specs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 26px;
}

.g-product-card__spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: #e8e8e8;
  flex-wrap: nowrap;
  border-radius: 8px;
}

.g-product-card__spec-label {
  font-family: 'Source Han Sans', system-ui, sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.35;
  color: #666666;
  flex-shrink: 1;
  min-width: 0;
  max-width: 55%;
  white-space: nowrap;


}

.g-product-card__spec-value {
  font-family: 'Source Han Sans', system-ui, sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.35;
  color: #333333;
  text-align: right;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 63%;
}

/* 核心参数整行无「名：值」拆分时，仅展示一段文�?*/
.g-product-card__spec-item--single {
  justify-content: flex-start;
}

.g-product-card__spec-item--single .g-product-card__spec-value {
  flex: 1;
  text-align: left;
  max-width: 100%;
}

/* CTA �?hover-footer 内，随整块滑�?*/
.g-product-card__action {
  position: static;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  cursor: pointer;
}

.g-product-card:hover .g-product-card__tab-content {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
}

.g-product-card:hover .g-product-card__hover-footer {
  opacity: 1;
  transform: translateY(20px);
  pointer-events: auto;
}

/* 焦点�?Tabs �?CTA 上时与悬停一�?*/
.g-product-card:has(.g-product-card__hover-footer :focus-visible) .g-product-card__tab-content {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
}

.g-product-card:has(.g-product-card__hover-footer :focus-visible) .g-product-card__hover-footer {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .g-product-card__tab-content,
  .g-product-card__hover-footer {
    transition-duration: 0.01ms;
  }

  .g-product-card:hover .g-product-card__tab-content {
    transform: none;
  }
}

.g-product-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: 147px;
  height: 40px;
  padding: 0 16px;
  background: #f5a200;
  color: #ffffff;
  font-family: 'Source Han Sans', sans-serif;
  font-weight: normal;
  font-size: 14px;
  border: none;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.g-product-card__btn-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  flex-shrink: 0;
}

.g-product-card__btn:hover {
  background: #f5a200;
  transform: none;
}

/* Pagination */
.g-products-list__pagination {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

/* 视口宽度小于 979px：侧栏与列表纵向堆叠、分类区折叠（与�?768 移动端一致） */
@media (max-width: 977px) {
  .g-products-banner{
    margin-top: 58px;
  }

  .g-products-banner__title {
    font-size: clamp(20px, 5vw, 32px);
    
  }

  .g-products-banner__desc {
    font-size: clamp(14px, 3.5vw, 18px);
    margin-top: 12px;
    max-width: 90%;
  }

  .g-products-layout__inner {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 16px;
    padding-top: 24px;
    padding-bottom: 24px;

  }

  .g-products-sidebar {
    width: 100%;
    max-width: 100%;
  }

  .g-products-sidebar__inner {
    border-radius: 8px;
  }

  .g-products-sidebar__content {
    border-radius: 0 0 8px 8px;
    display: none;
  }

  .g-products-sidebar__content.is-visible {
    display: block;
  }

  .g-products-list__grid {

    justify-content: flex-start;
  }

  .g-product-card {
    border-radius: 8px;
  }

  .g-product-card__content {
    padding: 0 16px 18px;
  }

  .g-product-card__hover-footer {
    display: none !important;
  }

  .g-product-card:hover .g-product-card__tab-content,
  .g-product-card:has(.g-product-card__hover-footer :focus-visible) .g-product-card__tab-content {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
  }

  .g-product-card__spec-item {
    padding: 8px 12px;
flex-wrap: nowrap;
    row-gap: 4px;
  }

  .g-product-card__spec-label {
    max-width: 100%;
    white-space: normal;
  }

  .g-product-card__spec-value {
    white-space: normal;
    text-align: left;
    width: auto;
  }

  .g-products-breadcrumb__list {
    flex-wrap: wrap;
  }
}
@media (min-width: 992px) and (max-width: 1236px) {
  .g-products-sidebar {
    width: 240px;
  }
  .g-product-card__title{
    font-size: 18px;
  }
  .g-product-card__model{
    font-size: 16px;
  }
  .g-product-card__spec-label{
    font-size: 12px;
  }
}
