/* --- 基础重置与优雅的排版 --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* 使用高级、典雅的衬线体组合 */
    font-family: "Optima", "Georgia", "Noto Serif SC", serif; 
    color: #333;
    background-color: #FAFAFA; /* 极浅的灰白，比纯白更有艺术展厅的质感 */
    line-height: 1.6;
    overflow-x: hidden; /* 防止横向滚动条 */
}

/* --- 左侧固定竖条 --- */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 90px;
    height: 100vh;
    background-color: #1a1a1a; /* 深黑灰色侧边栏，增加反差和现代感 */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.vertical-text {
    writing-mode: vertical-rl; /* 文字竖排 */
    transform: rotate(180deg); /* 调整阅读方向 */
    letter-spacing: 30px; /* 字母间距拉开，高级感的秘诀 */
    font-size: 1rem;
    font-weight: 300;
    text-transform: uppercase;
}

/* --- 主内容区 --- */
.main-content {
    margin-left: 90px; /* 为左侧固定条留出空间 */
}

/* --- 大版面照片 (Hero Section) --- */
.hero {
    position: relative;
    height: 100vh; /* 高度占满整个屏幕 */
    width: 100%;
    /* 请将这里的 URL 替换成这位钢琴家的高清竖版或横版美照 */
    background-image: url('images/church-piano-1.jpg'); 
    background-size: cover;
    background-position: center 20%; /* 焦点偏上，确保人脸不被切掉 */
}

/* 照片底部的暗色渐变遮罩，确保白色导航字能看清 */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    pointer-events: none;
}

/* --- 照片底部的导航栏 --- */
.bottom-nav {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 40px 60px;
    z-index: 10;
}

.bottom-nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end; /* 导航靠右对齐，画面更有呼吸感 */
    gap: 50px;
}

.bottom-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    letter-spacing: 2px;
    transition: color 0.4s ease, transform 0.4s ease;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.bottom-nav a:hover {
    color: #B9935A; /* 典雅的暗金色，契合古典音乐氛围 */
}

/* --- 下滑后的模块化信息板块 --- */
.content-module {
    padding: 120px 8vw;
    max-width: 1400px;
    margin: 0 auto;
}

.content-module h2 {
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 60px;
    text-align: center;
    letter-spacing: 4px;
    color: #111;
    position: relative;
}

/* 标题下方的优雅细线 */
.content-module h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background-color: #D4AF37;
    margin: 20px auto 0;
}

/* 模块网格，响应式设计，自动换行 */
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

/* 作品/行程卡片基础样式 */
.card {
    background: #fff;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04); /* 极柔和的阴影 */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    border: 1px solid #f0f0f0;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

/* --- 个人简介模块特定样式 --- */
.about-content {
    display: flex;
    justify-content: center;
}

.about-text {
    max-width: 800px; /* 限制阅读宽度，视觉更聚焦 */
    text-align: center; /* 文字居中，符合典雅的版式 */
    font-size: 1.15rem;
    color: #555; /* 使用深灰色而不是纯黑，更柔和 */
    line-height: 2.2; /* 增加行高，提升呼吸感 */
    letter-spacing: 1px; /* 稍微拉开字距 */
}

.about-text p {
    margin-bottom: 25px; /* 段落之间的留白 */
}

/* =========================================
    动效 (Non-linear & Scroll Animations)
   ========================================= */

/* 1. 标题下划线颜色修正（确保是香槟金） */
.content-module h2::after {
    background-color: #B9935A !important; 
}

/* 2. 初始状态：向下偏移且完全透明 */
.fade-up {
    opacity: 0;
    transform: translateY(40px); /* 起始位置往下掉 40px */
    /* 核心灵魂：cubic-bezier 自定义非线性贝塞尔曲线 
       这组数值模仿了苹果的 "快进慢出" 丝滑感 */
    transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), 
                transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform; /* 开启硬件加速，防止卡顿 */
}

/* 3. 触发状态：回到原位且完全不透明 (由 JS 动态添加) */
.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 4. 导航栏专属的入场动画（不依赖滚动，网页加载即触发） */
.fade-in-delay {
    animation: fadeInNav 2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.5s; /* 等照片加载出来后，导航再慢慢浮现 */
    opacity: 0;
}

@keyframes fadeInNav {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* =========================================
   新增：视频展示区样式 (YouTube Embeds)
   ========================================= */
.portfolio-intro {
    text-align: center;
    color: #777;
    margin-bottom: 40px;
    font-style: italic;
    letter-spacing: 1px;
}

.video-grid {
    display: grid;
    /* 自动适应屏幕，最小宽度 400px，排不下自动换行 */
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); 
    gap: 40px;
}

/* 经典 16:9 响应式视频容器 */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 保证 16:9 比例 */
    height: 0;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08); /* 高级感的画框阴影 */
    border-radius: 4px; 
    transition: transform 0.4s ease;
}

.video-wrapper:hover {
    transform: translateY(-8px); /* 鼠标悬停时微微上浮 */
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* =========================================
   新增：行程区 Coming Soon 流光动画
   ========================================= */
.coming-soon-container {
    text-align: center;
    padding: 60px 0 100px; /* 留出充足的呼吸空间 */
}

.shimmer-text {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 8px;
    text-transform: uppercase;
    /* 核心灵魂：金属光泽渐变背景 */
    background: linear-gradient(90deg, #d4d4d4 0%, #111 50%, #d4d4d4 100%);
    background-size: 200% auto;
    /* 将背景裁剪到文字内部 */
    color: #111;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* 循环播放流光动画 */
    animation: shimmerEffect 3s linear infinite;
}

@keyframes shimmerEffect {
    0% { background-position: 200% center; }
    100% { background-position: 0% center; }
}

/* =========================================
   新增：页脚样式 (Footer)
   ========================================= */
.site-footer {
    text-align: center;
    padding: 60px 20px 40px;
    border-top: 1px solid #eaeaea; /* 顶部极细的分割线 */
}

.footer-brand {
    font-size: 0.9rem;
    letter-spacing: 4px;
    color: #333;
    margin-bottom: 10px;
}

.footer-location {
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: #B9935A; /* 使用香槟金作为点缀 */
    font-style: italic;
}
/* =========================================
   新增： 吸顶导航栏 (Sticky Frosted Glass)
   ========================================= */

/* 让原本的导航栏在变形时有丝滑的过渡动画 */
.bottom-nav {
    transition: padding 0.4s ease, background-color 0.4s ease, backdrop-filter 0.4s ease;
}

/* 由 JS 触发的吸顶状态 */
.bottom-nav.is-sticky {
    position: fixed;
    top: 0;
    bottom: auto; 
    left: 90px; /* 避开左侧90px的竖条 */
    width: calc(100% - 90px);
    padding: 20px 60px; /* 吸顶后导航栏稍微变窄，更加精致 */
    background-color: rgba(255, 255, 255, 0.85); /* 半透明白底 */
    backdrop-filter: blur(15px); /* 核心！苹果毛玻璃滤镜 */
    -webkit-backdrop-filter: blur(15px); /* 兼容 Safari */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05); /* 极弱的高级感阴影 */
    z-index: 999;
}

/* 吸顶后，因为背景变成了亮色，所以文字要变成深色 */
.bottom-nav.is-sticky a {
    color: #111;
    text-shadow: none; /* 去除原本在照片上的文字阴影 */
}

.bottom-nav.is-sticky a:hover {
    color: #B9935A; /* 悬停依然保留香槟金 */
}
/* =========================================
   移动端适配 (Mobile Responsive Design)
   ========================================= */
@media screen and (max-width: 768px) {
    
    /* 1. 侧边栏变顶部固定导航条 */
    .sidebar {
        width: 100%;
        height: 60px; /* 移动端变窄一些 */
        flex-direction: row; /* 内容横向排列 */
        z-index: 1001; /* 确保在最上层 */
    }

    /* 竖排文字变横排 */
    .vertical-text {
        writing-mode: horizontal-tb; /* 恢复水平阅读 */
        transform: none; /* 取消翻转 */
        letter-spacing: 6px; /* 缩小字距，防止手机屏幕装不下 */
        font-size: 0.85rem;
    }

    /* 2. 主内容区取消左侧留白，改为适配顶部黑条 */
    .main-content {
        margin-left: 0;
    }

    /* 照片区域让出顶部 60px 的黑条空间 */
    .hero {
        height: calc(100vh - 60px); 
        margin-top: 60px; 
    }

    /* 3. 底部导航栏适配（字号变小，居中紧凑对齐） */
    .bottom-nav {
        padding: 20px;
    }

    .bottom-nav ul {
        justify-content: center;
        gap: 15px; 
        flex-wrap: wrap; /* 屏幕太窄时允许稍微换行 */
    }

    .bottom-nav a {
        font-size: 0.95rem;
        letter-spacing: 1px;
    }

    /* 4. 【核心】吸顶导航栏位置调整 */
    .bottom-nav.is-sticky {
        left: 0;
        width: 100%;
        top: 60px; /* 必须贴在顶部黑条的下方，而不是屏幕最顶端 */
        padding: 15px 20px;
    }

    /* 5. 信息板块间距与字体缩小，增加手机端阅读舒适度 */
    .content-module {
        padding: 80px 5vw 40px; 
    }

    .content-module h2 {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .about-text {
        font-size: 1.05rem;
        text-align: left; /* 手机端大段文字靠左对齐更易读 */
    }

    /* 6. 行程动画文字缩小防止溢出 */
    .shimmer-text {
        font-size: 1.8rem;
        letter-spacing: 4px;
    }
}