/* 
 * 现代极简主义时尚女装网站全局样式
 * 核心定位：艺术画廊式的视觉呈现，无商业干扰
 * 配色方案：月白色、珍珠灰、羊绒米、陶土红、雾霾蓝
 */

:root {
    /* 核心配色 */
    --color-bg-primary: #F8F8FF; /* 月白色 */
    --color-bg-secondary: #F5F5DC; /* 羊绒米 */
    --color-bg-tertiary: #E8E8E8; /* 珍珠灰 */
    
    --color-accent-earth: #CC7357; /* 陶土红 */
    --color-accent-mist: #6D8B9A; /* 雾霾蓝 */
    --color-accent-oat: #D8C4A6; /* 燕麦色 */
    
    --color-text-primary: #2A2A2A; /* 炭黑 */
    --color-text-secondary: #4A4A4A; /* 深灰 */
    --color-text-light: #888888;    /* 浅灰 */

    /* 字体系统 */
    --font-heading: 'Playfair Display', 'Source Han Serif CN', 'Noto Serif SC', serif;
    --font-body: 'Inter', 'Alibaba PuHuiTi', 'Helvetica Neue', Helvetica, Arial, sans-serif;

    /* 间距与布局 */
    --spacing-unit: 8px;
    --container-max-width: 1440px;
    --header-height: 80px;
    
    /* 动效 */
    --transition-smooth: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-fast: all 0.3s ease;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.3;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
}

h1 { font-size: 3.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2.5rem; letter-spacing: 0.02em; }
h3 { font-size: 1.5rem; letter-spacing: 0.05em; }

p {
    margin-bottom: 1.5rem;
    color: var(--color-text-secondary);
    font-weight: 300;
}

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

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

ul { list-style: none; }

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

.full-screen {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* --- 导航栏 --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    background-color: rgba(248, 248, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: var(--transition-smooth);
}

header.scrolled {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    height: 70px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-text-primary);
}

nav ul {
    display: flex;
    gap: 4rem;
}

nav a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    padding-bottom: 4px;
}

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

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

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* --- 首页：全屏轮播 --- */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
}

.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;
}

.slide.active {
    opacity: 1;
}

/* 图片轻微放大效果 */
.slide.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 10s ease-out;
    z-index: -1;
}

.hero-content {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
    color: white; /* 轮播图上通常用白色文字 */
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    width: 80%;
}

.hero-content h2 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s forwards 0.5s;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s forwards 0.8s;
}

/* --- 通用部分样式 --- */
section {
    padding: 120px 0;
}

.intro-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.intro-text {
    font-size: 1.5rem;
    line-height: 2;
    color: var(--color-text-secondary);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--color-accent-earth);
    margin: 20px auto 0;
}

/* --- 特色展示区 (Grid布局) --- */
.grid-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-card {
    text-align: center;
    cursor: pointer;
}

.feature-image-wrapper {
    overflow: hidden;
    margin-bottom: 2rem;
    aspect-ratio: 3/4;
    position: relative;
}

.feature-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.feature-card:hover img {
    transform: scale(1.08);
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* --- 美学理念页 --- */
.split-section {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 120px;
}

.split-section.reverse {
    flex-direction: row-reverse;
}

.split-content {
    flex: 1;
    padding: 20px;
}

.split-image {
    flex: 1.2;
    overflow: hidden;
}

.split-image img {
    width: 100%;
    height: auto;
    transition: transform 0.8s ease;
}

.split-section:hover .split-image img {
    transform: scale(1.03);
}

/* --- 视觉图库页 (瀑布流) --- */
.gallery-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--color-text-light);
    transition: var(--transition-fast);
    padding: 5px 10px;
}

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

.gallery-grid {
    column-count: 3;
    column-gap: 20px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    position: relative;
    cursor: zoom-in;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: filter 0.3s;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    text-align: center;
    padding: 1rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* 焦点模式 (Modal) */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(248, 248, 255, 0.98);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

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

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

.modal-content img {
    max-height: 85vh;
    object-fit: contain;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

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

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

/* --- 动画关键帧 --- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- 响应式设计 --- */

/* 平板端 (768px - 1199px) */
@media (max-width: 1199px) {
    h1 { font-size: 2.8rem; }
    .grid-features {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-grid {
        column-count: 2;
    }
    .split-section {
        gap: 40px;
    }
}

/* 移动端 (<= 767px) */
@media (max-width: 767px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    
    header {
        padding: 0 20px;
    }

    nav ul {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: var(--color-bg-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.4s ease;
    }

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

    nav a {
        font-size: 1.5rem;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }

    .grid-features {
        grid-template-columns: 1fr;
    }

    .split-section, 
    .split-section.reverse {
        flex-direction: column;
        gap: 30px;
    }

    .gallery-grid {
        column-count: 1;
    }
    
    .hero-content {
        width: 90%;
        bottom: 10%;
    }
}