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

/* 设计令牌 */
:root {
    --color-primary: #F5F2ED;        /* 米白色 */
    --color-secondary: #E8E4E0;      /* 浅灰色 */
    --color-accent: #D4CFC9;         /* 燕麦色 */
    --color-text: #3A3A3A;           /* 深灰色文字 */
    --color-text-light: #6B6B6B;     /* 浅灰色文字 */
    --color-white: #FFFFFF;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 基础样式 */
body {
    font-family: 'Source Han Sans CN', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: var(--color-primary);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 标题字体 */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Source Han Serif CN', 'Songti SC', serif;
    font-weight: 400;
    color: var(--color-text);
}

/* 导航栏 */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 1.5rem;
    font-family: 'Source Han Serif CN', serif;
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition);
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
}

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

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* 轮播图 */
.carousel {
    position: relative;
    height: 80vh;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

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

.carousel-slide.active {
    opacity: 1;
}

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

.carousel-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--color-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.carousel-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.carousel-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--color-white);
    color: var(--color-text);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    background-color: var(--color-accent);
    color: var(--color-white);
}

/* 网格布局 */
.grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin-top: 3rem;
}

.grid-item {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.grid-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.grid-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.grid-item-content {
    padding: 1.5rem;
}

.grid-item-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.grid-item-description {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* 系列详情页 */
.detail-header {
    text-align: center;
    padding: 3rem 0;
}

.detail-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.detail-subtitle {
    color: var(--color-text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.detail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.gallery-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-medium);
}

.detail-info {
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

.info-section {
    margin-bottom: 2rem;
}

.info-section h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--color-text);
}

.info-section p {
    color: var(--color-text-light);
    line-height: 1.8;
}

/* 搭配指南页面 */
.styling-post {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    margin-bottom: 2rem;
    overflow: hidden;
}

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

.styling-post-content {
    padding: 2rem;
}

.styling-post-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.styling-steps {
    margin-top: 1.5rem;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.step-number {
    background-color: var(--color-accent);
    color: var(--color-text);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    font-weight: bold;
}

/* 关于我们页面 */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 0;
    text-align: center;
}

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

.about-text {
    color: var(--color-text-light);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* 页脚 */
.footer {
    background-color: var(--color-secondary);
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

.footer-text {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar-container {
        padding: 1rem;
    }
    
    .navbar-nav {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .carousel-title {
        font-size: 2rem;
    }
    
    .carousel-subtitle {
        font-size: 1rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .detail-gallery {
        grid-template-columns: 1fr;
    }
    
    .styling-post-image {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .navbar-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .carousel {
        height: 60vh;
    }
    
    .carousel-title {
        font-size: 1.5rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}