/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    background-color: #e74c3c;
    color: white;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 1.8rem;
    margin-right: 20px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: #c0392b;
}

/* 主内容区域 */
main {
    margin-top: 80px;
    padding: 40px 0;
}

.section {
    padding: 60px 0;
    border-bottom: 1px solid #eee;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #e74c3c;
    text-align: center;
}

/* 服务网格布局 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.service-item {
    background: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.service-item:hover {
    transform: translateY(-10px);
}

.service-item h3 {
    color: #e74c3c;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* 联系我们区域 */
address {
    font-style: normal;
    text-align: center;
    margin-top: 20px;
}

address a {
    color: #e74c3c;
    text-decoration: none;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header .container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    header h1 {
        margin-right: 0;
        margin-bottom: 15px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav a {
        display: block;
        text-align: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 40px 0;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section {
    animation: fadeIn 0.6s ease-out forwards;
}

.service-item {
    animation: fadeIn 0.6s ease-out forwards;
    animation-delay: calc(var(--order) * 0.1s);
}