/* 
 * Fashion Showcase - Global Styles
 * By HAISNAP
 * 遵循极简主义设计，视觉优先
 */

/* =========================================
   1. Variables & Design Tokens
   ========================================= */
:root {
    /* Color Palette */
    --color-bg-main: #FFFFFF;
    --color-bg-light: #F5F5F5;
    --color-bg-off-white: #F9F7F4;
    --color-text-primary: #1A1A1A;
    --color-text-secondary: #666666;
    --color-accent-clay: #D4A574;
    --color-accent-blue: #8AA2A9;
    --color-border: rgba(0, 0, 0, 0.05);

    /* Typography */
    --font-en: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-cn: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    --font-base-size: 16px;

    /* Layout & Spacing */
    --container-max-width: 1280px;
    --nav-height: 80px;
    --spacing-sm: 1rem;
    --spacing-md: 2.5rem;
    --spacing-lg: 5rem;
    --spacing-xl: 8rem;

    /* Animation */
    --transition-fast: 0.3s ease;
    --transition-slow: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =========================================
   2. Reset & Base Styles
   ========================================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: var(--font-base-size);
}

body {
    font-family: var(--font-en), var(--font-cn);
    background-color: var(--color-bg-main);
    color: var(--color-text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    opacity: 0;
    animation: pageFadeIn 0.8s ease forwards;
}

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

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

ul {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    -webkit-user-drag: none; /* 禁止拖拽 */
    user-select: none; /* 禁止选中 */
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: 1.5rem; }

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

/* Utility Classes */
.container {
    width: 90%;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.text-center { text-align: center; }
.mt-nav { margin-top: var(--nav-height); }
.section-padding { padding: var(--spacing-xl) 0; }
.bg-light { background-color: var(--color-bg-light); }
.bg-off-white { background-color: var(--color-bg-off-white); }
.hidden { display: none; }

/* =========================================
   3. Components
   ========================================= */

/* Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--color-border);
    transition: transform var(--transition-fast);
}

.nav-menu {
    display: flex;
    gap: 4vw;
}

.nav-link {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-secondary);
    position: relative;
    padding: 5px 0;
}

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

.nav-link:hover, .nav-link.active {
    color: var(--color-text-primary);
}

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

/* Footer */
.site-footer {
    padding: var(--spacing-lg) 0;
    text-align: center;
    background-color: var(--color-bg-main);
    border-top: 1px solid var(--color-border);
}

.footer-copy {
    color: #666666;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

/* Buttons (Minimalist) */
.btn-text {
    display: inline-block;
    border-bottom: 1px solid var(--color-text-primary);
    padding-bottom: 2px;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

.btn-text:hover {
    color: var(--color-text-secondary);
    border-color: var(--color-text-secondary);
}

/* =========================================
   4. Page Specific Styles
   ========================================= */

/* Home - Hero Carousel */
.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
    margin-top: 0; /* Cover everything including nav area */
}

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

.slide.active { opacity: 1; }

.slide-content {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #FFF;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 800px;
}

.slide-text {
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    font-weight: 300;
}

/* Home - Intro */
.intro-block {
    max-width: 700px;
    margin: 0 auto;
    padding: var(--spacing-xl) 20px;
    text-align: center;
}

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

/* Grid System */
.grid-cols-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grid-cols-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

/* Image Hover Effects */
.img-hover-zoom {
    overflow: hidden;
    position: relative;
    cursor: default;
}

.img-hover-zoom img {
    transition: transform var(--transition-slow);
}

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

.hover-overlay-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.img-hover-zoom:hover .hover-overlay-text {
    opacity: 1;
}

.overlay-label {
    color: #FFF;
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.5);
    padding: 10px 20px;
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(5px);
}

/* Series Page */
.filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin: var(--spacing-lg) 0;
}

.tab-btn {
    background: transparent;
    border: none;
    font-size: 1rem;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding-bottom: 5px;
    position: relative;
    transition: color var(--transition-fast);
}

.tab-btn.active, .tab-btn:hover {
    color: var(--color-text-primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-text-primary);
}

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

.masonry-item {
    break-inside: avoid;
    margin-bottom: 20px;
}

.item-desc {
    font-size: 0.85rem;
    margin-top: 8px;
    color: var(--color-text-secondary);
    opacity: 0.8;
}

.category-intro {
    max-width: 600px;
    margin: 0 auto 40px;
    text-align: center;
    font-size: 0.95rem;
}

/* Inspiration Page */
.article-card {
    margin-bottom: var(--spacing-lg);
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.article-layout.reverse {
    direction: rtl;
}

.article-layout.reverse > * {
    direction: ltr;
}

.article-text-wrap {
    padding: 20px;
}

.article-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.gallery-row {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
}
.gallery-row::-webkit-scrollbar { display: none; }

.gallery-thumb {
    flex: 0 0 120px;
    height: 120px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.gallery-thumb:hover { opacity: 1; }

/* Story Page */
.gallery-wall {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4px;
}

.gallery-wall-item {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
}

.gallery-wall-item img {
    width: 100%;
    height: 100%;
    transition: transform var(--transition-slow);
}

.gallery-wall-item:hover img {
    transform: scale(1.05);
}

.story-note {
    position: absolute;
    bottom: 10px;
    right: 15px;
    color: rgba(255,255,255,0.9);
    font-size: 0.8rem;
    font-style: italic;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.gallery-wall-item:hover .story-note {
    opacity: 1;
}

/* Scroll Animation Elements */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   5. Responsive Design
   ========================================= */
@media (max-width: 1024px) {
    .masonry-grid { column-count: 2; }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 60px;
        --spacing-lg: 3rem;
        --spacing-xl: 5rem;
    }

    .nav-menu {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 0.75rem;
    }

    .grid-cols-3, .grid-cols-2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .article-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .article-layout.reverse { direction: ltr; }

    h1 { font-size: 2rem; }
    .intro-text { font-size: 1rem; }
}