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

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

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

/* 头部样式 */
header {
    background: linear-gradient(135deg, #1e5799, #207cca);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2em;
    margin-bottom: 15px;
    text-align: center;
}

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

nav ul li {
    margin: 0 5px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 18px;
    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: 30px 0;
}

section {
    margin-bottom: 40px;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

section h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #1e5799;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #1e5799, #207cca);
}

section h3 {
    color: #207cca;
    margin: 20px 0 10px 0;
}

section h4 {
    color: #1e5799;
    margin: 15px 0 10px 0;
}

/* 首页特定样式 */
#intro p {
    font-size: 1.1em;
    text-align: center;
    color: #666;
}

#banner {
    background: linear-gradient(rgba(30, 87, 153, 0.8), rgba(32, 124, 202, 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="%23207cca"/></svg>');
    color: white;
    text-align: center;
    padding: 50px 20px;
    border-radius: 8px;
}

#banner h2 {
    font-size: 2em;
    margin-bottom: 15px;
    color: #fff;
}

#banner p {
    font-size: 1.2em;
}

.news-list article {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.news-list article:last-child {
    border-bottom: none;
}

.news-list h3 {
    color: #1e5799;
    margin-bottom: 8px;
}

.news-list .date {
    color: #999;
    font-size: 0.9em;
}

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

.service-item {
    text-align: center;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-item h3 {
    color: #1e5799;
    margin-bottom: 10px;
}

.cases-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.case-item {
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.case-item h3 {
    color: #1e5799;
    margin-bottom: 10px;
}

/* 公司简介页面样式 */
.company-details ul {
    padding-left: 20px;
    margin: 10px 0;
}

.company-details li {
    margin-bottom: 8px;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 30px auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #207cca;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-year {
    font-weight: bold;
    color: #1e5799;
    margin-bottom: 5px;
}

.timeline-content {
    padding: 20px;
    background-color: #f0f8ff;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.timeline-item:nth-child(odd) .timeline-content::after {
    content: '';
    position: absolute;
    top: 30px;
    right: -15px;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 15px solid #f0f8ff;
}

.timeline-item:nth-child(even) .timeline-content::after {
    content: '';
    position: absolute;
    top: 30px;
    left: -15px;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 15px solid #f0f8ff;
}

/* 新闻页面样式 */
.news-articles {
    margin-top: 30px;
}

.news-item {
    padding: 25px 0;
    border-bottom: 1px solid #eee;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
}

.news-meta {
    display: flex;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.news-meta .date {
    color: #1e5799;
    margin-right: 15px;
}

.news-meta .category {
    background-color: #e8f4ff;
    color: #1e5799;
    padding: 2px 8px;
    border-radius: 3px;
}

.news-item p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.read-more {
    color: #207cca;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #1e5799;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination a {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    text-decoration: none;
    color: #1e5799;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination a.active {
    background-color: #1e5799;
    color: white;
}

/* 产品页面样式 */
.category-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.category-btn {
    background-color: #f0f8ff;
    color: #1e5799;
    border: 1px solid #cce5ff;
    padding: 8px 16px;
    margin: 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
    background-color: #1e5799;
    color: white;
}

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

.product-item {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.product-image {
    height: 200px;
    background-color: #e8f4ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image {
    color: #1e5799;
    font-weight: bold;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin: 0 0 10px 0;
    color: #1e5799;
}

.product-info p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.product-detail {
    display: inline-block;
    color: #207cca;
    text-decoration: none;
    font-weight: bold;
    padding: 6px 12px;
    border: 1px solid #207cca;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.product-detail:hover {
    background-color: #207cca;
    color: white;
}

/* 成功案例页面样式 */
.case-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.case-meta .industry {
    color: #1e5799;
}

.case-meta .date {
    color: #999;
}

.case-details ul {
    padding-left: 20px;
    margin: 10px 0;
}

.case-details li {
    margin-bottom: 8px;
}

.testimonials {
    margin-top: 30px;
}

.testimonial {
    padding: 20px;
    border-left: 4px solid #1e5799;
    background-color: #f8f9fa;
    margin-bottom: 20px;
}

.testimonial:last-child {
    margin-bottom: 0;
}

.testimonial p {
    font-style: italic;
    color: #555;
    margin-bottom: 15px;
}

.client-info {
    text-align: right;
}

.client-name {
    font-weight: bold;
    color: #1e5799;
}

.client-company {
    color: #999;
    font-size: 0.9em;
}

/* 服务流程样式 */
.process-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 30px;
}

.process-step {
    flex: 0 0 calc(50% - 20px);
    display: flex;
    margin-bottom: 30px;
}

.step-number {
    background-color: #1e5799;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    margin-right: 15px;
    flex-shrink: 0;
}

.step-content h3 {
    margin-top: 0;
    color: #1e5799;
}

/* 知识库页面样式 */
.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.knowledge-category {
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.knowledge-category h3 {
    margin-top: 0;
    text-align: center;
}

.knowledge-category ul {
    list-style-type: none;
    padding-left: 0;
}

.knowledge-category li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.knowledge-category li:last-child {
    border-bottom: none;
}

.knowledge-category a {
    color: #207cca;
    text-decoration: none;
    transition: color 0.3s ease;
}

.knowledge-category a:hover {
    color: #1e5799;
    text-decoration: underline;
}

.articles-list {
    margin-top: 30px;
}

.article-item {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.article-item:last-child {
    border-bottom: none;
}

.article-meta {
    display: flex;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.article-meta .date {
    color: #1e5799;
    margin-right: 15px;
}

.article-meta .category {
    background-color: #e8f4ff;
    color: #1e5799;
    padding: 2px 8px;
    border-radius: 3px;
}

.downloads-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.download-item {
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    text-align: center;
    background-color: #f9f9f9;
}

.download-item h3 {
    margin-top: 0;
    color: #1e5799;
}

.download-btn {
    display: inline-block;
    background-color: #1e5799;
    color: white;
    padding: 8px 20px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.download-btn:hover {
    background-color: #207cca;
}

/* 人才发展页面样式 */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.value-item {
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    text-align: center;
    background-color: #f0f8ff;
}

.value-item h3 {
    color: #1e5799;
    margin-top: 0;
}

.benefits-content ul {
    padding-left: 20px;
    margin: 10px 0 20px 0;
}

.benefits-content li {
    margin-bottom: 8px;
}

.positions-list {
    margin: 20px 0;
}

.position-item {
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px;
    background-color: #f9f9f9;
}

.position-item:last-child {
    margin-bottom: 0;
}

.contact-info {
    margin-top: 20px;
    padding: 20px;
    background-color: #e8f4ff;
    border-radius: 8px;
    text-align: center;
}

.contact-info a {
    color: #1e5799;
    text-decoration: none;
    font-weight: bold;
}

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

/* 常见问题页面样式 */
.faq-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 30px;
}

.faq-category-btn {
    background-color: #f0f8ff;
    color: #1e5799;
    border: 1px solid #cce5ff;
    padding: 8px 16px;
    margin: 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-category-btn:hover,
.faq-category-btn.active {
    background-color: #1e5799;
    color: white;
}

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

.faq-question {
    padding: 15px 20px;
    background-color: #f0f8ff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    margin: 0;
    color: #1e5799;
    font-size: 1.1em;
}

.faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #1e5799;
}

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

.faq-answer p,
.faq-answer ul,
.faq-answer ol {
    margin: 15px 0;
    line-height: 1.8;
}

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

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

.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.contact-option {
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    text-align: center;
    background-color: #f9f9f9;
}

.contact-option h3 {
    margin-top: 0;
    color: #1e5799;
}

.contact-option a {
    color: #207cca;
    text-decoration: none;
    font-weight: bold;
}

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

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

.info-item {
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #f0f8ff;
    text-align: center;
}

.info-item h3 {
    margin-top: 0;
    color: #1e5799;
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.department {
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #f9f9f9;
    text-align: center;
}

.department h3 {
    margin-top: 0;
    color: #1e5799;
}

.department a {
    color: #207cca;
    text-decoration: none;
    font-weight: bold;
}

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

.map-placeholder {
    height: 300px;
    background-color: #e8f4ff;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.map-placeholder p {
    color: #1e5799;
    font-weight: bold;
    margin: 10px 0;
}

.map-info {
    background-color: #f0f8ff;
    padding: 20px;
    border-radius: 8px;
}

.hours-content {
    text-align: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.hours-content p {
    margin: 10px 0;
    font-size: 1.1em;
}

/* 底部样式 */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5em;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 5px 0;
    }

    section {
        padding: 20px 15px;
    }

    .services-grid,
    .cases-list,
    .products-grid,
    .knowledge-grid,
    .downloads-list,
    .values-grid,
    .contact-options,
    .info-content,
    .departments-grid {
        grid-template-columns: 1fr;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        left: 0 !important;
    }

    .timeline-item .timeline-content::after {
        left: 30px !important;
        border-right: 15px solid #f0f8ff !important;
        border-left: none !important;
    }

    .news-meta,
    .article-meta {
        flex-direction: column;
    }

    .news-meta .date,
    .article-meta .date {
        margin-bottom: 5px;
    }

    .category-filter,
    .faq-categories {
        flex-direction: column;
        align-items: center;
    }

    .process-steps {
        flex-direction: column;
    }

    .process-step {
        flex: 0 0 100%;
    }

    .case-meta {
        flex-direction: column;
    }

    .client-info {
        text-align: left;
        margin-top: 10px;
    }
}