/* 
 * 现代风尚视觉志 - 全局样式表
 * 极简主义设计 | 响应式布局 | 视觉优先
 */

/* =========================================
   1. CSS Variables & Reset
   ========================================= */
:root {
    /* 色彩系统 */
    --color-white: #FFFFFF;
    --color-bg: #FFFFFF;
    --color-bg-alt: #F5F5F5;
    --color-text: #222222;
    --color-text-light: #888888;
    --color-border: #EEEEEE;
    --color-overlay: rgba(0, 0, 0, 0.3);
    
    /* 字体系统 */
    --font-primary: 'Helvetica Now', 'Futura PT', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-cn: 'Source Han Sans CN', 'Alibaba PuHuiTi', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    
    /* 间距与尺寸 */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 32px;
    --spacing-lg: 64px;
    --spacing-xl: 120px;
    --header-height: 80px;
    
    /* 动画 */
    --transition-fast: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

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

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

ul {
    list-style: none;
}

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

/* 通用排版 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.text-center { text-align: center; }
.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
    font-weight: 300;
}
.section-subtitle {
    font-size: 1rem;
    color: var(--color-text-light);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--spacing-lg);
}

/* 布局容器 */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    padding: var(--spacing-xl) 0;
}

/* =========================================
   2. Header & Navigation
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    transition: transform var(--transition-fast);
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

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

.nav-link {
    font-size: 0.9rem;
    font-weight: 400;
    position: relative;
    padding: 5px 0;
}

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

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

/* Mobile Menu Toggle (Hidden by default on Desktop) */
.mobile-menu-btn {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* =========================================
   3. Home Page Components
   ========================================= */
/* Hero Slider */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

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

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

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

.hero-controls {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.hero-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity var(--transition-fast);
}

.hero-indicator.active {
    opacity: 1;
}

.indicator-text {
    font-size: 0.8rem;
    color: var(--color-bg); /* Dark bg usually needs light text, handled via JS or specific styling */
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    font-weight: 500;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Quote Section */
.quote-section {
    background-color: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
}

.quote-text {
    font-size: 2rem;
    font-weight: 300;
    max-width: 800px;
    text-align: center;
    line-height: 1.4;
}

/* Quick Access Grid */
.quick-access {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    height: 60vh;
}

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

.qa-item img {
    height: 100%;
    transition: transform var(--transition-smooth);
}

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

.qa-title {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--color-text);
    transform: translateY(20px);
    transition: transform var(--transition-fast);
}

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

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

.qa-item:hover .qa-title {
    transform: translateY(0);
}

/* =========================================
   4. Gallery Page
   ========================================= */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: none;
    font-size: 0.9rem;
    color: var(--color-text-light);
    cursor: pointer;
    padding-bottom: 5px;
    border-bottom: 1px solid transparent;
    transition: all var(--transition-fast);
}

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

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2/3;
    background-color: var(--color-bg-alt);
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(34, 34, 34, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.gallery-btn {
    padding: 10px 24px;
    border: 1px solid #fff;
    color: #fff;
    background: transparent;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.gallery-btn:hover {
    background: #fff;
    color: var(--color-text);
}

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

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

.gallery-desc {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--color-text-light);
    text-align: center;
}

/* =========================================
   5. Style Archive Page
   ========================================= */
.style-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.style-unit {
    display: flex;
    align-items: center;
    gap: 60px;
}

.style-unit:nth-child(even) {
    flex-direction: row-reverse;
}

.style-content {
    flex: 1;
}

.style-visuals {
    flex: 1.2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.style-visuals img:first-child {
    grid-column: span 2;
    aspect-ratio: 16/9;
}

.style-title {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-sm);
}

.style-quote {
    font-size: 1.1rem;
    font-family: serif; /* Optionally use serif for quotes */
    font-style: italic;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
}

.style-points li {
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
    font-size: 0.95rem;
}

.style-points li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-text-light);
}

/* =========================================
   6. Inspiration & Behind Pages
   ========================================= */
/* Inspiration */
.article-list {
    max-width: 900px;
    margin: 0 auto;
}

.article-card {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    align-items: flex-start;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--color-border);
}

.article-thumb {
    width: 300px;
    flex-shrink: 0;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.article-thumb img {
    transition: transform var(--transition-smooth);
}

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

.article-info {
    flex: 1;
}

.article-date {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-bottom: 10px;
    display: block;
}

.article-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.article-excerpt {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* Behind */
.behind-content {
    max-width: 800px;
    margin: 0 auto;
}

.behind-block {
    margin-bottom: var(--spacing-xl);
}

.behind-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.behind-img-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

/* =========================================
   7. Footer
   ========================================= */
.footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--color-bg-alt);
    margin-top: auto;
}

.copyright {
    font-size: 0.8rem;
    color: var(--color-text-light);
    letter-spacing: 0.05em;
}

/* =========================================
   8. Responsive Design
   ========================================= */
@media (max-width: 1024px) {
    .container { padding: 0 20px; }
    .quick-access { height: 40vh; }
    .style-unit { gap: 30px; }
    .section-title { font-size: 2rem; }
}

@media (max-width: 768px) {
    .navbar { padding: 0 20px; }
    .nav-links { 
        display: none; /* In real implementation, would be a hamburger menu */
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        text-align: center;
        border-bottom: 1px solid var(--color-border);
    }
    
    .nav-links.active { display: flex; }
    .mobile-menu-btn { display: block; }
    
    .quick-access { grid-template-columns: 1fr; height: auto; }
    .qa-item { height: 250px; }
    
    .style-unit, .style-unit:nth-child(even) {
        flex-direction: column;
    }
    
    .article-card { flex-direction: column; gap: 20px; }
    .article-thumb { width: 100%; }
    
    .quote-text { font-size: 1.5rem; }
}

/* Utility Classes */
.hidden { display: none !important; }
.fade-in { animation: fadeIn 0.8s ease-out forwards; opacity: 0; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}