/* ===========================================
   门店通 - 客户案例页样式
   设计理念：真实、可信、有说服力
   =========================================== */

/* ---------- 1. 页面Header ---------- */
.cases-header {
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cases-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(79, 70, 229, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.header-content {
    max-width: 48rem;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.header-content h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #111827 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-content .subtitle {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #6b7280;
}

/* ---------- 2. 客户数据概览 ---------- */
.clients-overview {
    padding: 3rem 0;
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.overview-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.overview-stat {
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.overview-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #7c3aed;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #7c3aed;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

/* ---------- 3. 案例筛选 ---------- */
.cases-filter {
    padding: 3rem 0;
    background: white;
    position: sticky;
    top: 5rem;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.filter-container {
    max-width: 48rem;
    margin: 0 auto;
}

.filter-container h3 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: center;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.filter-tab {
    padding: 0.75rem 1.5rem;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-tab:hover {
    background: #e5e7eb;
    color: #374151;
}

.filter-tab.active {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: white;
    border-color: #7c3aed;
    box-shadow: 0 2px 4px rgba(124, 58, 237, 0.2);
}

.filter-tab i {
    font-size: 0.875rem;
}

.filter-options {
    animation: fadeIn 0.3s ease;
    margin-top: 1rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.filter-tag {
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tag:hover {
    background: #e5e7eb;
    color: #374151;
}

.filter-tag.active {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: white;
    border-color: #7c3aed;
}

/* ---------- 4. 精选客户案例 ---------- */
.featured-cases {
    padding: 5rem 0;
    background: #f9fafb;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.featured-case {
    background: white;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
    position: relative;
    transition: all 0.3s ease;
}

.featured-case:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #7c3aed;
}

.case-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    z-index: 2;
}

.case-badge.featured {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.case-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.client-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.client-meta {
    display: flex;
    gap: 0.5rem;
}

.industry-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
}

.scale-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
}

.featured-case h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #111827;
    line-height: 1.3;
}

.case-excerpt {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.case-stats {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.case-stat {
    text-align: center;
    flex: 1;
}

.case-stat .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #7c3aed;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.case-stat .stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.4;
}

.solution-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.solution-tag {
    padding: 0.375rem 0.75rem;
    background: #f3f4f6;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
}

.solution-tag.ai {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
}

.solution-tag.scheduling {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.solution-tag.work-order {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.solution-tag.training {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.case-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #7c3aed;
    font-weight: 600;
    font-size: 0.875rem;
    margin-top: 1rem;
    transition: all 0.2s ease;
}

.case-link:hover {
    gap: 0.75rem;
    color: #6d28d9;
}

.case-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #f9fafb;
    border-left: 1px solid #e5e7eb;
}

.visual-placeholder {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.visual-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- 5. 客户案例列表 ---------- */
.cases-list {
    padding: 5rem 0;
    background: white;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.case-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #7c3aed;
}

.case-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.client-logo-small {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    padding: 0.25rem 0.75rem;
    background: #f3f4f6;
    border-radius: 0.375rem;
    border: 1px solid #e5e7eb;
}

.case-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-end;
}

.case-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #111827;
    line-height: 1.3;
    flex: 1;
}

.case-excerpt {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    flex: 1;
}

.case-stats-small {
    display: flex;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.case-stats-small .stat {
    text-align: center;
    flex: 1;
}

.case-stats-small .number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #7c3aed;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.case-stats-small .label {
    font-size: 0.75rem;
    color: #9ca3af;
    line-height: 1.2;
}

.case-link-small {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: auto;
}

.case-link-small:hover {
    background: #e5e7eb;
    color: #111827;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 4rem;
}

.page-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    background: white;
    color: #4b5563;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover:not(.disabled) {
    border-color: #7c3aed;
    color: #7c3aed;
}

.page-btn.active {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: white;
    border-color: #7c3aed;
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-dots {
    color: #9ca3af;
    padding: 0 0.5rem;
}

/* ---------- 6. 客户证言 ---------- */
.testimonials-section {
    padding: 5rem 0;
    background: #f9fafb;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #7c3aed;
}

.quote {
    font-size: 4rem;
    color: #7c3aed;
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #4b5563;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: #111827;
}

.author-info p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

/* ---------- 7. 合作伙伴 ---------- */
.partners-section {
    padding: 5rem 0;
    background: white;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.partner-logo {
    padding: 2rem 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    text-align: center;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #7c3aed;
    color: #7c3aed;
}

/* ---------- 8. CTA区域 ---------- */
.cases-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: white;
    text-align: center;
}

.cases-cta h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cases-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    max-width: 40rem;
    margin: 0 auto 2rem;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.cta-features i {
    color: #10b981;
    margin-right: 0.5rem;
}

/* ---------- 9. 响应式设计 ---------- */
@media (max-width: 1024px) {
    .header-content h1 {
        font-size: 2.5rem;
    }
    
    .overview-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-case {
        grid-template-columns: 1fr;
    }
    
    .case-visual {
        border-left: none;
        border-top: 1px solid #e5e7eb;
        min-height: 300px;
    }
    
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cases-header {
        padding: 4rem 0 3rem;
    }
    
    .header-content h1 {
        font-size: 2rem;
    }
    
    .header-content .subtitle {
        font-size: 1.125rem;
    }
    
    .cases-filter {
        position: static;
    }
    
    .filter-tabs {
        gap: 0.5rem;
    }
    
    .filter-tab {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    .filter-tag {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .case-content {
        padding: 2rem;
    }
    
    .featured-case h3 {
        font-size: 1.5rem;
    }
    
    .case-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .cta-features {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .overview-stats {
        grid-template-columns: 1fr;
    }
    
    .case-stats-small {
        flex-direction: column;
        gap: 1rem;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}