/* ==================== 产品轮播外层区块 ==================== */
.products-section {
  background: #f2f2f2;
  padding: 40px 40px;
}
.ps-title-pc {
  font-size: var(--section-title-fs-p);
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 36px;
  letter-spacing: 1px;
}
.ps-title-m {
  display: none;
}
@media (max-width: 860px) {
  .products-section {
    background: #f2f2f2;
    padding: 20px 20px 10px 20px;
  }
  .ps-title-pc {
    display: none;
  }
  .ps-title-m {
    display: block;
    margin: 0 0 10px;
  }
  .ps-title-en {
    font-size: var(--section-title-fs-m);
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.2;
  }
  .ps-title-cn {
    font-size: var(--section-title-fs-m);
    color: #555;
    margin-top: 2px;
  }
}

/* ==================== 产品轮播组件样式 ==================== */
/* 纵向滚动条常驻占位，避免图片加载后出现/消失导致容器宽度跳动 */
html {
  overflow-y: scroll;
}
.pc-carousel {
  position: relative;
  width: 100%;
  padding: 10px 0;
}
.pc-window {
  overflow: hidden;
  user-select: none;
  padding-top: 8px;
  margin-top: -8px;
  padding-right: 4px;
  border-radius: 12px;
  /* 水平手势归组件（拖拽切图），垂直滚动归页面；避免触发浏览器返回/前进手势 */
  touch-action: pan-y;
}
.pc-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.pc-card {
  background: #fff;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  min-height: 360px;
  text-decoration: none;
  color: #111;
  box-sizing: border-box;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition:
    flex-basis 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.35s ease,
    box-shadow 0.35s ease;
  will-change: flex-basis, transform;
}

.pc-card-model {
  font-family: "Gilroy-Bold";
  font-size: 18px;
  letter-spacing: 0.5px;
  display: inline-block;
  position: relative;
  align-self: flex-start;
}
.pc-card-model::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  height: 1px;
  width: 100%;
  background: #1a1a1a;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}
.pc-card:hover .pc-card-model::after {
  transform: scaleX(1);
}
.pc-card-img {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
}
.pc-card-img img {
  max-width: 100%;
  max-height: 280px;
  object-fit: contain;
  -webkit-user-drag: none;
  user-drag: none;
  transition: transform 0.35s ease;
}
.pc-card:hover .pc-card-img img {
  transform: scale(1.08);
}
.pc-card-name {
  font-size: 16px;
  color: #666;
}

/* 右下角圆形切换按钮（PC/中屏由 JS 定位在大卡右下角；手机端在 @media 中移出产品区域） */
.pc-nav {
  position: absolute;
  bottom: 29px;
  display: flex;
  gap: 6px;
  z-index: 2;
  transition:
    left 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
    right 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.pc-nav button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #333;
  background: #fff;
  cursor: pointer;
  position: relative;
  padding: 0;
  transition: background 0.2s;
  /* no mobile tap highlight block */
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  outline: none;
}

/* press feedback: slight shrink */
.pc-nav button:active {
  transform: scale(0.9);
  transition:
    background 0.2s,
    transform 0.15s;
}
.pc-nav button:hover {
  background: #111;
}
.pc-nav button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-top: 1px solid #333;
  border-right: 1px solid #333;
  transition: border-color 0.2s;
}
.pc-nav button:hover::before {
  border-color: #fff;
}
.pc-prev::before {
  transform: translate(-30%, -50%) rotate(-135deg);
}
.pc-next::before {
  transform: translate(-70%, -50%) rotate(45deg);
}

/* 手机(≤860px)：横向滑动轨道，当前卡占满 + 右侧露出下一张卡边缘，切换为平滑滑动 */
@media (max-width: 860px) {
  .pc-window {
    /* background: #fff; */
    padding-top: 0;
    margin-top: 0;
    padding-right: 0;
  }
  .pc-track {
    gap: 20px;
    position: relative;
    height: 440px;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
  }
  .pc-card {
    min-height: 440px;
    padding: 0;
    position: static;
    flex: 0 0 auto;
    opacity: 1;
    pointer-events: auto;
    transition: none;
  }
  .pc-card-model {
    background: #000;
    color: #fff;
    padding: 12px 18px;
    font-size: 14px;
    display: block;
    align-self: stretch;
    border-radius: 12px 12px 0 0;
  }
  .pc-card-model::after {
    display: none;
  }
  .pc-card-img {
    flex: 1;
    padding: 14px 8px;
  }
  .pc-card-img img {
    max-height: 300px;
  }
  .pc-card-name {
    padding: 0 18px 16px;
    font-size: 13px;
  }
  .pc-nav {
    /* 手机端：按钮移出产品区域，位于卡片下方右侧 */
    position: static;
    justify-content: flex-end;
    padding-right: 12px;
    margin-top: 8px;
  }
}
