/* Academic Homepage Styles */

:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #fff;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
}

.container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background-color: var(--bg-color);
    padding: 40px 20px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid var(--border-color);
}

.profile {
    text-align: center;
    margin-bottom: 30px;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--accent-color);
    box-shadow: var(--shadow);
    transition: opacity 0.5s ease, transform 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
}

.profile-img.fade-out {
    opacity: 0;
}

.profile h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.profile .title {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.profile .affiliation {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 500;
}

/* Navigation */
.nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 30px;
}

.nav a {
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-color);
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.nav a i {
    width: 20px;
    text-align: center;
    color: var(--accent-color);
}

.nav a:hover,
.nav a.active {
    background-color: var(--bg-light);
    color: var(--accent-color);
    transform: translateX(5px);
}

/* Social Links */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.social-links a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    border-radius: 50%;
    color: var(--text-color);
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-links a i.ai {
    font-size: 1.2rem;
}

.social-links a:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
}

/* Main Content */
.content {
    margin-left: 280px;
    flex: 1;
    padding: 40px 60px;
    background-color: var(--bg-color);
}

section {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

section:last-of-type {
    border-bottom: none;
}

h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent-color);
}

h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

h3 i {
    color: var(--accent-color);
    margin-right: 8px;
}

p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--text-color);
}

/* About Section */
.inline-emoji-logo {
    height: 1em;
    width: auto;
    vertical-align: baseline;
    display: inline;
    margin: 0 0.1em;
}

.about-content ul {
    list-style: none;
    padding-left: 0;
}

.education-list li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.education-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.education-list .detail {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Education and Interests Container */
.education-interests-container {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.education-column,
.interests-column {
    flex: 1;
}

.education-column h3,
.interests-column h3 {
    margin-top: 0;
}

.interests-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.interests-list li {
    background-color: var(--bg-light);
    padding: 12px 16px;
    border-radius: 6px;
    border-left: 3px solid var(--accent-color);
}

.interests-list li i {
    color: var(--accent-color);
    margin-right: 10px;
    font-size: 1.1em;
}

.hobbies {
    margin-top: 10px;
    margin-bottom: 15px;
}

.hobbies-list {
    list-style: none;
    padding-left: 0;
}

.hobbies-list li {
    margin-bottom: 12px;
    padding: 15px;
    background-color: var(--bg-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.hobbies-list li:hover {
    background-color: #e8f4f8;
    transform: translateX(5px);
}

.hobbies-list i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

/* Research Section */
.project {
    background-color: var(--bg-light);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 4px solid var(--accent-color);
    transition: all 0.3s ease;
}

.project:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.project h3 {
    margin-top: 0;
    font-size: 1.3rem;
}

.project-period {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.project-tags {
    margin-top: 15px;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 15px;
    font-size: 0.85rem;
    margin-right: 8px;
    margin-bottom: 8px;
}

/* Publications Section */
.publication {
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.publication:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.publication h3 {
    margin-top: 0;
    font-size: 1.15rem;
    color: var(--primary-color);
    line-height: 1.6;
}

.publication h3 a {
    color: var(--text-color);
    text-decoration: none;
    transition: transform 0.3s ease;
    display: inline;
}

.publication h3 a:hover {
    color: var(--text-color);
    transform: scale(1.02);
}

.authors {
    color: var(--text-color);
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.authors strong {
    color: var(--accent-color);
}

.venue {
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.description {
    margin-bottom: 15px;
    color: var(--text-color);
}

/* Publication Tags */
.tags {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.tags-inline {
    display: inline;
    margin-left: 8px;
    white-space: nowrap;
}

.tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white !important;
    transition: all 0.3s ease;
    border: none;
    vertical-align: middle;
    margin-left: 4px;
    line-height: 1.4;
}

.tag-architecture {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.tag-architecture:hover {
    background: linear-gradient(135deg, #5568d3 0%, #63408a 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.tag-algorithm {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
}

.tag-algorithm:hover {
    background: linear-gradient(135deg, #d87fe3 0%, #dc4557 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(240, 147, 251, 0.4);
}

.tag-system {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
}

.tag-system:hover {
    background: linear-gradient(135deg, #3a8bd9 0%, #00d4e6 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.4);
}

.pub-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pub-link {
    padding: 6px 14px;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pub-link:hover {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.note {
    background-color: #fff3cd;
    padding: 12px 16px;
    border-radius: 6px;
    border-left: 4px solid #ffc107;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.note a {
    color: var(--accent-color);
    text-decoration: none;
}

.note a:hover {
    text-decoration: underline;
}

/* Teaching Section */
.teaching-item {
    margin-bottom: 25px;
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.experience-content {
    flex: 1;
}

.experience-logo-container {
    width: 150px;
    height: 150px;
    min-width: 150px;
    min-height: 150px;
    max-width: 150px;
    max-height: 150px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.experience-logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.teaching-item h3 {
    margin-top: 0;
    font-size: 1.2rem;
}

.course-info {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 10px;
}

/* CV Section */
.cv-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.cv-download:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.experience-item {
    margin-bottom: 25px;
}

.experience-item h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
}

.exp-info {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.experience-item ul {
    margin-left: 20px;
}

.experience-item li {
    margin-bottom: 6px;
    color: var(--text-color);
}

.awards-list {
    list-style: none;
    padding-left: 0;
}

.awards-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.awards-list li:last-child {
    border-bottom: none;
}

/* Contact Section */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.contact-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: 8px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 5px;
}

.contact-item strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.contact-item p {
    margin: 0;
    color: var(--text-color);
}

.contact-item a {
    color: var(--accent-color);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 0;
    color: var(--text-light);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}

footer a {
    color: var(--accent-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }

    .content {
        margin-left: 240px;
        padding: 30px 40px;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .content {
        margin-left: 0;
        padding: 30px 20px;
    }

    .nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .nav a {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }

    h2 {
        font-size: 1.6rem;
    }

    .education-interests-container {
        flex-direction: column;
        gap: 20px;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }
}

/* Scrollbar Styling */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: var(--bg-light);
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

/* Print Styles */
@media print {
    .sidebar {
        display: none;
    }

    .content {
        margin-left: 0;
    }

    section {
        page-break-inside: avoid;
    }
}

