﻿* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 轮播容器（根据图片高度自动拉伸，不限制宽高比） */
.banner-carousel-dx {
  position: relative;
  width: 100%;
  max-width: 2000px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  z-index: 1;
}

/* 隐藏 Radio 框 */
.slide-radio-dx {
  display: none;
}

/* 轨道容器 */
.carousel-track-dx {
  display: flex;
  width: 300%; /* 3张图 = 300% 宽度 */
  
  /* 默认直接开启自动轮播 */
  animation: auto-play-dx 9s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

.slide-item-dx {
  width: 33.3333%;
  flex-shrink: 0;
}

.slide-item-dx img {
  width: 100%;
  height: auto;
  display: block;
}

/* 鼠标悬停时暂停自动播放（增加交互体验） */
.banner-carousel-dx:hover .carousel-track-dx {
  animation-play-state: paused;
}

/* 自动播放关键帧 */
@keyframes auto-play-dx {
  0%, 28%    { transform: translateX(0%); }
  33.33%, 61%{ transform: translateX(-33.3333%); }
  66.66%, 94%{ transform: translateX(-66.6666%); }
  100%       { transform: translateX(0%); }
}

/* ----------------------------------
 * 左右箭头样式
 * ---------------------------------- */
.arrow-group-dx {
  display: none;
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  justify-content: space-between;
  padding: 0 15px;
  box-sizing: border-box;
  z-index: 5;
  pointer-events: none;
}

.arrow-btn-dx {
  pointer-events: auto;
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  user-select: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.arrow-btn-dx:hover {
  background-color: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

/* 默认状态(dx-slide-0)或图1选中时，显示组1箭头 */
.banner-carousel-dx:has(#dx-slide-0:checked) .group-1-dx,
.banner-carousel-dx:has(#dx-slide-1:checked) .group-1-dx,
.banner-carousel-dx:has(#dx-slide-2:checked) .group-2-dx,
.banner-carousel-dx:has(#dx-slide-3:checked) .group-3-dx {
  display: flex;
}

/* ----------------------------------
 * 底部指示圆点
 * ---------------------------------- */
.carousel-nav-dx {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}

.nav-dot-dx {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

/* ----------------------------------
 * 手动点击重写逻辑（关键修正）
 * 仅在点击 #dx-slide-1 ~ 4 时取消动画并定位
 * ---------------------------------- */
.banner-carousel-dx:has(#dx-slide-1:checked) .carousel-track-dx {
  animation: none;
  transform: translateX(0%);
}
.banner-carousel-dx:has(#dx-slide-2:checked) .carousel-track-dx {
  animation: none;
  transform: translateX(-33.3333%);
}
.banner-carousel-dx:has(#dx-slide-3:checked) .carousel-track-dx {
  animation: none;
  transform: translateX(-66.6666%);
}

/* 点击激活后的圆点高亮 */
.banner-carousel-dx:has(#dx-slide-1:checked) .nav-dot-dx:nth-child(1),
.banner-carousel-dx:has(#dx-slide-2:checked) .nav-dot-dx:nth-child(2),
.banner-carousel-dx:has(#dx-slide-3:checked) .nav-dot-dx:nth-child(3) {
  background-color: #ffffff;
  width: 20px;
  border-radius: 5px;
}
/* 下面是4个大目录 */
/* 容器 */
.gallery-dx {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
}

/* 每个图片块 */
.item-dx {
  flex: 1 1 calc(25% - 20px); /* 4列 */
  overflow: hidden;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.item-dx2 {
  flex: 1 1 calc(20% - 16px); /* 5列 */
  overflow: hidden;
  border-radius: 10px;
  transition: all 0.3s ease;
}

/* 图片 */
.item-dx img {
  width: 100%;
  height: 90%;
  object-fit: cover;
  display: block;
}

/* 文字区域 */
.text-dx {
  padding: 15px;
}

/* 标题 */
.text-dx h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

/* 描述 */
.text-dx p {
  margin: 0;
  font-size: 14px;
  color: #666;
}

/* 悬停突起效果 */
.item-dx:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* ✅ 平板 */
@media (max-width: 992px) {
  .item-dx {
    flex: 1 1 calc(50% - 20px); /* 2列 */
  }
}

/* ✅ 手机 */
@media (max-width: 600px) {
  .item-dx {
    flex: 1 1 100%; /* 1列 */
  }
}
    /* 首页公司介绍卡片 */
    /* 主网格容器 */
    .grid-container-dx {
      display: grid;
      grid-template-columns: 2fr 1fr 1fr;
      grid-template-rows: repeat(2, 220px);
      gap: 15px;
      max-width: 1800px;
      width: 100%;
    }

    /* 网格卡片通用样式 */
    .card-dx {
      position: relative;
      border-radius: 8px;
      overflow: hidden;
      background-size: cover;
      background-position: center;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      cursor: pointer;
    }

    /* 左侧大卡片跨两行 */
    .card-large-dx {
      grid-row: span 2;
      background-image: url('../images/factory-1.jpg'); /* 替换为实际大图 */
    }

    /* 左侧卡片底部暗色渐变遮罩 */
    .card-large-dx::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 65%;
      background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
      pointer-events: none;
    }

    /* 播放按钮 */
    .play-btn-dx {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 54px;
      height: 54px;
      background-color: rgba(255, 255, 255, 0.85);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 2;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
      transition: transform 0.2s, background-color 0.2s;
    }

    .card-large-dx:hover .play-btn-dx {
      transform: translate(-50%, -50%) scale(1.1);
      background-color: #ffffff;
    }

    .play-icon-dx {
      width: 0;
      height: 0;
      border-top: 10px solid transparent;
      border-bottom: 10px solid transparent;
      border-left: 16px solid #333333;
      margin-left: 4px;
    }

    /* 左侧大卡片文本区域 */
    .content-large-dx {
      position: absolute;
      bottom: 15px;
      left: 15px;
      right: 15px;
      color: #ffffff;
      z-index: 2;
    }

    .content-large-dx .title-dx {
      font-size: 18px;
      font-weight: bold;
      margin-bottom: 8px;
      letter-spacing: 0.5px;
    }

    .content-large-dx .desc-dx {
      font-size: 12px;
      line-height: 1.4;
      color: #dddddd;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    /* ==========================================
       右侧小卡片图片设置
       ========================================== */
    .card-factory-dx {
      background-image: url('../images/factory.jpg');
    }

    .card-team-dx {
      background-image: url('../images/team.jpg');
    }

    .card-service-dx {
      background-image: url('../images/service.jpg');
    }

    .card-news-dx {
      background-image: url('https://picsum.photos/id/0/400/300');
    }

    /* 右侧卡片基础动效 - 悬停背景略微放大 */
    .card-small-dx {
      transition: background-size 0.4s ease;
    }

    /* 默认未悬停状态下底部的标题 */
    .card-small-dx .default-title-dx {
      position: absolute;
      bottom: 12px;
      left: 15px;
      color: #ffffff;
      font-size: 15px;
      font-weight: bold;
      letter-spacing: 1px;
      text-transform: uppercase;
      z-index: 2;
      text-shadow: 0 2px 4px rgba(0,0,0,0.8);
      transition: opacity 0.3s ease;
    }

    /* 默认底部的微弱阴影（提高标题可读性） */
    .card-small-dx::before {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 40%;
      background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
      transition: opacity 0.3s ease;
      z-index: 1;
    }

    /* 鼠标悬停时隐藏默认标题和阴影 */
    .card-small-dx:hover .default-title-dx,
    .card-small-dx:hover::before {
      opacity: 0;
    }

    /* ==========================================
       悬停上滑覆盖面板样式
       ========================================== */
    .overlay-panel-dx {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(30, 38, 50, 0.78); /* 深蓝半透明层 */
      padding: 20px 18px;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      color: #ffffff;
      z-index: 3;
      
      /* 位置控制：默认向下平移100%（即隐藏在图片下方） */
      transform: translateY(100%);
      transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    /* 鼠标悬停卡片时：面板向上滑动占据整个区域 */
    .card-small-dx:hover .overlay-panel-dx {
      transform: translateY(0);
    }

    /* 悬停面板内部文字样式 */
    .overlay-title-dx {
      font-size: 15px;
      font-weight: bold;
      text-transform: uppercase;
      margin-bottom: 10px;
      letter-spacing: 0.8px;
    }

    .overlay-desc-dx {
      font-size: 12px;
      line-height: 1.4;
      color: #e0e0e0;
      display: -webkit-box;
      -webkit-line-clamp: 3; /* 限制显示3行 */
      -webkit-box-orient: vertical;
      overflow: hidden;
      margin-bottom: 12px;
    }

    /* 箭头指示图标 */
    .overlay-arrow-dx {
      margin-top: auto; /* 靠底部对齐 */
      font-size: 20px;
      font-weight: 300;
      line-height: 1;
      display: inline-block;
      transition: transform 0.2s ease;
    }

    .card-small-dx:hover .overlay-arrow-dx {
      transform: translateX(5px); /* 悬停时箭头向右微动 */
    }

    /* ==========================================
       移动端自适应响应式布局
       ========================================== */
    @media (max-width: 900px) {
      .grid-container-dx {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
      }
      
      .card-large-dx {
        grid-column: span 2;
        grid-row: auto;
        height: 300px;
      }

      .card-dx {
        height: 190px;
      }
    }

    @media (max-width: 550px) {
      .grid-container-dx {
        grid-template-columns: 1fr;
      }

      .card-large-dx {
        grid-column: span 1;
        height: 260px;
      }
    }

/* 导航菜单 */
/* 
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #f8f9fa;
}
*/
/* 导航头主体容器（高层级，防止被轮播图遮挡） */
.header-container-dx {
  position: relative;
  z-index: 9999; /* 确保层级高于轮播图 */
}

.nav-wrapper-dx {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo-dx {
  font-size: 22px;
  font-weight: 700;
  color: #1e293b;
  text-decoration: none;
}

/* 菜单列表通用样式 */
.nav-list-dx {
  display: flex;
  list-style: none;
}

.nav-item-dx {
  position: relative;
}

.nav-link-dx {
  display: flex;
  align-items: center;
  gap: 6px;
  /* 修改：一级菜单左右间距放大50% (原18px ->现27px) */
  padding: 0 27px;
  height: 70px;
  color: #334155;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* 一级菜单鼠标悬停及激活变色 */
.nav-link-dx:hover,
.nav-item-dx:hover > .nav-link-dx,
.nav-link-dx.active-dx {
  color: #2563eb;
}

/* 箭头小图标 */
.arrow-dx::after {
  content: "";
  display: inline-block;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  padding: 2.5px;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform 0.3s ease;
}

.arrow-right-dx::after {
  content: "";
  display: inline-block;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  padding: 2.5px;
  transform: rotate(-45deg);
  margin-left: auto;
  transition: transform 0.3s ease;
}

.nav-item-dx:hover > .nav-link-dx .arrow-dx::after {
  transform: rotate(-135deg);
  margin-top: 3px;
}

/* ==========================================
   2. 二级与三级下拉菜单（白底黑字，Hover变深底白字）
   ========================================== */
.dropdown-dx {
  position: absolute;
  /* 修改：默认背景改为白色 */
  background-color: #ffffff;
  min-width: 250px;
  list-style: none;
  padding: 8px 0;
  border-radius: 6px;
  /* 为白底下拉框增加细微边框和软阴影 */
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  
  /* 隐式过渡动画 */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 默认状态：白色背景 + 黑色/深灰字体 */
.dropdown-dx a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  color: #1e293b; /* 修改：默认字体为黑色 */
  font-size: 18px;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* 修改：鼠标悬停时，背景变深色，字体变白色 */
.dropdown-dx a:hover,
.dropdown-dx li:hover > a {
  background-color: #1e293b; /* 深色背景 */
  color: #ffffff;            /* 白色字体 */
}

/* 二级菜单位置 */
.level-2-dx {
  top: 100%;
  left: 0;
}

/* 三级菜单位置 */
.level-3-dx {
  top: 0;
  left: 100%;
  margin-left: 2px;
}

/* PC 端 hover 触发展开 */
@media (min-width: 993px) {
  .nav-item-dx:hover > .dropdown-dx,
  .dropdown-dx li:hover > .dropdown-dx {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* 移动端切换按钮（默认隐藏） */
.mobile-toggle-dx {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.bar-dx {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background-color: #1e293b;
  transition: all 0.3s ease;
}

/* ==========================================
   3. 移动端响应式布局 (Screen < 992px)
   ========================================== */
@media (max-width: 992px) {
  .mobile-toggle-dx {
    display: block;
  }

  /* 汉堡包图标切换样式 */
  .mobile-toggle-dx.active-dx .bar-dx:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .mobile-toggle-dx.active-dx .bar-dx:nth-child(2) {
    opacity: 0;
  }
  .mobile-toggle-dx.active-dx .bar-dx:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* 导航菜单折叠全宽容器 */
  .nav-menu-dx {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border-top: 1px solid #f1f5f9;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
  }

  .nav-menu-dx.active-dx {
    max-height: 80vh;
    overflow-y: auto;
  }

  .nav-list-dx {
    flex-direction: column;
  }

  .nav-link-dx {
    height: 50px;
    padding: 0 20px; /* 移动端还原标准边距 */
    border-bottom: 1px solid #f8f9fa;
    justify-content: space-between;
  }

  /* 移动端下拉菜单样式微调 */
  .dropdown-dx {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-radius: 0;
    border: none;
    display: none;
    background-color: #f8f9fa; /* 移动端展开后使用浅灰底区隔 */
  }

  .dropdown-dx.open-dx {
    display: block;
  }

  .dropdown-dx a {
    color: #334155;
  }

  .level-2-dx a {
    padding-left: 35px;
  }

  .level-3-dx a {
    padding-left: 50px;
    background-color: #f1f5f9;
  }

  .arrow-right-dx::after {
    transform: rotate(45deg);
  }
}



    why-body-dx {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
      background-color: #fcf8f8;
      padding: 40px 20px;
      display: flex;
      justify-content: center;
    }

    /* 1. 网格容器：默认一行3列，自动换行 */
    .why-container-dx {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
      max-width: 1800px;
      width: 100%;
    }

    /* 模块卡片样式（参考参考图样式） */
    .why-card-dx {
      background-color: #ffffff;
      border: 1px solid #f2dede;
      border-radius: 24px;
      padding: 32px 28px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      cursor: pointer;
      display: flex;
      flex-direction: column;
    }

    /* 悬停卡片时的轻微上浮效果 */
    .why-card-dx:hover {
      transform: translateY(-4px);
      box-shadow: 0 8px 25px rgba(160, 110, 100, 0.12);
    }

    /* 头部区域（图标 + 标题） */
    .why-header-dx {
      display: flex;
      align-items: center;
      gap: 16px;
      margin-bottom: 20px;
    }

    /* 图标容器及发散特效层 */
    .why-icon-wrapper-dx {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 44px;
      height: 44px;
      border-radius: 50%;
    }

    /* 图标发散效果的光晕背景层（利用 ::before 实现） */
    .why-icon-wrapper-dx::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 100%;
      height: 100%;
      border-radius: 50%;
      background-color: rgba(160, 110, 100, 0.4);
      transform: translate(-50%, -50%) scale(0.8);
      opacity: 0;
      transition: transform 0.5s ease-out, opacity 0.5s ease-out, background-color 0.3s ease;
      z-index: 1;
    }

    /* SVG 图标本身 */
    .why-icon-dx {
      width: 32px;
      height: 32px;
      stroke: #a06e64; /* 初始颜色：灰棕色 */
      fill: none;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
      transition: stroke 0.3s ease, transform 0.3s ease;
      position: relative;
      z-index: 2;
    }

    /* 2. 鼠标悬停到模块上时：图标变色与发散效果 */
    .why-card-dx:hover .why-icon-dx {
      stroke: #d9534f; /* 变色：亮红色/珊瑚色 */
      transform: scale(1.1); /* 图标微放大 */
    }

    .why-card-dx:hover .why-icon-wrapper-dx::before {
      opacity: 0;
      /* 发散动画：波纹扩大并渐隐 */
      animation: pulse-diverge-dx 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
    }

    /* 光晕发散动画关键帧 */
    @keyframes pulse-diverge-dx {
      0% {
        transform: translate(-50%, -50%) scale(0.6);
        opacity: 0.8;
        background-color: rgba(217, 83, 79, 0.5);
      }
      100% {
        transform: translate(-50%, -50%) scale(2.2);
        opacity: 0;
        background-color: rgba(217, 83, 79, 0);
      }
    }

    /* 标题样式 */
    .why-title-dx {
      font-size: 1.25rem;
      font-weight: 700;
      color: #a06e64;
      line-height: 1.3;
    }

    /* 描述文字样式 */
    .why-desc-dx {
      font-size: 0.95rem;
      color: #555555;
      line-height: 1.6;
    }

    /* 3. 自适应媒体查询：支持平板和手机 */
    @media (max-width: 992px) {
      .why-container-dx {
        grid-template-columns: repeat(2, 1fr); /* 中等屏幕一行显示2个 */
      }
    }

    @media (max-width: 600px) {
      .why-container-dx {
        grid-template-columns: 1fr; /* 手机等小屏幕一行显示1个 */
        gap: 16px;
      }
      .why-card-dx {
        padding: 24px 20px;
      }
    }


    /* 在线表单样式 */
    .form-container {
      width: 100%;
      max-width: 1000px;
    }

    .form-title {
      color: #3b5998; /* 标题蓝色 */
      font-size: 28px;
      font-weight: 700;
      margin-bottom: 20px;
    }

    .form-grid {
      display: flex;
      flex-direction: column;
      gap: 15px;
    }

    .row-two-cols {
      display: flex;
      gap: 15px;
    }

    .row-two-cols input {
      width: 50%;
    }

    .form-input, .form-textarea {
      width: 100%;
      background-color: #f5f5f5; /* 输入框浅灰色背景 */
      border: 1px solid transparent;
      padding: 12px 15px;
      font-size: 14px;
      color: #333;
      outline: none;
      transition: border-color 0.2s ease, background-color 0.2s ease;
    }

    .form-input::placeholder, .form-textarea::placeholder {
      color: #757575;
    }

    .form-input:focus, .form-textarea:focus {
      background-color: #ffffff;
      border-color: #3b5998;
    }

    .form-textarea {
      height: 220px;
      resize: vertical;
    }

    .note-text {
      color: #666666;
      font-size: 13px;
      margin-top: 15px;
      margin-bottom: 20px;
    }

    /* 带斜角和圆圈图标的按钮样式 */
    .submit-btn-wrapper {
      display: inline-block;
    }

    .submit-btn {
      background-color: #43669b;
      color: #ffffff;
      border: none;
      padding: 10px 25px 10px 35px;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 12px;
      /* 右侧斜角效果 */
      clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
      transition: background-color 0.2s;
    }

    .submit-btn:hover {
      background-color: #33507d;
    }

    .arrow-icon {
      width: 18px;
      height: 18px;
      background-color: #ffffff;
      color: #43669b;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      font-weight: bold;
    }

    @media (max-width: 480px) {
      .row-two-cols {
        flex-direction: column;
        gap: 15px;
      }
      .row-two-cols input {
        width: 100%;
      }
    }
/* 工厂区图片格 */
    .f-container-dx {
      width: 100%;     
      max-width: 1200px;    
      margin: 40px auto;    
      
      /* 使用 CSS Grid 实现多元素自动并列与换行 */
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); 
      gap: 20px;            
    }

    /* 2. 单个卡片容器 */
    .f-card-dx {
      position: relative;
      overflow: hidden;    
      border-radius: 6px;     
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); 
      cursor: pointer;
      background-color: #f0f0f0;
      
      /* 固定的长宽比，防止图片未加载时容器塌陷 */
      aspect-ratio: 16 / 10;     
    }

    .f-card-dx img {
      width: 100%;
      height: 100%;
      object-fit: cover;     
      display: block;
      transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); 
    }

    /* 4. 鼠标悬浮时的轻微放大效果 */
    .f-card-dx:hover img {
      transform: scale(1.08);  
    }




    /*  产品部分 */
/* 1. 整体左右结构及自适应布局-pdx */
.container-pdx {
    display: flex;
    flex-direction: row;
    gap: 30px;
    max-width: 1600px;
    margin: 0 auto;
}

.sidebar-pdx {
    width: 350px;
    flex-shrink: 0;
}

.main-content-pdx {
    flex-grow: 1;
}

/* 2 & 3. 目录样式与 Hover 效果-pdx */
.sidebar-title-pdx {
    font-size: 20px;
    font-weight: normal;
    color: #4a4a4a;
    margin-top: 10px;
    margin-bottom: 15px;
}

.nav-list-pdx {
    list-style: none;
    border-top: 1px solid #eeeeee;
}

.nav-item-pdx {
    border-bottom: 1px solid #eeeeee;
    font-size: 18px;
}

/* 目录标题行-pdx */
.nav-header-pdx {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 12px;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* 鼠标移到目录上的 Hover 效果 (改变文字颜色和底色)-pdx */
.nav-header-pdx:hover {
    background-color: #83a049; /* 参考图中的橄榄绿 */
    color: #ffffff;
}

/* 选中或激活状态-pdx */
.nav-item-pdx.active-pdx > .nav-header-pdx {
    background-color: #83a049;
    color: #ffffff;
}

.toggle-icon-pdx {
    font-weight: bold;
    font-size: 14px;
}

/* 二级目录-pdx */
.sub-list-pdx {
    list-style: none;
    display: none; /* 默认隐藏 */
    background-color: #ffffff;
}

/* 展开二级目录-pdx */
.sub-list-pdx.open-pdx {
    display: block;
}

.sub-item-pdx {
    border-bottom: 1px solid #f4f4f4;
}

/* 选中或激活状态-pdx */
.sub-item-pdx.active-pdx  {
    background-color: #f0f4e8;
    color: #ffffff;
}

.sub-link-pdx {
    display: block;
    padding: 18px 12px 8px 25px;
    color: #666666;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* 二级目录 Hover 效果-pdx */
.sub-link-pdx:hover {
    background-color: #f0f4e8;
    color: #83a049;
}

/* 右侧顶部栏-pdx */
.category-header-pdx {
    background-color: #f2f5ed;
    border-left: 4px solid #83a049;
    padding: 10px 15px;
    margin-bottom: 25px;
}

.category-header-pdx h3 {
    color: #83a049;
    font-size: 16px;
    font-weight: bold;
}

/* 产品网格布局-pdx */
.product-grid-pdx {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* 4. 产品卡片与图片鼠标悬停效果-pdx */
.product-card-pdx {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.img-wrapper-pdx {
    width: 100%;
    overflow: hidden;
    margin-bottom: 12px;
}

.product-img-pdx {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease; /* 悬停平滑过渡 */
}

/* 产品图 Hover 效果（放大 + 微微微调透明度）-pdx */
.product-card-pdx:hover .product-img-pdx {
    transform: scale(1.05);
    opacity: 0.9;
}

.product-title-pdx {
    font-size: 13px;
    color: #444444;
    font-weight: normal;
    line-height: 1.4;
    margin-bottom: 12px;
    min-height: 36px;
}

/* 询盘按钮-pdx */
.inquire-btn-pdx {
    border: 1px solid #83a049;
    background-color: #ffffff;
    color: #83a049;
    padding: 6px 16px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.inquire-btn-pdx:hover {
    background-color: #83a049;
    color: #ffffff;
}

.icon-pdx {
    font-size: 12px;
    margin-right: 4px;
}


/* 分页外层容器 */
    .pagination-pdx {
      display: inline-flex;
      border: 1px solid #dcdcdc;
      border-radius: 4px;
      overflow: hidden;
      background-color: #fff;
    }

    /* 分页项通用样式 */
    .pagination-pdx a {
      display: flex;
      justify-content: center;
      align-items: center;
      min-width: 36px;
      height: 36px;
      padding: 0 6px;
      color: #337ab7;
      text-decoration: none;
      font-size: 14px;
      border-right: 1px solid #dcdcdc;
      box-sizing: border-box;
      transition: background-color 0.2s;
    }

    /* 最后一个按钮去掉右边框 */
    .pagination-pdx a:last-child {
      border-right: none;
    }

    /* 当前选中页 (数字 1) */
    .pagination-pdx a.active {
      background-color: #83a049;
      color: #ffffff;
    }

    /* 悬停效果 */
    .pagination-pdx a:hover:not(.active) {
      background-color: #f5f5f5;
    }
/* 移动端/手机竖屏自适应媒体查询-pdx */
@media (max-width: 768px) {
    .container-pdx {
        flex-direction: column; /* 手机端上下排列 */
    }

    .sidebar-pdx {
        width: 100%;
    }

    .product-grid-pdx {
        grid-template-columns: repeat(2, 1fr); /* 移动端改为2列 */
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .product-grid-pdx {
        grid-template-columns: 1fr; /* 小屏手机单列显示 */
    }
}


/* 网页底部 */

/* 页脚总体样式 */
.site-footer-dx {
  background-color: #333333;
  color: #cccccc;
  font-size: 14px;
  line-height: 1.6;
}

.footer-top-dx {
  padding: 40px 20px;
}

.footer-container-dx {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}

/* 各栏目样式 */
.footer-col-dx {
  flex: 1;
  min-width: 180px;
}

.footer-col-dx h3 {
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 15px;
}

.footer-col-dx ul {
  list-style: none;
}

.footer-col-dx ul li {
  margin-bottom: 8px;
}

/* 链接及下划线动画效果 */
.footer-col-dx ul li a,
.footer-bottom-container a {
  color: #aaaaaa;
  text-decoration: none;
  display: inline-block;
  position: relative;
  transition: color 0.3s ease;
}

/* 动态下划线：使用伪元素 */
.footer-col-dx ul li a::after,
.footer-bottom-container-dx a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: #ffffff;
  transition: width 0.3s ease-in-out;
}

/* Hover 悬停效果 */
.footer-col-dx ul li a:hover,
.footer-bottom-container-dx a:hover {
  color: #ffffff;
}

.footer-col-dx ul li a:hover::after,
.footer-bottom-container-dx a:hover::after {
  width: 100%;
}

/* Logo 样式 */
.footer-logo-dx img {
  max-width: 210px;
  height: auto;
}

.footer-logo-text-dx {
    display: flex;
    justify-content: center; 
    align-items: center;   
    text-align: center;
    font-size: 18px;
}

/* 联系信息列表 */
.contact-info-dx li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  word-break: break-word;
}

/* 底部版权栏 */
.footer-bottom-dx {
  background-color: #f0f0f0;
  color: #666666;
  padding: 15px 20px;
  font-size: 13px;
  border-top: 1px solid #e0e0e0;
}

.footer-bottom-container-dx {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom-dx a {
  color: #666666;
}

.footer-bottom-dx .divider {
  margin: 0 5px;
  color: #999999;
}

/* ==========================================
   响应式适配（手机端自适应纵列显示）
   ========================================== */
@media (max-width: 768px) {
  .footer-container-dx {
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
  }

  .footer-col-dx {
    width: 100%;
  }

  .footer-logo-dx {
    text-align: left;
    margin: 10px 0;
  }

  .footer-bottom-container-dx {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}