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

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --border-color: #e5e7eb;
    --accent-color: #3b82f6;
    --hover-color: #1d4ed8;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.8;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    font-size: 16px;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    letter-spacing: 0.3px;
}

/* 半圆形展开转场效果 */
body::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, #000 0%, #1a1a1a 50%, #000 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    pointer-events: none;
    animation: circleExpand 2.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    box-shadow: 
        0 0 100px 50px rgba(0, 0, 0, 0.8),
        inset 0 0 100px rgba(255, 255, 255, 0.1);
}

@keyframes circleExpand {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
    }
    40% {
        width: 300vmax;
        height: 300vmax;
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(180deg);
    }
    60% {
        width: 300vmax;
        height: 300vmax;
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1) rotate(360deg);
    }
    100% {
        width: 300vmax;
        height: 300vmax;
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5) rotate(540deg);
    }
}

/* 添加光晕效果 */
body::before {
    animation: glowPulse 2.5s ease-out forwards;
}

@keyframes glowPulse {
    0% {
        filter: brightness(0) blur(0px);
    }
    40% {
        filter: brightness(0.5) blur(20px);
    }
    60% {
        filter: brightness(0.8) blur(10px);
    }
    100% {
        filter: brightness(1) blur(0px);
    }
}

/* 页面缩放淡入动画 */
body {
    animation: pageZoomIn 2.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes pageZoomIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
        filter: blur(30px);
    }
    40% {
        opacity: 0;
        transform: scale(0.5);
        filter: blur(20px);
    }
    70% {
        opacity: 1;
        transform: scale(1.05);
        filter: blur(0px);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0px);
    }
}

/* 页面背景图片样式 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.15;
    z-index: -1;
    animation: glowPulse 2.5s ease-out forwards;
}

/* 主页背景 - 马头艺术 */
body.page-index::before {
    background-image: url('images/bg-index.jpg');
}

/* 关于页背景 - 海边人物 */
body.page-about::before {
    background-image: url('images/bg-about.jpg');
}

/* 项目页背景 - 酒窖建筑 */
body.page-projects::before {
    background-image: url('images/bg-projects.jpg');
}

/* 媒体页背景 - 故障艺术猫 */
body.page-media::before {
    background-image: url('images/bg-media.jpg');
}

/* 联系页背景 - 故障艺术猫 (备用) 或钢琴 */
body.page-contact::before {
    background-image: url('images/bg-contact.jpg');
}

/* 为主要内容区域添加背景，提高可读性 */
.main-content {
    position: relative;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    isolation: isolate;
}

/* 主要内容区域的背景图片层（不透明，完整显示图片） */
.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: -2;
}

/* 主要内容区域的白色遮罩层（控制透明度） */
.main-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0);
    z-index: -1;
}

/* 为不同页面的内容区域设置对应的背景图片 */
body.page-index .main-content::before {
    background-image: url('images/bg-index.jpg');
}

body.page-about .main-content::before {
    background-image: url('images/bg-about.jpg');
}

body.page-projects .main-content::before {
    background-image: url('images/bg-projects.jpg');
}

body.page-media .main-content::before {
    background-image: url('images/bg-media.jpg');
}

body.page-contact .main-content::before {
    background-image: url('images/bg-contact.jpg');
}

/* 导航栏 */
.navbar {
    position: relative;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    overflow: hidden;
}

/* 导航栏背景图片层 */
.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: -2;
}

/* 导航栏白色遮罩层 */
.navbar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: -1;
    backdrop-filter: blur(10px);
}

/* 为不同页面的导航栏设置对应的背景图片 */
body.page-index .navbar::before {
    background-image: url('images/bg-index.jpg');
}

body.page-about .navbar::before {
    background-image: url('images/bg-about.jpg');
}

body.page-projects .navbar::before {
    background-image: url('images/bg-projects.jpg');
}

body.page-media .navbar::before {
    background-image: url('images/bg-media.jpg');
}

body.page-contact .navbar::before {
    background-image: url('images/bg-contact.jpg');
}

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

.nav-logo {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 1px;
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'SF Pro Display', sans-serif;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #4a4a4a;
    text-decoration: none;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-color);
}

/* 主内容区域 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    min-height: calc(100vh - 200px);
}

/* 英雄区域 */
.hero {
    padding: 3rem 0 10rem 0;
    text-align: center;
    margin-bottom: 6rem;
    min-height: 65vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 10vh;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    color: #1a1a1a;
    letter-spacing: -0.5px;
    font-family: 'SF Pro Display', 'PingFang SC', sans-serif;
    text-shadow: 
        0 1px 2px rgba(255, 255, 255, 0.9),
        0 4px 12px rgba(255, 255, 255, 0.7);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.85) 0%,
        rgba(255, 255, 255, 0.75) 100%
    );
    padding: 1.5rem 3rem;
    border-radius: 16px;
    display: inline-block;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 400;
    color: #2c2c2c;
    max-width: 700px;
    margin: 0 auto;
    letter-spacing: 2px;
    font-family: 'SF Pro Text', 'PingFang SC', sans-serif;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.9);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.75) 0%,
        rgba(255, 255, 255, 0.65) 100%
    );
    padding: 0.8rem 2rem;
    border-radius: 12px;
    display: inline-block;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* 项目卡片 */
.featured-projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.project-card {
    position: relative;
    padding: 1.5rem;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--border-color);
    overflow: hidden;
    isolation: isolate;
    transform: scale(0.85);
}

/* 项目卡片背景图片 */
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 1;
    z-index: -2;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.75);
    z-index: -1;
}

body.page-index .project-card::before {
    background-image: url('images/bg-index.jpg');
}

body.page-about .project-card::before {
    background-image: url('images/bg-about.jpg');
}

body.page-projects .project-card::before {
    background-image: url('images/bg-projects.jpg');
}

body.page-media .project-card::before {
    background-image: url('images/bg-media.jpg');
}

body.page-contact .project-card::before {
    background-image: url('images/bg-contact.jpg');
}

.project-card:hover {
    transform: scale(0.88) translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.project-title {
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: -0.3px;
    margin-bottom: 0.6rem;
    color: #1a1a1a;
    font-family: 'SF Pro Display', sans-serif;
}

.project-description {
    color: #5a5a5a;
    line-height: 1.6;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}

/* 博客区域 */
.blog-section {
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.blog-card {
    position: relative;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    isolation: isolate;
    transform: scale(0.85);
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 1;
    z-index: -2;
}

.blog-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.75);
    z-index: -1;
}

body.page-index .blog-card::before,
body.page-media .blog-card::before {
    background-image: url('images/bg-index.jpg');
}

body.page-about .blog-card::before {
    background-image: url('images/bg-about.jpg');
}

body.page-projects .blog-card::before {
    background-image: url('images/bg-projects.jpg');
}

body.page-contact .blog-card::before {
    background-image: url('images/bg-contact.jpg');
}

.blog-tag {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.blog-title {
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: -0.4px;
    margin-bottom: 0.6rem;
    color: #1a1a1a;
    font-family: 'SF Pro Display', sans-serif;
}

.blog-excerpt {
    color: #5a5a5a;
    margin-bottom: 0.8rem;
    line-height: 1.7;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}

.blog-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.blog-link:hover {
    color: var(--hover-color);
}

.blog-date {
    display: block;
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* 订阅区域 */
.newsletter {
    position: relative;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    color: white;
    overflow: hidden;
    isolation: isolate;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    transform: scale(0.9);
}

.newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    opacity: 0.95;
    z-index: -1;
}

.newsletter-title {
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: -0.5px;
    margin-bottom: 0.8rem;
    font-family: 'SF Pro Display', sans-serif;
}

.newsletter-description {
    margin-bottom: 2rem;
    opacity: 0.95;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    font-weight: 300;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 0.9rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.newsletter-button {
    padding: 0.9rem 2.5rem;
    background-color: white;
    color: var(--primary-color);
    border: none;
    border-radius: 12px;
    font-weight: 400;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'SF Pro Text', sans-serif;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.newsletter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.95);
}

/* 页面标题 */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 3rem;
    font-weight: 200;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    font-family: 'SF Pro Display', sans-serif;
}

.page-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    color: #5a5a5a;
    letter-spacing: 0.8px;
}

/* 关于页面 */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.about-intro h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.about-section {
    margin-bottom: 3rem;
}

.about-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    list-style: none;
}

.skills-list li {
    background-color: var(--bg-secondary);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.timeline-date {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

/* 项目网格 */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.project-item {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.tag {
    background-color: var(--bg-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    border: 1px solid var(--border-color);
}

.project-link-btn {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.project-link-btn:hover {
    color: var(--hover-color);
}

/* 媒体页面 */
.media-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.music-widget {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    height: fit-content;
}

.music-widget h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.album-cover-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1rem;
}

.music-info {
    text-align: center;
}

.song-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.artist-name {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.status {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.articles-list h3 {
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.article-card {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.article-meta {
    margin-bottom: 0.5rem;
}

.article-date {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.article-card h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--hover-color);
}

/* 联系页面 */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

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

.contact-card {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-card a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.social-links {
    list-style: none;
}

.social-links li {
    margin-bottom: 0.5rem;
}

.contact-form-container {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.contact-form-container h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-button {
    padding: 0.75rem 2rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-button:hover {
    background-color: var(--hover-color);
    transform: scale(1.02);
}

/* 页脚 */
.footer {
    position: relative;
    border-top: 1px solid var(--border-color);
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 1;
    z-index: -2;
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(249, 250, 251, 0.95);
    z-index: -1;
}

body.page-index .footer::before {
    background-image: url('images/bg-index.jpg');
}

body.page-about .footer::before {
    background-image: url('images/bg-about.jpg');
}

body.page-projects .footer::before {
    background-image: url('images/bg-projects.jpg');
}

body.page-media .footer::before {
    background-image: url('images/bg-media.jpg');
}

body.page-contact .footer::before {
    background-image: url('images/bg-contact.jpg');
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .hero {
        padding: 4rem 0 3rem 0;
        min-height: 50vh;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .featured-projects {
        grid-template-columns: 1fr;
    }

    .project-card,
    .blog-card {
        transform: scale(0.95);
    }

    .newsletter {
        transform: scale(0.95);
    }

    .newsletter-form {
        flex-direction: column;
    }

    .media-section,
    .contact-section {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .main-content {
        padding: 2rem 1rem;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card,
.blog-card,
.article-card,
.contact-card {
    animation: fadeIn 0.6s ease-out;
}

