 
/* 产品与服务板块 - 一行显示4张图片（完整样式） */
.index-sec5 .w1240 {
    padding: 0 10px; /* 容器左右留白，避免边缘紧贴 */
    box-sizing: border-box;
}

/* 图片网格容器 */
.image-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap; /* 自动换行 */
    gap: 16px; /* 图片间距（横向3个间距，纵向也保持一致） */
}

/* 图片项：计算宽度确保一行4个 */
.image-item {
    /* 25%宽度 - 减去间距占用的宽度（16px*3个间距 / 4个项 = 12px） */
    flex: 0 0 calc(25% - 12px); 
    box-sizing: border-box; /* 确保padding和border不影响宽度计算 */
}

/* 图片链接样式 */
.image-link {
    display: block;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease;
    height: 100%; /* 确保链接占满整个项 */
    width: 293px;
}

.image-link:hover {
    transform: translateY(-5px); /* 悬停上浮效果 */
}

/* 图片样式：保持比例且填充容器 */
.image-link img {
    width: 293px;
    height: 200px; /* 固定高度，确保视觉统一 */
    object-fit: cover; /* 裁剪多余部分，保持比例 */
    border-radius: 4px; /* 轻微圆角美化 */
    display: block; /* 去除图片底部间隙 */
}

/* 图片标题样式 */
.image-link p {
    margin: 12px 0 0;
    padding: 0 5px;
    font-size: 14px;
    text-align: center;
    white-space: nowrap; /* 标题不换行 */
    overflow: hidden;
    text-overflow: ellipsis; /* 溢出显示省略号 */
}

/* 响应式调整：不同屏幕尺寸适配 */
/* 平板：一行2-3张 */
@media (max-width: 992px) {
    .image-item {
        flex: 0 0 calc(33.333% - 11px); /* 一行3张（16px*2/3≈11px） */
    }
}

/* 小平板：一行2张 */
@media (max-width: 768px) {
    .image-item {
        flex: 0 0 calc(50% - 8px); /* 一行2张（16px*1/2=8px） */
    }
}

/* 手机：一行1张 */
@media (max-width: 576px) {
    .image-item {
        flex: 0 0 100%; /* 一行1张，无需减间距 */
    }
    .image-link img {
        height: 160px; /* 手机端图片高度减小 */
    }
}

/* 党建活动板块样式 */
.picList {
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
    list-style: none;
    transition: transform 0.6s ease-out;
}

.picList li {
    width: 326px;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin: 10px 0;
}

.index-sec3 .bd {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.picList figure img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.picList figcaption {
    padding: 20px;
}

/* 新闻资讯板块样式 */
.content-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
    padding: 20px;
}

.carousel-wrapper {
    width: 400px;
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
}

.carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-item.active {
    opacity: 1;
    z-index: 1;
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 16px;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    font-size: 20px;
}

.prev { left: 10px; }
.next { right: 10px; }

.carousel-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.carousel-indicators span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.carousel-indicators span.active {
    background: white;
}

.list-wrapper {
    flex: 1;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-item {
    padding: 5px 7px;
    border-bottom: 1px solid #eee;
}

.service-item:last-child {
    border-bottom: none;
}

.service-link {
    text-decoration: none;
    color: #333;
    display: block;
}

.info-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.p2 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.3s;
}

.p2:hover {
    color: #2c3e50;
}

.p21 {
    margin: 0;
    font-size: 14px;
    color: #666;
    text-overflow: ellipsis; 
    white-space: nowrap;
}
 