/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* 让图片适应它所在的白色卡片容器 */
.product-img {
    /* 设置图片高度为120px，保持合适的比例 */
    height: 120px;
    /* 让图片宽度按比例自动调整，避免变形 */
    width: auto;
    /* 给图片添加一些圆角效果，让它看起来更美观 */
    border-radius: 8px;
    /* 如果图片和下方文字之间太近，可以添加一个下边距 */
    /* margin-bottom: 15px; */
}


.logo-img {
    width: 150px;  /* 设定你想要的宽度，例如150像素 */
    height: auto;  /* 高度自动调整，以保持图片比例 */
}
body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: #4a4a4a;
    background-color: #f5f5f0;
}

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

/* 导航栏 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo a {
    font-size: 24px;
    font-weight: bold;
    color: #8b4513;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: #4a4a4a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #8b4513;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* 主页横幅 */
.hero {
    /* 设置容器高度，使其充满整个屏幕可视区域 */
    height: 100vh;
    /* 弹性布局，用于垂直和水平居中内容（按钮等） */
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center;     /* 垂直居中 */
    /* 相对定位，为了让背景图的绝对定位能够生效 */
    position: relative;
    /* 隐藏超出容器的背景部分 */
    overflow: hidden;
}

/* 针对背景图的div，设置其背景图片和样式 */
.hero-background {
    /* 绝对定位，使其覆盖整个 .hero 容器 */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 你的背景图片 */
    background-image: url('../images/hero-bg.jpg'); /* 修复路径 */
    background-size: cover; /* 确保图片覆盖整个容器 */
    background-position: center; /* 确保图片居中显示 */
    background-repeat: no-repeat; /* 防止图片重复 */
    /* 添加一些半透明遮罩，使上面的文字更清晰 */
    /* background-color: rgba(0, 0, 0, 0.3); */
}

/* 确保内容在背景图上方显示 */
.hero-content {
    position: relative;
    z-index: 1; /* 确保内容层级高于背景图 */
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* 让按钮位于底部 */
    height: 100%;
    padding-bottom: 0px; /* 直接挨着底部 */
}

.hero-logo {
    margin-bottom: 40px;
}

.hero-title {
    font-size: 56px;
    color: #8b4513;
    margin-bottom: 10px;
    font-weight: bold;
    font-style: italic;
    text-shadow: 2px 2px 6px rgba(255,255,255,0.8);
}

.hero-logo-icon {
    font-size: 48px;
    color: #8b4513;
    margin-bottom: 30px;
}

.hero-slogan {
    margin-bottom: 30px;
}

.hero-subtitle {
    font-size: 32px;
    color: #4a4a4a;
    margin-bottom: 15px;
    line-height: 1.3;
    font-weight: 600;
    text-shadow: 1px 1px 4px rgba(255,255,255,0.9);
}

.hero-description {
    font-size: 20px;
    color: #555;
    margin-bottom: 30px;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(255,255,255,0.8);
}

.hero-cta {
    margin-bottom: 40px;
}

.hero-cta-text {
    font-size: 16px;
    color: #888;
    font-style: italic;
    opacity: 0.8;
}

.hero-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0;
}

/* 按钮样式 */
.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: rgba(255, 255, 255, 0.2);
    color: #333;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(128, 128, 128, 0.8);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    color: #333;
    border: 1px solid rgba(128, 128, 128, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* 关于我们 */
.about {
    padding: 80px 0;
    background-color: #fafafa;
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: #8b4513;
    margin-bottom: 50px;
    font-weight: bold;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 26px;
    line-height: 1.8;
    color: #555;
}

.about-features {
    display: grid;
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
    background-color: #f5f5f0;
    border-radius: 10px;
    transition: transform 0.3s ease;
    border: 1px solid #e8e4d8;
}

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

.feature-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.feature-item h4 {
    color: #8b4513;
    margin-bottom: 10px;
    font-size: 18px;
}

.feature-item p {
    color: #666;
    font-size: 14px;
}

/* 产品展示 */
.products {
    padding: 80px 0;
    background-color: #f5f5f0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.product-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 220px;
}

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

.product-img-placeholder {
    height: 250px;
    background-color: #f5f5f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b4513;
    font-size: 18px;
    font-weight: bold;
    border: 1px solid #e8e4d8;
}

.product-img-container {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    color: #8b4513;
    margin-bottom: 10px;
    font-size: 18px;
}

.product-details {
    color: #666;
    font-size: 14px;
}

.products-more {
    text-align: center;
}

/* 联系我们 */
.contact {
    padding: 80px 0;
    background-color: #fafafa;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    color: #8b4513;
    margin-bottom: 30px;
    font-size: 24px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-icon {
    font-size: 20px;
    margin-right: 15px;
    color: #8b4513;
}

.contact-item p {
    color: #555;
    font-size: 16px;
}

.contact-form {
    background-color: #f5f5f0;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #e8e4d8;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
    background-color: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8b4513;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* 页脚 */
.footer {
    background-color: #8b4513;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-section p {
    margin-bottom: 8px;
    font-size: 14px;
    opacity: 0.9;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 14px;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
    }
} 