/* 基础样式重置 */
* {
    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, #1a3a6c, #2c5aa0);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
    margin-top: 10px;
}

nav {
    margin-bottom: 10px;
}

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

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

nav ul li:first-child {
    margin-left: 0;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    padding: 10px 15px;
    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 {
    min-height: calc(100vh - 200px);
}

/* 首页英雄区域 */
.hero {
    background: linear-gradient(rgba(26, 58, 108, 0.8), rgba(44, 90, 160, 0.9)), 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="%231a3a6c"/><path d="M20,20 Q50,5 80,20 T80,80 Q50,95 20,80 T20,20 Z" fill="none" stroke="%232c5aa0" stroke-width="0.5"/></svg>');
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

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

.btn {
    display: inline-block;
    background-color: #e94b35;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    border: 2px solid #e94b35;
}

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

/* 简介区域 */
.intro {
    padding: 60px 0;
    background-color: white;
}

.intro h2,
.news h2,
.services h2,
.cases h2,
.careers h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #1a3a6c;
    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: #e94b35;
    margin: 10px auto;
}

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

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

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

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

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

.news-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #1a3a6c;
}

.news-item p {
    color: #666;
    margin-bottom: 15px;
    text-align: left;
}

.date {
    color: #e94b35;
    font-weight: bold;
}

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

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

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

.service-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 8px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.service-item:hover {
    background-color: #1a3a6c;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

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

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

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

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

.case-item {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

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

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

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

.career-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #1a3a6c;
}

/* 页脚 */
footer {
    background-color: #1a3a6c;
    color: white;
    padding: 40px 0 20px;
}

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

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #e94b35;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #e94b35;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 响应式设计 */
@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: 28px;
    }

    .hero p {
        font-size: 18px;
    }

    .intro h2,
    .news h2,
    .services h2,
    .cases h2,
    .careers h2 {
        font-size: 28px;
    }
}

/* 子页面通用样式 */
.page-header {
    background: linear-gradient(135deg, #1a3a6c, #2c5aa0);
    color: white;
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.page-content {
    padding: 20px 0 60px;
}

/* 新闻页面样式 */
.news-list {
    display: grid;
    gap: 30px;
}

.news-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.news-card-content {
    padding: 25px;
}

.news-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #1a3a6c;
}

.news-card p {
    color: #666;
    margin-bottom: 20px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    color: #e94b35;
    font-weight: bold;
    font-size: 14px;
}

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

.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    padding: 20px;
}

.product-icon {
    font-size: 64px;
    margin-bottom: 20px;
    color: #1a3a6c;
}

.product-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

/* 服务中心样式 */
.services-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
}

.service-detail-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-detail-card h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #1a3a6c;
    display: flex;
    align-items: center;
}

.service-detail-card h3 .icon {
    margin-right: 10px;
    font-size: 28px;
}

/* 知识库样式 */
.knowledge-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.knowledge-category {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.knowledge-category .icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #1a3a6c;
}

/* FAQ样式 */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 20px;
    background-color: #1a3a6c;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 20px;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

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

.contact-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.contact-card .icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #1a3a6c;
}

.contact-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.contact-card p {
    margin-bottom: 10px;
}