/* 基础样式重置 */
* {
    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: #2c3e50;
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
    font-size: 28px;
    margin-bottom: 45px;
    margin-top: 25px;
    text-align: center;
}

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

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 20px; /* 加大字体 */
    font-weight: bold; /* 加粗字体 */
    padding: 10px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    background: #3498db;
    transform: translateY(-2px);
}

/* 主要内容样式 */
main {
    padding: 0 0 40px 0;
}

section {
    margin-bottom: 50px;
}

h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
    color: #2c3e50;
    position: relative;
}

h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: #3498db;
    margin: 10px auto;
}

h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
    font-size: 16px;
}

/* 首页特色区域 */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.9));
    color: white;
    text-align: center;
    padding: 80px 20px;
    margin-bottom: 40px;
}

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

.hero h2:after {
    background: #3498db;
}

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

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

.btn:hover {
    background: transparent;
    color: #3498db;
    transform: scale(1.05);
}

/* 公司简介 */
.intro {
    background: #f8f9fa;
    padding: 40px 0;
}

/* 新闻动态 */
.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

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

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

.date {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 10px;
}

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

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

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

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

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

.case-item {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.case-item h3 {
    color: white;
    margin-bottom: 15px;
}

/* 人才发展 */
.careers {
    background: #f8f9fa;
    padding: 40px 0;
    text-align: center;
}

/* 页脚 */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 30px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .logo {
        font-size: 24px;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 5px 0;
    }
    
    nav ul li a {
        font-size: 18px;
        padding: 8px 12px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    .hero {
        padding: 50px 20px;
    }
    
    .hero h2 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .news-list,
    .services-grid,
    .cases-grid {
        grid-template-columns: 1fr;
    }
}

/* 子页面通用样式 */
.page-header {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.9));
    color: white;
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 40px;
}

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

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

/* 新闻列表页 */
.news-item-full {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

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

.news-meta {
    color: #7f8c8d;
    margin-bottom: 15px;
}

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

.product-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-img {
    height: 200px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin-bottom: 10px;
}

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

.contact-item {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.contact-item h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.email {
    color: #3498db;
    text-decoration: none;
}

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