/* 
 * 全局样式文件 - 纯粹视觉时尚画廊
 * 遵循极简主义设计理念
 */

:root {
    /* 核心色调 */
    --bg-primary: #F7F7F7;      /* 米白/浅灰 */
    --bg-secondary: #EBEBEB;    /* 稍微深一点的灰 */
    --text-primary: #2C2C2C;    /* 深空灰 - 主要文字 */
    --text-secondary: #888888;  /* 中性灰 - 次要文字/页脚 */
    --accent-color: #D4AF37;    /* 低饱和度金/流行色点缀 */
    --overlay-bg: rgba(255, 255, 255, 0.9);

    /* 字体系统 */
    --font-main: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    
    /* 间距与尺寸 */
    --spacing-unit: 8px;
    --container-width: 1440px;
    --header-height: 80px;

    /* 动画 */
    --transition-base: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: all 0.8s ease-out;
}

/* --- 基础重置 --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

ul {
    list-style: none;
}

/* --- 布局容器 --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 4);
    width: 100%;
}

.section {
    padding: 100px 0;
    position: relative;
}

.full-screen {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* --- 导航栏 --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    transition: var(--transition-base);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(247, 247, 247, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.03);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--text-primary);
    position: relative;
    opacity: 0.7;
}

.nav-links a:hover, .nav-links a.active {
    opacity: 1;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--text-primary);
    transition: var(--transition-base);
}

.nav-links a:hover::after {
    width: 100%;
}

/* 移动端菜单切换按钮 (默认隐藏) */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* --- 首页特定样式 --- */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slide-item {
    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;
}

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

/* 图片轻微放大效果 */
.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    animation: zoomEffect 20s infinite alternate;
}

@keyframes zoomEffect {
    from { transform: scale(1.05); }
    to { transform: scale(1.15); }
}

.season-indicator {
    position: absolute;
    bottom: 50px;
    right: 5%;
    font-size: 4rem;
    font-weight: 100;
    color: rgba(255,255,255,0.8);
    mix-blend-mode: difference;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 10px;
    pointer-events: none;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-primary);
    animation: bounce 2s infinite;
    cursor: pointer;
    opacity: 0.6;
}

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

/* --- 通用视觉组件 --- */
.text-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-base);
}

.card-wrap:hover .text-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* 瀑布流布局 (系列展示页) */
.masonry-grid {
    column-count: 3;
    column-gap: 20px;
    padding: 20px 0;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.masonry-item img {
    width: 100%;
    transition: transform 0.6s ease;
}

.masonry-item:hover img {
    transform: scale(1.03);
}

/* 筛选器 */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: none;
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding-bottom: 5px;
    transition: var(--transition-base);
}

.filter-btn:hover, .filter-btn.active {
    color: var(--text-primary);
    border-bottom: 1px solid var(--text-primary);
}

/* 灵感页 & 工艺页 */
.split-section {
    display: flex;
    min-height: 80vh;
}

.split-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
}

.split-image {
    flex: 1;
    background-size: cover;
    background-position: center;
}

.timeline-wrap {
    position: relative;
    padding-left: 40px;
    border-left: 1px solid var(--text-secondary);
    margin: 40px 0;
}

.timeline-point {
    position: relative;
    margin-bottom: 60px;
}

.timeline-point::before {
    content: '';
    position: absolute;
    left: -45px;
    top: 5px;
    width: 9px;
    height: 9px;
    background: var(--text-primary);
    border-radius: 50%;
}

/* 模态框 (细节放大/360视图) */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.98);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.open {
    display: flex;
    opacity: 1;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-primary);
    background: none;
    border: none;
}

/* --- 文字排版 --- */
h1, h2, h3 {
    font-weight: 300;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; text-transform: uppercase; letter-spacing: 2px; }

p {
    margin-bottom: 1.5rem;
    color: #555;
    max-width: 65ch;
}

.subtitle {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* --- 页脚 --- */
footer {
    text-align: center;
    padding: 40px 0;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: auto;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* --- 响应式调整 --- */
@media (max-width: 1024px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    
    .navbar {
        padding: 0 20px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 70%;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.05);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .masonry-grid {
        column-count: 1;
    }

    .split-section {
        flex-direction: column;
    }
    
    .season-indicator {
        font-size: 2rem;
        bottom: 20px;
    }
}