/* 全局样式 */
* {
    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-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header h1 {
    float: left;
    font-size: 1.5rem;
}

nav {
    float: right;
}

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

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #3498db;
}

/* 主要内容样式 */
main {
    margin-top: 80px;
}

section {
    padding: 4rem 0;
}

.hero {
    background-color: #3498db;
    color: white;
    text-align: center;
    padding: 6rem 0;
}

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

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

.about {
    background-color: #ecf0f1;
}

.services {
    background-color: white;
}

.service-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 2rem;
}

.service-item {
    flex: 0 0 30%;
    background-color: #f8f9fa;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.contact {
    background-color: #ecf0f1;
}

.contact-info {
    margin-top: 2rem;
}

.contact-info p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

footer a {
    color: #3498db;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* 清除浮动 */
header::after {
    content: "";
    display: table;
    clear: both;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        float: none;
        text-align: center;
        margin-bottom: 1rem;
    }

    nav {
        float: none;
        text-align: center;
    }

    nav ul {
        justify-content: center;
    }

    nav ul li {
        margin: 0 0.5rem;
    }

    .hero {
        padding: 3rem 0;
    }

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

    .service-list {
        flex-direction: column;
    }

    .service-item {
        flex: 0 0 100%;
        margin-bottom: 1rem;
    }
}