/* 员工风采页面样式 */
.team-banner {
    height: 300px;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/team-banner.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-top: 80px;
}

.team-banner h1 {
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.team-section {
    padding: 40px 0;
}

.team-intro {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.team-intro h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
}

.team-intro p {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 0 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.team-item {
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.team-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.team-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-item:hover .team-image img {
    transform: scale(1.05);
}

.team-title {
    padding: 15px;
    text-align: center;
    font-size: 16px;
    color: #333;
    border-top: 1px solid #eee;
}

/* 图片放大模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: -40px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    transition: transform 0.3s ease;
}

.modal-close:hover {
    transform: rotate(90deg);
}

.modal-prev,
.modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 24px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.modal-prev {
    left: -60px;
}

.modal-next {
    right: -60px;
}

.modal-prev:hover,
.modal-next:hover {
    background: rgba(255,255,255,0.2);
}

.modal-title {
    position: absolute;
    bottom: -40px;
    left: 0;
    color: white;
    font-size: 1.2em;
}

/* 移动端适配 */
@media screen and (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media screen and (max-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .team-banner {
        height: 200px;
        margin-top: 60px;
    }

    .team-banner h1 {
        font-size: 2em;
    }

    .team-intro h2 {
        font-size: 24px;
    }

    .team-intro p {
        font-size: 14px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .team-title {
        font-size: 14px;
    }

    .modal-close {
        right: 0;
    }

    .modal-prev,
    .modal-next {
        padding: 15px;
        font-size: 20px;
    }

    .modal-prev {
        left: 10px;
    }

    .modal-next {
        right: 10px;
    }
} 