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

/* 根变量定义 */
:root {
    /* 主色调 - 温暖中性 */
    --primary-beige: #F5F2ED;
    --primary-oatmeal: #E8E0D5;
    --primary-light-gray: #F0F0F0;
    
    /* 辅助色 - 温暖点缀 */
    --accent-terracotta: #C87F5A;
    --accent-deep-brown: #5D4037;
    --accent-forest-green: #2E4E3E;
    
    /* 文字颜色 */
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #999999;
    
    /* 间距 */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* 字体 */
    --font-chinese: "霞鹜文楷", "Noto Serif SC", "思源宋体", serif;
    --font-english: Georgia, "Times New Roman", serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* 基础排版 */
body {
    font-family: var(--font-chinese), var(--font-english), var(--font-sans);
    line-height: 1.8;
    color: var(--text-primary);
    background-color: var(--primary-beige);
    font-size: 16px;
}

/* 英文字体特殊处理 */
.en-text {
    font-family: var(--font-english), serif;
}

/* 导航栏样式 */
nav {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: var(--spacing-sm) 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.2rem;
    transition: color 0.3s ease;
}

.logo:hover {
    color: var(--accent-terracotta);
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s ease;
    padding-bottom: 2px;
}

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

.nav-links a:hover {
    color: var(--accent-terracotta);
}

.nav-links a:hover::after {
    width: 100%;
}

/* 主内容区域 */
main {
    margin-top: 80px;
    min-height: calc(100vh - 160px);
}

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

/* Hero 区域 */
.hero {
    height: 80vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.3));
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 1;
    padding: var(--spacing-md);
}

.hero-title {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.3rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 区块样式 */
.section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
    letter-spacing: 0.2rem;
}

/* 网格布局 */
.grid {
    display: grid;
    gap: var(--spacing-md);
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

/* 卡片样式 */
.card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.card-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.card-content {
    padding: var(--spacing-md);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.card-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 精选展示 */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.featured-item {
    text-align: center;
}

.featured-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: var(--spacing-sm);
    transition: transform 0.3s ease;
}

.featured-image:hover {
    transform: scale(1.03);
}

.featured-caption {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* 工艺展示 */
.craft-section {
    margin-bottom: var(--spacing-xl);
}

.craft-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    margin-top: var(--spacing-md);
}

.craft-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.craft-text h3 {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-sm);
    color: var(--accent-deep-brown);
}

.craft-text p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* 系法展示 */
.styling-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.styling-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.styling-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.styling-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.styling-info {
    padding: var(--spacing-md);
}

.styling-name {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-xs);
    color: var(--accent-forest-green);
}

.styling-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* 页脚 */
footer {
    background-color: var(--primary-oatmeal);
    padding: var(--spacing-md) 0;
    text-align: center;
    color: var(--text-secondary);
    margin-top: var(--spacing-xl);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        gap: var(--spacing-sm);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .craft-content {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .nav-links a {
        font-size: 0.9rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

/* 滚动行为 */
html {
    scroll-behavior: smooth;
}