* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    color: #333;
    background-color: #f9f9f9;
    line-height: 1.6;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
}
/* 导航栏 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #222;
    padding: 15px 50px;
}
.logo {
    height: 40px;
}
.navbar a {
    color: white;
    text-decoration: none;
    margin-left: 25px;
    font-weight: bold;
}
.navbar a:hover {
    color: #4da6ff;
}
/* 英雄区域 */
.hero {
    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;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}
.hero-text h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}
.hero button {
    margin-top: 25px;
    padding: 12px 30px;
    background-color: #0078ff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
}
/* 网格与卡片 */
.grid, .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.card, .service-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
/* 联系页面布局 */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: start;
}
.contact-form form {
    display: flex;
    flex-direction: column;
}
.contact-form label {
    margin-top: 15px;
    font-weight: bold;
}
.contact-form input, .contact-form textarea {
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}
.contact-form button {
    margin-top: 20px;
    padding: 12px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
/* 页脚 */
footer {
    background-color: #222;
    color: #aaa;
    text-align: center;
    padding: 20px;
    /* margin-top: 50px; */
}
.footbar a {
    color: white;
    /* text-decoration: none; */
    /* margin-left: 25px; */
    font-weight: bold;
}
.footbar a:hover {
    color: #4da6ff;
}


/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 15px;
    }
    .navbar a {
        margin: 10px 0;
        display: block;
        text-align: center;
    }
    .hero-text h1 {
        font-size: 2rem;
    }
    .contact-container {
        grid-template-columns: 1fr;
    }
    .container {
        width: 95%;
    }
}
