/* 整体背景 */
.case-wrapper {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

/* 案例分类筛选 */
.case-categories {
    padding: 60px 0 40px;
}

.category-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.9);
    color: #2c3e50;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: var(--primary-color);
    color: #fff;
}

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

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.case-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.case-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

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

.case-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.5));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.case-card:hover .case-image::after {
    opacity: 1;
}

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

.case-content {
    padding: 25px;
    position: relative;
    z-index: 1;
}

.case-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.case-tag {
    padding: 6px 12px;
    background: rgba(52, 152, 219, 0.1);
    color: var(--primary-color);
    border-radius: 4px;
    font-size: 13px;
}

.case-date {
    color: #666;
    font-size: 13px;
}

.case-content h3 {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.case-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.case-highlights {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 20px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease;
}

.highlight-item:hover {
    transform: translateX(5px);
}

.highlight-icon {
    color: var(--primary-color);
    font-size: 16px;
}

.highlight-text {
    font-size: 13px;
    color: #666;
}

/* 案例统计部分 */
.case-stats {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a5f9c 100%);
    position: relative;
    overflow: hidden;
}

.case-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 20%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
    z-index: 1;
}

.stat-item {
    position: relative;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.stat-icon-inner {
    position: relative;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon {
    font-size: 28px;
    color: #fff;
    position: relative;
}

.stat-number-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 44px;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.stat-symbol {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.9);
    margin-left: 5px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 500;
    position: relative;
    padding-bottom: 15px;
}

.stat-label::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.stat-trend {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: #4cd137;
    display: flex;
    align-items: center;
    gap: 5px;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.3;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.5;
    }
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-item:hover .stat-icon-bg {
    animation-duration: 1s;
}

/* 响应式调整 */
@media screen and (max-width: 1024px) {
    .cases-grid,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media screen and (max-width: 768px) {
    .category-filters {
        flex-wrap: wrap;
    }
    
    .filter-btn {
        flex: 1;
        text-align: center;
        min-width: 120px;
    }
}

@media screen and (max-width: 576px) {
    .cases-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* 图标相关样式 */
.stat-icon {
    width: 32px;
    height: 32px;
    color: #fff;
}

.trend-icon {
    width: 16px;
    height: 16px;
    color: #4cd137;
}

/* 确保图标垂直居中 */
.stat-icon-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 趋势指标样式优化 */
.stat-trend {
    display: flex;
    align-items: center;
    gap: 4px;
} 