/* ========== 客户案例页面 ========== */

:root {
    --primary: #2563eb;
    --primary-light: #60a5fa;
    --primary-lighter: #eff6ff;
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --dark: #0f172a;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
}

/* ========== ① Hero Banner ========== */
.cases-hero {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

.cases-hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
}

.cases-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.cases-hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(240,247,255,0.5) 100%);
    z-index: 1;
}

.cases-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.cases-hero h1 {
    font-size: 36px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.cases-hero .hero-subtitle {
    font-size: 15px;
    font-weight: 400;
    color: #475569;
    letter-spacing: 1px;
}

/* ========== ② 案例列表 ========== */
.cases-list-section {
    padding: 80px 0 60px;
}

.cases-list {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.case-row {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 48px;
    align-items: center;
    background: linear-gradient(145deg, var(--gray-50), #fff);
    border-radius: 20px;
    padding: 32px;
    border: 1px solid var(--gray-200);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-row:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(37,99,235,0.06);
    border-color: var(--primary-lighter);
}

.case-row:nth-child(even) {
    grid-template-columns: 1fr 420px;
}

.case-row:nth-child(even) .case-img-wrap {
    order: 2;
}

.case-row:nth-child(even) .case-info {
    order: 1;
}

.case-img-wrap {
    position: relative;
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-lighter), #eff6ff);
}

.case-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.case-row:hover .case-img-wrap img {
    transform: scale(1.05);
}

.case-img-tag {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(15,23,42,0.75);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
}

.case-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.case-info > p {
    font-size: 15px;
    color: var(--gray-500);
    line-height: 1.8;
    margin-bottom: 24px;
}

/* 案例数据 */
.case-data {
    display: flex;
    gap: 32px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-200);
}

.case-data-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.case-data-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.case-data-label {
    font-size: 13px;
    color: var(--gray-400);
}

/* 案例标签 */
.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.case-tag-item {
    font-size: 12px;
    font-weight: 500;
    color: var(--primary);
    background: var(--primary-lighter);
    padding: 6px 14px;
    border-radius: 20px;
}

/* ========== 分页 ========== */
.pagination-wrap {
    display: flex;
    justify-content: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--gray-200);
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-btn,
.page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.page-btn {
    padding: 0 20px;
    background: #fff;
    color: var(--gray-600);
    border: 1.5px solid var(--gray-200);
}

.page-btn:hover:not(.disabled) {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

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

.page-num {
    background: #fff;
    color: var(--gray-600);
    border: 1.5px solid var(--gray-200);
}

.page-num:hover {
    background: var(--primary-lighter);
    color: var(--primary);
    border-color: var(--primary-lighter);
}

.page-num.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(37,99,235,0.25);
}

.page-ellipsis {
    color: var(--gray-400);
    font-size: 14px;
    padding: 0 8px;
}

/* ========== 滚动动画 ========== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .case-row,
    .case-row:nth-child(even) {
        grid-template-columns: 1fr;
    }
    .case-row:nth-child(even) .case-img-wrap,
    .case-row:nth-child(even) .case-info {
        order: unset;
    }
    .case-img-wrap {
        height: 220px;
    }
    .case-data {
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .cases-hero { min-height: 300px; }
    .cases-hero h1 { font-size: 28px; }
    .case-row { padding: 24px; }
    .case-info h3 { font-size: 20px; }
    .case-data-num { font-size: 22px; }
    .case-data { gap: 16px; }
    .pagination { flex-wrap: wrap; justify-content: center; }
}
