/* 主要内容区域 */
.case-detail-content {
    background: #f8f9fa;
    min-height: 80vh;
    background: url('../images/aboutbg.jpg');
    position: relative;
    padding: 5rem 0;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* 案例详情卡片 */
.case-detail-card {
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 40px;
    background-color: #fff !important;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out forwards;
    background: linear-gradient(rgba(255, 255, 255, 1), rgba(255, 255, 255, 1));
}

/* 案例信息区域 */
.case-info-section {
    /*padding: 40px;*/
}

.case-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.3;
}

.case-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 14px;
}

.meta-item i {
    color: #006abf;
    font-size: 16px;
}

.case-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #5a6c7d;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #006abf;
}

.related-cases-grid {

    margin-top: 40px;
}

.related-case-item {
    padding: 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.related-case-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-case-item:hover .related-case-image {
    transform: scale(1.05);
}

.related-case-content {
    padding: 20px;
}

.related-case-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.4;
    height: 48px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.related-case-description {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.related-case-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.related-case-link:hover {
    color: #764ba2;
    text-decoration: none;
    transform: translateX(5px);
}


/* 动画 */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 案例图片 */
.case-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
    height: 200px;
    background: #f8f9fa;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.case-image:hover img {
    transform: scale(1.05);
}

.case-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 106, 191, 0.1) 0%, rgba(0, 90, 160, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.case-item:hover .case-image::after {
    opacity: 1;
}

/* 相关案例区域 */
.related-cases-section {
    margin-top: 60px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* 响应式设计 */
@media (max-width: 768px) {


    .case-info-section {
        padding: 0;
    }

    .case-title {
        font-size: 1.6rem;
    }

    .case-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .case-actions {
        flex-direction: column;
    }

    .related-cases-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .case-main-image {
        height: 250px;
    }
}
