﻿/* 导入高级字体 */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Source+Sans+3:wght@300;400;500;600&display=swap');

/* 全局样式 */
:root,
[data-theme="light"] {
    --primary-color: #1a365d;
    --secondary-color: #2c5282;
    --text-color: #1a1a1a;
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --muted-color: #718096;

    /* 新增质感变量 */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.04), 0 10px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.06), 0 20px 48px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 40px rgba(26, 54, 93, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --noise-opacity: 0.02;
    --primary-rgb: 26, 54, 93;
    --secondary-rgb: 44, 82, 130;
}


[data-theme="dark"] {
    --primary-color: #60a5fa;
    --secondary-color: #93c5fd;
    --text-color: #f3f4f6;
    --bg-color: #111827;
    --card-bg: #1f2937;
    --border-color: #374151;
    --muted-color: #9ca3af;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2), 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.2), 0 10px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.3), 0 20px 48px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 60px rgba(96, 165, 250, 0.1);
    --glass-bg: rgba(31, 41, 55, 0.8);
    --glass-border: rgba(55, 65, 81, 0.5);
    --noise-opacity: 0.03;
    --primary-rgb: 96, 165, 250;
    --secondary-rgb: 147, 197, 253;
}


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

/* 背景纹理和装饰 */
body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    min-height: 100vh;
    position: relative;
    letter-spacing: 0.01em;
}

/* 微妙的背景图案 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 25% 25%, var(--primary-color) 0.5px, transparent 0.5px),
        radial-gradient(circle at 75% 75%, var(--secondary-color) 0.5px, transparent 0.5px);
    background-size: 60px 60px;
    opacity: var(--noise-opacity);
    pointer-events: none;
    z-index: 0;
}

/* 动态背景光效 - 极光风格 */
body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    width: 200%;
    height: 200vh;
    background:
        radial-gradient(circle at 50% 50%, rgba(var(--primary-rgb), 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(var(--secondary-rgb), 0.15) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(30, 144, 255, 0.1) 0%, transparent 40%);
    background-size: 100% 100%;
    transform-origin: center center;
    animation: aurora 15s ease infinite alternate;
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
    filter: blur(60px);
}

@keyframes aurora {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(10deg) scale(1.1);
    }

    100% {
        transform: rotate(-5deg) scale(0.95);
    }
}

/* ========== ADVANCED BACKGROUND EFFECTS ========== */

/* Floating Orb Container */
.floating-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

/* Individual Floating Orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.6) 0%, transparent 70%);
    top: -10%;
    left: -5%;
    animation-duration: 25s;
    animation-delay: 0s;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(var(--secondary-rgb), 0.5) 0%, transparent 70%);
    top: 60%;
    right: -10%;
    animation-duration: 30s;
    animation-delay: -5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.4) 0%, transparent 70%);
    bottom: -5%;
    left: 30%;
    animation-duration: 22s;
    animation-delay: -10s;
}

.orb-4 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, transparent 70%);
    top: 30%;
    left: 50%;
    animation-duration: 28s;
    animation-delay: -7s;
}

.orb-5 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.3) 0%, transparent 70%);
    top: 10%;
    right: 20%;
    animation-duration: 35s;
    animation-delay: -3s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -40px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(40px, 30px) scale(1.02);
    }
}

/* Gradient Mesh Effect */
.gradient-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
    background:
        linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, transparent 50%),
        linear-gradient(225deg, rgba(var(--secondary-rgb), 0.1) 0%, transparent 50%),
        linear-gradient(315deg, rgba(147, 51, 234, 0.08) 0%, transparent 50%),
        linear-gradient(45deg, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
    animation: meshShift 20s ease-in-out infinite alternate;
}

@keyframes meshShift {
    0% {
        opacity: 0.25;
        transform: scale(1);
    }

    50% {
        opacity: 0.35;
        transform: scale(1.02);
    }

    100% {
        opacity: 0.25;
        transform: scale(1);
    }
}

/* Subtle Pulse Glow on Cards */
.profile-card::after,
.about-me::after,
.contact-method::after,
.publication-item::after,
.skill-group::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, transparent 50%, rgba(var(--secondary-rgb), 0.05) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.profile-card:hover::after,
.about-me:hover::after,
.contact-method:hover::after,
.publication-item:hover::after,
.skill-group:hover::after {
    opacity: 1;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

@keyframes underlineShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Smooth Color Transition on Scroll (via CSS only - subtle) */
@keyframes bgColorShift {
    0% {
        background-color: var(--bg-color);
    }

    50% {
        background-color: color-mix(in srgb, var(--bg-color) 98%, var(--primary-color) 2%);
    }

    100% {
        background-color: var(--bg-color);
    }
}

body {
    animation: bgColorShift 30s ease-in-out infinite;
}

/* Social Link Shine Effect */
.social-link::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 40%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 60%);
    transform: translateX(-100%);
    transition: none;
}

.social-link:hover::after {
    animation: shine 0.6s ease forwards;
}

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}




/* 导航栏样式 - 玻璃态效果 */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar:hover {
    box-shadow: var(--shadow-md);
}

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

.nav-brand {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: -0.02em;
    position: relative;
}

.nav-brand::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 30%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 2px;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* 主题切换按钮 */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    margin-left: 0.75rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    color: var(--muted-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: var(--bg-color);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    transition: all 0.3s ease;
}

/* 浅色模式：显示月亮，隐藏太阳 */
.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

/* 深色模式：显示太阳，隐藏月亮 */
[data-theme="dark"] .theme-toggle .sun-icon {
    display: block;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: none;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-color);
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
}

.nav-link:hover::before {
    opacity: 0.08;
    transform: scaleX(1);
}

.nav-link:hover {
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.08), rgba(44, 82, 130, 0.04));
}

[data-theme="dark"] .nav-link.active {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.15), rgba(147, 197, 253, 0.08));
}

/* 主要内容区域 */
.main-content {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* 个人资料卡片 - 提升质感 */
.profile-section {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.profile-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--glass-border);
    position: relative;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.1s backwards;
}

/* 卡片装饰 */
.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
            var(--primary-color),
            var(--secondary-color),
            rgba(147, 51, 234, 1),
            rgba(236, 72, 153, 1),
            var(--primary-color));
    background-size: 300% 100%;
    animation: shimmer 4s linear infinite;
    border-radius: 20px 20px 0 0;
}

@keyframes shimmer {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 300% 50%;
    }
}

.profile-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-lg), 0 20px 60px rgba(26, 54, 93, 0.12);
}

[data-theme="dark"] .profile-card:hover {
    box-shadow: var(--shadow-lg), 0 20px 60px rgba(96, 165, 250, 0.08);
}

.profile-image {
    width: 100%;
    aspect-ratio: 1;
    position: relative;
    overflow: hidden;
}

/* 图片边框装饰 */
.profile-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 3px solid transparent;
    background: linear-gradient(135deg, var(--primary-color) 0%, transparent 50%, var(--secondary-color) 100%) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.profile-card:hover .profile-image::after {
    opacity: 0.6;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s ease;
    filter: grayscale(5%);
}

.profile-card:hover .profile-image img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.profile-info {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--card-bg);
    position: relative;
}

.profile-info::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    opacity: 0.6;
}

.profile-info h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    letter-spacing: -0.02em;
}

.subtitle {
    color: var(--muted-color);
    margin-bottom: 0.4rem;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 400;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1.8rem;
    padding: 0 0.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-radius: 30px;
    text-decoration: none;
    color: var(--text-color);
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-link:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(26, 54, 93, 0.2);
}

[data-theme="dark"] .social-link:hover {
    box-shadow: 0 8px 20px rgba(96, 165, 250, 0.2);
}

.social-link span,
.social-link svg {
    position: relative;
    z-index: 1;
}

.social-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.social-link:hover .social-icon {
    transform: scale(1.1);
}

/* Home hero Resume button */
.profile-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.4rem;
    padding: 0.6rem 1.3rem;
    border-radius: 30px;
    text-decoration: none;
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: var(--shadow-sm);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-cta-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    line-height: 1.2;
}

.profile-cta-label {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.profile-cta-sub {
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    opacity: 0.8;
    white-space: nowrap;
}

.profile-cta:hover {
    transform: translateY(-3px);
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .profile-cta {
    background: rgba(var(--primary-rgb), 0.16);
    border-color: rgba(var(--primary-rgb), 0.45);
    color: var(--primary-color);
}

[data-theme="dark"] .profile-cta:hover {
    background: rgba(var(--primary-rgb), 0.24);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* 内容区域 */
.content-section {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s backwards;
}

section h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.7rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    letter-spacing: -0.01em;
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), rgba(147, 51, 234, 1));
    background-size: 200% 100%;
    border-radius: 3px;
    animation: underlineShift 3s ease infinite;
}

.about-me {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
}

.about-me:hover {
    box-shadow: var(--shadow-md);
}

.text-content {
    color: var(--text-color);
}

.text-content p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    line-height: 1.85;
}

.text-content p:last-child {
    margin-bottom: 0;
}

/* 高亮文字 */
.highlight-text {
    color: var(--primary-color);
    font-weight: 600;
}

.institution {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    vertical-align: middle;
}

.logo-small {
    width: 1rem;
    height: 1rem;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.institution:hover .logo-small {
    transform: scale(1.15);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
    font-weight: 500;
}

a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover::after {
    width: 100%;
}

a:hover {
    color: var(--secondary-color);
}

/* 新闻列表 - 增强质感 */
.latest-news {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.news-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.news-date {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.news-item p:not(.news-date) {
    font-size: 0.98rem;
    line-height: 1.7;
}

/* ========== 移动端优化 (小于 768px) ========== */
@media (max-width: 767px) {

    /* 导航栏 - 移动端 */
    .navbar {
        padding: 0.75rem 0;
    }

    .nav-container {
        padding: 0 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .nav-brand {
        font-size: 1.25rem;
    }

    .nav-brand::after {
        display: none;
    }

    .nav-links {
        gap: 0.25rem;
    }

    .nav-link {
        padding: 0.45rem 0.75rem;
        font-size: 0.85rem;
    }

    .theme-toggle {
        width: 32px;
        height: 32px;
        margin-left: 0.25rem;
        border-radius: 8px;
    }

    .theme-toggle svg {
        width: 16px;
        height: 16px;
    }

    /* 主内容区 - 移动端 */
    .main-content {
        margin: 1.5rem auto;
        padding: 0 1rem;
    }

    .container {
        gap: 1.5rem;
    }

    /* 个人资料卡片 - 移动端 */
    .profile-section {
        gap: 1.5rem;
    }

    .profile-card {
        max-width: 320px;
        margin: 0 auto;
        border-radius: 16px;
    }

    .profile-card:hover {
        transform: none;
    }

    .profile-image {
        aspect-ratio: 1;
    }

    .profile-info {
        padding: 1.5rem 1rem;
    }

    .profile-info::before {
        top: -15px;
        width: 50px;
        height: 3px;
    }

    .profile-info h2 {
        font-size: 1.6rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    /* 社交链接 - 移动端 */
    .social-links {
        gap: 0.5rem;
        margin-top: 1.2rem;
        padding: 0;
    }

    .social-link {
        padding: 0.45rem 0.8rem;
        font-size: 0.8rem;
        gap: 0.35rem;
    }

    .social-icon {
        width: 14px;
        height: 14px;
    }

    /* 内容区域 - 移动端 */
    .content-section {
        gap: 1.5rem;
    }

    section h2 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    section h2::after {
        width: 40px;
        height: 2px;
        bottom: -4px;
    }

    /* About Me - 移动端 */
    .about-me {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .text-content p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
        line-height: 1.75;
    }

    .logo-small {
        width: 0.9rem;
        height: 0.9rem;
    }

    /* 新闻列表 - 移动端 */
    .latest-news {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .news-list {
        gap: 1rem;
    }

    .news-item {
        padding: 1rem;
        border-radius: 10px;
    }

    .news-item:hover {
        transform: none;
    }

    .news-date {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    .news-item p:not(.news-date) {
        font-size: 0.9rem;
        line-height: 1.65;
    }

    /* 页面标题 - 移动端 */
    .page-title {
        font-size: 1.8rem !important;
        margin-bottom: 1.5rem !important;
    }

    /* Contact 页面 - 移动端 */
    .contact-content {
        padding: 0;
    }

    .contact-methods {
        gap: 1.25rem;
        margin-top: 0;
    }

    .contact-method {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .contact-method h2 {
        font-size: 1.15rem;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }

    .contact-item {
        padding: 0.7rem 0.75rem;
    }

    .contact-item:hover {
        transform: none;
    }

    .contact-item .icon {
        width: 1.2rem;
        height: 1.2rem;
    }

    .contact-item a {
        font-size: 0.88rem;
    }

    /* Research 页面 - 移动端 */
    .research-content {
        padding: 0;
    }

    .research-intro {
        font-size: 1rem;
        padding: 1.25rem;
        margin-bottom: 1.5rem;
        line-height: 1.75;
    }

    .research-section {
        margin-bottom: 2rem;
    }

    .research-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.2rem;
        padding-bottom: 0.5rem;
    }

    .research-section h2::after {
        width: 45px;
    }

    .note {
        font-size: 0.88rem;
        margin-bottom: 1rem;
    }

    .publications-list {
        gap: 1.5rem;
    }

    .publication-item {
        padding: 1.25rem;
        border-radius: 10px;
    }

    .publication-item:hover {
        transform: none;
    }

    .publication-item h4 {
        font-size: 1.05rem;
        margin-bottom: 0.5rem;
        line-height: 1.45;
    }

    .publication-item .authors {
        font-size: 0.88rem;
        line-height: 1.5;
    }

    .publication-item .venue {
        font-size: 0.88rem;
        margin-bottom: 1rem;
    }

    .interests-list {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .interests-list li {
        padding: 1rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }

    .interests-list li:hover {
        transform: none;
    }
}

/* ========== 超小屏幕 (小于 380px) ========== */
@media (max-width: 379px) {
    .nav-container {
        justify-content: center;
    }

    .nav-brand {
        width: 100%;
        text-align: center;
        margin-bottom: 0.25rem;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
    }

    .profile-card {
        max-width: 280px;
    }

    .profile-info h2 {
        font-size: 1.4rem;
    }

    .social-link {
        padding: 0.4rem 0.65rem;
        font-size: 0.75rem;
    }

    .interests-list {
        grid-template-columns: 1fr;
    }
}

/* ========== 平板及以上 (768px+) ========== */
@media (min-width: 768px) {
    .profile-section {
        flex-direction: row;
        gap: 3.5rem;
        align-items: flex-start;
    }

    .profile-card {
        width: 300px;
        flex-shrink: 0;
        position: sticky;
        top: 6rem;
    }

    .content-section {
        flex: 1;
    }

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

/* ========== 桌面端 (1024px+) ========== */
@media (min-width: 1024px) {
    .profile-card {
        width: 340px;
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* 选中文本样式 */
::selection {
    background: var(--primary-color);
    color: white;
}

/* Contact Page Styles */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.contact-card h2 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--text-color);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.contact-card p {
    color: var(--muted-color);
    margin-bottom: 2rem;
}

.contact-methods {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-method {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.contact-method:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.contact-method h2 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--text-color);
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.contact-method h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: var(--border-color);
    transform: translateX(4px);
}

.contact-item .icon {
    width: 1.4rem;
    height: 1.4rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.25s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-item a::after,
.nav-link::after {
    display: none;
}

.contact-method .social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0;
}

@media (min-width: 768px) {
    .contact-methods {
        grid-template-columns: 1fr 2fr;
    }

    .contact-method .social-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

@media (min-width: 1024px) {
    .contact-method .social-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Research Page Styles */
.research-content {
    max-width: 1000px;
    margin: 0 auto;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.research-intro {
    font-size: 1.15rem;
    color: var(--text-color);
    margin-bottom: 2.5rem;
    line-height: 1.9;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.research-section {
    margin-bottom: 3.5rem;
}

.research-section h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 1.8rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.research-section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.note {
    color: var(--muted-color);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.publications-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.publication-item {
    background: var(--card-bg);
    padding: 1.8rem 2rem;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.publication-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.35s ease;
}

.publication-item:hover::before {
    opacity: 1;
}

.publication-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.publication-item h4 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    line-height: 1.5;
    font-weight: 600;
}

.publication-item .authors {
    color: var(--muted-color);
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    line-height: 1.6;
}

.publication-item .venue {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
}

.interests-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    list-style: none;
    padding: 0;
}

.interests-list li {
    background: var(--card-bg);
    padding: 1.3rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    font-weight: 500;
}

.interests-list li:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md), 0 0 20px rgba(26, 54, 93, 0.08);
}

[data-theme="dark"] .interests-list li:hover {
    box-shadow: var(--shadow-md), 0 0 20px rgba(96, 165, 250, 0.1);
}

@media (min-width: 768px) {
    .interests-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .interests-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 焦点样式 */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

/* ========== Refined Components ========== */

/* Publication header row + date badge */
.pub-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.6rem 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}

.pub-header h4 {
    flex: 1 1 55%;
    margin-bottom: 0;
}

.pub-date {
    flex-shrink: 0;
    align-self: center;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    white-space: nowrap;
    color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.08);
    border: 1px solid rgba(var(--primary-rgb), 0.18);
    padding: 0.22rem 0.75rem;
    border-radius: 20px;
}

/* Experience bullets */
.exp-bullets {
    margin: 0.2rem 0 0;
    padding-left: 1.15rem;
    color: var(--muted-color);
    font-size: 0.95rem;
    line-height: 1.7;
}

.exp-bullets li {
    margin-bottom: 0.55rem;
    padding-left: 0.15rem;
}

.exp-bullets li:last-child {
    margin-bottom: 0;
}

.exp-bullets li::marker {
    color: var(--primary-color);
}

/* Skills grid + chips */
.skills-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.skill-group {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.skill-group:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.skill-group h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.05rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

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

.skill-tag {
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    color: var(--text-color);
    background: rgba(var(--primary-rgb), 0.07);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    transition: all 0.25s ease;
}

.skill-tag:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Contact page title */
.page-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    padding-bottom: 0.75rem;
    position: relative;
    border-bottom: 2px solid var(--border-color);
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* About Me list polish */
.text-content ul {
    margin: 0 0 1.2rem 1.4rem;
}

.text-content li {
    margin-bottom: 0.5rem;
}

.text-content li::marker {
    color: var(--primary-color);
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Resume Page Styles */
.resume-content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.resume-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 0.45rem;
    padding-bottom: 0.75rem;
    position: relative;
    border-bottom: 2px solid var(--border-color);
}

.resume-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.resume-subtitle {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-style: italic;
    font-size: 1.02rem;
    color: var(--muted-color);
    margin-bottom: 1.75rem;
}

.resume-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.resume-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.35rem;
    border-radius: 30px;
    text-decoration: none;
    color: var(--text-color);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    box-shadow: var(--shadow-sm);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.resume-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.resume-btn:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.resume-btn:hover svg {
    transform: scale(1.1);
}

.resume-btn--primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

.resume-btn--primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #ffffff;
}

[data-theme="dark"] .resume-btn--primary {
    background: rgba(var(--primary-rgb), 0.16);
    border-color: rgba(var(--primary-rgb), 0.45);
    color: var(--primary-color);
}

[data-theme="dark"] .resume-btn--primary:hover {
    background: rgba(var(--primary-rgb), 0.24);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.resume-embed {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    line-height: 0;
}

.resume-embed iframe {
    display: block;
    width: 100%;
    aspect-ratio: 8.5 / 11;
    min-height: 620px;
    max-height: 1150px;
    border: 0;
    background: #ffffff;
}

.resume-mobile-note {
    display: none;
}

@media (max-width: 767px) {
    .resume-content {
        padding: 0;
    }

    .resume-title {
        font-size: 1.8rem;
    }

    .resume-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    .resume-actions {
        flex-direction: column;
        gap: 0.6rem;
        margin-bottom: 1rem;
    }

    .resume-btn {
        width: 100%;
        padding: 0.85rem 1.25rem;
        font-size: 0.92rem;
    }

    .resume-btn:hover {
        transform: none;
    }

    /* Mobile browsers handle inline PDFs poorly, so lead with the buttons instead */
    .resume-embed {
        display: none;
    }

    .resume-mobile-note {
        display: block;
        text-align: center;
        font-style: italic;
        font-size: 0.9rem;
        color: var(--muted-color);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}