/* ========================================
   成功案例页面 - 增强版样式
   设计理念：网格卡片布局、高级交互、深蓝+金色配色
   ======================================== */

/* Banner图片区域 */
.business-banner {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bg-secondary);
    margin: 0;
    padding: 0;
    display: none;
}

.business-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 页面头部 */
.page-header {
    padding: 100px 24px 40px;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.page-header-container {
    max-width: var(--container-max);
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    color: #d4a853;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    border: 1px solid rgba(212, 168, 83, 0.3);
}

.page-header-title {
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.page-header-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    max-width: none;
    margin: 0 auto;
    line-height: 1.7;
    white-space: normal;
}

/* 筛选区域 */
.cases-filter-section {
    background: #ffffff;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 40px;
    border: 1px solid #e5e7eb;
}

.filter-group {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    font-size: 14px;
    font-weight: 600;
    color: #1e3a8a;
    white-space: nowrap;
    padding-top: 10px;
    min-width: 70px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
}

.filter-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    background: #f3f4f6;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #e5e7eb;
    color: #1e3a8a;
}

.filter-btn.active {
    background: #1e3a8a;
    color: #ffffff;
    border-color: #1e3a8a;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
}

/* 案例网格 - 响应式4/2/1列 */
.cases-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

/* 案例卡片 - 图片在上方的垂直布局 */
.case-card-enhanced {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.case-card-enhanced:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: #d4a853;
}

/* 卡片图片区域 - 固定比例 3:4 */
.case-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
}

/* 图片加载失败时的占位样式 */
.case-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform 0.5s ease;
    /* 确保图片填满容器 */
    max-width: 100%;
    max-height: 100%;
}

/* 图片加载错误时的处理 */
.case-card-image img:error {
    display: none;
}

/* 详情页更多案例区域的图片样式 */
.case-more-grid .case-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.case-more-grid .case-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform 0.5s ease;
}



.case-card-enhanced:hover .case-card-image img {
    transform: scale(1.05);
}

/* 业务类型对应的渐变色背景 */
.case-card-image.bridge {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.case-card-image.display {
    background: linear-gradient(135deg, #b45309 0%, #f59e0b 100%);
}

.case-card-image.proof {
    background: linear-gradient(135deg, #047857 0%, #10b981 100%);
}

.case-card-image.deposit {
    background: linear-gradient(135deg, #5b21b6 0%, #8b5cf6 100%);
}

.case-card-image.placement {
    background: linear-gradient(135deg, #b91c1c 0%, #f87171 100%);
}

.case-card-image.receivable {
    background: linear-gradient(135deg, #0e7490 0%, #22d3ee 100%);
}

/* 图片区域图标 */
.case-card-image-icon {
    font-size: 56px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease;
}

.case-card-enhanced:hover .case-card-image-icon {
    transform: scale(1.15);
}



/* 业务类型标签 - 已隐藏（老板要求不显示） */
.case-type-tag {
    display: none;
}/* 业务类型标签颜色样式（备用）
.case-type-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.case-type-tag.bridge { background: #1e3a8a; color: #fff; }
.case-type-tag.display { background: #d4a853; color: #fff; }
.case-type-tag.proof { background: #059669; color: #fff; }
.case-type-tag.deposit { background: #7c3aed; color: #fff; }
.case-type-tag.placement { background: #dc2626; color: #fff; }
.case-type-tag.receivable { background: #0891b2; color: #fff; }

/* 地区标签 */
.case-location-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.95);
    color: #1e3a8a;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
    backdrop-filter: blur(4px);
}

/* 卡片内容 - 图片下方区域 */
.case-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.case-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-card-summary {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    min-height: 60px;
}

/* 卡片底部信息 */
.case-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.case-card-amount {
    display: flex;
    flex-direction: column;
}

.case-card-amount-label {
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.case-card-amount-value {
    font-size: 20px;
    font-weight: 800;
    color: #d4a853;
}

/* 查看详情按钮 */
.btn-view-detail {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.25);
}

.btn-view-detail:hover {
    background: linear-gradient(135deg, #d4a853 0%, #f59e0b 100%);
    box-shadow: 0 4px 12px rgba(212, 168, 83, 0.35);
    transform: translateY(-2px);
}

/* 加载更多按钮 */
.cases-load-more {
    text-align: center;
    margin-bottom: 64px;
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: #ffffff;
    color: #1e3a8a;
    font-size: 15px;
    font-weight: 600;
    border: 2px solid #1e3a8a;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-load-more:hover {
    background: #1e3a8a;
    color: #ffffff;
}

.btn-load-more i {
    transition: transform 0.3s ease;
}

.btn-load-more:hover i {
    transform: translateY(3px);
}

/* 空状态 */
.cases-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 24px;
    color: #6b7280;
}

.cases-empty i {
    font-size: 64px;
    color: #d1d5db;
    margin-bottom: 24px;
}

.cases-empty-text {
    font-size: 18px;
    font-weight: 500;
}

/* 案例统计区域 */
.cases-stats-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 48px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.cases-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.cases-stat-box {
    text-align: center;
    padding: 24px;
}

.cases-stat-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #ffffff;
    font-size: 28px;
}

.cases-stat-number {
    font-size: 36px;
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 8px;
    line-height: 1;
}

.cases-stat-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

/* 页面内容区域 */
.page-content {
    padding: 60px 0 100px;
    background: #f8fafc;
}

/* CTA区域调整 */
.cta-section-cases {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    padding: 80px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section-cases::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(212, 168, 83, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
}

.cta-section-cases .cta-container {
    position: relative;
    z-index: 1;
}

/* 详情页更多案例区域的卡片样式 */
.case-more-grid .case-card-enhanced {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.case-more-grid .case-card-enhanced:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: #d4a853;
}



.case-more-grid .case-card-enhanced:hover .case-card-image img {
    transform: scale(1.02);
}

.case-more-grid .case-card-content {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.case-more-grid .case-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-more-grid .case-card-summary {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.case-more-grid .case-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
}

.case-more-grid .case-card-amount-label {
    font-size: 10px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.case-more-grid .case-card-amount-value {
    font-size: 14px;
    font-weight: 700;
    color: #d4a853;
}

/* 更多案例区域 - 查看详情按钮样式 */
.case-more-grid .btn-view-detail {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.case-more-grid .case-card-enhanced:hover .btn-view-detail {
    background: linear-gradient(135deg, #d4a853 0%, #f59e0b 100%);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .cases-grid-enhanced {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .cases-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .page-header-title {
        font-size: 40px;
    }
}

@media (max-width: 1200px) {
    .cases-grid-enhanced {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 120px 20px 60px;
    }
    
    .page-header-title {
        font-size: 32px;
    }
    
    .page-header-subtitle {
        font-size: 16px;
    }
    
    .cases-filter-section {
        padding: 24px;
    }
    
    .filter-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .filter-label {
        padding-top: 0;
    }
    
    .filter-buttons {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
    
    .filter-btn {
        padding: 6px 2px;
        font-size: 11px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .cases-grid-enhanced {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    

    
    .cases-stats-section {
        padding: 32px 24px;
    }
    
    .cases-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .cases-stat-icon {
        width: 52px;
        height: 52px;
        font-size: 22px;
    }
    
    .cases-stat-number {
        font-size: 28px;
    }
    
    .page-content {
        padding: 40px 0 60px;
    }
}

@media (max-width: 480px) {
    .page-header-title {
        font-size: 28px;
    }
    
    .case-card-content {
        padding: 20px;
    }
    
    .case-card-title {
        font-size: 16px;
    }
    
    .case-card-amount-value {
        font-size: 18px;
    }
    
    .cases-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .cases-stat-box {
        padding: 16px;
    }
}
