/* 案例详情模态框样式 */
.case-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1100;
    overflow-y: auto;
    padding: 0 15px;
}

.modal-content {
    position: relative;
    background-color: var(--white);
    margin: 30px auto;
    width: 100%;
    max-width: 1000px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.4s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.close-modal:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: rotate(90deg);
}

/* 案例详情内容 */
.case-detail {
    display: flex;
    flex-direction: column;
}

.case-detail-header {
    position: relative;
    text-align: center;
    padding: 60px 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.case-detail-category {
    display: inline-block;
    padding: 5px 15px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.case-detail-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    max-width: 800px;
    margin: 0 auto;
}

.case-detail-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.case-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.case-detail-content {
    padding: 50px;
}

/* 详情部分 */
.detail-section {
    margin-bottom: 40px;
}

.detail-section h3 {
    position: relative;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    display: inline-block;
}

.detail-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.detail-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* 解决方案列表样式 */
.solution-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.solution-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.solution-number {
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.solution-text {
    flex: 1;
}

/* 效果数据 */
.detail-results {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.detail-result-item {
    flex: 1;
    min-width: 180px;
    text-align: center;
    background-color: var(--secondary-color);
    padding: 25px 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.detail-result-item:hover {
    transform: translateY(-5px);
}

.detail-result-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.detail-result-label {
    display: block;
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
}

/* 客户证言 */
.detail-testimonial {
    background-color: var(--secondary-color);
    padding: 40px;
    border-radius: 10px;
    position: relative;
    margin-top: 30px;
}

.detail-testimonial blockquote {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-color);
    font-style: italic;
    margin: 0 0 20px;
    position: relative;
    padding-left: 30px;
}

.detail-testimonial blockquote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -15px;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.3;
    line-height: 1;
}

.detail-author {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.detail-author strong {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 5px;
}

.detail-author span {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* 响应式调整 */
@media (max-width: 992px) {
    .case-detail-header {
        padding: 40px 20px;
    }
    
    .case-detail-header h2 {
        font-size: 2rem;
    }
    
    .case-detail-image {
        height: 300px;
    }
    
    .case-detail-content {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .detail-results {
        gap: 20px;
    }
    
    .detail-result-item {
        min-width: calc(50% - 20px);
    }
    
    .detail-testimonial {
        padding: 30px;
    }
}

@media (max-width: 576px) {
    .case-detail-header {
        padding: 30px 15px;
    }
    
    .case-detail-header h2 {
        font-size: 1.6rem;
    }
    
    .case-detail-image {
        height: 200px;
    }
    
    .case-detail-content {
        padding: 20px;
    }
    
    .detail-section h3 {
        font-size: 1.4rem;
    }
    
    .detail-results {
        flex-direction: column;
    }
    
    .detail-result-item {
        width: 100%;
    }
    
    .detail-testimonial {
        padding: 20px;
    }
} 