/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    font-size: 16px;
    font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", "Source Han Sans CN", "WenQuanYi Micro Hei", "Hiragino Sans GB", sans-serif;
    line-height: 1.9; /* 更大的行高，创造更轻盈的感觉 */
    color: #222; /* 深灰色文字，比纯黑更柔和 */
    font-weight: 300; /* 较轻的字重，更清新 */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #f5f5f5; /* 柔和的浅灰色背景 */
    min-height: 100vh;
}

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

/* 菜单切换按钮 */
.menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* 页眉样式 */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    z-index: 100;
}

.logo-container {
    display: inline-block;
    margin-left: 30px;
}

.site-logo {
    height: 40px;
    width: auto;
}

.main-navigation {
    float: right;
    margin-right: 30px;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}
.nav-links a {
    text-decoration: none;
    color: #222; /* 深灰色导航文字，更柔和 */
    font-weight: 400; /* 中等字重，保持清晰但不粗犷 */
    text-transform: uppercase;
    font-size: 0.85rem; /* 稍微小一点的字体，更精致 */
    letter-spacing: 1.2px; /* 适当增加字母间距，更优雅 */
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: #666; /* 悬停时为深灰色，更符合轻盈风格 */
}

/* 图片轮播样式 */
.image-carousel {
    margin-top: 120px; /* 与返回主页按钮对齐 */
    margin-bottom: 80px; /* 减小底部间距到100px */
    height: 600px;
    overflow: hidden;
    position: relative;
}

.carousel-container {
    width: 100%;
    height: 100%;
}

.carousel-slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f5f5f5; /* 与页面背景色保持一致 */
    opacity: 0;
    transition: opacity 0.8s ease-in-out; /* 缩短时间并添加ease-in-out效果 */
}

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

.slide-content {
    position: absolute;
    bottom: 50px;
    left: 50px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px 30px;
    border-radius: 5px;
    z-index: 20;
}

.slide-content h2 {
    font-size: 2.1rem;
    margin-bottom: 12px;
    color: #222; /* 深灰色标题，更柔和 */
    font-weight: 300; /* 较轻的字重，更清新 */
    letter-spacing: 0.05em; /* 适当增加间距，创造轻盈感 */
    line-height: 1.3;
}

.slide-content p {
    font-size: 1rem;
    color: #444; /* 中灰色文字，更柔和 */
    font-weight: 300; /* 较轻的字重 */
    line-height: 1.6;
    letter-spacing: 0.01em;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 30;
}

.carousel-controls button {
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-controls button:hover {
    background-color: rgba(255, 255, 255, 1);
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 30;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2); /* 调整为黑色半透明，更轻盈 */
    margin: 0 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: rgba(0, 0, 0, 0.6); /* 更深的黑色 */
    transform: scale(1.2); /* 激活时稍微放大 */
}

/* 关于我们区域样式 */
.about-section {
    padding: 80px 0 80px; /* 进一步减小顶部间距 */
    background-color: #f9f9f9;
}

/* 为固定导航栏添加滚动边距 */
#about, #products, #shop, #news, #contact {
    scroll-margin-top: 100px; /* 为固定导航栏留出空间 */
    position: relative;
    z-index: 100;
}
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    padding-top: 30px;
    color: #222; /* 深灰色标题，更柔和 */
    position: relative;
    z-index: 100;
    font-weight: 300; /* 较轻的字重，更清新 */
    letter-spacing: 0.08em; /* 增加字母间距，创造优雅感 */
    line-height: 1.2;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: #8b7d76;
}

.about-content {
    display: flex;
    align-items: center;
}

.about-image {
    flex: 1;
    margin-right: 50px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #222; /* 深灰色标题 */
    font-weight: 350; /* 中等偏轻的字重 */
    letter-spacing: 0.02em;
}

.about-text p {
    margin-bottom: 18px;
    line-height: 1.8;
    color: #444; /* 中灰色文字，更柔和 */
    font-weight: 300; /* 较轻的字重 */
    letter-spacing: 0.01em;
}

.btn-more {
    display: inline-block;
    padding: 10px 20px;
    background-color: #5a4a42;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-more:hover {
    background-color: #8b7d76;
}

/* 产品区域样式 */
.products-section {
    padding: 80px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 30px;
    margin-bottom: 40px;
}

.product-item {
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
}

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

.product-info {
    padding: 20px;
    text-align: center;
}
.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #222; /* 深灰色标题 */
    font-weight: 350; /* 中等偏轻的字重 */
    letter-spacing: 0.015em;
}

.product-info p {
    color: #444; /* 中灰色文字 */
    margin-bottom: 12px;
    font-weight: 300; /* 较轻的字重 */
    line-height: 1.5;
    font-size: 0.95rem;
}

.btn-detail {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid #5a4a42;
    color: #5a4a42;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-detail:hover {
    background-color: #5a4a42;
    color: white;
}

/* 页脚样式 */
.site-footer {
    background-color: #f0efef; /* 保持浅灰色背景 */
    color: #333; /* 改为深灰色文字，确保清晰可见 */
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 50px;
    width: auto;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #333; /* 深灰色链接文字 */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #000; /* 悬停时变为黑色 */
}

.footer-contact p {
    margin-bottom: 10px;
    color: #333; /* 确保联系信息也使用深灰色 */
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08); /* 更细的边框 */
    font-size: 0.8rem; /* 更小的字体 */
    font-weight: 300;
    color: #666; /* 浅灰色，更轻盈 */
    letter-spacing: 0.02em;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        position: fixed;
        top: 70px;
        right: 20px;
        background-color: rgba(255, 255, 255, 0.95);
        border-radius: 5px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        padding: 10px;
        display: none;
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .nav-links {
        flex-direction: column;
    }
    
    .nav-links li {
        margin: 10px 0;
    }
    
    .slide-content {
        left: 20px;
        bottom: 20px;
        padding: 15px 20px;
    }
    
    .slide-content h2 {
        font-size: 1.5rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        margin-right: 0;
        margin-bottom: 30px;
        width: 100%;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-logo, .footer-links, .footer-contact {
        margin-bottom: 30px;
    }
}