/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
    /* 低碳环保主题背景 */
    background: linear-gradient(180deg, #E8F5E9 0%, #F1F8E9 50%, #E0F2F1 100%);
    background-attachment: fixed;
}

/* 添加绿叶装饰背景 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5c-2 0-4 1-5 3-1 2-1 4 0 6 1 2 3 3 5 3s4-1 5-3c1-2 1-4 0-6-1-2-3-3-5-3zm0 20c-2 0-4 1-5 3-1 2-1 4 0 6 1 2 3 3 5 3s4-1 5-3c1-2 1-4 0-6-1-2-3-3-5-3zm0 20c-2 0-4 1-5 3-1 2-1 4 0 6 1 2 3 3 5 3s4-1 5-3c1-2 1-4 0-6-1-2-3-3-5-3z' fill='%234CAF50' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

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

/* 导航栏 */
.navbar {
    background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: bold;
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 0.8;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* 首页横幅 - 低碳环保主题 */
.hero {
    background: linear-gradient(135deg, #2E7D32 0%, #43A047 50%, #66BB6A 100%);
    color: white;
    padding: 150px 0 100px;
    text-align: center;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

/* 添加动态绿叶背景效果 */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s both;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    margin: 0 10px;
    transition: all 0.3s;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn-primary {
    background: white;
    color: #2E7D32;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #2E7D32;
}

/* 通用区块样式 */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2E7D32;
    position: relative;
    text-shadow: 1px 1px 2px rgba(76, 175, 80, 0.1);
}

.section-title::after {
    content: '🌱';
    display: block;
    font-size: 2rem;
    margin: 15px auto 0;
    animation: bounce 2s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* 关于我们 */
.about {
    background: #f9f9f9;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.stat-item {
    background: linear-gradient(145deg, #ffffff 0%, #F1F8E9 100%);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.12);
    border: 2px solid #C8E6C9;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '🍃';
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 1.2rem;
    opacity: 0.4;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(76, 175, 80, 0.2);
    border-color: #8BC34A;
}

.stat-item h3 {
    font-size: 2.8rem;
    background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat-item p {
    color: #558B2F;
    font-size: 1rem;
    font-weight: 500;
}

/* 产品中心 */
.products {
    background: #f5f5f5;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: linear-gradient(145deg, #ffffff 0%, #F1F8E9 100%);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #C8E6C9;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.1);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.1), transparent);
    transition: left 0.5s ease;
}

.product-card:hover::before {
    left: 100%;
}

.product-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: #4CAF50;
    box-shadow: 0 20px 40px rgba(76, 175, 80, 0.2);
}

.product-icon {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 3px 5px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
    display: inline-block;
}

.product-card:hover .product-icon {
    transform: scale(1.1) rotate(5deg);
}

/* 产品图片样式 */
.product-image {
    width: 100%;
    height: 200px;
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.product-card h3 {
    color: #2E7D32;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    min-height: 45px;
}

.product-card p {
    color: #666;
    line-height: 1.8;
    font-size: 0.95rem;
}

/* 业务领域 */
.services {
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: linear-gradient(145deg, #ffffff 0%, #E8F5E9 100%);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #DCEDC8;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.08);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '🌿';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    opacity: 0.3;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: #8BC34A;
    box-shadow: 0 20px 40px rgba(76, 175, 80, 0.2);
}

.service-card:hover::after {
    opacity: 0.6;
    transform: rotate(15deg) scale(1.2);
    transition: all 0.3s ease;
}

.service-icon {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 3px 5px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    color: #2E7D32;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    min-height: 45px;
}

.service-card p {
    color: #666;
    line-height: 1.8;
    font-size: 0.95rem;
}

/* 项目展示 */
.projects {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.project-image {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
    font-size: 5rem;
    padding: 3rem;
    text-align: center;
}

.project-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    color: #2E7D32;
    font-size: 1.3rem;
}

.project-card p {
    padding: 0 1.5rem 1.5rem;
    color: #666;
    line-height: 1.8;
}

.project-tag {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin: 0 1.5rem 1.5rem;
}

/* 新闻动态 */
.news {
    background: white;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.news-card {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid #4CAF50;
    transition: all 0.3s;
}

.news-card:hover {
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.news-date {
    color: #4CAF50;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.news-card h3 {
    color: #2E7D32;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.news-card p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.read-more {
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.read-more:hover {
    color: #2E7D32;
}

/* 联系我们 */
.contact {
    background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%);
    color: white;
}

.contact .section-title {
    color: white;
}

.contact .section-title::after {
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: #4CAF50;
}

.info-text p {
    opacity: 0.9;
    line-height: 1.6;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.contact-form textarea {
    resize: vertical;
}

.btn-submit {
    background: white;
    color: #2E7D32;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 页脚 */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3 {
    color: #4CAF50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.8;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links span {
    background: #4CAF50;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.social-links span:hover {
    background: #66BB6A;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    opacity: 0.7;
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 语言切换按钮响应式 */
@media (max-width: 992px) {
    .lang-switch {
        display: none;
    }
    
    .navbar .container {
        flex-wrap: wrap;
    }
    
    .lang-switch-mobile {
        display: flex;
        gap: 10px;
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
    }
}

@media (min-width: 993px) {
    .lang-switch-mobile {
        display: none;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .services-grid,
    .products-grid,
    .projects-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card h3,
    .service-card h3 {
        min-height: auto;
    }
}
