/* Global Variables */
:root {
    --primary-color: #2C3E50; /* 深蓝色 */
    --accent-color: #F8BBD0; /* 柔粉色 */
    --text-dark: #333333;
    --text-light: #777777;
    --bg-light: #F5F5F5;
    --bg-white: #FFFFFF;
    --font-main: "PingFang SC", "Microsoft YaHei", "Source Han Sans CN", sans-serif;
    --max-width: 1200px;
    --header-height: 70px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    padding-top: var(--header-height); /* Prevent content overlap with fixed header */
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

/* Utility Classes */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.section-padding { padding: 60px 0; }
.hidden { display: none; }

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--bg-light);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.nav-link {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    padding: 10px 0;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

/* Mobile Menu Toggle (Hidden by default on desktop) */
.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    right: 20px;
}

/* Hero Slider (Index) */
.hero-slider {
    width: 100%;
    height: calc(100vh - var(--header-height));
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.swiper-slide {
    position: relative;
}

.slide-content {
    width: 100%;
    height: 100%;
}

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

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.slide-text {
    background: rgba(255, 255, 255, 0.85);
    padding: 20px 40px;
    color: var(--text-dark);
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 2px;
    backdrop-filter: blur(5px);
}

/* Featured Grid (Index) */
.featured-section {
    background-color: var(--bg-white);
}

.section-title {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

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

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

.grid-item img {
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.grid-item:hover img {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.grid-caption {
    margin-top: 15px;
    font-size: 14px;
    color: var(--text-light);
}

.hero-intro {
    max-width: 800px;
    margin: 40px auto 0;
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: 300;
}

/* Collections Page */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 25px;
    border: 1px solid #ddd;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.collection-card {
    text-align: center;
}

.collection-card img {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 4px;
    margin-bottom: 15px;
}

.collection-desc {
    font-size: 14px;
    color: var(--text-light);
}

.load-more-container {
    margin-top: 50px;
    text-align: center;
}

.btn-outline {
    display: inline-block;
    padding: 12px 40px;
    border: 1px solid var(--text-dark);
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    cursor: pointer;
    background: transparent;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Inspiration Page */
.inspiration-header {
    padding: 60px 0;
    text-align: center;
    background-color: var(--bg-light);
    margin-bottom: 40px;
}

.inspiration-header h1 { font-size: 2.5rem; font-weight: 300; margin-bottom: 10px; }
.inspiration-header p { color: var(--text-light); font-size: 1.2rem; }

.article-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
}

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

.article-card:nth-child(even) {
    direction: rtl; /* Alternating layout */
}

.article-card:nth-child(even) .article-content {
    direction: ltr;
}

.article-img img {
    width: 100%;
    border-radius: 2px;
}

.article-content h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 400;
}

.article-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.quote-section {
    margin: 80px 0;
    text-align: center;
    padding: 60px 20px;
    background-color: var(--bg-light);
}

.quote-text {
    font-size: 1.5rem;
    font-style: italic;
    font-family: serif;
    color: var(--primary-color);
}

/* About Page */
.about-hero {
    height: 80vh;
    background: url('https://images.unsplash.com/photo-1483985988355-763728e1935b?auto=format&fit=crop&q=80') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-overlay {
    background: rgba(0, 0, 0, 0.6);
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}

.about-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
    text-align: center;
    padding: 40px;
}

.about-content h1 { font-size: 3rem; margin-bottom: 30px; font-weight: 300; }
.about-content p { font-size: 1.2rem; line-height: 1.8; opacity: 0.9; }

.values-section {
    padding: 80px 0;
    background: white;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.value-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Gallery Page */
.gallery-grid {
    column-count: 4;
    column-gap: 20px;
}

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

.gallery-item img {
    width: 100%;
    display: block;
    border-radius: 4px;
    transition: opacity 0.3s;
}

.gallery-item:hover img {
    opacity: 0.9;
}

/* Footer */
.site-footer {
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid #eee;
    margin-top: 60px;
}

.site-footer p {
    color: var(--text-light);
    font-size: 14px;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .collection-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery-grid { column-count: 3; }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    
    .nav-menu {
        display: none; /* Use JS to toggle */
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        text-align: center;
        gap: 0;
    }
    
    .nav-menu.active { display: flex; }
    
    .nav-link {
        display: block;
        padding: 15px;
        width: 100%;
    }

    .grid-3 { grid-template-columns: 1fr; }
    
    .collection-grid { grid-template-columns: repeat(2, 1fr); }
    
    .article-card, .article-card:nth-child(even) {
        grid-template-columns: 1fr;
        direction: ltr;
    }
    
    .gallery-grid { column-count: 2; }
    
    .values-grid { grid-template-columns: 1fr; }
    
    .hero-slider { min-height: 400px; }
    .slide-text { font-size: 1.5rem; padding: 15px 20px; }
}