.caseService21 {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    position: relative; /* 确保子元素定位正常 */
}

.caseService21 * {
    box-sizing: border-box;
}

.caseService21 img {
    max-width: 100%;
    display: block;
    border: none;
    height: 65px;
    object-fit: cover;
    margin: 0 auto 12px; /* 统一图片间距 */
}

.caseService21 .case_content {
    border: 2px solid #01b04f;
    width: 190px;
    height: 250px;
    text-align: center;
    display: flex;
    flex-direction: column; /* 垂直排列内容 */
    align-items: center;
    justify-content: center; /* 内容垂直居中 */
    background: #fff;
    transition: all .5s;
    padding: 15px; /* 增加内边距避免内容拥挤 */
    position: relative; /* 确保文字在最上层 */
    z-index: 1; /* 提高层级防止被遮挡 */
}

/* 修复图片显示状态切换 */
.caseService21 .case_content .normal_img {
    display: block;
}

.caseService21 .case_content .hover_img {
    display: none;
}

/* 标题样式优化 */
.caseService21 .case_content .title {
    font-size: 14px;
    color: #333;
    line-height: 2;
    word-break: break-all;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    height: 28px;
    margin: 0 0 5px; /* 调整间距 */
}

/* 描述文字样式优化 */
.caseService21 .case_content .des {
    font-size: 12px;
    color: #555;
    line-height: 1.6; /* 调整行高避免文字重叠 */
    width: 90%;
    margin: 0 auto;
    word-break: break-all;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 3; /* 增加显示行数 */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    height: auto; /* 取消固定高度限制 */
    min-height: 50px; /* 确保高度足够 */
}

/* Hover 状态优化 - 增强文字对比度 */
.caseService21 .case_content:hover {
    background: #01b04f;
    border: 2px solid #01b04f;
}

.caseService21 .case_content:hover .normal_img {
    display: none;
}

.caseService21 .case_content:hover .hover_img {
    display: block;
}

/* 强制设置 hover 状态文字颜色为白色，确保对比度 */
.caseService21 .case_content:hover .des,
.caseService21 .case_content:hover .title {
    color: #fff !important;
    z-index: 2; /* 确保文字在最上层 */
    position: relative;
}

/* 箭头样式修改 - 与主题色统一 */
.case_content_icon {
    /* 取消 float 避免影响布局 */
    width: 44px;
    text-align: center;
    color: #01b04f; /* 箭头颜色改为主题色 */
    transition: all .5s;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 箭头 hover 效果增强 */
.case_content_icon:hover {
    color: #008a3a; /* 深色变体增强交互感 */
    transform: scale(1.1); /* 轻微放大效果 */
}