.hover-img {
  transition: transform 0.3s ease, filter 0.3s ease;
  display: inline-block;
}

.hover-img:hover {
  transform: scale(1.1); /* 放大比例，可调 */
  filter: brightness(1.1) saturate(1.2); /* 提亮加色彩，可自定义 */
}

/* 移除所有超链接下划线 */
a {
    text-decoration: none !important;
}

/* 可选：移除悬停状态的下划线 */
a:hover {
    text-decoration: none !important;
}

textarea {
  height: 100px; /* 或者改成你想要的数值 */
  min-height: 100px;
  max-height: 200px;
}


.brand-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 默认移动端每行5个 */
  gap: 16px;
  padding: 12px;
  box-sizing: border-box;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.brand-grid img {
  width: 100%;
  height: auto;
  display: block;
}

/* 桌面端：大于等于 768px 时，每行10个 */
@media (min-width: 768px) {
  .brand-grid {
    grid-template-columns: repeat(10, 1fr);
  }
}


/* 新增 figcaption 样式 */
.brand-grid figcaption {
  color: white;
  text-align: center;  /* 可选：文字居中 */
  margin-top: 8px;     /* 可选：与图片间距 */
}
/* 更具体的选择器 */
.brand-grid-1 figure figcaption {
  color: white !important;
  text-align: center;
  margin-top: 8px;
}


.brand-grid-1 {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 始终保持 3 列 */
  gap: 16px;
  padding: 12px;
  box-sizing: border-box;

  /* 不设 max-width，不限制外层容器宽度 */
  width: 100%;
}

.brand-grid-1 figure {
  margin: 0;
  text-align: center;
}

.brand-grid-1 img {
  width: 100%;             /* 每张图填满单元格 */
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.brand-grid-1 img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.brand-grid-1 figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: #333;
}

/* 缩小 Astra 主题主菜单下拉菜单项之间的间距 */
.main-header-menu .sub-menu a {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
  line-height: 2 !important; /* 调整行高也可以让它更紧凑 */
}

/* 可选：缩小整个子菜单与父菜单的距离 */
.main-header-menu .sub-menu {
  margin-top: 1 !important;
}


/* 页眉上方的信息代码开始 */
.custom-topbar {
  background-color: #f8f8f8;
  padding: 6px 20px;
  font-size: 14px;
  color: #333;

}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.topbar-right a {
  color: #0073aa;
  margin-left: 12px;
  text-decoration: none;
  font-weight: 500;
}

.topbar-right a:hover {
  text-decoration: underline;
}
/* 页眉上方的信息代码增强：添加搜索框 */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-links a {
  color: #0073aa;
  margin-left: 12px;
  text-decoration: none;
  font-weight: 500;
}

.topbar-links a:first-child {
  margin-left: 0;
}

.topbar-links a:hover {
  text-decoration: underline;
}

.topbar-search {
  display: flex;
  align-items: center;
}

.topbar-search input.search-field {
  padding: 4px 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px 0 0 4px;
  outline: none;
  height: 32px;
}

.topbar-search button {
  padding: 0;
  margin: 0;
  background-color: #0073aa;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  height: 32px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topbar-search button img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1); /* 白色图标效果 */
  transition: filter 0.3s ease;
}

.topbar-search button:hover img {
  filter: brightness(0.8) invert(1);
}
/* 社交图标容器和样式 */
.topbar-social-icons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.topbar-social-icons a {
  display: inline-flex;
  align-items: center;
}

.topbar-social-icons img {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  filter: none; /* 如果你想用正常颜色图标，这里不需要filter */
}

.topbar-social-icons img:hover {
  transform: scale(1.2);
}
/* 页眉上方的信息代码结束 */


/* 列表的缩进 */
ul.soujin {
  padding-left: 2em;
}
.soujin a:hover {
  color: #000;
}

/* 手机端不显示页脚 */
@media (max-width: 768px) {
  .yejiao {
    display: none !important;
  }
}
/* 手机端aboutus文字显示预留*/
@media (max-width: 768px) {
  .aboutus001 {
    padding-left: 1em;
    padding-right: 1em;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
  }
}
/* EPC工控机的图片放大效果*/
.EPC-picture img {
  transition: transform 0.3s ease, filter 0.3s ease;
}

.EPC-picture img:hover {
  transform: scale(1.05); /* 放大 7% */
  filter: brightness(1.1) saturate(1.2); /* 稍微变亮并增强颜色 */
}

/* EPC增加工控机图标*/
.EPC-title {
  position: relative;
  padding-left: 30px; /* 给图标留出空间 */
}

.EPC-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background-image: url('https://cesipc.com/wp-content/uploads/2025/06/FANLESS-BOX-PC.svg');
  background-size: contain;
  background-repeat: no-repeat;
}
.EPC-title {
  position: relative;
  padding-left: 40px; /* 原来是 30px，增加一点间隔 */
}

.EPC-title {
  transition: all 0.3s ease;
}

.EPC-title:hover::before {
  transform: translateY(-50%) scale(1.1);
}


/* 给 news-solution 区块内的每篇文章之间添加横线 */
.news-solution li {
  border-bottom: 1px solid #ddd;  /* 添加浅灰色横线 */
  padding: 10px 0;               /* 上下间距 */
  list-style: none;              /* 去掉原点符号（如果有） */
}

/* 最后一项不需要横线 */
.news-solution li:last-child {
  border-bottom: none;
}
.news-solution a {
  font-size: 20px;
  font-weight: bold;
}


/* 文字首行缩进2个字符 */
.shouhang {
  text-indent: 2em;
}

/* 栏目之间的上下间隔 */
.compact-row {
    margin-top: 15px !important;  /* 调整上间距 */
    margin-bottom: 15px !important;  /* 调整下间距 */
    padding: 5px 0 !important;  /* 调整内部留白 */
}
.compact-row .wp-block-image {
    margin: 0 5px !important;  /* 图片水平间距 */
}

/* EPC 类图片效果 */
.EPC img {
  transition: transform 0.3s ease, filter 0.3s ease; /* 过渡效果 */
}

.EPC img:hover {
  transform: scale(1.1); /* 鼠标刷过时放大10% */
  filter: brightness(1.2); /* 提高亮度 */
}

/* === 放大镜主图 + 缩略图整体容器 === */
.zoom-gallery {
  max-width: 320px;
  margin: 0 auto;
}

/* === 主图区域 === */
.zoom-container {
  position: relative;
  width: auto;
  height: auto;
  border: 1px solid #ccc;
  overflow: hidden;
  margin-bottom: 10px;
  border-radius: 6px;
}

#mainImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

/* === 放大镜 lens 样式 === */
#zoomLens {
  position: absolute;
  width: 100px;
  height: 100px;
  border: 1px solid #999;
  background-repeat: no-repeat;
  background-size: 600px 600px;
  display: none;
  cursor: crosshair;
  pointer-events: none;
  z-index: 10;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
}

/* === 缩略图外层滚动容器（超出可横向滚动） === */
.thumbnail-wrapper {
  overflow-x: auto;
  padding-bottom: 4px;
}

/* === 缩略图内部横排 === */
.thumbnail-scroll {
  display: flex;
  gap: 8px;
  width: max-content;
  padding: 4px 2px;
}

/* === 单张缩略图样式 === */
.thumb {
  width: 50px;
  height: 50px;
  object-fit: contain;              /* 完整显示产品比例 */
  background-color: #f4f4f4;        /* 背景防止白色图丢失边界 */
  padding: 2px;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 4px;
  transition: transform 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
  box-sizing: border-box;
}

.thumb:hover,
.thumb.active {
  border-color: #0073aa;
  transform: scale(1.05);
  box-shadow: 0 0 4px rgba(0, 115, 170, 0.3);
}

/* === 滚动条隐藏美化（可选） === */
.thumbnail-wrapper::-webkit-scrollbar {
  height: 6px;
}
.thumbnail-wrapper::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}
.thumbnail-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

/* 表格基础样式 */
.biaoge {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  table-layout: auto;
  word-break: break-word;
  white-space: normal;
}

/* 所有单元格样式 */
.biaoge th,
.biaoge td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left;
  vertical-align: middle;
}

/* 电脑端：第一列宽度固定为 160px */
.biaoge th:first-child,
.biaoge td:first-child {
  width: 160px;
  min-width: 160px;
  max-width: 160px;
}

/* 手机端样式调整 */
@media (max-width: 768px) {
  .biaoge {
    font-size: 8px;
  }

  .biaoge th:first-child,
  .biaoge td:first-child {
    width: 23%;
    min-width: unset;
    max-width: unset;
  }
}

/* 修改标题文字大小 */
.wp-block-latest-posts__post-title {
    font-size: 22px !important;  /* 设置字体大小为22px */
    font-weight: bold !important;  /* 加粗标题 */
    color: #3375af !important;    /* 设置标题颜色为 #3375af */
    text-decoration: none !important;  /* 去掉默认的链接下划线 */
    margin-bottom: 10px !important;  /* 给标题下方加点间距 */
    transition: all 0.3s ease; /* 添加平滑过渡效果 */
}

/* 鼠标悬停时的效果 */
.wp-block-latest-posts__post-title:hover {
    color: #1d5b8e !important;  /* 设置鼠标滑过时的颜色 */
    font-size: 23px !important;  /* 设置鼠标滑过时的字体大小（轻微变大） */
}

/* 修改摘要的字体样式和缩进 */
.wp-block-latest-posts__post-excerpt {
    text-indent: 4ch !important; /* 摘要首行缩进 2 个字符 */
    font-size: 16px !important;   /* 设置字体大小 */
    line-height: 1.6 !important;  /* 调整行高 */
    color: #444444 !important;    /* 设置颜色 */
    margin-top: 10px !important;  /* 给摘要和其他元素间加点间距 */
}

/* 给每个li项之间添加分隔线 */
.wp-block-latest-posts__list li {
    margin-bottom: 20px !important;  /* 设置每个列表项之间的间距 */
    padding-bottom: 20px;            /* 添加内边距以保证分隔线不紧贴内容 */
    overflow: hidden;                /* 清除浮动 */
}

/* 在每篇文章之间添加分隔线 */
.wp-block-latest-posts__list li:not(:last-child) {
    border-bottom: 1px solid #ddd;  /* 分隔线颜色和样式 */
    padding-bottom: 20px;           /* 给每篇文章添加底部间距 */
}

@media (max-width: 768px) {
  #secondary {
    display: none !important;
  }
}
@media (max-width: 768px) {
  footer .ast-footer-widget,
  footer .ast-footer-navigation,
  footer .ast-footer-menu-wrap,
  footer .footer-widget-area,
  footer .ast-builder-footer-element {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
  }
}


/* 按钮默认状态加过渡效果 */
.wp-block-button__link,
a.wp-block-button__link,
a.button,
button,
input[type="submit"] {
    transition: all 0.25s ease-in-out !important;
}

/* 鼠标 hover：背景明显变亮、文字变白 */
.wp-block-button__link:hover,
a.wp-block-button__link:hover,
a.button:hover,
button:hover,
input[type="submit"]:hover {
    filter: brightness(1.35) !important; /* 明度提升 35%，变色更明显 */
    color: #ffffff !important;           /* 文字固定白色，保证可读性 */
}

/* —————— 全站手机端文本渲染优化补丁 —————— */
@media only screen and (max-width: 768px) {

    /* 标题修复 */
    h1, h2, h3 {
        font-weight: 500 !important;
        line-height: 1.38 !important;
        -webkit-font-smoothing: antialiased !important;
        -webkit-text-stroke: 0 !important;
        letter-spacing: 0.2px !important;
        padding-top: 4px !important;
        padding-bottom: 4px !important;
    }

    /* 段落文本修复（P 标签）*/
    p {
        font-weight: 400 !important;
        line-height: 1.6 !important; /* 中文最适合的行距 */
        -webkit-font-smoothing: antialiased !important;
        -webkit-text-stroke: 0 !important;
        letter-spacing: 0.1px !important;
    }

    /* 列表文本（产品特点、规格表常用） */
    li {
        line-height: 1.55 !important;
        font-weight: 400 !important;
        -webkit-font-smoothing: antialiased !important;
        letter-spacing: 0.1px !important;
    }
}
/* 表格宽度适配，只在电脑端生效 */
@media (min-width: 1024px) {
  .product-table {
    width: 100%;
    table-layout: fixed;
  }

  .product-table th:first-child,
  .product-table td:first-child {
    width: 18.25%;
    white-space: nowrap; /* 可选：防止自动换行 */
  }
}
}/* ===== CESIPC 页脚（放在 Astra 版权栏里）完整样式 ===== */
/* ① 页脚本体 —— 含 !important，压掉主题页脚对字号的干预（解决「WhatsApp 这些字太大」） */
.yejiao{padding-top:0 !important;padding-bottom:0 !important}
.yejiao > *{margin-top:0 !important;margin-bottom:0 !important}

.cesipc-foot{padding:25px 20px 19px !important;color:#fff !important}
.cesipc-foot .cf-links{display:grid !important;grid-template-columns:repeat(6,minmax(0,1fr)) !important;gap:20px 24px !important}
.cesipc-foot h4{margin:0 0 9px !important;font-size:13px !important;font-weight:700 !important;
  letter-spacing:.3px !important;line-height:1.35 !important;color:#fff !important}
.cesipc-foot ul{margin:0 !important;padding:0 !important;list-style:none !important}
.cesipc-foot li{margin:0 0 5px !important;padding:0 !important;font-size:12.5px !important;
  line-height:1.45 !important;list-style:none !important}
.cesipc-foot li::before{content:none !important}
.cesipc-foot a{color:rgba(255,255,255,.9) !important;text-decoration:none !important;font-size:inherit !important}
.cesipc-foot a:hover{color:#fff !important;text-decoration:underline !important}
.cesipc-foot .cf-bottom{margin-top:19px !important;padding-top:15px !important;
  border-top:1px solid rgba(255,255,255,.28) !important;
  display:flex !important;flex-wrap:wrap !important;gap:12px 40px !important;
  align-items:center !important;justify-content:space-between !important}
.cesipc-foot .cf-contact{font-size:12.5px !important;line-height:1.5 !important;max-width:820px !important}
.cesipc-foot .cf-contact p{margin:0 0 2px !important;font-size:12.5px !important;line-height:1.5 !important}
.cesipc-foot .cf-contact .sep{opacity:.5 !important;margin:0 8px !important}

/* 社媒图标：图标尺寸不变（30px），只把下面那行字压回 10px */
.cesipc-foot .cf-social{display:flex !important;gap:14px !important;flex-wrap:wrap !important;align-items:center !important}
.cesipc-foot .cf-social a{display:block !important;text-align:center !important;line-height:0 !important}
.cesipc-foot .cf-social img{width:30px !important;height:30px !important;display:block !important;
  margin:0 auto 4px !important;transition:transform .15s ease !important}
.cesipc-foot .cf-social a:hover img{transform:translateY(-2px) !important}
.cesipc-foot .cf-social span{display:block !important;font-size:10px !important;line-height:1.15 !important;
  white-space:nowrap !important;color:rgba(255,255,255,.9) !important}

/* 跟页脚一起粘在版权栏里的版权行 */
.cesipc-copyright{background:#fff !important;text-align:center !important;padding:18px 20px !important;
  font-size:13px !important;line-height:1.6 !important;color:#334155 !important}
.cesipc-copyright a{color:#046bd2 !important;text-decoration:none !important}
.cesipc-copyright a:hover{text-decoration:underline !important}

/* 宽屏/窄屏列数 */
@media (max-width:1100px){
  .cesipc-foot .cf-links{grid-template-columns:repeat(3,minmax(0,1fr)) !important}
}
@media (max-width:640px){
  .cesipc-foot .cf-links{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
}

/* ② Astra 版权栏结构重置 + 深色底通栏（解决「黑底没铺满」） */
/* 2.1 版权栏本身：去掉白底与留白 */
.site-below-footer-wrap{padding:0 !important;background:transparent !important;display:block !important}

/* 2.2 中间几层包裹：全部拉满、去掉内边距和 1240px 容器限制 */
.site-below-footer-wrap .ast-builder-grid-row-container-inner,
.site-below-footer-wrap .ast-builder-footer-grid-columns,
.site-below-footer-wrap .site-footer-below-section-1,
.site-below-footer-wrap .ast-builder-layout-element.ast-footer-copyright,
.site-below-footer-wrap .ast-footer-copyright{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  padding:0 !important;
  margin:0 !important;
  grid-template-columns:none !important;
  justify-content:flex-start !important;
  text-align:left !important;
}

/* 2.3 深色页脚块：100vw 出血，铺满整个屏幕宽度 */
.site-below-footer-wrap .ast-footer-copyright > .wp-block-group.alignfull{
  width:100vw !important;
  max-width:100vw !important;
  margin-left:calc(50% - 50vw) !important;
  margin-right:calc(50% - 50vw) !important;
  border-radius:0 !important;
}/* ===== 页脚字号统一（压掉主题页脚的排版）===== */
.cesipc-foot h4{font-size:13px !important;line-height:1.35 !important;margin:0 0 9px !important;color:#fff !important}
.cesipc-foot li{font-size:12.5px !important;line-height:1.45 !important;margin:0 0 5px !important;list-style:none !important}
.cesipc-foot ul{margin:0 !important;padding:0 !important;list-style:none !important}
.cesipc-foot a{color:rgba(255,255,255,.9) !important;text-decoration:none !important;font-size:inherit !important}
.cesipc-foot a:hover{color:#fff !important;text-decoration:underline !important}
.cesipc-foot .cf-contact,.cesipc-foot .cf-contact p{font-size:12.5px !important;line-height:1.5 !important;margin:0 0 2px !important}

/* 图标下面的文字：Astra 把 <span> 过滤掉了，所以要直接控 <a> 的字号 */
.cesipc-foot .cf-social a{font-size:10px !important;line-height:1.2 !important;color:rgba(255,255,255,.9) !important}
.cesipc-foot .cf-social img{display:block !important;width:30px !important;height:30px !important;margin:0 auto 4px !important}
.cesipc-foot .cf-social br{display:none !important}
/* CESIPC 页眉：主菜单改成与页脚一致的深色（页脚深色 = #17263c，原菜单是中蓝 #3375af） */
.ast-builder-menu-1 .main-header-menu,
.ast-builder-menu-1 .main-header-menu .sub-menu{background-color:#17263c !important;background-image:none !important}

.ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link{color:#e8eef7 !important}
.ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link:hover,
.ast-builder-menu-1 .main-header-menu > .menu-item.current-menu-item > .menu-link,
.ast-builder-menu-1 .main-header-menu > .menu-item.current-menu-ancestor > .menu-link,
.ast-builder-menu-1 .main-header-menu > .menu-item.current-menu-parent > .menu-link{
  color:#ffffff !important;background-color:rgba(255,255,255,.10) !important}

.ast-builder-menu-1 .main-header-menu .sub-menu .menu-link{color:#cfd9e6 !important}
.ast-builder-menu-1 .main-header-menu .sub-menu .menu-link:hover{color:#ffffff !important;background-color:rgba(255,255,255,.08) !important}
.ast-builder-menu-1 .main-header-menu .sub-menu{border:1px solid rgba(255,255,255,.14) !important;box-shadow:0 18px 34px -18px rgba(0,0,0,.55) !important}

/* 菜单里的 Contact 项：深色底上保持白字 */
.ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link[href*="contact"]{color:#ffffff !important}

/* 移动端抽屉菜单同样用深色 */
.ast-mobile-header-content .main-header-menu,
.ast-mobile-header-content .ast-builder-menu-mobile .main-header-menu{background-color:#17263c !important}
.ast-mobile-header-content .main-header-menu .menu-link{color:#e8eef7 !important}