.project-img-fixed {
    width: 100%;
    height: 140px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    display: block;
    background: var(--bg-secondary);
}
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {

    /* Theme tokens (used via var(--...)) */
    --bg-hero: #ffffff;
    --bg-card: #ffffff;
    --bg-secondary: #ffffff;

    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;

    --border-color: #e5e7eb;
    --shadow-color: rgba(0, 0, 0, 0.06);
}

/* Layout and Profile Sidebar */
.layout-wrapper {
    display: flex;
    gap: 32px;
    max-width: 1200px;
    margin: 28px auto;
    align-items: flex-start;
}

.sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 40px;
    text-align: left;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.profile-avatar {
    text-align: left;
    margin-bottom: 15px;
}

.profile-avatar img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.profile-name {
    font-size: 1.7rem;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
    margin-bottom: 5px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.profile-subname {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 15px;
    font-weight: 400;
}

.profile-title {
    color: #444;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.profile-org {
    color: #444;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.profile-dept {
    color: #555;
    font-size: 0.92rem;
    margin-bottom: 15px;
}

.profile-info-list,
.profile-social-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.profile-info-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: #555;
    font-size: 0.9rem;
}

.profile-info-list li i {
    width: 16px;
    text-align: center;
    color: #333;
}

.profile-social-list {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.profile-social-list li {
    margin-bottom: 8px;
}

.profile-social-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #424242;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.profile-social-list a:hover {
    color: #0066cc;
    text-decoration: none;
}

.profile-social-list i {
    width: 16px;
    text-align: center;
}

.main-content-area {
    flex-grow: 1;
    min-width: 0;
}

/* Slightly larger body text */
.main-content-area p,
.main-content-area li {
    font-size: 1.02rem;
    line-height: 1.72;
    color: #1f2933;
}
.main-content-area h2 {
    position: relative;
    padding-left: 1.7em;
    font-size: 1.55rem;
    margin: 0.9rem 0 0.55rem;
    color: #111827;
}

.main-content-area h2::before {
    content: "📌";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.3em;
    text-align: center;
    font-size: 0.95em;
    line-height: 1;
    background: none;
    border-radius: 0;
}

/* Section title emoji markers */
.main-content-area h2#biography::before {
    content: "👤";
}

.main-content-area h2#news::before {
    content: "📰";
}

.main-content-area h2#publications::before {
    content: "📄";
}

.main-content-area h2#education::before {
    content: "🎓";
}

.main-content-area h2#experience::before {
    content: "💼";
}

.main-content-area h2#awards::before {
    content: "🏆";
}

.main-content-area h2#projects::before {
    content: "🛠️";
}

.main-content-area h2#hobbies::before {
    content: "🎯";
}

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

.awards-item {
    padding: 6px 12px 6px 4px;
    background-color: #ffffff;
    border-radius: 6px;
}

.awards-item p {
    margin: 0;
    line-height: 1.25;
}

.awards-item span {
    line-height: 1.25;
}

/* Sticky top navigation */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 200;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 14px;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.top-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 18px;
    justify-content: center;
    align-items: center;
}

.top-nav-links a {
    color: #1f2937;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.98rem;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
}

.top-nav-links a:hover {
    background-color: #eef2f7;
    color: #111827;
}

@media (max-width: 850px) {
    .top-nav {
        position: sticky;
        top: 0;
    }

    .top-nav-links {
        flex-wrap: wrap;
        row-gap: 10px;
        justify-content: flex-start;
    }
}

@media (max-width: 850px) {
    .layout-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: static;
        text-align: center;
        margin-bottom: 30px;
    }

    .profile-avatar {
        text-align: center;
    }

    .profile-avatar img {
        margin: 0 auto;
    }

    .profile-info-list li,
    .profile-social-list a {
        justify-content: center;
    }
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.section h2 i {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1em;
    padding: 0.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    background-color: rgba(102, 126, 234, 0.1);
    margin-right: 0.2rem;
}

.emoji {
    font-size: 1.5rem;
}

/* About Section */
.about-section {
    background: var(--bg-hero);
    color: white;
    margin-top: 2rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 2.5rem;
    align-items: center;
}

.name-title {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-family: 'Crimson Text', serif;
}

.name-chinese {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.95);
    margin-left: 1rem;
    font-style: italic;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.name-chinese {
    font-size: 1.2rem;
    color: #718096;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.contact-info {
    margin: 1.5rem 0;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.contact-info i {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 1.1em;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-info a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.18);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.4s ease;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}

.social-links a:hover::before {
    left: 100%;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.social-links a i {
    font-size: 1.3em;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.bio {
    margin-top: 2rem;
    font-size: 1rem;
    line-height: 1.6;
    font-family: 'Source Sans Pro', sans-serif;
}

.bio strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Footer Motto Styles */
.footer-motto {
    margin-bottom: 2rem;
    padding: 2rem 1rem;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
}



.motto-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.motto-stars {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.motto-stars {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.motto-stars i {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.motto-text {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}

.motto-line {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Crimson Text', serif;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.motto-separator {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: bold;
}

.motto-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    font-style: italic;
    font-family: 'Crimson Text', serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Mobile responsive for footer motto */
@media (max-width: 768px) {
    .footer-motto {
        margin-bottom: 1.5rem;
        padding: 1.5rem 0;
    }
    
    .motto-text {
        flex-direction: column;
        gap: 0.4rem;
    }
    
    .motto-line {
        font-size: 1rem;
    }
    
    .motto-subtitle {
        font-size: 0.9rem;
        margin-top: 0.5rem;
    }
    
    .motto-separator {
        display: none;
    }
}

.profile-image {
    text-align: center;
}

.profile-image img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Publications */
.publications-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.publication-item {
    padding: 1.5rem;
    background: #f8fafc;
    border-left: 4px solid #667eea;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.publication-item:hover {
    background: #edf2f7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.publication-item h3 {
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.publication-item h3 a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s ease;
}

.publication-item h3 a:hover {
    color: #667eea;
}

.pdf-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #1e40af;
    font-weight: 600;
    font-size: 0.8em;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.05) 100%);
    transition: all 0.3s ease;
    border: 1px solid rgba(220, 53, 69, 0.2);
    vertical-align: middle;
    margin-left: 0.5rem;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.15);
    position: relative;
    overflow: hidden;
}

.pdf-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.pdf-link:hover::before {
    left: 100%;
}

.pdf-link:hover {
    color: #fff;
    background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%);
    border-color: #dc3545;
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.authors {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.authors strong {
    color: var(--text-primary);
    font-weight: 600;
}

.venue {
    color: #667eea;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Education and Experience */
.education-list,
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.education-entry {
    display: flex;
    gap: 1.5rem;
    padding: 0;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 2rem;
    align-items: stretch; /* 让子元素高度一致 */
}

.education-entry:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.education-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* 分散内容 */
}

.edu-institution {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    font-weight: 600;
    line-height: 1.4;
}

.edu-logo {
    width: auto;
    height: 100%;
    max-width: 80px;
    min-height: 60px;
    object-fit: contain;
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15);
    border: 3px solid rgba(102, 126, 234, 0.1);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 8px;
    aspect-ratio: 1;
    transition: all 0.3s ease;
}

.edu-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.3);
}

.edu-degree {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    line-height: 1.5;
}

.edu-details {
    color: #666;
    flex-grow: 1;
}

.edu-details p {
    margin: 0.3rem 0;
    line-height: 1.6;
}

/* Experience items */
.experience-item {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.experience-item:hover {
    background: #edf2f7;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.period {
    font-weight: 600;
    color: #667eea;
    font-size: 0.9rem;
}

.details h3 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.details p {
    color: #666;
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

/* Awards */
.awards-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.award-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.award-item:hover {
    background: #e2e8f0;
    transform: translateX(5px);
}

.award-date {
    font-weight: 600;
    color: #667eea;
    font-size: 0.9rem;
}

.award-name {
    font-weight: 500;
    color: #2d3748;
}

.award-name a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s ease;
}

.award-name a:hover {
    color: #667eea;
}

.award-org {
    color: #666;
    font-size: 0.9rem;
}

/* Projects */
.project-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.project-item {
    margin-bottom: 0;
    padding: 4px 0;
}

.project-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.project-thumb {
    flex: 0 0 220px;
    max-width: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-thumb img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    margin: 0;
    padding: 0;
}

/* 微调：将第二个项目的图片向上移动一点点以修正视觉对齐 */
.project-list > .project-item:nth-child(2) .project-thumb img {
    transform: translateY(-10px);
}

/* 微调：将第三个项目的图片向上移动一点点以修正视觉对齐 */
.project-list > .project-item:nth-child(3) .project-thumb img {
    transform: translateY(-4px);
}

.project-info {
    flex: 1 1 64%;
    min-width: 0;
}

.project-title {
    font-size: 1.05em;
    font-weight: 600;
    color: #003366;
    text-decoration: none;
}

.project-title:hover {
    text-decoration: underline;
}

.project-links-inline {
    margin-left: 10px;
    font-size: 0.95em;
    white-space: nowrap;
}

.project-keywords {
    display: block;
    margin-top: 8px;
    color: var(--text-secondary);
}

.project-desc {
    display: block;
    margin-top: 6px;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 720px) {
    .project-row {
        flex-direction: column;
    }

    .project-thumb {
        flex: 0 0 auto;
        max-width: none;
        width: 100%;
    }
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
}

.project-split {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.project-media {
    flex: 0 0 320px;
}

.project-body {
    flex: 1 1 auto;
    min-width: 0;
}

.project-body h3 {
    margin-top: 0;
}

.project-preview {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 0;
}

.project-preview img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: contain;
    object-position: center;
    background: var(--bg-secondary);
    padding: 6px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 8px var(--shadow-color);
}

@media (max-width: 720px) {
    .project-split {
        flex-direction: column;
    }

    .project-media {
        flex: 0 0 auto;
        width: 100%;
    }

    .project-preview img {
        height: 240px;
    }
}

.project-card {
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 10px var(--shadow-color);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: none;
}

.project-card:hover::before {
    transform: none;
}

.project-card:hover {
    box-shadow: 0 2px 14px var(--shadow-color);
    border-color: var(--border-color);
}

.project-card h3 {
    margin-bottom: 1rem;
}

.project-card h3 {
    color: var(--text-primary);
}

.project-card h3 a {
    color: var(--text-primary);
    text-decoration: none;
}

.project-card h3 a:hover {
    color: #667eea;
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 0.85rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    padding: 0.2rem 0.6rem;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 999px;
    border: 1px solid var(--border-color);
    font-size: 0.8rem;
    font-weight: 500;
}

.project-links {
    margin-top: 1rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.45rem 0.9rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    border: 1px solid var(--border-color);
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.project-link::before {
    content: none;
}

.project-link:hover::before {
    left: auto;
}

.project-link:hover {
    background: transparent;
    border-color: var(--border-color);
    transform: none;
    box-shadow: none;
}

.project-link i {
    font-size: 1.1em;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* Website Project Styles */
.website-project {
    border: 2px solid #667eea;
    border-radius: 12px;
    position: relative;
}

.visit-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #667eea;
    color: white;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-left: 1rem;
    transition: all 0.3s ease;
}

.visit-link:hover {
    background: #5a67d8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.visit-link i {
    font-size: 0.9em;
}

.website-link-banner {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed #e2e8f0;
    text-align: center;
}

.website-banner-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: white;
    text-decoration: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.website-banner-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.website-banner-link i {
    transition: transform 0.3s ease;
}

.website-banner-link:hover i {
    transform: translateX(3px);
}

/* Footer */
.footer {
    margin-top: 4rem;
    padding: 3rem 2rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: var(--text-primary);
    text-align: center;
    position: relative;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}



.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.seo-keywords {
    margin-top: 1rem;
    color: #a0aec0;
    font-size: 0.75rem;
    opacity: 0.7;
    line-height: 1.4;
}

.visitor-counter {
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}



/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-controls {
        order: -1;
        margin-right: auto;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .profile-image img {
        width: 200px;
        height: 200px;
    }
    
    .motto {
        margin-top: 1rem;
        padding: 0.8rem 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .motto-text {
        font-size: 0.9rem;
    }
    
    .experience-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .education-entry {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        text-align: center;
    }
    
    .edu-logo {
        width: 28px;
        height: 28px;
    }
    
    .visit-link {
        margin-left: 0.5rem;
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .website-banner-link {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .award-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
    

    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .section {
        margin: 2rem 0;
        padding: 1.5rem;
    }
    
    .name-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 1rem;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .name-title {
        font-size: 1.8rem;
    }
    
    .section h2 {
        font-size: 1.5rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll Animation */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideInUp 0.8s ease-out;
}

/* Enhanced Notification Styles */
.notification {
    position: fixed;
    top: 30px;
    right: 30px;
    padding: 1.2rem 2rem;
    border-radius: 15px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    transform: translateX(120%) scale(0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 350px;
}

.notification.show {
    transform: translateX(0) scale(1);
}

.notification.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.notification.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px 15px 0 0;
}








/* Zhuang Style Header */
#layout-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    min-height: 100vh;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}



#header_container {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 30px;
    padding: 20px 0;
}

#headshot {
    flex-shrink: 0;
}

#headshot img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

#headshot img:hover {
    transform: scale(1.05);
}



#main_info_container {
    flex: 1;
}

#main_info_container h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-family: 'Source Sans Pro', sans-serif;
}

.pages_post_descr {
    margin-top: 10px;
}

.pages_post_descr_main p {
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.pages_post_descr_main a {
    color: #003366;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.pages_post_descr_main a:hover {
    color: #0051A3;
    text-decoration: underline;
}



/* Navigation Menu Hover Effect */
nav a:hover {
    background-color: #e3f2fd !important;
    border-bottom: none !important;
}



/* Experience List Styles */
.xp-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.xp-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
    padding: 12px 14px;
    background: transparent;
    border-radius: 0;
    border: none;
    box-shadow: none;
    transition: none;
}

.xp-item:hover {
    transform: none;
    box-shadow: none;
}

.xp-logo {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: none;
    flex-shrink: 0;
}

.xp-meta {
    flex: 1;
}

.xp-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
    flex-wrap: wrap;
    gap: 10px;
}

.xp-org {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.xp-time {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.xp-sub {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.xp-role {
    color: var(--text-secondary);
    font-weight: 500;
}

.xp-mentor {
    color: var(--text-light);
    font-style: italic;
}

.xp-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Awards — academic, minimal style */
.award-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.award-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #eef1f4;
}

.award-meta {
    max-width: calc(100% - 100px);
}

.award-meta strong {
    display: block;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.02rem;
}

.award-sub {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-top: 6px;
}

.award-year {
    color: var(--text-light);
    font-weight: 600;
    min-width: 80px;
    text-align: right;
}

@media (max-width: 720px) {
    .award-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .award-year {
        text-align: left;
        margin-top: 6px;
    }
}

/* Muted/gray variant for certain awards */
.award-item.muted .award-meta strong {
    color: #666666;
}

.award-item.muted .award-sub {
    color: #8a8a8a;
}

.award-item.muted .award-year {
    color: #8a8a8a;
}

/* Featured paper card style (larger thumbnail + prominent title) */
.paper-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 28px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    box-shadow: 0 2px 12px var(--shadow-color);
    border: 1px solid var(--border-color);
    transition: box-shadow 0.25s ease;
}

.paper-item:hover {
    box-shadow: 0 6px 30px rgba(0,0,0,0.08);
}

.paper-logo {
    width: 180px;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.paper-item .xp-org {
    font-weight: 700;
    font-size: 1.08rem;
}

.paper-item .xp-desc {
    font-size: 0.97rem;
}

@media (max-width: 768px) {
    .paper-item {
        flex-direction: column;
        text-align: left;
        gap: 12px;
    }

    .paper-logo {
        width: 100%;
        height: auto;
        max-height: 260px;
    }
}

/* Mobile responsiveness for experience items */
@media (max-width: 768px) {
    #header_container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    #headshot img {
        width: 150px;
        height: 150px;
    }
    
    #main_info_container h1 {
        font-size: 2rem;
    }
    
    .xp-item {
        flex-direction: column;
        text-align: center;
    }
    
    .xp-logo {
        align-self: center;
    }
    
    .xp-top {
        flex-direction: column;
        gap: 5px;
    }
    
    .xp-sub {
        justify-content: center;
    }
}



/* Adjust body font for Zhuang style */
body {
    font-family: Georgia, "Times New Roman", Times, SimSun, "宋体", serif;
}

