/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f5f0;
}

/* 头部样式 */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transition: transform 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    width: 32px;
    height: 32px;
}

.logo span {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4a6741;
}

/* 导航栏样式 */
.nav-menu {
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    margin-left: auto;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #4a6741;
    transition: all 0.3s ease;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #4a6741;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #4a6741;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* 响应式导航栏 */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active ul {
        display: flex;
    }

    .nav-menu li {
        margin: 0;
    }

    .nav-menu a {
        display: block;
        padding: 1rem 2rem;
    }

    .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);
    }
}

/* 主要内容区域 */
main {
    margin-top: 60px;
    padding: 1rem;
    max-width: 1200px;
    margin: 60px auto 0;
}

/* Hero区域 */
.hero {
    text-align: center;
    padding: 2rem 0;
    position: relative;
}

.hero-content {
    position: relative;
}

.hero img {
    width: 100%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero h1 {
    margin: 1.5rem 0 1rem;
    color: #4a6741;
    font-size: 2rem;
    font-weight: bold;
}

.hero p {
    color: #666;
    font-size: 1.2rem;
}

/* 简介区域 */
.intro {
    text-align: center;
    padding: 3rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.pattern-divider {
    height: 2px;
    background: linear-gradient(to right, transparent, #4a6741, transparent);
    margin: 2rem 0;
}

.intro h2 {
    color: #4a6741;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.intro p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* 特色内容区域 */
.features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0;
}

.feature-item {
    text-align: center;
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.feature-item h2 {
    color: #4a6741;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: #666;
}

/* 页脚样式 */
footer {
    background-color: #4a6741;
    color: #fff;
    padding: 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 32px;
    height: 32px;
}

/* 响应式设计 */
@media (min-width: 768px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
    }

    .hamburger {
        display: none;
    }

    .menu-items {
        display: flex;
        position: static;
        padding: 0;
        background: none;
    }

    .menu-items li {
        margin-left: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .features {
        grid-template-columns: repeat(4, 1fr);
    }
} 