/* ============================================
   ZPro Cases Stylesheet
   案例页面样式表 - 统一管理案例相关样式
   ============================================ */

/* ============================================
   1. BASE & VARIABLES
   ============================================ 
:root {
    --product-primary: #0066CC;
    --product-primary-light: #3399FF;
    --product-primary-dark: #004499;
    --product-accent: #FF6B35;
    --product-bg: #F5F7FA;
    --product-bg-light: #f8fafc;
    --product-border: #E8ECF2;
    --product-text: #1A1A2E;
    --product-text-secondary: #4A4A5A;
    --product-text-muted: #8A8A9A;
}



/* ============================================
   3. CASES HERO
   ============================================ */
.cases-hero {
    background: linear-gradient(135deg, #0A1628 0%, #0066CC 100%);
    padding: 120px 0 80px;
    color: #fff;
    text-align: center;
}

.cases-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cases-hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   4. CASES STATS
   ============================================ */
.cases-stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0A1628 0%, #0066CC 100%);
    color: #fff;
}

.cases-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.cases-stat-item {
    padding: 24px;
}

.cases-stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff 0%, #66B2FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cases-stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ============================================
   5. CASES FILTER
   ============================================ */
.cases-filter {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: #fff;
    border: 1px solid var(--product-border);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--product-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

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

/* ============================================
   6. CASES GRID
   ============================================ */
.product-list-section {
    padding: 64px 0;
    background: var(--product-bg);
}

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

.case-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px rgba(0,0,0,0.1);
}

.case-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.case-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--product-bg);
}

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

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

.case-location {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 6px 12px;
    background: rgba(0, 102, 204, 0.9);
    color: #fff;
    font-size: 0.75rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.case-content {
    padding: 20px;
}

.case-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--product-text);
    margin-bottom: 10px;
    line-height: 1.4;
}

.case-desc {
    font-size: 0.875rem;
    color: var(--product-text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--product-border);
}

.case-products {
    font-size: 0.75rem;
    color: var(--product-primary);
    font-weight: 600;
}

.case-arrow {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--product-bg);
    color: var(--product-text-muted);
    border-radius: 50%;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.case-card:hover .case-arrow {
    background: var(--product-primary);
    color: #fff;
}

/* ============================================
   7. PAGINATION
   ============================================
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 48px;
    list-style: none;
    padding: 0;
    margin-bottom: 0;
}

.pagination li {
    display: inline-flex;
}

.pagination li a,
.pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--product-text-secondary);
    background: #fff;
    border: 1px solid var(--product-border);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.pagination li a:hover:not(.disabled):not(.active) {
    border-color: var(--product-primary);
    color: var(--product-primary);
    background: rgba(0, 102, 204, 0.04);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15);
}

.pagination li.active span,
.pagination li a.active {
    background: linear-gradient(135deg, var(--product-primary) 0%, var(--product-primary-dark) 100%);
    border-color: var(--product-primary);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(0, 102, 204, 0.35);
}

.pagination li.disabled a,
.pagination li.disabled span {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    background: var(--product-bg);
    border-color: var(--product-border);
    color: var(--product-text-muted);
}

.pagination li:first-child a,
.pagination li:last-child a {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.pagination li:first-child a:hover,
.pagination li:last-child a:hover {
    background: var(--product-primary);
    border-color: var(--product-primary);
    color: #fff;
}
 */

/* ============================================
   8. RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1023px) {
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cases-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .page-header {
        height: 300px;
        padding-top: 70px;
    }
    
    .page-title {
        font-size: 2rem;
    }
}

@media (max-width: 639px) {
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .cases-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .cases-stat-number {
        font-size: 2rem;
    }
    
    .cases-stat-label {
        font-size: 0.875rem;
    }
    
    .cases-hero h1 {
        font-size: 2rem;
    }
    
    .page-header {
        height: 280px;
        padding-top: 60px;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .pagination li a,
    .pagination li span {
        min-width: 38px;
        height: 38px;
        padding: 0 10px;
        font-size: 0.875rem;
        border-radius: 8px;
    }
}