/* fashion-showcase-060626/frontend/public/css/style.css */

/* =========================================
   1. Variables & Reset
   ========================================= */
:root {
    --color-bg: #FFFFFF;
    --color-bg-alt: #F9F9F9;
    --color-text-main: #333333;
    --color-text-light: #777777;
    --color-accent: #111111;
    --font-stack: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    --transition-base: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --spacing-unit: 8px;
    --container-width: 1440px;
    --header-height: 80px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

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

/* =========================================
   2. Typography
   ========================================= */
h1, h2, h3, h4 {
    font-weight: 400;
    letter-spacing: 0.05em;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

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

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

.text-light { color: var(--color-text-light); }
.text-center { text-align: center; }
.small-text { font-size: 0.875rem; color: var(--color-text-light); }

/* =========================================
   3. Layout & Utilities
   ========================================= */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

section {
    padding: 6rem 0;
}

.grid-12 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
}

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

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

/* =========================================
   4. Header & Navigation
   ========================================= */
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%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: transform 0.3s ease;
}

header.hidden {
    transform: translateY(-100%);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 1001;
}

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

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

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

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

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger, .hamburger::before, .hamburger::after {
    width: 24px;
    height: 2px;
    background: var(--color-accent);
    transition: 0.3s;
    display: block;
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
}

.hamburger::before { transform: translateY(-8px); }
.hamburger::after { transform: translateY(8px); }

/* =========================================
   5. Hero Section (Home)
   ========================================= */
.hero-slider {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    padding: 0; /* Override section padding */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    z-index: 1;
}

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

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slide-content {
    position: absolute;
    bottom: 15%;
    left: 5%;
    color: #fff;
    z-index: 3;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    max-width: 600px;
}

.slide-content h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 0.5rem;
    color: #fff;
}

.slide-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.05em;
}

/* =========================================
   6. Series Preview (Home)
   ========================================= */
.series-preview {
    background-color: var(--color-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.series-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 80vh; /* Tall visual impact */
    width: 100%;
}

.series-card {
    position: relative;
    overflow: hidden;
    height: 100%;
    cursor: pointer;
    group: group;
}

.series-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.series-card:hover img {
    transform: scale(1.05);
}

.series-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.4s ease;
}

.series-card:hover .series-overlay {
    background: rgba(0,0,0,0.4);
}

.series-title {
    color: #fff;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border-bottom: 1px solid transparent;
    padding-bottom: 5px;
    transition: all 0.4s ease;
}

.series-card:hover .series-title {
    border-color: #fff;
    letter-spacing: 0.25em;
}

/* =========================================
   7. Philosophy Section
   ========================================= */
.philosophy {
    background-image: url('https://hpi-hub.tos-cn-beijing.volces.com/static/batch_7/1757252714831-4407.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

/* 添加遮罩层提升文字可读性 */
.philosophy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(17,17,17,0.75));
    z-index: 1;
}

.philosophy-content {
    max-width: 800px;
    text-align: center;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.philosophy-content h2 {
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    margin-bottom: 2rem;
}

.philosophy-content p {
    font-size: 1.25rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

/* =========================================
   8. Series Detail Page
   ========================================= */
.series-header {
    padding-top: 120px;
    padding-bottom: 4rem;
    text-align: center;
}

.series-description {
    max-width: 600px;
    margin: 0 auto;
    color: var(--color-text-light);
}

.gallery {
    padding: 0 2%;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
}

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

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

/* Details Section */
.details {
    padding: 6rem 5%;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    align-items: center;
}

.detail-info h3 {
    margin-bottom: 1rem;
}

.color-palette {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.color-swatch {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* =========================================
   9. Footer
   ========================================= */
footer {
    padding: 3rem 0;
    text-align: center;
    background-color: var(--color-bg);
    border-top: 1px solid #eee;
}

.copyright {
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--color-text-light);
    letter-spacing: 0.1em;
}

/* =========================================
   10. Responsive Design
   ========================================= */
/* Tablet */
@media (max-width: 1024px) {
    :root {
        --header-height: 70px;
    }

    .series-grid {
        grid-template-columns: repeat(2, 1fr);
        height: auto;
    }
    
    .series-card {
        aspect-ratio: 1/1;
    }

    .image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    /* Mobile Nav */
    .menu-toggle {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 70%;
        background: #fff;
        padding-top: 100px;
        transform: translateX(100%);
        transition: transform 0.4s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.05);
    }

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

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .series-grid {
        grid-template-columns: 1fr;
    }
    
    .series-card {
        aspect-ratio: 4/3;
    }

    .detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .image-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-slider {
        height: 90vh; /* Avoid mobile browser bar issues */
    }
}

/* Modal / Lightbox (Optional JS hook) */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.98);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox img {
    max-height: 90vh;
    max-width: 90vw;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2rem;
    cursor: pointer;
    color: #333;
}