/* 
 * 全局样式文件
 * 项目：现代高质量时尚女装展示网站
 * 风格：极简现代、高级质感
 */

/* =========================================
   1. 基础设置 & 变量 (Variables & Base)
   ========================================= */
:root {
    /* 色彩系统 */
    --color-ivory: #FBFBF9;       /* 象牙白 */
    --color-sand: #E8E6E1;        /* 浅砂岩灰 */
    --color-fog: #B0B3B5;         /* 雾霾灰 */
    --color-beige: #D6D2C4;       /* 淡米色 */
    --color-black: #1A1A1A;       /* 哑光黑 */
    --color-text-main: #333333;   /*主要文字颜色*/
    --color-text-light: #666666;  /*次要文字颜色*/
    
    /* 字体规范 */
    --font-en: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-cn: "PingFang SC", "Hiragino Sans GB", "Source Han Sans CN", "Microsoft YaHei", sans-serif;
    
    /* 间距与尺寸 */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    --nav-height: 80px;
    
    /* 动画 */
    --transition-fast: 0.3s ease;
    --transition-slow: 0.8s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

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

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

ul {
    list-style: none;
}

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

/* =========================================
   2. 通用组件 (Common Components)
   ========================================= */
.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section-title {
    font-size: 2rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    letter-spacing: 2px;
    color: var(--color-black);
}

.btn-link {
    display: inline-block;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--color-text-main);
    margin-top: var(--spacing-md);
    cursor: pointer;
}

.btn-link:hover {
    border-bottom-color: var(--color-black);
    opacity: 0.7;
}

/* 动态槽位占位符 */
.slot-container {
    display: contents;
}

/* =========================================
   3. 导航栏 (Navigation)
   ========================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: rgba(251, 251, 249, 0.95);
    backdrop-filter: blur(5px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: transform var(--transition-fast);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 var(--spacing-md);
}

.logo {
    width: 40px;
    height: 40px;
}

/* 抽象线条Logo */
.logo-graphic {
    width: 100%;
    height: 100%;
    border: 1px solid var(--color-black);
    position: relative;
    transform: rotate(45deg);
}
.logo-graphic::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-black);
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-item {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text-light);
    position: relative;
}

.nav-item.active, 
.nav-item:hover {
    color: var(--color-black);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-black);
    transition: width var(--transition-fast);
}

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

/* =========================================
   4. 首页 (Home Page)
   ========================================= */
/* 全屏轮播 */
.hero-slider {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.9);
}

.slide-content {
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 2;
    transform: translateY(20px);
    transition: transform 1s ease-out;
}

.slide.active .slide-content {
    transform: translateY(0);
}

.slide-text {
    font-size: 3rem;
    font-weight: 200;
    letter-spacing: 3px;
    font-family: var(--font-cn);
}

/* 首页内容展示 */
.home-showcase {
    padding: var(--spacing-xl) 0;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.showcase-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.showcase-img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.showcase-desc {
    margin-top: var(--spacing-sm);
    text-align: center;
}

.desc-title {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--color-black);
}

.desc-detail {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-top: 5px;
}

/* =========================================
   5. 系列页面 (Collections Page)
   ========================================= */
.collections-header {
    padding-top: calc(var(--nav-height) + var(--spacing-lg));
    padding-bottom: var(--spacing-lg);
    text-align: center;
}

.collection-hero {
    position: relative;
    margin-bottom: var(--spacing-lg);
}

.collection-hero-img {
    width: 100%;
    height: 70vh;
    object-fit: cover;
}

.collection-hero-text {
    position: absolute;
    bottom: var(--spacing-md);
    left: var(--spacing-md);
    background: rgba(255,255,255,0.8);
    padding: var(--spacing-md);
    max-width: 400px;
}

.grid-3x2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.collection-item {
    display: flex;
    flex-direction: column;
}

.collection-item-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 500px;
}

.collection-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.btn-detail {
    margin-top: var(--spacing-sm);
    background: none;
    border: 1px solid var(--color-text-light);
    color: var(--color-text-main);
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    font-size: 0.8rem;
}

.btn-detail:hover {
    background: var(--color-black);
    color: var(--color-ivory);
    border-color: var(--color-black);
}

/* 详情弹窗 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none; /* JS控制显示 */
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.modal-content {
    background: var(--color-ivory);
    width: 80%;
    max-width: 1000px;
    max-height: 90vh;
    display: flex;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
}

.modal-gallery {
    width: 60%;
    background: #f0f0f0;
}

.modal-img-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    width: 40%;
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--color-text-light);
    padding-bottom: var(--spacing-sm);
}

.modal-details p {
    margin-bottom: var(--spacing-sm);
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* =========================================
   6. 美学页面 (Aesthetics Page)
   ========================================= */
.aesthetics-page {
    padding-top: var(--nav-height);
}

.video-section {
    width: 100%;
    height: 80vh;
    overflow: hidden;
    position: relative;
    background: #000;
}

.video-section video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.aesthetic-block {
    display: flex;
    align-items: center;
    padding: var(--spacing-xl) 0;
    min-height: 80vh;
}

.aesthetic-block:nth-child(even) {
    flex-direction: row-reverse;
}

.aesthetic-content {
    flex: 1;
    padding: var(--spacing-lg);
}

.aesthetic-img-wrapper {
    flex: 1;
    height: 600px;
}

.aesthetic-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aesthetic-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    font-weight: 300;
}

.aesthetic-text {
    font-size: 1rem;
    color: var(--color-text-light);
    max-width: 400px;
    line-height: 1.8;
}

.quote-section {
    padding: var(--spacing-xl) 0;
    text-align: center;
    background-color: var(--color-sand);
}

.quote-text {
    font-size: 2rem;
    font-style: italic;
    font-family: serif;
    color: var(--color-text-main);
    max-width: 800px;
    margin: 0 auto;
}

.quote-author {
    margin-top: var(--spacing-md);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   7. 全屏图片查看器 (Fullscreen Viewer)
   ========================================= */
.fullscreen-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 3000;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

.fullscreen-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* =========================================
   8. 页脚 (Footer)
   ========================================= */
.site-footer {
    padding: var(--spacing-md) 0;
    border-top: 1px solid rgba(0,0,0,0.1);
    text-align: center;
    background-color: var(--color-ivory);
    margin-top: var(--spacing-xl);
}

.footer-text {
    font-size: 0.8rem;
    color: var(--color-text-light);
    letter-spacing: 1px;
}

/* =========================================
   9. 响应式适配 (Responsive)
   ========================================= */
@media (max-width: 1024px) {
    .showcase-grid, 
    .grid-3x2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-xl: 4rem;
        --spacing-lg: 2rem;
    }

    .slide-text {
        font-size: 2rem;
    }

    .showcase-grid,
    .grid-3x2 {
        grid-template-columns: 1fr;
    }

    .aesthetic-block,
    .aesthetic-block:nth-child(even) {
        flex-direction: column;
        padding: var(--spacing-md) 0;
    }

    .aesthetic-img-wrapper {
        width: 100%;
        height: 400px;
    }

    .modal-content {
        flex-direction: column;
        overflow-y: auto;
    }

    .modal-gallery, .modal-info {
        width: 100%;
    }
    
    .nav-links {
        gap: var(--spacing-sm);
    }
    
    .nav-item {
        font-size: 0.8rem;
    }
}

/* 加载动画 */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}