/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft JhengHei', 'PingFang TC', sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background: #f9f5f0;
    padding-top: 70px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    background: #8B5A2B;
    color: white;
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #6B3E1F;
    transform: translateY(-2px);
}

/* LINE按钮样式 */
.line-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #06C755; /* LINE品牌绿色 */
    color: white !important;
    padding: 10px 15px;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 15px;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    font-weight: 500;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.line-btn:hover {
    background: #05A04A; /* 稍深的LINE绿色 */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    color: white !important;
}

.line-btn i {
    margin-right: 8px;
    font-size: 1.2em;
}

.line-text-btn {
    color: #06C755;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.line-text-btn:hover {
    color: #05A04A;
    text-decoration: underline;
}

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

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.5rem;
    color: #8B5A2B;
    font-weight: 600;
}

/* 汉堡菜单 */
.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1001;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* 导航菜单 */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li a {
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: #8B5A2B;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 120px 0;
    margin-top: -70px;
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* 产品区域 */
.products {
    padding: 80px 0;
    background: #fff;
}

.products h2, .about h2, .contact h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
    color: #8B5A2B;
    position: relative;
}

.products h2:after, .about h2:after, .contact h2:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #8B5A2B;
    margin: 15px auto 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    padding: 20px;
    border: 1px solid #eee;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.03);
}

.product-card h3 {
    margin-bottom: 10px;
    color: #8B5A2B;
    font-size: 1.3rem;
}

.price {
    font-weight: bold;
    color: #8B5A2B;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.description {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.6;
}

/* 关于区域 */
.about {
    padding: 80px 0;
    background: #f9f5f0;
}

.about .content {
    max-width: 800px;
    margin: 0 auto;
}

.about p {
    margin-bottom: 20px;
    line-height: 1.8;
    text-align: center;
}

/* 联系我们区域 */
.contact {
    padding: 80px 0;
    background: #fff;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.method {
    background: #f9f5f0;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.method:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.method i {
    font-size: 2rem;
    color: #8B5A2B;
    margin-bottom: 15px;
}

.method p {
    font-size: 1.1rem;
}

/* 页脚 */
footer {
    background: #8B5A2B;
    color: white;
    text-align: center;
    padding: 40px 0;
}

footer p {
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero h2 {
        font-size: 2.4rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background: #fff;
        padding-top: 80px;
        transition: all 0.3s ease;
        z-index: 999;
        box-shadow: 2px 0 15px rgba(0,0,0,0.1);
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li a {
        padding: 15px 20px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .hero {
        padding: 100px 0;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .line-btn {
        padding: 8px 12px;
        font-size: 0.9em;
    }
    
    .line-btn i {
        margin-right: 5px;
        font-size: 1em;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 80px 0;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .products h2, .about h2, .contact h2 {
        font-size: 1.8rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
    }
}

/* 汉堡菜单动画 */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* 滚动时隐藏/显示导航栏 */
header.scroll-down {
    transform: translateY(-100%);
}

header.scroll-up {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}