/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    display: flex;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #1d4ed8;
}

/* Sidebar */
.sidebar {
    width: 280px;
    min-height: 100vh;
    background-color: #f8f9fa;
    border-right: 1px solid #e9ecef;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
}

.sidebar-content {
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.2rem;
    border: 3px solid #e9ecef;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.3rem;
    text-align: center;
}

.title {
    font-size: 0.95rem;
    color: #555;
    text-align: center;
    margin-bottom: 0.1rem;
}

.affiliation {
    font-size: 0.9rem;
    color: #777;
    text-align: center;
}

.sidebar hr {
    width: 100%;
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 1.5rem 0;
}

/* Navigation */
nav {
    width: 100%;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 1rem;
    color: #555;
    font-size: 0.95rem;
    border-radius: 6px;
    transition: all 0.2s;
    margin-bottom: 0.2rem;
}

.nav-link:hover,
.nav-link.active {
    background-color: #e8f0fe;
    color: #2563eb;
}

.nav-link i {
    width: 18px;
    text-align: center;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1.2rem;
}

.social-links a {
    color: #555;
    font-size: 1.3rem;
    transition: color 0.2s;
}

.social-links a:hover {
    color: #2563eb;
}

/* Main Content */
.content {
    margin-left: 280px;
    padding: 3rem 4rem;
    max-width: 900px;
}

section {
    margin-bottom: 3.5rem;
}

section h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

/* About Section */
#about p {
    margin-bottom: 1rem;
    color: #444;
    font-size: 0.95rem;
    line-height: 1.8;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.tag {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    background-color: #e8f0fe;
    color: #2563eb;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #bfdbfe;
}

/* Experience Section */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.experience-item {
    padding: 1.2rem 1.5rem;
    border-left: 3px solid #2563eb;
    background-color: #fafbfc;
    border-radius: 0 6px 6px 0;
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
}

.exp-header h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1a1a;
}

.exp-date {
    font-size: 0.85rem;
    color: #777;
    white-space: nowrap;
}

.exp-role {
    font-size: 0.9rem;
    color: #555;
}

/* Publications Section */
.publication-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.publication-item {
    padding: 1.2rem 1.5rem;
    background-color: #fafbfc;
    border-radius: 6px;
    border: 1px solid #f0f0f0;
    transition: border-color 0.2s;
}

.publication-item:hover {
    border-color: #d0d7de;
}

.pub-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

.pub-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.pub-links {
    display: flex;
    gap: 0.8rem;
}

.pub-links a {
    font-size: 0.8rem;
    color: #2563eb;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    background-color: #e8f0fe;
    transition: background-color 0.2s;
}

.pub-links a:hover {
    background-color: #dbeafe;
}

/* Projects Section */
.project-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
}

.project-item {
    padding: 1.2rem 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.project-item:hover {
    border-color: #d0d7de;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.project-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.project-item h3 a {
    color: #2563eb;
}

.project-item p {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.project-stars {
    font-size: 0.8rem;
    color: #777;
}

.project-stars i {
    color: #f59e0b;
}

/* Contact Section */
.contact-info p {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.contact-info i {
    color: #2563eb;
    width: 18px;
    text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
    .project-list {
        grid-template-columns: 1fr;
    }
}

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

    .sidebar {
        width: 100%;
        min-height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }

    .sidebar-content {
        padding: 1.5rem;
    }

    .avatar {
        width: 100px;
        height: 100px;
    }

    .content {
        margin-left: 0;
        padding: 2rem 1.5rem;
    }

    .exp-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }
}
