/* 案例页面样式 */

/* 英雄区域 */
.cases-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.cases-hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: bold;
}

.cases-hero p {
    font-size: 20px;
    margin-bottom: 50px;
    opacity: 0.9;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ecf0f1;
}

.stat-label {
    font-size: 16px;
    opacity: 0.8;
}

/* 筛选器 */
.cases-filter {
    background: white;
    padding: 40px 0;
    border-bottom: 1px solid #eee;
}

.filter-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    justify-content: space-between;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-group label {
    font-weight: bold;
    color: #2c3e50;
    white-space: nowrap;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid #3498db;
    background: white;
    color: #3498db;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.active {
    background: #3498db;
    color: white;
}

.region-filter {
    padding: 8px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    background: white;
    color: #333;
    cursor: pointer;
}

.search-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-input {
    padding: 8px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    width: 200px;
}

.search-btn {
    padding: 8px 12px;
    border: none;
    background: #3498db;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: #2980b9;
}

/* 案例展示 */
.cases-showcase {
    padding: 60px 0;
    background: #f8f9fa;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.case-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.case-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-card:hover .case-image img {
    transform: scale(1.05);
}

.case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.case-card:hover .case-overlay {
    opacity: 1;
}

.case-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.tag.industry {
    background: #3498db;
}

.tag.region {
    background: #2ecc71;
}

.tag.featured {
    background: #e74c3c;
}

.case-actions {
    display: flex;
    justify-content: center;
}

.case-content {
    padding: 25px;
}

.case-content h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
}

.case-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #7f8c8d;
}

.info-icon {
    font-size: 16px;
}

.case-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.case-results {
    display: flex;
    gap: 20px;
    justify-content: space-around;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.result-item {
    text-align: center;
}

.result-value {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 5px;
}

.result-label {
    font-size: 12px;
    color: #7f8c8d;
}

/* 加载更多 */
.load-more {
    text-align: center;
    margin-top: 40px;
}

/* 成功数据 */
.success-metrics {
    padding: 80px 0;
    background: white;
}

.success-metrics h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #2c3e50;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.metric-item {
    text-align: center;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.metric-item:hover {
    transform: translateY(-5px);
}

.metric-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.metric-number {
    font-size: 36px;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 10px;
}

.metric-label {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: bold;
}

.metric-description {
    font-size: 14px;
    color: #7f8c8d;
}

/* 客户见证 */
.customer-testimonials {
    padding: 80px 0;
    background: #ecf0f1;
}

.customer-testimonials h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #2c3e50;
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-item {
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.testimonial-content {
    text-align: center;
}

.testimonial-text {
    margin-bottom: 30px;
}

.testimonial-text p {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
    font-style: italic;
    position: relative;
}

.testimonial-text p::before {
    content: '"';
    font-size: 60px;
    color: #3498db;
    position: absolute;
    top: -20px;
    left: -30px;
    font-family: serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    text-align: left;
}

.author-name {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.author-title {
    font-size: 14px;
    color: #7f8c8d;
}

/* 联系咨询 */
.contact-consultation {
    padding: 80px 0;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.consultation-wrapper {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
}

.consultation-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.consultation-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.consultation-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-icon {
    font-size: 20px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-icon {
    font-size: 24px;
    width: 40px;
    text-align: center;
}

.contact-info strong {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
}

.contact-info span {
    font-size: 14px;
    opacity: 0.8;
}

.consultation-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    color: #333;
}

.consultation-form h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #2c3e50;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .cases-hero h1 {
        font-size: 36px;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .filter-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .case-info {
        grid-template-columns: 1fr;
    }
    
    .case-results {
        flex-direction: column;
        gap: 15px;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .consultation-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .consultation-features {
        grid-template-columns: 1fr;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    .author-info {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .cases-hero {
        padding: 100px 0 60px;
    }
    
    .cases-hero h1 {
        font-size: 28px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .search-input {
        width: 100%;
    }
    
    .case-card {
        margin: 0 10px;
    }
    
    .testimonial-item {
        padding: 20px;
    }
    
    .consultation-form {
        padding: 20px;
    }
}