/* --- 全局设定 --- */
:root {
    --gold: #d4af37;
    --dark: #0a0a0a;
    --gray: #1a1a1a;
    --text: #f0f0f0;
    --split-speed: 0.8s;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--dark);
    color: var(--text);
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
}

h2, h3, h4 { font-family: 'Playfair Display', serif; }
a { text-decoration: none; color: inherit; }

/* --- 1. 导航栏升级 --- */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
    padding: 15px 40px; 
    display: flex; justify-content: space-between; align-items: center;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent);
}

.nav-brand { text-align: left; }
.logo {
    font-family: 'Playfair Display', serif;
    font-weight: 700; font-size: 1.5rem; letter-spacing: 1px; color: #fff;
}
.slogan {
    font-family: 'Roboto', sans-serif;
    font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase;
    color: var(--gold); margin-top: 2px;
}

.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links a {
    font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px;
    opacity: 0.7; transition: 0.3s; position: relative;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--gold); }
.nav-links a::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 1px;
    background: var(--gold); transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }

/* --- 2. 分屏系统 (Section 1 & 2) --- */
/* 保持原样，无需大改，确保路径正确即可 */
.split-container {
    position: relative; width: 100%; height: 100vh;
    display: flex; background: var(--gray); overflow: hidden;
    border-bottom: 8px solid var(--dark);
}
.split {
    position: relative; width: 50%; height: 100%;
    overflow: hidden; cursor: pointer;
    transition: width var(--split-speed) cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex; justify-content: center; align-items: center;
}
.bg-img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    transition: transform var(--split-speed) ease; filter: grayscale(100%);
}
.overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); transition: background 0.5s;
}
.content {
    position: relative; z-index: 10; text-align: center;
    transition: transform var(--split-speed); white-space: nowrap;
}
.content h2 { font-size: 4rem; text-transform: uppercase; margin-bottom: 10px; }
.content p { font-size: 1.2rem; letter-spacing: 2px; opacity: 0.8; }
.btn {
    display: inline-block; margin-top: 20px; padding: 10px 30px;
    border: 1px solid #fff; color: #fff; text-transform: uppercase; letter-spacing: 1px;
    opacity: 0; transform: translateY(20px); transition: all 0.5s ease;
}
.btn:hover { background: #fff; color: #000; }

/* PC Hover 效果 */
@media(min-width: 800px) {
    .split.hover-active { width: 75%; }
    .split.hover-active .bg-img { transform: scale(1.05); filter: grayscale(0); }
    .split.hover-active .overlay { background: rgba(0,0,0,0.1); }
    .split.hover-active .btn { opacity: 1; transform: translateY(0); }
    .split-container.hover-left .split.right, .split-container.hover-right .split.left { width: 25%; }
    .split-container.hover-left .split.right .content, .split-container.hover-right .split.left .content { transform: scale(0.8); opacity: 0.5; }
}

/* --- 3. Section 3: Brisbane --- */
.local-connection {
    position: relative; height: 60vh; overflow: hidden;
    display: flex; align-items: center; justify-content: center; text-align: center;
}
.parallax-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 120%;
    background-size: cover; background-position: center; z-index: 1; filter: brightness(0.4);
}
.local-content { position: relative; z-index: 2; width: 90%; max-width: 800px; }
.local-content h3 { font-size: 2.5rem; color: var(--gold); margin-bottom: 5px; }
.local-content p { font-size: 1.1rem; margin-bottom: 30px; letter-spacing: 1px; }

.polaroid-row { display: flex; justify-content: center; gap: 30px; }
.polaroid {
    background: #fff; padding: 10px 10px 30px 10px; color: #333;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5); transition: transform 0.3s;
}
.polaroid:hover { transform: scale(1.1) rotate(0) !important; z-index: 10; }
.polaroid img { width: 150px; height: 150px; object-fit: cover; display: block; margin-bottom: 10px; }
.polaroid span { font-family: 'Playfair Display', serif; font-weight: bold; }

/* --- 4. Section 4: The Trust (V2 Refactored) --- */
.trust-section { padding: 80px 5%; background: var(--gray); }
.bento-grid-v2 {
    display: grid;
    grid-template-columns: 1fr 2fr; /* 左1右2比例 */
    gap: 20px; max-width: 1400px; margin: 0 auto; height: 500px;
}

/* 左侧：人像 */
.bento-left {
    position: relative; border-radius: 12px; overflow: hidden;
    background-size: cover; background-position: center;
}
.bento-text { position: absolute; padding: 30px; z-index: 2; width: 60%; }
.bottom-left { bottom: 0; left: 0; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); }
.highlight { color: var(--gold); font-style: italic; letter-spacing: 1px; margin-top: 5px; }

/* 右侧：斜切容器 (Diagonal Wrapper) */
.diagonal-wrapper {
    display: flex; 
    border-radius: 12px; overflow: hidden;
    position: relative;
    background: #000;
}

.slice {
    position: relative;
    flex: 1; /* 默认均分 */
    overflow: hidden;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1); /* 缓动 */
    transform: skewX(-15deg); /* 整体容器左倾 */
    border-right: 4px solid var(--dark); /* 分割线 */
    margin-right: -2px; /* 修正边框缝隙 */
    
    display: flex; align-items: center; justify-content: center;
}

.slice:last-child { border-right: none; }

/* 切片内的背景图修正 (反向倾斜回来) */
.slice::before {
    content: ''; position: absolute; top: 0; left: -25%; width: 150%; height: 100%;
    background-image: inherit; background-size: cover; background-position: center;
    transform: skewX(15deg); /* 内容摆正 */
    z-index: 0;
}
/* 纯色背景特殊处理 */
.slice[style*="background-color"]::before { background: inherit; }

.overlay-slice {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 1; transition: 0.3s;
    transform: skewX(15deg); width: 150%; left: -25%; /* 遮罩也要摆正 */
}

.slice-content {
    position: relative; z-index: 2; text-align: center;
    transform: skewX(15deg); /* 文字摆正 */
    opacity: 0.7; transition: 0.3s; white-space: nowrap;
}

.slice-content h4 { font-size: 1.5rem; margin-bottom: 5px; color: #fff; }
.slice-content p { font-size: 0.9rem; color: #ccc; }
.slice-content p.small { font-size: 0.7rem; margin-top: 5px; color: var(--gold); }

/* --- 交互特效 (Push/Pull) --- */
/* 鼠标放上去时 */
.slice:hover { flex: 2; /* 变宽 2倍 */ }
.slice:hover .overlay-slice { background: rgba(0,0,0,0.2); }
.slice:hover .slice-content { opacity: 1; transform: skewX(15deg) scale(1.1); }

/* --- Footer --- */
footer { text-align: center; padding: 50px 20px; background: #000; color: #555; }
.tagline { margin-top: 10px; font-size: 0.9rem; color: var(--gold); letter-spacing: 1px; }

/* --- Mobile Responsiveness --- */
@media(max-width: 800px) {
    .navbar { padding: 15px 20px; }
    .nav-links { display: none; } /* 手机端简化，暂隐菜单 */
    
    .split-container { flex-direction: column; }
    .split { width: 100% !important; height: 50%; border-bottom: 2px solid #000; }
    .content h2 { font-size: 2.5rem; }
    .split.mobile-expand { height: 85%; }
    .split.mobile-shrink { height: 15%; }
    .split.mobile-expand .btn { opacity: 1; transform: translateY(0); }

    .bento-grid-v2 { grid-template-columns: 1fr; height: auto; }
    .bento-left { height: 350px; }
    .diagonal-wrapper { 
        height: 400px; 
        flex-direction: column; /* 手机上改为上下堆叠 */
    }
    .slice { 
        transform: skewX(0); border-right: none; border-bottom: 2px solid #000; 
        width: 100%; height: 33%;
    }
    .slice::before, .slice-content, .overlay-slice { 
        transform: skewX(0) !important; width: 100%; left: 0;
    }
    .slice:hover { flex: 2; height: auto; } /* 手机上也支持一点点推拉 */

    /* =========================================
   GALLERY PAGE STYLES (追加部分)
   ========================================= */

    .gallery-header {
        padding: 120px 20px 40px; /* 给导航栏留出空间 */
        text-align: center;
        background: var(--dark);
    }

    .gallery-header h1 {
        font-family: 'Playfair Display', serif;
        font-size: 3rem;
        color: var(--gold);
        margin-bottom: 10px;
    }

    .gallery-header p {
        color: #888;
        margin-bottom: 40px;
    }

    /* --- 筛选按钮 --- */
    .filter-controls {
        display: flex;
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }

    .filter-btn {
        background: transparent;
        border: 1px solid #444;
        color: #ccc;
        padding: 8px 20px;
        cursor: pointer;
        text-transform: uppercase;
        font-size: 0.8rem;
        letter-spacing: 1px;
        transition: 0.3s;
    }

    .filter-btn:hover, .filter-btn.active {
        border-color: var(--gold);
        color: var(--gold);
    }

    /* --- 瀑布流容器 --- */
    .gallery-container {
        padding: 20px 5%;
        /* 核心：利用 CSS Column 实现瀑布流 */
        column-count: 3; 
        column-gap: 20px;
        min-height: 80vh;
    }

    .gallery-item {
        margin-bottom: 20px;
        break-inside: avoid; /* 防止图片被切断 */
        position: relative;
        cursor: pointer;
        overflow: hidden;
        border-radius: 4px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    /* 筛选时的隐藏动画 */
    .gallery-item.hide {
        display: none; /* 简单粗暴隐藏，或者用 opacity 0 + position absolute 做动画 */
    }

    .gallery-item img {
        width: 100%;
        height: auto;
        display: block;
        filter: grayscale(20%); /* 默认稍微灰一点，更有质感 */
        transition: 0.5s;
    }

    .gallery-item:hover img {
        filter: grayscale(0);
        transform: scale(1.05);
    }

    /* 悬停显示的文字遮罩 */
    .item-overlay {
        position: absolute;
        bottom: 0; left: 0; width: 100%;
        background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
        padding: 20px;
        opacity: 0;
        transform: translateY(20px);
        transition: 0.3s;
    }

    .gallery-item:hover .item-overlay {
        opacity: 1;
        transform: translateY(0);
    }

    .item-overlay span {
        font-family: 'Playfair Display', serif;
        color: var(--gold);
        font-style: italic;
    }

    /* --- 灯箱 (Lightbox) --- */
    .lightbox {
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0,0,0,0.95);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 2000;
        opacity: 0;
        pointer-events: none; /* 默认点不到 */
        transition: opacity 0.3s;
    }

    .lightbox.active {
        opacity: 1;
        pointer-events: all;
    }

    .lightbox-img {
        max-width: 90%;
        max-height: 85%;
        box-shadow: 0 0 30px rgba(0,0,0,0.8);
        border: 2px solid #333;
    }

    .close-lightbox {
        position: absolute;
        top: 30px; right: 40px;
        font-size: 50px;
        color: #fff;
        cursor: pointer;
        transition: 0.3s;
    }
    .close-lightbox:hover { color: var(--gold); }

    /* --- 响应式 --- */
    @media(max-width: 1000px) {
        .gallery-container { column-count: 2; }
    }
    @media(max-width: 600px) {
        .gallery-container { column-count: 1; }
        .gallery-header h1 { font-size: 2rem; }
    }
}