:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --accent-color: #ff5e8b;
    --gradient-start: #6a11cb;
    --gradient-mid: #2575fc;
    --gradient-end: #ff5e8b;
    --text-color: #333;
    --light-text: #fff;
    --card-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

header {
    text-align: center;
    margin-bottom: 50px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

header p {
    font-size: 1.1rem;
    color: var(--primary-color);
    max-width: 700px;
    margin: 0 auto;
}

.team-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    cursor: pointer;
    height: 400px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 10px auto;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    transition: border-color 0.3s ease;
}

.team-card:hover .card-avatar {
    border-color: var(--accent-color);
}

.card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-info h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.card-info .position {
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
}

.social-icons a {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--accent-color);
}

.view-more {
    margin-top: 20px;
    padding: 8px 20px;
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.view-more:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 弹窗样式 */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup.open {
    display: flex;
}

.popup-content {
    background-color: white;
    width: 90%;
    max-width: 600px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: popupOpen 0.3s ease;
}

@keyframes popupOpen {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.popup-close:hover {
    background: var(--accent-color);
}

.popup-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.popup-header h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.popup-body {
    padding: 20px;
    max-height: 80vh;
    overflow-y: auto;
}

.popup-detail {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

.popup-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.popup-image img {
    width: 100%;
    height: auto;
    display: block;
}

.popup-bio h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.popup-skills {
    margin-bottom: 20px;
}

.popup-skills h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-mid));
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
}

.popup-achievements {
    margin-bottom: 20px;
}

.popup-achievements h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.achievement-list {
    list-style-type: none;
}

.achievement-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 20px;
}

.achievement-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* 加载动画 */
.loader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--secondary-color);
    border-top: 5px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 响应式设计优化 */
@media (max-width: 768px) {
    .popup-detail {
        grid-template-columns: 1fr;
    }

    .popup-content {
        width: 95%;
        max-width: none;
        border-radius: 10px;
    }

    .popup-image {
        order: 2;
    }

    .popup-bio {
        order: 1;
    }
}

@media (max-width: 480px) {
    .team-container {
        grid-template-columns: 1fr;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .popup-header h2 {
        font-size: 1.5rem;
    }

    .card-avatar {
        width: 60px;
        height: 60px;
    }

    .card-info h3 {
        font-size: 1.2rem;
    }

    .view-more {
        padding: 6px 15px;
        font-size: 0.9rem;
    }

    .popup-content {
        border-radius: 10px;
    }
}