/* Teaching & Leadership Page Specific Styles */

/* Teaching Introduction */
.teaching-intro {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid #eee;
}

.intro-text {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #444;
    font-style: italic;
    max-width: 800px;
}

/* Leadership Timeline */
.leadership-timeline {
    position: relative;
    margin: 40px 0;
    padding-left: 50px; /* 增加左边距以容纳紫色点 */
}

.leadership-timeline::before {
    content: '';
    position: absolute;
    left: 26px; /* 调整到紫色点中心位置 */
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #6a11cb, #2575fc);
    border-radius: 2px;
}

.leadership-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: 0; /* 移除左内边距 */
}

.leadership-item::before {
    content: '';
    position: absolute;
    left: 20px; /* 调整到时间线左侧 */
    top: 25px; /* 与时间块顶部对齐 */
    width: 16px;
    height: 16px;
    background-color: #6a11cb;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 0 0 3px #6a11cb;
    z-index: 1;
}

.leadership-year {
    position: relative; /* 改为相对定位 */
    left: 0;
    top: 0;
    background-color: #6a11cb;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1rem;
    min-width: 130px;
    text-align: center;
    display: inline-block; /* 改为行内块元素 */
    margin-bottom: 20px; /* 在时间块下方留出空间 */
    margin-left: 50px; /* 向右移动以对齐紫色点右侧 */
}

.leadership-content {
    background-color: #fff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border-left: 4px solid #2575fc;
    margin-left: 50px; /* 与时间块对齐 */
}

.leadership-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.leadership-header h2 {
    margin: 0 0 15px 0;
    font-size: 1.6rem;
    color: #333;
    line-height: 1.4;
}

.leadership-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.leadership-tag {
    background: #e9f2ff;
    color: #2575fc;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.leadership-body p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.leadership-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.stat {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #6a11cb;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.leadership-highlights {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin-top: 25px;
    border-left: 4px solid #6a11cb;
}

.leadership-highlights h4 {
    color: #333;
    margin: 0 0 15px 0;
    font-size: 1.1rem;
}

.leadership-highlights ul {
    margin: 0;
    padding-left: 20px;
}

.leadership-highlights li {
    margin-bottom: 10px;
    color: #444;
    line-height: 1.6;
}

.leadership-highlights strong {
    color: #6a11cb;
    font-weight: 600;
}

/* Philosophy Section */
.philosophy-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #eee;
}

.philosophy-section h2 {
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: #333;
    text-align: center;
}

.philosophy-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.philosophy-card {
    background: white;
    padding: 35px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid #2575fc;
}

.philosophy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.philosophy-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
}

.philosophy-card h3 {
    color: #333;
    margin: 0 0 15px 0;
    font-size: 1.4rem;
}

.philosophy-card p {
    color: #555;
    line-height: 1.7;
    font-size: 1.05rem;
    margin: 0;
}

/* Navigation */
.teaching-navigation {
    display: flex;
    justify-content: flex-start;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.nav-button {
    display: inline-block;
    padding: 15px 25px;
    background-color: #6a11cb;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
    min-width: 200px;
    text-align: center;
}

.nav-button:hover {
    background-color: #5a0db3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.leadership-item {
    animation: slideIn 0.6s ease-out forwards;
    opacity: 0;
}

.leadership-item:nth-child(1) { animation-delay: 0.1s; }
.leadership-item:nth-child(2) { animation-delay: 0.3s; }
.leadership-item:nth-child(3) { animation-delay: 0.5s; }
.leadership-item:nth-child(4) { animation-delay: 0.7s; }

.philosophy-card {
    animation: slideIn 0.6s ease-out forwards;
    opacity: 0;
}

.philosophy-card:nth-child(1) { animation-delay: 0.9s; }
.philosophy-card:nth-child(2) { animation-delay: 1.1s; }
.philosophy-card:nth-child(3) { animation-delay: 1.3s; }

/* Responsive Design */
@media (max-width: 992px) {
    .leadership-timeline {
        padding-left: 40px;
    }
    
    .leadership-year {
        margin-left: 40px;
    }
    
    .leadership-content {
        margin-left: 40px;
    }
    
    .leadership-item::before {
        left: 16px;
        top: 30px; /* 在移动端调整顶部位置 */
    }
}

@media (max-width: 768px) {
    .leadership-timeline {
        padding-left: 30px;
    }
    
    .leadership-year {
        margin-left: 30px;
        font-size: 0.9rem;
        padding: 6px 12px;
        min-width: 110px;
    }
    
    .leadership-content {
        margin-left: 30px;
        padding: 25px 20px;
    }
    
    .leadership-header h2 {
        font-size: 1.4rem;
    }
    
    .leadership-stats {
        grid-template-columns: 1fr;
    }
    
    .philosophy-cards {
        grid-template-columns: 1fr;
    }
    
    .leadership-item::before {
        left: 12px;
        top: 25px;
        width: 14px;
        height: 14px;
    }
    
    .leadership-timeline::before {
        left: 18px;
    }
    
    .teaching-navigation {
        justify-content: center;
    }
    
    .nav-button {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .leadership-timeline {
        padding-left: 20px;
    }
    
    .leadership-year {
        margin-left: 20px;
        min-width: 100px;
    }
    
    .leadership-content {
        margin-left: 20px;
        padding: 20px 15px;
    }
    
    .leadership-item::before {
        left: 8px;
    }
    
    .leadership-timeline::before {
        left: 14px;
    }
}

/* Print Styles */
@media print {
    .leadership-timeline::before {
        background: #ccc;
    }
    
    .leadership-item::before {
        border: 2px solid #fff;
        box-shadow: 0 0 0 2px #6a11cb;
    }
    
    .lang-toggle, .nav-button {
        display: none !important;
    }
    
    .leadership-content {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .stat {
        box-shadow: none !important;
        border: 1px solid #eee !important;
    }
    
    body {
        background-color: white !important;
        color: black !important;
    }
}