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

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

.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: #8e44ad;
    font-size: 24px;
}

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

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

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

nav ul li a:hover,
nav ul li a.active {
    color: #8e44ad;
    background-color: #f8f0ff;
}

/* 主要内容区域 */
.section {
    padding: 80px 0;
}

.section.bg-light {
    background-color: #f9f5ff;
}

.section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #8e44ad;
    position: relative;
}

.section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #8e44ad;
    margin: 15px auto;
    border-radius: 2px;
}

/* 公司简介 */
.intro-content p {
    font-size: 18px;
    margin-bottom: 20px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #555;
}

/* 宣传文案 */
.slogan-content {
    text-align: center;
    padding: 50px 20px;
}

.slogan-content h2 {
    font-size: 42px;
    margin-bottom: 20px;
    color: #8e44ad;
    text-align: center;
    border: none;
}

.slogan-content h2::after {
    display: none;
}

.slogan-content p {
    font-size: 24px;
    color: #666;
}

/* 新闻动态 */
.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-item {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

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

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

.read-more {
    color: #8e44ad;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-top: 15px;
}

.read-more:hover {
    text-decoration: underline;
}

/* 业务范围 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-item {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

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

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

.service-details {
    text-align: left;
    margin-top: 15px;
    padding-left: 20px;
}

.service-details li {
    margin-bottom: 8px;
    color: #666;
}

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

.case-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.case-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.case-image {
    height: 200px;
    background: linear-gradient(135deg, #8e44ad, #3498db);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.case-item h3 {
    padding: 20px 20px 10px;
    color: #8e44ad;
}

.case-item p {
    padding: 0 20px 20px;
    color: #666;
}

/* 人才发展 */
.careers-content p {
    font-size: 18px;
    margin-bottom: 20px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #555;
}

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

.footer-content p {
    margin-bottom: 10px;
}

.footer-content a {
    color: #8e44ad;
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}

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

.category-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
}

.category-list li {
    margin: 0 10px 10px 0;
}

.category-list a {
    display: block;
    padding: 8px 16px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s;
}

.category-list a:hover,
.category-list .active a {
    background: #8e44ad;
    color: white;
}

/* 知识库页面样式 */
.knowledge-categories {
    text-align: center;
    margin-bottom: 40px;
}

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

.knowledge-item {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.knowledge-item h3 a {
    color: #8e44ad;
    text-decoration: none;
    font-size: 20px;
}

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

.tags {
    margin-top: 15px;
}

.tag {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    margin-right: 5px;
}

/* 常见问题页面样式 */
.faq-content {
    max-width: 800px;
    margin: 0 auto;
}

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

.faq-question {
    background: #f8f0ff;
    padding: 20px;
    cursor: pointer;
    font-size: 18px;
    color: #8e44ad;
    position: relative;
}

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

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

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

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

.faq-answer ul,
.faq-answer ol {
    padding-left: 20px;
    margin: 15px 0;
}

.faq-answer li {
    margin-bottom: 10px;
}

/* 联系我们页面样式 */
.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.departments {
    margin-top: 20px;
}

.department {
    margin-bottom: 15px;
    padding: 15px;
    background: #f9f5ff;
    border-radius: 8px;
}

.department a {
    color: #8e44ad;
    text-decoration: none;
}

.department a:hover {
    text-decoration: underline;
}

.map-container {
    text-align: center;
}

.map-placeholder {
    height: 300px;
    background: linear-gradient(135deg, #8e44ad, #3498db);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 18px;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination a {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
}

.pagination a:hover,
.pagination a.active {
    background: #8e44ad;
    color: white;
}

/* 服务流程 */
.service-process {
    margin-top: 50px;
}

.service-process h3 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: #8e44ad;
}

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

.step {
    text-align: center;
    padding: 30px 20px;
}

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

.step h4 {
    color: #8e44ad;
    margin-bottom: 15px;
    font-size: 20px;
}

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


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

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

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

    .section {
        padding: 50px 0;
    }

    .section h2 {
        font-size: 28px;
    }

    .slogan-content h2 {
        font-size: 32px;
    }

    .slogan-content p {
        font-size: 20px;
    }

    .services-grid,
    .cases-grid,
    .news-list,
    .knowledge-list,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }
}