/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

a {
    text-decoration: none;
    color: #2c6e49;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    background-color: #2c6e49;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #1e4d33;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2c6e49;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #2c6e49;
}

/* 导航栏样式 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

header.scrolled {
    background-color: white;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 40px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.5rem;
    color: #2c6e49;
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #2c6e49;
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #2c6e49;
    margin: 5px;
    transition: all 0.3s ease;
}

/* 英雄区域样式 */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('./img/farm.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
    animation: fadeInDown 1s ease;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

.hero-content .btn {
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

/* 关于我们区域样式 */
.about {
    padding: 100px 0;
    background-color: #fff;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-image img {
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #2c6e49;
}

.about-text p {
    margin-bottom: 20px;
    color: #555;
    font-size: 1.1rem;
}

.tea-features {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    text-align: center;
}

.feature {
    flex: 1;
    padding: 20px;
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-10px);
}

.feature i {
    font-size: 2.5rem;
    color: #2c6e49;
    margin-bottom: 15px;
}

.feature h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #2c6e49;
}

/* 茶文化区域样式 */
.tea-culture {
    padding: 100px 0;
    background-color: #f1f8e9;
}

.culture-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
}

.culture-text {
    flex: 1;
    min-width: 300px;
    order: 2;
}

.culture-image {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    order: 1;
}

.culture-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #2c6e49;
}

.culture-text p {
    margin-bottom: 20px;
    color: #555;
    font-size: 1.1rem;
}

/* 产品展示区域样式 */
.products {
    padding: 100px 0;
    background-color: #fff;
}

.product-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    background: none;
    border: 2px solid #2c6e49;
    color: #2c6e49;
    padding: 8px 20px;
    margin: 0 10px 10px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #2c6e49;
    color: white;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #2c6e49;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #2c6e49;
}

.product-info p {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.product-price {
    display: flex;
    align-items: baseline;
    margin-bottom: 15px;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c6e49;
}

.unit {
    margin-left: 5px;
    color: #888;
    font-size: 0.9rem;
}

.btn-cart {
    width: 100%;
    padding: 10px;
    background-color: #2c6e49;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-cart:hover {
    background-color: #1e4d33;
}

/* 助农计划区域样式 */
.farmer-aid {
    padding: 100px 0;
    background-color: #f1f8e9;
}

.aid-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
}

.aid-image {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.aid-text {
    flex: 1;
    min-width: 300px;
}

.aid-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #2c6e49;
}

.aid-text p {
    margin-bottom: 20px;
    color: #555;
    font-size: 1.1rem;
}

.aid-list {
    margin-bottom: 30px;
}

.aid-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.aid-list i {
    color: #2c6e49;
    margin-right: 10px;
    font-size: 1.2rem;
}

.aid-highlight {
    background-color: rgba(44, 110, 73, 0.1);
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #2c6e49;
    margin-bottom: 30px;
    font-weight: 500;
}

/* 顾客评价区域样式 */
.testimonials {
    padding: 100px 0;
    background-color: #fff;
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    height: 300px;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-slide.active {
    opacity: 1;
}

.testimonial-content {
    text-align: center;
    padding: 20px;
}

.testimonial-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 5px solid #2c6e49;
}

.testimonial-text {
    font-size: 1.2rem;
    color: #555;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 600;
    color: #2c6e49;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.prev-btn, .next-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #2c6e49;
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s ease;
}

.prev-btn:hover, .next-btn:hover {
    color: #1e4d33;
}

.testimonial-dots {
    display: flex;
    margin: 0 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #2c6e49;
}

/* 联系我们区域样式 */
.contact {
    padding: 100px 0;
    background-color: #f1f8e9;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-item {
    display: flex;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 1.5rem;
    color: #2c6e49;
    margin-right: 20px;
    width: 30px;
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #2c6e49;
}

.contact-item p {
    color: #555;
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #2c6e49;
}

.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: 1rem;
    transition: all 0.3s ease;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #2c6e49;
    outline: none;
    box-shadow: 0 0 0 2px rgba(44, 110, 73, 0.2);
}

/* 页脚样式 */
footer {
    background-color: #1a472a;
    color: white;
    padding: 80px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.footer-logo img {
    width: 80px;
    margin-bottom: 15px;
}

.footer-logo h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    flex: 1;
    min-width: 200px;
}

.footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #4caf50;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-newsletter {
    flex: 1;
    min-width: 200px;
}

.footer-newsletter h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-newsletter h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #4caf50;
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.footer-newsletter form {
    display: flex;
}

.footer-newsletter input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 0.9rem;
}

.footer-newsletter button {
    background-color: #4caf50;
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-newsletter button:hover {
    background-color: #3d8b40;
}

.footer-social {
    flex: 1;
    min-width: 200px;
}

.footer-social h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-social h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #4caf50;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #4caf50;
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* 动画 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media screen and (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-text h3,
    .culture-text h3,
    .aid-text h3 {
        font-size: 1.8rem;
    }
}

@media screen and (max-width: 768px) {
    nav {
        padding: 15px 20px;
    }
    
    .nav-links {
        position: absolute;
        right: 0;
        top: 70px;
        background-color: white;
        height: calc(100vh - 70px);
        width: 50%;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        transform: translateX(100%);
        transition: transform 0.5s ease;
        box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-links li {
        margin: 20px 0;
    }
    
    .burger {
        display: block;
    }
    
    .burger.active .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .burger.active .line2 {
        opacity: 0;
    }
    
    .burger.active .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .about-content,
    .culture-content,
    .aid-content {
        flex-direction: column;
    }
    
    .culture-text,
    .culture-image {
        order: 0;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .about-text h3,
    .culture-text h3,
    .aid-text h3 {
        font-size: 1.5rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content > div {
        min-width: 100%;
    }
    
    .nav-links {
        width: 70%;
    }
}
