/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* 链接样式 */
a {
    text-decoration: none;
    color: #2c7a4d;
}

a:hover {
    color: #1e5b35;
}

/* 标题样式 */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 15px;
    color: #2c5e1a;
}

h1 {
    font-size: 2.2rem;
}

h2 {
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 10px;
}

h2:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #2c7a4d;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #2c7a4d;
    color: white;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: #1e5b35;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px 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: 15px 20px;
}

.logo {
    color: #2c7a4d;
    font-size: 1.8rem;
    font-weight: bold;
}

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

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

nav ul li a {
    color: #333;
    font-weight: 500;
    font-size: 17px;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
}

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

nav ul li a.active:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #2c7a4d;
}

/* 主要内容区域 */
main {
    min-height: calc(100vh - 180px);
}

/* 页面头部 */
.page-header {
    background: linear-gradient(135deg, #2c7a4d, #4caf50);
    color: white;
    padding: 40px 0;
    text-align: center;
    margin-bottom: 40px;
}

.page-header h2 {
    color: white;
    font-size: 2rem;
}

.page-header h2:after {
    display: none;
}

/* 首页样式 */
.hero {
    background: linear-gradient(rgba(44, 122, 77, 0.8), rgba(44, 122, 77, 0.9)), url('') center/cover;
    color: white;
    text-align: center;
    padding: 80px 20px;
    margin-bottom: 40px;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.hero h2::after,
.careers h2::after {
    left: 50%;
    margin-left: -25px;
    background-color: #fff;
}

.intro h2::after {
    left: 50%;
    margin-left: -25px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
}

.intro {
    padding: 50px 0;
    background-color: #fff;
    margin-bottom: 40px;
    text-align: center;
}

.intro .container {
    max-width: 800px;
}

.intro p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #555;
}

/* 新闻样式 */
.news {
    background-color: #f0f7f4;
    padding: 50px 0;
}

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

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

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

.date {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* 服务样式 */
.services {
    padding: 50px 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 20px;
    border-radius: 8px;
    background-color: #f0f7f4;
    transition: all 0.3s ease;
}

.service-item:hover {
    background-color: #2c7a4d;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

.service-item:hover h3 {
    color: white;
}

.service-process {
    margin-top: 2rem;
}

.service-process ol {
    margin-left: 20px;
}

.departments {
    margin-top: 2rem;
}

/* 案例样式 */
.cases {
    padding: 50px 0;
    background-color: #f0f7f4;
}

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

.case-item {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

/* 人才发展样式 */
.careers {
    padding: 70px 0;
    text-align: center;
    background: linear-gradient(135deg, #2c7a4d, #4caf50);
    color: white;
}

.careers h2 {
    color: white;
}

.careers p {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

.careers .btn {
    background-color: white;
    color: #2c7a4d;
}

.careers .btn:hover {
    background-color: #f0f7f4;
}

/* 通用内容样式 */
.about-content,
.news-content,
.products-content,
.services-content,
.knowledge-content,
.cases-content,
.faq-content,
.careers-content,
.contact-content {
    background-color: #fff;
    padding: 40px 0;
    border-radius: 8px;
}

/* 关于我们页面 */
.about-text h3 {
    margin-top: 30px;
}

.about-text ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.about-text li {
    margin-bottom: 10px;
}

/* 产品中心页面 */
.product-categories {
    margin-bottom: 40px;
}

.product-categories ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
}

.product-categories li {
    margin-right: 20px;
    margin-bottom: 10px;
}

.product-category {
    margin-bottom: 50px;
}

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

.product-item {
    background: #f0f7f4;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.placeholder-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background-color: #2c7a4d;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
}

/* 知识库页面 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.category-item {
    background: #f0f7f4;
    padding: 20px;
    border-radius: 8px;
}

.category-item ul {
    list-style: none;
}

.category-item li {
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px dashed #ccc;
}

.knowledge-article {
    padding: 20px;
    margin-bottom: 30px;
    background: #f9f9f9;
    border-radius: 8px;
}

.knowledge-article h4 {
    margin-top: 20px;
    color: #2c5e1a;
}

/* 成功案例页面 */
.case-study {
    margin-bottom: 50px;
}

.case-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: center;
}

.case-info h4 {
    margin-top: 20px;
    color: #2c5e1a;
}

/* 常见问题页面 */
.faq-category {
    margin-bottom: 40px;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    background-color: #f0f7f4;
    padding: 15px 20px;
    cursor: pointer;
    position: relative;
}

.faq-question:after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

.faq-item.active .faq-question:after {
    content: "-";
}

/* 人才发展页面 */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.value-item {
    text-align: center;
    padding: 25px;
    background: #f0f7f4;
    border-radius: 8px;
}

.benefits ul {
    padding-left: 20px;
    margin-bottom: 30px;
}

.benefits li {
    margin-bottom: 10px;
}

.position-item {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.position-department,
.position-count {
    color: #666;
    margin-bottom: 10px;
}

.position-requirements ul {
    padding-left: 20px;
    margin: 10px 0;
}

.position-requirements li {
    margin-bottom: 5px;
}

/* 联系我们页面 */
.department-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.department-item {
    background: #f0f7f4;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
}

.map-placeholder {
    background: #f0f7f4;
    padding: 50px;
    text-align: center;
    border-radius: 8px;
}

/* 页脚样式 */
footer {
    background-color: #2c5e1a;
    color: white;
    text-align: center;
    padding: 20px 0;
}

footer p {
    margin-bottom: 5px;
    color: #e0e0e0;
}

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

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

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

    .hero {
        padding: 50px 20px;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .case-details {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 10px 20px;
    }
}