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

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 12px;
}

.page-wrapper {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 32px;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px;
}

.main-content .container {
    max-width: 100%;
    margin: 0;
    padding: 0 12px;
}

.toc {
    position: sticky;
    top: 200px;
    align-self: start;
    padding: 20px 0;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.toc-header {
    padding-bottom: 16px;
}

.toc-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.toc-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.toc-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toc-section-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.toc-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toc-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toc-contact-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
    padding-left: 2px;
}

.toc-contact-link:hover {
    color: var(--secondary-color);
    transform: translateX(3px);
}

.toc-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    position: relative;
    padding-left: 14px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.toc-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border-color);
    transition: background 0.3s ease;
}

.toc-link:hover {
    color: var(--secondary-color);
    transform: translateX(4px);
}

.toc-link:hover::before {
    background: var(--secondary-color);
}

.toc-link.active {
    color: var(--secondary-color);
    font-weight: 600;
}

.toc-link.active::before {
    background: var(--secondary-color);
}

[data-toc-title] {
    scroll-margin-top: 96px;
}

/* Header/Introduction Section */
.intro-section {
    padding: 80px 0 20px;
    animation: fadeInUp 0.8s ease-out;
}

.intro-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 32px;
    align-items: start;
}

.photo-container {
    position: relative;
}

.photo-wrapper {
    position: relative;
    display: inline-block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    animation: photoAppear 1s ease-out;
}

.profile-photo {
    display: block;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.5s ease;
}

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


.intro-text {
    padding-top: 20px;
}

.name-title {
    font-size: 2.0rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.title-role {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
    font-weight: 500;
}

.affiliation {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.contact-info {
    margin-bottom: 25px;
}

.email {
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.email a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.email a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.social-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.social-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.social-link:hover {
    color: var(--secondary-color);
}

.social-link:hover::after {
    width: 100%;
}

.divider {
    color: var(--text-secondary);
    opacity: 0.3;
}

.bio-content {
    margin-top: 20px;
}

.bio-content p {
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 16px;
    max-width: 600px;
}

.bio-content a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.bio-content a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Section Titles */
.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    margin-top: 16px;
}

/* News Section */
.news-section {
    padding: 10px 0;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.news-item {
    display: grid;
    grid-template-columns: 185px 1fr;
    gap: 18px;
    align-items: start;
}

.news-image {
    width: 185px;
    height: 135px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.news-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-date {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.news-content {
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.7;
}

.news-body p {
    margin: 0;
}

/* Publications Section */
.publications-section {
    padding: 20px 0 60px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.publications-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.publication-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 20px;
    padding: 18px;
    background: var(--bg-secondary);
    border-radius: 10px;
    border-left: 3px solid var(--secondary-color);
    transition: all 0.3s ease;
    animation: slideInRight 0.6s ease-out both;
}

.publication-item:nth-child(1) {
    animation-delay: 0.1s;
}

.publication-item:nth-child(2) {
    animation-delay: 0.2s;
}

.publication-item:nth-child(3) {
    animation-delay: 0.3s;
}

.publication-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow);
    background: var(--bg-primary);
}

.pub-year {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--secondary-color);
    padding-top: 8px;
}

.pub-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pub-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.pub-authors {
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-style: italic;
}

.pub-venue {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.pub-links {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.pub-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 1.0rem;
    transition: color 0.3s ease;
    position: relative;
}

.pub-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

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

.pub-link:hover::after {
    width: 100%;
}

.link-divider {
    color: var(--text-secondary);
    opacity: 0.3;
}

/* Awards Section */
.awards-section {
    padding: 20px 0 40px;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.awards-list {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.awards-list li {
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.7;
    padding-left: 24px;
    position: relative;
}

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

/* Miscellaneous Section */
.misc-section {
    padding: 20px 0 40px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.misc-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.misc-item {
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.misc-item:hover {
    background: var(--bg-primary);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.misc-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 12px;
}

.misc-list {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.misc-list li {
    color: var(--text-primary);
    font-size: 1.05rem;
    line-height: 1.7;
    padding-left: 20px;
    position: relative;
}

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

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes photoAppear {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-wrapper {
        grid-template-columns: 1fr;
        padding: 0 24px;
    }

    .toc {
        position: static;
        width: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 24px;
        padding: 20px;
        background: none;
        border: none;
        box-shadow: none;
        border-radius: 0;
    }

    .toc-header {
        width: 100%;
        padding-bottom: 12px;
    }

    .toc-section {
        flex: 1;
        min-width: 150px;
    }

    .toc-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
        margin-top: 0;
    }

    .toc-contact {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }

    .toc-link {
        padding-left: 0;
    }

    .toc-link::before {
        display: none;
    }
}

@media (max-width: 1400px) {
    .intro-content {
        grid-template-columns: 1fr;
        gap: 40px;
        justify-items: center;
        text-align: center;
    }


    .name-title {
        font-size: 2.3rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .news-item {
        grid-template-columns: 1fr;
    }

    .news-image {
        width: 100%;
        height: auto;
    }

    .news-body {
        gap: 8px;
    }

    .publication-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .pub-year {
        text-align: center;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--border-color);
    }

    .bio-content p {
        max-width: 100%;
    }
}

@media (max-width: 1400px) {
    .container {
        padding: 0 15px;
    }

    .intro-section {
        padding: 40px 0 30px;
    }

    .name-title {
        font-size: 1.6rem;
    }

    .publication-item {
        padding: 20px;
    }
}

