/* 全局样式 */
* {
    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: linear-gradient(135deg, #1e5799 0%, #207cca 51%, #2989d8 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: 0.5rem;
}

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

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

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    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(30, 87, 153, 0.8), rgba(41, 137, 216, 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"/><path d="M20,20 Q50,5 80,20 T80,80 Q50,95 20,80 T20,20" fill="none" stroke="white" stroke-width="0.5"/></svg>');
    background-size: cover;
    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: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.cta-button:hover {
    background-color: #e55a2b;
}

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

.intro h2,
.news h2,
.services h2,
.cases h2,
.careers h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1e5799;
    font-size: 2rem;
    position: relative;
}

.intro h2::after,
.news h2::after,
.services h2::after,
.cases h2::after,
.careers h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #ff6b35;
    margin: 0.5rem auto;
}

.intro-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.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: #1e5799;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

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

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

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

.service-item {
    text-align: center;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.service-item:hover {
    background-color: #f1f8ff;
    transform: scale(1.03);
}

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

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

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

.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: 4px solid #ff6b35;
}

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

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

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

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

/* 页脚 */
footer {
    background: linear-gradient(135deg, #1e5799 0%, #207cca 51%, #2989d8 100%);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* 子页面通用样式 */
.page-header {
    background: linear-gradient(135deg, #1e5799 0%, #207cca 51%, #2989d8 100%);
    color: white;
    text-align: center;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
}

.page-content {
    max-width: 1000px;
    margin: 0 auto 3rem;
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* 新闻页面 */
.news-list {
    list-style: none;
}

.news-list li {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

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

.news-list h3 {
    color: #1e5799;
    margin-bottom: 0.5rem;
}

.news-content {
    margin-top: 1rem;
}

/* 产品中心 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.product-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.product-item .icon {
    font-size: 4rem;
}

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

.category-tag {
    background-color: #1e5799;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.category-tag:hover,
.category-tag.active {
    background-color: #ff6b35;
}

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

.knowledge-item {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

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

/* 常见问题 */
.faq-item {
    margin-bottom: 1.5rem;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    background-color: #f1f8ff;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: bold;
    position: relative;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
}

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

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

.faq-answer.open {
    padding: 1rem 1.5rem;
    max-height: 500px;
}

/* 联系方式 */
.contacts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-person {
    background-color: #f1f8ff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.contact-person .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #1e5799;
}

.email {
    color: #ff6b35;
    font-weight: bold;
    text-decoration: none;
}

.email:hover {
    text-decoration: underline;
}

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

    nav ul {
        justify-content: center;
    }

    nav ul li {
        margin: 0.3rem 0.5rem;
    }

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

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

    .intro h2,
    .news h2,
    .services h2,
    .cases h2,
    .careers h2 {
        font-size: 1.8rem;
    }

    main {
        padding: 1rem 0;
    }

    .services-grid,
    .cases-grid,
    .news-grid,
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}