/* ==============================================
   工程案例 (idx-case-section)
   ============================================== */

.idx-case-section { padding: 50px 0; background: #fff; }

/* 标题 */
.idx-case-title { text-align: center; margin-bottom: 28px; }
.idx-case-title span { display: block; font-size: 13px; color: #bbb; text-transform: uppercase; letter-spacing: 3px; margin-bottom: 10px; }
.idx-case-title p { font-size: 28px; font-weight: 700; color: #222; margin: 0; position: relative; display: inline-block; }
.idx-case-title p em { display: inline-block; width: 36px; height: 3px; background: #4177b7; vertical-align: middle; margin-left: 10px; }

/* 分类链接 */
.idx-case-link { font-size: 0; text-align: center; margin-bottom: 40px; white-space: nowrap; overflow-x: auto; }
.idx-case-link ul { list-style: none; padding: 0; margin: 0; }
.idx-case-link ul li { display: inline-block; font-size: 16px; color: #999999; line-height: 40px; padding: 0 30px; background: #f7f7f7; margin: 0 5px; transition: background .25s; }
.idx-case-link ul li a { color: inherit; text-decoration: none; }
.idx-case-link ul li:hover,
.idx-case-link ul li.active { background: #4177b7; }
.idx-case-link ul li:hover a,
.idx-case-link ul li.active a { color: #fff; }

/* Panel 切换 */
.idx-case-panel { display: none; }
.idx-case-panel.active { display: block; animation: caseFadeIn .35s ease; }
@keyframes caseFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* Swiper */
.idx-case-sw { overflow: hidden; padding-bottom: 60px; }
.idx-case-sw .swiper-slide { width: 380px; }

/* 卡片 */
.idx-case-item { display: block; position: relative; overflow: hidden; text-decoration: none; border: none; }
.idx-case-img { width: 100%; height: 260px; overflow: hidden; }
.idx-case-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.idx-case-item:hover .idx-case-img img { transform: scale(1.1); }

/* hover 遮罩 - 移除 */
.idx-case-ico { display: none; }


/* 底部标题条 */
.idx-case-text { text-align: center; margin-top: 10px; padding: 0 10px; background: none; }
.idx-case-text p { margin: 0; font-size: 16px; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 分页点 */
.idx-case-panel .swiper-pagination { position: relative; bottom: auto; margin-top: 22px; }
.idx-case-panel .swiper-pagination-bullet { width: 10px; height: 10px; border-radius: 100%; background: #000; opacity: .2; }
.idx-case-panel .swiper-pagination-bullet-active { background: #4177b7; opacity: 1; }

/* 响应式 */
@media (max-width: 900px) {
    .idx-case-sw .swiper-slide { width: 260px; }
    .idx-case-img { height: 180px; }
}
@media (max-width: 768px) {
    .idx-case-section { padding: 30px 0 16px; }
    .idx-case-sw { padding-bottom: 10px; }
    .idx-case-panel .swiper-pagination { margin-top: 10px; }
    /* 分类标签：横向滚动，字号缩小 */
    .idx-case-link { margin-bottom: 20px; text-align: left; }
    .idx-case-link ul { display: flex; flex-wrap: nowrap; overflow-x: auto; padding: 4px 2px 8px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .idx-case-link ul::-webkit-scrollbar { display: none; }
    .idx-case-link ul li { flex-shrink: 0; font-size: 13px; line-height: 32px; padding: 0 16px; margin: 0 4px 0 0; border-radius: 2px; }
    /* 滑块：占屏幕约 78%，展示一条半 */
    .idx-case-sw .swiper-slide { width: 78vw; max-width: 300px; }
    .idx-case-img { height: 200px; }
    .idx-case-text p { font-size: 14px; }
    /* section 标题 */
    .idx-case-section .section-title strong { font-size: 20px; }
    .idx-case-section .section-title p { font-size: 12px; }
}
