/* 环保主题色系 */
:root {
    --primary-color: #2E7D32; /* 主色 */
    --secondary-color: #388E3C; /* 辅色 */
    --accent-color: #81C784; /* 强调色 */
    --light-color: #FFFFCC; /* 浅黄色背景 */
    --light-green: #CCFFCC; /* 浅绿色区域 */
    --dark-color: #1B5E20; /* 深色文字 */
}

/* 基础样式 */
body {
    background: var(--light-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

/* 导航样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
}

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

.nav-links > li {
    margin: 0 15px;
    position: relative;
}

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

.nav-links a.active {
    color: var(--primary-color);
}

/* 子菜单样式 */
.has-submenu {
    position: relative;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: none;
    z-index: 100;
    border-radius: 4px;
    overflow: hidden;
}

.submenu li a {
    padding: 10px 20px;
    display: block;
    transition: background 0.3s;
}

.submenu li a:hover {
    background: #f5f5f5;
}

.has-submenu:hover .submenu {
    display: block;
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: transform 0.3s;
}

/* 服务区域样式 */
.services {
    padding: 4rem 0;
}

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

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

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

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3 {
    padding: 1rem;
    color: var(--dark-color);
    margin: 0;
}

.service-card p {
    padding: 0 1rem 1rem;
    margin: 0;
}

.service-section {
    background: var(--light-green);
    padding: 4rem 0;
    margin: 2rem 0;
    border-radius: 8px;
}

/* 版权信息样式 */
.copyright-section {
    background: #FF0000; /* 红底 */
    color: #0000FF; /* 蓝字 */
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        background: white;
        width: 100%;
        flex-direction: column;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-in-out;
    }
    
    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    .has-submenu .submenu {
        position: static;
        box-shadow: none;
        display: none;
    }
    
    .has-submenu.active .submenu {
        display: block;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

.service-card {
    animation: fadeIn 0.6s ease-out forwards;
}