/**
 * 区域 4：核心产品系列与展示 (Core Product Series & Showcase)
 * 100% 像素级对齐《区域4-核心产品系列/核心产品效果图.jpg》
 * （取消图标在 hover 时的 translateY 位移差，原地纯粹 fade 淡入淡出，确保选中/未选中划过都绝对自然平滑）
 */

.product-series-section {
  position: relative;
  width: 100%;
  padding: 0 0 70px;
  background-color: #ffffff;
}

/* 1. 顶部科技蓝 AI 芯片 Banner 背景区 */
.product-series__banner {
  position: relative;
  width: 100%;
  height: 250px;
  background-color: #0f6f9c; /* 图片加载前的兜底色：加深以承载白字标题 */
  background-image: url("../images/slices/区域4-核心产品系列/设计元素-背景图-banner.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.product-series__eyebrow {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.product-series__title {
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 2px;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.product-series__more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 22px;
  font-size: 13px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  backdrop-filter: blur(4px);
  transition: all 0.25s ease;
  text-decoration: none;
}

.product-series__more-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* 2. 4 分类 Tab 导航入口区 (平铺在 Banner 下方) */
.series-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 56px;
  padding: 22px 0 14px;
  background-color: #ffffff;
  margin-bottom: 26px;
}

.series-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px 14px;
  position: relative;
  outline: none;
}

.series-tab::after {
  content: "";
  position: absolute;
  bottom: -11px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background-color: #007868;
  transition: width 0.25s ease;
  border-radius: 2px;
}

/* 悬停已直接驱动 .is-active，故不再保留独立 :hover 视觉，避免移出瞬间双高亮 */
.series-tab.is-active::after {
  width: 100%;
}

.series-tab__icon-box {
  position: relative;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 原地纯粹淡入淡出（无任何位移震荡，解决未选中划过不自然问题） */
.series-tab__icon-black,
.series-tab__icon-green {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.25s ease;
  transform: none;
}

.series-tab__icon-black {
  opacity: 1;
}

.series-tab__icon-green {
  opacity: 0;
}

.series-tab.is-active .series-tab__icon-black {
  opacity: 0;
}

.series-tab.is-active .series-tab__icon-green {
  opacity: 1;
}

.series-tab__name {
  font-size: 18px;
  font-weight: 600;
  color: #333333;
  transition: color 0.25s ease;
  white-space: nowrap;
}

.series-tab.is-active .series-tab__name {
  color: #007868;
  font-weight: 700;
}

/* 3. 展示面板小标题与副描述文本 */
.product-showcase-panel {
  display: none;
  opacity: 0;
  transform: translateX(15px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-showcase-panel.is-active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

.panel-header {
  margin-bottom: 28px;
}

.panel-header__title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
  line-height: 1.2;
}

.panel-header__desc {
  font-size: 13px;
  color: #666666;
  max-width: 720px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.panel-header__line {
  width: 40px;
  height: 3px;
  background-color: #007868;
  border-radius: 2px;
}

/* 4 列产品网格 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px 24px;
}

.product-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

/* 单个产品卡片 */
.product-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  transition: transform 0.25s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
}

/* 浅灰矩形容器 `#f2f4f7` 包裹产品图 */
.product-card__img-box {
  width: 100%;
  height: 200px;
  background-color: #f2f4f7;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.product-card__img-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.product-card:hover .product-card__img-box img {
  transform: scale(1.06);
}

/* 产品底栏：标题 + "更多 ..." 深青绿胶囊按钮 */
.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  gap: 8px;
}

.product-card__title {
  font-size: 15px;
  font-weight: 600;
  color: #111111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.25s ease;
}

.product-card:hover .product-card__title {
  color: #007868;
}

/* "更多 ..." 胶囊按钮 */
.product-card__more-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  color: #ffffff;
  background-color: #007868;
  padding: 3px 14px;
  border-radius: 12px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.25s ease;
}

.product-card:hover .product-card__more-tag {
  background-color: #005f52;
}

/* 面板底部的 "查看更多 >" 大按钮 */
.panel-footer-action {
  text-align: center;
  margin-top: 40px;
}

.panel-footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 36px;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  background-color: #007868;
  border-radius: 24px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 120, 104, 0.25);
}

.panel-footer-btn:hover {
  background-color: #005f52;
  box-shadow: 0 6px 16px rgba(0, 120, 104, 0.35);
  transform: translateY(-2px);
}

/* 响应式适配 */
@media (max-width: 1199px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1023px) {
  .series-tabs {
    gap: 24px;
    flex-wrap: wrap;
  }
  .product-grid,
  .product-grid--3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .product-series__banner {
    background-position: 70% center;
  }
  .series-tabs {
    gap: 16px;
  }
  /* 小屏回落字号与图标尺寸，防止四项挤压溢出 */
  .series-tab__name {
    font-size: 16px;
  }
  .series-tab__icon-box {
    width: 48px;
    height: 48px;
  }
  .product-grid,
  .product-grid--3 {
    grid-template-columns: 1fr;
  }
  .product-card__img-box {
    height: 170px;
  }
}

/* ==========================================================================
   设计稿对齐层（桌面 >= 1024）：核心产品系列
   效果图为全大写英文眉题 + 白色实心胶囊 CTA，区块标题与产品图也更大。
   ========================================================================== */
@media (min-width: 1024px) {
  .product-series__banner { height: 290px; }
  .product-series__eyebrow {
    font-size: 16px;
    letter-spacing: 3px;
    text-transform: uppercase;
  }
  .product-series__title { font-size: 44px; }
  .product-series__more-btn {
    padding: 9px 28px;
    font-size: 15px;
    color: #1a1a1a;
    background: #ffffff;
    border-color: #ffffff;
  }
  .product-series__more-btn:hover {
    background: #f2f6f5;
    color: #1a1a1a;
    border-color: #ffffff;
  }
  .series-tabs { gap: 72px; padding: 34px 0 22px; }
  .panel-header { margin-bottom: 36px; }
  .panel-header__title { font-size: 32px; }
  .panel-header__desc { font-size: 16px; max-width: 860px; }
  .product-card__img-box { height: 240px; }
  .product-card__title { font-size: 17px; }
  .product-card__more-tag { font-size: 13px; padding: 4px 16px; }
}
