/* 全局重置与基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Source Han Sans CN", "思源黑体", "Inter", sans-serif;
    background-color: #FAF9F6;
    color: #333333;
    line-height: 1.8;
    font-size: 16px;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Source Han Serif CN", "思源宋体", "Playfair Display", serif;
    font-weight: 500;
}

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

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

/* 导航栏样式 */
header {
    background-color: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(51, 51, 51, 0.05);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

nav a {
    font-size: 15px;
    letter-spacing: 1px;
    color: #333333;
    position: relative;
    padding: 0.5rem 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: #D4A593;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

nav a.active {
    color: #D4A593;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 2rem;
    background-color: #F5F5F5;
    color: #666666;
    font-size: 14px;
    letter-spacing: 2px;
    margin-top: 4rem;
}

/* 首页轮播图样式 */
.hero-slider {
    margin-top: 80px;
    height: calc(100vh - 80px);
    position: relative;
    overflow: hidden;
}

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

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

.slide.active {
    opacity: 1;
}

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

.slide-caption {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 18px;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding: 0 2rem;
}

/* 首页介绍文字 */
.intro-text {
    max-width: 800px;
    margin: 6rem auto;
    text-align: center;
    padding: 0 2rem;
}

.intro-text h1 {
    font-size: 36px;
    margin-bottom: 1.5rem;
    color: #333333;
    letter-spacing: 3px;
}

.intro-text p {
    font-size: 18px;
    color: #666666;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}

.intro-text .cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: transparent;
    border: 1px solid #D4A593;
    color: #D4A593;
    font-size: 14px;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.intro-text .cta:hover {
    background-color: #D4A593;
    color: #ffffff;
}

/* 系列展示页网格布局 */
.collections-grid {
    max-width: 1400px;
    margin: 120px auto 4rem;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.collection-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 2px;
}

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

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

.collection-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 2rem;
    color: #ffffff;
    transform: translateY(0);
    transition: all 0.4s ease;
}

.collection-item:hover .collection-info {
    background: rgba(0, 0, 0, 0.8);
}

.collection-info h3 {
    font-size: 22px;
    margin-bottom: 0.8rem;
    letter-spacing: 2px;
}

.collection-info p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
}

.collection-info .keywords {
    margin-top: 1rem;
    font-size: 12px;
    opacity: 0.7;
    letter-spacing: 1px;
}

/* 细节理念页布局 */
.philosophy-container {
    max-width: 1400px;
    margin: 120px auto 4rem;
    padding: 0 2rem;
}

.philosophy-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
    align-items: center;
}

.philosophy-section:nth-child(even) {
    direction: rtl;
}

.philosophy-section:nth-child(even) > * {
    direction: ltr;
}

.philosophy-text h2 {
    font-size: 28px;
    margin-bottom: 1.5rem;
    color: #333333;
    letter-spacing: 2px;
}

.philosophy-text p {
    font-size: 16px;
    line-height: 2;
    color: #666666;
    margin-bottom: 1rem;
}

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

.philosophy-images img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 2px;
    transition: transform 0.4s ease;
}

.philosophy-images img:hover {
    transform: scale(1.02);
}

/* 页面切换动画 */
body.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

body.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* 响应式设计 - 平板 */
@media (max-width: 1024px) {
    nav {
        gap: 2rem;
    }
    
    .intro-text h1 {
        font-size: 30px;
    }
    
    .collections-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .philosophy-section {
        gap: 3rem;
        margin-bottom: 4rem;
    }
}

/* 响应式设计 - 移动端 */
@media (max-width: 768px) {
    header {
        padding: 1rem;
    }
    
    nav {
        gap: 1.5rem;
    }
    
    nav a {
        font-size: 14px;
    }
    
    .hero-slider {
        height: 70vh;
    }
    
    .slide-caption {
        font-size: 16px;
        bottom: 10%;
    }
    
    .intro-text {
        margin: 3rem auto;
    }
    
    .intro-text h1 {
        font-size: 24px;
        letter-spacing: 2px;
    }
    
    .intro-text p {
        font-size: 16px;
    }
    
    .collections-grid {
        grid-template-columns: 1fr;
        margin-top: 100px;
        gap: 2rem;
    }
    
    .collection-item img {
        height: 400px;
    }
    
    .philosophy-container {
        margin-top: 100px;
    }
    
    .philosophy-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 3rem;
    }
    
    .philosophy-section:nth-child(even) {
        direction: ltr;
    }
    
    .philosophy-text h2 {
        font-size: 22px;
    }
    
    .philosophy-text p {
        font-size: 15px;
    }
    
    .philosophy-images {
        grid-template-columns: 1fr;
    }
}

/* 懒加载图片占位 */
img[data-src] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}