/* 全局重置与基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

:root {
    --primary-color: #1b7a43;      /* 智慧农业深绿 */
    --primary-light: #e8f5e9;      /* 浅绿背景 */
    --accent-color: #2ea44f;       /* 亮绿按钮 */
    --text-dark: #222222;
    --text-gray: #666666;
    --bg-light: #f8faf9;
    --white: #ffffff;
    --border-color: #e5e7eb;
}

body {
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* 顶部导航栏 */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    background: var(--primary-color);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 16px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

nav ul li a {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-color);
}

.btn-outline {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-light);
}

/* 通用区块 */
section {
    padding: 70px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.section-title p {
    color: var(--text-gray);
    font-size: 16px;
}

/* 底部信息与备案 */
footer {
    background: #1a221d;
    color: #b0b8b3;
    padding: 50px 0 25px;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 18px;
}

.footer-col p, .footer-col li {
    margin-bottom: 10px;
    list-style: none;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #2c3831;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    line-height: 1.8;
}

.footer-bottom a {
    color: #b0b8b3;
    margin: 0 8px;
}

.footer-bottom a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .nav-wrapper {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
        gap: 15px;
    }
    nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}
