/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 2;
    color: #333;
    background-image: url('bg.jpg'); /* 添加背景图片 */
    background-size: cover; /* 让背景图片覆盖整个页面 */
    background-attachment: fixed; /* 固定背景图片，滚动时不会移动 */
    min-height: 90vh; /* 增加最小高度，使页面内容更充实 */
    position: relative;
}

.container {
    max-width: 1500px; /* 调整最大宽度，使内容更紧凑 */
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
header {
    text-align: center;
    margin-bottom: 40px; /* 增加底部外边距，使标题与导航之间有更多空间 */
    padding: 20px 0;
    position: relative;
}

header h1 {
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 10px; /* 调整底部外边距，使标题与副标题之间间距更合理 */
}

.subtitle {
    color: #7f8c8d;
    font-size: 14px;
}

/* 个人信息区域 */
.profile {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px; /* 增加底部外边距，使个人信息区域与其他内容之间有更多空间 */
    background-color: rgba(255, 255, 255, 0.9); /* 半透明背景 */
    border-radius: 9px;
    padding: 15px; /* 调整内边距，使内容显示更舒适 */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.photo-container {
    margin-right: 50px; /* 调整右侧外边距，使照片与个人信息之间间距更合理 */
}

#profile-photo {
    width: 225px;
    height: 225px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid #e48d22fb;
    margin: 0 auto; /* 确保头像在容器中居中 */
    display: block; /* 确保头像在容器中正确显示 */
}

.info {
    flex: 1;
}

.info p {
    margin-bottom: 12px; /* 调整底部外边距，使段落之间间距更舒适 */
    font-size: 14px;
}

.email-link {
    color: #3498db;
    text-decoration: none;
}

.email-link:hover {
    text-decoration: underline;
}

/* 模块导航 */
.module-nav {
    margin-bottom: 30px; /* 调整底部外边距，使导航与其他内容之间间距更合理 */
    background-color: rgba(255, 255, 255, 0.9); /* 半透明背景 */
    border-radius: 9px;
    padding: 15px 25px; /* 调整内边距，使导航显示更舒适 */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.module-nav ul {
    display: flex;
    list-style: none;
}

.module-nav li {
    flex: 1;
    text-align: center;
    padding: 12px 18px; /* 调整内边距，使导航项显示更舒适 */
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.module-nav li:hover {
    background-color: rgba(244, 244, 244, 0.7);
}

.module-nav li.active {
    background-color: rgba(255, 237, 187);
    color: #493a22;
    font-weight: bold;
}

/* 简历内容区域 */
.resume-content {
    position: relative;
}

.module {
    display: none;
    background-color: rgba(255, 255, 255, 0.9); /* 半透明背景 */
    border-radius: 9px;
    padding: 25px; /* 调整内边距，使模块内容显示更舒适 */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px; /* 调整底部外边距，使模块之间间距更合理 */
    animation: fadeIn 0.5s ease;
}

.module.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 模块头部 */
.module-header {
    margin-bottom: 20px; /* 调整底部外边距，使模块标题与内容之间间距更合理 */
    border-bottom: 2px solid #e48d22fb;
    padding-bottom: 12px; /* 调整底部内边距，使模块标题显示更舒适 */
}

.module-header h3 {
    color: #e48d22fb;
    display: flex;
    align-items: center;
}

.module-header h3 i {
    margin-right: 10px;
    color: #e48d22fb;
}

/* 模块主体 */
.module-body {
    margin-left: 20px;
}

.education-item, .experience-item {
    margin-bottom: 25px; /* 调整底部外边距，使教育经历或工作经验项之间间距更舒适 */
    padding-bottom: 18px; /* 调整底部内边距，使教育经历或工作经验项显示更舒适 */
    border-bottom: 1px dashed rgba(236, 240, 241, 0.7);
}

.education-item:last-child, .experience-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.skill-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px; /* 调整底部外边距，使技能项之间间距更舒适 */
}

.skill-item i {
    margin-right: 10px;
    color: #e48d22fb;
    font-size: 18px;
}

.skill-info p {
    margin: 0;
}
