/* 基础样式重置 */
* {
    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: linear-gradient(135deg, #1a2a6c, #2a4b8d, #3a6cb0);
    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;
    margin-top: 10px;
}

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

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

nav ul li a:hover,
nav ul li a.active {
    color: #ffd700;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffd700;
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

/* 主体内容样式 */
main {
    min-height: calc(100vh - 150px);
}

/* 英雄区域 */
.hero {
    background: linear-gradient(rgba(26, 42, 108, 0.8), rgba(42, 75, 141, 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="%232a4b8d"/><path d="M0 0L100 100M100 0L0 100" stroke="%233a6cb0" stroke-width="1"/></svg>');
    background-size: cover;
    color: white;
    text-align: center;
    padding: 5rem 0;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

.btn {
    display: inline-block;
    background: #ffd700;
    color: #1a2a6c;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    background: #ffc400;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* 网站简介 */
.intro {
    padding: 4rem 0;
    background: #f8f9fa;
}

.intro h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1a2a6c;
    position: relative;
}

.intro h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #ffd700;
    margin: 10px auto;
}

.intro p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #555;
}

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

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #1a2a6c;
    position: relative;
}

.services h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #ffd700;
    margin: 10px auto;
}

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

.service-item {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background: #fff;
}

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

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

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

/* 成功案例 */
.cases {
    padding: 4rem 0;
    background: #f0f4f8;
}

.cases h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #1a2a6c;
    position: relative;
}

.cases h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #ffd700;
    margin: 10px auto;
}

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

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

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

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

/* 新闻动态 */
.news {
    padding: 4rem 0;
    background: white;
}

.news h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #1a2a6c;
    position: relative;
}

.news h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #ffd700;
    margin: 10px auto;
}

.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.news-item:hover {
    background: #f8f9fa;
    border-radius: 5px;
}

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

.date {
    color: #777;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

/* 人才发展 */
.careers {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1a2a6c, #2a4b8d);
    color: white;
    text-align: center;
}

.careers h2 {
    margin-bottom: 2rem;
    position: relative;
}

.careers h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #ffd700;
    margin: 10px auto;
}

.careers p {
    margin: 0 auto 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* 页脚 */
footer {
    background: #0a1433;
    color: #aaa;
    text-align: center;
    padding: 1.5rem 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .logo {
        font-size: 1.4rem;
        text-align: center;
    }

    nav ul {
        justify-content: center;
    }

    nav ul li {
        margin: 0.5rem;
    }

    .hero {
        padding: 3rem 0;
    }

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

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

/* 子页面通用样式 */
.page-header {
    background: linear-gradient(135deg, #1a2a6c, #2a4b8d);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

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

.page-content {
    padding: 3rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

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

.contact-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
}

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

.contact-card h3 {
    color: #1a2a6c;
    margin-bottom: 0.5rem;
}

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

.email {
    color: #2a4b8d !important;
    font-weight: bold;
}

/* 新闻列表页面 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
}

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

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

.news-content {
    padding: 1.5rem;
}

.news-content h3 {
    color: #1a2a6c;
    margin-bottom: 0.5rem;
}
.news-content a.btn{
    margin: 20px auto 0 auto;
}
/* 产品中心页面 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
}

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

.product-content {
    padding: 1.5rem;
}

/* 常见问题页面 */
.faq-item {
    margin-bottom: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

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

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

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

.faq-answer.show {
    display: block;
}