* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 1000px;  /* 调整宽度限制，保持页面宽松 */
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: #555;  /* 更深灰色 */
    color: #fff;
    padding: 20px 0;
    text-align: center;
    width: 100%;  /* 确保顶部全宽 */
}

header h1 {
    margin-bottom: 10px;
}

header .profile-img {
    width: 80px;  /* 图片尺寸调整为80px */
    height: 80px; /* 图片尺寸调整为80px */
    border-radius: 50%;
    margin-bottom: 10px;
}

header nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

header nav ul li {
    margin: 0 15px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

header nav ul li a:hover {
    text-decoration: underline;
}

.section {
    padding: 40px 0;
}

#about {
    background-color: #fff;
    text-align: center;
}

#about p {
    font-size: 1.1em;
    margin: 20px auto;
}

#projects {
    display: flex;  /* 使用flex布局 */
    justify-content: space-between; /* 在两部分之间均匀分配空间 */
    flex-wrap: wrap;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    transition: transform 0.3s ease;
}

.project-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.project-card h3 {
    margin-bottom: 10px;
    font-size: 1.2em;
}

.project-card p {
    font-size: 1em;
}

#education {
    background-color: #fff;
    text-align: center;
}

#education ul {
    list-style: none;
    padding-left: 0;
}

#education ul li {
    font-size: 1.1em;
    margin: 10px 0;
}

#contact {
    background-color: #fff;
    text-align: center;
}

#contact a {
    color: #333;
    text-decoration: none;
}

footer {
    background-color: #555; /* 深灰色与顶部呼应 */
    color: #fff;
    text-align: center;
    padding: 20px 0;
}
