/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&family=Noto+Sans+SC:wght@300;400;500&display=swap');

/* =========================================
   Variables & Reset
   ========================================= */
:root {
    /* Color Palette */
    --color-primary: #2C3E50;    /* 深灰 */
    --color-secondary: #ECF0F1;  /* 浅灰 */
    --color-accent: #7F8C8D;     /* 暖灰 */
    --color-light: #FDFEFE;      /* 米白 */
    --color-dark: #1a252f;       /* 极深灰 */
    
    /* Typography */
    --font-en: 'Montserrat', sans-serif;
    --font-cn: 'Noto Sans SC', sans-serif;
    
    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Animation */
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-cn);
    background-color: var(--color-light);
    color: var(--color-primary);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

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

ul {
    list-style: none;
}

/* =========================================
   Typography & Utilities
   ========================================= */
h1, h2, h3, h4 {
    font-family: var(--font-cn);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-sm);
}

.en-font { font-family: var(--font-en); }
.text-center { text-align: center; }
.text-justify { text-align: justify; }
.text-accent { color: var(--color-accent); }

/* Slots for dynamic content */
.content-slot { display: contents; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
}

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

/* =========================================
   Components
   ========================================= */

/* Header & Navigation */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: rgba(253, 254, 254, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(44, 62, 80, 0.05);
    transition: var(--transition);
}

nav {
    display: flex;
    justify-content: center; /* 居中设计 */
    align-items: center;
    height: 80px;
}

nav ul {
    display: flex;
    gap: var(--spacing-lg);
}

nav a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    position: relative;
    padding: 8px 0;
    color: var(--color-primary);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: var(--color-primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 36px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border: 1px solid;
    cursor: pointer;
    transition: var(--transition);
    margin-top: var(--spacing-sm);
}

.btn-light {
    border-color: #fff;
    color: #fff;
    background: transparent;
}

.btn-light:hover {
    background: #fff;
    color: var(--color-dark);
}

.btn-dark {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: transparent;
}

.btn-dark:hover {
    background: var(--color-primary);
    color: #fff;
}

/* Hero Section & Slider */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.slider-container {
    height: 100%;
    width: 100%;
    position: relative;
}

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

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

/* Overlay for text readability */
.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.4));
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    color: #fff;
    width: 90%;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.1em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
    letter-spacing: 0.05em;
}

/* Intro Section */
.intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.intro p {
    font-size: 1.1rem;
    color: #555;
    margin-top: var(--spacing-sm);
}

/* Grid System & Cards */
.grid-cols-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

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

.card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    transition: var(--transition);
}

.card-image-wrapper {
    width: 100%;
    aspect-ratio: 3/4; /* 时尚摄影常用比例 */
    overflow: hidden;
    position: relative;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease;
}

.card:hover .card-image-wrapper img {
    transform: scale(1.03);
}

.card-body {
    padding: var(--spacing-md) 0;
    text-align: center;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.card-text {
    font-size: 0.95rem;
    color: var(--color-accent);
    font-weight: 300;
}

/* Detail Page Layout */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.detail-img {
    height: 80vh;
    width: 100%;
}

.detail-img img {
    height: 100%;
    width: 100%;
}

.detail-content {
    padding-right: var(--spacing-lg);
}

/* Style Guide Layout */
.guide-section {
    margin-bottom: var(--spacing-xl);
}

.guide-block {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    align-items: center;
}

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

.guide-img {
    flex: 1;
    height: 500px;
}

.guide-info {
    flex: 1;
    padding: var(--spacing-md);
}

/* Footer */
footer {
    background-color: var(--color-primary);
    color: #fff;
    padding: var(--spacing-lg) 0;
    text-align: center;
    margin-top: auto;
}

footer p {
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    opacity: 0.6;
    font-family: var(--font-en);
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 1024px) {
    .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
}

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

    nav {
        height: 60px;
    }

    nav ul {
        gap: var(--spacing-md);
    }
    
    nav a {
        font-size: 0.8rem;
    }

    .hero-title {
        font-size: 2rem;
    }

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

    .detail-layout, .guide-block, .guide-block:nth-child(even) {
        grid-template-columns: 1fr;
        flex-direction: column;
        display: flex;
    }
    
    .detail-img, .guide-img {
        height: 400px;
        width: 100%;
    }
    
    .detail-content {
        padding-right: 0;
    }
}