/* 通用样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* 主要内容区域 */
.main-content {
    min-height: calc(100vh - 120px);
    padding: 2rem 0;
}

.page-title {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 2.5rem;
    font-weight: 700;
    position: relative;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* 老师卡片样式 */
.teacher-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.teacher-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.teacher-avatar {
    flex-shrink: 0;
}

.avatar-img {
    width: 200px;
    height: 250px;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.teacher-basic-info {
    flex: 1;
}

.teacher-name {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.teacher-title {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: #555;
}

.research-direction {
    margin-top: 1.5rem;
}

.research-direction h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.research-direction p {
    color: #666;
    line-height: 1.7;
}

.teacher-details {
    padding-top: 2rem;
}

.section {
    margin-bottom: 2rem;
}

.section h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-left: 1rem;
}

.timeline {
    list-style: none;
    padding-left: 1rem;
}

.timeline li {
    margin-bottom: 0.8rem;
    padding: 0.5rem 0;
    padding-left: 1rem;
    position: relative;
}

.timeline li::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 1rem;
    width: 10px;
    height: 10px;
    background: #667eea;
    border-radius: 50%;
}

.bio-text {
    line-height: 1.8;
    color: #555;
    text-align: justify;
    font-size: 1rem;
}

/* 科研成果页面样式 */
.research-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.teacher-section-title {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.achievement-category {
    margin-bottom: 2.5rem;
}

.category-title {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-left: 1rem;
    font-weight: 600;
}

.patent-list, .paper-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.patent-item, .paper-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.patent-item:hover, .paper-item:hover {
    transform: translateX(5px);
    background: #e8f4fd;
}

.show-more-papers .note {
    color: #7f8c8d;
    font-style: italic;
    text-align: center;
    margin-top: 1rem;
}

.achievement-stats {
    margin-top: 2rem;
    padding-top: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.stat-item {
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 科研项目页面样式 */
.projects-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.project-category {
    margin-bottom: 2.5rem;
}

.project-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

/* .project-item.completed {
    border-left-color: #95a5a6;
} */

.project-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.project-header h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
}

.project-status {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-status.ongoing {
    background: #d4edda;
    color: #155724;
}

.project-status.completed {
    background: #d1ecf1;
    color: #0c5460;
}

.project-details p {
    margin-bottom: 0.5rem;
    color: #555;
    line-height: 1.6;
}

/* 学生与获奖页面样式 */
.students-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.students-category {
    margin-bottom: 2.5rem;
}

.students-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.student-group {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    border-top: 4px solid #9b59b6;
}

.student-level {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 600;
}

.student-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.student-item {
    background: white;
    padding: 0.8rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.student-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.student-name {
    font-weight: 500;
    color: #2c3e50;
}

.student-count {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
}

.awards-category {
    margin-bottom: 2rem;
}

.awards-timeline {
    position: relative;
}

.award-year {
    margin-bottom: 2rem;
    position: relative;
}

.year {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    display: inline-block;
}

.award-list {
    margin-left: 1rem;
}

.awards-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.award-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.award-item.highlight {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, rgba(231, 76, 60, 0.05) 100%);
}

.award-item:hover {
    transform: translateX(5px);
    background: #e8f4fd;
}

.award-item p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

/* 页脚样式 */
.footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }
    
    .teacher-header {
        flex-direction: column;
        text-align: center;
    }
    
    .avatar-img {
        width: 150px;
        height: 188px;
        margin: 0 auto;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .students-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .teacher-card,
    .research-section,
    .projects-section,
    .students-section {
        padding: 1rem;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
} 