/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 背景光点效果样式 */
.lights-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.light {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.3;
    animation: twinkle ease-in-out infinite;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.5);
}

@keyframes twinkle {
    0%, 100% {
        transform: scale(0.5);
        opacity: 0.2;
    }
    50% {
        transform: scale(1);
        opacity: 0.8;
    }
}

/* 全局样式设置 */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
    overflow-x: hidden;
}

/* 首页样式 */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    background-color: white;
    overflow: hidden;
}

/* 左侧内容 */
.hero-left {
    flex: 1;
    display: flex;
    align-items: center;
    padding-left: 8%;
    z-index: 1;
}

/* 右侧视频框 */
.hero-right {
    flex: 1;
    position: relative;
    margin: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 背景视频 */
.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 背景图片 */
.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 首页内容 */
.hero-content {
    text-align: left;
    color: #333;
    opacity: 0;
    animation: fadeIn 1.5s ease forwards;
}

/* 打字机效果 */
.typewriter {
    overflow: hidden;
    white-space: nowrap;
}

.typewriter .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: typewriter 0.8s ease forwards;
}

/* 为每个字符设置不同的动画延迟 */
.typewriter .char:nth-child(1) { animation-delay: 0.1s; }
.typewriter .char:nth-child(2) { animation-delay: 0.2s; }
.typewriter .char:nth-child(3) { animation-delay: 0.3s; }
.typewriter .char:nth-child(4) { animation-delay: 0.4s; }
.typewriter .char:nth-child(5) { animation-delay: 0.5s; }
.typewriter .char:nth-child(6) { animation-delay: 0.6s; }
.typewriter .char:nth-child(7) { animation-delay: 0.7s; }
.typewriter .char:nth-child(8) { animation-delay: 0.8s; }
.typewriter .char:nth-child(9) { animation-delay: 0.9s; }
.typewriter .char:nth-child(10) { animation-delay: 1.0s; }
.typewriter .char:nth-child(11) { animation-delay: 1.1s; }
.typewriter .char:nth-child(12) { animation-delay: 1.2s; }

.hero-content h1 {
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-style: normal;
    text-rendering: optimizeLegibility;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.hero-content h2 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 3rem;
    letter-spacing: 2px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-style: normal;
    text-rendering: optimizeLegibility;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* 名字颜色 */
.hero-content h2 .name {
    color: #87CEEB; /* 婴儿蓝 */
    text-shadow: 0 0 10px rgba(135, 206, 235, 0.8);
}

/* 导航按钮 */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeIn 1.2s ease forwards 0.1s;
}

/* Web端横排按钮 */
@media (min-width: 769px) {
    .hero-buttons {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
    }
    
    .hero-button {
        width: auto;
        margin-right: 1.5rem;
    }
    
    .hero-button:last-child {
        margin-right: 0;
    }
}

.hero-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: rgba(0, 0, 0, 0.05);
    color: #333;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 400;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

/* Back按钮样式 */
.back-button-container .hero-button {
    background-color: rgba(255, 255, 255, 0.5); /* 50%透明度的白色背景 */
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    opacity: 1;
}

/* Back按钮悬停效果 */
.back-button-container .hero-button:hover {
    background-color: rgba(135, 206, 235, 0.7); /* 婴儿蓝背景 */
    color: white;
    box-shadow: 0 0 15px rgba(135, 206, 235, 0.5); /* 婴儿蓝发光效果 */
    text-shadow: 0 0 10px rgba(135, 206, 235, 0.5); /* 婴儿蓝文字阴影 */
}

/* 为每个按钮设置不同的动画延迟 */
.hero-button:nth-child(1) {
    animation-delay: 0.1s;
}

.hero-button:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-button:nth-child(3) {
    animation-delay: 0.3s;
}

/* 渐入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 前进穿越动画 */
@keyframes forwardTransition {
    0% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateX(50px) scale(0.8);
        opacity: 0.5;
    }
    100% {
        transform: translateX(100vw) scale(0.5);
        opacity: 0;
    }
}

/* 应用动画的类 */
.forward-transition {
    animation: forwardTransition 0.5s ease forwards;
}



/* 页面加载前推动画 */
@keyframes pageLoadPush {
    0% {
        transform: translateX(-100vw) scale(0.5);
        opacity: 0;
    }
    50% {
        transform: translateX(-50px) scale(0.8);
        opacity: 0.5;
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

/* 打字机动画 */
@keyframes typewriter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 纸飞机样式 */
.paper-plane {
    position: absolute;
    top: 50%;
    left: -100px;
    width: 60px;
    height: 60px;
    background-color: #87CEEB;
    clip-path: polygon(
        50% 0%,
        0% 100%,
        100% 100%
    );
    transform: translateY(-50%) rotate(45deg);
    opacity: 0;
    z-index: 10;
}

/* 纸飞机穿越动画 */
@keyframes planeFly {
    0% {
        left: -100px;
        top: 50%;
        opacity: 1;
        transform: translateY(-50%) rotate(45deg) scale(1);
    }
    50% {
        left: 50%;
        top: 30%;
        opacity: 1;
        transform: translateY(-50%) rotate(30deg) scale(1.2);
    }
    100% {
        left: 100vw;
        top: 50%;
        opacity: 0;
        transform: translateY(-50%) rotate(15deg) scale(0.8);
    }
}

/* 应用纸飞机动画的类 */
.paper-plane-fly {
    animation: planeFly 1s ease forwards;
}

/* 应用页面加载动画的类 */
.page-load-transition {
    animation: pageLoadPush 0.6s ease forwards;
}

/* 子页面内容延迟显示 */
.section {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards 0.3s;
}

.hero-button:hover {
    background-color: rgba(135, 206, 235, 0.2);
    color: #333;
    box-shadow: 0 0 15px rgba(135, 206, 235, 0.5), 0 4px 12px rgba(0, 0, 0, 0.1);
    text-shadow: 0 0 10px rgba(135, 206, 235, 0.5);
    transition: all 0.3s ease;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.nav-links {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: rgba(51, 51, 51, 0.7); /* 半透明未选中状态 */
    font-size: 1rem;
    font-weight: 400;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    position: relative;
    border-radius: 4px 4px 0 0;
}

.nav-links a:hover {
    color: rgba(51, 51, 51, 0.9);
    background-color: rgba(255, 255, 255, 0.5);
}

/* 选中状态样式 */
.nav-links a.active {
    color: #333;
    background-color: #f8f8f8;
    border-bottom: 2px solid #87CEEB;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* 返回按钮容器 */
.back-button-container {
    margin-bottom: 2rem;
}

/* 纸飞机图标样式 */
.plane-icon {
    margin-left: 5px;
    font-size: 0.9em;
    color: #87CEEB;
    display: inline-block;
    transition: transform 0.3s ease;
}

.nav-links a:hover .plane-icon {
    transform: rotate(45deg) translateX(3px);
}

/* 导航栏图标样式 */
.nav-icon {
    margin-left: 5px;
    font-size: 0.9em;
    color: #87CEEB;
    display: inline-block;
    transition: transform 0.3s ease;
}

.nav-links a:hover .nav-icon {
    transform: scale(1.2);
}

/* 通用板块样式 */
.section {
    padding: 6rem 0;
    scroll-margin-top: 5rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-top: 4rem;
    margin-bottom: 3rem;
    text-align: center;
    color: #333;
    letter-spacing: 1px;
}

/* ABOUT ME页面标题颜色 */
#about .section-title {
    color: white;
}

/* 个人介绍板块样式 */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: inherit;
    font-weight: 300;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.about-content p {
    margin-bottom: 1.5rem;
    color: inherit;
}

/* 更多标签标题样式 */
.about-content p:first-child {
    font-size: 1.3rem;
    font-weight: 400;
}

.about-content ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    color: inherit;
}

.about-content li {
    margin-bottom: 0.5rem;
    color: inherit;
}

/* 视频介绍板块样式 */
.video-container {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    margin-bottom: 0;
}

.video {
    width: 100%;
    max-width: 1000px;
    height: auto;
    min-height: 300px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    outline: none;
}

/* 视频备注样式 */
.video-note {
    text-align: center;
    margin: 0 0 0;
    font-size: 0.9rem;
    color: inherit;
    font-style: italic;
    line-height: 1.2;
    font-weight: 300;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 第二个视频容器的间距 */
.video-container + .video-note + .video-container {
    margin-top: 0.5rem;
}

/* 视频容器和备注之间的间距 */
.video-note + .video-container {
    margin-top: 0;
}

/* 视频备注之间的间距（PC端） */
.video-note + .video-note {
    margin-top: 1.5em;
}

/* 移动端间距调整 */
@media (max-width: 768px) {
    .video-container + .video-note + .video-container {
        margin-top: 0.3rem;
    }
    
    .video-note + .video-note {
        margin-top: 1em;
    }
}

/* 照片展示区域 */
.photo-display {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.center-photo {
    max-width: 40%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.center-photo:hover {
    transform: scale(1.02);
}

/* 摄影作品文件夹样式 */
.folder-grid {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
    max-width: 500px;
}

.folder-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease;
    max-width: 140px;
}

.folder-item:hover {
    transform: translateY(-5px);
}

/* IOS系统样式文件夹图标 */
.folder-icon {
    width: 90px;
    height: 68px;
    position: relative;
    margin-bottom: 0.8rem;
    transition: transform 0.3s ease;
}

.folder-icon::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.folder-icon::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    width: 60%;
    height: 60%;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.05);
}

/* 文件夹颜色 - 低饱和度 */
.folder-blue::before, .folder-blue::after {
    background-color: #a8c5d1;
}

.folder-green::before, .folder-green::after {
    background-color: #a8d1b0;
}

.folder-yellow::before, .folder-yellow::after {
    background-color: #d1c5a8;
}

/* 文件夹悬停效果 */
.folder-item:hover .folder-icon {
    transform: scale(1.05);
}

/* 文件夹名称 */
.folder-name {
    font-size: 1.1rem;
    font-weight: 400;
    color: #555;
    text-align: center;
    margin-top: 0.5rem;
}

/* 摄影作品板块样式 */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* 移动端适配 - 一排两张图片 */
@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* 拼贴风格图片网格 */
.collage-grid {
    position: relative;
    width: 100%;
    min-height: 800px;
    margin-top: 2rem;
}

.collage-item {
    position: absolute;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.collage-item:hover {
    transform: translateY(-5px);
}

.collage-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.collage-item:hover .collage-img {
    transform: scale(1.05);
}

/* 拼贴布局 - Miles to go 页面 */
#miles-to-go .collage-item:nth-child(1) {
    top: 0;
    left: 5%;
    width: 220px;
    height: 300px;
}

#miles-to-go .collage-item:nth-child(2) {
    top: 0;
    right: 10%;
    width: 180px;
    height: 180px;
}

#miles-to-go .collage-item:nth-child(3) {
    top: 200px;
    right: 5%;
    width: 140px;
    height: 140px;
}

#miles-to-go .collage-item:nth-child(4) {
    top: 320px;
    left: 5%;
    width: 180px;
    height: 220px;
}

#miles-to-go .collage-item:nth-child(5) {
    top: 220px;
    left: 25%;
    width: 280px;
    height: 180px;
}

#miles-to-go .collage-item:nth-child(6) {
    top: 420px;
    left: 25%;
    width: 180px;
    height: 160px;
}

#miles-to-go .collage-item:nth-child(7) {
    top: 420px;
    right: 10%;
    width: 220px;
    height: 180px;
}

#miles-to-go .collage-item:nth-child(8) {
    top: 280px;
    right: 20%;
    width: 160px;
    height: 120px;
}

#miles-to-go .collage-item:nth-child(9) {
    top: 520px;
    left: 10%;
    width: 220px;
    height: 140px;
}

#miles-to-go .collage-item:nth-child(10) {
    top: 540px;
    right: 15%;
    width: 180px;
    height: 120px;
}

#miles-to-go .collage-item:nth-child(11) {
    top: 80px;
    right: 35%;
    width: 140px;
    height: 90px;
}

#miles-to-go .collage-item:nth-child(12) {
    top: 350px;
    right: 40%;
    width: 110px;
    height: 90px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .collage-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        position: static;
        min-height: auto;
    }
    
    .collage-item {
        position: static;
        width: 100% !important;
        height: 200px !important;
    }
}

.photo-item {
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    cursor: pointer;
    aspect-ratio: 1/1;
}

.photo-item:hover {
    transform: translateY(-5px);
}

.photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-item:hover .photo-img {
    transform: scale(1.05);
}

/* 图片带式排版样式 */
.photo-strip {
    margin-top: 2rem;
    overflow: hidden;
    position: relative;
    height: 400px;
}

.photo-strip-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem 0;
    transition: transform 0.3s ease;
    cursor: grab;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* 隐藏Firefox滚动条 */
}

/* 隐藏Chrome滚动条 */
.photo-strip-container::-webkit-scrollbar {
    display: none;
}

.photo-strip-container:active {
    cursor: grabbing;
}

.strip-item {
    flex: 0 0 auto;
    width: 200px;
    height: 300px;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.strip-item.active {
    width: 300px;
    height: 350px;
    z-index: 10;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.strip-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.strip-item:hover .strip-img {
    transform: scale(1.05);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .photo-strip {
        height: 300px;
    }
    
    .strip-item {
        width: 150px;
        height: 200px;
    }
    
    .strip-item.active {
        width: 200px;
        height: 250px;
    }
}

/* 排版作品板块样式 */
.design-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.design-item {
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.design-item:hover {
    transform: translateY(-5px);
}

.design-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.design-title {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #333;
}

.design-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* 图片预览模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    display: block;
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
}

/* 竖版图片样式 */
.modal-content.portrait-image {
    max-width: 80%;
    max-height: 80%;
}

/* 移动端模态框适配 */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        max-height: 70%;
    }
    
    .modal-content.portrait-image {
        max-width: 90%;
        max-height: 70%;
    }
}

/* 为passing12.jpg添加特殊样式，使其显示上部区域 */
.modal-content[src*="passing12.jpg"] {
    object-position: center top;
    object-fit: cover;
}

/* 为portrait18.jpg添加特殊样式，使其往右移动 */
.modal-content[src*="portrait18.jpg"] {
    object-position: right center;
    object-fit: cover;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ccc;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }
    
    .nav-links a {
        font-size: 0.9rem;
        padding: 0.5rem 0.8rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .design-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .video {
        width: 100%;
    }
    
    /* 欢迎页响应式 */
    .hero-section {
        flex-direction: column;
    }
    
    .hero-left {
        padding-left: 0;
        padding: 2rem;
        order: 2;
    }
    
    .hero-right {
        flex: 1;
        width: 100%;
        margin: 0;
        border-radius: 0;
        order: 1;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-button {
        width: 100%;
        text-align: center;
    }
    
    /* 摄影作品页面响应式 */
    .center-photo {
        max-width: 100%;
        max-height: 180px;
    }
    
    .folder-grid {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .folder-item {
        max-width: 120px;
    }
    
    .folder-icon {
        width: 80px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        display: flex;
    }
    
    .nav-links a {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    
    /* 调整移动端导航顺序 */
    .nav-links li:nth-child(1) {
        order: 4;
    }
    
    .nav-links li:nth-child(2) {
        order: 1;
    }
    
    .nav-links li:nth-child(3) {
        order: 2;
    }
    
    .nav-links li:nth-child(4) {
        order: 3;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .about-content {
        font-size: 1rem;
    }
    
    /* 欢迎页响应式 */
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    /* 摄影作品页面响应式 */
    .center-photo {
        max-height: 150px;
    }
    
    .folder-icon {
        width: 80px;
        height: 60px;
    }
}

/* ABOUT ME页面背景 */
#about.section {
    position: relative;
    background-image: url('images/about-bg.jpg');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    color: white; /* 为了确保文字在背景上清晰可见 */
}

/* 背景褪色效果 */
#about.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.15); /* 15%的白色遮罩，实现褪色效果 */
    z-index: 0;
}

/* 确保内容在遮罩之上 */
#about .container {
    position: relative;
    z-index: 1;
}

/* 移动端背景适配 - 显示大卫头像 */
@media (max-width: 768px) {
    #about.section {
        background-position: 20% top;
    }
    
    /* 摄影子页面移动端背景适配 */
    #passing.section,
    #miles-to-go.section,
    #portrait.section {
        background-position: center top;
        background-attachment: scroll;
    }
}

/* PHOTOGRAPHY页面背景 */
#photography.section {
    background-image: url('images/photography-bg.jpg');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    color: white; /* 为了确保文字在背景上清晰可见 */
}

/* 摄影页面容器样式 */
#photography .container {
    padding: 2rem;
    color: white;
}

/* 摄影页面标题样式 */
#photography .section-title {
    color: white;
    font-weight: 300;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 摄影页面文件夹名称样式 */
#photography .folder-name {
    color: white;
    font-weight: 300;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* PASSING页面背景 */
#passing.section {
    position: relative;
    background-image: url('images/passing-bg.jpg');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    color: white; /* 为了确保文字在背景上清晰可见 */
}

/* 背景褪色效果 */
#passing.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1); /* 10%的白色遮罩，实现褪色效果 */
    z-index: 0;
}

/* 确保容器内的文字清晰可见 */
#about .container {
    padding: 2rem;
    color: white;
}

/* 确保passing页面容器内的文字清晰可见 */
#passing .container {
    position: relative;
    z-index: 1;
    padding: 2rem;
    color: white;
}

/* passing页面标题样式 */
#passing .section-title {
    color: white;
    font-weight: 300;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* passing页面文字样式 */
#passing p {
    color: white;
}

/* MILES TO GO页面背景 */
#miles-to-go.section {
    position: relative;
    background-image: url('images/miles-to-go-bg.jpg');
    background-color: #333; /* 默认背景颜色改为深色 */
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    color: white; /* 为了确保文字在背景上清晰可见 */
}

/* 背景褪色效果 */
#miles-to-go.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1); /* 10%的白色遮罩，实现褪色效果 */
    z-index: 0;
}

/* 确保miles-to-go页面容器内的文字清晰可见 */
#miles-to-go .container {
    position: relative;
    z-index: 1;
    padding: 2rem;
    color: white;
}

/* miles-to-go页面标题样式 */
#miles-to-go .section-title {
    color: white;
    font-weight: 300;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* miles-to-go页面文字样式 */
#miles-to-go p {
    color: white;
}

/* PORTRAIT页面背景 */
#portrait.section {
    position: relative;
    background-image: url('images/portrait-bg.jpg');
    background-color: #333; /* 默认背景颜色改为深色 */
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    color: white; /* 为了确保文字在背景上清晰可见 */
}

/* 背景褪色效果 */
#portrait.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1); /* 10%的白色遮罩，实现褪色效果 */
    z-index: 0;
}

/* 确保portrait页面容器内的文字清晰可见 */
#portrait .container {
    position: relative;
    z-index: 1;
    padding: 2rem;
    color: white;
}

/* portrait页面标题样式 */
#portrait .section-title {
    color: white;
    font-weight: 300;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* portrait页面文字样式 */
#portrait p {
    color: white;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 图片加载动画 */
.photo-img, .design-img {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 延迟加载动画 */
.photo-item:nth-child(1) .photo-img { animation-delay: 0.1s; }
.photo-item:nth-child(2) .photo-img { animation-delay: 0.2s; }
.photo-item:nth-child(3) .photo-img { animation-delay: 0.3s; }
.photo-item:nth-child(4) .photo-img { animation-delay: 0.4s; }
.photo-item:nth-child(5) .photo-img { animation-delay: 0.5s; }
.photo-item:nth-child(6) .photo-img { animation-delay: 0.6s; }

.design-item:nth-child(1) .design-img { animation-delay: 0.1s; }
.design-item:nth-child(2) .design-img { animation-delay: 0.2s; }
.design-item:nth-child(3) .design-img { animation-delay: 0.3s; }