* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
}
/* 导航栏样式 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
}
.nav-links {
    display: flex;
    list-style: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}
.nav-links li {
    margin-left: 30px;
}
.nav-links a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}
.nav-links a:hover {
    color: #007BFF;
}
/* 项目网格布局 */
.projects-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 60px;
}
.section-title {
    text-align: center;
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 40px;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #007BFF;
    margin: 15px auto 0;
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}
.project-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.project-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.project-content {
    padding: 25px;
}
.project-title {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
}
.project-desc {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.7;
    text-align: center;
}
.project-button {
    display: inline-block;
    background-color: #007BFF;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
    font-size: 14px;
    margin: 0 auto;
    display: block;
    width: fit-content;
}
.project-button:hover {
    background-color: #0056b3;
}
/* 页脚样式 */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 60px 0 30px;
}
.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}
.footer-col h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
}
.footer-col h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: #007BFF;
    margin-top: 10px;
}
.footer-col p {
    color: #ddd;
    line-height: 1.7;
}
.footer-link {
    color: #ddd;
    text-decoration: none;
}
.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 14px;
}
/* 响应式设计 */
@media (max-width: 768px) {
    .navbar-container {
        flex-direction: row;
    }
    .menu-toggle {
        display: flex;
    }
    .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: white;
    flex-direction: column;
    align-items: center;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    box-shadow: 0 5px 5px rgba(0,0,0,0.1);
}
.nav-links.active {
    display: flex;
    padding: 20px 0;
    max-height: 500px;
    transition: max-height 0.5s ease-in, padding 0.3s ease-in;
}
    .nav-links li {
        margin: 10px 0;
    }
    .carousel {
        height: 400px;
    }
    .carousel h1 {
        font-size: 32px;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
}