/* 客户案例页面样式 */

/* 页面标题区域 */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 100px 0 60px;
    text-align: center;
    margin-top: 70px;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* 案例筛选器 */
.case-filter {
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
}

.filter-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 8px 16px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.95rem;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* 案例展示 */
.case-showcase {
    padding: 60px 0;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    min-height: 200px; /* 确保网格有最小高度 */
    margin-bottom: 30px; /* 添加底部间距 */
}

.case-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    /* 默认显示卡片 */
    opacity: 1;
    transform: translateY(0);
    display: block; /* 确保卡片显示 */
}

.case-card.animate {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.case-image {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 220px; /* 固定高度 */
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

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

.case-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 5px 12px;
    border-radius: 4px;
}

.case-category {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
}

.case-content {
    padding: 25px;
}

.case-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-color);
}

.case-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.case-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

.case-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.case-link i {
    margin-left: 5px;
    transition: var(--transition);
}

.case-link:hover {
    color: var(--primary-dark);
}

.case-link:hover i {
    transform: translateX(5px);
}

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

.modal-content {
    position: relative;
    background-color: var(--white);
    margin: 50px auto;
    padding: 30px;
    width: 90%;
    max-width: 900px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.8rem;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--text-color);
}

/* 合作流程 */
.cooperation-process {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 50px auto 0;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: var(--primary-color);
    opacity: 0.3;
}

.process-step {
    display: flex;
    gap: 30px;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.process-step.animate {
    opacity: 1;
    transform: translateY(0);
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
    z-index: 1;
}

.step-content {
    background-color: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    flex: 1;
}

.step-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.step-content p {
    color: var(--text-light);
    margin: 0;
}

/* 客户证言 */
.case-testimonials {
    padding: 80px 0;
}

.testimonial-slider {
    position: relative;
    max-width: 900px;
    margin: 50px auto 0;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-slide {
    min-width: 100%;
    padding: 0 15px;
}

.testimonial-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.8;
    position: relative;
    padding-left: 25px;
}

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

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.author-name {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 3px;
}

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

.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    gap: 20px;
}

.testimonial-prev,
.testimonial-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.testimonial-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* 合作咨询 */
.case-cta {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.cta-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.cta-content {
    flex: 1;
    padding: 50px;
}

.cta-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.cta-image {
    flex: 1;
    height: 100%;
    min-height: 350px;
}

.cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 响应式样式 */
@media (max-width: 992px) {
    .case-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .cta-wrapper {
        flex-direction: column;
    }
    
    .cta-content {
        padding: 40px;
    }
    
    .cta-image {
        width: 100%;
        order: -1;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .filter-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .process-steps::before {
        left: 20px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .step-content {
        padding: 20px;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .case-grid {
        grid-template-columns: 1fr;
    }
    
    .case-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .testimonial-slide {
        padding: 0;
    }
    
    .testimonial-card {
        padding: 20px;
    }
    
    .cta-content {
        padding: 30px 20px;
    }
}

/* 占位图样式 */
.placeholder-img {
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-lighter);
    font-size: 1.2rem;
}

/* 为案例卡片中的图片添加特殊样式 */
.case-image .placeholder-img {
    min-height: auto;
    background: none;
}

/* 为客户头像添加特殊样式 */
.author-avatar .placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: auto;
    background: none;
}

/* 为CTA区域图片添加特殊样式 */
.cta-image .placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: auto;
    background: none;
}

/* 为模态框中的图片添加特殊样式 */
.case-detail-image .placeholder-img {
    width: 100%;
    height: auto;
    min-height: auto;
    background: none;
    display: block;
} 