﻿
    /* ================= 顶部深色条 (Top Bar) ================= */
    .top-bar-dx {
      background-color: #2b2b2b;
      color: #ffffff;
      padding: 8px 5%;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 14px;
    }
    .top-left-dx {
      display: flex;
      gap: 20px;
    }
    .top-left-dx a {
      display: flex;
      align-items: center;
      gap: 6px;
      color: #e0e0e0;
      transition: color 0.3s;
    }
    .top-left-dx a:hover {
      color: #ffffff;
    }
    .top-right-dx {
      display: flex;
      gap: 20px;
    }
    .top-right-dx a {
      display: flex;
      align-items: center;
      gap: 6px;
      color: #e0e0e0;
      transition: color 0.3s;
    }
    .top-right-dx a:hover {
      color: #ffffff;
    }

    /* ================= 主导航条 (Main Header) ================= */
    .main-header-dx {
      background-color: #ffffff;
      border-bottom: 1px solid #e5e5e5;
      padding: 15px 5%;
      display: flex;
      justify-content: space-between;
      align-items: center;
      position: relative;
    }
    /* Logo 样式 */
    .logo-dx {
      font-size: 32px;
      font-weight: bold;
      color: #4670ad;
      display: flex;
      align-items: center;
      letter-spacing: -0.5px;
    }
    .logo-dx span {
      color: #4670ad;
    }

    /* 桌面端导航菜单 */
    .nav-links-dx {
      display: flex;
      align-items: center;
      gap: 30px;
    }
    .nav-links-dx > li {
      position: relative;
    }
    .nav-links a {
      color: #333333;
      font-size: 16px;
      font-weight: 500;
      padding: 8px 0;
      display: flex;
      align-items: center;
      gap: 5px;
      transition: color 0.3s;
    }
    .nav-links-dx a:hover {
      color: #4670ad;
    }

    /* 下拉菜单 (Dropdown) */
    .dropdown-menu-dx {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      background-color: #ffffff;
      min-width: 160px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
      border-radius: 4px;
      padding: 10px 0;
      z-index: 100;
    }
    .dropdown-menu-dx li a {
      padding: 8px 20px;
      font-size: 14px;
      color: #666;
    }
    .dropdown-menu-dx li a:hover {
      background-color: #f5f5f5;
      color: #4670ad;
    }
    /* 悬停显示下拉 */
    .has-dropdown-dx:hover .dropdown-menu {
      display: block;
    }

    /* 移动端汉堡按钮（默认隐藏） */
    .menu-toggle-dx {
      display: none;
      font-size: 24px;
      background: none;
      border: none;
      color: #333;
      cursor: pointer;
    }

    /* ================= 响应式媒体查询 (Mobile & Tablet) ================= */
    @media (max-width: 768px) {
      .top-bar-dx {
        padding: 8px 15px;
      }
      .top-right-dx .search-box input {
        width: 90px;
      }
      
      .main-header-dx {
        padding: 12px 15px;
      }

      /* 显示汉堡按钮 */
      .menu-toggle-dx {
        display: block;
      }

      /* 移动端导航菜单改为垂直抽屉 */
      .nav-links-dx {
        display: none; /* 结合 JS 可切换为 flex */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 4px 8px rgba(0,0,0,0.05);
        padding: 15px 0;
        gap: 0;
        z-index: 99;
      }

      /* 展开状态样式 */
      .nav-links-dx.active {
        display: flex;
      }

      .nav-links-dx > li {
        width: 100%;
      }
      .nav-links-dx a {
        padding: 12px 20px;
        width: 100%;
        justify-content: space-between;
        border-bottom: 1px solid #f0f0f0;
      }

      /* 移动端下拉菜单调整 */
      .dropdown-menu-dx {
        position: static;
        box-shadow: none;
        background-color: #f9f9f9;
        padding-left: 20px;
      }






    /* 整体容器：两侧留空 5% */
    .products-section-dx {
      width: 90%; /* 两边各留空 5% */
      margin: 0 auto;
    }

    /* 2. 大标题样式 */
    .section-title-dx {
      text-align: center;
      font-size: 32px;
      font-weight: 700;
      text-transform: uppercase;
      color: #222;
      margin-bottom: 40px;
      letter-spacing: 1px;
    }

    /* 网格布局：桌面端默认每行 5 列 */
    .product-grid-dx {
      display: grid;
      grid-template-columns: repeat(5, 1fr); /* 1. 每一行扩展到5张图片 */
      gap: 20px;
    }

    /* 产品卡片样式 */
    .product-card-dx {
      background-color: #ffffff;
      border: 1px solid #eaeaea;
      padding: 25px 20px 20px;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      border-radius: 4px;
      transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
      cursor: pointer;
    }

    /* 3. 鼠标悬停到每一个卡片/图片上时，卡片会有凸起效果 */
    .product-card-dx:hover {
      transform: translateY(-8px);
      box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
      border-color: #ddd;
    }

    /* 图片容器 */
    .product-img-wrapper-dx {
      width: 100%;
      height: 180px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 20px;
      overflow: hidden;
    }
    .product-img-wrapper-dx img {
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
      transition: transform 0.3s ease;
    }

    /* 产品名称 */
    .product-title-dx {
      font-size: 15px;
      font-weight: 700;
      color: #333;
      margin-bottom: 15px;
      position: relative;
      display: inline-block;
      text-decoration: none;
      cursor: pointer;
    }

    /* 4. 鼠标悬停到文字时，下划线效果 */
    .product-title-dx::after {
      content: '';
      position: absolute;
      width: 0;
      height: 2px;
      bottom: -3px;
      left: 0;
      background-color: #333;
      transition: width 0.3s ease;
    }
    .product-title:hover-dx::after {
      width: 100%;
    }

    /* 分割线与型号名 */
    .product-model-wrap-dx {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 15px;
      position: relative;
    }
    .product-model-wrap-dx::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 0;
      right: 0;
      height: 1px;
      background-color: #e0e0e0;
      z-index: 1;
    }
    .product-model-dx {
      position: relative;
      z-index: 2;
      background-color: #ffffff;
      padding: 0 10px;
      font-size: 12px;
      color: #777;
    }

    /* View More 按钮基础样式 */
    .view-more-btn-dx {
      display: inline-block;
      padding: 6px 16px;
      border: 1px solid #cccccc;
      background-color: #ffffff;
      color: #777777;
      font-size: 12px;
      font-weight: 600;
      text-transform: uppercase;
      text-decoration: none;
      border-radius: 2px;
      transition: all 0.3s ease;
    }

    /* 5. 鼠标悬停到 "view more" 按钮时，按钮变色 */
    .view-more-btn-dx:hover {
      background-color: #333333;
      color: #ffffff;
      border-color: #333333;
    }

    /* 6. 响应式自适应：手机屏幕（768px 及以下）显示两列 */
    @media (max-width: 1024px) {
      .product-grid-dx {
        grid-template-columns: repeat(3, 1fr); /* 平板显示 3 列 */
      }
    }

    @media (max-width: 768px) {
      .products-section-dx {
        width: 92%; /* 移动端适当微调边距 */
      }
      .section-title-dx {
        font-size: 24px;
        margin-bottom: 25px;
      }
      .product-grid-dx {
        grid-template-columns: repeat(2, 1fr); /* 6. 手机竖屏显示 2 列 */
        gap: 12px;
      }
      .product-card-dx {
        padding: 15px 10px 15px;
      }
      .product-img-wrapper-dx {
        height: 130px;
      }
      .product-title-dx {
        font-size: 13px;
      }
    }


/* 产品详情页大图 */
/* 外层容器 */
.gallery-container-pp {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 10px;
  box-sizing: border-box;
}

/* 主图区域：上一层div的80%，最大800px，高度自适应 */
.main-image-wrapper-pp {
  width: 80%;
  max-width: 800px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-image-wrapper-pp img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* 缩略图轮播组件 */
.thumbnail-carousel-pp {
  width: 100%;
  max-width: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* 缩略图可滚动列表 */
.thumbnail-list-pp {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 5px 0;
  /* 隐藏滚动条 */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE/Edge */
}

.thumbnail-list-pp::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Opera */
}

/* 关键修正：强行固定缩略图尺寸，防止被原图大小撑开 */
.thumb-pp {
  width: 70px !important;       /* 强制固定宽度 */
  height: 70px !important;      /* 强制固定高度 */
  min-width: 70px;             /* 防止 Flex 弹性压缩 */
  max-width: 70px;
  min-height: 70px;
  max-height: 70px;
  flex-shrink: 0;               /* 禁止挤压 */
  object-fit: cover;            /* 裁剪自适应，防变形 */
  border: 1px solid #ddd;
  box-sizing: border-box;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.thumb-pp:hover {
  opacity: 0.9;
}

/* 选中高亮状态 */
.thumb-pp.active {
  border: 2px solid #a81c1c;
}

/* 导航按钮（左右箭头） */
.nav-btn-pp {
  background: transparent;
  border: none;
  font-size: 20px;
  color: #555;
  cursor: pointer;
  padding: 0 10px;
  user-select: none;
}

/* 手机移动端自适应 (屏宽 <= 600px) */
@media (max-width: 600px) {
  .main-image-wrapper-pp {
    width: 95%;
  }

  .nav-btn-pp {
    display: none; /* 移动端靠手势滑动，隐藏箭头 */
  }

  /* 移动端微调缩略图尺寸 */
  .thumb-pp {
    width: 55px !important;
    height: 55px !important;
    min-width: 55px;
    max-width: 55px;
    min-height: 55px;
    max-height: 55px;
  }

  .thumbnail-list-pp {
    width: 100%;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }
}