/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS变量定义 */
:root {
    /* 颜色变量 */
    --primary-color: #4a90e2;
    --primary-hover: #357abd;
    --secondary-color: #f39c12;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f1c40f;
    --danger-color: #e74c3c;
    
    /* 背景颜色 */
    --bg-primary: rgba(255, 255, 255, 0.95);
    --bg-secondary: rgba(248, 249, 250, 0.9);
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-overlay: rgba(0, 0, 0, 0.3);
    
    /* 文字颜色 */
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --text-muted: #95a5a6;
    --text-white: #ffffff;
    
    /* 边框和阴影 */
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.2);
    
    /* 间距 */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    
    /* 字体 */
    --font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    
    /* 过渡动画 */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* 圆角 */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --border-radius-full: 50%;
    
    /* 导航栏高度 */
    --navbar-height: 80px;
}

/* 暗色主题变量 */
.dark-theme {
    --bg-primary: rgba(30, 30, 30, 0.95);
    --bg-secondary: rgba(40, 40, 40, 0.9);
    --bg-card: rgba(45, 45, 45, 0.9);
    --bg-overlay: rgba(0, 0, 0, 0.6);
    
    --text-primary: #ecf0f1;
    --text-secondary: #bdc3c7;
    --text-muted: #95a5a6;
    
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.5);
}

/* 暗色主题下的导航栏样式 */
.dark-theme .top-navbar {
    /* 初始状态由JavaScript动态设置，这里提供默认值 */
    background: rgba(42, 42, 42, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 暗色主题下滚动状态的导航栏样式 - 主要由JavaScript控制 */
.dark-theme .top-navbar.scrolled {
    /* 这些样式主要用作备用，实际效果由JavaScript动态控制 */
}

.dark-theme .profile-card {
    background: rgba(30, 30, 30, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.15);
}

/* 基础样式 */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
    padding-top: var(--navbar-height);
    transition: all var(--transition-normal);
}

/* 背景样式 */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px);
    transform: scale(1.1);
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    z-index: 1;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* 顶部导航栏样式 */
.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    /* 初始状态由JavaScript动态设置，这里提供默认值 */
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.2) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    /* 移除transition，因为JavaScript会直接控制样式变化 */
    /* transition: all 0.3s ease; */
}

/* 保留scrolled类用于兼容性，但主要样式由JavaScript控制 */
.top-navbar.scrolled {
    /* 这些样式主要用作备用，实际效果由JavaScript动态控制 */
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-lg);
}

/* 品牌标识 */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: var(--font-size-lg);
    transition: all var(--transition-fast);
}

/* 品牌文字样式优化 */
.brand-text {
    font-weight: 700;
    letter-spacing: 1px;
    /* 亮色主题下的文字颜色 - 深色以确保可读性 */
    color: #1a1a1a;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8), 
                 0 0 10px rgba(255, 255, 255, 0.5);
}

/* 暗色主题下的品牌文字 */
.dark-theme .brand-text {
    color: #ecf0f1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 
                 0 0 10px rgba(0, 0, 0, 0.5);
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-full);
    object-fit: cover;
    border: 2px solid var(--primary-color);
    transition: all var(--transition-fast);
}


.navbar-brand:hover .brand-logo {
    transform: rotate(360deg) scale(1.1);
}

/* 桌面端导航菜单 */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-normal);
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: rgba(74, 144, 226, 0.1);
    transform: translateY(-2px);
}

.nav-link i {
    font-size: var(--font-size-base);
}

/* 导航栏右侧控制区 */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

/* 主题切换按钮 */
.theme-toggle {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: var(--border-radius-full);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    order: 2; /* 主题按钮在右边 */
    flex-shrink: 0; /* 防止按钮被压缩 */
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary-color);
    border-radius: var(--border-radius-full);
    transition: all var(--transition-fast);
    transform: translate(-50%, -50%);
    opacity: 0.1;
}

.theme-toggle:hover::before {
    width: 100%;
    height: 100%;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-medium);
}

.theme-toggle:active {
    transform: scale(0.95);
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: var(--border-radius-full); /* 改为圆形，与主题按钮统一 */
    background: var(--bg-card);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px; /* 适中的间距 */
    box-shadow: var(--shadow-light);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    order: 1; /* 汉堡菜单在左边 */
    flex-shrink: 0; /* 防止按钮被压缩 */
}

/* 为汉堡菜单添加与主题按钮相同的悬停效果 */
.mobile-menu-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary-color);
    border-radius: var(--border-radius-full);
    transition: all var(--transition-fast);
    transform: translate(-50%, -50%);
    opacity: 0.1;
}

.mobile-menu-toggle:hover::before {
    width: 100%;
    height: 100%;
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-medium);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

.hamburger-line {
    width: 18px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1; /* 确保线条在悬停效果之上 */
}

/* 激活状态 - 三条杠变成一条杠 */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(5px) scaleX(0.8);
    opacity: 0.3;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    transform: scaleX(1);
    opacity: 1;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-5px) scaleX(0.8);
    opacity: 0.3;
}

/* 移动端导航菜单 */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 240px;
    height: 100vh;
    /* 移除毛玻璃效果，增强背景不透明度 */
    background: rgba(255, 255, 255, 0.95);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
}

/* 暗色主题下的移动端导航菜单 */
.dark-theme .mobile-nav {
    background: rgba(30, 30, 30, 0.85);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-content {
    padding: calc(var(--navbar-height) + var(--spacing-lg)) var(--spacing-lg) var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    min-height: 100%;
}

/* 添加菜单遮罩层 */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: var(--font-size-base);
    border-radius: var(--border-radius-lg);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius-lg);
}

.mobile-nav-link i {
    font-size: var(--font-size-lg);
    width: 20px;
    text-align: center;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.mobile-nav-link:hover i,
.mobile-nav-link.active i {
    color: var(--primary-color);
}

/* 主容器 */
.container {
    min-height: calc(100vh - var(--navbar-height));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

/* 个人资料卡片 */
.profile-card {
    /* 亮色主题毛玻璃效果 - 添加白色底色 */
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.35) 0%,
        rgba(255, 255, 255, 0.25) 100%);
    /* 移除毛玻璃效果以提升性能 */
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-xxl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.3);
    text-align: center;
    max-width: 500px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

/* 暗色主题下个人资料卡片 - 添加深色底色 */
.dark-theme .profile-card {
    background: linear-gradient(135deg, 
        rgba(30, 30, 30, 0.35) 0%, 
        rgba(20, 20, 20, 0.25) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.15);
}

/* 亮色主题下个人资料卡片的文字颜色优化 */
.profile-card .profile-name {
    color: #1a1a1a;
}

.profile-card .profile-subtitle {
    color: #2c3e50;
}

.profile-card .profile-description {
    color: #34495e;
}

/* 暗色主题下个人资料卡片的文字颜色 */
.dark-theme .profile-card .profile-name {
    color: #ecf0f1;
}

.dark-theme .profile-card .profile-subtitle {
    color: #bdc3c7;
}

.dark-theme .profile-card .profile-description {
    color: #95a5a6;
}


.profile-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* 头像容器 */
.avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: var(--spacing-xl);
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: var(--border-radius-full);
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: var(--shadow-medium);
    transition: all 0.8s ease !important;
    cursor: pointer;
}

.avatar:hover {
    transform: scale(1.05) rotate(360deg) !important;
    box-shadow: var(--shadow-heavy) !important;
}


/* 个人信息 */
.profile-info {
    margin-bottom: var(--spacing-xl);
}

.profile-name {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.profile-description {
    font-size: var(--font-size-base);
    color: var(--text-muted);
    margin-top: var(--spacing-md);
    line-height: 1.8;
}

/* 社交链接 */
.social-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-full);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary-color);
    border-radius: var(--border-radius-full);
    transition: all var(--transition-fast);
    transform: translate(-50%, -50%);
    opacity: 0.1;
}

.social-link:hover::before {
    width: 100%;
    height: 100%;
}

.social-link:hover {
    color: var(--text-white);
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-medium);
}

.social-link i {
    font-size: var(--font-size-xl);
    z-index: 1;
    position: relative;
}

/* QQ链接特殊颜色 */
.social-link[title="QQ"]:hover {
    background: #12b7f5;
}

/* 邮箱链接特殊颜色 */
.social-link[title="邮箱"]:hover {
    background: #ea4335;
}

/* GitHub链接特殊颜色 */
.social-link[title="GitHub"]:hover {
    background: #333;
}


/* 页脚 */
.footer {
    text-align: center;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    line-height: 1.8;
    padding: var(--spacing-xl) 0;
    border-top: 1px solid var(--border-color);
    margin-top: var(--spacing-xl);
    width: 100%;
    align-self: stretch; /* 确保在flex容器中占据全宽 */
}

.footer p {
    margin-bottom: var(--spacing-sm);
}

.footer p:last-child {
    margin-bottom: 0;
}

/* ICP备案号样式优化 */
.footer a {
    color: inherit; /* 继承父元素的文字颜色 */
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
}

.footer a:hover {
    color: var(--text-secondary);
    border-bottom-color: var(--text-secondary);
    text-decoration: none;
}

/* 页脚内容分组样式 */
.footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    align-items: center;
}

/* 页脚分隔符 */
.footer-divider {
    display: inline-block;
    margin: 0 var(--spacing-xs);
    color: var(--border-color);
    font-weight: 300;
}

/* 页脚图标样式 */
.footer-icon {
    display: inline-block;
    margin-right: var(--spacing-xs);
    opacity: 0.7;
    font-size: 0.9em;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: var(--spacing-xl);
    right: var(--spacing-xl);
    width: 50px;
    height: 50px;
    border: none;
    border-radius: var(--border-radius-full);
    background: var(--primary-color);
    color: var(--text-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-medium);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-heavy);
}

.back-to-top:active {
    transform: translateY(-1px) scale(0.95);
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: var(--border-radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* 选择文本样式 */
::selection {
    background: var(--primary-color);
    color: var(--text-white);
}

::-moz-selection {
    background: var(--primary-color);
    color: var(--text-white);
}

/* 焦点样式 */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-card {
    animation: fadeInUp 0.8s ease-out;
}

/* 响应式图片 */
img {
    max-width: 100%;
    height: auto;
}

/* 无障碍访问增强 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000;
        --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.5);
        --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.6);
        --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.7);
    }
}

/* 邮箱弹窗样式 */
.email-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
}

.email-modal.show {
    display: flex;
}

.email-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* 移除毛玻璃效果，增强背景不透明度 */
    animation: fadeIn 0.3s ease;
}

.email-modal-content {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-heavy);
    max-width: 400px;
    width: 100%;
    overflow: hidden;
    animation: slideUp 0.3s ease;
    border: 1px solid var(--border-color);
}

.email-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.email-modal-header h3 {
    margin: 0;
    font-size: var(--font-size-lg);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.email-modal-header h3 i {
    color: var(--primary-color);
}

.email-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.email-modal-close:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.email-modal-body {
    padding: var(--spacing-lg);
}

.email-display {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
}

.email-display input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    outline: none;
    user-select: all;
}

.copy-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--primary-color);
    color: white;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.copy-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

.copy-btn:active {
    transform: scale(0.95);
}

.email-tip {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    line-height: 1.5;
}

.email-actions {
    display: flex;
    gap: var(--spacing-md);
}

.email-action-btn {
    flex: 1;
    padding: var(--spacing-md);
    border: none;
    border-radius: var(--border-radius-lg);
    font-size: var(--font-size-base);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.copy-action {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.copy-action:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.send-action {
    background: var(--primary-color);
    color: white;
}

.send-action:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* 弹窗动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 联系区域样式 */
.contact-section {
    margin-top: var(--spacing-lg);
    width: 100%;
}

.contact-category {
    margin-bottom: var(--spacing-lg);
}

.contact-category:last-child {
    margin-bottom: 0;
}

.category-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.category-title::before,
.category-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
    max-width: 60px;
}

.category-title i {
    color: var(--primary-color);
    font-size: var(--font-size-sm);
}

/* 重新定义社交链接布局 */
.social-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin: 0;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-full);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    text-decoration: none;
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: all var(--transition-normal);
    z-index: 0;
}

.social-link:hover::before {
    opacity: 0.1;
}

.social-link:hover {
    border-color: var(--primary-color);
}

.social-link i {
    font-size: var(--font-size-2xl);
    z-index: 1;
    position: relative;
    transition: all var(--transition-fast);
}

.link-label {
    display: none;
}

/* 特定平台的悬停颜色 */
.social-link.github:hover {
    color: #333;
}

.social-link.github:hover::before {
    background: #333;
    opacity: 0.15;
}

.social-link.bilibili:hover {
    color: #fb7299;
}

.social-link.bilibili:hover::before {
    background: #fb7299;
    opacity: 0.15;
}

.social-link.qq:hover {
    color: #12b7f5;
}

.social-link.qq:hover::before {
    background: #12b7f5;
    opacity: 0.15;
}

.social-link.email:hover {
    color: #ea4335;
}

.social-link.email:hover::before {
    background: #ea4335;
    opacity: 0.15;
}

.social-link.douyin:hover {
    color: #000;
}

.social-link.douyin:hover::before {
    background: #000;
    opacity: 0.15;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .email-modal-content {
        margin: var(--spacing-md);
        max-width: none;
    }
    
    .email-actions {
        flex-direction: column;
    }
    
    .contact-category {
        margin-bottom: var(--spacing-lg);
    }
    
    .social-link {
        width: 60px;
        height: 60px;
    }
    
    .social-link i {
        font-size: var(--font-size-lg);
    }
    
    .link-label {
        font-size: 10px;
    }
    
    .category-title {
        font-size: var(--font-size-sm);
    }
}

/* 打印样式 */
@media print {
    .top-navbar,
    .theme-toggle,
    .back-to-top,
    .mobile-nav,
    .particles,
    .email-modal {
        display: none !important;
    }
    
    body {
        padding-top: 0;
        background: white !important;
        color: black !important;
    }
    
    .background {
        display: none;
    }
    
    .profile-card {
        background: white !important;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}
