/* Custom CSS for Academic Website */

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    font-size: 16px; /* 增加基础字体大小 */
}

/* 增加全局字体大小 */
h1, .h1 { font-size: 2.5rem; }
h2, .h2 { font-size: 2rem; }
h3, .h3 { font-size: 1.75rem; }
h4, .h4 { font-size: 1.5rem; }
h5, .h5 { font-size: 1.25rem; }
h6, .h6 { font-size: 1.1rem; }

/* 增加段落和文本字体大小 */
p, .lead { font-size: 1.1rem; }
small, .small { font-size: 0.95rem; }

/* 增加导航字体大小 */
.navbar-nav .nav-link { font-size: 1.1rem; }
.navbar-brand { font-size: 1.4rem; }

/* Navigation */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Cards */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
    transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Jumbotron */
.jumbotron {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

/* Statistics */
.text-primary { color: #007bff !important; }
.text-success { color: #28a745 !important; }
.text-info { color: #17a2b8 !important; }
.text-warning { color: #ffc107 !important; }

/* Badges */
.badge {
    font-size: 0.8em;
}

/* Footer */
footer {
    margin-top: auto;
}

/* Responsive Images */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Custom Button Styles */
.btn-outline-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.btn-outline-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

/* Knowledge Map Styles */
#knowledge-map {
    width: 100%;
    height: 600px;
    border: 1px solid #ddd;
    border-radius: 0.375rem;
}

/* Research Map Styles */
#research-map {
    width: 100%;
    height: 600px;
    border: 1px solid #ddd;
    border-radius: 0.375rem;
}

/* Blog Post Styles */
.blog-post-meta {
    color: #6c757d;
    font-size: 0.9rem;
}

.blog-post-content {
    line-height: 1.8;
}

/* Profile Picture */
.profile-picture {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Interest Cards */
.interest-card {
    transition: transform 0.2s ease-in-out;
}

.interest-card:hover {
    transform: translateY(-5px);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .jumbotron {
        padding: 2rem 1rem;
    }
    
    .jumbotron h1 {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .profile-picture {
        width: 120px;
        height: 120px;
    }
}

/* Print Styles */
@media print {
    .navbar, .footer, .btn {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #000;
    }
}
