/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

.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;
}

.logo {
    color: #b8860b;
    font-size: 24px;
    font-weight: bold;
}

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

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

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

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

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

/* 首页英雄区域 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 100px 0;
}

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

.hero p {
    font-size: 24px;
    margin-bottom: 30px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    background-color: #b8860b;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #daa520;
}

.btn-outline {
    display: inline-block;
    border: 2px solid #b8860b;
    color: #b8860b;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-outline:hover {
    background-color: #b8860b;
    color: white;
}

/* 简介区域 */
.intro {
    padding: 80px 0;
    background-color: white;
    text-align: center;
}

.intro h2 {
    font-size: 36px;
    margin-bottom: 30px;
    color: #333;
}

.intro p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 30px;
    color: #666;
}

/* 新闻区域 */
.news {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.news h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #333;
}

.news-list {
    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: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

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

.news-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.date {
    color: #b8860b;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 14px;
}

.news-item p {
    color: #666;
    line-height: 1.6;
}

/* 服务区域 */
.services {
    padding: 80px 0;
    background-color: white;
}

.services h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #333;
}

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

.service-item {
    text-align: center;
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 10px;
    transition: all 0.3s;
}

.service-item:hover {
    border-color: #b8860b;
    box-shadow: 0 5px 15px rgba(184, 134, 11, 0.1);
}

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

.service-item p {
    color: #666;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
}

/* 子页面通用样式 */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

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

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

/* 关于我们页面 */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.mission {
    background-color: #f5f5f5;
    padding: 40px;
    border-radius: 10px;
    margin: 30px 0;
}

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

.value-item {
    text-align: center;
    padding: 20px;
}

.value-item h3 {
    color: #b8860b;
    margin: 15px 0;
}

/* 新闻列表页面 */
.news-page .news-item {
    margin-bottom: 30px;
}

.news-page .news-item:last-child {
    margin-bottom: 0;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination a {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
}

.pagination a.active,
.pagination a:hover {
    background-color: #b8860b;
    color: white;
    border-color: #b8860b;
}

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

.business-item {
    background-color: #f5f5f5;
    padding: 30px;
    border-radius: 10px;
    transition: transform 0.3s;
}

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

.business-item h3 {
    color: #b8860b;
    margin-bottom: 15px;
}

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

.contact-person {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
}

.contact-person h3 {
    color: #b8860b;
    margin-bottom: 10px;
}

.email {
    color: #666;
    font-style: italic;
}

/* 响应式设计 */
@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: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
}