/*==========================
 <-- 成功案例头图样式 -->
===========================*/
.case-head {
    background: url('../image/caseBack.png');
    background-size: cover;
    background-repeat: no-repeat;
    margin-top: .80rem;
}

.case-head .area-content {
    padding: 2.04rem 0 1.84rem 0;
}

.case-head h1 {
    color: #fff;
    text-align: center;
    font-size: .48rem;
    line-height: .67rem;
    margin-bottom: .15rem;
}

.case-head h3 {
    color: rgba(255, 255, 255, .5);
    font-size: .36rem;
    line-height: .50rem;
    text-align: center;
}

/*==========================
 <-- 成功案例列表样式 -->
===========================*/
.case-detail {
    background-color: #f8f9ff;
}

.case-tab {
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-tab-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    padding: .12rem 0;
    border-radius: 3.52rem;
    margin-right: .50rem;
    width: 2.52rem;
    cursor: pointer;
    user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
}

.case-tab-item:last-child {
    margin-right: 0;
}

.case-tab-item .case-item-icon {
    width: .28rem;
    height: .28rem;
    margin-right: .08rem;
}

.case-tab-item .case-item-icon img {
    width: 100%;
    height: 100%;
    vertical-align: top;
}

.case-tab-item .case-item-title {
    font-size: .28rem;
    line-height: .39rem;
}

.case-tab-item .case-hover {
    display: none;
}

.case-tab-item .case-active {
    display: none;
}

.case-tab-item:hover .case-normal {
    display: none;
}

.case-tab-item:hover .case-hover {
    display: block;
}

.case-tab-item:hover .case-item-title {
    color: var(--primary-color);
}

.case-tab-item.active {
    background: linear-gradient(90deg, var(--primary-color), #6C9DFF);
}

.case-tab-item.active .case-item-title {
    color: #fff;
}

.case-tab-item.active .case-active {
    display: block;
}

.case-tab-item.active .case-normal {
    display: none;
}

.case-tab-item.active .case-hover {
    display: none;
}

.case-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: .32rem .30rem;
    margin-top: .60rem;
}

.case-list-item {
    padding: .20rem;
    background-color: #fff;
    border-radius: .08rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    box-shadow: 0 .02rem .12rem 0 #E7EDF3;
    transition: 0s;
}

.case-list-item.hidden-class {
    display: none;
}

.case-image {
    width: 100%;
    height: 2.40rem;
    border-radius: .04rem;
    margin-bottom: .3rem;
    border: .01rem solid #f5f5f5;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: .04rem;
}

.case-type {
    background-color: rgba(var(--primary-color-rgb), .1);
    color: var(--primary-color);
    padding: .06rem .12rem;
    font-size: .14rem;
    line-height: .20rem;
    border-radius: .04rem;
    margin-bottom: .20rem;
}

.case-list-item.government .case-type {
    color: #F17116;
    background-color: rgba(241, 113, 22, .1);
}

.case-list-item.message .case-type {
    color: rgba(30, 202, 82, 1);
    background-color: rgba(30, 202, 82, .1);
}

.case-title {
    font-size: .20rem;
    line-height: .28rem;
    font-weight: 600;
    margin-bottom: .15rem;
    word-break: break-all;
}

.case-hover-area {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3.12rem;
    background: linear-gradient(0deg, var(--primary-color), rgba(var(--primary-color-rgb), .94), rgba(var(--primary-color-rgb), 0));
    border-radius: 0 0 .08rem .08rem;
    padding: 0 .2rem .24rem .2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
}

.case-hover-area h2 {
    font-size: .18rem;
    line-height: .26rem;
    color: #fff;
}

.case-hover-area .case-message {
    margin-top: .2rem;
    color: #fff;
    font-size: .14rem;
    line-height: .22rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    text-align: justify;
    font-weight: 300;
    /* 注意：这一行在某些浏览器（如Firefox）中可能不起作用，需要配合其他方法 */
}

.case-list-item:hover .case-hover-area{
    opacity: 1;
}

.case-detail .check-more {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: .40rem;
    font-size: .20rem;
    line-height: .28rem;
    color: var(--primary-font-color2);
    cursor: pointer;
}

.case-detail .check-more img {
    width: .24rem;
    height: .24rem;
    margin-left: .08rem;
}

.case-detail .check-more.hidden-more {
    display: none;
}