/* 
 * 学术主页样式表
 * 现代简约风格
 */

/* CSS变量定义 */
:root {
    /* 蓝绿粉色主题色彩变量 */
    --bg-color: linear-gradient(135deg, #f0fdfa 0%, #ecfdf5 25%, #fdf2f8 75%, #fef7ff 100%);
    --text-color: #0f172a;
    --primary-color: #06b6d4;
    --secondary-color: #a7f3d0;
    --accent-color: #0891b2;
    --light-blue: #f0fdfa;
    --soft-blue: #cffafe;
    --pink-accent: #fce7f3;
    --border-color: #a7f3d0;
    --card-bg: rgba(255, 255, 255, 0.95);
    --card-shadow: 0 8px 25px rgba(6, 182, 212, 0.12);
    --light-gray: rgba(240, 253, 250, 0.98);
    
    /* 字体变量 */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* 间距变量 */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    
    /* 边框圆角 */
    --border-radius: 12px;
    
    /* 过渡效果 */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 标题图标样式 */
.section-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
}

.section-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(6, 182, 212, 0.3));
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}
.activities-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

/* 卡片样式增强 */
.activity-item {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    border: 1px solid rgba(6, 182, 212, 0.15);
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.activity-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.03) 0%, rgba(236, 72, 153, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.activity-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 0;
}

.activity-item:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 12px 35px rgba(6, 182, 212, 0.18);
    border-color: rgba(6, 182, 212, 0.25);
}

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

.activity-item:hover::after {
    width: 300px;
    height: 300px;
}

.activity-item:active {
    transform: translateY(-1px) scale(0.99);
    transition: all 0.1s ease;
}

.activity-content {
    flex: 1;
}

.activity-image {
    flex-shrink: 0;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trae-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.activity-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xs);
}

.activity-company {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: var(--spacing-xs);
}

.activity-period {
    color: #666;
    font-style: italic;
    margin-bottom: var(--spacing-sm);
}

.activity-description {
    line-height: 1.6;
}

/* Experiences部分样式 */
.experiences-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.experience-item {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    border: 1px solid rgba(6, 182, 212, 0.12);
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    min-width: 280px;
    max-width: 320px;
    flex: 1;
    position: relative;
    overflow: hidden;
}

.experience-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.02) 0%, rgba(236, 72, 153, 0.01) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.experience-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.25);
}

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

.experience-item:nth-child(1):hover::before {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(14, 165, 233, 0.08));
    opacity: 1;
}

.experience-item:nth-child(2):hover::before {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(6, 214, 160, 0.08));
    opacity: 1;
}

.experience-item:nth-child(3):hover::before {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.12), rgba(168, 85, 247, 0.08));
    opacity: 1;
}

.experience-icon {
    flex-shrink: 0;
    width: 70px;
    height: auto;
    min-height: 45px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e9ecef;
    overflow: hidden;
    padding: 8px;
}

.conference-logo {
    width: 100%;
    height: auto;
    max-height: 60px;
    object-fit: contain;
    border-radius: 4px;
}

/* 当图片未加载时显示占位符样式 */
.conference-logo[src=""], .conference-logo:not([src]) {
    width: 54px;
    height: 40px;
    background: linear-gradient(45deg, #f1f3f4 25%, transparent 25%), 
                linear-gradient(-45deg, #f1f3f4 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f1f3f4 75%), 
                linear-gradient(-45deg, transparent 75%, #f1f3f4 75%);
    background-size: 8px 8px;
    background-position: 0 0, 0 4px, 4px -4px, -4px 0px;
}

.conference-logo[src=""]:after, .conference-logo:not([src]):after {
    content: "LOGO";
    font-size: 10px;
    color: #6c757d;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.experience-content {
    flex: 1;
}

.experience-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 8px 0;
}

.experience-location {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0 0 4px 0;
}

.experience-period {
    font-size: 13px;
    color: #95a5a6;
    margin: 0;
    font-style: italic;
}

/* Honors & Awards部分样式 */
.honors-list {
    margin-top: var(--spacing-md);
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.honor-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
}

.honor-item:hover {
    transform: translateX(5px);
    color: var(--primary-color);
}

.honor-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.honor-item:first-child {
    padding-top: 0;
}

.honor-title {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.honor-details {
    color: #6c757d;
    font-size: 14px;
    margin: 0;
    text-align: right;
}

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    background: var(--bg-color);
    line-height: 1.6;
    font-size: 16px;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    background-attachment: fixed;
}

/* 动态背景装饰 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(236, 72, 153, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 20%, rgba(168, 85, 247, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: -3;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% {
        transform: translateX(0) translateY(0) scale(1);
    }
    25% {
        transform: translateX(20px) translateY(-15px) scale(1.02);
    }
    50% {
        transform: translateX(-10px) translateY(20px) scale(0.98);
    }
    75% {
        transform: translateX(15px) translateY(10px) scale(1.01);
    }
}



/* 微妙的装饰点 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 48%, rgba(6, 182, 212, 0.02) 49%, rgba(6, 182, 212, 0.02) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(236, 72, 153, 0.015) 49%, rgba(236, 72, 153, 0.015) 51%, transparent 52%);
    background-size: 60px 60px, 80px 80px;
    pointer-events: none;
    z-index: -1;
    animation: patternMove 30s linear infinite;
}

@keyframes patternMove {
    0% {
        background-position: 0 0, 0 0;
    }
    100% {
        background-position: 60px 60px, -80px 80px;
    }
}

/* 浮动装饰元素样式 */
.floating-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 几何图形装饰 */
.floating-element.circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.6), rgba(14, 165, 233, 0.4));
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
    animation: float-circle 12s infinite linear;
}

.floating-element.triangle {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 14px solid rgba(16, 185, 129, 0.6);
    filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.3));
    animation: float-triangle 15s infinite linear;
}

.floating-element.diamond {
    width: 12px;
    height: 12px;
    background: linear-gradient(45deg, rgba(236, 72, 153, 0.6), rgba(168, 85, 247, 0.4));
    transform: rotate(45deg);
    box-shadow: 0 0 18px rgba(236, 72, 153, 0.3);
    animation: float-diamond 10s infinite linear;
}

.floating-element.star {
    width: 16px;
    height: 16px;
    background: rgba(168, 85, 247, 0.6);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    filter: drop-shadow(0 0 16px rgba(168, 85, 247, 0.4));
    animation: float-star 8s infinite linear;
}

/* 动画关键帧 */
@keyframes float-circle {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(50px) rotate(360deg) scale(1.2);
        opacity: 0;
    }
}

@keyframes float-triangle {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(-30px) rotate(180deg);
        opacity: 0;
    }
}

@keyframes float-diamond {
    0% {
        transform: translateY(100vh) translateX(0) rotate(45deg) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(80px) rotate(405deg) scale(1.5);
        opacity: 0;
    }
}

@keyframes float-star {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg) scale(0.6);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(-60px) rotate(720deg) scale(1.3);
        opacity: 0;
    }
}

/* 鼠标交互效果 */
.floating-element.mouse-attract {
    transform-origin: center;
    animation-play-state: paused;
}

.floating-element.mouse-repel {
    filter: brightness(1.3) saturate(1.2);
}

/* 容器样式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* 链接样式 */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

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

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    text-align: center;
}

.btn:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.btn-small {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--spacing-sm);
}

/* 页头和导航栏样式 */
header {
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: var(--spacing-sm) 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    margin: 0;
}

nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: var(--spacing-md);
}

.nav-links a {
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--spacing-xs);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.1), transparent);
    transition: var(--transition);
}

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

.nav-links a:hover {
    color: var(--primary-color);
    background: rgba(6, 182, 212, 0.05);
    transform: translateY(-2px);
}

/* 添加页面滚动时的视差效果 */
.section {
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 70%, rgba(167, 243, 208, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(6, 182, 212, 0.03) 0%, transparent 50%);
    animation: floatBackground 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes floatBackground {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-20px, -20px) rotate(1deg); }
    66% { transform: translate(20px, -10px) rotate(-1deg); }
}

/* 添加滚动时的淡入动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* 个人简介部分样式 */
.hero-section {
    padding: var(--spacing-lg) 0;
    background-color: var(--secondary-color);
}

.profile-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.profile-image {
    flex-shrink: 0;
}

.avatar-container {
    width: 180px;
    height: auto;
    border: 3px solid var(--primary-color);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.avatar-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.profile-content {
    flex: 1;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

/* 通用部分样式 */
.section {
    padding: var(--spacing-md) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

/* 教育背景部分样式 */
.education-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.education-card {
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    background-color: var(--light-gray);
    transition: var(--transition);
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
}

.education-degree {
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
    font-size: 1.1rem;
}

.education-institution {
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
}

.education-period {
    font-style: italic;
    color: #666;
    margin-bottom: var(--spacing-xs);
}

.education-description {
    font-size: 0.9rem;
    color: #555;
}

/* CCF等级标签样式 */
.ccf-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 8px;
    color: white;
    vertical-align: middle;
}

.ccf-a {
    background-color: #e74c3c;
}

.ccf-b {
    background-color: #3498db;
}

.ccf-c {
    background-color: #2ecc71;
}

.preprint {
    background-color: #9b59b6;
}

/* 出版物部分样式 */
.publication-category {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    padding-left: var(--spacing-sm);
    font-weight: 600;
    position: relative;
}

.publications-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

/* 新的论文卡片样式 */
.publication-card {
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    background-color: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 220px;
}

.publication-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.paper-image {
    flex-shrink: 0;
    margin-left: var(--spacing-md);
    order: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    width: 280px;
}

.paper-thumbnail {
    max-width: 280px;
    max-height: 180px;
    width: 280px;
    height: 180px;
    object-fit: cover;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.paper-content {
    flex: 1;
    order: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: var(--spacing-md);
}

.paper-header {
    margin-bottom: var(--spacing-xs);
}

/* 保持原有的论文项样式用于向后兼容 */
.publication-item {
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    background-color: var(--light-gray);
    transition: var(--transition);
}

.publication-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.publication-title {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: var(--spacing-xs);
    line-height: 1.4;
}

.publication-authors {
    font-style: italic;
    margin-bottom: var(--spacing-xs);
    color: #666;
    font-size: 0.95rem;
}

.publication-spotlight {
    display: inline-block;
    background-color: #ff7b00;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    white-space: nowrap;
    max-width: fit-content;
    box-shadow: 0 2px 4px rgba(255, 123, 0, 0.3);
}

.publication-spotlight i {
    color: #ffea00;
    margin-right: 3px;
    font-size: 0.8rem;
}

.publication-venue {
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    color: #555;
}

.publication-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: auto;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 16px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #333;
}

.modal-image {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 20px;
    background-color: #f8f9fa;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .publication-card {
        flex-direction: column;
        align-items: center;
        min-height: auto;
    }
    
    .paper-image {
        margin-left: 0;
        margin-bottom: var(--spacing-sm);
        align-self: center;
        order: 1;
        width: 100%;
        max-width: 300px;
        min-height: auto;
    }
    
    .paper-content {
        order: 2;
        text-align: center;
    }
    
    .paper-thumbnail {
        width: 100%;
        max-width: 300px;
        height: 200px;
        object-fit: cover;
    }
}

/* 项目部分样式 */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.project-card {
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    background-color: var(--light-gray);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.project-title {
    color: var(--primary-color);
}

.project-description {
    flex-grow: 1;
    margin-bottom: var(--spacing-md);
}

/* 联系部分样式 */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.email {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary-color);
    margin: var(--spacing-md) 0;
}

/* 页脚样式 */
footer {
    background-color: var(--light-gray);
    padding: var(--spacing-md) 0;
    text-align: center;
    margin-top: var(--spacing-lg);
}

/* 页脚统计信息样式 */
.site-stats {
    margin-bottom: var(--spacing-sm);
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 500;
}

.visitor-stats {
    margin-bottom: var(--spacing-sm);
    font-size: 0.9rem;
    color: var(--text-color);
}

.visitor-stats span {
    margin: 0 var(--spacing-xs);
}

.visitor-map {
    margin: var(--spacing-md) 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 不蒜子统计样式优化 */
#busuanzi_container_site_uv,
#busuanzi_container_site_pv {
    display: inline-block;
    margin: 0 var(--spacing-xs);
    padding: 4px 8px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 6px;
    transition: var(--transition);
}

#busuanzi_container_site_uv:hover,
#busuanzi_container_site_pv:hover {
    background: rgba(6, 182, 212, 0.2);
    transform: translateY(-1px);
}

#busuanzi_value_site_uv,
#busuanzi_value_site_pv {
    font-weight: 600;
    color: var(--primary-color);
}

/* 建站时间样式 */
#sitetime {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(6, 182, 212, 0.1);
}

/* 访问统计组件样式 */
.visit-stats-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: var(--font-primary);
}

.visit-stats-toggle {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 12px 16px;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.visit-stats-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(6, 182, 212, 0.2);
}

.visit-stats-panel {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 320px;
    max-width: 90vw;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.visit-stats-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--light-blue), var(--soft-blue));
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.stats-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-stats {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: var(--transition);
    font-size: 16px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-stats:hover {
    background: rgba(6, 182, 212, 0.1);
}

.stats-content {
    padding: 16px 20px;
    max-height: 400px;
    overflow-y: auto;
}

.stat-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(167, 243, 208, 0.3);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--secondary-color), var(--soft-blue));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 14px;
    flex-shrink: 0;
}

.stat-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.stat-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.stat-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    word-break: break-word;
}

.location-list {
    max-height: 120px;
    overflow-y: auto;
    margin-top: 8px;
}

.location-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    background: var(--light-gray);
    border-radius: 6px;
    margin-bottom: 4px;
    font-size: 12px;
}

.location-name {
    color: var(--text-color);
    font-weight: 500;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.location-count {
    color: var(--primary-color);
    font-weight: 600;
    background: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    margin-left: 8px;
    flex-shrink: 0;
}

.loading {
    text-align: center;
    color: #64748b;
    font-size: 12px;
    padding: 8px;
}

.stats-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--light-gray);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    text-align: center;
}

.stats-footer small {
    color: #64748b;
    font-size: 11px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .profile-container {
        flex-direction: column;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* 导航栏响应式 */
    .hamburger {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: var(--spacing-sm) 0;
    }
    
    /* Activities响应式 */
    .activity-item {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    .activity-image {
        width: 130px;
        height: 130px;
    }
    
    /* 项目网格调整 */
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

    
/* 访问统计响应式 */
.visit-stats-container {
    bottom: 15px;
    right: 15px;
}

.visit-stats-panel {
    width: 280px;
    right: -20px;
}

.visit-stats-toggle {
    padding: 10px 14px;
    font-size: 13px;
}

@media (max-width: 576px) {
    .section {
        padding: var(--spacing-lg) 0;
    }
    
    .avatar-placeholder {
        width: 120px;
        height: 120px;
    }
    
    .publication-item,
    .project-card {
        padding: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .visit-stats-panel {
        width: calc(100vw - 40px);
        right: -10px;
    }
}

/* 滚动条样式 */
.location-list::-webkit-scrollbar {
    width: 4px;
}

.location-list::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 2px;
}

.location-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 2px;
}

.location-list::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}
