/* 案例网格布局 */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.case-box {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.case-img {
    height: 400px;
    overflow: hidden;
}

.case-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-box:hover .case-img img {
    transform: scale(1.05);
}

.case-info {
    padding: 20px;
}

.case-info h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #333;
}

.case-info h3 a {
    color: inherit;
    text-decoration: none;
}

.case-info h3 a:hover {
    color: #3498db;
}

.case-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* 加载更多样式 */
.loading-more {
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
    display: none;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #3498db;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
    vertical-align: middle;
}

.no-more-data {
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
    color: #999;
    font-size: 14px;
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .cases-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .case-img {
        height: 180px;
    }
}