/* 成功案例页面样式 */

/* 案例概览部分 */
.cases-overview {
    background: #f8fafc;
    padding: 4rem 0;
}

.section-title {
    margin-top: 5rem;
}

/* 筛选标签 */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e5e7eb;
    background: #fff;
    color: #6b7280;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-tab:hover {
    border-color: #2563eb;
    color: #2563eb;
    transform: translateY(-2px);
}

.filter-tab.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

/* 案例网格 */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* 案例卡片 */
.case-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.case-image {
    position: relative;
    height: 200px;
    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.1);
}

.case-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(37, 99, 235, 0.9);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.case-content {
    padding: 1.5rem;
}

.case-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.case-description {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.case-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #9ca3af;
}

.case-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.case-read-more {
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.case-read-more:hover {
    color: #1d4ed8;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    color: #aaa;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #000;
}

.modal-body {
    padding: 2rem;
}

/* 案例详情 */
.case-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.case-detail .case-image {
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
}

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

.case-info h2 {
    font-size: 1.75rem;
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.case-info .case-category {
    position: static;
    display: inline-block;
    margin-bottom: 1rem;
}

.case-info p {
    color: #6b7280;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.case-features h3 {
    font-size: 1.25rem;
    color: #1e40af;
    margin-bottom: 1rem;
}

.case-features ul {
    list-style: none;
    padding: 0;
}

.case-features li {
    padding: 0.5rem 0;
    color: #6b7280;
    position: relative;
    padding-left: 1.5rem;
}

.case-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* 客户价值样式 */
.case-value h3 {
    font-size: 1.25rem;
    color: #1e40af;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.case-value p {
    color: #6b7280;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* 加载动画 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

.empty-state i {
    font-size: 3rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #9ca3af;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .filter-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-tab {
        width: 200px;
        text-align: center;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .case-detail {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .case-detail .case-image {
        height: 200px;
    }
}

/* 动画效果 */
.case-card {
    animation: fadeInUp 0.6s ease-out;
}

.case-card:nth-child(1) { animation-delay: 0.1s; }
.case-card:nth-child(2) { animation-delay: 0.2s; }
.case-card:nth-child(3) { animation-delay: 0.3s; }
.case-card:nth-child(4) { animation-delay: 0.4s; }
.case-card:nth-child(5) { animation-delay: 0.5s; }
.case-card:nth-child(6) { animation-delay: 0.6s; }

/* 滚动条样式 */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
} 