/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    width: 80%;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    background-color: #2c3e50;
    color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo h1 {
    font-size: 24px;
    font-weight: bold;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #3498db;
}

/* 横幅样式 */
.banner {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/banner.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 100px 0;
}

.banner h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.banner p {
    font-size: 20px;
    margin-bottom: 30px;
}

/* 新闻动态样式 */
.news {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.news h3 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #2c3e50;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-item h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.news-item p {
    margin-bottom: 20px;
    color: #666;
}

.read-more {
    display: inline-block;
    background-color: #3498db;
    color: #fff;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: #2980b9;
}

/* 关于我们样式 */
.about {
    padding: 60px 0;
    text-align: center;
}

.about h3 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #2c3e50;
}

.about p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #666;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.learn-more {
    display: inline-block;
    background-color: #2c3e50;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.learn-more:hover {
    background-color: #34495e;
}

/* 页脚样式 */
footer {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* 页面通用样式 */
.page-content {
    padding: 60px 0;
}

.page-content h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #2c3e50;
    text-align: center;
}

.page-content p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #666;
    line-height: 1.8;
}

/* 联系我们样式 */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-item {
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.contact-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #2c3e50;
}

/* 联系表单样式 */
.contact-form {
    margin-top: 40px;
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Microsoft YaHei', sans-serif;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    background-color: #3498db;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #2980b9;
}

/* 新闻列表样式 */
.news-list {
    margin-top: 30px;
}

.news-list .news-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.news-list .news-item:last-child {
    border-bottom: none;
}

.news-date {
    font-size: 14px;
    color: #999;
    margin-bottom: 10px;
}

.news-list .news-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #2c3e50;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.page-link {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background-color: #fff;
    color: #3498db;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: #f8f9fa;
    border-color: #3498db;
}

.page-link.active {
    background-color: #3498db;
    color: #fff;
    border-color: #3498db;
}

/* 地图容器样式 */
.map-container {
    margin-top: 40px;
    height: 400px;
    background-color: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    nav ul {
        flex-direction: column;
        margin-top: 20px;
    }
    
    nav ul li {
        margin-left: 0;
        margin-bottom: 10px;
    }
    
    .banner h2 {
        font-size: 36px;
    }
    
    .banner p {
        font-size: 18px;
    }
}