/* 
 * 现代风范 - 全局样式表
 * 风格：极简、现代、高端、黑白灰主调
 * 基于 Pico.css 进行定制覆盖
 */

:root {
    /* 覆盖 Pico.css 默认主题色，改为黑白灰系 */
    --pico-font-family: "Helvetica Now", "Avenir Next", "PingFang SC", "Source Han Sans CN", sans-serif;
    --pico-font-size: 16px;
    --pico-line-height: 1.6;
    
    /* 颜色系统 */
    --pico-primary: #1a1a1a;          /* 接近黑色 */
    --pico-primary-background: #1a1a1a;
    --pico-primary-hover: #333333;    /* 深灰 */
    --pico-primary-underline: rgba(26, 26, 26, 0.5);
    --pico-primary-focus: rgba(26, 26, 26, 0.125);
    --pico-primary-inverse: #ffffff;
    
    --pico-background-color: #ffffff;
    --pico-color: #1a1a1a;            /* 正文颜色 */
    --pico-muted-color: #666666;      /* 辅助文字颜色 */
    
    /* 自定义颜色 */
    --color-accent-blue: #1e3a8a;     /* 深海军蓝 - 仅点缀 */
    --color-accent-clay: #9c6644;     /* 陶土棕 - 仅点缀 */
    --color-bg-grey: #f5f5f4;         /* 燕麦灰/水泥灰 */
    
    /* 间距 */
    --spacing-layout: 4rem;
    --spacing-section: 6rem;
}

/* =========================================
   通用重置与排版
   ========================================= */

body {
    letter-spacing: 0.02em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #000;
    margin-bottom: 1.5rem;
}

/* 链接样式重置 - 移除默认下划线，使用自定义动画 */
a.nav-link {
    text-decoration: none;
    color: var(--pico-color);
    position: relative;
    padding-bottom: 2px;
    transition: color 0.3s ease;
}

a.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--pico-color);
    transition: width 0.3s ease;
}

a.nav-link:hover::after,
a.nav-link.active::after {
    width: 100%;
}

a.nav-link.active {
    color: #000;
    font-weight: 500;
}

/* =========================================
   布局组件
   ========================================= */

/* 顶部导航 */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 3rem;
    align-items: center;
}

/* 页面主体容器 */
main {
    padding-top: 80px; /* 给固定导航栏留出空间 */
    min-height: 100vh;
}

/* 通用Section */
section {
    padding: var(--spacing-section) 0;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* 窄容器 - 用于文字叙述 */
.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

/* =========================================
   首页特有样式
   ========================================= */

/* 全屏轮播区 */
.hero-section {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    margin-top: -80px; /* 抵消 main 的 padding-top，实现全屏 */
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
}

/* 叠加文字 */
.hero-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 10;
    width: 100%;
    pointer-events: none; /* 让鼠标穿透，不遮挡图片交互 */
}

.hero-title {
    font-size: 8vw; /* 响应式超大字体 */
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    mix-blend-mode: overlay; /* 混合模式提升艺术感 */
    margin: 0;
    line-height: 1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* 快速预览网格 */
.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.preview-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4; /* 竖构图 */
    cursor: pointer;
}

/* =========================================
   衣橱哲学页 (Philosophy)
   ========================================= */

.chapter-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.split-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
}

.split-layout > div {
    flex: 1;
    min-width: 300px;
}

.text-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.text-content p {
    font-size: 1.1rem;
    color: var(--pico-muted-color);
    line-height: 1.8;
}

/* 视差效果容器 */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* 色彩拼图 */
.collage-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
    height: 600px;
}

.collage-item:nth-child(1) {
    grid-row: 1 / 3;
}

/* =========================================
   场景叙事页 (Narrative)
   ========================================= */

.narrative-item {
    margin-bottom: var(--spacing-section);
}

.narrative-header {
    margin-bottom: 2rem;
}

.narrative-images {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.5rem;
}

.narrative-main-img {
    aspect-ratio: 4/3;
    width: 100%;
}

.narrative-detail-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.narrative-detail-img {
    flex: 1;
    width: 100%;
    aspect-ratio: 16/9;
}

/* =========================================
   图片与动画
   ========================================= */

/* 图片通用容器 */
.img-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--color-bg-grey); /* 图片加载前的占位色 */
}

.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1); /* 极慢平滑 */
    will-change: transform;
}

/* 悬停微放大效果 */
.img-container:hover .img-cover {
    transform: scale(1.03);
}

/* 页面加载淡入 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    animation: fadeIn 1s ease-out forwards;
}

/* 延迟动画类 */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* 引导箭头 */
.scroll-arrow {
    display: block;
    width: 40px;
    height: 40px;
    margin: 2rem auto;
    border-bottom: 2px solid #000;
    border-right: 2px solid #000;
    transform: rotate(45deg);
    opacity: 0.6;
    animation: bounce 2s infinite;
    cursor: pointer;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0) rotate(45deg);}
    40% {transform: translateY(-10px) rotate(45deg);}
    60% {transform: translateY(-5px) rotate(45deg);}
}

/* =========================================
   页脚
   ========================================= */

footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

footer p {
    margin: 0;
    font-size: 0.85rem;
    color: #999;
}

/* =========================================
   响应式适配
   ========================================= */

@media (max-width: 768px) {
    .site-header .nav-container {
        gap: 1.5rem;
        font-size: 0.9rem;
    }
    
    .hero-title {
        font-size: 15vw;
    }
    
    .collage-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
    }
    
    .narrative-images {
        grid-template-columns: 1fr;
    }
    
    .split-layout {
        flex-direction: column;
        gap: 2rem;
    }
    
    .chapter-section:nth-child(even) .split-layout {
        flex-direction: column-reverse;
    }
    
    /* 移动端汉堡菜单逻辑会通过JS切换类名来控制，这里保持基础结构 */
}