/* ============================================================
   产品中心 / 工程案例 展示区修复样式
   原因：原模板用百分比宽度 + leftMarquee 连续滚动，
   宽度计算错误导致卡片被裁切、只挤在左侧、右侧大片空白。
   这里改为固定等分卡片 + 整卡切换，卡片完整显示且铺满容器。
   ============================================================ */

.pc-carousel {
  --pc-vis: 4;
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: auto !important;
  margin: 0 auto;
  overflow: visible !important;
}

.pc-carousel .pc-viewport {
  width: 100%;
  overflow: hidden;
}

.pc-carousel .pc-track {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform .45s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

/* 覆盖原模板 .iFCB-PRO-4 { float:left; width:25%; } 与 .iFCB-TPLB li { height:400px } */
.pc-carousel .pc-track > li {
  float: none !important;
  width: auto !important;
  height: auto !important;
  min-width: 0;
  padding: 0;
  box-sizing: border-box;
  flex: 0 0 calc(100% / var(--pc-vis));
}

.pc-carousel .pc-track > li .iFCB-rp {
  margin: 0;
  padding: 0 5px 6px;
  overflow: hidden;
  background: none;
}

.pc-carousel .pc-track > li .m-pic {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 75%; /* 4:3，和站点原图比例一致 */
  border: 1px solid #e8e8e8;
  border-bottom: 0;
  overflow: hidden;
  background: #fff;
}

.pc-carousel .pc-track > li .m-pic img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  transform: none;
  transition: transform .5s ease;
}

.pc-carousel .pc-track > li:hover .m-pic img {
  transform: scale(1.05);
}

/* 工程案例缩略图是「院徽 + 院区照片」的横幅拼图，按 4:3 裁切会只剩中间一块，
   这里改成更扁的容器并完整显示图片。 */
.pc-carousel.pc-case .pc-track > li .m-pic {
  padding-bottom: 56%;
}

.pc-carousel.pc-case .pc-track > li .m-pic img {
  object-fit: contain;
  background: #fff;
}

.pc-carousel.pc-case .pc-track > li:hover .m-pic img {
  transform: none;
}

.pc-carousel .pc-track > li .m-intro {
  padding: 10px 8px;
  border: 1px solid #e8e8e8;
  border-top: 0;
  background: #fff;
  color: #333;
  text-align: center;
  transition: background-color .25s ease, color .25s ease;
}

/* 悬停时才高亮，鼠标移开立即恢复，不会留下蓝块 */
.pc-carousel .pc-track > li:hover .m-intro {
  background: #2183d6;
  color: #fff;
}

.pc-carousel .pc-track > li .m-intro .u-tt {
  height: 26px;
  font-size: 14px;
  line-height: 26px;
  color: inherit;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pc-carousel .pc-track > li .m-intro .u-des,
.pc-carousel .pc-track > li .m-intro .u-more {
  display: none !important;
  opacity: 0 !important;
}

/* ---------- 控制条：左右箭头 + 分页点，放在卡片下方，不遮挡内容 ---------- */
.pc-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
  height: 30px;
}

.pc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #dcdcdc;
  border-radius: 2px;
  background: #fff;
  color: #777;
  cursor: pointer;
  transition: all .25s ease;
}

.pc-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.pc-btn:hover:not(:disabled) {
  border-color: #2183d6;
  background: #2183d6;
  color: #fff;
}

.pc-btn:disabled {
  opacity: .35;
  cursor: default;
}

.pc-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.pc-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: #d5d5d5;
  cursor: pointer;
  transition: all .25s ease;
}

.pc-dot.is-active {
  width: 20px;
  background: #2183d6;
}

/* ---------- 多终端适配（JS 也会按视口设置 --pc-vis） ---------- */
/* 原模板把内容容器写死 1220px，窄屏下会让卡片区整体溢出屏幕 */
@media (max-width: 1229px) {
  .pg_margins { min-width: 0 !important; }
  .nav, .footer .footer_wp, .mainbg, .iFCB { width: 100% !important; }
  #div_8789 {
    width: 100% !important;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }
  .m907-product-menu .content .pro_sort .each_li .name > .icon a {
    padding: 0 10px;
  }
}

@media (max-width: 1199px) {
  .pc-carousel { --pc-vis: 3; }
}

@media (max-width: 899px) {
  .pc-carousel { --pc-vis: 2; }
  .pc-carousel .pc-track > li .m-intro .u-tt { font-size: 13px; }
  /* 右侧固定悬浮客服条会压住分类文字，留出安全区 */
  .m907-product-menu .content .pro_sort { padding-right: 70px; }
}

@media (max-width: 599px) {
  .pc-carousel { --pc-vis: 1; }
  .pc-carousel .pc-controls { margin-top: 12px; }
}

/* ============================================================
   权威认证（.m907-business）：删除证书卡片上的 ::after
   原模板 css.css 第 422 / 434 行用 .iFCB-rp::after 给每张证书
   盖了一层 rgba(0,0,0,.4) 黑色蒙版。伪元素不是 DOM 节点，
   不能用 JS 的 remove() 删除，只能让它不再生成：content: none。
   ============================================================ */
.m907-business .iFCB-pro .iFCB-TPLB li .iFCB-rp::after,
.m907-business .iFCB-pro .iFCB-TPLB li:hover .iFCB-rp::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

/* ------------------------------------------------------------
   2) ul / li 上还留着的 ::after —— 是 .clearfix::after，不是蒙版
   css_structure.css 第 2 行：.clearfix::after{display:block;content:"";clear:both}
   权威认证的 <ul class="iFCB-TPLB clearfix"> 与每个
   <li class="iFCB-PRO-5 clearfix"> 都带 clearfix，所以 DevTools 里
   选中 ul 仍能看到 ::after。该 ul 已经是 display:flex、li 不浮动，
   clearfix 完全多余，还会作为幽灵 flex item 撑出约 389px 高。
   这里只在本区块内禁用，不影响全站其它 clearfix。
   ------------------------------------------------------------ */
.m907-business .content::after,
.m907-business .content *::after,
.m907-business .content *:hover::after {
  content: none !important;
  display: none !important;
  background: none !important;
  clear: none !important;
  opacity: 0 !important;
}

/* 明确列出选择器，便于直接复制到线上模板 / 单独调试 */
.m907-business .iFCB-pro .iFCB-TPLB::after,
.m907-business .iFCB-pro .iFCB-TPLB li::after,
.m907-business .iFCB-pro .iFCB-TPLB li .iFCB-rp::after,
.m907-business .iFCB-pro .iFCB-TPLB li .iFCB-rp .m-intro::after {
  content: none !important;
  display: none !important;
}

/* 注意：上面只清 .content 里的（证书列表），标题不在其中。
   如果指的是「权威认证」标题两侧的灰色横线，那是
   css.css 第 259~265 行 .title .title_more 的 ::before / ::after，
   两条要一起去掉，否则只剩单边一条线。需要时取消下面注释：
.m907-business .title .title_more::before,
.m907-business .title .title_more::after {
  content: none !important;
  display: none !important;
}
*/

/* ---- 以下为配套样式（不想要可以整段删掉）----
   黑色蒙版去掉后，原来叠在图片上的白色标题在浅色证书上看不清，
   所以把标题移到图片下方，改成深色文字 + 白底，与产品卡片一致。 */
.m907-business .iFCB-pro .iFCB-TPLB li { height: auto !important; }
.m907-business .iFCB-pro .iFCB-TPLB li .iFCB-rp { overflow: visible; }
.m907-business .iFCB-pro .iFCB-TPLB li .iFCB-rp a { color: #333; }
.m907-business .iFCB-pro .iFCB-TPLB li .iFCB-rp .m-intro,
.m907-business .iFCB-pro .iFCB-TPLB li:hover .iFCB-rp .m-intro {
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 10px 8px;
  border: 1px solid #e8e8e8;
  border-top: 0;
  background: #fff !important;
  color: #333 !important;
  line-height: 26px;
  opacity: 1 !important;
  z-index: auto;
}
.m907-business .iFCB-pro .iFCB-TPLB li .iFCB-rp .m-intro .u-tt {
  height: auto !important;
  min-height: 26px;
  color: #333 !important;
  font-size: 14px !important;
  line-height: 26px !important;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
.m907-business .iFCB-pro .iFCB-TPLB li .iFCB-rp .m-intro .u-des,
.m907-business .iFCB-pro .iFCB-TPLB li .iFCB-rp .m-intro .u-more {
  display: none !important;
  opacity: 0 !important;
}

/* 窄屏下证书区容器跟着自适应（原模板写死 1200px） */
@media (max-width: 1229px) {
  .m907-business .iFCB-pro { width: 100% !important; }
}
