/* 工程案例页面样式 */

/* 页面横幅 */
.projects-banner {
    height: 625px;
    background: linear-gradient(135deg, #4A90E2 0%, #9B59B6 100%);
    display: flex;
    align-items: flex-end;
    position: relative;
    margin-top: 80px;
    background-image: url('../../images/gcal.png'); 
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.projects-banner .breadcrumb {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
}

/* 主内容区 */
.projects-page {
    padding: 60px 0 80px;
}

/* 工程网格 */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.voltage-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(74, 144, 226, 0.9);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.project-info {
    padding: 30px;
}

.project-date {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
}

.project-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.project-desc {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.pagination-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
    align-items: center;
}

.pagination-item {
    list-style: none;
}

.pagination-link {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    color: #666;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #f5f8ff;
}

.pagination-link.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .projects-banner {
        height: 200px;
    }
    
    .projects-page {
        padding: 40px 0 60px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-image {
        height: 200px;
    }
    
    .project-info {
        padding: 20px;
    }
    
    .project-title {
        font-size: 16px;
    }
    
    .pagination {
        margin-top: 40px;
    }
    
    .pagination-list {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .pagination-link {
        padding: 6px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .projects-banner {
        height: 150px;
    }
    
    .project-image {
        height: 180px;
    }
    
    .voltage-badge {
        font-size: 12px;
        padding: 4px 12px;
    }
    
    .pagination {
        margin-top: 30px;
    }
    
    .pagination-link {
        padding: 5px 10px;
        font-size: 12px;
    }
}

