/* Graduate Page Specific Styles */

/* Page Banner - 使用main.css中的统一样式 */

/* Main Content */
.main-content {
    padding: 60px 0;
    background-color: var(--light-color);
    min-height: calc(100vh - 300px);
}

/* Filter Section */
.filter-section {
    margin-bottom: 50px;
    animation: fadeIn 0.6s ease;
}

.filter-bar {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: var(--white);
}

.filter-input:focus,
.filter-select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(107, 58, 160, 0.1);
}

.filter-reset {
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-reset:hover {
    background: var(--dark-purple);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 58, 160, 0.3);
}

/* Member Sections */
.member-section {
    margin-bottom: 80px;
    animation: fadeIn 0.8s ease;
}

.section-header {
    margin-bottom: 40px;
    text-align: center;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.section-line {
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 0 auto;
    border-radius: 2px;
}

/* Member Grid */
.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* Faculty section member grid should span full width */
#faculty .member-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* Member Card */
.member-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.member-card.featured {
    grid-column: span 2;
    display: flex;
    flex-direction: row;
}

.member-card.featured .member-image {
    width: 300px;
    height: auto;
}

.member-card.featured .member-info {
    flex: 1;
    padding: 30px;
}

.member-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--light-purple) 0%, var(--light-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.3s ease;
    display: block;
}

.member-card:hover .member-image img {
    transform: scale(1.05);
}

.member-info {
    padding: 20px;
}

.member-name {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
}

.member-title {
    font-size: 0.95rem;
    color: var(--gray-medium);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.year-badge {
    display: inline-block;
    padding: 3px 10px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 15px;
    font-size: 0.8rem;
}

.member-details {
    margin-bottom: 15px;
}

.member-details p {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 8px;
    line-height: 1.6;
}

.member-details strong {
    color: var(--dark-color);
    font-weight: 500;
}

.member-research {
    margin-bottom: 10px;
}

.member-education {
    margin-bottom: 10px;
}

.member-work {
    margin-bottom: 8px;
}

.member-email {
    margin-bottom: 8px;
}

.member-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.member-links a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: var(--light-purple);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.member-links a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Alumni Specific Styles */
.alumni-card {
    position: relative;
}

.alumni-card .period-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(107, 58, 160, 0.9);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    z-index: 2;
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 40px;
    background: var(--white);
    border-radius: 12px;
    color: var(--gray-medium);
    font-size: 1.1rem;
    margin: 20px 0;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(107, 58, 160, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--dark-purple);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(107, 58, 160, 0.4);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .member-card.faculty-featured {
        grid-column: span 1;
    }
    
    .faculty-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 24px;
    }
    
    .faculty-image {
        width: 200px;
        height: 240px;
    }
    
    .timeline-section {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .page-banner h1 {
        font-size: 2rem;
    }
    
    .page-banner p {
        font-size: 1rem;
    }
    
    .filter-bar {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-reset {
        width: 100%;
    }
    
    .member-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .page-banner {
        padding: 80px 0 50px;
    }
    
    .main-content {
        padding: 40px 0;
    }
    
    .member-section {
        margin-bottom: 50px;
    }
    
    .faculty-content {
        padding: 20px;
    }
    
    .faculty-header {
        gap: 16px;
        margin-bottom: 24px;
        padding-bottom: 16px;
    }
    
    .faculty-image {
        width: 150px;
        height: 180px;
    }
    
    .faculty-basic-info .member-name {
        font-size: 1.8rem;
    }
    
    .faculty-basic-info .member-title {
        font-size: 1.1rem;
    }
    
    .faculty-details .member-links {
        flex-direction: column;
        gap: 8px;
    }
    
    .faculty-details .member-links a {
        width: 100%;
        justify-content: center;
    }
}

/* Faculty Featured Card Styles */
.member-card.faculty-featured {
    grid-column: 1 / -1;
    width: 100%;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--light-purple);
    transition: all 0.3s ease;
    overflow: visible;
}

.member-card.faculty-featured:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.faculty-content {
    padding: 32px;
}

.faculty-header {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--light-purple);
}

.faculty-image {
    flex-shrink: 0;
    width: 180px;
    height: 220px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-purple);
}

.faculty-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.faculty-basic-info {
    flex: 1;
}

.faculty-basic-info .member-name {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 700;
}

.faculty-basic-info .member-title {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 500;
    line-height: 1.4;
}

.faculty-basic-info .member-contact {
    background: var(--gray-100);
    padding: 16px;
    border-radius: 8px;
    font-size: 0.9375rem;
    line-height: 1.8;
}

.faculty-basic-info .member-contact p {
    margin: 0;
    margin-bottom: 8px;
}

.faculty-basic-info .member-contact p:last-child {
    margin-bottom: 0;
}

.faculty-basic-info .member-contact i {
    color: var(--primary-color);
    margin-right: 8px;
    width: 16px;
}

.faculty-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.research-section h4 {
    color: var(--primary-color);
    font-size: 1.125rem;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--light-purple);
}

.research-section p {
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 0.9375rem;
}

.timeline-section {
    margin: 24px 0;
}

.timeline-section h4 {
    color: var(--primary-color);
    font-size: 1.125rem;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--light-purple);
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.timeline-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: var(--light-purple);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    background: var(--lighter-purple);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 58, 160, 0.15);
}

.timeline-item .year {
    font-weight: 600;
    color: var(--primary-color);
    min-width: 80px;
    font-size: 0.875rem;
    margin-right: 16px;
}

.timeline-item .content {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.4;
}



.faculty-stats {
    margin: 24px 0;
    padding: 20px;
    background: var(--light-purple);
    border-radius: 10px;
}

.stat-row {
    display: flex;
    justify-content: space-around;
    gap: 16px;
}

.faculty-stats .stat-item {
    text-align: center;
}

.faculty-stats .stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.faculty-stats .stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.recruitment-info {
    background: var(--light-purple);
    padding: 16px;
    border-radius: 8px;
    margin-top: 20px;
}

.recruitment-note {
    margin: 0;
    color: var(--text-primary);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.faculty-details .member-links {
    margin-top: 32px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.faculty-details .member-links a {
    padding: 10px 20px;
    background: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.faculty-details .member-links a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 58, 160, 0.3);
} 

/* 统计信息卡片 */
.stats-section {
    margin-bottom: 40px;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stats-card {
    background: var(--white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stats-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1;
}

.stats-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* 加载和错误状态 */
.loading, .error {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.125rem;
}

.loading {
    color: var(--text-secondary);
}

.error {
    color: var(--danger-color);
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: 12px;
    margin: 20px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .stats-cards {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 16px;
    }
    
    .stats-card {
        padding: 16px;
    }
    
    .stats-value {
        font-size: 1.5rem;
    }
} 

/* 总统计信息样式 */
.total-stats {
    text-align: center;
    margin-top: 16px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    backdrop-filter: blur(10px);
}

/* 统计卡片动画效果 */
.stats-card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 统计卡片悬停效果增强 */
.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(107, 58, 160, 0.2);
}

/* 响应式设计增强 */
@media (max-width: 768px) {
    .total-stats {
        font-size: 1rem;
        padding: 10px 20px;
        margin-top: 12px;
    }
    
    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .stats-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .total-stats {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
} 