/**
 * Global Project Cases 模块样式
 */

.project-cases-module {
    padding: 80px 0;
    background-color: #fff;
}

.project-cases-header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.project-cases-title {
    font-size: 36px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.project-cases-description {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.project-cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.project-case-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4 / 3;
}

.project-case-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
}

.project-case-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

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

.project-case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.7) 100%);
    transition: background 0.3s ease;
    z-index: 1;
}

.project-case-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px 30px;
    z-index: 2;
}

.project-case-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 悬停效果 */
.project-case-item:hover .project-case-image img {
    transform: scale(1.1);
}

.project-case-item:hover .project-case-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.8) 100%);
}

.project-case-item:hover .project-case-title {
    transform: translateY(-3px);
    transition: transform 0.3s ease;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .project-cases-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 1024px) {
    .project-cases-module {
        padding: 60px 0;
    }
    
    .project-cases-title {
        font-size: 32px;
    }
    
    .project-cases-description {
        font-size: 15px;
    }
    
    .project-cases-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .project-cases-module {
        padding: 40px 0;
    }
    
    .project-cases-header {
        margin-bottom: 40px;
    }
    
    .project-cases-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .project-cases-description {
        font-size: 14px;
    }
    
    .project-cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .project-case-label {
        padding: 20px 25px;
    }
    
    .project-case-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .project-cases-module {
        padding: 30px 0;
    }
    
    .project-cases-title {
        font-size: 24px;
    }
    
    .project-cases-description {
        font-size: 13px;
    }
    
    .project-cases-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-case-label {
        padding: 15px 20px;
    }
    
    .project-case-title {
        font-size: 15px;
    }
}
