/* ========================================= */
    /* 2. 页面主体布局 */
    /* ========================================= */
    .cases-section {
        padding: 60px 0 100px;
    }

    /* 网格布局：4列 */
    .cases-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 40px 30px; /* 上下间距40px，左右间距30px */
    }

    /* ========================================= */
    /* 3. 单个案例卡片 */
    /* ========================================= */
    .case-card {
        display: flex;
        flex-direction: column;
        cursor: pointer;
    }

    /* 图片区域 */
    .case-img {
        width: 100%;
        /* 保持 3:4 的竖版比例，适合展示证书/竖图 */
        aspect-ratio: 3 / 4; 
        overflow: hidden;
        margin-bottom: 20px;
        background-color: #fff; 
        border: 1px solid #eee; /* 给白色证书加一点边界感 */
        padding: 5px; /* 留一点点内边距 */
        box-sizing: border-box;
    }

    .case-img img {
        width: 100%;
        height: 100%;
        /* 核心：等比例缩放，保证图片完整显示不裁切 */
        object-fit: contain; 
        transition: transform 0.4s ease;
    }

    /* 鼠标悬停时图片微微放大 */
    .case-card:hover .case-img img {
        transform: scale(1.05);
    }

    /* 底部信息区域 (标题 + 箭头) */
    .case-info {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 0 5px;
        gap: 10px;
    }

    .case-title {
        font-size: 16px;
        color: #333;
        transition: color 0.3s;
        line-height: 1.5;
        /* 限制标题最多显示两行，防止过长撑破网格 */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* 箭头图标 */
    .case-arrow {
        font-size: 20px;
        color: #333;
        transition: all 0.3s ease;
        font-weight: 300;
        flex-shrink: 0;
        margin-top: 2px;
    }

    /* 鼠标悬停时的交互效果 (变红并往右移动) */
    .case-card:hover .case-title {
        color: #d81e06; /* 主题红 */
    }

    .case-card:hover .case-arrow {
        color: #d81e06;
        transform: translateX(5px); /* 箭头向右移动 */
    }

    /* ========================================= */
    /* 4. 分页容器样式 (新增) */
    /* ========================================= */
    .pagination-wrapper {
        margin-top: 60px; /* 距离上方列表的间距 */
        display: flex;
        justify-content: center; /* 居中对齐 */
        width: 100%;
    }

    /* 针对系统默认输出的分页 HTML 进行基础美化 */
    .pagination-wrapper ul {
        display: flex;
        gap: 8px;
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .pagination-wrapper li a, 
    .pagination-wrapper li span,
    .pagination-wrapper > a, 
    .pagination-wrapper > span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 36px;
        height: 36px;
        padding: 0 12px;
        border: 1px solid #eee;
        border-radius: 4px;
        font-size: 14px;
        color: #666;
        background: #fff;
        text-decoration: none;
        transition: 0.3s;
    }
    
    .pagination-wrapper li a:hover, 
    .pagination-wrapper > a:hover {
        border-color: #d81e06;
        color: #d81e06;
    }

    /* 当前页选中状态 */
    .pagination-wrapper li.active a, 
    .pagination-wrapper li.active span,
    .pagination-wrapper .active {
        background: #d81e06;
        border-color: #d81e06;
        color: #fff !important;
    }

    /* 应用案例/公司风采：横向图片，铺满卡片 */
    .cases-photo .case-img {
        aspect-ratio: 4 / 3;
        border: none;
        padding: 0;
        border-radius: 6px;
        background: #fff;
    }
    .cases-photo .case-img img {
        object-fit: cover;
    }
    .cases-photo .cases-grid {
        gap: 34px 30px;
    }

    /* ========================================= */
    /* 5. 响应式适配 */
    /* ========================================= */
    /* 平板尺寸 (一屏显示 3 个) */
    @media (max-width: 1200px) {
        .container {
            padding: 0 30px;
        }
        .cases-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    /* 小屏幕设备 (一屏显示 2 个) */
    @media (max-width: 768px) {
        .cases-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 30px 20px;
        }
        .case-title {
            font-size: 15px;
        }
    }

    /* 手机端 (一屏显示 1 个) */
    @media (max-width: 480px) {
        .cases-grid {
            grid-template-columns: 1fr;
        }
    }
