/* Theme Variables */
:root {
    /* Light Theme (Cool Navy Blue) */
    --bg-primary: #e9eef7;
    --bg-secondary: #ffffff;
    --bg-tertiary: #dfe7f3;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --accent-color: #2563eb;
    --accent-hover: #1d4ed8;
    --shadow-color: rgba(37,99,235,0.12);
    --card-shadow: 0 10px 30px var(--shadow-color);
    --nav-bg: rgba(255, 255, 255, 0.95);
    --border-color: #cbd5e1;
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --accent-color: #60a5fa;
    --accent-hover: #3b82f6;
    --shadow-color: rgba(96,165,250,0.2);
    --card-shadow: 0 10px 30px var(--shadow-color);
    --nav-bg: rgba(30, 41, 59, 0.95);
    --border-color: #475569;
}

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

body {
    font-family: 'Quicksand', 'Baloo 2', 'Poppins', 'Arial', 'sans-serif';
    line-height: 1.85;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 1.08rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Baloo 2', 'Quicksand', 'Poppins', 'Arial', 'sans-serif';
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--text-primary);
}

.profile-info h2 {
    font-size: 2.3rem;
    font-family: 'Baloo 2', 'Quicksand', 'Poppins', 'Arial', 'sans-serif';
    font-weight: 800;
    letter-spacing: 0.01em;
    margin-bottom: 0.7rem;
}

.profile-info p.title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #e67e22;
    margin-bottom: 0.2rem;
    font-family: 'Quicksand', 'Baloo 2', 'Poppins', 'Arial', 'sans-serif';
}

.profile-info p.department, .profile-info p.university {
    font-size: 1.08rem;
    color: #7f8c8d;
    margin-bottom: 0.2rem;
    font-family: 'Quicksand', 'Baloo 2', 'Poppins', 'Arial', 'sans-serif';
}

.section-header h2 {
    font-size: 2.1rem;
    font-family: 'Baloo 2', 'Quicksand', 'Poppins', 'Arial', 'sans-serif';
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}

.section-content {
    font-size: 1.09rem;
    color: var(--text-primary);
    line-height: 1.95;
    font-family: 'Quicksand', 'Baloo 2', 'Poppins', 'Arial', 'sans-serif';
}

.section-content p {
    margin-bottom: 0.7em;
}

.section-content strong, .section-content b {
    font-weight: 700;
    color: #222;
    font-family: 'Baloo 2', 'Quicksand', 'Poppins', 'Arial', 'sans-serif';
}

.section-content a {
    color: #2d47af;
    font-weight: 600;
    transition: color 0.2s;
    font-family: 'Quicksand', 'Baloo 2', 'Poppins', 'Arial', 'sans-serif';
}

.section-content a:hover {
    color: #e67e22;
}

/* news 日期和强调 */
.news-item .date {
    color: #e67e22;
    font-weight: 700;
    font-size: 1.08em;
    font-family: 'Quicksand', 'Baloo 2', 'Poppins', 'Arial', 'sans-serif';
}

.news-item strong, .news-item b {
    color: #a020f0;
    font-weight: 700;
    font-family: 'Baloo 2', 'Quicksand', 'Poppins', 'Arial', 'sans-serif';
}

/* Theme Switch */
.theme-btn-wrapper {
    display: flex;
    align-items: center;
    margin-left: 0.5rem;
}

.theme-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.theme-btn:hover {
    background-color: var(--bg-tertiary);
    transform: translateY(-2px);
}

.theme-btn i {
    transition: transform 0.5s ease;
}

.theme-btn:hover i {
    transform: rotate(180deg);
}

.theme-btn.active {
    background-color: var(--accent-color);
    color: white;
}

/* Navigation Bar */
.navbar {
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px var(--shadow-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.nav-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--text-primary) !important;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

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

/* Main Container */
.main-container {
    max-width: 1600px;
    margin: 80px auto 0;
    padding: 2rem;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 2.5rem;
}

/* Left Sidebar */
.sidebar-left {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.profile-card {
    background-color: var(--bg-secondary);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-5px);
}

.profile-image {
    width: 200px;
    height: 260px;
    margin: 0 auto 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 0;
}

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

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

.profile-info h2 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.profile-info p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.6rem;
    margin-bottom: 0.2rem;
}

.social-links a {
    color: var(--accent-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--bg-tertiary);
    box-shadow: none;
    border: none;
    text-decoration: none;
    overflow: hidden;
    flex-shrink: 0;
}

.social-links a i {
    color: #222 !important;
}

.social-links a:hover {
    background-color: var(--accent-color);
    color: #fff;
}

@media (max-width: 600px) {
  .social-links a {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

.profile-info .purdue-logo {
    display: block;
    margin: 1.1rem auto 0.2rem auto;
    max-width: 120px;
    height: auto;
}

/* Right Content */
.content-right {
    background-color: var(--bg-secondary);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
}

.section {
    margin-bottom: 3rem;
    /* opacity: 0; */
    /* transform: translateY(20px); */
    transition: all 0.5s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

.section-header h2 {
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
}

/* Research Grid */
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.research-item {
    background-color: var(--bg-tertiary);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.research-item:hover {
    transform: translateY(-5px);
    background-color: var(--bg-secondary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.research-item i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.research-item h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* News Section Styles */
.news-container {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    border-radius: 12px;
    background-color: var(--bg-secondary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid var(--accent-color);
    transition: all 0.3s ease;
}

.news-container:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.news-item {
    padding: 10px 16px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    background-color: #f8f9fa;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.news-item:hover {
    background-color: var(--bg-secondary);
    transform: translateX(8px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.news-item .date {
    font-size: 1em;
    padding: 2px 10px;
    border-radius: 12px;
    margin-bottom: 0;
}

.news-item p {
    margin: 0;
    line-height: 1.6;
    font-size: 1.05em;
}

/* Custom Scrollbar for News Container */
.news-container::-webkit-scrollbar {
    width: 10px;
}

.news-container::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 5px;
}

.news-container::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 5px;
    border: 2px solid var(--bg-tertiary);
}

.news-container::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

/* Publication Items */
.publication-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    border-radius: 15px;
    background-color: var(--bg-tertiary);
    transition: all 0.3s ease;
    align-items: flex-start;
    position: relative;
}

.publication-item:hover {
    transform: translateX(10px);
    background-color: var(--bg-secondary);
}

.pub-image-block {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 340px;
    height: 280px;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    vertical-align: top;
    border: none;
}

.pub-image {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
    box-shadow: none;
    border: none;
}

.pub-venue-badge {
    position: absolute;
    top: -25px;
    left: -25px;
    background: var(--accent-color);
    color: #fff !important;
    font-size: 1.0em;
    line-height: 1.8;
    padding: 2px 7px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    z-index: 3;
    letter-spacing: 0.5px;
    transform: none;
    pointer-events: none;
    font-weight: bold;
}

.pub-content {
    flex: 1;
}

.pub-content h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.pub-content .authors {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.pub-content .journal {
    color: var(--accent-color);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.pub-links {
    margin-top: 1.2rem;
    display: flex;
    gap: 1.1rem;
}

.pub-link {
    color: var(--accent-color);
    background: var(--bg-tertiary);
    text-decoration: none !important;
    box-shadow: 0 2px 8px var(--shadow-color);
    border-radius: 2em;
    padding: 0.38em 1.1em 0.38em 0.9em;
    font-size: 1.08rem;
    font-weight: 600;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}

.pub-link i {
    font-size: 1.08em;
    margin-right: 0.1em;
}

.pub-link:hover {
    background: var(--accent-hover);
    color: #fff !important;
    box-shadow: 0 4px 16px var(--shadow-color);
    text-decoration: none !important;
}

/* Education Items */
.education-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 15px;
    background-color: var(--bg-tertiary);
    transition: all 0.3s ease;
}

.education-item:hover {
    transform: translateX(10px);
    background-color: var(--bg-secondary);
}

.edu-content {
    flex: 1;
    text-align: left;
    min-width: 0;
}

.edu-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
}



.edu-content .advisor {
    color: var(--accent-color);
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.edu-period {
    min-width: 180px;
    text-align: right;
    color: #222;
    font-weight: 800;
    font-size: 1.13rem;
    align-self: flex-start;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 15px;
    background-color: var(--bg-tertiary);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    background-color: var(--bg-secondary);
}

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

/* Research List */
.research-list {
    list-style: disc inside;
    margin: 1.5rem 0 2rem 0;
    padding: 0;
    font-size: 1.15rem;
    line-height: 2.1;
}

.research-list .interest-keyword {
    color: #b22222;
    font-weight: bold;
    font-size: 1.1em;
}

.collab-invite {
    color: #b22222;
    font-size: 1.25rem;
    font-weight: bold;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.wechat-link {
    color: #2062c5;
    font-weight: bold;
}

.wechat-link:hover {
    color: #174a99;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        grid-template-columns: 1fr;
    }

    .sidebar-left {
        position: static;
    }

    .nav-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    .theme-btn-wrapper {
        margin: 0.5rem auto 0;
    }

    .nav-content {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .nav-links {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .research-grid {
        grid-template-columns: 1fr;
    }

    .publication-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .education-item {
        flex-direction: column;
        gap: 1rem;
    }

    .pub-year,
    .edu-year {
        width: auto;
        text-align: left;
    }
    
    .edu-logo {
        height: 60px;
        width: 80px;
        margin-top: 1rem;
    }
    
    .edu-logo img {
        height: 60px;
        width: auto;
    }
    
    /* 移动端Purdue logo调小一点 */
    .edu-logo img[src*="purdue"] {
        height: 45px;
    }
    
    /* 移动端TJU logo调大一点 */
    .edu-logo img[src*="tju"] {
        height: 75px;
    }
}

@media (max-width: 600px) {
    .profile-info h2 {
        font-size: 1.5rem;
    }
    .section-header h2 {
        font-size: 1.3rem;
    }
    .section-content {
        font-size: 0.98rem;
    }
}

/* 添加高亮名称的通用样式 */
.highlight-name {
    font-weight: 900;
}

/* 强制移除所有链接的下划线 */
a {
    text-decoration: none !important;
}

.profile-info h2 .highlight-name {
    color: #483d8b;
    font-weight: 900;
}

.school-logo {
    height: 1.25em;
    vertical-align: middle;
    margin-left: 0.5em;
    margin-bottom: 0.15em;
}

.edu-content .advisor a {
    color: var(--accent-color);
    font-weight: 600;
    transition: color 0.2s;
}

.edu-content .advisor a:hover {
    color: #e67e22 !important;
}

/* 教育logo样式 */
.edu-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    width: 100px;
}

.edu-logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

/* Purdue logo调小一点 */
.edu-logo img[src*="purdue"] {
    height: 60px;
}

/* TJU logo调大一点 */
.edu-logo img[src*="tju"] {
    height: 100px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
}

.section-header i,
.news-item .date,
.pub-link,
.pub-link:hover,
.edu-content .advisor a,
.pub-content .journal,
.section-content a {
    color: var(--accent-color) !important;
}

.pub-link {
    background: var(--bg-tertiary);
    box-shadow: 0 2px 8px var(--shadow-color);
}
.pub-link:hover {
    background: var(--accent-hover);
    color: #fff !important;
    box-shadow: 0 4px 16px var(--shadow-color);
}

.section-content a,
.edu-content .advisor a {
    font-weight: 600;
    transition: color 0.2s;
}
.section-content a:hover,
.edu-content .advisor a:hover {
    color: #e67e22 !important;
}

.pub-tldr {
    margin: 0.5em 0 0.5em 0;
    font-size: 1.08em;
    color: #444;
    font-family: 'Quicksand', 'Baloo 2', 'Poppins', 'Arial', 'sans-serif';
}
.pub-tldr-label {
    color: #e67e22;
    font-weight: bold;
    margin-right: 0.2em;
}

.github-repo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1.2rem;
}
.github-repo-card {
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(72,61,139,0.06);
    padding: 1.2rem 1.3rem 1.1rem 1.3rem;
    display: flex;
    flex-direction: column;
    min-height: 120px;
    transition: box-shadow 0.2s, border 0.2s;
}
.github-repo-card:hover {
    box-shadow: 0 4px 18px rgba(72,61,139,0.13);
    border: 1.5px solid var(--accent-color);
}
.repo-title {
    font-size: 1.18rem;
    font-weight: 700;
    margin-bottom: 0.4em;
    color: #2563eb;
    word-break: break-all;
}
.repo-title a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.18s;
}
.repo-title a:hover {
    color: #483d8b;
}
.repo-desc {
    color: var(--text-secondary);
    font-size: 1.01rem;
    margin-bottom: 0.7em;
    min-height: 2.2em;
}
.repo-meta {
    display: flex;
    align-items: center;
    gap: 1.1em;
    font-size: 0.98em;
    color: #444;
}
.repo-lang {
    display: flex;
    align-items: center;
    gap: 0.3em;
}
.repo-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2563eb;
    margin-right: 2px;
}
.repo-stars, .repo-forks {
    display: flex;
    align-items: center;
    gap: 0.2em;
}
@media (max-width: 700px) {
    .github-repo-grid {
        grid-template-columns: 1fr;
    }
}

[data-theme="dark"] .highlight-name {
    font-weight: 900;
}
[data-theme="dark"] .pub-tldr {
    color: #fff;
}

/* 修复教育时间显示 */
.edu-year {
    width: 200px;
    flex-shrink: 0;
    text-align: right;
    color: #222;
    font-weight: 800;
    font-size: 1.13rem;
}

[data-theme="dark"] .edu-period {
    color: #fff;
}

[data-theme="dark"] .edu-year {
    color: #fff;
}

[data-theme="dark"] .news-container {
    background-color: #23233a;
    border-color: #483d8b;
}
[data-theme="dark"] .news-item {
    background-color: #2d2d44;
    color: #fff;
    border-color: #404060;
}
[data-theme="dark"] .news-item .date {
    color: #a8a4ce;
    background-color: #23233a;
}
[data-theme="dark"] .news-item p {
    color: #fff;
}

[data-theme="dark"] .section-content strong,
[data-theme="dark"] .section-content b {
    color: #fff;
}

.site-footer {
    width: 100%;
    margin-top: 2.5rem;
    padding: 1.2rem 0 1.2rem 0;
    background: var(--bg-primary);
    border-top: 1.5px solid var(--border-color);
    text-align: center;
    font-size: 1.03rem;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
}
[data-theme="dark"] .site-footer {
    background: #1a1a1a;
    color: #b3b3b3;
    border-top: 1.5px solid #404060;
} 
