/* 基础重置与字体 */
:root {
    --color-bg: #F8F8F8;
    --color-surface: #FFFFFF;
    --color-text-primary: #333333;
    --color-text-secondary: #666666;
    --color-text-light: #999999;
    --color-accent: #C17C74;
    --color-beige: #F5F1EB;
    
    --font-en: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-cn: "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
    
    --spacing-unit: 8px;
    --container-width: 1200px;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-cn);
    color: var(--color-text-primary);
    line-height: 1.6;
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    opacity: 0;
    animation: fadeInPage 0.8s ease-out forwards;
}

/* 字体设置 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400; /* 保持常规字重 */
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
}

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

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

/* 导航栏 */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

.logo {
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-family: var(--font-en);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

nav a {
    font-size: 0.95rem;
    color: var(--color-text-primary);
    position: relative;
    padding-bottom: 4px;
}

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

nav a:hover, nav a.active {
    color: var(--color-accent);
}

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

/* 布局容器 */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 60px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1rem;
    color: var(--color-text-light);
}

/* 首页：轮播图 */
.hero-slider {
    position: relative;
    height: calc(100vh - var(--header-height));
    overflow: hidden;
    background-color: var(--color-beige);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    text-align: center;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 2;
    padding: 20px;
    background: rgba(0,0,0,0.1); 
    backdrop-filter: blur(2px);
}

.slide-title {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.slide-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: #f0f0f0;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 40px;
    height: 2px;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: white;
}

/* 首页：特色系列入口 */
.featured-collections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.collection-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
    group: hover;
}

.collection-image {
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.collection-card:hover .collection-image {
    transform: scale(1.05);
}

.collection-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    color: white;
    transform: translateY(20px);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.collection-card:hover .collection-info {
    transform: translateY(0);
}

.collection-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.collection-text {
    font-size: 0.9rem;
    opacity: 0.9;
    color: #ddd;
}

/* 风格系列页面 (Collections) */
.collections-grid {
    display: grid;
    gap: 80px;
}

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

.collection-item:nth-child(even) {
    direction: rtl; /* 左右交替布局 */
}

.collection-item:nth-child(even) .collection-details {
    direction: ltr; /* 文本恢复左对齐 */
}

.collection-main-img {
    height: 600px;
    overflow: hidden;
}

.collection-details {
    padding: 20px;
}

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

.detail-img {
    aspect-ratio: 1;
    overflow: hidden;
    transition: transform 0.3s;
}

.detail-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* 设计哲学页面 (Philosophy) */
.philosophy-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.philosophy-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1; /* 背景纹理淡化 */
    background-size: cover;
}

.philosophy-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 60px;
    background-color: rgba(255,255,255,0.9);
    box-shadow: 0 20px 40px rgba(0,0,0,0.03);
}

.philosophy-img-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 600px;
}

.split-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    background-color: var(--color-beige);
}

.split-img {
    height: 100%;
}

/* 页脚 */
footer {
    text-align: center;
    padding: 40px 0;
    color: var(--color-text-light);
    font-size: 14px;
    background-color: white;
    margin-top: 80px;
    border-top: 1px solid #eee;
    font-family: var(--font-en);
}

/* 动效关键帧 */
@keyframes fadeInPage {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    nav {
        flex-direction: column;
        padding: 10px;
        height: auto;
    }
    
    nav ul {
        margin-top: 15px;
        gap: 20px;
        padding-bottom: 10px;
    }
    
    .slide-title {
        font-size: 2rem;
    }
    
    .collection-item, 
    .collection-item:nth-child(even) {
        grid-template-columns: 1fr;
        direction: ltr;
    }
    
    .collection-main-img {
        height: 400px;
    }
    
    .philosophy-img-split {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .split-img {
        height: 300px;
        order: -1; 
    }
    
    .container {
        padding: 40px 15px;
    }
}