/* 全局样式 */
* {
    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;
}

/* 头部样式 */
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: 20px 0;
}

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

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

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

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 18px;
    transition: color 0.3s;
    padding: 10px 15px;
    border-radius: 4px;
}

nav ul li a:hover,
nav ul li a.active {
    color: #27ae60;
    background-color: #f1f9f5;
}

/* 主要内容样式 */
main {
    padding: 40px 0;
}

section {
    margin-bottom: 60px;
}

h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
    color: #2c3e50;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #27ae60;
    margin: 10px auto;
}

h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

/* 首页横幅 */
.hero {
    background: linear-gradient(135deg, #27ae60, #2c3e50);
    color: white;
    padding: 80px 0;
    text-align: center;
}

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

.hero h2::after {
    background-color: white;
}

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

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #27ae60;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s;
    border: 2px solid #27ae60;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background-color: transparent;
    color: #27ae60;
}

/* 波纹效果 */
.ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    transform: scale(0);
    animation: ripple 0.6s linear;
}

@keyframes ripple {
    to {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* 公司简介 */
.intro {
    background-color: #fff;
    padding: 60px 0;
}

.intro p {
    font-size: 18px;
    margin-bottom: 20px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.news-item {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    cursor: pointer;
}

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

.news-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.date {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 15px;
}

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

.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 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

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

.service-item h3 {
    color: #27ae60;
    margin-bottom: 15px;
    font-size: 22px;
}

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

.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 5px 15px rgba(0, 0, 0, 0.05);
}

.case-item h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 20px;
}

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

.careers p {
    font-size: 18px;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* 子页面横幅 */
.about-hero,
.news-hero,
.products-hero,
.services-hero,
.knowledge-hero,
.contact-hero {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.about-hero h2,
.news-hero h2,
.products-hero h2,
.services-hero h2,
.knowledge-hero h2,
.contact-hero h2 {
    color: white;
    font-size: 36px;
}

.about-hero h2::after,
.news-hero h2::after,
.products-hero h2::after,
.services-hero h2::after,
.knowledge-hero h2::after,
.contact-hero h2::after {
    background-color: white;
}

.about-hero p,
.news-hero p,
.products-hero p,
.services-hero p,
.knowledge-hero p,
.contact-hero p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* 公司简介内容 */
.about-content {
    background-color: #fff;
    padding: 40px 0;
}

.about-text h3 {
    font-size: 24px;
    margin-top: 30px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}

/* 团队 */
.team {
    background-color: #f1f9f5;
    padding: 60px 0;
}

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

.team-member {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.team-member h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

/* 新闻存档 */
.news-archive .news-item {
    margin-bottom: 30px;
}

/* 产品分类 */
.product-categories {
    background-color: #fff;
    padding: 60px 0;
}

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

.category-item {
    background-color: #f1f9f5;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.category-item h3 {
    color: #27ae60;
    margin-bottom: 15px;
}

/* 明星产品 */
.featured-products {
    background-color: #f1f9f5;
    padding: 60px 0;
}

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

.product-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.product-image {
    font-size: 60px;
    margin-bottom: 20px;
}

.product-item h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

/* 服务内容 */
.services-content {
    background-color: #fff;
    padding: 60px 0;
}

.services-content .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

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

/* 服务流程 */
.service-process {
    background-color: #f1f9f5;
    padding: 60px 0;
}

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

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: #27ae60;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 20px;
}

/* 知识分类 */
.knowledge-categories {
    background-color: #fff;
    padding: 60px 0;
}

.knowledge-categories .categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.knowledge-categories .category-item {
    background-color: #f1f9f5;
    padding: 30px;
    border-radius: 8px;
}

.knowledge-categories .category-item h3 {
    color: #27ae60;
    margin-bottom: 15px;
}

/* 热门文章 */
.popular-articles {
    background-color: #f1f9f5;
    padding: 60px 0;
}

.articles-list .article-item {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.articles-list .article-item h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

/* 联系方式 */
.contact-info {
    background-color: #fff;
    padding: 60px 0;
}

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

.contact-item {
    background-color: #f1f9f5;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.contact-item h3 {
    color: #27ae60;
    margin-bottom: 20px;
}

.contact-item a {
    color: #3498db;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* 联系说明 */
.contact-note {
    background-color: #f1f9f5;
    padding: 60px 0;
}

.note-content {
    max-width: 800px;
    margin: 0 auto;
}

.note-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.note-content ul {
    margin-left: 30px;
    margin-bottom: 20px;
}

.note-content li {
    margin-bottom: 10px;
}

/* 页脚样式 */
footer {
    background-color: #2c3e50;
    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;
    }
    
    h2 {
        font-size: 28px;
    }
    
    .news-list,
    .services-grid,
    .cases-grid,
    .team-grid,
    .categories-grid,
    .products-grid,
    .process-steps,
    .contacts-grid {
        grid-template-columns: 1fr;
    }
    
    .logo h1 {
        font-size: 20px;
        text-align: center;
    }
    
    nav ul li a {
        font-size: 16px;
        padding: 8px 10px;
    }
}