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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

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

/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo h1 {
    color: #2c7a4d;
    font-size: 24px;
}

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

nav ul li {
    margin-left: 35px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 18px;
}

nav ul li a:hover,
nav ul li a.active {
    color: #2c7a4d;
}

/* 首页主视觉 */
.hero {
    background: linear-gradient(rgba(44, 122, 77, 0.8), rgba(44, 122, 77, 0.9)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%232c7a4d"/><path d="M20,20 Q50,5 80,20 T80,80 Q50,95 20,80 T20,20" fill="none" stroke="%23ffffff" stroke-width="0.5"/></svg>');
    color: white;
    text-align: center;
    padding: 100px 0;
}

.hero h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

.cta-button {
    background-color: #f4a300;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 15px auto 0 auto;
    display: block;
    text-decoration: none;
}

.cta-button:hover {
    background-color: #e69500;
}

/* 简介部分 */
.intro {
    padding: 80px 0;
    background-color: #fff;
}

.intro h2,
.news h2,
.services h2,
.cases h2,
.careers h2 {
    text-align: center;
    color: #2c7a4d;
    margin-bottom: 50px;
    font-size: 32px;
}

.intro p {
    text-align: center;
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 20px;
    color: #666;
}

/* 新闻动态 */
.news {
    padding: 80px 0;
    background-color: #f5f5f5;
}

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

.news-item {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-item h3 {
    color: #2c7a4d;
    margin-bottom: 10px;
}

.date {
    color: #f4a300;
    font-weight: bold;
    margin-bottom: 15px;
}

/* 业务范围 */
.services {
    padding: 80px 0;
    background-color: #fff;
}

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

.service-item {
    text-align: center;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.service-item .icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.service-item h3 {
    color: #2c7a4d;
    margin-bottom: 15px;
}

/* 成功案例 */
.cases {
    padding: 80px 0;
    background-color: #f5f5f5;
}

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

.case-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.case-item h3 {
    color: #2c7a4d;
    margin-bottom: 15px;
}

/* 人才发展 */
.careers {
    padding: 80px 0;
    background-color: #fff;
}

.careers p {
    text-align: center;
    margin-bottom: 20px;
}

.careers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.career-item {
    text-align: center;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.career-item h3 {
    color: #2c7a4d;
    margin-bottom: 15px;
}

/* 页脚 */
footer {
    background-color: #2c7a4d;
    color: white;
    text-align: center;
    padding: 30px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }

    nav ul {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 5px 10px;
    }

    .hero h2 {
        font-size: 32px;
    }

    .hero p {
        font-size: 18px;
    }

    .intro h2,
    .news h2,
    .services h2,
    .cases h2,
    .careers h2 {
        font-size: 28px;
    }
}

/* 子页面样式 */
.subpage-header {
    background-color: #2c7a4d;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.subpage-header h1 {
    font-size: 36px;
}

.content-section {
    padding: 60px 0;
}

/* 新闻页面 */
.news-list {
    display: grid;
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

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

.news-content {
    padding: 25px;
}

.news-content h3 {
    color: #2c7a4d;
    margin-bottom: 10px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    color: #f4a300;
    margin-bottom: 15px;
    font-size: 14px;
}

/* 产品中心 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #e9f5ee;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    color: #2c7a4d;
    margin-bottom: 10px;
}

/* 联系方式 */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.contact-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contact-card .icon {
    font-size: 48px;
    color: #2c7a4d;
    margin-bottom: 20px;
}

.contact-card h3 {
    color: #2c7a4d;
    margin-bottom: 15px;
}

.email {
    color: #f4a300;
    text-decoration: none;
    font-weight: bold;
}

.email:hover {
    text-decoration: underline;
}

/* FAQ页面 */
.faq-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    color: #2c7a4d;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 20px 20px;
    display: none;
}

.faq-answer.active {
    display: block;
}

/* 知识库 */
.knowledge-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.knowledge-category {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.knowledge-category .icon {
    font-size: 48px;
    color: #2c7a4d;
    margin-bottom: 20px;
}

.knowledge-category h3 {
    color: #2c7a4d;
    margin-bottom: 15px;
}