.main-content{
    width: 1400px;
    margin: 80px auto;
    font-size: 16px;
    color: #333333;
}
.cases-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cases-title {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.case-list{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}
.case-list .case-item{
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
    border-bottom: none;
}
.case-list .case-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}
.case-list .case-item .case-item-img{
    width: 100%;
    aspect-ratio: 16 / 10;
    position: relative;
    overflow: hidden;
}
.case-list .case-item .case-item-img::before {
    position: absolute;
    top: 0;
    left: -100%;
    z-index: 2;
    display: block;
    content: '';
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 100%);
    transform: skewX(-25deg);
}
.case-list .case-item:hover .case-item-img::before {
    -webkit-animation: shine .75s;
    animation: shine .75s;
}
@-webkit-keyframes shine {
    100% {
        left: 125%;
    }
}
@keyframes shine {
    100% {
        left: 100%;
    }
}
.case-list .case-item .case-item-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.case-list .case-item:hover .case-item-img img {
    transform: scale(1.05);
}
.case-list .case-item {
    display: flex;
    flex-direction: column;
}
.case-list .case-item .case-item-title{
    font-weight: bold;
    font-size: 22px;
    color: #222;
    margin: 20px 20px 10px;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.3s ease;
}
.case-list .case-item:hover .case-item-title {
    color: #cb2a29;
}
.case-list .case-item .case-item-desc{
    font-size: 15px;
    color: #666;
    margin: 0 20px 15px;
    line-height: 1.6;
    height: 4.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.case-list .case-item .case-item-more {
    margin: auto 20px 25px;
    font-size: 15px;
    font-weight: 600;
    color: #cb2a29;
    transition: transform 0.3s ease;
    display: inline-block;
}
.case-list .case-item:hover .case-item-more {
    transform: translateX(5px);
}
.case-list .case-item a {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    height: 100%;
    text-decoration: none;
}


@media only screen and (min-width: 1000px) and (max-width: 1440px) {
    .main-content{
        width: 900px;
        margin: 60px auto;
    }
    .case-list{
        margin-top: 30px;
    }
    .case-list .case-item{
        padding-bottom: 15px;
        margin-top: 15px;
    }
    .case-list .case-item .case-item-img{
        border-radius: 8px;
    }
    .case-list .case-item .case-item-title{
        font-size: 16px;
        margin-top: 6px;
    }
    .case-list .case-item .case-item-desc{
        font-size: 13px;
        margin-top: 6px;
    }
    .case-list .case-item .case-item-more{
        font-size: 13px;
        margin-top: auto;
    }
}

@media only screen and (max-width: 1000px) {
    .main-content{
        width: 700px;
        margin: 40px auto;
    }
    .case-list{
        margin-top: 20px;
    }
    .case-list .case-item{
        padding-bottom: 10px;
        margin-top: 10px;
    }
    .case-list .case-item .case-item-img{
        border-radius: 6px;
    }
    .case-list .case-item .case-item-title{
        font-size: 14px;
        margin-top: 2px;
    }
    .case-list .case-item .case-item-desc{
        font-size: 12px;
        margin-top: 2px;
    }
    .case-list .case-item .case-item-more{
        font-size: 12px;
        margin-top: auto;
    }
}

.case-bottom-cta {
    background: linear-gradient(180deg, #FFFFFF 0%, #F8F9FA 100%);
    padding: 80px 0;
    text-align: center;
    margin-top: 60px;
    border-radius: 12px;
}

.case-bottom-cta-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.case-bottom-cta-title {
    font-size: 36px;
    color: #333333;
    font-weight: bold;
    margin-bottom: 24px;
}

.case-bottom-cta-desc {
    font-size: 16px;
    color: #666;
    max-width: 850px;
    margin: 0 auto 40px;
    line-height: 1.8;
    text-align: center;
}

.case-bottom-cta-btn {
    background-color: #cb2a29;
    color: #fff;
    padding: 15px 45px;
    font-size: 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.case-bottom-cta-btn:hover {
    background-color: #a82221;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(203, 42, 41, 0.2);
}

@media only screen and (max-width: 1000px) {
    .case-bottom-cta {
        padding: 50px 0;
        margin-top: 40px;
    }
    .case-bottom-cta-title {
        font-size: 24px;
        margin-bottom: 15px;
    }
    .case-bottom-cta-desc {
        font-size: 14px;
        margin-bottom: 25px;
    }
    .case-bottom-cta-btn {
        padding: 12px 30px;
        font-size: 16px;
    }
}

.main-content .pagination{
    margin-top: 42px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    list-style: none;
    padding: 0;
}
.main-content .pagination li {
    display: inline-block;
    margin: 0;
    padding: 0;
    border: none;
}
.main-content .pagination li a,
.main-content .pagination li span {
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 4px; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    color: #4b5563;
    background: #fff;
    border: 1px solid #d1d5db;
    text-decoration: none;
    transition: all 0.2s ease;
}
.main-content .pagination li.active span {
    background: #ea222d;
    border-color: #ea222d;
    color: #fff;
}
.main-content .pagination li a:hover {
    background: #fef2f2;
    border-color: #ea222d;
    color: #ea222d;
}
.main-content .pagination li.disabled span {
    color: #9ca3af;
    background: #f9fafb;
    border-color: #e5e7eb;
    cursor: not-allowed;
}
