/* 全局样式 */
* {
    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-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

header h1 {
    color: #0056b3;
    font-size: 1.8rem;
}

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

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

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 18px;
}

nav ul li a:hover {
    color: #0056b3;
}

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

/* 首页横幅 */
.hero {
    background: linear-gradient(135deg, #0056b3, #007bff);
    color: white;
    padding: 80px 0;
    text-align: center;
}

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

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

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

.btn:hover {
    background-color: transparent;
    color: #ffc107;
}

/* 简介部分 */
.intro {
    padding: 80px 0;
    background-color: #fff;
}

.intro h2,
.news h2,
.services h2,
.cases h2,
.careers h2 {
    text-align: center;
    margin-bottom: 50px;
    color: #0056b3;
    font-size: 2rem;
}

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

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

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

.news-list article {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

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

.news-list h3 {
    color: #0056b3;
    margin-bottom: 10px;
}

.date {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.more-link {
    display: block;
    text-align: center;
    color: #0056b3;
    text-decoration: none;
    font-weight: 500;
}

.more-link:hover {
    text-decoration: underline;
}

/* 业务范围 */
.services {
    padding: 80px 0;
    background-color: #fff;
}

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

.service-item {
    text-align: center;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.service-item:hover {
    background-color: #f8f9fa;
    transform: translateY(-5px);
}

.service-item h3 {
    color: #0056b3;
    margin-bottom: 15px;
}

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

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

.case-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.case-item h3 {
    color: #0056b3;
    margin-bottom: 15px;
}

/* 人才发展 */
.careers {
    padding: 80px 0;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    text-align: center;
}

.careers h2 {
    color: white;
}

.careers p {
    max-width: 800px;
    margin: 0 auto 20px;
    font-size: 1.1rem;
}

.careers .btn {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
}

.careers .btn:hover {
    background-color: transparent;
    color: #ffc107;
}

/* 页脚 */
footer {
    background-color: #343a40;
    color: #fff;
    text-align: center;
    padding: 30px 0;
}

/* 子页面通用样式 */
.page-header {
    background: linear-gradient(135deg, #0056b3, #007bff);
    color: white;
    padding: 60px 0;
    text-align: center;
}

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

.page-content {
    padding: 60px 0;
    background-color: #fff;
}

/* 公司简介页面 */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    color: #0056b3;
    margin: 30px 0 15px;
}

.about-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

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

.product-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.product-item h3 {
    color: #0056b3;
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.product-item p {
    padding: 15px;
    text-align: center;
}

/* 新闻资讯页面 */
.news-page .news-item {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.news-item h3 {
    color: #0056b3;
    margin-bottom: 10px;
}

.news-item .date {
    color: #6c757d;
    margin-bottom: 15px;
    display: block;
}

/* 联系我们页面 */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

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

.contact-card h3 {
    color: #0056b3;
    margin-bottom: 15px;
}

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

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

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

    .intro,
    .news,
    .services,
    .cases,
    .careers,
    .page-content {
        padding: 50px 0;
    }
}