/* 全局样式 */
* {
    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: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

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

nav ul li {
    margin-right: 1rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 主要内容区域 */
main {
    padding: 0 0 2rem 0;
}

/* 首页横幅 */
.hero {
    background: linear-gradient(rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8)), 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="%23667eea"/></svg>');
    color: white;
    text-align: center;
    padding: 4rem 0;
    margin-bottom: 2rem;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.cta-button:hover {
    background-color: #ff5252;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 简介部分 */
.intro {
    background-color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.intro h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #667eea;
    font-size: 2rem;
}

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

.intro-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-align: center;
}

/* 新闻动态 */
.news {
    padding: 3rem 0;
    background-color: #f0f4ff;
}

.news h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #667eea;
    font-size: 2rem;
}

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

.news-item {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

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

.news-item h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.date {
    color: #ff6b6b;
    font-weight: bold;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* 业务范围 */
.services {
    padding: 3rem 0;
    background-color: white;
}

.services h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #667eea;
    font-size: 2rem;
}

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

.service-item {
    text-align: center;
    padding: 2rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: scale(1.05);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-item h3 {
    margin-bottom: 1rem;
    color: #667eea;
}

/* 成功案例 */
.cases {
    padding: 3rem 0;
    background-color: #f0f4ff;
}

.cases h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #667eea;
    font-size: 2rem;
}

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

.case-item {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #ff6b6b;
}

.case-item h3 {
    color: #333;
    margin-bottom: 1rem;
}

/* 人才发展 */
.careers {
    padding: 3rem 0;
    background-color: white;
}

.careers h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #667eea;
    font-size: 2rem;
}

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

.careers-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-align: center;
}

/* 页脚 */
footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* 页面头部（用于内页） */
.page-header {
    background: linear-gradient(rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
    color: white;
    text-align: center;
    padding: 5rem 0;
    margin-bottom: 2rem;
}

.page-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* 新闻内容区域 */
.news-content .container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.news-list {
    flex: 3;
    min-width: 300px;
}

.news-sidebar {
    flex: 1;
    min-width: 250px;
}

.news-article {
    background-color: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.news-article h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.article-meta {
    display: flex;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.date {
    color: #ff6b6b;
    font-weight: bold;
    margin-right: 1rem;
}

.category {
    background-color: #667eea;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.news-article p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* 侧边栏 */
.sidebar-widget {
    background-color: white;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.sidebar-widget h4 {
    color: #667eea;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f4ff;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background-color: #f0f4ff;
    color: #667eea;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: #667eea;
    color: white;
}

.recommend-list {
    list-style: none;
}

.recommend-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f4ff;
}

.recommend-list li:last-child {
    border-bottom: none;
}

.recommend-list a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recommend-list a:hover {
    color: #667eea;
}

/* 产品分类按钮 */
.product-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.category-btn {
    background-color: #f0f4ff;
    color: #667eea;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
    background-color: #667eea;
    color: white;
}

/* 产品网格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* 产品卡片 */
.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 200px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    font-size: 4rem;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.product-description {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ff6b6b;
}

.tag {
    background-color: #ff6b6b;
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* 服务中心介绍 */
.services-intro {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.services-intro h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.services-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* 服务详情 */
.service-detail {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.service-detail:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-icon-large {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 1rem;
}

.service-detail h3 {
    color: #667eea;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-detail p {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #666;
}

.service-detail ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.service-detail li {
    padding: 0.8rem;
    background-color: #f0f4ff;
    border-radius: 5px;
    text-align: center;
    color: #667eea;
    font-weight: 500;
}

/* 服务流程 */
.service-process {
    margin-top: 3rem;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.service-process h3 {
    text-align: center;
    color: #667eea;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.process-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 1rem;
}

.step {
    flex: 1;
    min-width: 180px;
    text-align: center;
    padding: 1.5rem;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.step-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

/* 知识库分类 */
.knowledge-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

/* 知识库网格 */
.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* 知识卡片 */
.knowledge-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

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

.card-image {
    height: 180px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-content {
    padding: 1.5rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.category-tag {
    background-color: #667eea;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.card-content h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.card-content p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.read-more:after {
    content: "→";
    margin-left: 0.5rem;
    transition: margin-left 0.3s ease;
}

.read-more:hover:after {
    margin-left: 0.8rem;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-btn {
    background-color: #f0f4ff;
    color: #667eea;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-btn:hover,
.page-btn.active {
    background-color: #667eea;
    color: white;
}

/* FAQ搜索 */
.faq-search {
    display: flex;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.faq-search input {
    flex: 1;
    padding: 1rem;
    border: 2px solid #f0f4ff;
    border-radius: 30px 0 0 30px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.faq-search input:focus {
    border-color: #667eea;
}

.faq-search button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0 1.5rem;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    font-weight: 500;
}

/* FAQ分类 */
.faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

/* FAQ列表 */
.faq-list {
    margin-bottom: 3rem;
}

.faq-item {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f0f4ff;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #e1e8ff;
}

.faq-question h3 {
    color: #667eea;
    font-size: 1.1rem;
    margin: 0;
}

.toggle-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-answer {
    padding: 0 1.5rem;
    display: none;
}

.faq-answer p {
    margin: 1.5rem 0;
    line-height: 1.8;
}

.faq-answer ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.faq-answer li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

/* FAQ联系 */
.faq-contact {
    text-align: center;
    padding: 3rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.faq-contact h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.faq-contact p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #666;
}

.contact-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 联系信息 */
.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    flex: 1;
    min-width: 250px;
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.contact-card h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-card p {
    margin-bottom: 0.5rem;
    color: #666;
}

/* 部门联系信息 */
.departments {
    margin-bottom: 3rem;
}

.departments h3 {
    text-align: center;
    color: #667eea;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

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

.department {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
}

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

.department h4 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.department p {
    margin-bottom: 0.5rem;
    color: #666;
}

.department a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.department a:hover {
    color: #ff6b6b;
}

/* 地图区域 */
.map-section {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.map-section h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.map-placeholder {
    height: 300px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.map-placeholder p {
    color: #666;
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

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

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

    .logo {
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    nav ul {
        justify-content: center;
    }

    nav ul li {
        margin: 0.3rem;
    }

    .hero {
        padding: 2rem 0;
    }

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

    .hero p {
        font-size: 1rem;
    }

    .services-grid,
    .news-grid,
    .cases-grid {
        grid-template-columns: 1fr;
    }

    .news-content .container {
        flex-direction: column;
    }

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

    .page-header p {
        font-size: 1rem;
    }

    .product-categories {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 1rem;
    }

    .category-btn {
        white-space: nowrap;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .services-intro {
        padding: 1.5rem;
    }

    .services-intro h3 {
        font-size: 1.5rem;
    }

    .service-detail {
        padding: 1.5rem;
    }

    .service-detail h3 {
        font-size: 1.3rem;
    }

    .service-detail ul {
        grid-template-columns: 1fr;
    }

    .process-steps {
        flex-direction: column;
        align-items: center;
    }

    .step {
        width: 100%;
        max-width: 300px;
    }

    .knowledge-categories {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 1rem;
    }

    .knowledge-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .card-image {
        height: 150px;
    }

    .card-content {
        padding: 1rem;
    }

    .card-content h3 {
        font-size: 1.1rem;
    }

    .faq-search {
        flex-direction: column;
        gap: 1rem;
    }

    .faq-search input,
    .faq-search button {
        border-radius: 30px;
        width: 100%;
    }

    .faq-categories {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 1rem;
    }

    .faq-question {
        padding: 1rem;
    }

    .faq-question h3 {
        font-size: 1rem;
    }

    .faq-answer {
        padding: 0 1rem;
    }

    .faq-contact {
        padding: 2rem 1rem;
    }

    .faq-contact h3 {
        font-size: 1.5rem;
    }

    .contact-info {
        flex-direction: column;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .departments h3 {
        font-size: 1.5rem;
    }

    .departments-grid {
        grid-template-columns: 1fr;
    }

    .department {
        padding: 1.5rem;
    }

    .department h4 {
        font-size: 1.2rem;
    }

    .map-section {
        padding: 1.5rem;
    }

    .map-section h3 {
        font-size: 1.5rem;
    }

    .map-placeholder {
        height: 200px;
    }
}