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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo:hover {
    color: #1d4ed8;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #2563eb;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2563eb;
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #374151;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    /* Fallback background color */
    background-color: #f8fafc;
    /* Background image with gradient overlay */
    background-image: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(226, 232, 240, 0.9) 100%), url('background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-links {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.btn-secondary:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.profile-card {
    background: rgba(255, 255, 255, 0.5);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #475569;
    font-weight: 500;
}

.profile-info i {
    color: #2563eb;
    width: 20px;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #2563eb;
    border-radius: 2px;
}

/* About section title - left aligned */
.about .section-title {
    text-align: left;
}

.about .section-title::after {
    left: 0;
    transform: none;
}

/* About Section */
.about {
    background: #f8fafc;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    text-align: justify;
}

.skills h3 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    background: #dbeafe;
    color: #1e40af;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 80px;
}

.timeline-marker {
    position: absolute;
    left: 21px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: #2563eb;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 4px #e2e8f0;
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.timeline-header h3 {
    font-size: 1.25rem;
    color: #1e293b;
    font-weight: 600;
}

.timeline-company {
    color: #2563eb;
    font-weight: 600;
    font-size: 1.1rem;
}

.timeline-date {
    color: #64748b;
    font-weight: 500;
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.timeline-location {
    color: #64748b;
    margin-bottom: 1rem;
    font-weight: 500;
}

.timeline-description {
    color: #475569;
    line-height: 1.6;
}

/* Publications Section */
.publications {
    background: #f8fafc;
}

.publications-grid {
    display: grid;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.publication-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.publication-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.publication-card.featured {
    border: 2px solid #2563eb;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
}

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

.publication-venue {
    background: #2563eb;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.publication-year {
    color: #64748b;
    font-weight: 600;
    font-size: 1.1rem;
}

.publication-title {
    font-size: 1.2rem;
    color: #1e293b;
    margin-bottom: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
}

.publication-authors {
    color: #475569;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.publication-venue-full {
    color: #64748b;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.publication-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}


/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #2563eb;
    width: 30px;
}

.contact-item h4 {
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.contact-item p {
    color: #64748b;
    font-weight: 500;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.social-link:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}

.social-link i {
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background: #1e293b;
    color: #94a3b8;
    text-align: center;
    padding: 2rem 0;
}


/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-item {
        padding-left: 50px;
    }

    .timeline-marker {
        left: 6px;
        width: 18px;
        height: 18px;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .hero-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .publication-actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .timeline-content,
    .publication-card {
        padding: 1.5rem;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

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

.timeline-item,
.publication-card {
    animation: fadeInUp 0.6s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }

.publication-card:nth-child(1) { animation-delay: 0.1s; }
.publication-card:nth-child(2) { animation-delay: 0.2s; }
.publication-card:nth-child(3) { animation-delay: 0.3s; }
.publication-card:nth-child(4) { animation-delay: 0.4s; }
.publication-card:nth-child(5) { animation-delay: 0.5s; }

/* Talks Section */
.talks {
    background: #f8fafc;
}

.talks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.talk-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.talk-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.talk-date {
    background: #2563eb;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.talk-location {
    background: #f1f5f9;
    color: #64748b;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 1rem;
}

.talk-card h3 {
    font-size: 1.2rem;
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 600;
}

.talk-card p {
    color: #64748b;
    line-height: 1.6;
}

/* Professional Services Section */
.services {
    background: white;
}

.services-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-category h3 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.service-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.service-item {
    background: #f1f5f9;
    color: #475569;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.service-item:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
}

/* Teaching Section */
.teaching {
    background: #f8fafc;
}

.teaching-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.teaching-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.teaching-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.teaching-card h3 {
    font-size: 1.2rem;
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.teaching-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.teaching-role {
    background: #dbeafe;
    color: #1e40af;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    width: fit-content;
}

.teaching-period {
    color: #64748b;
    font-weight: 500;
    font-size: 0.95rem;
}

/* Skills Section */
.skills-section {
    background: white;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-category {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.skill-category h3 {
    font-size: 1.3rem;
    color: #1e293b;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.skill-category .skill-tags {
    justify-content: center;
}

/* Research Highlights Section */
.research-highlights {
    background: white;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.highlight-card {
    background: #f8fafc;
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
}

.highlight-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
    background: white;
}

.highlight-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.highlight-card h3 {
    font-size: 1.4rem;
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 600;
}

.highlight-card p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.highlight-stats {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.stat {
    background: #e0f2fe;
    color: #0369a1;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* CV Download Button */
.btn-outline {
    background: transparent;
    color: #64748b;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #f1f5f9;
    color: #475569;
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

/* Contact Section Updates */
.contact-item a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Print Styles */
@media print {
    /* Reset margins and ensure full page usage */
    * {
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    @page {
        margin: 0.5in;
        size: A4;
    }
    
    html, body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000 !important;
        background: white !important;
        font-family: 'Microsoft YaHei', 'SimSun', 'Arial Unicode MS', 'Inter', sans-serif !important;
        -webkit-font-smoothing: antialiased !important;
        -moz-osx-font-smoothing: grayscale !important;
        unicode-bidi: embed !important;
        direction: ltr !important;
    }
    
    /* Force Unicode support for Chinese characters */
    * {
        unicode-bidi: embed !important;
        direction: ltr !important;
    }
    
    /* Hide non-printable elements */
    .navbar,
    .hamburger,
    .hero-links,
    .publication-actions,
    .social-links,
    .footer,
    .announcement-banner {
        display: none !important;
    }
    
    /* Show icons in print mode */
    .fas,
    .far,
    .fab,
    .fa,
    i[class*="fa-"] {
        display: inline !important;
        visibility: visible !important;
        opacity: 1 !important;
        font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "FontAwesome" !important;
        font-weight: 900 !important;
        font-style: normal !important;
        font-variant: normal !important;
        text-rendering: auto !important;
        -webkit-font-smoothing: antialiased !important;
        -moz-osx-font-smoothing: grayscale !important;
    }
    
    /* Hide specific buttons but keep content */
    .btn {
        display: none !important;
    }
    
    /* Ensure all main content sections are visible */
    main,
    section {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Force visibility for specific sections that might be hidden */
    #about,
    #experience,
    #publications,
    #research,
    #talks,
    #teaching,
    #skills,
    #contact {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        overflow: visible !important;
    }
    
    /* Ensure all content containers are visible and properly laid out */
    .container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 10px !important;
    }
    
    .hero-container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .about-content {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .timeline {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .publications-grid,
    .talks-grid,
    .services-content,
    .teaching-grid,
    .skills-grid,
    .highlights-grid,
    .contact-content {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Remove background images and gradients for print */
    .hero {
        background: white !important;
        background-image: none !important;
        padding: 20px 0 !important;
        min-height: auto !important;
        page-break-inside: avoid;
    }
    
    /* Ensure proper spacing and layout for print */
    .hero-container {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        text-align: left !important;
    }
    
    .hero-title {
        font-size: 24pt !important;
        color: #000 !important;
        margin-bottom: 10px !important;
        font-family: 'Microsoft YaHei', 'SimSun', 'Arial Unicode MS', 'Inter', sans-serif !important;
        font-weight: bold !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        -webkit-font-smoothing: antialiased !important;
        -moz-osx-font-smoothing: grayscale !important;
        text-rendering: optimizeLegibility !important;
    }
    
    .hero-subtitle {
        font-size: 16pt !important;
        color: #333 !important;
        margin-bottom: 15px !important;
    }
    
    .hero-description {
        font-size: 12pt !important;
        color: #333 !important;
        margin-bottom: 20px !important;
    }
    
    /* Profile card styling for print */
    .profile-card {
        background: #f8f9fa !important;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        padding: 15px !important;
        margin-top: 20px !important;
    }
    
    .profile-info {
        color: #333 !important;
        margin-bottom: 8px !important;
    }
    
    .profile-info i {
        color: #333 !important;
        display: inline !important;
        visibility: visible !important;
        opacity: 1 !important;
        font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "FontAwesome" !important;
        font-weight: 900 !important;
        margin-right: 8px !important;
    }
    
    /* Section styling for print */
    section {
        padding: 20px 0 !important;
        page-break-inside: auto;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        overflow: visible !important;
        margin: 0 !important;
        clear: both !important;
    }
    
    .section-title {
        font-size: 18pt !important;
        color: #000 !important;
        margin-bottom: 20px !important;
        page-break-after: avoid;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .section-title::after {
        display: none !important;
    }
    
    /* Specific about section title styling */
    .about .section-title {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        font-size: 18pt !important;
        color: #000 !important;
        margin-bottom: 20px !important;
    }
    
    /* About section print styling */
    .about {
        background: white !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .about-content {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .about-text {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
    }
    
    .about-text p {
        font-size: 12pt !important;
        color: #333 !important;
        margin-bottom: 15px !important;
        text-align: left !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .skills {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
    }
    
    .skills h3 {
        font-size: 14pt !important;
        color: #000 !important;
        margin-bottom: 10px !important;
    }
    
    .skill-tags {
        margin-bottom: 20px !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .skill-tag {
        background: #e9ecef !important;
        color: #000 !important;
        border: 1px solid #ccc !important;
        margin: 2px !important;
        display: inline-block !important;
    }
    
    /* Experience section styling for print */
    .experience {
        background: white !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .timeline {
        display: block !important;
        width: 100% !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .timeline::before {
        background: #ccc !important;
    }
    
    .timeline-item {
        page-break-inside: avoid;
        margin-bottom: 20px !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .timeline-content {
        background: white !important;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        padding: 15px !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .timeline-header h3 {
        font-size: 14pt !important;
        color: #000 !important;
    }
    
    .timeline-date {
        background: #f8f9fa !important;
        color: #333 !important;
        border: 1px solid #ddd !important;
    }
    
    .timeline-location,
    .timeline-description {
        color: #333 !important;
        font-size: 11pt !important;
    }
    
    /* Publications styling for print */
    .publications {
        background: white !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .publications-grid {
        display: block !important;
        width: 100% !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .publication-card {
        display: block !important;
        width: 100% !important;
        margin-bottom: 15px !important;
        float: none !important;
        background: white !important;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        padding: 15px !important;
        page-break-inside: avoid;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .publication-header {
        margin-bottom: 10px !important;
    }
    
    .publication-venue {
        background: #333 !important;
        color: white !important;
        border: 1px solid #000 !important;
    }
    
    .publication-year {
        color: #333 !important;
        font-size: 12pt !important;
    }
    
    .publication-title {
        font-size: 13pt !important;
        color: #000 !important;
        margin-bottom: 8px !important;
    }
    
    .publication-authors {
        color: #333 !important;
        font-size: 11pt !important;
        margin-bottom: 8px !important;
    }
    
    .publication-venue-full {
        color: #666 !important;
        font-size: 10pt !important;
        margin-bottom: 10px !important;
    }
    
    /* Research highlights styling for print */
    .research-highlights {
        background: white !important;
    }
    
    .highlights-grid {
        display: block !important;
        width: 100% !important;
    }
    
    .highlight-card {
        display: block !important;
        width: 100% !important;
        margin-bottom: 15px !important;
        float: none !important;
        background: #f8f9fa !important;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        padding: 15px !important;
        page-break-inside: avoid;
    }
    
    .highlight-card::before {
        display: none !important;
    }
    
    .highlight-icon {
        background: #333 !important;
        color: white !important;
        width: 60px !important;
        height: 60px !important;
        font-size: 18pt !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .highlight-icon i {
        display: inline !important;
        visibility: visible !important;
        opacity: 1 !important;
        font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "FontAwesome" !important;
        font-weight: 900 !important;
        color: white !important;
    }
    
    .highlight-card h3 {
        font-size: 14pt !important;
        color: #000 !important;
        margin-bottom: 8px !important;
    }
    
    .highlight-card p {
        color: #333 !important;
        font-size: 11pt !important;
        margin-bottom: 10px !important;
    }
    
    .stat {
        background: #e9ecef !important;
        color: #000 !important;
        border: 1px solid #ccc !important;
    }
    
    /* Talks styling for print */
    .talks {
        background: white !important;
    }
    
    .talks-grid {
        display: block !important;
        width: 100% !important;
    }
    
    .talk-card {
        display: block !important;
        width: 100% !important;
        margin-bottom: 15px !important;
        float: none !important;
        background: white !important;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        padding: 15px !important;
        page-break-inside: avoid;
    }
    
    .talk-date {
        background: #333 !important;
        color: white !important;
        border: 1px solid #000 !important;
    }
    
    .talk-location {
        background: #f8f9fa !important;
        color: #333 !important;
        border: 1px solid #ddd !important;
    }
    
    .talk-card h3 {
        font-size: 13pt !important;
        color: #000 !important;
        margin-bottom: 8px !important;
    }
    
    .talk-card p {
        color: #333 !important;
        font-size: 11pt !important;
    }
    
    /* Services styling for print */
    .services {
        background: white !important;
    }
    
    .services-content {
        display: block !important;
        width: 100% !important;
    }
    
    .service-category {
        display: block !important;
        width: 100% !important;
        margin-bottom: 20px !important;
        float: none !important;
    }
    
    .service-category h3 {
        font-size: 14pt !important;
        color: #000 !important;
        margin-bottom: 10px !important;
        text-align: left !important;
    }
    
    .service-list {
        justify-content: flex-start !important;
    }
    
    .service-item {
        background: #f8f9fa !important;
        color: #000 !important;
        border: 1px solid #ddd !important;
        margin: 2px !important;
        display: inline-block !important;
    }
    
    /* Teaching styling for print */
    .teaching {
        background: white !important;
    }
    
    .teaching-grid {
        display: block !important;
        width: 100% !important;
    }
    
    .teaching-card {
        display: block !important;
        width: 100% !important;
        margin-bottom: 15px !important;
        float: none !important;
        background: white !important;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        padding: 15px !important;
        page-break-inside: avoid;
    }
    
    .teaching-card h3 {
        font-size: 13pt !important;
        color: #000 !important;
        margin-bottom: 8px !important;
    }
    
    .teaching-role {
        background: #e9ecef !important;
        color: #000 !important;
        border: 1px solid #ccc !important;
    }
    
    .teaching-period {
        color: #333 !important;
        font-size: 11pt !important;
    }
    
    /* Skills section styling for print */
    .skills-section {
        background: white !important;
    }
    
    .skills-grid {
        display: block !important;
        width: 100% !important;
    }
    
    .skill-category {
        display: block !important;
        width: 100% !important;
        margin-bottom: 15px !important;
        float: none !important;
        background: #f8f9fa !important;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        padding: 15px !important;
        page-break-inside: avoid;
    }
    
    .skill-category h3 {
        font-size: 13pt !important;
        color: #000 !important;
        margin-bottom: 10px !important;
        text-align: left !important;
    }
    
    .skill-category .skill-tags {
        justify-content: flex-start !important;
    }
    
    /* Contact styling for print */
    .contact {
        background: white !important;
    }
    
    .contact-content {
        display: block !important;
        width: 100% !important;
    }
    
    .contact-info {
        display: block !important;
        width: 100% !important;
        margin-bottom: 20px !important;
        float: none !important;
    }
    
    .contact-item {
        margin-bottom: 15px !important;
    }
    
    .contact-item i {
        color: #333 !important;
        font-size: 14pt !important;
        display: inline !important;
        visibility: visible !important;
        opacity: 1 !important;
        font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "FontAwesome" !important;
        font-weight: 900 !important;
        margin-right: 8px !important;
    }
    
    .contact-item h4 {
        font-size: 12pt !important;
        color: #000 !important;
        margin-bottom: 5px !important;
    }
    
    .contact-item p {
        color: #333 !important;
        font-size: 11pt !important;
    }
    
    .contact-item a {
        color: #000 !important;
        text-decoration: underline !important;
    }
    
    /* Remove animations and transitions for print */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    /* Ensure Chinese characters display properly */
    h1, h2, h3, h4, h5, h6, p, span, div, a {
        font-family: 'Microsoft YaHei', 'SimSun', 'Arial Unicode MS', 'Inter', sans-serif !important;
        -webkit-font-smoothing: antialiased !important;
        -moz-osx-font-smoothing: grayscale !important;
        text-rendering: optimizeLegibility !important;
    }
    
    /* Specific styling for Chinese characters */
    .hero-title,
    .section-title,
    .publication-authors,
    .timeline-header h3,
    .talk-card h3,
    .teaching-card h3 {
        font-family: 'Microsoft YaHei', 'SimSun', 'Arial Unicode MS', 'Inter', sans-serif !important;
        font-weight: bold !important;
        -webkit-font-smoothing: antialiased !important;
        -moz-osx-font-smoothing: grayscale !important;
        text-rendering: optimizeLegibility !important;
    }
    
    /* Additional Chinese character support */
    * {
        font-family: 'Microsoft YaHei', 'SimSun', 'Arial Unicode MS', 'Inter', sans-serif !important;
    }
    
    /* Force Chinese font rendering */
    .hero-title:lang(zh),
    .hero-title:lang(zh-CN),
    .hero-title:lang(zh-TW) {
        font-family: 'Microsoft YaHei', 'SimSun', 'Arial Unicode MS' !important;
        font-weight: bold !important;
    }
    
    /* Specific rule for Chinese characters in hero title */
    .hero-title {
        unicode-bidi: bidi-override !important;
        direction: ltr !important;
    }
    
    /* Ensure Chinese characters are not hidden or replaced */
    .hero-title * {
        font-family: 'Microsoft YaHei', 'SimSun', 'Arial Unicode MS' !important;
        font-weight: bold !important;
    }
    
    /* Force display of all characters */
    .hero-title {
        font-variant: normal !important;
        text-transform: none !important;
        font-feature-settings: normal !important;
    }
    
    /* Specific rule for Chinese characters regardless of lang attribute */
    .hero-title {
        font-family: 'Microsoft YaHei', 'SimSun', 'Arial Unicode MS', 'PingFang SC', 'Hiragino Sans GB', 'WenQuanYi Micro Hei', 'Noto Sans CJK SC', 'Source Han Sans SC', sans-serif !important;
        font-weight: bold !important;
        font-size: 24pt !important;
        color: #000 !important;
        line-height: 1.2 !important;
        letter-spacing: normal !important;
        word-spacing: normal !important;
        unicode-bidi: embed !important;
        direction: ltr !important;
    }
    
    /* Specific rule for the character 茂 */
    .hero-title::before {
        content: "" !important;
        display: none !important;
    }
    
    .hero-title::after {
        content: "" !important;
        display: none !important;
    }
    
    /* Force display of all Unicode characters */
    .hero-title {
        font-feature-settings: "liga" 0, "kern" 1 !important;
        text-rendering: optimizeLegibility !important;
        -webkit-font-feature-settings: "liga" 0, "kern" 1 !important;
        -moz-font-feature-settings: "liga" 0, "kern" 1 !important;
    }
    
    /* Ensure the Chinese characters are visible */
    .hero-title::before,
    .hero-title::after {
        content: none !important;
    }
    
    /* Additional icon styling for print */
    .publication-actions i,
    .btn i,
    .social-link i {
        display: inline !important;
        visibility: visible !important;
        opacity: 1 !important;
        font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "FontAwesome" !important;
        font-weight: 900 !important;
        margin-right: 4px !important;
    }
    
    /* Ensure all Font Awesome icons are visible */
    i[class^="fa-"],
    i[class*=" fa-"] {
        display: inline !important;
        visibility: visible !important;
        opacity: 1 !important;
        font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "FontAwesome" !important;
        font-weight: 900 !important;
        font-style: normal !important;
    }
    
    /* Specific fix for Chinese character 茂 */
    .hero-title {
        font-family: 'Microsoft YaHei', 'SimSun', 'Arial Unicode MS', 'PingFang SC', 'Hiragino Sans GB', 'WenQuanYi Micro Hei', 'Noto Sans CJK SC', 'Source Han Sans SC', 'Droid Sans Fallback', sans-serif !important;
        font-weight: bold !important;
        font-size: 24pt !important;
        color: #000 !important;
        line-height: 1.2 !important;
        letter-spacing: 0 !important;
        word-spacing: 0 !important;
        text-rendering: optimizeLegibility !important;
        -webkit-font-smoothing: antialiased !important;
        -moz-osx-font-smoothing: grayscale !important;
        font-feature-settings: normal !important;
        font-variant-ligatures: none !important;
        font-variant-caps: normal !important;
        font-variant-numeric: normal !important;
        font-variant-east-asian: normal !important;
    }
    
    /* Force display of the specific character 茂 */
    .hero-title:contains("茂") {
        font-family: 'Microsoft YaHei', 'SimSun', 'Arial Unicode MS' !important;
    }
    
    /* Alternative approach - ensure all text content is visible */
    .hero-title * {
        font-family: 'Microsoft YaHei', 'SimSun', 'Arial Unicode MS', 'PingFang SC', 'Hiragino Sans GB', 'WenQuanYi Micro Hei', 'Noto Sans CJK SC', 'Source Han Sans SC', 'Droid Sans Fallback', sans-serif !important;
        font-weight: bold !important;
        color: #000 !important;
        display: inline !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Final comprehensive fix for 茂 character */
    .hero-title {
        font-family: 'Microsoft YaHei', 'SimSun', 'Arial Unicode MS', 'PingFang SC', 'Hiragino Sans GB', 'WenQuanYi Micro Hei', 'Noto Sans CJK SC', 'Source Han Sans SC', 'Droid Sans Fallback', 'DejaVu Sans', 'Liberation Sans', 'Arial', sans-serif !important;
        font-weight: bold !important;
        font-size: 24pt !important;
        color: #000 !important;
        text-rendering: optimizeLegibility !important;
        -webkit-font-smoothing: antialiased !important;
        -moz-osx-font-smoothing: grayscale !important;
        font-feature-settings: normal !important;
        font-variant: normal !important;
        text-transform: none !important;
        letter-spacing: normal !important;
        word-spacing: normal !important;
        line-height: 1.2 !important;
        direction: ltr !important;
        unicode-bidi: embed !important;
    }
    
    /* Simple approach - just ensure the original content shows with proper fonts */
    .hero-title {
        white-space: nowrap !important;
        font-family: 'Microsoft YaHei', 'SimSun', 'Arial Unicode MS', 'PingFang SC', 'Hiragino Sans GB', 'WenQuanYi Micro Hei', 'Noto Sans CJK SC', 'Source Han Sans SC', 'Droid Sans Fallback', 'DejaVu Sans', 'Liberation Sans', 'Arial', sans-serif !important;
        font-weight: bold !important;
        font-size: 24pt !important;
        color: #000 !important;
        text-rendering: optimizeLegibility !important;
        -webkit-font-smoothing: antialiased !important;
        -moz-osx-font-smoothing: grayscale !important;
        font-feature-settings: normal !important;
        font-variant: normal !important;
        text-transform: none !important;
        letter-spacing: normal !important;
        word-spacing: normal !important;
        line-height: 1.2 !important;
        direction: ltr !important;
        unicode-bidi: embed !important;
    }
    
    /* Clear floats and ensure proper flow */
    .clearfix::after {
        content: "";
        display: table;
        clear: both;
    }
    
    /* Ensure proper spacing between sections */
    section + section {
        margin-top: 20px !important;
    }
    
    /* Fix any remaining layout issues */
    .grid,
    .flex {
        display: block !important;
    }
    
    .grid > *,
    .flex > * {
        display: block !important;
        width: 100% !important;
        margin-bottom: 10px !important;
        float: none !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }
    
    /* Additional protection for any content that might break */
    .content-box,
    .info-box,
    .data-box,
    .text-box {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }
    
    /* Ensure all divs with content don't break inappropriately */
    div[class*="card"],
    div[class*="item"],
    div[class*="box"] {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }
    
    /* Ensure proper page breaks - allow content to flow naturally */
    .hero {
        page-break-inside: avoid;
    }
    
    /* About section stays on same page as hero */
    .about {
        page-break-inside: auto;
    }
    
    /* All other sections start on new page */
    .experience {
        page-break-before: always !important;
        page-break-inside: auto;
    }
    
    .research-highlights {
        page-break-before: always !important;
        page-break-inside: auto;
    }
    
    .publications {
        page-break-before: always !important;
        page-break-inside: auto;
    }
    
    .talks {
        page-break-before: always !important;
        page-break-inside: auto;
    }
    
    .services {
        page-break-before: always !important;
        page-break-inside: auto;
    }
    
    .teaching {
        page-break-before: always !important;
        page-break-inside: auto;
    }
    
    .skills-section {
        page-break-before: always !important;
        page-break-inside: auto;
    }
    
    .contact {
        page-break-before: always !important;
        page-break-inside: auto;
    }
    
    /* Ensure sections are visible and can flow across pages */
    .publication-card,
    .timeline-item,
    .talk-card,
    .teaching-card,
    .highlight-card,
    .skill-category,
    .service-category,
    .contact-item,
    .profile-card {
        page-break-inside: avoid !important;
        page-break-before: auto !important;
        page-break-after: auto !important;
    }
    
    /* Prevent any card/box from breaking across pages */
    .card,
    .box,
    .item,
    .grid-item {
        page-break-inside: avoid !important;
    }
    
    /* Specific rules for different types of content boxes */
    .publication-card {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }
    
    .timeline-item {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }
    
    .talk-card {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }
    
    .teaching-card {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }
    
    .highlight-card {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }
    
    .skill-category {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }
    
    .service-category {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }
    
    .contact-item {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }
    
    .profile-card {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }
}
