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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* ===== CSS变量 - 主要修改颜色增强对比度 ===== */
:root {
    /* 主色调 - 增强对比度 */
    --primary-color: #2D8CFF;
    --secondary-color: #FF6B35;
    --accent-color: #00CC88;
    --dark-bg: #05050A; /* 更深的背景色 */
    --darker-bg: #030305; /* 更深 */
    --card-bg: rgba(20, 23, 32, 0.95); /* 提高卡片亮度增强对比 */
    --card-border: rgba(255, 255, 255, 0.18); /* 增强边框可见度 */
    --text-light: #FFFFFF;
    --text-gray: #B8C7E8; /* 更亮的灰色提高可读性 */
    --text-muted: #7A8BB3;
    
    /* 霓虹效果 - 增强 */
    --neon-blue: rgba(45, 140, 255, 0.5);
    --neon-orange: rgba(255, 107, 53, 0.5);
    --neon-green: rgba(0, 204, 136, 0.5);
    
    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), #6A11CB);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), #FF416C);
    --gradient-accent: linear-gradient(135deg, var(--accent-color), #00B09B);
    
    /* 字体 */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* 间距 - 调整为更紧凑 */
    --spacing-xs: 0.4rem;
    --spacing-sm: 0.6rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 2.5rem; /* 减小 */
    
    /* 圆角 */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-full: 999px;
    
    /* 阴影 - 增强卡片效果 */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.7);
    --shadow-neon: 0 0 20px var(--neon-blue);
    
    /* 边框 - 增强 */
    --border-thin: 1px solid var(--card-border);
    --border-medium: 1.5px solid var(--card-border);
    --border-neon: 2px solid var(--primary-color);
}

/* ===== 基础样式 ===== */
body {
    font-family: var(--font-body);
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* 动态网格背景 - 调整为更暗 */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: 
        linear-gradient(rgba(45, 140, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 140, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black, transparent 70%);
}

/* ===== 通用容器 ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===== 通用卡片样式 - 增强 ===== */
.card {
    background: var(--card-bg);
    border: var(--border-medium);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), var(--shadow-neon);
}

/* ===== 渐变文字 ===== */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text.reverse {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== 通用标题 ===== */
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
}

.section-subtitle {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    color: var(--text-gray);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-lg);
    background: rgba(5, 5, 10, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: var(--spacing-xs) var(--spacing-lg);
    background: rgba(5, 5, 10, 0.98);
    box-shadow: var(--shadow-md);
}

/* Logo样式 */
.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 2px;
}

.logo-text {
    color: var(--primary-color);
}

.logo-number {
    color: var(--secondary-color);
    font-weight: 800;
}

.logo-ext {
    color: var(--text-gray);
    font-size: 0.9em;
}

/* 桌面导航 */
.desktop-nav {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .navbar {
        justify-content: center;
    }
}

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--text-light);
}

.nav-link:hover::after {
    width: 70%;
}

/* ===== Hero区域 ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--spacing-xxl) var(--spacing-md);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0.08;
    filter: blur(80px);
    z-index: -1;
}

.hero-subtitle {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-size: clamp(0.85rem, 2vw, 1rem);
    letter-spacing: 4px;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    margin: var(--spacing-sm) 0 var(--spacing-md);
    line-height: 1.1;
}

.hero-title-separator {
    display: inline-block;
    margin: 0 var(--spacing-sm);
    color: var(--text-light);
}

.hero-tagline {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: var(--text-gray);
    max-width: 650px;
    margin: 0 auto var(--spacing-lg);
    line-height: 1.7;
}

/* ===== 作品集区域 ===== */
.projects-section {
    padding: var(--spacing-xxl) 0;
    position: relative;
}

/* 增强渐变分割线效果并减少上下间距 */
.projects-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), var(--primary-color), transparent);
    margin: var(--spacing-lg) 0;
}

/* 项目卡片 - 增强边界和对比度 */
.project-card {
    background: var(--card-bg);
    border: var(--border-medium);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.project-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), var(--shadow-neon);
}

/* 修复年份换行问题 - 确保所有项目头部横向排列 */
.project-header.no-wrap {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.project-year.nowrap {
    white-space: nowrap;
    min-width: 60px;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.project-badge {
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-badge.primary {
    background: rgba(45, 140, 255, 0.15);
    color: var(--primary-color);
    border: 1px solid rgba(45, 140, 255, 0.3);
    box-shadow: 0 0 10px rgba(45, 140, 255, 0.2);
}

.project-badge.secondary {
    background: rgba(255, 107, 53, 0.15);
    color: var(--secondary-color);
    border: 1px solid rgba(255, 107, 53, 0.3);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.2);
}

.project-badge.tertiary {
    background: rgba(0, 204, 136, 0.15);
    color: var(--accent-color);
    border: 1px solid rgba(0, 204, 136, 0.3);
    box-shadow: 0 0 10px rgba(0, 204, 136, 0.2);
}

.project-year {
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
}

/* 修改：所有项目卡片统一为对称布局 */
.project-content {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 统一为对称布局 */
    gap: var(--spacing-lg);
}

@media (max-width: 768px) {
    .project-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

/* 项目信息 */
.project-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.project-description {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
    font-size: 1rem;
}

/* 技术标签 */
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.tech-tag {
    padding: var(--spacing-xs) var(--spacing-sm);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-light);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-family: var(--font-heading);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 140, 255, 0.3);
}

/* 项目链接 */
.project-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(45, 140, 255, 0.1);
    border: 1px solid rgba(45, 140, 255, 0.3);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.project-link:hover {
    background: var(--primary-color);
    color: var(--text-light);
    gap: var(--spacing-md);
    box-shadow: 0 5px 20px rgba(45, 140, 255, 0.3);
    transform: translateY(-2px);
}

/* 项目预览 */
.project-preview {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 60秒读世界预览 */
.preview-frame {
    width: 100%;
    max-width: 300px;
    background: var(--darker-bg);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-sm);
}

.preview-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.news-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.news-item:hover {
    background: rgba(45, 140, 255, 0.1);
    border-color: rgba(45, 140, 255, 0.3);
    transform: translateX(5px);
}

.news-time {
    color: var(--primary-color);
    font-size: 0.8rem;
    font-family: var(--font-heading);
    min-width: 45px;
    font-weight: 500;
}

.news-title {
    color: var(--text-gray);
    font-size: 0.9rem;
    flex-grow: 1;
    line-height: 1.4;
}

.news-dot {
    width: 8px;
    height: 8px;
    background: var(--secondary-color);
    border-radius: 50%;
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1); }
}

/* 手机模拟器 - 进一步缩小尺寸 */
.phone-mockup {
    width: 160px; /* 进一步减小宽度 */
    height: 320px; /* 按比例减小高度 */
    background: linear-gradient(145deg, #111, #222);
    border-radius: 20px; /* 相应减小圆角 */
    position: relative;
    border: 8px solid #1a1a1a; /* 减小边框 */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
    margin: 0 auto; /* 居中 */
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px; /* 减小宽度 */
    height: 14px; /* 减小高度 */
    background: #1a1a1a;
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px;
    z-index: 2;
}

.phone-screen {
    position: absolute;
    top: 14px; /* 调整位置 */
    left: 4px; /* 调整位置 */
    right: 4px; /* 调整位置 */
    bottom: 4px; /* 调整位置 */
    background: #000;
    border-radius: 16px; /* 减小圆角 */
    overflow: hidden;
    padding: var(--spacing-sm); /* 减小内边距 */
    display: flex;
    flex-direction: column;
}

.app-header {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 0.7rem; /* 减小字体 */
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-heading);
}

.app-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs); /* 减小间距 */
    flex-grow: 1;
    justify-content: center;
}

.app-news {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.app-news-item {
    padding: var(--spacing-xs); /* 减小内边距 */
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    color: var(--text-gray);
    font-size: 0.8rem; /* 减小字体 */
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.app-news-item:hover {
    background: rgba(255, 107, 53, 0.1);
    color: var(--text-light);
    border-color: rgba(255, 107, 53, 0.3);
}

/* ===== 每日金价观察站预览 ===== */
.gold-chart-preview {
    width: 100%;
    max-width: 300px;
    background: var(--darker-bg);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-sm);
}

.chart-header {
    margin-bottom: var(--spacing-sm);
    text-align: center;
}

.chart-title {
    font-family: var(--font-heading);
    color: #FFD700;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.chart-subtitle {
    font-size: 0.75rem;
    color: rgba(255, 215, 0, 0.6);
}

.chart-container {
    position: relative;
    height: 120px;
    margin-bottom: var(--spacing-sm);
    overflow: hidden;
}

.chart-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.grid-line {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
}

.chart-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.data-point {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #FFD700;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    z-index: 2;
}

/* 折线连接点 */
.chart-line::before {
    content: '';
    position: absolute;
    top: 60%;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(255, 215, 0, 0.3) 0%,
        rgba(255, 215, 0, 0.8) 50%,
        rgba(255, 215, 0, 0.3) 100%);
    transform-origin: left center;
    transform: rotate(-2deg);
}

.chart-line::after {
    content: '';
    position: absolute;
    top: 40%;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(255, 215, 0, 0.3) 0%,
        rgba(255, 215, 0, 0.8) 50%,
        rgba(255, 215, 0, 0.3) 100%);
    transform-origin: left center;
    transform: rotate(1deg);
}

/* 数据点位置 - 形成上升趋势 */
.point-1 { top: 60%; left: 10%; }
.point-2 { top: 50%; left: 25%; }
.point-3 { top: 40%; left: 40%; }
.point-4 { top: 30%; left: 55%; }
.point-5 { top: 45%; left: 70%; }
.point-6 { top: 35%; left: 85%; }

.time-axis {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 5px;
}

.time-axis span {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
}

.chart-footer {
    display: flex;
    justify-content: center;
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.chart-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.gold-dot {
    background: #FFD700;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.chart-indicator span {
    font-size: 0.8rem;
    color: rgba(255, 215, 0, 0.8);
    font-family: var(--font-heading);
}

/* ===== 技术栈区域 ===== */
.skills-section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

/* 调整渐变分割线上下间距 */
.skills-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), var(--primary-color), transparent);
    margin: var(--spacing-md) 0;
}

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

/* 技能分类 - 增强边界和对比度 */
.skill-category {
    background: var(--card-bg);
    border: var(--border-medium);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0.7;
}

.skill-category:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), var(--shadow-neon);
}

.category-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.category-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
    background: rgba(45, 140, 255, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
}

.category-header h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-light);
}

/* 技能项 */
.skill-items {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.skill-name {
    display: flex;
    justify-content: space-between;
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-xs);
}

.skill-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.skill-level {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 1.5s ease;
    position: relative;
    overflow: hidden;
}

.skill-level::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ===== 关于我区域 ===== */
.about-section {
    padding: var(--spacing-lg) 0; /* 减少垂直间距 */
    position: relative;
}

/* 调整渐变分割线上下间距 */
.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--secondary-color), transparent);
    margin: var(--spacing-sm) 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md); /* 减少间距 */
    align-items: center;
    margin-top: var(--spacing-md); /* 减少上边距 */
    text-align: center;
}

.about-text {
    max-width: 700px;
    margin: 0 auto;
}

.about-paragraph {
    color: var(--text-gray);
    line-height: 1.7; /* 减少行高 */
    margin-bottom: var(--spacing-sm); /* 减少段落间距 */
    font-size: 1rem; /* 稍微减小字体 */
    text-align: left;
    text-indent: 0; /* 确保不覆盖HTML空格 */
    white-space: normal; /* 确保HTML空格正常显示 */
}

.about-paragraph:last-child {
    margin-bottom: 0; /* 最后一段不需要下边距 */
}

/* ===== 页脚区域 ===== */
.footer {
    padding: var(--spacing-md) 0 var(--spacing-sm); /* 减少垂直间距 */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(8, 8, 12, 0.9); /* 加深背景增强对比 */
    position: relative;
}

/* 邮箱区域在页脚中的样式 - 整体缩小 */
.footer-email-section {
    max-width: 500px; /* 减小最大宽度 */
    margin: 0 auto;
    margin-bottom: var(--spacing-md); /* 减少下边距 */
}

.footer .contact-item {
    display: flex;
    gap: var(--spacing-md);
    background: var(--card-bg);
    border: var(--border-medium);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md); /* 减少内边距 */
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    align-items: center;
    box-shadow: var(--shadow-sm);
    flex-direction: column;
    text-align: center;
}

.footer .contact-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md), 0 0 20px var(--neon-blue);
}

.footer .contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px; /* 缩小 */
    height: 50px; /* 缩小 */
    background: rgba(45, 140, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--primary-color);
    font-size: 1.3rem; /* 缩小 */
    flex-shrink: 0;
    margin-bottom: var(--spacing-xs);
}

.footer .contact-details {
    flex: 1;
}

.footer .contact-details h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem; /* 缩小 */
    color: var(--text-light);
    margin-bottom: var(--spacing-xs);
}

.footer .contact-details p {
    color: var(--text-gray);
    font-size: 0.9rem; /* 缩小 */
    margin-bottom: var(--spacing-sm);
    line-height: 1.5;
}

/* 邮箱按钮 - 进一步缩小 */
.email-button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(45, 140, 255, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(45, 140, 255, 0.3);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.9rem; /* 缩小 */
    margin-bottom: var(--spacing-xs);
}

.email-button:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 140, 255, 0.3);
}

.email-hint {
    color: var(--text-muted);
    font-size: 0.8rem; /* 调整为0.8rem */
    margin-top: var(--spacing-xs);
    font-style: italic;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.8rem; /* 统一调整为0.8rem */
}

/* ===== 弹窗通知 ===== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--card-bg);
    border: 1px solid var(--primary-color);
    backdrop-filter: blur(20px);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 40px rgba(45, 140, 255, 0.25);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    max-width: 300px;
    width: 90%;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-icon {
    color: var(--accent-color);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toast-content h4 {
    color: var(--text-light);
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
}

/* ===== 动画类 ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    /* Hero区域移动端优化 */
    .hero {
        padding: 120px var(--spacing-sm) var(--spacing-xl);
        min-height: 90vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .navbar {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: var(--spacing-sm);
    }
    
    /* 项目卡片移动端优化 - 全宽显示 */
    .project-card {
        width: 95%;
        margin-left: auto;
        margin-right: auto;
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-lg);
    }
    
    /* 所有项目头部在移动端都保持横向排列 */
    .project-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: normal;
        width: 100%;
    }
    
    .project-year {
        align-self: center;
        margin-top: 0;
    }
    
    /* 修复移动端年份换行 - 所有项目都保持横向 */
    .project-header.no-wrap {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        align-items: center;
    }
    
    /* 技能网格移动端优化 */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .skill-category {
        width: 95%;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* 关于我移动端优化 */
    .about-paragraph {
        font-size: 0.95rem;
        line-height: 1.6;
        padding: 0 var(--spacing-sm);
        text-indent: 0;
    }
    
    /* 页脚邮箱移动端优化 */
    .footer .contact-item {
        width: 95%;
        margin-left: auto;
        margin-right: auto;
        padding: var(--spacing-md);
    }
    
    .footer .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    /* 弹窗移动端优化 */
    .toast {
        bottom: 20px;
        width: 95%;
        max-width: none;
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    /* 页脚移动端优化 */
    .footer {
        padding: var(--spacing-md) 0 var(--spacing-sm);
    }
    
    .footer-copyright {
        font-size: 0.75rem;
    }
    
    .email-hint {
        font-size: 0.75rem;
    }
    
    /* 金价图表预览移动端优化 */
    .gold-chart-preview {
        max-width: 280px;
    }
    
    .chart-container {
        height: 100px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    /* 项目卡片超小屏幕优化 */
    .project-card {
        width: 100%;
        padding: var(--spacing-md);
    }
    
    .project-content {
        gap: var(--spacing-md);
    }
    
    .project-tech {
        gap: var(--spacing-xs);
    }
    
    .tech-tag {
        font-size: 0.8rem;
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    /* 关于我超小屏幕优化 */
    .about-paragraph {
        font-size: 0.9rem;
        line-height: 1.6;
        padding: 0 var(--spacing-sm);
    }
    
    /* 页脚邮箱超小屏幕优化 */
    .footer .contact-item {
        padding: var(--spacing-sm);
        width: 100%;
    }
    
    .email-button {
        font-size: 0.85rem;
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    /* 页脚超小屏幕优化 */
    .footer-copyright {
        font-size: 0.7rem;
    }
    
    .email-hint {
        font-size: 0.7rem;
    }
    
    /* 金价图表预览超小屏幕优化 */
    .gold-chart-preview {
        max-width: 260px;
        padding: var(--spacing-sm);
    }
    
    .chart-title {
        font-size: 0.9rem;
    }
    
    .chart-subtitle {
        font-size: 0.7rem;
    }
    
    .chart-container {
        height: 90px;
    }
}

/* 防止FOUC */
.js-loading * {
    transition: none !important;
}