@charset "utf-8";
/* ============================================================
   鹰诺达 · 全站统一主题  yn-theme.css   v20261113a
   目标：头尾与内容区宽度一致（1200 居中）、卡片统一、排版统一
   加载顺序：置于所有页面 CSS 之后，靠后者覆盖
   ============================================================ */

/* ---------- 1. 统一容器宽度（与顶部导航 1200 对齐） ---------- */
.container-s {
  width: 1200px !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  float: none !important;
}
.container {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ---------- 2. 基础排版统一 ---------- */
.P_cat, .gmian, .allcase, .dzgonglv, .P_list, .ynd-list { font-size: 15px; }

.P_cat h2, .gmian h2, .allcase h2, .dzgonglv h2 {
  font-size: 26px;
  line-height: 1.4;
  font-weight: 700;
  color: #1b1d24;
  text-align: center;
  margin: 0 0 24px;
}

/* ---------- 3. 分类筛选条（案例分类 / 产品分类） ---------- */
.P_cat { margin-top: 28px; }
.P_cat dl {
  margin: 0 0 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.P_cat dl dt.fl {
  float: none;
  flex: 0 0 auto;
  width: auto !important;
  line-height: 34px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
}
.P_cat dl dd {
  width: auto !important;
  flex: 1 1 auto;
  min-width: 0;
}
/* 分类块：默认折叠 2 行，展开按钮做成品牌胶囊，不用滚动条 */
.P_cat dl dd.hangye {
  height: auto !important;
  max-height: 88px;
  overflow: hidden !important;
  position: relative !important;
  padding-right: 4px;
  transition: max-height .25s ease;
}
.P_cat dl dd.hangye.on {
  max-height: 3000px;
  overflow: visible !important;
}
.P_cat dl dd.hangye .quanbu,
.P_cat dl dd.hangye .xiangshang {
  position: absolute !important;
  right: 0 !important;
  bottom: 0 !important;
  top: auto !important;
  left: auto !important;
  width: auto !important;
  height: 30px !important;
  line-height: 28px !important;
  padding: 0 15px !important;
  margin: 0 !important;
  border: 1px solid #e2e7f1 !important;
  border-radius: 16px !important;
  background: #fff !important;
  background-image: none !important;
  font-size: 0 !important;
  color: #011d5c !important;
  cursor: pointer;
  box-shadow: 0 0 0 9px #fff;
  z-index: 2;
}
.P_cat dl dd.hangye .quanbu::after {
  content: "展开全部分类 ∨";
  font-size: 13px;
  letter-spacing: .2px;
}
.P_cat dl dd.hangye .xiangshang::after {
  content: "收起 ∧";
  font-size: 13px;
}
.P_cat dl dd.hangye .quanbu { display: block !important; }
.P_cat dl dd.hangye.on .quanbu { display: none !important; }
.P_cat dl dd.hangye .xiangshang { display: none !important; }
.P_cat dl dd.hangye.on .xiangshang { display: block !important; }

.P_cat dl dd a {
  display: inline-block;
  margin: 0 8px 8px 0 !important;
  padding: 6px 16px !important;
  line-height: 20px;
  font-size: 14px !important;
  color: #4a5060 !important;
  background: #fff;
  border: 1px solid #e2e7f1 !important;
  border-radius: 17px !important;
  cursor: pointer;
  transition: color .16s, border-color .16s, background .16s;
}
.P_cat dl dd a:hover,
.P_cat dl dd a.on,
.P_cat dl dd a.active {
  color: #fff !important;
  background: #011d5c !important;
  border-color: #011d5c !important;
  text-decoration: none;
}

/* ---------- 4. 案例卡片（.gmian）—— 主图完整显示、等高等宽 ---------- */
.gmian { margin-top: 26px; }
.gmian ul.c {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.gmian ul li,
.gmian ul li:nth-child(5n) {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  border: 1px solid #e6eaf3 !important;
  border-bottom: 1px solid #e6eaf3 !important;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.gmian ul li:hover {
  border-color: #c7d2e6 !important;
  box-shadow: 0 8px 22px rgba(1, 29, 92, .08);
  transform: translateY(-2px);
}
.gmian ul li > a {
  display: block;
  width: 100%;
}
/* 主图：1:1 方图，整图完整显示不裁切；只作用于主图，不碰下方缩略图 */
.gmian ul li > a > img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  object-fit: contain !important;
  object-position: center center;
  background: #f7f9fc;
  display: block;
  padding: 0 !important;
  margin: 0 auto;
}
.gmian ul li > a > p {
  margin: 0 !important;
  padding: 11px 12px 13px;
  font-size: 14px !important;
  line-height: 1.5;
  color: #2a2f3a !important;
  text-align: center;
  height: 60px;
  box-sizing: border-box;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* 产品卡片（.ynd-card）：标题与热度区统一，缩略图保持原尺寸 */
.gmian ul li.ynd-card { padding-bottom: 10px; }
.gmian ul li.ynd-card .ynd-main { display: block; }
.gmian ul li.ynd-card p.ynd-tit { font-size: 14px; }

/* 缩略图选中态：统一品牌深蓝，压掉旧枣红 */
.gmian ul li .ynd-thumbs a.on {
  border-color: #011d5c !important;
  box-shadow: 0 0 0 1px #011d5c inset;
}
.gmian ul li .ynd-thumbs a:hover { border-color: #a8b6d6 !important; }
.gmian ul li .ynd-thumbs a {
  border-radius: 5px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

/* ---------- 5. 全部案例图库（.allcase） ---------- */
.allcase { margin-top: 20px; }
.allcase .casecat ul li a {
  border-radius: 17px;
  padding: 0 18px;
  font-size: 14px;
  color: #4a5060;
}
.allcase .casecat ul li a.current,
.allcase .casecat ul li a:hover {
  background-image: none !important;
  background: #011d5c !important;
  color: #fff !important;
}
.allcase .casecon ul.c {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.allcase .casecon ul li,
.allcase .casecon ul li:nth-child(5n) {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  border: 1px solid #e6eaf3;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.allcase .casecon ul li:hover {
  border-color: #c7d2e6;
  box-shadow: 0 8px 22px rgba(1, 29, 92, .08);
  transform: translateY(-2px);
}
.allcase .casecon ul li .img {
  width: auto !important;
  height: 172px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f9fc;
  overflow: hidden;
}
.allcase .casecon ul li .img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  transition: transform .35s;
}
.allcase .casecon ul li a:hover img { transform: scale(1.06); }
.allcase .casecon ul li p {
  height: 40px;
  line-height: 40px;
  font-size: 13px;
  color: #4a5060;
  padding: 0 8px;
  box-sizing: border-box;
}
.allcase .more a {
  background-image: none !important;
  background: #ffd400 !important;
  color: #1b1d24 !important;
  font-size: 14px !important;
  font-weight: 600;
  border-radius: 19px;
  height: 38px;
  line-height: 38px;
  width: 152px;
}

/* ---------- 6. 圆形地区/品牌卡片微调（配合 180px 缩略图） ---------- */
.case_dapai ul li img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  background: #f7f9fc;
}
.case_dapai ul li p {
  font-size: 14px;
  color: #4a5060;
}

/* ---------- 7. 分页统一 ---------- */
.pagelist { margin: 34px 0 10px; text-align: center; }
.pagelist ul { display: inline-block; }
.pagelist li { display: inline-block; margin: 0 4px; }
.pagelist li a,
.pagelist li span {
  display: inline-block;
  min-width: 34px;
  height: 34px;
  line-height: 34px;
  padding: 0 10px;
  box-sizing: border-box;
  font-size: 14px;
  color: #4a5060;
  background: #fff;
  border: 1px solid #e2e7f1;
  border-radius: 6px;
}
.pagelist li a:hover,
.pagelist li.active a,
.pagelist li span.current {
  color: #fff;
  background: #011d5c;
  border-color: #011d5c;
}

/* ---------- 8. 区块上下留白统一 ---------- */
.gmian, .allcase, .dzgonglv { margin-bottom: 10px; }
.P_cat + .container-s { margin-top: 6px; }

/* ================= 栏目 banner：固定 1920 居中裁切 =================
   目标：任何屏幕宽度下，banner 中间 1200 区域与页面内容容器严格对齐，
   两侧多余部分裁掉，内容不会被等比缩窄。 */
.band {
  overflow: hidden;
  background: #e8f4fd;
}
.band > img.pc,
.band > img {
  width: 1920px !important;
  max-width: none !important;
  height: auto !important;
  display: block;
  position: relative;
  left: 50%;
  margin-left: -960px;
}
