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

/* 根变量定义 - 暗色主题（默认） */
:root {
    /* 主色调 - 与流体背景和谐的紫粉色系 */
    --primary-color: #6366F1;
    --primary-light: #818CF8;
    --primary-dark: #4F46E5;
    --secondary-color: #A78BFA;
    --accent-color: #EC4899;
    
    /* 文本颜色 - 柔和暗色主题 */
    --text-primary: #F9FAFB;
    --text-secondary: #E5E7EB;
    --text-tertiary: #D1D5DB;
    --text-light: #9CA3AF;
    
    /* 背景颜色 - 与流体背景协调的深色系统 */
    --bg-primary: #0F0A1A;
    --bg-secondary: #1A1425;
    --bg-tertiary: #251E35;
    --bg-glass: rgba(26, 20, 37, 0.6);
    --bg-glass-dark: rgba(15, 10, 26, 0.75);
    
    /* 边框颜色 - 紫色调 */
    --border-color: rgba(163, 139, 250, 0.15);
    --border-light: rgba(163, 139, 250, 0.08);
    --border-dark: rgba(163, 139, 250, 0.25);
    
    /* 阴影系统 - 带紫色光晕的深色柔和阴影 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px 0 rgba(82, 39, 255, 0.15);
    --shadow-lg: 0 12px 32px 0 rgba(82, 39, 255, 0.2);
    --shadow-xl: 0 20px 48px 0 rgba(82, 39, 255, 0.25);
    --shadow-2xl: 0 32px 64px 0 rgba(82, 39, 255, 0.3);
    
    /* 渐变系统 - 与流体背景和谐的渐变 */
    --gradient-primary: linear-gradient(135deg, #6366F1 0%, #EC4899 100%);
    --gradient-secondary: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%);
    --gradient-accent: linear-gradient(135deg, #EC4899 0%, #F472B6 100%);
    --gradient-purple: linear-gradient(135deg, #5227FF 0%, #FF9FFC 100%);
    --gradient-blue: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    
    /* 间距系统 */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;
    
    /* 圆角系统 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;
    
    /* 动画缓动 */
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-smooth: cubic-bezier(0.65, 0, 0.35, 1);
}

/* 亮色主题 */
[data-theme="light"] {
    /* 主色调 - 优雅的蓝紫渐变 */
    --primary-color: #5B5FFF;
    --primary-light: #7B7FFF;
    --primary-dark: #3B3FFF;
    --secondary-color: #A78BFA;
    --accent-color: #10B981;
    
    /* 文本颜色 - 精致的灰度系统 */
    --text-primary: #0A0A0A;
    --text-secondary: #52525B;
    --text-tertiary: #A1A1AA;
    --text-light: #D4D4D8;
    
    /* 背景颜色 - 极简纯净 */
    --bg-primary: #FFFFFF;
    --bg-secondary: #FAFAFA;
    --bg-tertiary: #F4F4F5;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --bg-glass-dark: rgba(255, 255, 255, 0.4);
    
    /* 边框颜色 */
    --border-color: rgba(228, 228, 231, 0.8);
    --border-light: rgba(244, 244, 245, 0.8);
    --border-dark: rgba(161, 161, 170, 0.3);
    
    /* 阴影系统 - 微妙自然 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 12px 0 rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 12px 32px 0 rgba(0, 0, 0, 0.07);
    --shadow-xl: 0 20px 48px 0 rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 32px 64px 0 rgba(0, 0, 0, 0.12);
    
    /* 渐变系统 - 高级优雅 */
    --gradient-primary: linear-gradient(135deg, #5B5FFF 0%, #A78BFA 100%);
    --gradient-secondary: linear-gradient(135deg, #06B6D4 0%, #10B981 100%);
    --gradient-accent: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
    --gradient-purple: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
    --gradient-blue: linear-gradient(135deg, #3B82F6 0%, #06B6D4 100%);
}

/* 主题切换按钮 */
.theme-toggle {
    position: fixed;
    top: 32px;
    right: 32px;
    width: 72px;
    height: 36px;
    background: rgba(26, 20, 37, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    cursor: pointer;
    z-index: 999;
    padding: 0;
    transition: all 0.6s var(--ease-smooth);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    /* 移除移动端点击蓝色高亮框 */
    -webkit-tap-highlight-color: transparent;
    outline: none;
    user-select: none;
    -webkit-user-select: none;
}

[data-theme="light"] .theme-toggle {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.theme-toggle:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 
        0 8px 24px rgba(91, 95, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .theme-toggle:hover {
    box-shadow: 
        0 8px 24px rgba(91, 95, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.theme-toggle:active {
    transform: scale(1.02);
}

.theme-toggle-track {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 4px;
}

.theme-toggle-thumb {
    position: relative;
    width: 28px;
    height: 28px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateX(0);
    box-shadow: 
        0 2px 8px rgba(91, 95, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

[data-theme="light"] .theme-toggle-thumb {
    transform: translateX(36px);
}

.theme-toggle-thumb i {
    position: absolute;
    font-size: 14px;
    color: white;
    transition: all 0.4s var(--ease-smooth);
}

.sun-icon {
    opacity: 0;
    transform: scale(0.5) rotate(-90deg);
}

[data-theme="light"] .sun-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.moon-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

[data-theme="light"] .moon-icon {
    opacity: 0;
    transform: scale(0.5) rotate(90deg);
}

/* 主题切换动画 */
@keyframes themeTransition {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        opacity: 1;
    }
}

body.theme-transitioning {
    animation: themeTransition 0.6s var(--ease-smooth);
}

/* 基础样式 - 暗色主题 */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: #0A0A0F;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    letter-spacing: -0.01em;
    transition: background 0.6s var(--ease-smooth), color 0.6s var(--ease-smooth);
}

[data-theme="light"] body {
    background: #FFFFFF;
    color: var(--text-primary);
}

/* 添加一个深色遮罩层在流体背景之上，带有紫色调 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 10, 26, 0.65);
    z-index: -1;
    pointer-events: none;
    transition: background 0.6s var(--ease-smooth);
}

/* 亮色主题的背景遮罩 */
[data-theme="light"] body::before {
    background: 
        radial-gradient(circle at 20% 50%, rgba(91, 95, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(167, 139, 250, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 90%, rgba(16, 185, 129, 0.06) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite alternate;
}

@keyframes backgroundShift {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.1) translate(2%, 2%);
    }
}

/* 粒子背景容器样式 */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.6s var(--ease-smooth);
}

/* 暗色主题下隐藏亮色粒子 */
.light-theme-particles {
    opacity: 0;
    pointer-events: none;
}

/* 亮色主题下显示亮色粒子，隐藏Liquid Ether */
[data-theme="light"] .light-theme-particles {
    opacity: 1;
}

[data-theme="light"] #liquid-ether-background {
    opacity: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    animation: floatElegant 25s ease-in-out infinite;
    top: 110vh;
    filter: blur(1px);
}

.particle:nth-child(1) {
    left: 15%;
    animation-delay: 0s;
    animation-duration: 20s;
    width: 8px;
    height: 8px;
}

.particle:nth-child(2) {
    left: 35%;
    animation-delay: 3s;
    animation-duration: 23s;
    width: 5px;
    height: 5px;
}

.particle:nth-child(3) {
    left: 55%;
    animation-delay: 6s;
    animation-duration: 18s;
    width: 7px;
    height: 7px;
}

.particle:nth-child(4) {
    left: 75%;
    animation-delay: 9s;
    animation-duration: 21s;
    width: 6px;
    height: 6px;
}

.particle:nth-child(5) {
    left: 90%;
    animation-delay: 12s;
    animation-duration: 19s;
    width: 4px;
    height: 4px;
}

@keyframes floatElegant {
    0% {
        transform: translateY(0) translateX(0) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.6;
        transform: translateY(-50vh) translateX(20px) scale(1);
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-110vh) translateX(0) scale(0.8);
        opacity: 0;
    }
}

/* Liquid Ether 背景容器 - 性能优化 */
#liquid-ether-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.6s var(--ease-smooth);
    /* GPU 加速 */
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

#liquid-ether-background canvas {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    /* GPU 加速和性能优化 */
    transform: translateZ(0);
    will-change: contents;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* 主容器 - 优雅的间距和最大宽度 */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

/* 头部区域 - 现代大厂风格的英雄区 */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: var(--spacing-3xl) 0;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 10;
    position: relative;
    animation: fadeInUpSmooth 1.2s var(--ease-smooth) both;
    transform-origin: center center;
}

@keyframes fadeInUpSmooth {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-content h1.name {
    font-size: 5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.03em;
    line-height: 1.1;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% {
        filter: brightness(1);
    }
    100% {
        filter: brightness(1.1);
    }
}

.hero-content .title {
    font-size: 1.75rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    font-weight: 500;
    letter-spacing: -0.01em;
    opacity: 0;
    animation: fadeIn 1s var(--ease-out) 0.3s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.hero-content .education {
    font-size: 1.25rem;
    color: var(--text-tertiary);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    font-weight: 500;
    letter-spacing: -0.01em;
    opacity: 0;
    animation: fadeIn 1s var(--ease-out) 0.5s forwards;
}

.hero-content .education i {
    color: var(--primary-color);
    width: 20px;
    font-size: 1.1rem;
}

.hero-content .location,
.hero-content .birth-date {
    font-size: 1.125rem;
    color: var(--text-tertiary);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    font-weight: 500;
    letter-spacing: -0.005em;
    opacity: 0;
    animation: fadeIn 1s var(--ease-out) 0.7s forwards;
}

.hero-content .location i,
.hero-content .birth-date i {
    color: var(--accent-color);
    width: 18px;
    font-size: 1rem;
}

/* 技能气泡容器 */
.skill-bubbles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.skill-bubble {
    position: absolute;
    width: 110px;
    height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(26, 20, 37, 0.6);
    border: 1px solid rgba(163, 139, 250, 0.2);
    border-radius: 50%;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: scale(0.85) translateY(10px);
    transition: all 0.8s var(--ease-smooth);
    cursor: pointer;
    pointer-events: auto;
    text-align: center;
    line-height: 1.2;
    padding: var(--spacing-sm);
    z-index: 5;
    letter-spacing: -0.01em;
}

[data-theme="light"] .skill-bubble {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.skill-bubble i {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(91, 95, 255, 0.2));
}

.skill-bubble span {
    font-size: 0.7rem;
    line-height: 1.2;
    word-break: break-word;
    max-width: 100%;
    color: var(--text-secondary);
    font-weight: 600;
}

.skill-bubble:hover {
    transform: scale(1.15) translateY(-8px);
    background: rgba(26, 20, 37, 0.85);
    box-shadow: 
        0 20px 60px rgba(91, 95, 255, 0.3),
        0 0 40px rgba(91, 95, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(91, 95, 255, 0.5);
}

[data-theme="light"] .skill-bubble:hover {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 
        0 16px 48px rgba(91, 95, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: rgba(91, 95, 255, 0.3);
}

.skill-bubble.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.skill-bubble.fade-in {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.skill-bubble.fade-out {
    opacity: 0;
    transform: scale(0.85) translateY(10px);
}

/* 联系方式区域 - 现代化设计 */
.contact-section {
    padding: var(--spacing-3xl) 0;
    margin-top: var(--spacing-3xl);
}

/* 下载简历区域 - 优雅按钮设计 */
.download-section {
    padding: var(--spacing-2xl) 0;
    margin-top: var(--spacing-2xl);
    text-align: center;
}

.download-container {
    max-width: 900px;
    margin: 0 auto;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-xl);
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.5s var(--ease-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(91, 95, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    text-decoration: none;
    min-width: 180px;
    height: 60px;
    letter-spacing: -0.01em;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.4s var(--ease-smooth);
}

.download-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.6s var(--ease-smooth), height 0.6s var(--ease-smooth);
}

.download-btn:hover::before {
    opacity: 1;
}

.download-btn:hover::after {
    width: 300px;
    height: 300px;
}

.download-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 20px 64px rgba(91, 95, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.download-btn:active {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(91, 95, 255, 0.35),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.download-btn i {
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
    transition: transform 0.4s var(--ease-smooth);
}

.download-btn:hover i {
    transform: translateY(2px);
}

.download-btn span {
    position: relative;
    z-index: 1;
}

/* 右键菜单样式 */
.context-menu {
    position: fixed;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    min-width: 150px;
    padding: 8px 0;
    font-family: 'Inter', sans-serif;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 14px;
    color: #374151;
}

.menu-item:hover {
    background-color: #f3f4f6;
}

.menu-item i {
    width: 16px;
    color: #6b7280;
}

/* 设计署名样式 */
.design-signature {
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
}

.design-signature p {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 1px;
    opacity: 0.7;
    margin: 0;
}

.contact-card {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-xl);
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    background: rgba(26, 20, 37, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    transition: all 0.5s var(--ease-smooth);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(91, 95, 255, 0.15), transparent 60%);
    transform: translate(-50%, -50%);
    transition: width 0.6s var(--ease-smooth), height 0.6s var(--ease-smooth);
    pointer-events: none;
}

.contact-item:hover::before {
    width: 600px;
    height: 600px;
}

.contact-item:hover:not(.tilt-card) {
    transform: translateY(-12px) scale(1.04);
    box-shadow: 
        0 24px 80px rgba(91, 95, 255, 0.3),
        0 0 60px rgba(91, 95, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    background: rgba(26, 20, 37, 0.85);
    border-color: rgba(91, 95, 255, 0.4);
}

.contact-item i {
    font-size: 2.25rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    width: 56px;
    text-align: center;
    transition: transform 0.5s var(--ease-bounce);
}

.contact-item:hover i {
    transform: scale(1.2) rotate(5deg);
}

.contact-details h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.contact-details p,
.contact-details a,
.contact-details span {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s var(--ease-smooth);
    font-weight: 500;
    font-size: 0.975rem;
    letter-spacing: -0.005em;
}

/* 可点击的联系项 */
.contact-item.contact-clickable {
    cursor: pointer;
    user-select: none;
}

.contact-item.contact-clickable:active:not(.tilt-card) {
    transform: translateY(-6px) scale(0.98);
}

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

/* 章节标题 - 现代优雅风格 */
.section-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin: var(--spacing-3xl) 0 var(--spacing-2xl);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    opacity: 0.3;
    animation: titleUnderline 2s ease-in-out infinite alternate;
}

@keyframes titleUnderline {
    0% {
        width: 80px;
        opacity: 0.3;
    }
    100% {
        width: 120px;
        opacity: 0.6;
    }
}

/* 技能区域 - 现代卡片设计 */
.skills-section {
    padding: var(--spacing-3xl) 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

.skill-category {
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    background: rgba(26, 20, 37, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    transition: transform 0.1s ease-out, box-shadow 0.5s var(--ease-smooth), background 0.5s var(--ease-smooth);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .skill-category {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.skill-category::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(91, 95, 255, 0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s var(--ease-smooth), transform 0.5s var(--ease-smooth);
    pointer-events: none;
}

.skill-category:hover::before {
    opacity: 1;
    transform: translate(5%, 5%);
}

.skill-category:hover:not(.tilt-card) {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 
        0 24px 80px rgba(91, 95, 255, 0.25),
        0 0 60px rgba(91, 95, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    background: rgba(26, 20, 37, 0.85);
    border-color: rgba(91, 95, 255, 0.4);
}

[data-theme="light"] .skill-category:hover {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 
        0 20px 64px rgba(91, 95, 255, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: rgba(91, 95, 255, 0.2);
}

.skill-category h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
    letter-spacing: -0.02em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.skill-tag {
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(91, 95, 255, 0.08);
    color: var(--primary-color);
    border: 1px solid rgba(91, 95, 255, 0.15);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.4s var(--ease-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    letter-spacing: -0.01em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s var(--ease-smooth);
    z-index: -1;
}

.skill-tag:hover::before {
    opacity: 1;
}

.skill-tag:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 
        0 12px 32px rgba(91, 95, 255, 0.4),
        0 0 30px rgba(91, 95, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    color: white;
    border-color: transparent;
}

/* 获奖经历 - 现代卡片设计 */
.awards-section {
    padding: var(--spacing-3xl) 0;
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

.award-card {
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    background: rgba(26, 20, 37, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    transition: transform 0.1s ease-out, box-shadow 0.5s var(--ease-smooth), background 0.5s var(--ease-smooth);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.award-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at top left, rgba(16, 185, 129, 0.15), transparent 50%);
    opacity: 0;
    transition: opacity 0.5s var(--ease-smooth);
    z-index: 0;
}

.award-card:hover::before {
    opacity: 1;
}

.award-card:hover:not(.tilt-card) {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 
        0 24px 80px rgba(16, 185, 129, 0.25),
        0 0 60px rgba(16, 185, 129, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    background: rgba(26, 20, 37, 0.85);
    border-color: rgba(16, 185, 129, 0.4);
}

.award-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-secondary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 
        0 8px 24px rgba(16, 185, 129, 0.25),
        inset 0 -2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    transition: all 0.4s var(--ease-smooth);
}

.award-card:hover .award-icon {
    transform: scale(1.1) rotate(5deg);
}

.award-icon i {
    font-size: 1.75rem;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.award-content {
    position: relative;
    z-index: 1;
}

.award-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.award-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: -0.005em;
}

/* 可点击的奖项卡片样式 */
.award-card.award-clickable {
    cursor: pointer;
    user-select: none;
}

.award-card.award-clickable:active {
    transform: translateY(-6px) scale(0.98);
}

/* 可点击/可下载的项目卡片样式 */
.project-card.project-downloadable,
.project-card.project-viewable,
.project-card.project-linkable {
    cursor: pointer;
    user-select: none;
    position: relative;
}

.project-card.project-downloadable::after,
.project-card.project-viewable::after,
.project-card.project-linkable::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--primary) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s var(--ease-smooth);
    pointer-events: none;
}

.project-card.project-downloadable:hover::after,
.project-card.project-viewable:hover::after,
.project-card.project-linkable:hover::after {
    opacity: 0.05;
}

.project-card.project-downloadable:active,
.project-card.project-viewable:active,
.project-card.project-linkable:active {
    transform: translateY(-6px) scale(0.98);
}

/* 项目提示文字 */
.project-hint {
    margin-left: auto;
    color: #9CA3AF;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    opacity: 0.7;
    transition: all 0.3s var(--ease-smooth);
    white-space: nowrap;
    padding: 6px 0;
}

.project-card:hover .project-hint {
    color: var(--primary);
    opacity: 1;
}

[data-theme="dark"] .project-hint {
    color: #6B7280;
}

/* 下载确认对话框 */
.download-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s var(--ease-smooth);
}

.download-modal.active {
    opacity: 1;
}

.download-modal-content {
    background: rgba(26, 20, 37, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 32px;
    max-width: 440px;
    width: 90%;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s var(--ease-smooth);
}

.download-modal.active .download-modal-content {
    transform: translateY(0) scale(1);
}

.download-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.download-modal-header i {
    font-size: 28px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.download-modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.download-modal-content p {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.download-modal-content p strong {
    color: var(--primary);
    font-weight: 600;
}

.download-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-btn {
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s var(--ease-smooth);
    font-family: inherit;
    /* 移除移动端点击蓝色高亮框 */
    -webkit-tap-highlight-color: transparent;
    outline: none;
    user-select: none;
    -webkit-user-select: none;
}

.cancel-btn {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

.cancel-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.confirm-btn {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(91, 95, 255, 0.3);
}

.confirm-btn:hover {
    box-shadow: 0 6px 20px rgba(91, 95, 255, 0.4);
    transform: translateY(-2px);
}

.modal-btn:active {
    transform: translateY(0) scale(0.98);
}

/* 下载提示框 */
.download-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    background: rgba(26, 20, 37, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10001;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.4s var(--ease-out-expo);
}

.download-toast.active {
    opacity: 1;
    transform: translateX(0);
}

.download-toast i {
    font-size: 20px;
}

.download-toast.success i {
    color: #10B981;
}

.download-toast.error i {
    color: #EF4444;
}

.download-toast span {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

/* 亮色主题适配 */
[data-theme="light"] .download-modal {
    background: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .download-modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .download-modal-content p {
    color: var(--text-secondary);
}

[data-theme="light"] .download-modal-content p strong {
    color: var(--primary-color);
}

[data-theme="light"] .cancel-btn {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
}

[data-theme="light"] .cancel-btn:hover {
    background: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .download-toast {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* 暗色主题适配 */
[data-theme="dark"] .download-modal-content {
    background: rgba(20, 20, 30, 0.95);
}

[data-theme="dark"] .download-modal-content p {
    color: var(--text-secondary);
}

[data-theme="dark"] .cancel-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

[data-theme="dark"] .cancel-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .download-toast {
    background: rgba(20, 20, 30, 0.95);
}

/* 项目经历 - 高级卡片设计 */
.projects-section {
    padding: var(--spacing-3xl) 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.project-card {
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    background: rgba(26, 20, 37, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    transition: transform 0.1s ease-out, box-shadow 0.5s var(--ease-smooth), background 0.5s var(--ease-smooth);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.project-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at top right, rgba(167, 139, 250, 0.15), transparent 50%);
    opacity: 0;
    transition: opacity 0.5s var(--ease-smooth);
    z-index: 0;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover:not(.tilt-card) {
    transform: translateY(-15px) scale(1.04);
    box-shadow: 
        0 28px 90px rgba(91, 95, 255, 0.3),
        0 0 70px rgba(91, 95, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    background: rgba(26, 20, 37, 0.85);
    border-color: rgba(91, 95, 255, 0.4);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-lg);
    gap: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.project-header h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.project-role {
    background: var(--gradient-primary);
    color: white;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(91, 95, 255, 0.3);
    letter-spacing: -0.005em;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
    position: relative;
    z-index: 1;
    font-size: 0.975rem;
    letter-spacing: -0.005em;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.tech-tag {
    padding: 6px 12px;
    background: rgba(91, 95, 255, 0.06);
    border: 1px solid rgba(91, 95, 255, 0.12);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--primary-color);
    transition: all 0.4s var(--ease-smooth);
    font-weight: 600;
    letter-spacing: -0.005em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.tech-tag:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-4px) scale(1.1);
    box-shadow: 
        0 12px 32px rgba(91, 95, 255, 0.4),
        0 0 30px rgba(91, 95, 255, 0.3);
    border-color: transparent;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s var(--ease-smooth);
    position: relative;
    z-index: 1;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

.project-link:hover {
    color: var(--accent-color);
    transform: translateX(8px);
}

.project-link i {
    transition: transform 0.4s var(--ease-smooth);
}

.project-link:hover i {
    transform: translateX(4px);
}

/* 实习经历 - 优雅的时间线设计 */
.experience-section {
    padding: var(--spacing-3xl) 0;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: var(--spacing-2xl) auto 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
    z-index: 0;
    pointer-events: none;
    display: none; /* 改为分段线，隐藏原始整条竖线 */
}

.timeline-item {
    position: relative;
    z-index: 1;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
}

/* 分段竖线：在每个时间项与下一项之间绘制一小段连线 */
.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 40px; /* 缩短为原来的一半，仅保留下半段的上半长度 */
    background: var(--gradient-primary);
    pointer-events: none;
    z-index: 0; /* 始终在卡片下方 */
}

/* 左右微偏移，避免视觉重叠 */
.timeline-item:nth-child(odd):not(:last-child)::after {
    left: calc(50% - 48px);
}

.timeline-item:nth-child(even):not(:last-child)::after {
    left: calc(50% + 48px);
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-date {
    flex: 0 0 140px;
    text-align: center;
    font-weight: 700;
    color: var(--primary-color);
    background: rgba(91, 95, 255, 0.08);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(91, 95, 255, 0.15);
    position: relative;
    z-index: 2;
    font-size: 0.95rem;
    letter-spacing: -0.005em;
}

.timeline-content {
    flex: 1;
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    background: rgba(26, 20, 37, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    transition: transform 0.1s ease-out, box-shadow 0.5s var(--ease-smooth), background 0.5s var(--ease-smooth);
    position: relative;
    z-index: 2;
    transform-style: preserve-3d;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.timeline-content:hover:not(.tilt-card) {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 24px 80px rgba(91, 95, 255, 0.25),
        0 0 60px rgba(91, 95, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    background: rgba(26, 20, 37, 0.85);
    border-color: rgba(91, 95, 255, 0.4);
}

.timeline-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.timeline-content .position {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    font-size: 0.975rem;
    letter-spacing: -0.005em;
}

.timeline-content .description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
    letter-spacing: -0.005em;
}

/* 教育背景 - 精致卡片设计 */
.education-section {
    padding: var(--spacing-3xl) 0;
}

.education-card {
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    background: rgba(26, 20, 37, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-2xl);
    max-width: 900px;
    margin: var(--spacing-2xl) auto 0;
    transition: transform 0.1s ease-out, box-shadow 0.5s var(--ease-smooth), background 0.5s var(--ease-smooth);
    transform-style: preserve-3d;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.education-card:hover:not(.tilt-card) {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 28px 90px rgba(91, 95, 255, 0.3),
        0 0 70px rgba(91, 95, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    background: rgba(26, 20, 37, 0.85);
    border-color: rgba(91, 95, 255, 0.4);
}

.education-info {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.education-info h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.education-info .degree {
    font-size: 1.375rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.01em;
}

.education-info .period {
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: -0.005em;
}

.courses h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
    text-align: center;
    letter-spacing: -0.01em;
}

.course-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
}

.course-tag {
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(16, 185, 129, 0.08);
    color: var(--accent-color);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.4s var(--ease-smooth);
    letter-spacing: -0.005em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.course-tag:hover {
    transform: translateY(-4px) scale(1.1);
    background: var(--gradient-secondary);
    color: white;
    box-shadow: 
        0 12px 32px rgba(16, 185, 129, 0.4),
        0 0 30px rgba(16, 185, 129, 0.3);
    border-color: transparent;
}

/* 自我评价 - 优雅展示 */
.about-section {
    padding: var(--spacing-3xl) 0;
}

.about-content {
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    background: rgba(26, 20, 37, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-2xl);
    max-width: 900px;
    margin: var(--spacing-2xl) auto 0;
    text-align: center;
    transition: transform 0.1s ease-out, box-shadow 0.5s var(--ease-smooth), background 0.5s var(--ease-smooth);
    transform-style: preserve-3d;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.about-content:hover:not(.tilt-card) {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 28px 90px rgba(91, 95, 255, 0.3),
        0 0 70px rgba(91, 95, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    background: rgba(26, 20, 37, 0.85);
    border-color: rgba(91, 95, 255, 0.4);
}

.about-content p {
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--text-secondary);
    letter-spacing: -0.005em;
    font-weight: 500;
}

/* AI聊天助手 - 现代设计 */
.ai-chatbot {
    position: fixed;
    bottom: var(--spacing-xl);
    right: var(--spacing-xl);
    z-index: 1000;
}

.chatbot-toggle {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 
        0 8px 32px rgba(91, 95, 255, 0.35),
        inset 0 -2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.5s var(--ease-smooth);
    animation: pulseSmooth 3s ease-in-out infinite;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

@keyframes pulseSmooth {
    0%, 100% {
        box-shadow: 
            0 8px 32px rgba(91, 95, 255, 0.35),
            inset 0 -2px 8px rgba(0, 0, 0, 0.15),
            0 0 0 0 rgba(91, 95, 255, 0.4);
    }
    50% {
        box-shadow: 
            0 8px 32px rgba(91, 95, 255, 0.35),
            inset 0 -2px 8px rgba(0, 0, 0, 0.15),
            0 0 0 12px rgba(91, 95, 255, 0);
    }
}

.chatbot-toggle:hover {
    transform: scale(1.12) translateY(-2px);
    box-shadow: 
        0 16px 48px rgba(91, 95, 255, 0.5),
        inset 0 -2px 8px rgba(0, 0, 0, 0.15);
}

/* AI图标样式 - 聊天气泡 */
.ai-icon {
    width: 30px;
    height: 30px;
    color: var(--primary);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
    transition: all 0.5s var(--ease-smooth);
    position: relative;
    z-index: 2;
}

.chatbot-toggle:hover .ai-icon {
    transform: scale(1.15) rotate(-8deg);
    filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.4));
}

/* AI徽章 */
.ai-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    font-size: 9px;
    font-weight: 800;
    padding: 3px 6px;
    border-radius: 8px;
    letter-spacing: 0.5px;
    box-shadow: 
        0 2px 8px rgba(16, 185, 129, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    z-index: 3;
    transition: all 0.3s var(--ease-smooth);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.chatbot-toggle:hover .ai-badge {
    transform: scale(1.15) translateY(-1px);
    box-shadow: 
        0 4px 12px rgba(16, 185, 129, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.chatbot-window {
    position: absolute;
    bottom: 84px;
    right: 0;
    width: 380px;
    height: 550px;
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    background: rgba(26, 20, 37, 0.9);
    border: 1px solid rgba(163, 139, 250, 0.2);
    border-radius: var(--radius-2xl);
    box-shadow: 
        0 24px 72px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUpSmooth 0.5s var(--ease-smooth);
}

@keyframes slideUpSmooth {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chatbot-window.active {
    display: flex;
}

.chatbot-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(26, 20, 37, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.chatbot-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.01em;
}

.close-btn {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    transition: all 0.3s var(--ease-smooth);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    transform: rotate(90deg);
}

.chatbot-messages {
    flex: 1;
    padding: var(--spacing-lg);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    scroll-behavior: smooth;
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(91, 95, 255, 0.2);
    border-radius: var(--radius-full);
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(91, 95, 255, 0.3);
}

.message {
    max-width: 85%;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    line-height: 1.5;
    letter-spacing: -0.005em;
    animation: messageSlideIn 0.4s var(--ease-smooth);
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-message {
    background: rgba(91, 95, 255, 0.08);
    border: 1px solid rgba(91, 95, 255, 0.15);
    color: var(--text-primary);
    align-self: flex-start;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.user-message {
    background: var(--gradient-primary);
    color: white;
    align-self: flex-end;
    box-shadow: 0 4px 12px rgba(91, 95, 255, 0.25);
}

.chatbot-input {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: var(--spacing-sm);
    background: rgba(26, 20, 37, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.chatbot-input input {
    flex: 1;
    padding: var(--spacing-md) var(--spacing-lg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    background: rgba(26, 20, 37, 0.8);
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s var(--ease-smooth);
    font-weight: 500;
    letter-spacing: -0.005em;
}

.chatbot-input input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(91, 95, 255, 0.2);
    background: rgba(37, 30, 53, 0.9);
}

.chatbot-input button {
    padding: var(--spacing-md);
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.4s var(--ease-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(91, 95, 255, 0.3);
}

.chatbot-input button:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 8px 24px rgba(91, 95, 255, 0.4);
}

.chatbot-input button:active {
    transform: scale(1.05);
}

/* 全局动画系统 - 现代大厂风格 */

/* 页面加载动画 */
@keyframes pageLoad {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 淡入动画 - 用于各种元素 */
@keyframes fadeInSmooth {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* 元素进入动画 - 带缩放效果 */
@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 悬浮动画 - 微妙的上下浮动 */
@keyframes floatSubtle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* 发光效果 - 用于强调元素 */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(91, 95, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(91, 95, 255, 0.5);
    }
}

/* 旋转动画 - 平滑旋转 */
@keyframes rotateSmooth {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 响应式设计 - 移动端优化 */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
    
    .hero-content h1.name {
        font-size: 3.5rem;
        letter-spacing: -0.04em;
    }
    
    .hero-content .title {
        font-size: 1.5rem;
    }
    
    .hero-content .education {
        font-size: 1.15rem;
        gap: var(--spacing-xs);
    }
    
    .hero-content .location,
    .hero-content .birth-date {
        font-size: 1.05rem;
        gap: var(--spacing-xs);
    }
    
    .section-title {
        font-size: 2.5rem;
        margin: var(--spacing-2xl) 0 var(--spacing-xl);
    }
    
    .skill-bubble {
        width: 85px;
        height: 85px;
        font-size: 0.7rem;
        padding: 6px;
    }
    
    .skill-bubble i {
        font-size: 1.2rem;
        margin-bottom: 4px;
    }
    
    .skill-bubble span {
        font-size: 0.6rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .contact-item {
        padding: var(--spacing-lg);
        gap: var(--spacing-md);
    }
    
    .contact-item i {
        font-size: 2rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .skill-category {
        padding: var(--spacing-lg);
    }
    
    .awards-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .award-card {
        padding: var(--spacing-lg);
        gap: var(--spacing-md);
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .project-card {
        padding: var(--spacing-lg);
    }
    
    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .timeline::before {
        left: 40px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        padding-left: 70px;
    }
    
    .timeline-date {
        position: absolute;
        left: -50px;
        top: 0;
        width: 80px;
        font-size: 0.8rem;
        text-align: center;
    }
    
    .education-card,
    .about-content {
        padding: var(--spacing-xl);
    }
    
    .timeline-date {
        flex: 0 0 100px;
        font-size: 0.85rem;
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .timeline-content {
        padding: var(--spacing-lg);
    }
    
    .chatbot-window {
        width: calc(100vw - 48px);
        right: -8px;
        height: 500px;
        border-radius: var(--radius-xl);
    }
    
    .ai-chatbot {
        bottom: var(--spacing-lg);
        right: var(--spacing-lg);
    }
    
    .chatbot-toggle {
        width: 56px;
        height: 56px;
    }
    
    .ai-icon {
        width: 26px;
        height: 26px;
    }
    
    .ai-badge {
        font-size: 8px;
        padding: 2px 5px;
        bottom: 1px;
        right: 1px;
    }
    
    .download-btn {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: 1rem;
        height: 52px;
        min-width: 160px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .hero-content h1.name {
        font-size: 3rem;
        letter-spacing: -0.05em;
    }
    
    .hero-content .title {
        font-size: 1.375rem;
    }
    
    .hero-content .education {
        font-size: 1.05rem;
    }
    
    .hero-content .location,
    .hero-content .birth-date {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2.25rem;
        margin: var(--spacing-xl) 0 var(--spacing-lg);
    }
    
    .skill-bubble {
        width: 75px;
        height: 75px;
        font-size: 0.65rem;
        padding: 5px;
    }
    
    .skill-bubble i {
        font-size: 1.15rem;
        margin-bottom: 2px;
    }
    
    .skill-bubble span {
        font-size: 0.55rem;
    }
    
    .skill-category {
        padding: var(--spacing-md);
    }
    
    .skill-category h3 {
        font-size: 1.25rem;
    }
    
    .award-card {
        padding: var(--spacing-md);
        flex-direction: column;
        text-align: center;
    }
    
    .award-icon {
        width: 56px;
        height: 56px;
    }
    
    .project-card {
        padding: var(--spacing-md);
    }
    
    .project-header h3 {
        font-size: 1.25rem;
    }
    
    .timeline-content,
    .education-card,
    .about-content {
        padding: var(--spacing-md);
    }
    
    .contact-item {
        padding: var(--spacing-md);
    }
    
    .chatbot-window {
        width: calc(100vw - 32px);
        right: -8px;
        height: 450px;
        border-radius: var(--radius-lg);
    }
    
    .chatbot-toggle {
        width: 52px;
        height: 52px;
    }
    
    .ai-icon {
        width: 24px;
        height: 24px;
    }
    
    .ai-badge {
        font-size: 7px;
        padding: 2px 4px;
        bottom: 0px;
        right: 0px;
    }
    
    .download-btn {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 0.95rem;
        height: 48px;
        min-width: 140px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

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

/* 移除点击时的蓝色高亮和焦点轮廓 */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 移除焦点轮廓 */
*:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* 移除按钮和链接的焦点样式 */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* 允许文本选择的元素 */
p, span, div, h1, h2, h3, h4, h5, h6 {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

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

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

/* ==================== 卡片倾斜动画效果 ==================== */
.tilt-card {
    transform-style: preserve-3d;
    transition: box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    will-change: transform;
    transform-origin: center center;
}

.tilt-card:hover {
    box-shadow: 
        0 28px 90px rgba(91, 95, 255, 0.3),
        0 0 70px rgba(91, 95, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    background: rgba(26, 20, 37, 0.85);
    border-color: rgba(91, 95, 255, 0.4);
}

/* 亮色主题下的倾斜卡片悬停效果 */
[data-theme="light"] .tilt-card:hover {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 
        0 20px 64px rgba(91, 95, 255, 0.15),
        0 0 40px rgba(91, 95, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: rgba(91, 95, 255, 0.3);
}

/* 为所有卡片类型启用倾斜效果 */
.skill-category.tilt-card,
.award-card.tilt-card,
.project-card.tilt-card,
.timeline-content.tilt-card,
.education-card.tilt-card,
.about-content.tilt-card {
    perspective: 1000px;
    cursor: pointer;
}

/* 亮色主题下所有卡片的样式 */
[data-theme="light"] .contact-item,
[data-theme="light"] .award-card,
[data-theme="light"] .project-card,
[data-theme="light"] .timeline-content,
[data-theme="light"] .education-card,
[data-theme="light"] .about-content {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

[data-theme="light"] .contact-item:hover:not(.tilt-card),
[data-theme="light"] .award-card:hover:not(.tilt-card),
[data-theme="light"] .project-card:hover:not(.tilt-card),
[data-theme="light"] .timeline-content:hover:not(.tilt-card),
[data-theme="light"] .education-card:hover:not(.tilt-card),
[data-theme="light"] .about-content:hover:not(.tilt-card) {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 
        0 20px 64px rgba(91, 95, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* 亮色主题下的聊天窗口 */
[data-theme="light"] .chatbot-window {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 
        0 24px 72px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

[data-theme="light"] .chatbot-header,
[data-theme="light"] .chatbot-input {
    background: rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .chatbot-input input {
    background: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .chatbot-input input:focus {
    background: rgba(255, 255, 255, 1);
}

/* 响应式主题切换按钮位置 */
@media (max-width: 768px) {
    .theme-toggle {
        top: 20px;
        right: 20px;
        width: 64px;
        height: 32px;
    }
    
    .theme-toggle-thumb {
        width: 24px;
        height: 24px;
    }
    
    [data-theme="light"] .theme-toggle-thumb {
        transform: translateX(32px);
    }
    
    .theme-toggle-thumb i {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .theme-toggle {
        top: 16px;
        right: 16px;
        width: 56px;
        height: 28px;
    }
    
    .theme-toggle-thumb {
        width: 20px;
        height: 20px;
    }
    
    [data-theme="light"] .theme-toggle-thumb {
        transform: translateX(28px);
    }
    
    .theme-toggle-thumb i {
        font-size: 10px;
    }
}
