/* 案例中心样式 */

.portfolio-header {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--bg-white);
    overflow: hidden;
    margin-top: 70px;
}

.portfolio-header .header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.portfolio-header .header-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-header .header-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.85), rgba(63, 81, 181, 0.7));
}

.portfolio-header .header-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.portfolio-header h1 {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.portfolio-header p {
    font-size: 20px;
    color: var(--secondary-color);
}

.portfolio-filters {
    padding: 40px 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--bg-light);
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: center;
}

.industry-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.industry-filters span {
    color: var(--text-dark);
    font-weight: 500;
}

.filter-btn {
    padding: 10px 20px;
    background: var(--bg-light);
    border: none;
    border-radius: 25px;
    color: var(--text-dark);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: var(--accent-color);
    color: var(--bg-white);
}

.filter-btn.active {
    background: var(--primary-color);
    color: var(--bg-white);
}

.portfolio-grid-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.portfolio-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 35, 126, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.view-btn {
    padding: 12px 30px;
    background: var(--secondary-color);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background: #ffed4e;
    transform: scale(1.05);
}

.portfolio-info {
    padding: 25px;
}

.portfolio-tag {
    display: inline-block;
    padding: 5px 15px;
    background: var(--primary-color);
    color: var(--bg-white);
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 15px;
}

.portfolio-info h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.portfolio-info p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 14px;
}

@media (max-width: 768px) {
    .portfolio-header {
        height: 300px;
    }

    .portfolio-header h1 {
        font-size: 28px;
    }

    .filter-tabs,
    .industry-filters {
        justify-content: flex-start;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

